/* headtalk Mini App mockup. No project DESIGN.md yet: every colour is a Telegram theme variable
   (core.telegram.org/bots/webapps#themeparams) with a light/dark fallback for a plain browser.
   The only accent is the Telegram button colour. Preview colours (subtitle colours) are content, not chrome. */

/* ---------- fonts of the 14 subtitle styles (assets/fonts/, OFL; names = skill/styles/*.json) ---------- */
@font-face { font-family: "ht-oswald"; src: url("fonts/Oswald[wght].ttf"); font-weight: 200 700; }
@font-face { font-family: "ht-rubik"; src: url("fonts/Rubik[wght].ttf"); font-weight: 300 900; }
@font-face { font-family: "ht-lobster"; src: url("fonts/Lobster-Regular.ttf"); }
@font-face { font-family: "ht-montserrat"; src: url("fonts/Montserrat[wght].ttf"); font-weight: 100 900; }
@font-face { font-family: "ht-yeseva"; src: url("fonts/YesevaOne-Regular.ttf"); }
@font-face { font-family: "ht-poiret"; src: url("fonts/PoiretOne-Regular.ttf"); }
@font-face { font-family: "ht-ptserif"; src: url("fonts/PT_Serif-Web-Regular.ttf"); }
@font-face { font-family: "ht-playfair-i"; src: url("fonts/PlayfairDisplay-Italic[wght].ttf"); font-weight: 400 900; font-style: italic; }
@font-face { font-family: "ht-raleway"; src: url("fonts/Raleway[wght].ttf"); font-weight: 100 900; }
@font-face { font-family: "ht-amatic"; src: url("fonts/AmaticSC-Bold.ttf"); }
/* the owner's font pack (skill/styles, docs/fonts.md) */
@font-face { font-family: "ht-p-bebasneuepro-bold"; src: url("fonts/BebasNeuePro-Bold.private.ttf"); font-display: swap; }
@font-face { font-family: "ht-p-bebasneuepro-expandedlight"; src: url("fonts/BebasNeuePro-ExpandedLight.private.ttf"); font-display: swap; }
@font-face { font-family: "ht-p-benzin-extrabold"; src: url("fonts/Benzin-ExtraBold.private.ttf"); font-display: swap; }
@font-face { font-family: "ht-p-benzin-regular"; src: url("fonts/Benzin-Regular.private.ttf"); font-display: swap; }
@font-face { font-family: "ht-p-coolveticahv-regular"; src: url("fonts/CoolveticaHv-Regular.private.ttf"); font-display: swap; }
@font-face { font-family: "ht-p-coolveticalt-regular"; src: url("fonts/CoolveticaLt-Regular.private.ttf"); font-display: swap; }
@font-face { font-family: "ht-p-cygrotesk-grandblack"; src: url("fonts/CyGrotesk-GrandBlack.private.otf"); font-display: swap; }
@font-face { font-family: "ht-p-cygrotesk-keylight"; src: url("fonts/CyGrotesk-KeyLight.private.otf"); font-display: swap; }
@font-face { font-family: "ht-p-dexapro-300-light"; src: url("fonts/DexaPro-300-Light.private.otf"); font-display: swap; }
@font-face { font-family: "ht-p-dexapro-900-black"; src: url("fonts/DexaPro-900-Black.private.otf"); font-display: swap; }
@font-face { font-family: "ht-p-drukcyr-heavy"; src: url("fonts/DrukCyr-Heavy.private.ttf"); font-display: swap; }
@font-face { font-family: "ht-p-druktextcyr-medium"; src: url("fonts/DrukTextCyr-Medium.private.ttf"); font-display: swap; }
@font-face { font-family: "ht-p-headingnow-53book"; src: url("fonts/HeadingNow-53Book.private.otf"); font-display: swap; }
@font-face { font-family: "ht-p-headingnow-58heavy"; src: url("fonts/HeadingNow-58Heavy.private.otf"); font-display: swap; }
@font-face { font-family: "ht-p-heathergreen"; src: url("fonts/Heathergreen.private.otf"); font-display: swap; }
@font-face { font-family: "ht-p-helvetica"; src: url("fonts/Helvetica.private.ttf"); font-display: swap; }
@font-face { font-family: "ht-p-helveticaneueblack"; src: url("fonts/HelveticaNeueBlack.private.otf"); font-display: swap; }
@font-face { font-family: "ht-p-lato-black"; src: url("fonts/Lato-Black.ttf"); font-display: swap; }
@font-face { font-family: "ht-p-lato-light"; src: url("fonts/Lato-Light.ttf"); font-display: swap; }
@font-face { font-family: "ht-p-moniqa-blackdisplay"; src: url("fonts/Moniqa-BlackDisplay.ttf"); font-display: swap; }
@font-face { font-family: "ht-p-moniqa-condensedparagraph"; src: url("fonts/Moniqa-CondensedParagraph.ttf"); font-display: swap; }
@font-face { font-family: "ht-p-nunito-black"; src: url("fonts/Nunito-Black.ttf"); font-display: swap; }
@font-face { font-family: "ht-p-nunito-light"; src: url("fonts/Nunito-Light.ttf"); font-display: swap; }
@font-face { font-family: "ht-p-ruberoid-extrabold"; src: url("fonts/Ruberoid-ExtraBold.private.otf"); font-display: swap; }
@font-face { font-family: "ht-p-ruberoid-light"; src: url("fonts/Ruberoid-Light.private.otf"); font-display: swap; }
@font-face { font-family: "ht-p-samarino-light"; src: url("fonts/SAMarino-Light.private.otf"); font-display: swap; }
@font-face { font-family: "ht-p-samarino-medium"; src: url("fonts/SAMarino-Medium.private.otf"); font-display: swap; }
@font-face { font-family: "ht-p-savredina-thinultracondensed"; src: url("fonts/SAVredina-ThinUltraCondensed.private.otf"); font-display: swap; }
@font-face { font-family: "ht-badscript"; src: url("fonts/BadScript-Regular.ttf"); }
@font-face { font-family: "ht-cormorant-i"; src: url("fonts/CormorantGaramond-Italic[wght].ttf"); font-weight: 300 700; font-style: italic; }
@font-face { font-family: "ht-manrope"; src: url("fonts/Manrope[wght].ttf"); font-weight: 200 800; }
@font-face { font-family: "ht-caveat"; src: url("fonts/Caveat[wght].ttf"); font-weight: 400 700; }
@font-face { font-family: "ht-kurale"; src: url("fonts/Kurale-Regular.ttf"); }
@font-face { font-family: "ht-comfortaa"; src: url("fonts/Comfortaa[wght].ttf"); font-weight: 300 700; }
@font-face { font-family: "ht-marck"; src: url("fonts/MarckScript-Regular.ttf"); }
@font-face { font-family: "ht-unbounded"; src: url("fonts/Unbounded[wght].ttf"); font-weight: 200 900; }

/* ---------- tokens ---------- */
/* Owner 👤 2026-11-04: for the closed test look like brandly's own screens (references/brandly/app/01–10) — light grey
   page, white cards, near-black selected chips and switches, the yellow→pink→purple gradient on the main actions.
   Content stays light inside a dark Telegram (as brandly does); Telegram draws its own dark header above the page.
   Hex values are read by eye off those screenshots (🤖), not brandly's source. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --page: #f0f0f5;
  --section: #ffffff;
  --text: #15151c;
  --hint: #8c8c99;
  --link: #15151c;
  --ink: #17171f;                 /* selected chip, switch on, radio, done check */
  --grad: linear-gradient(100deg, #f7c75b 0%, #ef6b7e 38%, #e2418f 62%, #7b3fe0 100%);
  --btn: #e2418f;                 /* solid fallback of the gradient (shadows, focus rings) */
  --btn-text: #ffffff;
  --head: #8c8c99;
  --sep: #e8e8ee;
  --danger: #e5484d;
  --good: #3c9a5f;                /* «выгода −5%» */
  --soft: rgba(21, 21, 28, .06);
  --r-section: 22px;
  --r-pill: 999px;
  --tabbar-h: 68px;
  --gutter: 16px;
}

/* ---------- base ---------- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--page); color: var(--text); }
body {
  font: 400 16px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh; overflow-x: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: var(--text); }
svg { display: block; }
#app { max-width: 480px; margin: 0 auto; padding: 0 var(--gutter) calc(var(--tabbar-h) + 32px + env(safe-area-inset-bottom)); }
body.no-tabbar #app { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }

/* ---------- header ---------- */
.top { display: flex; align-items: center; gap: 12px; padding: 14px 0 18px; min-height: 72px; }
.back { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--section); border: 1px solid var(--sep); display: grid; place-items: center; }
.top h1 { margin: 0; font-size: 28px; font-weight: 900; letter-spacing: -.02em; white-space: nowrap; }
.top .step { color: var(--hint); font-size: 13px; font-weight: 600; white-space: nowrap; margin-top: 2px; }
.top .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.top .grow.inline { flex-direction: row; align-items: center; }
.balance { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: var(--r-pill);
  background: var(--grad); color: #fff; font-weight: 800; font-size: 16px; box-shadow: 0 6px 16px rgba(226, 65, 143, .25); }
.balance svg { width: 18px; height: 18px; color: #fff; }

/* ---------- sections & rows (Telegram grouped list) ---------- */
.label { display: flex; align-items: center; gap: 8px; margin: 26px 4px 10px; color: var(--head); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.section { background: var(--section); border-radius: var(--r-section); overflow: hidden; box-shadow: 0 1px 2px rgba(21, 21, 28, .04); }
.section + .section { margin-top: 14px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 16px 10px; font-size: 21px; font-weight: 800; }
.row { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 16px; position: relative; }
.row + .row::before, .section-title + .row::before, .strip + .row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 1px solid var(--sep); }
.row .name { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 500; }
.row .value { color: var(--text); font-weight: 600; text-align: right; }
.row .value.off { color: var(--hint); font-weight: 500; }
.row.kv .name { color: var(--hint); font-weight: 400; }
.row.tap { width: 100%; text-align: left; }
.help { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1.5px solid var(--sep); color: var(--hint);
  font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.stepper { display: flex; align-items: center; gap: 2px; flex: none; }
.stepper button { width: 30px; height: 36px; display: grid; place-items: center; color: var(--hint); }
.stepper button:disabled { opacity: .3; }
.stepper span { min-width: 92px; text-align: center; font-weight: 600; }

/* switch */
.switch { flex: none; width: 51px; height: 31px; border-radius: 16px; background: var(--sep); position: relative; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch[aria-checked="true"] { background: var(--ink); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }
.dim { opacity: .4; pointer-events: none; }

/* chip strips (style / colour) */
.strip { display: flex; gap: 6px; overflow-x: auto; padding: 6px 16px 12px; scrollbar-width: none; scroll-snap-type: x proximity; position: relative; }
.strip::-webkit-scrollbar { display: none; }
.chip { flex: none; scroll-snap-align: start; padding: 0 16px; height: 42px; border-radius: var(--r-pill); display: inline-flex; align-items: center; gap: 8px;
  font-size: 17px; white-space: nowrap; color: var(--text); }
.chip.on { background: var(--ink); color: #fff; }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 25%, transparent); }

/* ---------- buttons ---------- */
.btn { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-height: 54px; padding: 8px 16px;
  border-radius: var(--r-pill); background: var(--grad); color: var(--btn-text); font-size: 18px; font-weight: 800;
  box-shadow: 0 8px 22px rgba(226, 65, 143, .28); }
.btn small { font-size: 13px; font-weight: 500; opacity: .85; }
.btn.ghost { background: var(--section); color: var(--text); box-shadow: none; border: 1px solid var(--sep); }
.btn:disabled { opacity: .45; box-shadow: none; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }
.link { display: block; margin: 14px auto 0; color: var(--link); font-size: 16px; font-weight: 700; text-align: center;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.hint { color: var(--hint); font-size: 14px; }
.center { text-align: center; }

/* ---------- home ---------- */
.hero { background: var(--section); border-radius: var(--r-section); padding: 20px 16px; }
.hero h2 { margin: 0 0 6px; font-size: 22px; line-height: 1.2; }
.hero p { margin: 0 0 16px; color: var(--hint); }
.brand { font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.mock-tag { font-size: 11px; font-weight: 700; color: var(--hint); border: 1px solid var(--sep); border-radius: 6px; padding: 2px 6px; margin-left: 6px; vertical-align: middle; }

/* reel list */
.reel { display: flex; align-items: center; gap: 12px; padding: 10px 16px; width: 100%; text-align: left; position: relative; }
.reel + .reel::before { content: ""; position: absolute; top: 0; left: 76px; right: 0; border-top: 1px solid var(--sep); }
.thumb { width: 48px; height: 72px; flex: none; border-radius: 8px; overflow: hidden; position: relative; background: #3a2f2a; }
.reel .meta { flex: 1; min-width: 0; }
.reel .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reel .s { color: var(--hint); font-size: 14px; }
.badge { flex: none; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: var(--r-pill); background: var(--soft); color: var(--hint); }
.badge.live { color: #fff; background: var(--grad); }

/* ---------- upload ---------- */
.drop { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 16px; border-radius: var(--r-section);
  border: 2px dashed var(--sep); background: var(--section); text-align: center; width: 100%; }
.drop svg { width: 44px; height: 44px; color: var(--btn); }
.drop b { font-size: 18px; }
.file { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.file .meta { flex: 1; min-width: 0; }
.file .t { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { height: 6px; border-radius: 3px; background: var(--soft); overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; background: var(--grad); border-radius: 3px; transition: width .25s linear; }
.seg { display: flex; padding: 3px; margin: 4px 16px 14px; border-radius: 10px; background: var(--soft); }
.seg button { flex: 1; height: 34px; border-radius: 8px; font-weight: 600; font-size: 15px; color: var(--hint); }
.seg button.on { background: var(--section); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* ---------- design: video row + preview ---------- */
.vidrow { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.vidrow .mini { width: 24px; height: 36px; border-radius: 5px; background: #111; flex: none; }
.vidrow .meta { flex: 1; min-width: 0; }
.vidrow .t { font-weight: 700; font-size: 17px; }
.vidrow .s { color: var(--hint); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vidrow button { color: var(--link); font-weight: 600; flex: none; }

.preview-wrap { display: flex; flex-direction: column; align-items: center; margin-top: 16px; }
.frame { position: relative; width: 210px; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 70% at 30% 20%, #8a6c58 0%, #54402f 45%, #2a1f19 100%); }
.player { position: relative; width: min(100%, 300px); }
.frame.big { width: 100%; }
.frame .person { position: absolute; left: 50%; bottom: 0; width: 86%; transform: translateX(-50%); color: #1a1411; }
.frame .shade { position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.35)); }
.cap { position: absolute; left: 6%; right: 6%; text-align: center; color: #fff; line-height: .95; transform: translateY(-50%);
  text-shadow: 0 1px 6px rgba(0,0,0,.35); pointer-events: none; }
.cap .sans { display: block; }
.cap .acc { display: block; margin-top: -.12em; color: var(--cap, #fff); }  /* only the accent takes the colour (brandly, references/subtitle-styles) */
.hookcap { position: absolute; top: 15%; left: 6%; right: 6%; text-align: center; color: #fff; line-height: .95; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.plate { position: absolute; left: 8%; right: 8%; top: 70%; display: flex; align-items: center; gap: 6px; }
.plate .ic { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.28); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.plate .pill { flex: 1; padding: 6px 10px; border-radius: 14px; background: rgba(255,255,255,.28); color: #fff; font-size: 10px; font-weight: 600; line-height: 1.2; }
.feat { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 5px; }
.feat span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.35);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); transition: opacity .2s; }
.feat span.off { opacity: .28; }
.feat svg { width: 12px; height: 12px; }
.sample { position: absolute; top: 10px; right: 10px; padding: 5px 10px; border-radius: var(--r-pill); background: rgba(0,0,0,.4); color: #fff;
  font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.preset { display: flex; align-items: center; justify-content: space-between; width: 210px; height: 48px; margin-top: 12px;
  border-radius: var(--r-pill); background: var(--section); }
.preset button { width: 48px; height: 48px; display: grid; place-items: center; color: var(--hint); }
.preset b { font-size: 18px; }
.dots { display: flex; gap: 5px; margin-top: 8px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--sep); }
.dots i.on { background: var(--text); }

/* play state on the result player */
.play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: rgba(0,0,0,.4); display: grid; place-items: center; color: #fff; }
.scrub { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.3); }
.scrub i { display: block; height: 100%; width: 0; background: #fff; border-radius: 2px; }

/* ---------- processing ---------- */
.stages { padding: 6px 0; }
.stage { display: flex; gap: 12px; padding: 10px 16px; align-items: flex-start; }
.stage .ic { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 2px solid var(--sep); display: grid; place-items: center; margin-top: 1px; }
.stage.done .ic { background: var(--ink); border-color: var(--ink); color: #fff; }
.stage.run .ic { border-color: var(--btn); border-top-color: transparent; animation: spin .9s linear infinite; }
.stage .meta { flex: 1; min-width: 0; }
.stage .t { font-weight: 600; }
.stage.wait .t { color: var(--hint); }
.stage .s { color: var(--hint); font-size: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .stage.run .ic { animation: none; } }
.eta { display: flex; justify-content: space-between; align-items: baseline; padding: 16px; }
.eta b { font-size: 22px; }

/* ---------- edit ---------- */
.field { padding: 12px 16px; position: relative; }
.field + .field::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 1px solid var(--sep); }
.field .top-line { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--hint); font-size: 13px; font-weight: 600; }
.field .time { padding: 2px 7px; border-radius: 6px; background: var(--soft); color: var(--text); font-variant-numeric: tabular-nums; }
.field .changed { color: var(--btn); }
.field textarea, .field input { width: 100%; border: 1px solid var(--sep); border-radius: 10px; padding: 10px 12px; background: var(--bg); resize: none; font-size: 16px; }
.field textarea:focus, .field input:focus { outline: 2px solid var(--btn); outline-offset: -1px; border-color: transparent; }
.field .count { text-align: right; color: var(--hint); font-size: 12px; margin-top: 4px; }
.field mark { background: none; color: var(--btn); font-weight: 700; }
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--page); border-top: 1px solid var(--sep); }
.dock > * { max-width: 448px; margin: 0 auto; }

/* ---------- credits ---------- */
.bal { padding: 20px 18px 24px; display: flex; justify-content: space-between; align-items: flex-start; background: var(--grad); color: #fff; }
.bal .hint { color: rgba(255,255,255,.85); letter-spacing: .14em; text-transform: uppercase; font-size: 13px; font-weight: 800; }
.bal .link { color: #fff; text-decoration: none; }
.bal .big { font-size: 44px; font-weight: 900; line-height: 1; }
.bal .big small { font-size: 18px; font-weight: 700; color: rgba(255,255,255,.85); margin-left: 8px; }
.radio { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 2px solid var(--sep); }
.radio.on { border: 7px solid var(--ink); }
.pack .name { flex-direction: column; align-items: flex-start; gap: 0; }
.pack .amount { font-size: 24px; font-weight: 800; }
.pack .amount small { font-size: 15px; color: var(--hint); font-weight: 600; margin-left: 4px; }
.pack .sub { color: var(--hint); font-size: 14px; font-weight: 400; }
.pack .price { text-align: right; font-weight: 700; }
.pack .price small { display: block; color: var(--good); font-size: 13px; font-weight: 800; }
.tag { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--grad);
  padding: 2px 7px; border-radius: var(--r-pill); }

/* ---------- tab bar ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); display: flex; justify-content: space-around; align-items: stretch;
  background: var(--bg); border-top: 1px solid var(--sep); }
body.no-tabbar .tabbar { display: none; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--hint); font-size: 11px; font-weight: 600; }
.tab svg { width: 24px; height: 24px; }
.tab.on { color: var(--text); font-weight: 800; }
.tab.main { position: relative; }
.tab.main .disc { width: 62px; height: 62px; margin-top: -30px; border-radius: 50%; background: linear-gradient(135deg, #f7c75b 0%, #e2418f 55%, #7b3fe0 100%);
  color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(226, 65, 143, .35); }
.tab.main .disc svg { width: 26px; height: 26px; }

/* ---------- sheet ---------- */
.scrim { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 480px; max-height: 86vh; overflow-y: auto; background: var(--bg); border-radius: 20px 20px 0 0;
  padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); }
.sheet h3 { margin: 0 0 10px; font-size: 22px; font-weight: 800; }
.sheet p { color: var(--hint); margin: 8px 0 16px; }
.sheet table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sheet th, .sheet td { padding: 6px 4px; border-bottom: 1px solid var(--sep); text-align: right; }
.sheet th:first-child, .sheet td:first-child { text-align: left; color: var(--hint); }
.sheet th { font-weight: 700; }
.sheet .btn { margin-top: 16px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 0; text-align: left; border-bottom: 1px solid var(--sep); }
.opt:last-of-type { border-bottom: 0; }
.opt .meta { flex: 1; }
.opt .s { color: var(--hint); font-size: 14px; }
.opt svg { width: 24px; height: 24px; color: var(--btn); flex: none; }
.picker-input { width: 100%; height: 48px; border: 0; padding: 0; background: none; }

.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 20px); transform: translate(-50%, 20px); opacity: 0; z-index: 40;
  padding: 10px 16px; border-radius: 12px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 600; max-width: calc(100% - 32px);
  transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- full-screen errors (interview_bot convention) ---------- */
[hidden] { display: none !important; }
.fullscreen-msg { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 32px;
  background: var(--page); color: var(--hint); text-align: center; font-size: 17px; }

/* ---------- order status (Kamil's job outcomes) ---------- */
.badge.warn { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }
.status-hero { padding: 22px 16px; text-align: center; }
.status-hero .ic { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center;
  background: var(--soft); font-size: 26px; }
.status-hero h2 { margin: 0 0 6px; font-size: 21px; }
.status-hero p { margin: 0; color: var(--hint); }

/* ---------- web app (app/web): «скоро» marks on inert screens, the real player, the download link ---------- */
.soon { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 12px 14px; border-radius: 14px;
  background: var(--section); border: 1px dashed var(--sep); font-size: 14px; line-height: 1.4; color: var(--text); }
.soon-tag { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--hint);
  border: 1px solid var(--sep); border-radius: 6px; padding: 2px 6px; vertical-align: middle; }
.inert { opacity: .45; filter: saturate(.6); }
.inert * { cursor: default; }
.reel-video { display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 22px; background: #000; object-fit: contain; }
a.opt { color: inherit; text-decoration: none; }
.opt:disabled { opacity: .5; }
.seg button:disabled { opacity: .5; }

/* real file inputs live inside their label (tapping the label opens the picker natively); drag & drop highlight */
.file-pick { position: relative; cursor: pointer; }
.file-pick input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
body.dragging .drop, body.dragging .hero { outline: 2px dashed var(--accent, #7c5cff); outline-offset: 4px; }
