/* AlphaView AI signed-in pages (dashboard, sessions, resume, buy minutes).
   Phones: top bar, one column, tab bar at the bottom. From 1040px: a fixed sidebar. Same tokens as site.css. */
:root {
  --ground: #F4F7F6;        /* soft mint-white page */
  --raised: #FFFFFF;        /* cards */
  --raised-2: #EDF2F0;      /* card on a card */
  --line: #D6E0DD;          /* hairlines */
  --emerald: #047857;       /* deeper emerald, readable as text on light */
  --emerald-deep: #D7F3E6;  /* emerald wash */
  --cream: #0F1619;         /* text */
  --cream-soft: #3B4A50;    /* supporting copy */
  --cream-muted: #5F7178;   /* labels */
  --danger: #C62828;
  --sun: #E21D1D;           /* logo red, only for the live dot */
  --paper: #FFFFFF;         /* Google button */
  --paper-ink: #1F2937;
  --display: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Barlow', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --g: 16px;
  --tabbar: 64px;
  color-scheme: light;
}

/* Dark mode: only when the visitor picks it with the switch (data-theme="dark" on <html>). */
:root[data-theme="dark"] {
  --ground: #0F1619;        /* night slate, the reel's ground */
  --raised: #141D21;        /* bands and cards */
  --raised-2: #182328;      /* card on a raised band */
  --line: #263238;          /* the logo's deepest slate, hairlines */
  --emerald: #10B981;       /* the brand emerald */
  --emerald-deep: #0B3B2C;  /* emerald washed into the ground */
  --cream: #F2F5F4;         /* text */
  --cream-soft: #B9C4C8;    /* supporting copy */
  --cream-muted: #8A9AA1;   /* mono labels */
  --danger: #F87171;
  color-scheme: dark;
}
.btn-google { box-shadow: inset 0 0 0 1px var(--line); }
@media (min-width: 760px) { :root { --g: 28px; } }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--ground); color: var(--cream); font-family: var(--body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.gut { padding-left: max(var(--g), env(safe-area-inset-left, 0px)); padding-right: max(var(--g), env(safe-area-inset-right, 0px)); }
h1 { margin: 0; font-family: var(--display); font-weight: 900; text-transform: lowercase; font-size: 38px; line-height: 0.95; letter-spacing: -0.04em; text-wrap: balance; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--emerald); }
h2 { margin: 0; font-family: var(--display); font-weight: 800; text-transform: lowercase; font-size: 24px; line-height: 1; letter-spacing: -0.03em; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--emerald); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--emerald); flex: none; }
.sub { margin: 0; color: var(--cream-soft); font-size: 17px; }
.muted { color: var(--cream-muted); }


/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--raised); font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: border-color 0.15s ease, filter 0.15s ease; }
.btn:hover { border-color: var(--cream-muted); }
.btn.go { background: var(--emerald); border-color: var(--emerald); color: var(--ground); font-family: var(--display); font-weight: 800; font-size: 17px; box-shadow: 0 10px 28px -12px color-mix(in srgb, var(--emerald) 75%, transparent); }
.btn.go:hover { filter: brightness(1.06); }
.btn.sm { height: 38px; padding: 0 13px; font-size: 14px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn.danger { color: var(--danger); }
.btn svg { width: 17px; height: 17px; flex: none; }
.link { color: var(--emerald); text-decoration: none; font-weight: 600; background: none; border: 0; cursor: pointer; padding: 0; }

/* app frame */
.app { min-height: 100%; }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand img { width: 28px; height: 28px; }
.brand span { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; white-space: nowrap; }
.chip-min { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--emerald) 50%, var(--line)); background: color-mix(in srgb, var(--emerald) 8%, var(--ground)); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; cursor: pointer; }
.chip-min::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--emerald-deep); color: var(--emerald); font-weight: 800; font-family: var(--display); border: 1px solid var(--line); cursor: pointer; flex: none; }
.sidebar { display: none; }
.main { padding-block: 24px calc(var(--tabbar) + 32px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 28px; align-content: start; max-width: 1040px; }
.page { display: grid; gap: 22px; align-content: start; }
.page-head { display: grid; gap: 10px; }
.tabbar { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; height: calc(var(--tabbar) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); background: color-mix(in srgb, var(--raised) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); }
.tab { display: grid; justify-items: center; align-content: center; gap: 3px; background: none; border: 0; color: var(--cream-muted); font-size: 11.5px; font-weight: 600; cursor: pointer; }
.tab svg { width: 22px; height: 22px; }
.tab[aria-current="page"] { color: var(--emerald); }

/* cards and lists */
.card { border: 1px solid var(--line); border-radius: 16px; background: var(--raised); padding: 18px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.card.hl { border-color: color-mix(in srgb, var(--emerald) 60%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, var(--emerald) 10%, var(--raised)), var(--raised) 60%); }
.card h2 { font-size: 23px; }
.card p { margin: 0; color: var(--cream-soft); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.grid-2, .grid-3, .home-side { display: grid; gap: 12px; }
.balance { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; }
.balance b { font-family: var(--display); font-weight: 900; font-size: 52px; letter-spacing: -0.04em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.balance b small { font-size: 20px; font-weight: 700; color: var(--cream-soft); margin-left: 4px; letter-spacing: -0.01em; }
.meter { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; width: 62%; background: var(--emerald); border-radius: 6px; }
.dl-shot { border-radius: 12px; border: 1px solid var(--line); overflow: hidden; }
.sys { color: var(--cream-muted); font-size: 13.5px; }
.way { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--raised); text-decoration: none; cursor: pointer; transition: border-color 0.15s ease; }
.way:hover { border-color: color-mix(in srgb, var(--emerald) 45%, var(--line)); }
.way .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--ground); border: 1px solid var(--line); color: var(--emerald); }
.way .ico svg { width: 20px; height: 20px; }
.way b { display: block; font-weight: 700; }
.way span.t { color: var(--cream-muted); font-size: 14px; display: block; }
.way .arrow { color: var(--cream-muted); font-family: var(--mono); }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--line); color: var(--cream-soft); white-space: nowrap; }
.badge.paid { color: var(--emerald); border-color: color-mix(in srgb, var(--emerald) 45%, var(--line)); }
.badge.new { background: var(--emerald); color: var(--ground); border-color: var(--emerald); }
.sec-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

/* sessions */
.list { display: grid; border-top: 1px solid var(--line); }
.s-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding-block: 14px; border-bottom: 1px solid var(--line); background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; cursor: pointer; width: 100%; }
.s-row:hover .s-title { color: var(--emerald); }
.s-title { font-weight: 700; font-size: 17px; transition: color 0.15s ease; min-width: 0; }
.s-meta { grid-column: 1; color: var(--cream-muted); font-size: 14px; display: flex; gap: 10px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.s-row .badge { grid-row: 1; grid-column: 2; justify-self: end; }
.s-row .chev { grid-column: 2; grid-row: 2; justify-self: end; color: var(--cream-muted); font-family: var(--mono); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--raised); font-weight: 600; font-size: 14px; cursor: pointer; }
.filter[aria-pressed="true"] { border-color: var(--emerald); color: var(--emerald); background: color-mix(in srgb, var(--emerald) 8%, var(--raised)); }
.stats-mini { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.stats-mini div { padding: 12px 14px; display: grid; gap: 2px; }
.stats-mini div + div { border-left: 1px solid var(--line); }
.stats-mini b { font-family: var(--display); font-weight: 800; font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stats-mini span { color: var(--cream-muted); font-size: 12.5px; }

/* session detail */
.back { justify-self: start; display: inline-flex; gap: 8px; align-items: center; color: var(--cream-soft); background: none; border: 0; cursor: pointer; padding: 0; font-weight: 600; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); }
.seg button { height: 38px; border: 0; border-radius: 9px; background: none; font-weight: 700; font-size: 14.5px; cursor: pointer; color: var(--cream-soft); }
.seg button[aria-selected="true"] { background: var(--ground); color: var(--cream); box-shadow: inset 0 0 0 1px var(--line); }
.convo { display: grid; gap: 10px; }
.msg { max-width: 88%; border: 1px solid var(--line); border-radius: 14px; padding: 10px 13px; background: var(--raised); display: grid; gap: 3px; }
.msg .mono { color: var(--cream-muted); font-size: 10px; }
.msg.them { border-left: 3px solid var(--cream-muted); }
.msg.mine { justify-self: end; background: var(--raised-2); }
.qa { display: grid; gap: 10px; }
.qa-item { border: 1px solid var(--line); border-radius: 14px; background: var(--raised); padding: 14px; display: grid; gap: 8px; }
.qa-item .q { display: flex; gap: 8px; align-items: baseline; font-weight: 600; }
.qa-item .q::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); flex: none; transform: translateY(-1px); }
.qa-item p { margin: 0; color: var(--cream-soft); }
.prompts { display: flex; gap: 8px; flex-wrap: wrap; }
.prompt { height: 38px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--raised); font-weight: 600; font-size: 14px; cursor: pointer; }
.prompt:hover { border-color: var(--emerald); color: var(--emerald); }
.ask-box { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.input { height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--raised); padding: 0 14px; font-size: 16px; min-width: 0; }
.input::placeholder { color: var(--cream-muted); }
.ai-out { border: 1px solid color-mix(in srgb, var(--emerald) 45%, var(--line)); border-radius: 14px; padding: 16px; background: color-mix(in srgb, var(--emerald) 5%, var(--raised)); display: grid; gap: 8px; }
.ai-out ul { margin: 0; padding-left: 18px; color: var(--cream-soft); display: grid; gap: 6px; }
.confirm { border: 1px solid color-mix(in srgb, var(--danger) 50%, var(--line)); border-radius: 14px; padding: 14px; display: grid; gap: 10px; background: color-mix(in srgb, var(--danger) 6%, var(--raised)); }

/* resume */
.drop { border: 1.5px dashed color-mix(in srgb, var(--emerald) 55%, var(--line)); border-radius: 16px; padding: 26px 18px; display: grid; gap: 10px; justify-items: center; text-align: center; background: color-mix(in srgb, var(--emerald) 4%, var(--ground)); cursor: pointer; }
.drop svg { width: 30px; height: 30px; color: var(--emerald); }
.drop b { font-size: 17px; }
.file { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--raised); }
.file .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--ground); border: 1px solid var(--line); font-family: var(--mono); font-size: 10px; color: var(--emerald); }
.file b { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file span { color: var(--cream-muted); font-size: 13.5px; }
.file > div { min-width: 0; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: none; display: grid; place-items: center; cursor: pointer; color: var(--cream-muted); }
.icon-btn:hover { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 50%, var(--line)); }
.icon-btn svg { width: 17px; height: 17px; }
.tips { margin: 0; padding-left: 18px; color: var(--cream-soft); display: grid; gap: 6px; }

/* buy */
.plans { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.plans legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.plan { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; background: var(--raised); cursor: pointer; transition: border-color 0.15s ease; }
.plan:hover { border-color: color-mix(in srgb, var(--emerald) 45%, var(--line)); }
.plan input { appearance: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--cream-muted); margin: 0; display: grid; place-items: center; cursor: pointer; }
.plan input:checked { border-color: var(--emerald); }
.plan input:checked::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--emerald); }
.plan:has(input:checked) { border-color: var(--emerald); background: color-mix(in srgb, var(--emerald) 7%, var(--raised)); }
.plan-min { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-min small { font-size: 15px; font-weight: 600; color: var(--cream-soft); margin-left: 2px; }
.plan-sub { display: block; color: var(--cream-muted); font-size: 14px; margin-top: 3px; }
.plan-price { text-align: right; font-family: var(--display); font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.plan-price .mono { display: block; color: var(--cream-muted); font-size: 10px; margin-top: 4px; }
.tag { position: absolute; top: -9px; right: 12px; background: var(--emerald); color: var(--ground); font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; font-weight: 500; padding: 2px 7px; border-radius: 4px; }
.summary { display: grid; gap: 10px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; color: var(--cream-soft); font-variant-numeric: tabular-nums; }
.sum-row.total { color: var(--cream); font-weight: 800; font-family: var(--display); font-size: 22px; padding-top: 10px; border-top: 1px solid var(--line); }
.sum-row .save { color: var(--emerald); }
.code-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.applied { color: var(--emerald); font-size: 14px; display: flex; gap: 6px; align-items: center; }
.pay-note { color: var(--cream-muted); font-size: 13.5px; text-align: center; }
.done { text-align: center; justify-items: center; padding-block: 18px; }
.done .tick { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--emerald) 14%, var(--ground)); border: 1px solid color-mix(in srgb, var(--emerald) 60%, var(--line)); }
.done .tick svg { width: 34px; height: 34px; stroke: var(--emerald); }

/* home: one panel of next steps, then two quiet lists */
.ready { border: 1px solid var(--line); border-radius: 18px; background: var(--raised); padding: 18px; display: grid; gap: 14px; }
.ready-steps { list-style: none; margin: 0; padding: 0; display: grid; }
.rs { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding-block: 16px; border-top: 1px solid var(--line); }
.rs:first-child { border-top: 0; padding-top: 4px; }
.rs-num { font-family: var(--display); font-weight: 900; font-size: 46px; line-height: 0.8; color: transparent; -webkit-text-stroke: 1.3px var(--emerald); }
.rs-body { display: grid; gap: 6px; align-content: start; justify-items: start; min-width: 0; }
.rs-body b { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; line-height: 1; text-transform: lowercase; }
.rs-body p { margin: 0; color: var(--cream-soft); font-size: 15px; }
.rs-body .row { margin-top: 6px; }
.ok { color: var(--emerald); font-weight: 700; margin-right: 4px; }
.home-cols { display: grid; gap: 30px; }
.ways { display: grid; border-top: 1px solid var(--line); }
.way-link { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding-block: 13px; border-bottom: 1px solid var(--line); text-decoration: none; }
.way-link:hover b { color: var(--emerald); }
.way-link .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--emerald); }
.way-link .ico svg { width: 18px; height: 18px; }
.way-link b { display: block; font-weight: 700; transition: color 0.15s ease; }
.way-link span.t { color: var(--cream-muted); font-size: 14px; display: block; }
.way-link .arrow { color: var(--cream-muted); font-family: var(--mono); }
@media (min-width: 1040px) {
  .ready { padding: 26px 28px 28px; gap: 20px; }
  .ready-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rs { border-top: 0; padding: 0 24px; border-left: 1px solid var(--line); }
  .rs:first-child { border-left: 0; padding-left: 0; padding-top: 0; }
  .rs:last-child { padding-right: 0; }
  .home-cols { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: start; }
}


@media (min-width: 760px) {
  h1 { font-size: 48px; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: 1fr 1fr; }
}

/* computer: sidebar instead of the tab bar */
@media (min-width: 1040px) {
  .app { display: grid; grid-template-columns: 256px minmax(0, 1fr); }
  .topbar, .tabbar { display: none; }
  .sidebar { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; padding: 22px 16px; border-right: 1px solid var(--line); background: var(--raised); }
  .sidebar .brand { margin: 0 0 22px 6px; }
  .side-label { color: var(--cream-muted); margin: 0 0 6px 10px; }
  .nav { display: grid; gap: 2px; }
  .nav button { display: flex; align-items: center; gap: 11px; height: 42px; padding: 0 12px; border-radius: 10px; background: none; border: 0; color: var(--cream-soft); font-weight: 600; font-size: 15px; cursor: pointer; text-align: left; }
  .nav button svg { width: 19px; height: 19px; }
  .nav button:hover { background: var(--raised-2); color: var(--cream); }
  .nav button[aria-current="page"] { background: color-mix(in srgb, var(--emerald) 12%, var(--raised)); color: var(--cream); box-shadow: inset 2px 0 0 var(--emerald); }
  .nav button[aria-current="page"] svg { color: var(--emerald); }
  .side-bottom { margin-top: auto; display: grid; gap: 12px; }
  .side-min { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 8px; background: var(--ground); }
  .side-min b { font-family: var(--display); font-weight: 800; font-size: 26px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
  .side-min b small { font-size: 14px; color: var(--cream-soft); font-weight: 600; margin-left: 3px; }
  .me { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 6px; }
  .me div { min-width: 0; }
  .me b { display: block; font-size: 14px; }
  .me > div span { display: block; color: var(--cream-muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .main { padding-block: 44px 80px; padding-left: 48px; padding-right: 48px; gap: 34px; }
  h1 { font-size: 56px; }
  .home-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; }
  .home-side { display: grid; gap: 16px; align-content: start; }
  #all-sessions .s-row { grid-template-columns: 110px minmax(0, 1fr) 90px 90px 90px 20px; align-items: center; padding-inline: 4px; }
  #all-sessions .s-row .s-date { display: block; }
  #all-sessions .s-row .s-meta { display: contents; }
  #all-sessions .s-row .s-meta > span { color: var(--cream-soft); }
  #all-sessions .s-row .s-meta > span:first-child { display: none; }
  #all-sessions .s-row .badge { grid-row: auto; grid-column: auto; justify-self: start; }
  #all-sessions .s-row .chev { grid-row: auto; grid-column: auto; }
  .list-head { display: grid !important; grid-template-columns: 110px minmax(0, 1fr) 90px 90px 90px 20px; column-gap: 12px; padding: 0 4px 10px; color: var(--cream-muted); }
  .detail-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
}
.list-head { display: none; }
.s-date { display: none; }

/* ── production pieces ── */
html, body { height: 100%; }
.hidden { display: none !important; }
.app-loading { min-height: 100vh; display: grid; place-items: center; gap: 14px; align-content: center; color: var(--cream-muted); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--emerald); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.avatar { text-transform: uppercase; }
.sidebar .brand, .topbar .brand { color: var(--cream); }
.nav a { display: flex; align-items: center; gap: 11px; height: 42px; padding: 0 12px; border-radius: 10px; color: var(--cream-soft); font-weight: 600; font-size: 15px; text-decoration: none; }
.nav a svg { width: 19px; height: 19px; }
.nav a:hover { background: var(--raised-2); color: var(--cream); }
.nav a[aria-current="page"] { background: color-mix(in srgb, var(--emerald) 12%, var(--raised)); color: var(--cream); box-shadow: inset 2px 0 0 var(--emerald); }
.nav a[aria-current="page"] svg { color: var(--emerald); }
a.tab { text-decoration: none; }
a.tab[aria-current="page"] { color: var(--emerald); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
/* one device at a time: set on <html> before the page draws */
html[data-device="phone"] .dl-computer, html[data-device="computer"] .dl-phone { display: none !important; }
/* empty, loading and error states the page scripts write */
.empty-state-card { border: 1px dashed var(--line); border-radius: 14px; padding: 20px; text-align: center; color: var(--cream-soft); display: grid; gap: 4px; }
.empty-state-card p { margin: 0; }
.empty-state-help { color: var(--cream-muted); font-size: 14px; }
/* resume files, as resumes.js writes them */
#resumes-list { display: grid; gap: 10px; }
.resume-card-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--raised); }
.resume-card-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--ground); border: 1px solid var(--line); color: var(--emerald); }
.resume-card-icon svg { width: 20px; height: 20px; }
.resume-card-content { min-width: 0; }
.resume-card-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resume-card-meta { color: var(--cream-muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resume-card-actions { display: flex; gap: 6px; }
.resume-card-actions .btn { height: 36px; padding: 0 11px; border-radius: 9px; font-size: 13.5px; border: 1px solid var(--line); background: none; cursor: pointer; font-weight: 600; }
.resume-card-actions .btn-danger { color: var(--danger); }
.upload-dropzone.is-drag { border-color: var(--emerald); background: color-mix(in srgb, var(--emerald) 10%, var(--ground)); }
.upload-progress { display: grid; gap: 6px; }
.progress-track { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--emerald); transition: width 0.3s ease; }
.upload-success { color: var(--emerald); font-weight: 600; align-items: center; gap: 6px; }
.file-picked { color: var(--cream-soft); font-size: 14px; min-height: 1.2em; }
.limit-note { color: var(--cream-muted); font-size: 14px; margin: 0; }
/* checkout */
.coupon-status { font-size: 14px; color: var(--cream-muted); min-height: 1.2em; }
.coupon-status.ok { color: var(--emerald); }
.coupon-status.bad { color: var(--danger); }
.sum-row.discount[hidden] { display: none; }
/* transcript of a past session */
.transcript { display: grid; gap: 10px; }
.t-line { display: grid; gap: 3px; max-width: 88%; border: 1px solid var(--line); border-radius: 14px; padding: 10px 13px; background: var(--raised); white-space: pre-wrap; overflow-wrap: anywhere; }
.t-line .mono { color: var(--cream-muted); font-size: 10px; }
.t-line.them { border-left: 3px solid var(--cream-muted); }
.t-line.you { justify-self: end; background: var(--raised-2); }
.notice { border: 1px solid var(--line); border-radius: 14px; padding: 14px; color: var(--cream-soft); background: var(--raised); }
/* phone account menu, opened from the avatar in the top bar */
.topbar { position: sticky; }
a.chip-min { text-decoration: none; color: var(--cream); }
button.avatar { font: inherit; font-family: var(--display); font-weight: 800; }
.account-menu { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 57px); z-index: 19; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; background: var(--raised); border-bottom: 1px solid var(--line); color: var(--cream-soft); font-size: 14px; }
.account-menu span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 1040px) { .account-menu { display: none !important; } }
a.s-row { text-decoration: none; color: inherit; }
.upload-dropzone.is-full { opacity: 0.5; cursor: not-allowed; }

/* ── buy minutes: one panel (calls list + order), why minutes, questions, phone pay bar ── */
.try-first { margin: 0; color: var(--cream-soft); font-size: 15px; }
.buy-panel { border: 1px solid var(--line); border-radius: 20px; background: var(--raised); display: grid; overflow: hidden; }
.pick-side { padding: 18px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.pick-head { display: grid; gap: 10px; justify-items: start; }
.pick-head h2 { font-size: 24px; text-wrap: balance; }
.offer-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--emerald); background: color-mix(in srgb, var(--emerald) 10%, transparent); border: 1px solid color-mix(in srgb, var(--emerald) 35%, transparent); white-space: nowrap; }
.offer-chip code { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; }
.picks { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.picks legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pick { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--ground); cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease; }
.pick:hover { border-color: color-mix(in srgb, var(--emerald) 45%, var(--line)); }
.pick:has(input:checked) { border-color: var(--emerald); background: color-mix(in srgb, var(--emerald) 7%, var(--raised)); box-shadow: inset 0 0 0 1px var(--emerald); }
.pick input { appearance: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--cream-muted); margin: 0; display: grid; place-items: center; cursor: pointer; }
.pick input:checked { border-color: var(--emerald); }
.pick input:checked::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--emerald); }
.pick-main { display: grid; gap: 5px; min-width: 0; }
.pick-calls { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.pick-calls small { font-size: 15px; font-weight: 700; color: var(--cream-soft); margin-left: 4px; letter-spacing: -0.01em; }
.pick-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--cream-muted); font-size: 14px; }
.pill { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 7px; border-radius: 5px; background: var(--emerald); color: var(--ground); line-height: 1.2; white-space: nowrap; }
.pick-price { display: grid; justify-items: end; gap: 5px; text-align: right; }
.pick-price b { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.pick-price span { color: var(--cream-muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pick-note { margin: 0; color: var(--cream-muted); font-size: 13px; }
.order { padding: 18px; display: grid; gap: 14px; align-content: start; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--emerald) 4%, var(--raised)); min-width: 0; }
.order-head { display: grid; gap: 6px; }
.order-calls { font-family: var(--display); font-weight: 900; font-size: 46px; letter-spacing: -0.04em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.order-calls em { font-style: normal; color: var(--emerald); text-transform: lowercase; }
.order-head span { color: var(--cream-soft); }
.sum-row .remove { font-size: 13px; margin-left: 10px; }
.you-save { color: var(--emerald); font-weight: 700; font-size: 14px; }
.pay-main { height: 56px; font-size: 18px; }
.secure { color: var(--cream-muted); font-size: 13px; text-align: center; text-wrap: balance; }
.secure svg { width: 14px; height: 14px; display: inline; vertical-align: -2px; margin-right: 5px; }
.upsell { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 11px 12px; border: 1px dashed color-mix(in srgb, var(--emerald) 45%, var(--line)); border-radius: 12px; font-size: 14px; color: var(--cream-soft); }
.upsell b { color: var(--cream); }
.code-toggle { justify-self: center; font-size: 14px; }
.why { display: grid; gap: 20px; margin-top: 10px; }
.why-shot { margin: 0; display: grid; gap: 8px; order: 2; }
.why-shot img { width: 100%; border-radius: 16px; border: 1px solid var(--line); }
.why-shot figcaption { display: flex; justify-content: space-between; gap: 12px; color: var(--cream-muted); font-size: 10px; }
.why-copy { display: grid; gap: 14px; align-content: start; min-width: 0; }
.why-copy h2 { font-size: 30px; text-wrap: balance; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.why-list li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding-block: 15px; border-bottom: 1px solid var(--line); }
.why-list svg { width: 22px; height: 22px; color: var(--emerald); margin-top: 1px; }
.why-list b { display: block; font-weight: 700; font-size: 17px; }
.why-list span { color: var(--cream-soft); font-size: 15px; }
.buy-faq { display: grid; gap: 10px; margin-top: 10px; }
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 20px; gap: 12px; align-items: center; padding-block: 15px; font-weight: 600; font-size: 16px; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--emerald); font-size: 20px; text-align: right; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 15px; color: var(--cream-soft); }
/* phones: the plan and total stay in reach above the tab bar */
.pay-bar { position: fixed; z-index: 24; left: 0; right: 0; bottom: calc(var(--tabbar) + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px max(var(--g), env(safe-area-inset-right, 0px)) 10px max(var(--g), env(safe-area-inset-left, 0px)); background: color-mix(in srgb, var(--raised) 96%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.pay-bar div { display: grid; line-height: 1.2; }
.pay-bar b { font-family: var(--display); font-weight: 800; font-size: 21px; font-variant-numeric: tabular-nums; }
.pay-bar span { color: var(--cream-muted); font-size: 13px; }
.pay-bar .btn { height: 46px; padding: 0 20px; }
.buy-page { padding-bottom: 72px; }
@media (min-width: 760px) {
  .why-copy h2 { font-size: 36px; }
}
@media (min-width: 1040px) {
  .pay-bar { display: none; }
  .buy-page { padding-bottom: 0; }
  .buy-panel { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .pick-side { padding: 28px; gap: 18px; }
  .pick-head { grid-template-columns: 1fr auto; align-items: end; }
  .pick-head h2 { font-size: 28px; }
  .pick { padding: 16px 18px; }
  .pick-calls { font-size: 30px; }
  .pick-price b { font-size: 24px; }
  .order { border-top: 0; border-left: 1px solid var(--line); padding: 28px; gap: 16px; }
  .order-calls { font-size: 64px; }
  .why { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; margin-top: 26px; }
  .why-shot { order: 0; }
  .buy-faq { max-width: 760px; margin-top: 26px; }
}

/* light and dark switch */
.theme-toggle { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 999px; border: 1px solid var(--line); background: var(--raised); color: var(--cream); cursor: pointer; flex: none; transition: border-color 0.15s ease; }
.theme-toggle:hover { border-color: var(--cream-muted); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle[data-mode="dark"] .i-moon, .theme-toggle[data-mode="light"] .i-sun, .theme-toggle:not([data-mode]) .i-moon { display: none; }
.theme-toggle.wide { display: inline-flex; width: auto; gap: 8px; padding: 0 13px; font-size: 14px; font-weight: 600; }
.nav-theme { padding-top: 12px; }
.side-bottom > .theme-toggle { justify-self: start; }
.account-menu { flex-wrap: wrap; }
.account-menu span { flex-basis: 100%; }

/* Home: the how-to video, with its chapters beside it on a computer and below it on a phone */
.howto { display: grid; gap: 14px; }
.howto-grid { display: grid; gap: 14px; }
.tplayer { aspect-ratio: 16 / 9; max-width: 100%; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #0F1619; }
.tplayer video { width: 100%; height: 100%; display: block; object-fit: contain; background: #0F1619; }
.chapters { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; }
.chapters button { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 2px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--cream-soft); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.chapters button:hover, .chapters button:focus-visible { color: var(--emerald); }
.chapters button .mono { color: var(--cream-muted); }
@media (min-width: 1040px) {
  .howto-grid { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); gap: 28px; align-items: start; }
}
.howto-tabs { max-width: 560px; }
.howto-tabs .ts { display: none; }
@media (max-width: 520px) { .howto-tabs .tl { display: none; } .howto-tabs .ts { display: inline; } }
