/* ama: the look. An app shell (sidebar, top bar, content), warm paper,
   ink, one tomato accent. Everything is built from the tokens below. */
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono-latin.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  --bg: #f6f4ef;
  --panel: #ffffff;
  --panel-2: #fbfaf7;
  --ink: #15130f;
  --ink-2: #3a362e;
  --muted: #77715f;
  --line: #e7e2d6;
  --line-2: #d9d2c2;
  --accent: #ff4d2e;
  --accent-ink: #ffffff;
  --accent-soft: #ffe4db;
  --accent-deep: #d93212;
  --good: #1f9d5a;
  --bad: #d23b3b;
  --hero: linear-gradient(135deg, #ffe7dc 0%, #fff4e6 46%, #f1ecff 100%);
  --radius: 18px;
  --radius-s: 12px;
  --shadow: 0 1px 2px rgba(21, 19, 15, .05), 0 8px 24px rgba(21, 19, 15, .06);
  --shadow-l: 0 2px 6px rgba(21, 19, 15, .06), 0 24px 60px rgba(21, 19, 15, .14);
  --side: 236px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.02em; line-height: 1.1; }
p { margin: 0; }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 18px; height: 18px; flex: none; }
.up { color: var(--good); }
.down { color: var(--bad); }
[hidden] { display: none !important; }

/* ---- shell ------------------------------------------------------------------ */
.app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 18px 14px; border-right: 1px solid var(--line); background: var(--panel); z-index: 30; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -.04em; padding: 4px 8px 18px; }
.brand svg { width: 30px; height: 30px; }
.side nav { display: grid; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink-2); font-weight: 550; font-size: 14.5px; }
.side nav a:hover { background: var(--panel-2); color: var(--ink); }
.side nav a[aria-current='page'] { background: var(--accent-soft); color: var(--accent-deep); }
.side nav a[aria-current='page'] .i { color: var(--accent); }
.side .grow { flex: 1; }
.side-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--panel-2); font-size: 13px; color: var(--muted); }
.side-card b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 4px; }
.side-foot { display: flex; align-items: center; gap: 8px; padding: 10px 12px; color: var(--muted); font-size: 13px; }
.side-foot a:hover { color: var(--ink); }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 28px; background: rgba(246, 244, 239, .86); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; min-width: 0; }
.crumbs b { color: var(--ink); font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .grow { flex: 1; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; border-radius: 10px; cursor: pointer; }
.page { padding: 28px; max-width: 1320px; width: 100%; }

/* ---- controls ----------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; transition: transform .08s ease, background .15s ease, border-color .15s ease; }
.btn:hover { border-color: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-a { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-a:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-s { height: 32px; padding: 0 12px; font-size: 13px; }
.btn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.chip.accent { background: var(--accent-soft); border-color: transparent; color: var(--accent-deep); }
.chip.ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.copy { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; height: 32px; padding: 0 12px; cursor: pointer; font-size: 12.5px; }
.copy:hover { border-color: var(--ink-2); }
.copy .i { width: 14px; height: 14px; }
.input { width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
textarea.input { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 77, 46, .14); }
select.input { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; background-size: 5px 5px; background-repeat: no-repeat; }
label.lbl { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.hint { font-size: 13px; color: var(--muted); }
.search { position: relative; display: flex; align-items: center; }
.search .i { position: absolute; left: 14px; color: var(--muted); width: 16px; height: 16px; }
.search input { padding-left: 40px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.tabs button { border: 0; background: transparent; height: 32px; padding: 0 14px; border-radius: 999px; font-weight: 600; font-size: 13px; color: var(--muted); cursor: pointer; }
.tabs button[aria-pressed='true'] { background: var(--ink); color: #fff; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.empty { padding: 28px; border: 1px dashed var(--line-2); border-radius: var(--radius); text-align: center; color: var(--muted); background: var(--panel-2); }
.c-img { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; display: inline-grid; place-items: center; background: var(--accent-soft); color: var(--accent-deep); font-weight: 800; flex: none; }
.c-img img { width: 100%; height: 100%; object-fit: cover; }
.lab { display: inline-grid; place-items: center; border-radius: 4px; overflow: hidden; flex: none; }
.lab img { width: 100%; height: 100%; object-fit: contain; }
.lab.txt { background: var(--line); font-size: 8px; font-weight: 800; }

/* ---- hero ------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 24px; align-items: center; padding: 48px 48px 40px; border-radius: 28px; background: var(--hero); border: 1px solid #f1e3d6; }
.hero h1 { font-size: clamp(44px, 6.2vw, 84px); font-weight: 850; letter-spacing: -.055em; line-height: .95; }
.hero h1 .pill { display: inline-block; padding: 0 .22em .06em; margin-top: .08em; border-radius: .26em; background: var(--accent); color: #fff; transform: rotate(-2deg); box-shadow: 0 10px 30px rgba(255, 77, 46, .35); }
.hero p.lead { margin-top: 22px; max-width: 470px; font-size: 18px; color: var(--ink-2); }
.hero .ctas { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.hero .stats { display: flex; gap: 26px; margin-top: 30px; }
.hero .stats div { display: flex; align-items: center; gap: 10px; }
.hero .stats b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.hero .stats small { color: var(--muted); font-size: 12.5px; }
.hero .stats .ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .75); }
.stack { position: relative; height: 470px; }
.phone { position: absolute; top: 50%; left: 50%; width: 236px; aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; background: #1d1b17; border: 6px solid #fff; box-shadow: var(--shadow-l); }
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; }
.phone.p1 { transform: translate(-50%, -50%) rotate(0deg); z-index: 3; }
.phone.p2 { transform: translate(-112%, -46%) rotate(-8deg) scale(.88); z-index: 2; opacity: .96; }
.phone.p3 { transform: translate(12%, -46%) rotate(8deg) scale(.88); z-index: 1; opacity: .96; }
.phone .ph-tag { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 6px; }
.phone .ph-tag .chip { background: rgba(255, 255, 255, .92); border: 0; }
.phone .ph-foot { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(21, 19, 15, .72); color: #fff; font-size: 12px; backdrop-filter: blur(6px); }
.phone .ph-foot b { display: block; font-size: 13px; }
.phone.blank { display: grid; place-items: center; color: #fff9; font-size: 13px; text-align: center; padding: 20px; background: linear-gradient(160deg, #2a2620, #14120f); }

/* ---- sections ------------------------------------------------------------------- */
.sec { margin-top: 56px; }
.sec-h { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.sec-h h2 { font-size: 30px; font-weight: 800; letter-spacing: -.04em; }
.sec-h p { color: var(--muted); margin-top: 6px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stepc { padding: 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.stepc .n { font: 700 12px var(--mono); color: var(--accent); }
.stepc h3 { font-size: 18px; font-weight: 750; }
.stepc p { color: var(--muted); font-size: 14px; }
.stepc .vis { height: 120px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); display: grid; place-items: center; padding: 14px; overflow: hidden; }
.mini-q { width: 100%; display: grid; gap: 8px; }
.mini-q div { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; }
.mini-q div b { font-weight: 650; }
.mini-q div span { font: 600 11.5px var(--mono); color: var(--accent-deep); }
.mini-plat { display: flex; gap: 10px; }
.mini-plat span { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); }
.mini-plat .i { width: 22px; height: 22px; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .search { flex: 1; min-width: 220px; }
.toolbar select.input { width: auto; min-width: 190px; }

/* ---- coin cards ------------------------------------------------------------------ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cc { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.cc:hover { transform: translateY(-2px); box-shadow: var(--shadow-l); }
.cc-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px; }
.cc-head .c-img { width: 38px; height: 38px; border-radius: 10px; }
.cc-head b { display: block; font-size: 15px; letter-spacing: -.01em; }
.cc-head small { color: var(--muted); font: 600 12px var(--mono); }
.cc-head .chip { margin-left: auto; }
.cc-body { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 0 14px 14px; }
.thumb { position: relative; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #1d1b17; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; }
.thumb .dur { position: absolute; left: 6px; bottom: 6px; padding: 2px 6px; border-radius: 6px; background: rgba(0, 0, 0, .62); color: #fff; font: 600 11px var(--mono); }
.thumb .play { position: absolute; inset: 0; display: grid; place-items: center; }
.thumb .play span { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; }
.thumb .play .i { width: 14px; height: 14px; margin-left: 2px; color: var(--ink); }
.thumb.none { display: grid; place-items: center; background: linear-gradient(160deg, #2a2620, #14120f); color: #fff9; font-size: 11px; text-align: center; padding: 8px; }
.cc-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cc-info .mc small { display: block; color: var(--muted); font-size: 11.5px; }
.cc-info .mc b { font-size: 18px; letter-spacing: -.02em; }
.quote { font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.cc-foot { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.cc-foot div { padding: 10px 12px; font-size: 12px; color: var(--muted); }
.cc-foot div + div { border-left: 1px solid var(--line); }
.cc-foot b { display: block; color: var(--ink); font-size: 13.5px; }

/* ---- clips wall -------------------------------------------------------------------- */
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.clip { position: relative; display: block; border-radius: 16px; overflow: hidden; background: #1d1b17; aspect-ratio: 9 / 16; box-shadow: var(--shadow); }
.clip img, .clip video { width: 100%; height: 100%; object-fit: cover; }
.clip .ov { position: absolute; inset: auto 0 0 0; padding: 40px 12px 12px; background: linear-gradient(to top, rgba(0, 0, 0, .78), transparent); color: #fff; font-size: 12.5px; }
.clip .ov b { display: block; font-size: 13.5px; }
.clip .top-l { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.clip .top-l .chip { background: rgba(255, 255, 255, .92); border: 0; }

/* ---- coin page ------------------------------------------------------------------------ */
.coin-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.coin-head .c-img { width: 64px; height: 64px; border-radius: 18px; font-size: 20px; }
.coin-head h1 { font-size: 30px; font-weight: 800; letter-spacing: -.04em; }
.coin-head .sub { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.coin-head .acts { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.coin-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 22px; align-items: start; }
.player { position: sticky; top: 86px; }
.screen { position: relative; aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden; background: #1d1b17; box-shadow: var(--shadow-l); }
.screen video { width: 100%; height: 100%; object-fit: cover; }
.screen .blank { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 28px; color: #fffc; background: linear-gradient(160deg, #2a2620, #14120f); }
.screen .blank b { display: block; font-size: 20px; color: #fff; margin-bottom: 6px; }
.screen .onair { position: absolute; top: 12px; left: 12px; }
.screen .onair .chip { background: rgba(255, 255, 255, .92); border: 0; }
.caption { margin-top: 14px; padding: 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.caption .who { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.caption .who b { color: var(--ink); }
.caption .q { margin-top: 8px; font-weight: 650; font-size: 15px; }
.caption .acts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.panel { padding: 20px; }
.panel + .panel { margin-top: 16px; }
.panel h3 { font-size: 17px; font-weight: 750; display: flex; align-items: center; gap: 8px; }
.panel h3 .chip { margin-left: auto; }
.ask textarea { margin-top: 12px; }
.ask .row { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: 12px; flex-wrap: wrap; }
.gate { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.gate.ok { background: #eaf7ef; border-color: #c9ead6; color: #155c37; }
.gate.need { background: var(--accent-soft); border-color: #ffd1c3; color: var(--accent-deep); }
.queue { display: grid; gap: 8px; margin-top: 14px; }
.qrow { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 12px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.qrow .pos { font: 700 12px var(--mono); color: var(--muted); padding-top: 2px; }
.qrow .who { font-size: 12.5px; color: var(--muted); }
.qrow .who b { color: var(--ink); }
.qrow .txt { margin-top: 3px; font-size: 14px; overflow-wrap: anywhere; }
.qrow .amt { font: 700 12.5px var(--mono); color: var(--accent-deep); white-space: nowrap; }
.qrow.live { background: var(--accent-soft); border-color: #ffd1c3; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.facts div { padding: 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.facts small { display: block; color: var(--muted); font-size: 12px; }
.facts b { font-size: 16px; letter-spacing: -.02em; }
.split { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--line); margin: 14px 0 8px; }
.split i { display: block; height: 100%; }
.split i:first-child { background: var(--accent); }
.split i:last-child { background: var(--ink); }
.minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 14px; }
.minis button { border: 2px solid transparent; padding: 0; border-radius: 12px; overflow: hidden; cursor: pointer; background: #1d1b17; aspect-ratio: 9 / 16; position: relative; }
.minis button[aria-pressed='true'] { border-color: var(--accent); }
.minis img { width: 100%; height: 100%; object-fit: cover; }
.minis .dur { position: absolute; left: 4px; bottom: 4px; padding: 1px 5px; border-radius: 5px; background: rgba(0, 0, 0, .6); color: #fff; font: 600 10px var(--mono); }
.plats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* ---- launch -------------------------------------------------------------------------- */
.launch { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.lstep { padding: 22px; }
.lstep + .lstep { margin-top: 16px; }
.lstep-h { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.lstep-h .n { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 700 13px var(--mono); }
.lstep-h h3 { font-size: 18px; font-weight: 750; }
.lstep-h .muted { margin-left: auto; font-size: 13px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fields .full { grid-column: 1 / -1; }
.drop { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; border: 1.5px dashed var(--line-2); background: var(--panel-2); cursor: pointer; }
.drop.drag { border-color: var(--accent); background: var(--accent-soft); }
.drop .prev { width: 72px; height: 72px; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.drop .prev img { width: 100%; height: 100%; object-fit: cover; }
.drop b { display: block; }
.drop p { color: var(--muted); font-size: 13px; }
.face-row { display: flex; gap: 16px; align-items: flex-start; }
.face-row img { width: 96px; height: 96px; border-radius: 14px; object-fit: cover; border: 1px solid var(--line); flex: none; }
.face-box { flex: 1; min-width: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.tile { text-align: left; display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--panel); cursor: pointer; }
.tile:hover { border-color: var(--line-2); }
.tile[aria-pressed='true'] { border-color: var(--accent); background: #fff8f5; box-shadow: 0 0 0 4px rgba(255, 77, 46, .1); }
.tile b { display: block; font-size: 14px; }
.tile small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; line-height: 1.35; }
.tile .em { font-size: 22px; line-height: 1; }
.results { margin-top: 8px; max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.results button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 10px 12px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.results button:hover, .results button[aria-pressed='true'] { background: var(--panel-2); }
.results small { margin-left: auto; color: var(--muted); font: 12px var(--mono); }
.summary { position: sticky; top: 86px; padding: 20px; }
.summary .preview { margin-top: 12px; display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; }
.summary .preview .face { aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, #2a2620, #14120f); display: grid; place-items: center; color: #fff8; font-size: 11px; }
.summary .preview .face img { width: 100%; height: 100%; object-fit: cover; }
.summary .preview b { display: block; font-size: 18px; }
.rows { display: grid; gap: 8px; margin-top: 14px; font-size: 13.5px; }
.rows div { display: flex; justify-content: space-between; gap: 10px; }
.checklist { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); }
.checklist li { display: flex; align-items: center; gap: 8px; }
.checklist li .i { width: 16px; height: 16px; }
.checklist li.ok { color: var(--good); }

/* ---- studio ------------------------------------------------------------------------------ */
.plat-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plat { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.plat-h { display: flex; align-items: center; gap: 10px; }
.plat-h .logo { width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.plat-h .logo .i { width: 20px; height: 20px; }
.plat-h b { display: block; font-size: 16px; }
.plat-h small { color: var(--muted); font-size: 12.5px; }
.plat .acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: auto; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.switch input { width: 36px; height: 20px; appearance: none; border-radius: 999px; background: var(--line-2); position: relative; cursor: pointer; transition: background .15s; }
.switch input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(16px); }
.ttk { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); }
.ttk + .ttk { margin-top: 10px; }
.ttk video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: #000; }
.ttk .form { display: grid; gap: 10px; align-content: start; }
.post-states { display: flex; gap: 6px; flex-wrap: wrap; }
.st-posted { background: #eaf7ef; color: #155c37; border-color: #c9ead6; }
.st-failed { background: #fdeaea; color: #8f1f1f; border-color: #f3c9c9; }
.st-pending, .st-manual { background: var(--panel-2); }

/* ---- feed ------------------------------------------------------------------------------------ */
.feed { display: grid; gap: 8px; }
.frow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); font-size: 14px; }
.frow .c-img { width: 34px; height: 34px; border-radius: 10px; font-size: 12px; }
.frow .t { min-width: 0; flex: 1; }
.frow .t small { color: var(--muted); display: block; font-size: 12.5px; }
.frow .ago { color: var(--muted); font-size: 12.5px; white-space: nowrap; }

/* ---- docs ------------------------------------------------------------------------------------- */
.doc { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 40px; }
.doc nav { position: sticky; top: 86px; align-self: start; display: grid; gap: 4px; font-size: 14px; }
.doc nav a { padding: 6px 10px; border-radius: 8px; color: var(--muted); }
.doc nav a:hover { background: var(--panel); color: var(--ink); }
.doc section { padding: 26px 0; border-bottom: 1px solid var(--line); }
.doc section:first-of-type { padding-top: 0; }
.doc h2 { font-size: 24px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 12px; display: flex; gap: 12px; align-items: baseline; }
.doc h2 .n { font: 700 13px var(--mono); color: var(--accent); }
.doc h3 { font-size: 16px; margin: 18px 0 6px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 10px; }
.doc ul { padding-left: 20px; margin: 10px 0; display: grid; gap: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.doc td, .doc th { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.page-h { margin-bottom: 24px; }
.page-h h1 { font-size: 36px; font-weight: 850; letter-spacing: -.045em; }
.page-h p { color: var(--muted); margin-top: 8px; max-width: 680px; font-size: 16px; }

/* ---- modal + toast ------------------------------------------------------------------------------ */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(21, 19, 15, .45); backdrop-filter: blur(4px); }
.modal-box { width: min(480px, 100%); padding: 24px; border-radius: 22px; background: var(--panel); box-shadow: var(--shadow-l); }
.modal-box h3 { font-size: 20px; font-weight: 800; }
.modal-box > p { color: var(--muted); margin-top: 6px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.progress { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.progress li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 14px; }
.progress li .st { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); font: 700 12px var(--mono); flex: none; }
.progress li small { display: block; font-size: 12.5px; }
.progress li.active { color: var(--ink); }
.progress li.active .st { border-color: var(--accent); color: var(--accent); }
.progress li.done { color: var(--ink); }
.progress li.done .st { background: var(--good); border-color: var(--good); color: #fff; }
.progress li.error .st { background: var(--bad); border-color: var(--bad); color: #fff; }
.progress .st .i { width: 14px; height: 14px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: var(--shadow-l); transition: opacity .2s, transform .2s; max-width: min(560px, calc(100vw - 32px)); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--bad); }
.disclaimer { margin-top: 56px; padding: 22px 0 32px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); max-width: 900px; }

/* ---- small screens ---------------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; padding: 36px 28px; }
  .stack { height: 420px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coin-grid, .launch { grid-template-columns: 1fr; }
  .player, .summary { position: static; }
  .player { max-width: 380px; width: 100%; margin: 0 auto; }
  .plat-cards { grid-template-columns: 1fr; }
  .doc { grid-template-columns: 1fr; }
  .doc nav { position: static; display: flex; flex-wrap: wrap; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow-l); }
  .side.open { transform: none; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .top { padding: 0 16px; }
  .page { padding: 16px; }
  .hero { padding: 28px 18px; border-radius: 22px; }
  .hero .stats { gap: 16px; flex-wrap: wrap; }
  .stack { height: 380px; }
  .phone { width: 190px; }
  .steps { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .top .hide-s { display: none; }
  .cc-body { grid-template-columns: 96px minmax(0, 1fr); }
}
