/* ---------- Studio layout ---------- */
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 16px; align-items: start; }
.studio-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.studio-side { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 12px; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.panel-pad { padding: 18px; }
.step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.step-num-badge {
  width: 24px; height: 24px; border-radius: 8px; flex: none;
  background: var(--gradient-soft); border: 1px solid rgba(124, 92, 255, 0.32);
  color: #c4b5fd; font-size: 11.5px; font-weight: 700; display: grid; place-items: center;
}
.step-head h3 { font-size: 14px; font-weight: 650; }
.step-head .step-hint { margin-left: auto; font-size: 11.5px; color: var(--text-mute); display: flex; align-items: center; gap: 5px; }

/* ---------- Template strip ---------- */
.tpl-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.tpl-mini {
  min-width: 148px; width: 148px; border-radius: 11px; overflow: hidden;
  border: 1px solid var(--line); background: var(--panel-2); cursor: pointer;
  transition: border-color 0.16s, transform 0.16s; flex: none;
}
.tpl-mini:hover { transform: translateY(-2px); border-color: rgba(124, 92, 255, 0.4); }
.tpl-mini.active { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(124, 92, 255, 0.2); }
.tpl-mini .cover { height: 72px; position: relative; display: grid; place-items: center; }
.tpl-mini .cover::after { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 60% at 70% 20%, rgba(255, 255, 255, 0.22), transparent 60%); }
.tpl-mini .cover .r { position: absolute; left: 7px; top: 6px; font-size: 9.5px; padding: 1px 5px; border-radius: 4px; background: rgba(0, 0, 0, 0.38); border: 1px solid rgba(255, 255, 255, 0.18); z-index: 2; }
.tpl-mini .cover svg { position: relative; z-index: 2; opacity: 0.9; }
.tpl-mini .info { padding: 8px 10px 9px; }
.tpl-mini .info strong { display: block; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpl-mini .info span { font-size: 10px; color: var(--text-mute); }

/* ---------- Materials ---------- */
.mat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.mat-item {
  position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); background: #0b0d16; cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
.mat-item:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.22); }
.mat-item.selected { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(124, 92, 255, 0.25); }
.mat-item img, .mat-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mat-item .mat-name {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 7px 5px;
  font-size: 10px; color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mat-order {
  position: absolute; left: 6px; top: 6px; width: 20px; height: 20px; border-radius: 6px;
  background: var(--gradient); color: #fff; font-size: 10.5px; font-weight: 700;
  display: grid; place-items: center; z-index: 3; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.mat-kind {
  position: absolute; right: 6px; top: 6px; font-size: 9px; padding: 1px 5px; border-radius: 4px;
  background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.85); z-index: 2;
}
.mat-del {
  position: absolute; right: 5px; bottom: 5px; width: 22px; height: 22px; border-radius: 6px;
  border: none; background: rgba(0, 0, 0, 0.65); color: #fff; cursor: pointer;
  display: grid; place-items: center; opacity: 0; transition: opacity 0.15s; z-index: 4;
}
.mat-item:hover .mat-del { opacity: 1; }
.mat-del:hover { background: rgba(248, 113, 113, 0.8); }
.upload-tile {
  aspect-ratio: 1; border-radius: 10px; border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.015); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--text-mute); font-size: 10.5px; transition: all 0.15s;
}
.upload-tile:hover { border-color: var(--brand); color: #c4b5fd; background: rgba(124, 92, 255, 0.06); }
.upload-tile svg { width: 20px; height: 20px; }
.upload-tile.busy { opacity: 0.6; pointer-events: none; }

/* ---------- Copy generation ---------- */
.copy-result { border: 1px solid rgba(124, 92, 255, 0.22); background: rgba(124, 92, 255, 0.045); border-radius: 12px; padding: 14px; }
.copy-content { font-size: 14px; line-height: 2; color: var(--text); padding: 13px 15px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.copy-title-input {
  width: 100%; background: transparent; border: none; outline: none;
  font-size: 14.5px; font-weight: 650; color: var(--text); padding: 2px 0;
  border-bottom: 1px dashed transparent;
}
.copy-title-input:focus { border-bottom-color: rgba(124, 92, 255, 0.5); }
.scene-row { display: flex; gap: 9px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); align-items: flex-start; }
.scene-row .idx { width: 18px; height: 18px; border-radius: 5px; background: rgba(124, 92, 255, 0.16); color: #c4b5fd; font-size: 10px; font-weight: 700; display: grid; place-items: center; flex: none; margin-top: 2px; }
.scene-row .sc-body { flex: 1; min-width: 0; }
.scene-row .sc-caption { font-size: 12.5px; font-weight: 550; color: var(--text); }
.scene-row .sc-line { font-size: 11.5px; color: var(--text-mute); margin-top: 3px; line-height: 1.6; }
.scene-row .sc-role { font-size: 10px; color: var(--brand-2); flex: none; margin-top: 2px; }

/* ---------- Voice ---------- */
.voice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.voice {
  display: flex; align-items: center; gap: 9px; padding: 9px 10px;
  border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.02);
  cursor: pointer; transition: all 0.15s; min-width: 0;
}
.voice:hover { border-color: rgba(255, 255, 255, 0.2); }
.voice.active { border-color: var(--brand); background: rgba(124, 92, 255, 0.1); }
.voice .v-avatar { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; }
.voice .v-meta { min-width: 0; }
.voice .v-meta strong { display: block; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.voice .v-meta span { font-size: 10px; color: var(--text-mute); }
.voice .v-play { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); color: var(--text-dim); display: grid; place-items: center; cursor: pointer; flex: none; }
.voice .v-play:hover { color: #fff; border-color: var(--brand); }
.voice .v-play.playing { color: #fff; border-color: var(--brand); background: rgba(124, 92, 255, 0.35); }

/* ---------- BGM 曲库 ---------- */
.bgm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: 236px; overflow-y: auto; padding-right: 4px; }
.bgm-grid::-webkit-scrollbar { width: 6px; }
.bgm-grid::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 6px; }

/* ---------- Range ---------- */
input[type='range'] { -webkit-appearance: none; width: 100%; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.12); outline: none; }
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand); cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ---------- Option chips ---------- */
.opt-row { display: flex; gap: 6px; flex-wrap: wrap; }
.opt {
  padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03); color: var(--text-dim);
  font-size: 12px; cursor: pointer; transition: all 0.15s;
}
.opt:hover { border-color: rgba(255, 255, 255, 0.2); }
.opt.active { border-color: var(--brand); background: rgba(124, 92, 255, 0.14); color: #fff; }
.opt small { color: var(--text-mute); font-size: 10px; margin-left: 3px; }
.opt.active small { color: #c4b5fd; }

/* ---------- Side preview ---------- */
.preview-card { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.preview-stage {
  aspect-ratio: 16 / 10; position: relative; display: grid; place-items: center;
  background: linear-gradient(150deg, #1a1d30, #0b0d17); overflow: hidden;
}
.preview-stage .bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: saturate(1.05); }
.preview-stage .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.62)); }
.preview-stage .cap { position: relative; z-index: 2; text-align: center; padding: 0 16px; font-size: 14px; font-weight: 650; line-height: 1.5; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
.preview-stage .empty-hint { position: relative; z-index: 2; color: rgba(255, 255, 255, 0.5); font-size: 11.5px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.preview-stage .ratio-tag { position: absolute; left: 9px; top: 9px; z-index: 3; font-size: 9.5px; padding: 2px 6px; border-radius: 4px; background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.16); }
.preview-body { padding: 13px 15px 15px; }
.sum-row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; padding: 5px 0; color: var(--text-mute); }
.sum-row span:last-child { color: var(--text-dim); }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 11px; }
.sum-row.total span:last-child { color: #fcd34d; font-size: 20px; font-weight: 750; }
.gen-btn { height: 46px; font-size: 14.5px; }

.tip-box { display: flex; gap: 8px; padding: 10px 12px; border-radius: 10px; background: rgba(34, 211, 238, 0.06); border: 1px solid rgba(34, 211, 238, 0.16); font-size: 11.5px; color: #a5f3fc; line-height: 1.6; }
.tip-box svg { flex: none; margin-top: 2px; color: #67e8f9; }

/* ---------- Render modal ---------- */
.render-stage { background: #05060a; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; min-height: 240px; padding: 10px; }
.render-stage canvas, .render-stage video { max-height: 52vh; max-width: 100%; border-radius: 8px; }
.render-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-mute); margin-top: 12px; }
.render-steps { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.render-step { font-size: 10.5px; padding: 3px 8px; border-radius: 5px; background: rgba(255, 255, 255, 0.05); color: var(--text-mute); }
.render-step.active { background: rgba(124, 92, 255, 0.18); color: #c4b5fd; }
.render-step.done { background: rgba(52, 211, 153, 0.12); color: #6ee7b7; }

/* ---------- Jobs / list pages ---------- */
.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.job-card { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; }
.job-thumb { aspect-ratio: 16 / 9; background: #0a0c14; position: relative; display: grid; place-items: center; overflow: hidden; }
.job-thumb video, .job-thumb img { width: 100%; height: 100%; object-fit: cover; }
.job-thumb .ph { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text-mute); font-size: 11px; }
.job-thumb .badge { position: absolute; left: 9px; top: 9px; }
.job-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.job-body h4 { font-size: 13px; font-weight: 600; }
.job-meta { font-size: 11px; color: var(--text-mute); display: flex; gap: 10px; flex-wrap: wrap; }
.job-actions { display: flex; gap: 6px; margin-top: 2px; }
.job-actions .btn { flex: 1; }

.material-page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.material-card { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.material-card .thumb { aspect-ratio: 1; background: #0a0c14; position: relative; display: grid; place-items: center; }
.material-card .thumb img, .material-card .thumb video { width: 100%; height: 100%; object-fit: cover; }
.material-card .thumb .ph { color: var(--text-mute); }
.material-card .meta { padding: 10px 12px 12px; }
.material-card .meta strong { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.material-card .meta span { font-size: 10.5px; color: var(--text-mute); }
.material-card .row { margin-top: 8px; }

/* 素材批量选择 */
.mat-check { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line); background: rgba(10, 12, 20, 0.55); color: transparent; display: inline-grid; place-items: center; cursor: pointer; flex: none; padding: 0; transition: all 0.15s; }
.mat-check:hover { border-color: var(--brand); }
.mat-check.checked { background: var(--brand); border-color: var(--brand); color: #fff; }
.material-card { position: relative; }
.material-card .card-check { position: absolute; top: 8px; left: 8px; z-index: 2; }
.material-card.checked { border-color: var(--brand); }
.material-card.checked .thumb { outline: 2px solid var(--brand); outline-offset: -2px; }
.mat-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.mat-selall { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; font-size: 12px; color: var(--text-dim); }
.mat-selall:hover { color: var(--text); }

.dropzone {
  border: 1px dashed rgba(255, 255, 255, 0.2); border-radius: 14px; padding: 26px;
  display: flex; align-items: center; gap: 16px; cursor: pointer;
  background: rgba(255, 255, 255, 0.015); transition: all 0.16s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: rgba(124, 92, 255, 0.07); }
.dropzone .dz-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--gradient-soft); border: 1px solid rgba(124, 92, 255, 0.25); color: #c4b5fd; display: grid; place-items: center; flex: none; }
.dropzone strong { display: block; font-size: 13px; }
.dropzone p { font-size: 11.5px; color: var(--text-mute); margin-top: 2px; }

/* ---------- Billing ---------- */
.balance-card {
  border-radius: 18px; padding: 24px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.28), rgba(34, 211, 238, 0.1) 65%, rgba(15, 17, 26, 0.9));
  border: 1px solid rgba(124, 92, 255, 0.3);
}
.balance-card::after { content: ''; position: absolute; width: 280px; height: 280px; border-radius: 50%; background: rgba(124, 92, 255, 0.22); filter: blur(50px); right: -80px; top: -120px; }
.balance-card .b-label { font-size: 12px; color: rgba(255, 255, 255, 0.65); }
.balance-card .b-amount { font-size: 40px; font-weight: 800; letter-spacing: -1.5px; line-height: 1.15; margin: 6px 0 2px; position: relative; }
.balance-card .b-amount span { font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.6); margin-left: 5px; letter-spacing: 0; }
.balance-card .b-sub { font-size: 11.5px; color: rgba(255, 255, 255, 0.55); position: relative; }
.balance-card .b-actions { position: relative; margin-top: 16px; display: flex; gap: 8px; }

.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pkg-card {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255,255,255,0.03), var(--panel));
  padding: 24px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.25s;
  overflow: hidden;
}
.pkg-card:hover { transform: translateY(-2px); border-color: rgba(124, 92, 255, 0.4); box-shadow: 0 12px 32px rgba(124, 92, 255, 0.12); }
.pkg-card.featured {
  border-color: rgba(124, 92, 255, 0.6);
  background: linear-gradient(170deg, rgba(124, 92, 255, 0.18), rgba(10, 12, 30, 0.95));
  box-shadow: 0 8px 28px rgba(124, 92, 255, 0.18);
}
.pkg-card.featured::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #7c5cff, #22d3ee);
}
.pkg-card .pkg-tag {
  position: absolute; right: 14px; top: 12px;
  font-size: 10px; padding: 3px 10px; border-radius: 999px;
  background: linear-gradient(120deg, #7c5cff, #22d3ee);
  color: #fff; font-weight: 600; letter-spacing: 0.3px;
}
.pkg-card h4 { font-size: 14px; font-weight: 600; color: var(--text-dim); }
.pkg-card .p-price { font-size: 32px; font-weight: 800; letter-spacing: -0.8px; }
.pkg-card .p-price small { font-size: 12px; font-weight: 500; color: var(--text-mute); margin-left: 2px; }
.pkg-card .p-credits {
  font-size: 12.5px; color: var(--brand-2);
  padding: 8px 12px; border-radius: 8px;
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.2);
  text-align: center;
  font-weight: 600;
}
.pkg-card .p-rate { font-size: 11px; color: var(--text-mute); text-align: center; }
.pkg-card .btn { margin-top: 6px; }

/* ---------- Billing · Pay channel ---------- */
.pay-channel {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px;
  background: rgba(7, 193, 96, 0.08);
  border: 1px solid rgba(7, 193, 96, 0.25);
}
.pay-channel > div { flex: 1; }
.pay-channel strong { display: block; font-size: 13px; }
.pay-channel small { color: var(--text-mute); font-size: 11px; }

.pay-methods { display: flex; flex-direction: column; gap: 10px; }
.pay-method {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.pay-method:hover { border-color: rgba(7, 193, 96, 0.5); background: rgba(7, 193, 96, 0.05); }
.pay-method.active { border-color: #07c160; background: rgba(7, 193, 96, 0.1); }
.pm-info { flex: 1; }
.pm-info strong { display: block; font-size: 13px; }
.pm-info small { color: var(--text-mute); font-size: 11px; }
.pm-check {
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--line); font-size: 11px; color: transparent;
  transition: all 0.2s;
}
.pay-method.active .pm-check {
  background: #07c160; color: #fff;
}
.pay-qr-wrap { display: flex; justify-content: center; }
.pay-qr-box {
  text-align: center;
  padding: 20px 28px;
  border-radius: 16px;
  background: #fff;
  color: #111;
}
.pay-qr {
  width: 160px; height: 160px;
  border-radius: 8px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  padding: 10px;
  box-sizing: border-box;
}
.qr-spinner {
  width: 36px; height: 36px;
  border: 3px solid #e5e7eb;
  border-top-color: #07c160;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.pay-qr-timer { font-size: 11.5px; color: #999; }

/* ---------- Account ---------- */
.profile-head { display: flex; align-items: center; gap: 16px; }
.profile-head h3 { font-size: 16px; }
.profile-head p { font-size: 12px; color: var(--text-mute); }
.acct-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 14px; align-items: start; }

/* ---------- Template preview ---------- */
.tpl-card { transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s; }
.tpl-card:hover { transform: translateY(-2px); border-color: rgba(124, 92, 255, 0.45); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35); }
.tpl-cover { position: relative; display: grid; place-items: center; overflow: hidden; }
.tpl-cover .tpl-play {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(8, 9, 14, 0.45); border: 1px solid rgba(255, 255, 255, 0.35); color: #fff;
  backdrop-filter: blur(6px);
}
.tpl-cover .tpl-cat { position: absolute; left: 10px; bottom: 10px; font-size: 10px; padding: 3px 8px; border-radius: 999px; background: rgba(8, 9, 14, 0.5); color: #fff; }
.tpl-cover .tpl-hot { position: absolute; right: 10px; top: 10px; font-size: 9.5px; padding: 3px 8px; border-radius: 999px; background: linear-gradient(135deg, #f97316, #ef4444); color: #fff; font-weight: 700; }
.tpl-preview-head { border-radius: 16px; padding: 22px; color: #fff; display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.tpl-preview-title { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.tpl-preview-sub { font-size: 12.5px; margin-top: 6px; color: rgba(255, 255, 255, 0.78); max-width: 520px; line-height: 1.7; }
.tpl-preview-meta { display: flex; gap: 10px; font-size: 11px; color: rgba(255, 255, 255, 0.75); flex-wrap: wrap; }
.tpl-preview-meta span { background: rgba(8, 9, 14, 0.28); padding: 4px 9px; border-radius: 999px; }
.tpl-scene-list { display: flex; flex-direction: column; gap: 8px; }
.tpl-scene-row { display: flex; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.015); }
.tpl-scene-index { font-size: 12px; font-weight: 800; color: var(--brand-2); width: 22px; flex: none; padding-top: 2px; }
.tpl-scene-main { flex: 1; min-width: 0; font-size: 12.5px; }

@media (max-width: 1180px) {
  .studio-grid { grid-template-columns: 1fr; }
  .studio-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .studio-side > * { flex: 1; min-width: 260px; }
  .pkg-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .voice-grid { grid-template-columns: 1fr; }
  .acct-grid { grid-template-columns: 1fr; }
  .pkg-grid { grid-template-columns: 1fr; }
  .studio-side { flex-direction: column; }
  .preview-stage { aspect-ratio: 16 / 9; }
}
