/* «Тёплая сцена» — ОБЩАЯ тема ArmanGPT: бордовый бархат, прожектор, золото, заголовки с засечками.
   Источник — «Музыка». Здесь: цвета/шрифты (токены --s-*), мастер-окно #wizardSheet.wz-stage
   (ставит wizards.js для ArmanGPT и «Создать песню»), экранный скин .stage (класс на <main class="screen">).
   Только вид. Кнопки ≥44 px, текст ≥14 px. Подключать ПОСЛЕ app.css. */
:root {
  --s-bg: #140a0c; --s-bg2: #1e0f12; --s-ink: #fbf1de; --s-ink2: #e3d3ba; --s-mute: #cbb89c;
  --s-gold: #f2c46d; --s-gold2: #c28b2f; --s-line: rgba(242, 196, 109, .26); --s-card: rgba(255, 238, 208, .055);
  --s-serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, "Noto Serif", Georgia, serif;
  --s-ease: cubic-bezier(.22, 1, .36, 1);
}

/* ── Мастер-окно (ArmanGPT, «Создать песню») ───────────────────────────────── */
#wizardSheet.wz-stage { background: radial-gradient(90% 45% at 50% 0, rgba(70, 20, 28, .9), transparent 70%), linear-gradient(#1b0c10, #110708 70%); color: var(--s-ink); overflow: hidden; }
#wizardSheet.wz-stage .sheet-backdrop { display: none; }
#wizardSheet.wz-stage::before { /* луч прожектора */
  content: ""; position: absolute; top: 0; left: 50%; width: 360px; height: 520px; transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 214, 140, .30), rgba(255, 214, 140, .06) 60%, transparent);
  clip-path: polygon(41% 0, 59% 0, 100% 100%, 0 100%); filter: blur(5px);
}
#wizardSheet.wz-stage .wizard-panel {
  position: relative; z-index: 1; width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0; background: transparent;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 0; gap: 0; display: flex; flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
#wizardSheet.wz-stage .sheet-head-row { margin-bottom: 14px; gap: 10px; }
#wizardSheet.wz-stage #wizardTitle { margin: 0; font-family: var(--s-serif); font-size: 25px; font-weight: 700; letter-spacing: -.015em; line-height: 1.12; color: var(--s-ink); }
#wizardSheet.wz-stage .wizard-body { flex: 0 0 auto; overflow: visible; }
#wizardSheet.wz-stage .wizard-body > p, #wizardSheet.wz-stage .wizard-body .muted { color: var(--s-ink2); font-size: 17px; line-height: 1.45; }
#wizardSheet.wz-stage .wz-q-row p.muted { font-family: var(--s-serif); font-size: 20px; font-style: italic; color: var(--s-ink); line-height: 1.25; }
#wizardSheet.wz-stage .wz-dice {
  min-height: 46px; padding: 0 16px; border-radius: 23px; background: transparent; border: 1.5px solid var(--s-line); color: var(--s-gold); font-size: 16px; font-weight: 700;
}
#wizardSheet.wz-stage .wizard-grid { gap: 10px; margin-top: 10px; }
#wizardSheet.wz-stage .wizard-chip {
  position: relative; min-height: 60px; padding: 12px 14px; border-radius: 14px; font-size: 17px; font-weight: 600; line-height: 1.25; color: var(--s-ink);
  background: rgba(40, 19, 21, .92); border: 1px solid var(--s-line); display: flex; align-items: center;
  transition: background .2s var(--s-ease), transform .15s var(--s-ease);
}
#wizardSheet.wz-stage .wizard-chip:active { transform: scale(.97); }
#wizardSheet.wz-stage .wizard-chip.wz-tile-on, #wizardSheet.wz-stage .wizard-chip.wizard-chip-selected {
  background: linear-gradient(160deg, #f7d58c, #e2a94a) !important; color: #2a1408 !important; border-color: #f7d58c !important; box-shadow: 0 8px 22px rgba(242, 196, 109, .28) !important; font-weight: 800;
}
#wizardSheet.wz-stage .outline-btn.wz-custom { min-height: 56px; border-radius: 14px; border: 1.5px dashed var(--s-line); color: var(--s-gold); font-size: 17px; font-weight: 700; background: transparent; white-space: normal; }
#wizardSheet.wz-stage #wizardOutput { order: 2; margin: 14px 0 0; }
#wizardSheet.wz-stage #wizardActions {
  order: 3; position: sticky; bottom: 0; z-index: 5; margin: auto -16px 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); gap: 10px; flex-wrap: wrap;
  background: linear-gradient(to top, #110708 72%, rgba(17, 7, 8, 0));
}
#wizardSheet.wz-stage #wizardActions:empty { display: none; }
#wizardSheet.wz-stage .wizard-actions .primary-btn:disabled { background: rgba(242, 196, 109, .13); color: var(--s-mute); box-shadow: inset 0 0 0 1.5px var(--s-line); opacity: 1; }
#wizardSheet.wz-stage .wizard-actions .outline-btn { min-height: 56px; border-radius: 16px; border: 1.5px solid var(--s-line); color: var(--s-ink); font-size: 16px; font-weight: 700; background: transparent; white-space: normal; }
#wizardSheet.wz-stage #wizardActions .wz-back, #wizardSheet.wz-stage #wizardActions .wz-next { height: auto; min-height: 56px; }
#wizardSheet.wz-stage .wizard-actions .primary-btn:not(.wz-next) { flex: 1 1 100%; }
#wizardSheet.wz-stage .wizard-actions .outline-btn:not(.wz-back) { flex: 1 1 40%; min-width: 0; padding: 8px 10px; }
#wizardSheet.wz-stage #wizardActions .wz-back { flex: 0 0 auto; padding: 0 16px; }
#wizardSheet.wz-stage #wizardActions .wz-next { flex: 1 1 0; min-width: 0; }
#wizardSheet.wz-stage .wizard-body > p { font-size: 18px; }
#wizardSheet.wz-stage .wz-q-row {
  position: sticky; top: 0; z-index: 6; flex-wrap: wrap; gap: 8px 10px;
  margin: 0 -16px 2px; padding: 8px 16px 10px;
  background: rgba(22, 10, 13, .88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(242, 196, 109, .12);
}
#wizardSheet.wz-stage .wz-q-row p { flex: 1 1 100%; }
#wizardSheet.wz-stage .wz-q-row .wz-dice { flex: 1 1 0; min-width: 0; justify-content: center; white-space: nowrap; }
#wizardSheet.wz-stage .wz-dice.wz-lucky {
  background: linear-gradient(160deg, #f7d58c, #e2a94a); color: #2a1408; border: 0; font-weight: 800;
  box-shadow: 0 6px 16px rgba(226, 169, 74, .3);
}
#wizardSheet.wz-stage .wz-tile { scroll-margin-top: 130px; scroll-margin-bottom: 110px; }
#wizardSheet.wz-stage .wz-step.is-rolling .wz-dice { opacity: .45; pointer-events: none; }
#wizardSheet.wz-stage .wz-tiles.is-rolling .wz-tile { pointer-events: none; }
#wizardSheet.wz-stage .wz-tile.wz-tile-run {
  background: linear-gradient(160deg, #6ee7b7, #34d399) !important; color: #052e1d !important;
  border-color: #a7f3d0 !important; font-weight: 800;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .45), 0 0 24px rgba(52, 211, 153, .65) !important;
  transform: scale(1.03); transition: none;
}
#wizardSheet.wz-stage .wz-tile.wz-tile-flash { animation: wzFlash .9s ease-out; position: relative; z-index: 2; }
@keyframes wzFlash {
  0%   { transform: scale(1.1); box-shadow: 0 0 0 4px #fff, 0 0 46px 12px rgba(52, 211, 153, .95); background: #6ee7b7; }
  45%  { transform: scale(1.05); box-shadow: 0 0 0 3px #a7f3d0, 0 0 30px 6px rgba(52, 211, 153, .6); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) { #wizardSheet.wz-song .wz-tile.wz-tile-flash { animation: none; } }

/* Общие мелочи мастера: подписи, вводный текст, загрузка фото, поле с микрофоном, ожидание, готовый результат */
#wizardSheet.wz-stage .label-sm { color: var(--s-gold); font-size: 14px; font-weight: 800; letter-spacing: .1em; }
#wizardSheet.wz-stage .wizard-intro { color: var(--s-ink2); font-size: 17px; line-height: 1.45; margin-bottom: 14px; }
#wizardSheet.wz-stage .wizard-error { color: #ffb4a8; font-size: 17px; line-height: 1.4; }
#wizardSheet.wz-stage .wizard-chip-sub { font-size: 14px; color: var(--s-mute); }
#wizardSheet.wz-stage .wizard-chip.wz-tile-on .wizard-chip-sub { color: #5a3a14; }
#wizardSheet.wz-stage .vi-btn { width: 52px; height: 52px; background: linear-gradient(160deg, #f7d58c, #e2a94a); color: #2a1408; box-shadow: 0 6px 16px rgba(226, 169, 74, .4); }
#wizardSheet.wz-stage .vi-bar { background: var(--s-card); border-color: var(--s-line); color: var(--s-ink); }
#wizardSheet.wz-stage .wizard-upload-block { margin-bottom: 14px; }
#wizardSheet.wz-stage .trend-add-photo-btn {
  min-height: 84px; padding: 16px 18px; border-radius: 16px; border: 1.5px dashed var(--s-gold); color: var(--s-ink);
  background: linear-gradient(135deg, rgba(242, 196, 109, .12), rgba(40, 19, 21, .92));
}
#wizardSheet.wz-stage .trend-add-photo-btn.has-file { border-style: solid; }
#wizardSheet.wz-stage .trend-add-photo-icon { font-size: 34px; }
#wizardSheet.wz-stage .trend-add-photo-text strong { font-size: 19px; color: var(--s-ink); }
#wizardSheet.wz-stage .trend-add-photo-text small { font-size: 15px; color: var(--s-mute); white-space: normal; }
#wizardSheet.wz-stage .trend-add-photo-arrow { color: var(--s-gold); opacity: 1; font-size: 26px; }
#wizardSheet.wz-stage .wizard-photo-grid, #wizardSheet.wz-stage .trend-photo-preview { background: transparent; border: 0; border-radius: 0; padding: 12px 0 0; gap: 12px; }
#wizardSheet.wz-stage .wizard-photo-item { width: 92px; height: 92px; border-radius: 14px; border: 2px solid var(--s-gold); overflow: visible; }
#wizardSheet.wz-stage .wizard-photo-item img { border-radius: 12px; }
#wizardSheet.wz-stage .wizard-photo-remove {
  top: -14px; right: -14px; width: 44px; height: 44px; font-size: 0; background: radial-gradient(circle, #2a1215 0 14px, transparent 15px); color: #fff;
}
#wizardSheet.wz-stage .wizard-photo-remove::after { content: "✕"; font-size: 14px; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
#wizardSheet.wz-stage .wizard-photo-clear { min-height: 46px; border-radius: 23px; border: 1.5px solid var(--s-line); color: var(--s-ink); font-size: 16px; font-weight: 700; background: transparent; }
#wizardSheet.wz-stage .wizard-loading { color: var(--s-gold); font-family: var(--s-serif); font-size: 21px; line-height: 1.35; padding: 8px 0 16px; text-align: center; }
#wizardSheet.wz-stage .wizard-loading::before {
  content: ""; display: block; width: 96px; height: 96px; margin: 8px auto 20px; border-radius: 50%;
  border: 6px solid rgba(242, 196, 109, .18); border-top-color: var(--s-gold); animation: stSpin 1.2s linear infinite;
}
@keyframes stSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #wizardSheet.wz-stage .wizard-loading::before { animation: none; } }
#wizardSheet.wz-stage .gen-preview-img { max-width: 100%; border-radius: 16px; border: 2px solid var(--s-line); box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
#wizardSheet.wz-stage .gen-download-btn { min-height: 48px; padding: 0 20px; border-radius: 24px; border: 1.5px solid var(--s-line); background: transparent; color: var(--s-gold); font-size: 16px; font-weight: 700; }
#wizardSheet.wz-stage .wizard-body > p strong { font-family: var(--s-serif); font-size: 24px; font-weight: 700; color: var(--s-gold); }

/* ── Экранный скин .stage (класс на <main class="screen">) ─────────────────────
   Подменяет переменные app.css внутри экрана → всё «своё» окрашивается в бархат и золото.
   Дальше — точечные правила на общие компоненты. */
.stage {
  --bg: #140a0c; --bg2: #1e0f12; --bg3: rgba(40, 19, 21, .92); --text: var(--s-ink); --muted: var(--s-mute);
  --line: var(--s-line); --accent: var(--s-gold); --accent-dark: var(--s-gold2);
  color: var(--s-ink);
  background:
    conic-gradient(from 158deg at 50% -3%, transparent 0deg, rgba(255, 214, 140, .15) 22deg, transparent 44deg, transparent 360deg),
    radial-gradient(90% 34% at 50% 0, rgba(80, 22, 30, .85), transparent 70%),
    linear-gradient(#1a0b0f, #110708 60%);
}
.stage .brand-name { font-family: var(--s-serif); font-size: 26px; font-weight: 700; line-height: 1.1; color: var(--s-ink); white-space: normal; }
.stage .brand-icon { background: linear-gradient(160deg, #f7d58c, #e2a94a); color: #2a1408; }
.stage .home-pill {
  min-height: 46px; padding: 0 16px; border-radius: 23px; background: rgba(242, 196, 109, .1); color: var(--s-gold);
  box-shadow: inset 0 0 0 1.5px var(--s-gold); font-size: 16px; font-weight: 700;
}
.stage .label-sm { color: var(--s-gold); font-size: 14px; font-weight: 800; letter-spacing: .1em; }
.stage .primary-btn {
  min-height: 56px; border-radius: 16px; border: 0; font-size: 18px; font-weight: 800; color: #2a1408;
  background: linear-gradient(160deg, #f7d58c, #e2a94a); box-shadow: 0 10px 26px rgba(226, 169, 74, .3);
}
.stage .primary-btn:disabled { background: rgba(242, 196, 109, .13); color: var(--s-mute); box-shadow: inset 0 0 0 1.5px var(--s-line); opacity: 1; }
.stage .outline-btn { min-height: 48px; border-radius: 16px; border: 1.5px solid var(--s-line); color: var(--s-ink); font-weight: 700; background: transparent; }
.stage .field-select, .stage .field-input, .stage .field-textarea {
  background: rgba(0, 0, 0, .34); color: var(--s-ink); border: 1.5px solid var(--s-line); border-radius: 16px; font-size: 17px;
}
.stage .field-textarea { padding: 14px 16px; line-height: 1.5; }
.stage .field-select:focus, .stage .field-input:focus, .stage .field-textarea:focus { outline: 0; border-color: var(--s-gold); box-shadow: 0 0 0 3px rgba(242, 196, 109, .22); }
.stage .field-textarea::placeholder, .stage .field-input::placeholder { color: #a8957b; }
.stage .muted { color: var(--s-mute); }
.stage .trend-add-photo-btn, .stage .file-picker-btn {
  min-height: 64px; border-radius: 16px; border: 1.5px dashed var(--s-gold); color: var(--s-ink);
  background: linear-gradient(135deg, rgba(242, 196, 109, .12), rgba(40, 19, 21, .92));
}
.stage .file-picker-library-btn { min-height: 46px; border-radius: 14px; border: 1.5px solid var(--s-line); color: var(--s-ink); background: transparent; font-size: 15px; }

/* Фото / Видео (#genScreen) */
#genScreen.stage:not(.chat-mode) .param-dd-trigger, #genScreen.stage:not(.chat-mode) .param-stepper {
  min-height: 46px; padding: 8px 12px; border-radius: 14px; font-size: 16px; background: rgba(40, 19, 21, .92); border: 1.5px solid var(--s-line); color: var(--s-ink);
}
#genScreen.stage .param-dd-menu { background: #1e0f12; border: 1.5px solid var(--s-line); }
#genScreen.stage .param-dd-item { min-height: 46px; font-size: 16px; color: var(--s-ink); }
#genScreen.stage .param-dd-item:hover, #genScreen.stage .param-dd-item.active { background: rgba(242, 196, 109, .16); color: var(--s-gold); }
#genScreen.stage .model-picker-item { min-height: 56px; border-radius: 14px; background: rgba(40, 19, 21, .92); border: 1.5px solid var(--s-line); }
#genScreen.stage .model-picker-item.active { background: rgba(242, 196, 109, .16); box-shadow: inset 0 0 0 1.5px var(--s-gold); }
#genScreen.stage .model-picker-name { font-size: 17px; }
#genScreen.stage .gen-sticky-bar { background: linear-gradient(to top, #110708 75%, transparent); }
#genScreen.stage .gen-sticky-btn { min-height: 58px; font-size: 18px; }
#genScreen.stage .output-panel { background: transparent; }
.stage .vi-btn { width: 52px; height: 52px; background: linear-gradient(160deg, #f7d58c, #e2a94a); color: #2a1408; box-shadow: 0 6px 16px rgba(226, 169, 74, .4); }
.stage .vi-bar { background: var(--s-card); border-color: var(--s-line); color: var(--s-ink); }
.stage .model-chip, #genScreen.stage:not(.chat-mode) .param-version-pill { min-height: 44px; padding: 8px 16px; font-size: 15px; font-weight: 600; background: rgba(40, 19, 21, .92); border: 1.5px solid var(--s-line); color: var(--s-ink); }
.stage .model-chip.active, #genScreen.stage:not(.chat-mode) .param-version-pill.active { background: linear-gradient(160deg, #f7d58c, #e2a94a); color: #2a1408; border-color: #f7d58c; font-weight: 800; }
.stage .field-hint { font-size: 14px; color: var(--s-mute); }
#genScreen.stage .file-picker-library-btn { font-size: 15px; font-weight: 700; }
#genScreen.stage .gen-sticky-bar { margin: 0 -16px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); }

/* Мини-сериал (.series-screen.stage) — тот же вид «Тёплой сцены»; ручки и порядок шагов не тронуты */
.series-screen.stage { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
.series-screen.stage .series-top { gap: 12px; margin-bottom: 16px; }
.series-screen.stage .series-top h1 { font-family: var(--s-serif); font-size: 26px; font-weight: 700; letter-spacing: -.015em; line-height: 1.12; color: var(--s-ink); }
.series-screen.stage .series-back {
  width: 46px; height: 46px; flex: none; border-radius: 50%; border: 1.5px solid var(--s-line); background: rgba(242, 196, 109, .08); color: var(--s-gold); font-size: 26px;
}
.series-screen.stage .series-lead, .series-screen.stage .series-hint { font-size: 14px; color: var(--s-mute); line-height: 1.5; }
.series-screen.stage .series-what-is {
  padding: 16px; border-radius: 18px; border: 1.5px solid var(--s-line);
  background: linear-gradient(135deg, rgba(242, 196, 109, .1), rgba(40, 19, 21, .92));
}
.series-screen.stage .series-what-is strong { font-family: var(--s-serif); font-size: 20px; font-weight: 700; color: var(--s-gold); margin-bottom: 8px; }
.series-screen.stage .series-what-is p { font-size: 16px; line-height: 1.5; color: var(--s-ink2); }
.series-screen.stage .series-what-is b { color: var(--s-ink); font-weight: 800; }
.series-screen.stage .series-what-steps { font-size: 15px; line-height: 1.5; color: var(--s-mute); }
.series-screen.stage .series-label { font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--s-gold); margin: 20px 0 8px; }
.series-screen.stage .series-chips { gap: 10px; }
.series-screen.stage .series-chip {
  min-height: 46px; padding: 8px 18px; border-radius: 23px; font-size: 16px; font-weight: 600;
  background: rgba(40, 19, 21, .92); border: 1.5px solid var(--s-line); color: var(--s-ink);
}
.series-screen.stage .series-chip.active { background: linear-gradient(160deg, #f7d58c, #e2a94a); border-color: #f7d58c; color: #2a1408; font-weight: 800; }
.series-screen.stage .series-input, .series-screen.stage .series-ref-name, .series-screen.stage .series-asset-instruction {
  background: rgba(0, 0, 0, .34); color: var(--s-ink); border: 1.5px solid var(--s-line); border-radius: 16px; font-size: 17px; line-height: 1.5; padding: 14px 16px;
}
.series-screen.stage .series-ref-name { min-height: 48px; padding: 0 14px; }
.series-screen.stage .series-input:focus, .series-screen.stage .series-ref-name:focus, .series-screen.stage .series-asset-instruction:focus { outline: 0; border-color: var(--s-gold); box-shadow: 0 0 0 3px rgba(242, 196, 109, .22); }
.series-screen.stage .series-input::placeholder, .series-screen.stage .series-asset-instruction::placeholder { color: #a8957b; }
.series-screen.stage .series-range { accent-color: var(--s-gold); }
.series-screen.stage .series-refs-head { margin-top: 20px; }
.series-screen.stage .series-add-ref {
  min-height: 44px; padding: 0 18px; border-radius: 22px; border: 1.5px solid var(--s-gold); background: rgba(242, 196, 109, .1); color: var(--s-gold); font-size: 15px; font-weight: 800;
}
.series-screen.stage .series-ref-photo {
  min-height: 48px; padding: 0 14px; border-radius: 14px; border: 1.5px dashed var(--s-gold); background: rgba(242, 196, 109, .08); color: var(--s-ink); font-size: 15px;
}
.series-screen.stage .series-ref-photo.has { border: 1.5px solid #8fd6a0; color: #b5ecc2; background: rgba(110, 200, 140, .12); }
.series-screen.stage .series-ref-del { width: 48px; height: 48px; border-radius: 14px; border: 1.5px solid rgba(240, 150, 140, .45); background: rgba(160, 50, 40, .14); color: #f5b3aa; font-size: 18px; }
.series-screen.stage .series-cost-box {
  padding: 14px 16px; border-radius: 18px; border: 1.5px solid var(--s-gold); background: linear-gradient(135deg, rgba(242, 196, 109, .14), rgba(40, 19, 21, .92));
}
.series-screen.stage .series-cost-box span { font-size: 17px; color: var(--s-ink); }
.series-screen.stage .series-cost-box strong { color: var(--s-gold); }
.series-screen.stage .series-cost-box small { font-size: 14px; color: var(--s-mute); }
.series-screen.stage .series-primary {
  min-height: 56px; border-radius: 16px; font-size: 18px; font-weight: 800; color: #2a1408;
  background: linear-gradient(160deg, #f7d58c, #e2a94a); box-shadow: 0 10px 26px rgba(226, 169, 74, .3);
}
.series-screen.stage .series-primary:disabled { background: rgba(242, 196, 109, .13); color: var(--s-mute); box-shadow: inset 0 0 0 1.5px var(--s-line); opacity: 1; }
.series-screen.stage .series-secondary, .series-screen.stage .series-asset-regen {
  min-height: 48px; border-radius: 16px; border: 1.5px solid var(--s-line); background: transparent; color: var(--s-ink); font-size: 16px; font-weight: 700;
}
.series-screen.stage .series-error { color: #f5b3aa; font-size: 15px; }
.series-screen.stage .series-frame, .series-screen.stage .series-idea-pick, .series-screen.stage .series-block, .series-screen.stage .series-synopsis,
.series-screen.stage .series-beat, .series-screen.stage .series-production-notes {
  border-radius: 16px; border: 1.5px solid var(--s-line); background: var(--s-card); color: var(--s-ink); font-size: 15px; line-height: 1.5;
}
.series-screen.stage .series-idea-pick { min-height: 48px; padding: 12px 14px; font-size: 16px; }
.series-screen.stage .series-frame b, .series-screen.stage .series-frame-refs { font-size: 15px; }
.series-screen.stage .series-frame b { color: var(--s-gold); }
.series-screen.stage .series-frame p, .series-screen.stage .series-frame-prompt, .series-screen.stage .series-meta, .series-screen.stage .series-beat-dialogue,
.series-screen.stage .series-beat-move, .series-screen.stage .series-beat-notes, .series-screen.stage .series-production-text { font-size: 14px; color: var(--s-ink2); }
.series-screen.stage .series-frame-label { font-size: 14px; opacity: 1; color: var(--s-mute); }
.series-screen.stage .series-frame-dialogue { color: var(--s-gold); }
.series-screen.stage .series-beat summary { font-size: 16px; }
.series-screen.stage .series-beat-moment { font-size: 15px; }
.series-screen.stage .series-beat-block { font-size: 14px; background: rgba(242, 196, 109, .14); color: var(--s-gold); }
.series-screen.stage .series-gen-text { font-family: var(--s-serif); font-size: 20px; color: var(--s-ink); }
.series-screen.stage .series-progress { height: 12px; background: rgba(242, 196, 109, .12); }
.series-screen.stage .series-progress-bar { background: linear-gradient(90deg, #f7d58c, #e2a94a); }
.series-screen.stage .series-asset-card { border-radius: 18px; border: 1.5px solid var(--s-line); background: rgba(0, 0, 0, .3); }
.series-screen.stage .series-asset-card h3 { font-family: var(--s-serif); font-size: 18px; color: var(--s-ink); }
.series-screen.stage .series-asset-play { min-height: 48px; border: 1.5px solid var(--s-gold); color: var(--s-gold); font-size: 16px; }
.series-screen.stage .series-jobs { padding: 16px; border-radius: 18px; border: 1.5px solid var(--s-line); background: var(--s-card); }
.series-screen.stage .series-jobs-head small { font-size: 14px; color: var(--s-mute); }
.series-screen.stage .series-job-row { border-radius: 16px; border: 1.5px solid var(--s-line); background: rgba(0, 0, 0, .3); color: var(--s-ink); }
.series-screen.stage .series-job-row.is-processing { border-color: var(--s-gold); background: rgba(242, 196, 109, .1); }
.series-screen.stage .series-job-row.is-done { border-color: rgba(143, 214, 160, .5); }
.series-screen.stage .series-job-meta strong { font-size: 16px; }
.series-screen.stage .series-job-meta small, .series-screen.stage .series-job-badge { font-size: 14px; }
.series-screen.stage .series-job-badge.processing { color: var(--s-gold); }
.series-screen.stage .series-job-cancel { width: 48px; border-left: 1.5px solid var(--s-line); background: rgba(160, 50, 40, .18); color: #f5b3aa; }
.series-screen.stage .series-job-icon { width: 44px; height: 44px; background: rgba(242, 196, 109, .12); }
.series-screen.stage .series-add-ref { flex: none; white-space: nowrap; }
.series-screen.stage .series-refs-head .series-label { margin: 0; }
.series-screen.stage .series-ref-photo { display: inline-flex; align-items: center; justify-content: center; }
.series-screen.stage .series-ref-del { display: grid; place-items: center; padding: 0; }
.series-screen.stage .series-range { margin: 4px 0 0; }
.series-screen.stage .series-input, .series-screen.stage .series-ref-name, .series-screen.stage .series-asset-instruction, .series-screen.stage button { font-family: inherit; }
.series-screen.stage .series-frame-refs { color: var(--s-ink2); font-style: italic; }

/* Оживи фото / Фото для аватара / Фото поёт-говорит / Голосовой ассистент — тот же вид «Тёплой сцены»; логика и порядок шагов не тронуты */
.stage .mode-cards { gap: 10px; margin-bottom: 10px; }
.stage .mode-card { min-height: 104px; padding: 12px 6px; border-radius: 16px; border: 1.5px solid var(--s-line); background: rgba(40, 19, 21, .92); color: var(--s-ink); }
.stage .mode-card.is-on { border-color: #f7d58c; background: linear-gradient(160deg, #f7d58c, #e2a94a); color: #2a1408; }
.stage .mode-card-icon { font-size: 28px; }
.stage .mode-card-title { font-size: 15px; font-weight: 700; letter-spacing: 0; }
.stage .heygen-soon { font-size: 14px; background: var(--s-gold); color: #2a1408; padding: 2px 10px; }
.stage .mode-card.is-soon { opacity: .6; }
.stage .mode-hint { font-size: 15px; line-height: 1.45; color: var(--s-ink2); }
.stage .heygen-price { color: var(--s-gold); }
.stage .heygen-go, .stage .avp-go {
  min-height: 58px; border-radius: 16px; font-size: 18px; font-weight: 800; color: #2a1408;
  background: linear-gradient(160deg, #f7d58c, #e2a94a); box-shadow: 0 10px 26px rgba(226, 169, 74, .3);
}
.stage .avp-go[disabled] { background: rgba(242, 196, 109, .13); color: var(--s-mute); box-shadow: inset 0 0 0 1.5px var(--s-line); opacity: 1; }
.stage .heygen-h { font-family: var(--s-serif); font-size: 22px; font-weight: 700; color: var(--s-ink); }
.stage .heygen-list li { font-size: 16px; color: var(--s-ink2); }
.stage .heygen-list li::marker { color: var(--s-gold); }
.stage .heygen-soonnote { font-size: 15px; color: var(--s-mute); }
.stage .avp-make { min-height: 56px; border: 1.5px solid var(--s-gold); border-radius: 16px; color: var(--s-gold); background: rgba(242, 196, 109, .1); font-size: 16px; }
.stage .avp-q { font-family: var(--s-serif); font-size: 26px; font-weight: 700; line-height: 1.15; color: var(--s-ink); }
.stage .avp-opt { min-height: 56px; border-radius: 16px; border: 1.5px solid var(--s-line); background: rgba(40, 19, 21, .92); color: var(--s-ink); font-size: 18px; }
.stage .avp-opt:active { background: rgba(242, 196, 109, .16); }
.stage .avp-skip { min-height: 48px; font-size: 16px; color: var(--s-mute); }
.stage .avp-img { border-radius: 18px; border: 2px solid var(--s-line); box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.stage .avp-again { min-height: 52px; border-radius: 16px; border: 1.5px solid var(--s-line); background: transparent; color: var(--s-ink); font-size: 16px; }
.stage .avp-idea { border: 1.5px solid var(--s-line); border-radius: 16px; background: rgba(0, 0, 0, .34); color: var(--s-ink); font-family: inherit; font-size: 17px; }
.stage .avp-idea:focus { outline: 0; border-color: var(--s-gold); box-shadow: 0 0 0 3px rgba(242, 196, 109, .22); }
.stage .avp-label, .stage .mood-cap { font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--s-gold); }
.stage .avp-attach { min-height: 64px; border: 1.5px dashed var(--s-gold); border-radius: 16px; color: var(--s-ink); background: linear-gradient(135deg, rgba(242, 196, 109, .12), rgba(40, 19, 21, .92)); font-size: 17px; }
.stage .hg-chip { min-height: 46px; padding: 0 16px; border-radius: 23px; font-size: 15px; border: 1.5px solid var(--s-line); background: rgba(40, 19, 21, .92); color: var(--s-ink); }
.stage .hg-chip.is-on { border-color: #f7d58c; background: linear-gradient(160deg, #f7d58c, #e2a94a); color: #2a1408; font-weight: 800; }
.stage .hg-dice { width: 52px; min-height: 46px; border-radius: 23px; border: 1.5px solid var(--s-gold); background: rgba(242, 196, 109, .1); }
.stage .hg-warn { font-size: 14px; color: var(--s-gold); }

/* Голосовой ассистент (.avatar-screen.stage) */
.avatar-screen.stage { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
.avatar-screen.stage .avatar-intro { padding: 16px; border-radius: 18px; border: 1.5px solid var(--s-line); background: linear-gradient(135deg, rgba(242, 196, 109, .12), rgba(40, 19, 21, .92)); font-size: 15px; color: var(--s-ink2); }
.avatar-screen.stage .avatar-intro strong { font-family: var(--s-serif); font-size: 20px; font-weight: 700; color: var(--s-ink); }
.avatar-screen.stage .avatar-back-btn { width: 46px; height: 46px; border-radius: 23px; border: 1.5px solid var(--s-line); color: var(--s-gold); font-size: 22px; display: grid; place-items: center; padding: 0; }
.avatar-screen.stage .avatar-step-dot { height: 6px; border-radius: 3px; background: rgba(242, 196, 109, .14); }
.avatar-screen.stage .avatar-step-dot.active { background: linear-gradient(90deg, #f7d58c, #e2a94a); }
.avatar-screen.stage .avatar-step-dot.done { background: rgba(242, 196, 109, .55); }
.avatar-screen.stage .avatar-card { padding: 18px 16px; border-radius: 20px; border: 1.5px solid var(--s-line); background: var(--s-card); }
.avatar-screen.stage .avatar-card h3 { font-family: var(--s-serif); font-size: 20px; font-weight: 700; color: var(--s-ink); }
.avatar-screen.stage .avatar-optional { font-family: inherit; font-size: 14px; color: var(--s-mute); }
.avatar-screen.stage .avatar-file-btn { min-height: 56px; border-radius: 16px; border: 1.5px dashed var(--s-gold); color: var(--s-ink); font-size: 17px; font-weight: 700; background: linear-gradient(135deg, rgba(242, 196, 109, .12), rgba(40, 19, 21, .92)); }
.avatar-screen.stage .avatar-skip-btn { min-height: 52px; font-size: 16px; }
.avatar-screen.stage .avatar-skip-btn.active { border-color: var(--s-gold); background: rgba(242, 196, 109, .16); color: var(--s-gold); }
.avatar-screen.stage .avatar-hint, .avatar-screen.stage .avatar-kb-hint { font-size: 14px; line-height: 1.45; color: var(--s-mute); }
.avatar-screen.stage .avatar-kb-label { font-size: 14px; font-weight: 800; letter-spacing: .1em; color: var(--s-gold); }
.avatar-screen.stage .avatar-textarea { min-height: 120px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--s-line); background: rgba(0, 0, 0, .34); color: var(--s-ink); font-family: inherit; font-size: 17px; line-height: 1.5; }
.avatar-screen.stage .avatar-textarea:focus { outline: 0; border-color: var(--s-gold); box-shadow: 0 0 0 3px rgba(242, 196, 109, .22); }
.avatar-screen.stage .avatar-kb-item { min-height: 48px; border-radius: 14px; border: 1.5px solid var(--s-line); background: rgba(0, 0, 0, .3); color: var(--s-ink); font-size: 15px; }
.avatar-screen.stage .avatar-kb-name { font-size: 15px; }
.avatar-screen.stage .avatar-kb-meta { font-size: 14px; color: var(--s-mute); }
.avatar-screen.stage .avatar-kb-del { min-width: 44px; min-height: 44px; }
.avatar-screen.stage .avatar-tab { min-height: 46px; border-radius: 23px; border: 1.5px solid var(--s-line); color: var(--s-ink); font-size: 15px; }
.avatar-screen.stage .avatar-tab.active { background: linear-gradient(160deg, #f7d58c, #e2a94a); color: #2a1408; border-color: #f7d58c; }
.avatar-screen.stage .avatar-cost-box { padding: 14px 16px; border-radius: 18px; border: 1.5px solid var(--s-gold); background: rgba(242, 196, 109, .1); font-size: 16px; color: var(--s-ink); }
.avatar-screen.stage .avatar-cost-box strong { font-family: var(--s-serif); font-size: 24px; color: var(--s-gold); }
.avatar-screen.stage .avatar-generate-btn { min-height: 58px; border-radius: 16px; font-size: 18px; font-weight: 800; color: #2a1408; background: linear-gradient(160deg, #f7d58c, #e2a94a); box-shadow: 0 10px 26px rgba(226, 169, 74, .3); }
.avatar-screen.stage .avatar-generate-btn:disabled { background: rgba(242, 196, 109, .13); color: var(--s-mute); box-shadow: inset 0 0 0 1.5px var(--s-line); opacity: 1; }
.avatar-screen.stage .avatar-nav-row .outline-btn, .avatar-screen.stage .avatar-nav-row .primary-btn { min-height: 56px; }
.avatar-screen.stage .avatar-android-banner { border-radius: 18px; border: 1.5px solid var(--s-line); background: var(--s-card); }
.avatar-screen.stage .avatar-android-banner p { font-size: 15px; color: var(--s-ink2); }
.avatar-screen.stage .avatar-open-browser-btn { min-height: 48px; border-radius: 16px; font-size: 16px; }
.avatar-screen.stage .avatar-live-status { font-size: 16px; color: var(--s-ink2); }
.avatar-screen.stage .avatar-ctrl-btn { min-width: 48px; min-height: 48px; }
.avatar-screen.stage .avatar-stop-btn { min-height: 52px; font-size: 16px; }
.avatar-screen.stage .avatar-tiktok-toggle span { font-size: 15px; color: var(--s-ink2); }
.stage[data-screen="avphoto"] .mode-card { min-height: 72px; justify-content: center; }
.avatar-screen.stage .avatar-skip-btn { font-size: 15px; font-weight: 600; padding: 0 8px; white-space: normal; line-height: 1.2; }
.avatar-screen.stage .avatar-kb-label { letter-spacing: .03em; margin-bottom: 8px; }
.avatar-screen.stage .avatar-textarea { font-size: 16px; }
.avatar-screen.stage .avatar-hint { margin-bottom: 12px; }

/* Игры: хаб «Игры», «Проверить удачу», колесо, 18+ перед слотом. Сами сцены игр (колесо, Lucky Spins, Миллионер) — со своей графикой, не трогаем */
.games-ov.stage { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
.games-ov.stage .games-back { min-height: 46px; padding: 0 18px; border-radius: 23px; background: transparent; border: 1.5px solid var(--s-line); color: var(--s-gold); font-size: 16px; font-weight: 700; }
.games-ov.stage .games-title { font-family: var(--s-serif); font-size: 28px; font-weight: 700; letter-spacing: -.015em; color: var(--s-ink); }
.games-ov.stage .games-card { border-radius: 20px; border: 1.5px solid var(--s-line); background: linear-gradient(135deg, rgba(242, 196, 109, .1), rgba(40, 19, 21, .92)); box-shadow: none; color: var(--s-ink); }
.games-ov.stage .games-txt strong { font-family: var(--s-serif); font-size: 23px; font-weight: 700; color: var(--s-ink); }
.games-ov.stage .games-txt small { font-size: 15px; opacity: 1; color: var(--s-ink2); }
.games-ov.stage .games-mil { border-color: var(--s-gold); box-shadow: 0 0 24px rgba(242, 196, 109, .18); }
.games-ov.stage .games-mil strong, .games-ov.stage .games-txt small.games-mil-sub { color: var(--s-gold); }
.games-ov.stage .games-new { font-size: 14px; padding: 2px 9px; background: var(--s-gold); color: #2a1408; }
.luck-screen.stage { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
.luck-screen.stage .luck-title { font-family: var(--s-serif); font-size: 28px; font-weight: 700; color: var(--s-ink); background: none; -webkit-text-fill-color: var(--s-ink); }
.luck-screen.stage .luck-subtitle { font-size: 16px; line-height: 1.45; max-width: 320px; color: var(--s-ink2); }
.luck-screen.stage .luck-card { min-height: 100px; padding: 18px 16px; border-radius: 20px; border: 1.5px solid var(--s-line); background: linear-gradient(135deg, rgba(242, 196, 109, .1), rgba(40, 19, 21, .92)); }
.luck-screen.stage .luck-card-glow { opacity: .5; }
.luck-screen.stage .luck-card-body strong { font-family: var(--s-serif); font-size: 21px; font-weight: 700; color: var(--s-ink); }
.luck-screen.stage .luck-card-body small { font-size: 15px; line-height: 1.4; color: var(--s-ink2); }
.luck-screen.stage .luck-card-badge { font-size: 14px; padding: 3px 12px; background: var(--s-gold); color: #2a1408; border: 0; }
.luck-screen.stage .luck-card-arrow { color: var(--s-gold); font-size: 30px; }
.luck-screen.stage .luck-card-icon { background: rgba(0, 0, 0, .35); border: 1.5px solid var(--s-line); }
#wheelModal .sheet-panel { background: radial-gradient(90% 30% at 50% 0, rgba(80, 22, 30, .85), transparent 70%), linear-gradient(#1b0c10, #110708 70%); border: 1.5px solid var(--s-line); border-bottom: 0; color: var(--s-ink); }
#wheelModal .sheet-head-row h2 { font-family: var(--s-serif); font-size: 25px; font-weight: 700; color: var(--s-ink); }
#wheelModal .icon-btn { width: 46px; height: 46px; border-radius: 23px; border: 1.5px solid var(--s-line); background: transparent; color: var(--s-gold); }
#wheelModal .wheel-status { font-size: 15px; color: var(--s-ink2); }
#wheelModal .wheel-spin-btn { min-height: 58px; border-radius: 16px; font-size: 18px; font-weight: 800; color: #2a1408; background: linear-gradient(160deg, #f7d58c, #e2a94a); box-shadow: 0 10px 26px rgba(226, 169, 74, .3); }
#wheelModal .wheel-spin-btn:disabled, #wheelModal .wheel-spin-btn.disabled { background: rgba(242, 196, 109, .13); color: var(--s-mute); box-shadow: inset 0 0 0 1.5px var(--s-line); opacity: 1; }
#wheelModal .wheel-result { font-size: 17px; background: var(--s-card); border: 1.5px solid var(--s-line); color: var(--s-ink); }
#wheelModal .wheel-result h3 { font-family: var(--s-serif); color: var(--s-gold); }
.slot-terms-card { border-color: var(--s-gold); }
.slot-terms-title { font-family: var(--s-serif); font-size: 24px; }
.slot-terms-lead { font-size: 15px; }
.slot-terms-check { font-size: 15px; }
.slot-terms-check input { width: 24px; height: 24px; }
.slot-terms-read, .slot-terms-accept { min-height: 52px; }
.luck-screen.stage .luck-card { overflow: visible; margin-top: 8px; }
.luck-screen.stage .luck-card-badge { top: -13px; right: 16px; }
.luck-screen.stage .luck-card-glow { border-radius: 20px; }
.slot-terms-accept { color: #2a1408; background: linear-gradient(160deg, #f7d58c, #e2a94a); font-weight: 800; border: 0; }
.slot-terms-accept:disabled { background: rgba(242, 196, 109, .13); color: var(--s-mute); box-shadow: inset 0 0 0 1.5px var(--s-line); opacity: 1; }
.slot-terms-read { border: 1.5px solid var(--s-line); color: var(--s-ink); }

/* ── Профиль / История / Обучение (.stage на <main data-screen="profile|history|learn">) ── */
.stage .profile-tabs { background: rgba(0, 0, 0, .34); border: 1.5px solid var(--s-line); padding: 4px; gap: 4px; }
.stage .profile-tab { min-height: 46px; padding: 0 4px; font-size: 14px; font-weight: 700; color: var(--s-ink2); white-space: nowrap; }
.stage .profile-tab.active { background: linear-gradient(160deg, #f7d58c, #e2a94a); color: #2a1408; font-weight: 800; }
.stage .profile-card { background: var(--s-card); border: 1.5px solid var(--s-line); border-radius: 20px; }
.stage .avatar { background: linear-gradient(160deg, #f7d58c, #e2a94a); color: #2a1408; font-family: var(--s-serif); box-shadow: 0 8px 22px rgba(226, 169, 74, .3); }
.stage .profile-card h2 { font-family: var(--s-serif); font-size: 24px; font-weight: 700; color: var(--s-ink); }
.stage .profile-card p { font-size: 15px; color: var(--s-mute); }
.stage .profile-stats { background: var(--s-card); border: 1.5px solid var(--s-line); border-radius: 20px; padding: 4px 18px; }
.stage .profile-stat-row { min-height: 48px; padding: 8px 0; font-size: 16px; border-bottom: 1px solid rgba(242, 196, 109, .14); color: var(--s-ink2); }
.stage .profile-stat-row strong { color: var(--s-gold); font-family: var(--s-serif); font-size: 18px; }
.stage .gender-pick-title { font-size: 15px; font-weight: 800; letter-spacing: .08em; color: var(--s-gold); text-transform: uppercase; }
.stage .gender-btn { min-height: 56px; border: 1.5px solid var(--s-line); border-radius: 16px; background: rgba(40, 19, 21, .92); color: var(--s-ink); font-size: 17px; font-weight: 700; }
.stage .gender-btn.is-active { background: linear-gradient(160deg, #f7d58c, #e2a94a); border-color: #f7d58c; color: #2a1408; font-weight: 800; }
.stage .luck-entry-btn { min-height: 64px; border: 1.5px solid var(--s-line); border-radius: 16px; background: linear-gradient(135deg, rgba(242, 196, 109, .12), rgba(40, 19, 21, .92)); color: var(--s-ink); }
.stage .luck-entry-btn span:nth-child(2) strong { color: var(--s-ink); font-size: 17px; }
.stage .luck-entry-btn small { font-size: 14px; }
.stage .luck-entry-btn span:last-child { color: var(--s-gold); font-size: 22px; }
.stage .profile-channel-link { min-height: 52px; font-size: 16px; }
.stage .tier-banner { background: rgba(242, 196, 109, .12); border: 1.5px solid var(--s-gold); color: var(--s-gold); font-size: 15px; font-weight: 700; border-radius: 14px; }
.stage .menu-row { min-height: 52px; padding: 12px 16px; font-size: 16px; background: var(--s-card); border: 1.5px solid var(--s-line); border-radius: 16px; color: var(--s-ink); }
.stage .menu-row span:last-child { color: var(--s-gold); font-weight: 700; }
.stage .bonus-card, .stage .ref-card { background: var(--s-card); border: 1.5px solid var(--s-line); border-radius: 20px; padding: 16px; }
.stage .channel-card .channel-desc { font-size: 15px; color: var(--s-ink2); }
.stage .channel-actions, .stage .ref-actions { gap: 10px; }
.stage .channel-actions .primary-btn, .stage .channel-actions .outline-btn, .stage .ref-actions .primary-btn, .stage .ref-actions .outline-btn { margin-top: 0; min-height: 52px; padding: 8px 10px; font-size: 15px; white-space: normal; }
.stage .promo-input { min-width: 0; width: 100%; box-sizing: border-box; min-height: 52px; font-size: 17px; background: rgba(0, 0, 0, .34); color: var(--s-ink); border: 1.5px solid var(--s-line); border-radius: 16px; }
.stage .promo-input:focus { outline: 0; border-color: var(--s-gold); box-shadow: 0 0 0 3px rgba(242, 196, 109, .22); }
.stage .promo-btn { margin-top: 0; min-height: 52px; min-width: 72px; padding: 0 16px; font-size: 17px; }
.stage .promo-msg { font-size: 14px; }
.stage .topup-item { font-size: 15px; border-bottom-color: rgba(242, 196, 109, .14); color: var(--s-ink2); }
.stage .bonus-card-hint, .stage .charge-prompt { font-size: 14px; }
.stage .topup-profile-btn, .stage #pricingCompareBtnProfile { min-height: 52px; font-size: 16px; }
.stage .ref-stat { background: var(--s-card); border: 1.5px solid var(--s-line); border-radius: 18px; }
.stage .ref-stat strong { font-family: var(--s-serif); font-size: 28px; color: var(--s-gold); }
.stage .ref-stat span { font-size: 14px; color: var(--s-mute); }
.stage .milestone-row { background: var(--s-card); border: 1.5px solid var(--s-line); border-radius: 14px; padding: 12px 14px; font-size: 15px; color: var(--s-ink2); }
.stage .ref-progress, .stage .ref-hint { font-size: 14px; }
.stage .ref-link { font-size: 15px; color: var(--s-ink); opacity: 1; }
.stage .history-filters { gap: 6px; padding-bottom: 2px; }
.stage .history-filter { min-height: 46px; padding: 0 14px; font-size: 15px; font-weight: 700; color: var(--s-ink2); border: 1.5px solid var(--s-line); opacity: 1; }
.stage .history-filter.active { background: linear-gradient(160deg, #f7d58c, #e2a94a); border-color: #f7d58c; color: #2a1408; font-weight: 800; }
.stage .empty-state h2 { font-family: var(--s-serif); font-size: 26px; color: var(--s-ink); }
.stage .empty-state p { font-size: 16px; color: var(--s-mute); }
.stage .history-row { border-bottom-color: rgba(242, 196, 109, .14); }
.stage .history-meta strong { font-size: 16px; color: var(--s-ink); }
.stage .history-prompt, .stage .history-open { font-size: 14px; }
.stage .history-series-card { background: var(--s-card); border: 1.5px solid var(--s-line); border-radius: 18px; }
.stage .history-series-body strong { font-size: 15px; color: var(--s-ink); }
.stage .history-series-body small { font-size: 13px; }
.stage .learn-all { min-height: 64px; color: #2a1408; background: linear-gradient(160deg, #f7d58c, #e2a94a); box-shadow: 0 10px 26px rgba(226, 169, 74, .3); border-radius: 18px; font-size: 20px; }
.stage .learn-title { font-family: var(--s-serif); font-size: 22px; color: var(--s-ink); }
.stage .learn-topic, .stage .learn-card { min-height: 72px; background: var(--s-card); border: 1.5px solid var(--s-line); border-radius: 18px; }
.stage .learn-topic-title, .stage .learn-card-title { font-family: var(--s-serif); font-size: 19px; color: var(--s-ink); }
.stage .learn-topic-sub, .stage .learn-card-text { font-size: 15px; color: var(--s-mute); }
.stage .learn-topic-mark { color: var(--s-gold); }
.stage .learn-topic.is-done { background: rgba(242, 196, 109, .12); border-color: var(--s-gold); }
.stage .learn-topic.is-done .learn-topic-mark { color: var(--s-gold); }

/* ── Помощь (.sup-screen.stage) ── */
.sup-screen.stage { background-color: #140a0c; background-image: radial-gradient(90% 34% at 50% 0, rgba(80, 22, 30, .85), transparent 70%), linear-gradient(#1a0b0f, #110708 60%); isolation: isolate; }
body.sup-open #app { visibility: hidden; pointer-events: none; }
.sup-screen.stage .sup-top { background: linear-gradient(180deg, rgba(242, 196, 109, .10), transparent); border-bottom: 1px solid var(--s-line); }
.sup-screen.stage .sup-back { width: 46px; height: 46px; border-radius: 50%; background: rgba(242, 196, 109, .1); border: 1.5px solid var(--s-line); color: var(--s-gold); }
.sup-screen.stage .sup-ava { background: linear-gradient(160deg, #f7d58c, #e2a94a); color: #2a1408; }
.sup-screen.stage .sup-online { border-color: #1a0b0f; }
.sup-screen.stage .sup-hello-k { font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--s-gold); }
.sup-screen.stage .sup-hello-t { font-family: var(--s-serif); font-size: 22px; font-weight: 700; color: var(--s-ink); }
.sup-screen.stage .sup-agent { background: var(--s-card); border: 1.5px solid var(--s-line); }
.sup-screen.stage .sup-user { background: linear-gradient(160deg, #f7d58c, #e2a94a); color: #2a1408; font-weight: 600; }
.sup-screen.stage .sup-who { color: var(--s-gold); font-size: 14px; }
.sup-screen.stage .sup-owner { border-color: var(--s-gold); background: rgba(242, 196, 109, .1); }
.sup-screen.stage .sup-owner .sup-who { color: var(--s-gold); }
.sup-screen.stage .sup-done { border-top-color: var(--s-line); }
.sup-screen.stage .sup-typing { color: var(--s-ink2); }
.sup-screen.stage .sup-chip { min-height: 56px; background: rgba(40, 19, 21, .92); border: 1.5px solid var(--s-line); color: var(--s-ink); }
.sup-screen.stage .sup-chip:active { background: rgba(242, 196, 109, .16); }
.sup-screen.stage .sup-compose { background: rgba(26, 11, 15, .96); border-top: 1px solid var(--s-line); }
.sup-screen.stage .sup-input { background: rgba(0, 0, 0, .34); border: 1.5px solid var(--s-line); color: var(--s-ink); }
.sup-screen.stage .sup-input::placeholder { color: #a8957b; }
.sup-screen.stage .sup-input:focus { border-color: var(--s-gold); box-shadow: 0 0 0 3px rgba(242, 196, 109, .22); }
.sup-screen.stage .sup-send { min-height: 56px; background: linear-gradient(160deg, #f7d58c, #e2a94a); color: #2a1408; box-shadow: 0 10px 26px rgba(226, 169, 74, .3); }

/* ── Главная / нижнее меню / лента (ПРЕВЬЮ, ждёт «ок» владельца) ───────────── */
.stage .balance-pill { background: rgba(40, 19, 21, .92); box-shadow: inset 0 0 0 1.5px var(--s-line); color: var(--s-ink); }
.stage .balance-pill-icon { color: var(--s-gold); }
.stage .icon-btn { background: rgba(40, 19, 21, .92); border: 1.5px solid var(--s-line); border-radius: 14px; }
.stage .feed-head-title { font-family: var(--s-serif); font-size: 20px; font-weight: 700; color: var(--s-ink); }
.stage .feed-head-count { color: var(--s-mute); }
.stage .feed-tab { background: rgba(40, 19, 21, .92); border: 1px solid var(--s-line); color: var(--s-ink); font-weight: 700; }
.stage .feed-tab.is-on { background: linear-gradient(160deg, #f7d58c, #e2a94a); border-color: #f7d58c; color: #2a1408; font-weight: 800; }
.stage .feed-empty { border-color: var(--s-line); }
.stage .feed-empty-btn { background: linear-gradient(160deg, #f7d58c, #e2a94a); color: #2a1408; font-weight: 800; }

.bottom-nav {
  background: linear-gradient(to top, rgba(17, 7, 8, .97), rgba(26, 11, 15, .94));
  border-top: 1px solid var(--s-line);
  box-shadow: 0 -10px 28px rgba(0, 0, 0, .45);
}
.nav-item:not(.nav-create) { color: var(--s-mute); }
.nav-item.active { color: var(--s-gold); }
.nav-item.active small { font-weight: 800; }
.nav-create span { background: linear-gradient(160deg, #f7d58c, #e2a94a); color: #2a1408; box-shadow: 0 8px 24px rgba(242, 196, 109, .35); }
.nav-create small { color: var(--s-gold); font-weight: 800; }
.screen.stage[data-screen="home"] .brand { gap: 6px; min-width: 0; }
.screen.stage[data-screen="home"] .brand-name { font-size: 14px; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.screen.stage[data-screen="home"] .brand-icon { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 12px; font-size: 18px; }
.screen.stage[data-screen="home"] .top-bar { gap: 2px; }
.screen.stage[data-screen="home"] .top-actions { gap: 3px; }
.screen.stage[data-screen="home"] .sup-btn, .screen.stage[data-screen="home"] .lang-btn, .screen.stage[data-screen="home"] .icon-btn { flex: 0 0 auto; }
.screen.stage[data-screen="home"] .lang-btn { padding: 0 5px; min-width: 44px; gap: 2px; }
.quick-item.qg small { hyphens: manual; }
.screen.stage[data-screen="home"] .balance-pill { padding: 0 5px; gap: 2px; }
.screen.stage[data-screen="home"] .balance-pill-icon { font-size: 14px; }
.screen.stage[data-screen="home"] .balance-pill { flex: 0 0 auto; white-space: nowrap; }
.screen.stage[data-screen="home"] .balance-pill #headerBalanceValue { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ── Язык: «RU ▾» в шапке главной ─────────────────────────────────────────── */
.lang-wrap { position: relative; }
.lang-btn {
  min-width: 44px; min-height: 44px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center; gap: 3px;
  border-radius: 14px; background: rgba(40, 19, 21, .92); border: 1.5px solid var(--s-line); color: var(--s-ink);
  font-size: 15px; font-weight: 800; letter-spacing: .02em; cursor: pointer;
}
.lang-caret { font-size: 12px; color: var(--s-gold); }
.lang-btn[aria-expanded="true"] { border-color: var(--s-gold); }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 460; min-width: 176px; padding: 6px; border-radius: 16px;
  background: #1e0f12; border: 1.5px solid var(--s-line); box-shadow: 0 14px 34px rgba(0, 0, 0, .6);
}
.lang-menu[hidden] { display: none; }
.lang-item {
  width: 100%; min-height: 48px; padding: 0 12px; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 12px;
  background: transparent; color: var(--s-ink); cursor: pointer; text-align: left;
}
.lang-item b { font-size: 20px; font-weight: 800; width: 30px; letter-spacing: .02em; }
.lang-item span { font-size: 14px; color: var(--s-mute); }
.lang-item.is-on { background: linear-gradient(160deg, #f7d58c, #e2a94a); color: #2a1408; }
.lang-item.is-on span { color: #5a3512; font-weight: 700; }

/* Первый вход: выбор языка */
.lang-first { position: fixed; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center;
  padding: 24px 16px; background: radial-gradient(120% 80% at 50% 0%, #4a1626 0%, #240a12 55%, #14060a 100%);
  color: #f6e7c8; transition: opacity .25s ease; overflow-y: auto; }
.lang-first.is-out { opacity: 0; pointer-events: none; }
.lang-first-in { width: 100%; max-width: 360px; text-align: center; }
.lang-first-logo { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 20px; display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: #2a1408; background: linear-gradient(160deg,#f7d58c,#e2a94a); box-shadow: 0 8px 28px rgba(226,169,74,.35); }
.lang-first h1 { margin: 0 0 6px; font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 700; color: #f7d58c; }
.lang-first p { margin: 0 0 22px; font-size: 16px; color: rgba(246,231,200,.8); }
.lang-first-list { display: grid; gap: 12px; }
.lang-first-btn { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 64px; padding: 0 20px; border-radius: 18px; cursor: pointer;
  border: 1px solid rgba(226,169,74,.45); background: rgba(255,255,255,.06); color: #f6e7c8; font: inherit; font-size: 20px; font-weight: 700; text-align: left; }
.lang-first-btn:active { transform: scale(.98); background: linear-gradient(160deg,#f7d58c,#e2a94a); color: #2a1408; }
.lang-first-btn.is-hint { border-color: #f7d58c; box-shadow: 0 0 0 1px rgba(247,213,140,.4) inset; }
.lang-first-flag { font-size: 34px; line-height: 1; }

/* Сетка моделей Фото/Видео */
#genScreen.gen-pick .gen-body > :not(#modelGridWrap), #genScreen.gen-pick .gen-sticky-bar { display: none !important; }
#genScreen.gen-pick:not(.chat-mode) .gen-body { overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; touch-action: pan-y; padding-bottom: 0; }
.mg-wrap { padding: 4px 0 calc(28px + env(safe-area-inset-bottom, 0px)); }
.mg-title { margin: 0 0 12px; font-family: var(--s-serif); font-size: 22px; font-style: italic; color: var(--s-ink); }
.mg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mg-tile { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; padding: 0; overflow: hidden; border-radius: 18px; cursor: pointer;
  border: 1.5px solid var(--s-line); background: #1b0d10; color: #fff; text-align: left; font: inherit; }
.mg-tile.is-cur { border-color: #f7d58c; box-shadow: 0 0 0 1px rgba(247,213,140,.55) inset; }
.mg-tile:active { transform: scale(.98); }
.mg-tile.is-maint { filter: grayscale(.7); }
.mg-media { position: absolute; inset: 0; }
.mg-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.mg-slide.on { opacity: 1; }
.mg-slide img, .mg-slide video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mg-stub img { animation: mg-kb 9s ease-in-out infinite alternate; transform-origin: 50% 40%; }
@keyframes mg-kb { from { transform: scale(1); } to { transform: scale(1.14); } }
.mg-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,5,8,.94) 0%, rgba(14,5,8,.78) 34%, rgba(14,5,8,0) 66%); }
.mg-txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px 11px; display: block; }
.mg-txt b { display: block; font-size: 18px; line-height: 1.15; font-weight: 800; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mg-txt small { display: block; margin-top: 3px; font-size: 14px; line-height: 1.2; font-weight: 600; color: #f6dfa8;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mg-new { position: absolute; top: 8px; right: 8px; z-index: 2; padding: 2px 7px; border-radius: 8px; background: #cf3036; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.mg-maint { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 2px 7px; border-radius: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; font-weight: 700; }
.mg-cur { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 8px 8px 16px; border-radius: 16px;
  background: rgba(40,19,21,.92); border: 1.5px solid var(--s-line); }
.mg-cur-txt { flex: 1 1 auto; min-width: 0; }
.mg-cur-txt b { font-size: 18px; color: var(--s-ink); }
.mg-cur-txt small { display: block; margin-top: 2px; font-size: 14px; color: #f6dfa8; }
.mg-change { flex: 0 0 auto; min-height: 44px; padding: 0 16px; border-radius: 14px; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer;
  color: #2a1408; border: 0; background: linear-gradient(160deg, #f7d58c, #e2a94a); }
@media (prefers-reduced-motion: reduce) { .mg-stub img { animation: none; } .mg-slide { transition: none; } }
