[hidden] { display: none !important; }
/* Cue desk, design system (tokens, base, components) + page layouts. System fonts only (offline). */
:root {
    --bg: #F5F3EE; --surface: #FFFFFF; --surface-2: #EFEDE7; --line: #E5E2DA;
    --ink: #17171B; --ink-2: #52535B; --ink-3: #8A8B93;
    --accent: #17171B; --accent-ink: #FFFFFF;
    --say: #A98BFF; --say-soft: rgba(169,139,255,.16); --say-ink: #5B3CC4;
    --ask: #FFC24D; --ask-soft: rgba(255,194,77,.18); --ask-ink: #8A5300;
    --good: #3DD68C; --good-soft: rgba(61,214,140,.15); --good-ink: #14794A;
    --warn: #FFC24D; --warn-soft: rgba(255,194,77,.18); --warn-ink: #8A5300;
    --bad: #F06A6A; --bad-soft: rgba(240,106,106,.13); --bad-ink: #B83333;
    --focus: #A98BFF;
    --shadow-card: 0 1px 0 rgba(0,0,0,.03), 0 0 0 1px var(--line);
    --shadow-pop: 0 18px 50px rgba(20,20,30,.14), 0 0 0 1px var(--line);
    --font: -apple-system, "SF Pro Text", Inter, "Segoe UI", system-ui, sans-serif;
    --mono: ui-monospace, "SF Mono", Menlo, monospace;
    --r-sm: 8px; --r: 10px; --r-lg: 16px;
    --ease: cubic-bezier(.2,.8,.2,1);
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0F1012; --surface: #17181B; --surface-2: #1F2024; --line: rgba(255,255,255,.08);
        --ink: #ECEDEF; --ink-2: #9A9DA6; --ink-3: #6F727B; --accent: #FFFFFF; --accent-ink: #111111;
        --say-ink: #C9B6FF; --ask-ink: #FFD27A; --good-ink: #6EE7A8; --warn-ink: #FFD27A; --bad-ink: #FF9B9B;
        --shadow-card: 0 0 0 1px var(--line); --shadow-pop: 0 18px 50px rgba(0,0,0,.5), 0 0 0 1px var(--line);
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --bg: #0F1012; --surface: #17181B; --surface-2: #1F2024; --line: rgba(255,255,255,.08);
    --ink: #ECEDEF; --ink-2: #9A9DA6; --ink-3: #6F727B; --accent: #FFFFFF; --accent-ink: #111111;
    --say-ink: #C9B6FF; --ask-ink: #FFD27A; --good-ink: #6EE7A8; --warn-ink: #FFD27A; --bad-ink: #FF9B9B;
    --shadow-card: 0 0 0 1px var(--line); --shadow-pop: 0 18px 50px rgba(0,0,0,.5), 0 0 0 1px var(--line);
    color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 14px/21px var(--font); -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
a { color: inherit; }
.num, .mono { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 12.5px; font-weight: 500; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ── shell ───────────────────────────────────── */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 12px; gap: 4px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 18px; font-weight: 650; font-size: 16px; letter-spacing: -.01em; }
.brand-dot { width: 22px; height: 22px; border-radius: 7px; background: var(--ink); position: relative; }
.brand-dot::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: var(--say); }
.nav-item { display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 12px; border-radius: var(--r); color: var(--ink-2); border: 0; background: none; cursor: pointer; text-align: left; width: 100%; transition: background .16s var(--ease), color .16s; }
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item[aria-current="page"] { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.nav-item svg { flex: none; }
.side-spacer { flex: 1; }
.capture { margin-top: 4px; }
.capture-ico { display: inline-flex; flex: none; }
.capture .dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); flex: none; transition: background .16s var(--ease); }
.capture[aria-pressed="true"] .dot { background: var(--good); }
.capture[aria-pressed="true"] .capture-ico { color: var(--good-ink); }
.capture[aria-pressed="false"] .capture-ico { color: var(--warn-ink); }
.oncall { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r); background: var(--bad-soft); color: var(--bad-ink); font-weight: 600; font-size: 13px; }
.oncall i { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.me { display: flex; align-items: center; gap: 10px; padding: 10px; border: 0; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; background: none; color: inherit; font: inherit; text-align: left; width: 100%; cursor: pointer; border-radius: 0; }
.me:hover { background: var(--surface-2); }
.me small { display: block; color: var(--ink-3); font-size: 12px; line-height: 16px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-weight: 600; font-size: 12px; flex: none; }
.avatar.say { background: var(--say-soft); color: var(--say-ink); }
.main { overflow-y: auto; height: 100vh; }
.page { max-width: 1040px; margin: 0 auto; padding: 28px 32px 64px; animation: enter .32s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 1180px) {
    .shell { grid-template-columns: 64px minmax(0, 1fr); }
    .sidebar { padding: 18px 8px; align-items: center; }
    .brand span, .sidebar .nav-item span, .me div, .oncall span, .capture .dot { display: none; }
    .sidebar .nav-item { justify-content: center; padding: 0; }
}

/* ── type & headers ──────────────────────────── */
.page-head { display: flex; align-items: center; gap: 16px; min-height: 48px; margin-bottom: 20px; }
.page-head h1 { font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -.015em; margin: 0; }
.page-head .sub { color: var(--ink-3); font-size: 13px; }
.page-head .grow { flex: 1; }
.crumb { color: var(--ink-3); font-size: 13px; margin-bottom: 4px; display: flex; gap: 8px; align-items: center; }
.crumb .sep { color: var(--ink-3); }
.crumb button { border: 0; background: none; color: var(--ink-2); cursor: pointer; padding: 0; }
.crumb button:hover { color: var(--ink); text-decoration: underline; }
h2 { font-size: 20px; line-height: 26px; font-weight: 600; margin: 0; letter-spacing: -.01em; }
h3 { font-size: 16px; line-height: 22px; font-weight: 600; margin: 0; }
.eyebrow { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.muted { color: var(--ink-2); }
.meta { color: var(--ink-3); font-size: 12.5px; line-height: 18px; }
.section { margin-top: 32px; }
.section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.section-head .grow { flex: 1; }

/* ── components ──────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--r); border: 0; cursor: pointer; font-weight: 600; font-size: 13.5px; white-space: nowrap; transition: transform .16s var(--ease), background .16s, opacity .16s; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; cursor: default; transform: none; }
.btn-lg { height: 44px; padding: 0 18px; font-size: 14.5px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-secondary { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-ghost { background: none; color: var(--ink-2); padding: 0 10px; }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-danger { background: var(--bad-soft); color: var(--bad-ink); }
.btn-say { background: var(--say); color: #1b1230; }
.btn.block { width: 100%; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 24px; }
.card.tight { padding: 18px 20px; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head .grow { flex: 1; }
.card-head .eyebrow + h3 { margin-top: 4px; }
.grid-2 { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; }
.grid-2-even { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; }

.tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.tag.say { background: var(--say-soft); color: var(--say-ink); }
.tag.ask { background: var(--ask-soft); color: var(--ask-ink); }
.tag.good { background: var(--good-soft); color: var(--good-ink); }
.tag.warn { background: var(--warn-soft); color: var(--warn-ink); }
.tag.bad { background: var(--bad-soft); color: var(--bad-ink); }
.tag.outline { background: none; box-shadow: inset 0 0 0 1px var(--line); }

.banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r); background: var(--bad-soft); color: var(--bad-ink); margin-bottom: 16px; font-weight: 500; }
.banner.info { background: var(--surface-2); color: var(--ink-2); }
.banner .grow { flex: 1; }

.empty { text-align: center; padding: 40px 24px; color: var(--ink-2); }
.empty h3 { color: var(--ink); margin: 10px 0 6px; }
.empty .btn { margin-top: 14px; }
.empty-ico { width: 44px; height: 44px; border-radius: 14px; background: var(--surface-2); display: inline-grid; place-items: center; color: var(--ink-3); }

.skel { background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--r); }
@keyframes shimmer { to { background-position: -200% 0; } }

.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 50; align-items: center; }
.toast { background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 500; box-shadow: var(--shadow-pop); animation: enter .2s var(--ease); max-width: 560px; }
.toast.bad { background: var(--bad); color: #fff; }

.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); }
.tab { height: 32px; padding: 0 14px; border-radius: 9px; border: 0; background: none; cursor: pointer; color: var(--ink-2); font-weight: 600; font-size: 13px; }
.tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); }

/* score ring */
.ring { position: relative; display: inline-grid; place-items: center; }
.ring svg { transform: rotate(-90deg); }
.ring .track { stroke: var(--surface-2); }
.ring .arc { transition: stroke-dashoffset .9s var(--ease); stroke-linecap: round; }
.ring .val { position: absolute; text-align: center; }
.ring .val b { display: block; font-size: 44px; line-height: 46px; font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ring.sm .val b { font-size: 13px; line-height: 14px; font-weight: 700; letter-spacing: 0; }

/* bucket bar */
.bbar { display: grid; grid-template-columns: 190px 1fr 84px 20px; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; cursor: pointer; border: 0; background: none; width: 100%; text-align: left; transition: background .16s; }
.bbar:hover { background: var(--surface-2); }
.bbar .lbl { font-weight: 600; }
.track { height: 10px; border-radius: 5px; background: var(--surface-2); position: relative; overflow: hidden; }
.track .fill { position: absolute; inset: 0 auto 0 0; border-radius: 5px; background: var(--ink); transition: width .9s var(--ease); }
.track .cue { position: absolute; inset: 0 auto 0 0; border-radius: 5px; background: repeating-linear-gradient(135deg, var(--say) 0 4px, var(--say-soft) 4px 8px); transition: width .9s var(--ease); }
.track.good .fill { background: var(--good); } .track.warn .fill { background: var(--warn); } .track.bad .fill { background: var(--bad); }
.bbar .pts { text-align: right; font-family: var(--mono); font-weight: 600; white-space: nowrap; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--ink-3); align-items: center; }
.legend i { display: inline-block; width: 18px; height: 8px; border-radius: 4px; vertical-align: middle; margin-right: 6px; }

/* sheet (drawer) */
.backdrop { position: fixed; inset: 0; background: rgba(15,15,20,.32); z-index: 40; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; top: 0; right: 0; bottom: 0; width: 560px; max-width: 92vw; background: var(--surface); z-index: 41; box-shadow: var(--shadow-pop); display: flex; flex-direction: column; animation: slide .32s var(--ease); }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.sheet-body { overflow-y: auto; padding: 8px 24px 32px; flex: 1; }
.iconbtn { width: 32px; height: 32px; border-radius: 9px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--ink-2); }
.iconbtn:hover { background: var(--surface-2); color: var(--ink); }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.input, .textarea, .select { width: 100%; border: 0; border-radius: var(--r); background: var(--surface-2); padding: 9px 12px; outline: none; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .16s; }
.select { -webkit-appearance: none; appearance: none; padding-right: 34px; cursor: pointer; background-repeat: no-repeat; background-position: right 12px center; background-size: 14px 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8f98' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.input:focus, .textarea:focus, .select:focus { box-shadow: inset 0 0 0 1.5px var(--focus); background: var(--surface); }
.textarea { resize: vertical; min-height: 220px; line-height: 21px; }
.toggle { width: 40px; height: 24px; border-radius: 12px; background: var(--surface-2); border: 0; position: relative; cursor: pointer; transition: background .2s; box-shadow: inset 0 0 0 1px var(--line); }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s var(--ease); }
.toggle[aria-checked="true"] { background: var(--good); }
.toggle[aria-checked="true"]::after { transform: translateX(16px); }
input[type="range"] { accent-color: var(--ink); width: 100%; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); flex-wrap: wrap; }
.seg button { height: 32px; padding: 0 12px; border: 0; border-radius: 9px; background: none; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); }

/* stars */
.stars { display: inline-flex; gap: 2px; color: var(--ask); }
.stars .off { color: var(--line); }
.stars.big svg { width: 34px; height: 34px; }
.stars button { border: 0; background: none; padding: 2px; cursor: pointer; color: inherit; }

/* ── home ────────────────────────────────────── */
.hero-start { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.start-choice .grow { flex: 1; }
.start-choice { display: flex; align-items: center; gap: 14px; text-align: left; padding: 18px 20px; border-radius: 14px; border: 0; cursor: pointer; background: var(--surface-2); box-shadow: inset 0 0 0 1px transparent; transition: transform .16s var(--ease), box-shadow .16s, background .16s; }
.start-choice:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
.start-choice b { display: block; font-size: 16px; }
.start-choice small { color: var(--ink-3); font-size: 12.5px; }
.start-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(169,139,255,.22); color: var(--say); flex: none; }
.lastcall { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.say-next { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--say-soft); color: var(--say-ink); font-weight: 600; }
.say-next small { display: block; font-weight: 600; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; opacity: .8; margin-bottom: 2px; }
.week { display: flex; gap: 8px; align-items: flex-end; margin: 12px 0 6px; }
.week div { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-3); }
.week i { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); display: block; }
.week i.on { background: var(--good); box-shadow: 0 0 0 4px var(--good-soft); }
.week i.today { box-shadow: inset 0 0 0 2px var(--ink-3); }

/* ── lists ───────────────────────────────────── */
.list { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.list-row { display: grid; align-items: center; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--line); cursor: pointer; transition: background .16s; }
.list-row:first-child { border-top: 0; }
.list-row:hover { background: var(--surface-2); }
.calls-row { grid-template-columns: 120px 1fr 70px 150px auto; }
.mini-bars { display: inline-flex; gap: 3px; align-items: flex-end; height: 20px; }
.mini-bars i { width: 7px; border-radius: 2px; background: var(--ink-3); display: block; }

/* ── wrap-up ─────────────────────────────────── */
.people { display: flex; gap: 10px; flex-wrap: wrap; }
.person { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-card); }
.person .who { font-weight: 600; }
.person small { color: var(--ink-3); display: block; font-size: 12px; line-height: 16px; }
.person-edit { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 8px; align-items: end; padding: 12px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-card); }
.step { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; }
.step .check { width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--line); border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--good-ink); margin-top: 2px; }
.step .check.on { background: var(--good-soft); box-shadow: none; }
.step input.input { padding: 6px 8px; }
.step-meta { display: flex; gap: 8px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.step-meta select, .step-meta input { width: auto; padding: 4px 8px; font-size: 12.5px; height: 28px; }
.bottom-bar { margin-top: 24px; padding: 14px 0; display: flex; align-items: center; gap: 12px; justify-content: flex-end; }

/* ── scorecard ───────────────────────────────── */
.score-top { display: grid; grid-template-columns: 1fr 1.1fr; gap: 16px; }
.score-main { display: flex; gap: 26px; align-items: center; }
.score-main .rating { font-size: 22px; font-weight: 650; }
.withcue { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--say-soft); color: var(--say-ink); font-weight: 600; }
.moment { padding: 16px 18px; border-radius: 14px; }
.moment.good { background: var(--good-soft); }
.moment.fix { background: var(--bad-soft); }
.moment .eyebrow { color: inherit; opacity: .75; }
.moment.good .eyebrow { color: var(--good-ink); } .moment.fix .eyebrow { color: var(--bad-ink); }
.moment p { margin: 6px 0 0; }
.quote { color: var(--ink-2); font-style: italic; }
.ts { font-family: var(--mono); font-size: 12px; color: var(--ink-3); border: 0; background: none; padding: 0; cursor: pointer; }
.ts:hover { color: var(--ink); text-decoration: underline; }
.obj { padding: 16px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; }
.obj:first-child { border-top: 0; padding-top: 4px; }
.better { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.better b { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); display: block; margin-bottom: 2px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.fact { display: grid; grid-template-columns: 140px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.fact:nth-child(-n+2) { border-top: 0; }
.fact span:first-child { color: var(--ink-3); font-size: 13px; }
.cardrow { display: grid; grid-template-columns: 52px 112px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.cardrow:first-child { border-top: 0; }
.practise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.practise .card { display: flex; flex-direction: column; gap: 8px; }
.practise .card .grow { flex: 1; }
.item { padding: 16px 0; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.item-head { display: flex; align-items: center; gap: 10px; }
.item p { margin: 6px 0 0; }
.ev { display: flex; gap: 8px; margin-top: 8px; align-items: baseline; }
.transcript { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.tline { display: grid; grid-template-columns: 50px 1fr; gap: 10px; padding: 6px 8px; border-radius: 8px; }
.tline.hl { background: var(--ask-soft); }
.tline b { font-weight: 600; margin-right: 6px; }

/* ── gym ─────────────────────────────────────── */
.train-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.tcard { cursor: pointer; display: flex; flex-direction: column; gap: 10px; transition: transform .16s var(--ease), box-shadow .16s; border: 0; text-align: left; }
.tcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.tcard h3 { min-height: 44px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.detail-block { display: grid; grid-template-columns: 170px 1fr; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.detail-block:first-child { border-top: 0; }
.detail-block .eyebrow { padding-top: 3px; }
.levels { display: flex; flex-direction: column; gap: 8px; }
.level { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); transition: background .3s, transform .3s var(--ease); }
.level .dot { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ink-3); flex: none; position: relative; }
.level.partial .dot { background: conic-gradient(var(--warn) 0 50%, transparent 50%); box-shadow: inset 0 0 0 2px var(--warn); }
.level.covered { background: var(--good-soft); }
.level.covered .dot { background: var(--good); box-shadow: none; }
.level.covered .dot::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800; }
.level.pop { animation: pop .5s var(--ease); }
@keyframes pop { 40% { transform: scale(1.04); } }
.level small { margin-left: auto; color: var(--ink-3); font-size: 12px; }
.play { display: grid; grid-template-columns: 1fr 320px; gap: 16px; height: calc(100vh - 150px); min-height: 520px; }
.chat { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.feed { flex: 1; overflow-y: auto; padding: 22px 22px 8px; display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 10px; max-width: 82%; animation: enter .25s var(--ease); }
.msg .bubble { padding: 10px 14px; border-radius: 14px; background: var(--surface-2); }
.msg .bubble small { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 600; margin-bottom: 2px; }
.msg.rep { align-self: flex-end; flex-direction: row-reverse; }
.msg.rep .bubble { background: var(--ink); color: var(--accent-ink); }
.msg.rep .bubble small { color: inherit; opacity: .6; }
.msg.cue .bubble { background: var(--ask-soft); color: var(--ask-ink); font-weight: 600; }
.typing { display: inline-flex; gap: 4px; padding: 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .2; } }
.micbar { border-top: 1px solid var(--line); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.micbar .live { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13px; min-height: 20px; }
.micbar .live i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); animation: pulse 1.4s infinite; flex: none; }
.micbar .live.muted i { background: var(--ink-3); animation: none; }
.side { display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.patience .track { height: 10px; margin-top: 10px; }
.patience .delta { font-size: 12.5px; margin-top: 8px; min-height: 18px; font-weight: 600; }
.patience .delta.down { color: var(--bad-ink); } .patience .delta.up { color: var(--good-ink); }
.hintcard { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--ask-soft); color: var(--ask-ink); font-weight: 600; }
.overlay-end { position: fixed; inset: 0; background: rgba(15,15,20,.55); z-index: 60; display: grid; place-items: center; animation: fade .25s; }
.overlay-end .card { text-align: center; max-width: 420px; }
.result-head { text-align: center; padding: 18px 0 8px; }
.result-head h1 { font-size: 34px; line-height: 40px; margin: 10px 0 0; letter-spacing: -.02em; }
.lvlbar { display: grid; grid-template-columns: 1fr 260px 50px; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.lvlbar:first-child { border-top: 0; }
.timer { width: 54px; height: 54px; }
.quiz-q { font-size: 19px; line-height: 28px; font-weight: 600; margin: 10px 0 0; }
.kp { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; }
.kp .ok { color: var(--good-ink); font-weight: 800; } .kp .no { color: var(--bad-ink); font-weight: 800; }

/* ── profile ─────────────────────────────────── */
.trends { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trend svg { width: 100%; height: 64px; display: block; margin-top: 10px; overflow: visible; }
.trend .avg { font-size: 30px; line-height: 1; font-weight: 650; letter-spacing: -.02em; }
.trend .score-line { display: flex; align-items: baseline; gap: 4px; margin-top: 12px; }
.trend .score-line .out-of { font-size: 15px; font-weight: 600; color: var(--ink-3); }
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.badge { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-card); }
.badge .medal { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--ink-3); box-shadow: inset 0 0 0 2px var(--line); }
.badge.earned .medal { background: linear-gradient(135deg, #FFD27A, #FFB020); color: #4a2b00; box-shadow: 0 6px 16px rgba(255,176,32,.3); }
.badge .prog { height: 6px; border-radius: 3px; background: var(--surface-2); margin-top: 8px; overflow: hidden; }
.badge .prog i { display: block; height: 100%; background: var(--ink-3); border-radius: 3px; }
.helped { display: grid; grid-template-columns: 1.4fr 1fr 70px; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.helped:first-child { border-top: 0; }
.hbars { display: flex; flex-direction: column; gap: 5px; }
.hbars .track { height: 8px; }
.delta-pill { font-family: var(--mono); font-weight: 700; text-align: right; }
.delta-pill.up { color: var(--good-ink); } .delta-pill.down { color: var(--bad-ink); }

/* ── settings ────────────────────────────────── */
.settings { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; }
.settings > * { min-width: 0; }
.settings nav { display: flex; flex-direction: column; gap: 2px; }
.set-row { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.set-row:first-child { border-top: 0; }
.set-row .hint { color: var(--ink-3); font-size: 12.5px; }
.saved { color: var(--good-ink); font-size: 12.5px; font-weight: 600; opacity: 0; transition: opacity .2s; }
.saved.on { opacity: 1; }
.md h1, .md h2, .md h3 { margin: 18px 0 8px; } .md h1 { font-size: 22px; } .md h2 { font-size: 17px; } .md h3 { font-size: 15px; }
.md p { margin: 6px 0; } .md ul { margin: 6px 0; padding-left: 20px; } .md li { margin: 3px 0; }
.md table { border-collapse: collapse; width: 100%; margin: 10px 0; font-size: 13px; } .md td, .md th { border-top: 1px solid var(--line); padding: 7px 8px; text-align: left; vertical-align: top; } .md th { color: var(--ink-3); font-weight: 600; }
.kn-item { display: grid; grid-template-columns: 200px 40px 60px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); align-items: baseline; }
.comp-table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.comp-table td, .comp-table th { border-top: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }
.comp-table th { color: var(--ink-3); font-weight: 600; }

/* Sign-in (account mode, signed out): no sidebar, a centred card. */
.shell.bare { grid-template-columns: 1fr; }
.shell.bare .sidebar { display: none; }
.signin { max-width: 420px; margin: 10vh auto; }
.signin h1 { font-size: 24px; margin: 14px 0 18px; }
.signin .brand { margin-bottom: 4px; }
.signin-or { text-align: center; margin: 12px 0; }

/* Wrap-up: the email and next-steps cards share one height; steps scroll inside their card. */
.wrap-cols { align-items: stretch; min-height: 480px; }
.wrap-cols > * > .card { height: 100%; box-sizing: border-box; margin: 0; }
/* The steps column takes the row's height (set by the email card) and never grows it. */
.steps-col { position: relative; min-height: 480px; }
.steps-col > * { position: absolute; inset: 0; }
.steps-col > * > .card { display: flex; flex-direction: column; }
.steps-scroll { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.steps-foot { flex: none; padding-top: 14px; border-top: 1px solid var(--line); margin-top: 10px; }
.steps-foot .row .input { flex: 1; }
.meeting-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 10px; align-items: end; }
.meeting-grid.two { grid-template-columns: 2fr 1fr; }

/* Clientele */
.clients-row { grid-template-columns: 1fr 80px 120px 56px 150px; }
.clients-search { max-width: 280px; }
.client-step { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.client-step:first-of-type { border-top: 0; }
.client-call { display: grid; grid-template-columns: 170px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.client-call:first-of-type { border-top: 0; }

/* Upcoming meetings + Prep */
.meet-group + .meet-group { margin-top: 14px; }
.meet-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.meet-group .eyebrow + .meet-row { border-top: 0; }
.meet-row .mono { min-width: 72px; }
.prep-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

/* Gym: lists of quiet rows instead of boxes. */
.tlist { padding: 4px 0; overflow: hidden; }
.trow { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto 16px; align-items: center; gap: 14px; width: 100%; padding: 14px 20px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .14s; }
.trow + .trow { border-top: 1px solid var(--line); }
.trow:hover { background: var(--surface-2); }
.trow.static { cursor: default; grid-template-columns: 22px minmax(0, 1fr) 0 auto; }
.trow.static:hover { background: none; }
.trow > svg { color: var(--ink-3); }
.trow-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trow-main b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow-main small { color: var(--ink-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lvl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); justify-self: center; }
.lvl-dot.good { background: var(--good); } .lvl-dot.warn { background: var(--warn); } .lvl-dot.bad { background: var(--bad); }
.kp-num { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); }
.tabs + div > .tlist { margin-top: 18px; }
.home-head .eyebrow { margin-bottom: 6px; }

/* ── Quieter look (Oct 2026): serif titles, hairline cards with minute shadows, sentence-case labels ── */
:root {
    --serif: ui-serif, "New York", "Iowan Old Style", Charter, Georgia, serif;
    --shadow-card: 0 0 0 1px var(--line), 0 1px 2px rgba(18,18,24,.04), 0 2px 8px rgba(18,18,24,.025);
    --r-lg: 12px;
    --grad-a: #0E9F74; --grad-b: #2FBF98;
}
:root[data-theme="dark"] { --shadow-card: 0 0 0 1px rgba(255,255,255,.07), 0 1px 2px rgba(0,0,0,.35); --grad-a: #45E0AE; --grad-b: #A9F2DA; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --shadow-card: 0 0 0 1px rgba(255,255,255,.07), 0 1px 2px rgba(0,0,0,.35); --grad-a: #45E0AE; --grad-b: #A9F2DA; } }

.page-head h1 { font-family: var(--serif); font-size: 30px; line-height: 36px; font-weight: 500; letter-spacing: -.01em; }
.signin h1 { font-family: var(--serif); font-weight: 500; }
h2 { font-family: var(--serif); font-weight: 500; font-size: 21px; letter-spacing: -.005em; }
h3 { font-size: 15px; line-height: 21px; }
.card h2 { font-size: 19px; }
.eyebrow { font-size: 12.5px; line-height: 16px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.card { padding: 20px; }
.btn { border-radius: 8px; height: 34px; font-weight: 550; }
.btn-secondary { box-shadow: inset 0 0 0 1px var(--line); }
.tag { height: 22px; border-radius: 999px; font-weight: 500; padding: 0 9px; }
.tag.outline { box-shadow: inset 0 0 0 1px var(--line); }
.start-choice { border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
.start-choice:hover { background: var(--surface-2); }

/* Gradient accent for a key word in a heading. */
.grad { background: linear-gradient(90deg, var(--grad-a), var(--grad-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Card titles in the serif too (body text inside cards stays sans). */
h3, .card-head h3, .card h3 { font-family: var(--serif); font-weight: 500; font-size: 17px; line-height: 23px; letter-spacing: -.005em; }
.trow-main b, .who, .start-choice b { font-family: var(--serif); font-weight: 500; font-size: 15.5px; }

/* Start Cue: the call pill itself, high contrast in both themes. */
.start-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 0 10px; }
.start-pill { display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 7px 0 16px; border-radius: 26px; border: 0; cursor: pointer;
    background: rgba(10,10,12,.96); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 10px 30px rgba(0,0,0,.28), 0 2px 6px rgba(0,0,0,.2);
    font-family: var(--font); transition: transform .18s var(--ease), box-shadow .18s; }
.start-pill:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 16px 40px rgba(0,0,0,.32), 0 2px 6px rgba(0,0,0,.2); }
.start-pill:active { transform: scale(.98); }
.start-pill:disabled { cursor: progress; }
.start-pill-grip { display: grid; grid-template-columns: repeat(2, 4px); gap: 3px; opacity: .45; }
.start-pill-grip i { width: 4px; height: 4px; border-radius: 50%; background: #fff; }
.start-pill-dot { width: 9px; height: 9px; border-radius: 50%; background: #8B8D93; }
.start-pill:hover .start-pill-dot { background: var(--good); box-shadow: 0 0 10px rgba(61,214,140,.6); }
.start-pill-label { font-size: 16px; white-space: nowrap; } .start-pill-label b { font-weight: 650; } .start-pill-label span { color: rgba(255,255,255,.6); }
.start-pill-go { display: inline-flex; align-items: center; height: 38px; padding: 0 22px; margin-left: 10px; border-radius: 19px; background: #fff; color: #0A0A0C; font-weight: 650; font-size: 14.5px; }
.pill-ghost { position: fixed; z-index: 100; margin: 0; pointer-events: none; transform-origin: center; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--ink-2); text-decoration: underline; cursor: pointer; font: inherit; }

/* Dark mode: the Start Cue pill inverts (light pill, dark Start) so it stands out on the dark page. */
:root[data-theme="dark"] .start-pill { background: #F4F4F2; color: #0A0A0C; box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 10px 30px rgba(0,0,0,.5); }
:root[data-theme="dark"] .start-pill:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.3), 0 16px 40px rgba(0,0,0,.55); }
:root[data-theme="dark"] .start-pill-grip i { background: #0A0A0C; }
:root[data-theme="dark"] .start-pill-dot { background: #9A9CA3; }
:root[data-theme="dark"] .start-pill-label span { color: rgba(10,10,12,.55); }
:root[data-theme="dark"] .start-pill-go { background: #0A0A0C; color: #FFFFFF; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .start-pill { background: #F4F4F2; color: #0A0A0C; box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 10px 30px rgba(0,0,0,.5); }
    :root:not([data-theme="light"]) .start-pill:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.3), 0 16px 40px rgba(0,0,0,.55); }
    :root:not([data-theme="light"]) .start-pill-grip i { background: #0A0A0C; }
    :root:not([data-theme="light"]) .start-pill-dot { background: #9A9CA3; }
    :root:not([data-theme="light"]) .start-pill-label span { color: rgba(10,10,12,.55); }
    :root:not([data-theme="light"]) .start-pill-go { background: #0A0A0C; color: #FFFFFF; }
}

/* ── Agenda ("Coming up") and list rows across the app: dashed dividers, accent bars ── */
.agenda { padding: 0; overflow: hidden; }
.ag-pad { padding: 18px 22px; }
.ag-day { display: grid; grid-template-columns: 170px minmax(0, 1fr); padding: 14px 22px; }
.ag-day + .ag-day { border-top: 1px dashed var(--line); }
.ag-date { display: flex; align-items: center; gap: 12px; align-self: start; padding-top: 4px; }
.ag-num { font-family: var(--serif); font-size: 34px; line-height: 1; font-weight: 400; min-width: 44px; }
.ag-md { display: flex; flex-direction: column; line-height: 18px; }
.ag-md > span { display: inline-flex; align-items: center; gap: 6px; }
.ag-md small { color: var(--ink-3); font-size: 13px; }
.ag-today { width: 6px; height: 6px; border-radius: 50%; background: var(--bad); display: inline-block; }
.ag-events { display: flex; flex-direction: column; gap: 4px; }
.ag-event { display: grid; grid-template-columns: 3px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 6px 10px 6px 0; border-radius: 8px; cursor: pointer; transition: background .14s; }
.ag-event:hover { background: var(--surface-2); }
.ag-event.empty { cursor: default; } .ag-event.empty:hover { background: none; }
.ag-bar { align-self: stretch; width: 3px; border-radius: 2px; background: var(--ink-3); opacity: .55; min-height: 38px; }
.ag-event.known .ag-bar { background: var(--grad-b); opacity: 1; }
.ag-main { min-width: 0; }
.ag-title { font-size: 15.5px; font-weight: 500; display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-known { font-size: 11.5px; font-weight: 500; color: var(--good-ink); background: var(--good-soft); border-radius: 999px; padding: 1px 8px; }
.ag-time { color: var(--ink-3); font-size: 13px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-none { color: var(--ink-3); font-size: 15px; padding: 8px 0; }
.ag-prep { color: var(--ink-3); font-size: 13px; opacity: 0; transition: opacity .14s; }
.ag-event:hover .ag-prep { opacity: 1; }
.coming-up .section-head .iconbtn { font-size: 18px; width: 28px; height: 28px; }
.coming-up .section-head .iconbtn:disabled { opacity: .3; cursor: default; }

/* The same quiet language for every list inside a page or tab. */
.list-row { border-top-style: dashed; }
.trow + .trow { border-top-style: dashed; }
.set-row, .kn-item, .fact, .step { border-top-style: dashed; }
.lvl-dot { width: 3px; height: 30px; border-radius: 2px; }

/* ── Native-feeling shell: window buttons in the sidebar, collapse toggle, translucent sidebar ── */
.side-top { display: flex; align-items: center; height: 40px; margin: -10px -4px 6px; padding-left: 8px; -webkit-app-region: drag; }
.mac .side-top { padding-left: 78px; } /* room for the traffic lights */
.side-toggle { -webkit-app-region: no-drag; width: 30px; height: 28px; border: 0; border-radius: 7px; background: none; color: var(--ink-3); display: grid; place-items: center; cursor: pointer; transition: background .14s, color .14s; }
.side-toggle:hover { background: var(--surface-2); color: var(--ink); }
.main { position: relative; }
.mac .page { padding-top: 34px; }
.brand { padding: 4px 10px 14px; font-size: 15px; }
.nav-item { height: 36px; border-radius: 9px; font-size: 14.5px; gap: 12px; padding: 0 11px; }
.nav-item[aria-current="page"] { background: rgba(0,0,0,.06); font-weight: 550; }
:root[data-theme="dark"] .nav-item[aria-current="page"] { background: rgba(255,255,255,.08); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav-item[aria-current="page"] { background: rgba(255,255,255,.08); } }
.nav-item:hover { background: rgba(0,0,0,.04); }
/* macOS vibrancy: the sidebar is see-through, the content area stays solid. */
.mac .sidebar { background: rgba(245,243,238,.55); border-right-color: rgba(0,0,0,.07); }
.mac .main { background: var(--bg); }
:root.mac[data-theme="dark"] .sidebar { background: rgba(23,24,27,.45); border-right-color: rgba(255,255,255,.06); }
@media (prefers-color-scheme: dark) { :root.mac:not([data-theme="light"]) .sidebar { background: rgba(23,24,27,.45); border-right-color: rgba(255,255,255,.06); } }
/* Collapsed: an icon rail, same as the narrow-window layout. */
.shell { transition: grid-template-columns .22s var(--ease); }
.shell.collapsed { grid-template-columns: 64px minmax(0, 1fr); }
.shell.collapsed .sidebar { padding: 18px 8px; align-items: center; }
.shell.collapsed .brand span, .shell.collapsed .sidebar .nav-item span, .shell.collapsed .me div, .shell.collapsed .oncall span, .shell.collapsed .capture .dot { display: none; }
.shell.collapsed .sidebar .nav-item { justify-content: center; padding: 0; }
.mac .shell.collapsed .side-top { padding-left: 0; justify-content: center; margin-top: 30px; }

/* ══ Liquid glass (Oct 2026) ═══════════════════════════════════════════════════════════════
   A soft gradient behind everything; cards are frosted glass (blur + translucent fill, a bright
   hairline edge and top highlight); things inside cards are lighter glass tiles; controls are pills. */
:root {
    --page-grad: radial-gradient(1200px 700px at 85% -10%, rgba(140,160,210,.55), transparent 60%),
                 radial-gradient(900px 600px at -10% 110%, rgba(215,190,175,.55), transparent 60%),
                 linear-gradient(160deg, #D6DAE3 0%, #C9CEDA 45%, #D8D2CC 100%);
    --glass: rgba(255,255,255,.46); --glass-2: rgba(255,255,255,.62); --glass-3: rgba(255,255,255,.78);
    --glass-edge: rgba(255,255,255,.7); --glass-line: rgba(30,35,55,.10);
    --glass-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 0 0 1px var(--glass-edge), 0 10px 30px rgba(35,45,80,.10), 0 1px 3px rgba(35,45,80,.06);
    --glass-blur: blur(26px) saturate(150%);
    --surface-2: rgba(255,255,255,.55); --line: rgba(30,35,55,.10);
    --r-lg: 22px;
}
:root[data-theme="dark"] {
    --page-grad: radial-gradient(1200px 700px at 85% -10%, rgba(90,100,170,.35), transparent 60%),
                 radial-gradient(900px 600px at -10% 110%, rgba(120,90,80,.25), transparent 60%),
                 linear-gradient(160deg, #15171D 0%, #191C25 50%, #1B1A1C 100%);
    --glass: rgba(40,43,52,.48); --glass-2: rgba(60,64,76,.42); --glass-3: rgba(80,85,100,.45);
    --glass-edge: rgba(255,255,255,.09); --glass-line: rgba(255,255,255,.08);
    --glass-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 0 0 1px var(--glass-edge), 0 14px 40px rgba(0,0,0,.35);
    --surface-2: rgba(255,255,255,.07); --line: rgba(255,255,255,.08);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
    --page-grad: radial-gradient(1200px 700px at 85% -10%, rgba(90,100,170,.35), transparent 60%),
                 radial-gradient(900px 600px at -10% 110%, rgba(120,90,80,.25), transparent 60%),
                 linear-gradient(160deg, #15171D 0%, #191C25 50%, #1B1A1C 100%);
    --glass: rgba(40,43,52,.48); --glass-2: rgba(60,64,76,.42); --glass-3: rgba(80,85,100,.45);
    --glass-edge: rgba(255,255,255,.09); --glass-line: rgba(255,255,255,.08);
    --glass-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 0 0 1px var(--glass-edge), 0 14px 40px rgba(0,0,0,.35);
    --surface-2: rgba(255,255,255,.07); --line: rgba(255,255,255,.08);
} }

/* Page background */
.main, .mac .main { background: var(--page-grad); background-attachment: fixed; }
.shell.bare .main { background: var(--page-grad); }

/* Glass cards */
.card, .list, .badge, .person, .person-edit, .sheet {
    background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow); border-radius: var(--r-lg);
}
.card { padding: 22px; }
.card-head h2, .card-head h3 { font-size: 21px; line-height: 27px; }

/* Glass tiles inside cards (rows, steps, agenda days, facts…) */
.card .list-row, .card .trow, .agenda .ag-day, .card .step, .card .kn-item, .card .meet-row {
    background: var(--glass-2); border-radius: 14px; border-top: 0 !important; margin-top: 8px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 0 0 1px var(--glass-edge);
}
.agenda { padding: 10px; background: var(--glass); }
.agenda .ag-day { padding: 14px 18px; margin-top: 0; }
.agenda .ag-day + .ag-day { margin-top: 8px; }
.card .list-row:hover, .card .trow:hover { background: var(--glass-3); }
.tlist { padding: 10px; }
.tlist .trow:first-child, .card .step:first-child { margin-top: 0; }
.list { padding: 10px; } .list .list-row { background: var(--glass-2); border-radius: 14px; margin-top: 8px; box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 0 0 1px var(--glass-edge); }
.list .list-row:first-child { margin-top: 0; }
.list .list-row:hover { background: var(--glass-3); }
.set-row, .fact { border-top: 1px solid var(--glass-line); }

/* Sidebar as glass too (on top of macOS vibrancy) */
.sidebar, .mac .sidebar { background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border-right: 1px solid var(--glass-edge); }
.nav-item[aria-current="page"] { background: var(--glass-3); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 0 0 1px var(--glass-edge); }

/* Controls */
.btn { border-radius: 999px; height: 36px; padding: 0 16px; }
.btn-secondary { background: var(--glass-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 0 0 1px var(--glass-edge); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn-secondary:hover { background: var(--glass-3); }
.btn.block.btn-secondary { background: rgba(120,125,140,.22); color: var(--ink); box-shadow: none; }
.btn-primary { box-shadow: 0 4px 14px rgba(20,20,30,.18); }
.iconbtn { border-radius: 50%; width: 34px; height: 34px; background: var(--glass-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 0 0 1px var(--glass-edge), 0 2px 6px rgba(35,45,80,.08); }
.iconbtn:hover { background: var(--glass-3); }
.tabs { background: transparent; padding: 0; gap: 8px; }
.tab { height: 32px; border-radius: 999px; padding: 0 15px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--glass-line); background: var(--glass); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); box-shadow: 0 4px 12px rgba(20,20,30,.18); }
.input, .textarea, .select { background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--glass-edge); border-radius: 12px; }
.input:focus, .textarea:focus, .select:focus { background: var(--glass-3); }
.tag { background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--glass-edge); }
.banner { border-radius: 16px; -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.toast { border-radius: 999px; }
.seg { background: transparent; padding: 0; gap: 8px; }
.seg button { border-radius: 999px; padding: 0 15px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--glass-line); background: var(--glass); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: 0 4px 12px rgba(20,20,30,.18); }

/* Sidebar: light frosted panel over the app gradient (no system vibrancy), crisp text and toggle. */
body { background: var(--page-grad); background-attachment: fixed; }
.sidebar, .mac .sidebar { background: rgba(255,255,255,.72); border-right: 1px solid rgba(30,35,55,.08); }
:root[data-theme="dark"] .sidebar, :root.mac[data-theme="dark"] .sidebar { background: rgba(28,30,37,.78); border-right-color: rgba(255,255,255,.07); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sidebar { background: rgba(28,30,37,.78); border-right-color: rgba(255,255,255,.07); } }
.nav-item { color: var(--ink-2); }
.nav-item[aria-current="page"] { background: #FFFFFF; color: var(--ink); box-shadow: 0 1px 2px rgba(30,35,55,.08), 0 0 0 1px rgba(30,35,55,.06); }
:root[data-theme="dark"] .nav-item[aria-current="page"] { background: rgba(255,255,255,.10); box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav-item[aria-current="page"] { background: rgba(255,255,255,.10); box-shadow: 0 0 0 1px rgba(255,255,255,.08); } }
.side-top { margin: -8px -4px 8px; height: 36px; }
.side-toggle { color: var(--ink-2); width: 32px; height: 30px; }
.side-toggle:hover { background: rgba(30,35,55,.07); color: var(--ink); }

/* Collapsed rail: wide enough for the window buttons, toggle right under them. */
.shell.collapsed { grid-template-columns: 78px minmax(0, 1fr); }
.mac .shell.collapsed .side-top { padding-left: 0; justify-content: center; margin: 22px 0 6px; }
.shell.collapsed .brand { justify-content: center; padding: 4px 0 12px; }
.coming-up .section-head { align-items: center; gap: 8px; }
@media (max-width: 1180px) { .mac .side-top { padding-left: 0; justify-content: center; margin: 22px 0 6px; } .shell { grid-template-columns: 78px minmax(0, 1fr); } }

/* Collapsed = the sidebar is hidden and the page fills the window; a toggle floats by the window buttons. */
.shell.collapsed { grid-template-columns: 0 minmax(0, 1fr); }
.shell.collapsed .sidebar { visibility: hidden; overflow: hidden; padding: 0; border: 0; }
.side-toggle.float, .dragbar { display: none; }
.shell.collapsed .side-toggle.float { display: grid; position: fixed; top: 9px; left: 12px; z-index: 60; -webkit-app-region: no-drag; background: var(--glass-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 0 0 1px var(--glass-edge); border-radius: 8px; }
.mac .shell.collapsed .side-toggle.float { left: 84px; top: 11px; }
.mac .shell.collapsed .dragbar { display: block; position: fixed; top: 0; left: 0; right: 0; height: 40px; z-index: 55; -webkit-app-region: drag; }
.shell.collapsed .page { padding-top: 52px; }

/* Score: dotted half-circle gauge */
.score-dots { position: relative; display: inline-block; }
.score-dots svg { display: block; overflow: visible; }
.score-dots .sd { fill: rgba(120,120,150,.16); transition: fill .4s var(--ease), opacity .4s var(--ease); }
.score-dots .sd.on { opacity: 0; }
.score-dots.lit .sd.on { opacity: 1; }
.score-dots .sd-val { position: absolute; left: 0; right: 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.score-dots .sd-val small { color: var(--ink-3); font-size: 12.5px; }
.score-dots .sd-val b { font-weight: 650; letter-spacing: -.02em; line-height: 1.05; }

/* ══ Lists: flat rows on the card, one hairline between them (like "Did training help?") ══
   Overrides the glass tiles: no per-row boxes, even padding, solid thin separators. */
.card .list-row, .card .trow, .list .list-row, .card .step, .card .kn-item, .card .meet-row, .agenda .ag-day, .card .helped {
    background: none !important; box-shadow: none !important; border-radius: 0 !important; margin-top: 0 !important;
    border-top: 1px solid var(--glass-line) !important;
}
.card .list-row:first-of-type, .card .trow:first-child, .list .list-row:first-child, .card .step:first-child, .agenda .ag-day:first-child { border-top: 0 !important; }
.list, .tlist, .agenda { padding: 4px 22px !important; }
.list .list-row, .tlist .trow { padding: 16px 0 !important; }
.agenda .ag-day { padding: 16px 0 !important; }
.card .list-row { padding: 14px 0 !important; }
.card .list-row:hover, .list .list-row:hover, .card .trow:hover { background: none !important; }
.list .list-row:hover b, .card .trow:hover b, .card .list-row:hover b { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--glass-line); }
.card .step { padding: 14px 0 !important; }
.card .helped { padding: 16px 0; }
.ag-event:hover { background: rgba(120,125,150,.08); }
.set-row, .fact, .kn-item { border-top: 1px solid var(--glass-line) !important; }
/* Purple is Cue's colour: switches, the selected option, and Settings accents. */
.toggle[aria-checked="true"] { background: linear-gradient(135deg, #8B7BFF, #6A55F0); box-shadow: 0 2px 8px rgba(106,85,240,.35); }
.seg button[aria-pressed="true"], .tab[aria-selected="true"] { background: linear-gradient(135deg, #7C6BFF, #5A45E6); color: #fff; box-shadow: 0 4px 14px rgba(90,69,230,.30); }

/* Clear affordances: small pill buttons, an always-visible Prep, clickable rows that show it. */
.btn-sm { height: 30px; padding: 0 12px; font-size: 12.5px; }
.ag-prep { opacity: 1 !important; height: 28px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 550; color: var(--ink-2);
    background: var(--glass-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 0 0 1px var(--glass-edge); transition: background .14s, color .14s; }
.ag-event:hover .ag-prep { background: var(--glass-3); color: var(--ink); }
.calls-row, .clients-row { position: relative; padding-right: 26px !important; border-radius: 12px !important; transition: background .14s; }
.calls-row::after, .clients-row::after { content: '›'; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 18px; }
.list .calls-row:hover, .list .clients-row:hover { background: rgba(120,125,150,.08) !important; }
/* The heading accent is Cue's purple (the agenda's known-client bar stays its own colour). */
.grad { background-image: linear-gradient(90deg, #6A55F0, #A98BFF); }
:root[data-theme="dark"] .grad { background-image: linear-gradient(90deg, #A98BFF, #D9CCFF); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .grad { background-image: linear-gradient(90deg, #A98BFF, #D9CCFF); } }
/* Gym in Cue's purple: the live mic dot, typing dots, and completed levels. */
.micbar .live i { background: #7C6BFF; box-shadow: 0 0 0 0 rgba(124,107,255,.5); animation: pulse-purple 1.4s infinite; }
@keyframes pulse-purple { 0% { box-shadow: 0 0 0 0 rgba(124,107,255,.55); } 70% { box-shadow: 0 0 0 7px rgba(124,107,255,0); } 100% { box-shadow: 0 0 0 0 rgba(124,107,255,0); } }
.typing i { background: #8B7BFF; }
.level.covered { background: rgba(124,107,255,.14); }
.level.covered .dot { background: linear-gradient(135deg, #8B7BFF, #6A55F0); }
.level.partial .dot { background: conic-gradient(#8B7BFF 0 50%, transparent 50%); box-shadow: inset 0 0 0 2px #8B7BFF; }
.week i.on { background: #7C6BFF; box-shadow: 0 0 0 4px rgba(124,107,255,.18); }
/* "Hidden from capture" in purple too. */
.capture[aria-pressed="true"] .dot { background: #7C6BFF; box-shadow: 0 0 0 3px rgba(124,107,255,.18); }
.capture[aria-pressed="true"] .capture-ico { color: #6A55F0; }
:root[data-theme="dark"] .capture[aria-pressed="true"] .capture-ico { color: #B9A8FF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .capture[aria-pressed="true"] .capture-ico { color: #B9A8FF; } }
/* Start Cue pill: the status dot lights up purple on hover. */
.start-pill:hover .start-pill-dot { background: #8B7BFF; box-shadow: 0 0 10px rgba(139,123,255,.7); }

/* ── Tutorial ("How Cue helps") ── */
.tour { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; animation: enter .25s var(--ease); }
.tour.closing { opacity: 0; transition: opacity .2s; }
.tour-scrim { position: absolute; inset: 0; background: rgba(23,23,30,.38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tour-sheet { position: relative; width: min(1120px, calc(100vw - 48px)); max-height: calc(100vh - 48px); display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
    background: var(--glass-3, #fff); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-shadow), 0 30px 80px rgba(20,20,40,.35); }
.tour-top { display: flex; align-items: center; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--glass-line); }
.tour-top .brand { padding: 0; }
.tour-steps { display: flex; gap: 6px; }
.tour-steps i { width: 26px; height: 5px; border-radius: 3px; background: var(--glass-line); transition: background .3s; }
.tour-steps i.on { background: linear-gradient(90deg, #7C6BFF, #A98BFF); }
.tour-skip { border: 0; background: none; color: var(--ink-3); font: inherit; cursor: pointer; }
.tour-skip:hover { color: var(--ink); }
.tour-body { overflow-y: auto; }
.tour-screen { padding: 32px 38px 26px; animation: enter .35s var(--ease) both; }
.tour-eyebrow { font-size: 12.5px; font-weight: 600; color: #5A45E6; }
:root[data-theme="dark"] .tour-eyebrow { color: #B9A8FF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tour-eyebrow { color: #B9A8FF; } }
.tour h1 { font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 40px; letter-spacing: -.01em; margin: 6px 0 0; }
.tour-sub { color: var(--ink-2); font-size: 15.5px; line-height: 24px; margin: 8px 0 0; max-width: 680px; }
.tour-foot { display: flex; align-items: center; padding: 14px 24px; border-top: 1px solid var(--glass-line); }
.tour-promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; }
.tour-promise { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; background: var(--glass-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 0 0 1px var(--glass-edge); }
.tour-promise p { color: var(--ink-2); margin: 0; font-size: 13.5px; line-height: 20px; }
.tour-when { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.tour-split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; margin-top: 22px; align-items: start; }
.tour-notes { display: flex; flex-direction: column; gap: 14px; }
.tour-note { display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.tour-note .n { width: 24px; height: 24px; border-radius: 50%; background: rgba(124,107,255,.16); color: #5A45E6; font: 600 12.5px/24px var(--font); text-align: center; }
.tour-note b { display: block; font-weight: 600; } .tour-note span b { display: inline; color: var(--ink); }
.tour-note > div > span { color: var(--ink-2); }
.tour-where { margin-top: 4px; padding: 12px 14px; border-radius: 12px; background: var(--glass-2); box-shadow: 0 0 0 1px var(--glass-edge); color: var(--ink-2); }
.tour-where b { color: var(--ink); }
.tour-topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.tour-topic { position: relative; display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 18px; border: 0; border-radius: 16px; cursor: pointer; color: inherit; font: inherit;
    background: var(--glass-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 0 0 1px var(--glass-edge); transition: transform .16s var(--ease), background .16s; }
.tour-topic:hover { transform: translateY(-2px); background: var(--glass-3); }
.tour-topic b { font-family: var(--serif); font-weight: 500; font-size: 17px; }
.tour-topic small { color: var(--ink-3); }
.tour-tn { font-family: var(--mono); color: #7C6BFF; font-size: 12px; }
.tour-arrow { position: absolute; right: 16px; top: 16px; color: var(--ink-3); }

/* drawn screens */
.tour-shot { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; background: var(--page-grad); box-shadow: 0 0 0 1px var(--glass-edge); font-size: 12.5px; }
.tour-shot.dark { background: linear-gradient(160deg, #1D2029, #2A2F3D); color: #E9EAF0; min-height: 360px; }
.tm-card { background: var(--glass); border-radius: 14px; padding: 12px 14px; box-shadow: var(--glass-shadow); }
.tm-head { font-family: var(--serif); font-size: 16px; margin-bottom: 6px; }
.tm-hello small { color: var(--ink-3); } .tm-hello div { font-family: var(--serif); font-size: 20px; }
.tm-2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.tm-row { display: flex; align-items: center; gap: 14px; }
.tm-center { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.tm-eyebrow { font-size: 11.5px; color: var(--ink-3); }
.tm-t { font-weight: 550; font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.tm-card small, .tm-gym small { color: var(--ink-3); display: block; }
.tm-day { display: grid; grid-template-columns: 90px 1fr; padding: 8px 0; border-top: 1px solid var(--glass-line); }
.tm-day:first-of-type { border-top: 0; }
.tm-date { display: flex; align-items: center; gap: 8px; } .tm-date small { display: block; color: var(--ink-3); }
.tm-num { font-family: var(--serif); font-size: 24px; }
.tm-ev { display: grid; grid-template-columns: 3px 1fr auto; gap: 10px; align-items: center; }
.tm-ev i { align-self: stretch; border-radius: 2px; background: var(--ink-3); opacity: .5; }
.tm-ev.known i { background: #8B7BFF; opacity: 1; }
.tm-known { font-size: 10.5px; font-weight: 500; color: var(--good-ink); background: var(--good-soft); border-radius: 999px; padding: 1px 7px; }
.tm-prep, .tm-btn { font-size: 11.5px; padding: 3px 11px; border-radius: 999px; background: var(--glass-2); box-shadow: 0 0 0 1px var(--glass-edge); white-space: nowrap; }
.tm-btn.dark { background: var(--ink); color: var(--bg); box-shadow: none; } .tm-btn.wide { display: block; text-align: center; padding: 6px; }
.tm-btns { display: flex; gap: 6px; margin-top: 10px; }
.tm-lines i { display: block; height: 7px; border-radius: 4px; background: var(--glass-line); margin: 7px 0; }
.tm-step { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--glass-line); }
.tm-check { width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.tm-check.on { background: #7C6BFF; box-shadow: none; }
.tm-gym { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--glass-line); }
.tm-gym:first-child { border-top: 0; }
.tm-n { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--glass-2); }
.tm-lvl { width: 3px; height: 26px; border-radius: 2px; justify-self: center; } .tm-lvl.good { background: var(--good); } .tm-lvl.warn { background: var(--warn); } .tm-lvl.bad { background: var(--bad); }
.tm-chev { color: var(--ink-3); }
.tm-tabs { display: flex; gap: 6px; } .tm-tabs span { padding: 3px 10px; border-radius: 999px; background: var(--glass); box-shadow: 0 0 0 1px var(--glass-line); font-size: 11.5px; }
.tm-tabs span.on { background: linear-gradient(135deg, #7C6BFF, #5A45E6); color: #fff; box-shadow: none; }
.tm-meet { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tm-tile { height: 120px; border-radius: 12px; background: rgba(255,255,255,.05); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.tm-tile small { color: rgba(255,255,255,.55); }
.tm-av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(169,139,255,.3); font-weight: 600; } .tm-av.you { background: rgba(255,255,255,.12); font-size: 12px; }
.tm-quote { color: rgba(255,255,255,.75); font-style: italic; }
.tm-live { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.tm-pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 5px 0 12px; border-radius: 16px; background: rgba(10,10,12,.96); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 8px 24px rgba(0,0,0,.4); }
.tm-pdot { width: 7px; height: 7px; border-radius: 50%; background: #8B7BFF; box-shadow: 0 0 8px rgba(139,123,255,.8); }
.tm-pst { color: rgba(255,255,255,.55); } .tm-stop { padding: 2px 12px; border-radius: 12px; background: #0A0A0C; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); font-size: 11px; }
.tm-cue { width: min(330px, 100%); padding: 10px 12px; border-radius: 12px; background: rgba(16,16,18,.96); box-shadow: 0 0 0 1px rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 4px; color: #fff; }
.tm-cue small { color: rgba(255,255,255,.6); }
.tm-cue.say { box-shadow: 0 0 0 1px rgba(169,139,255,.5), 0 0 24px -6px rgba(169,139,255,.5); }
.tm-cue.ask { box-shadow: 0 0 0 1px rgba(255,194,77,.5); }
.tm-tag { font-size: 10.5px; font-weight: 600; letter-spacing: .04em; color: #C9B6FF; } .tm-cue.ask .tm-tag { color: #FFD27A; } .tm-cue.cov .tm-tag { color: rgba(255,255,255,.6); }
.tm-chips { display: flex; flex-wrap: wrap; gap: 4px; } .tm-chips span { font-size: 10.5px; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.6); }
.tm-chips span.on { background: rgba(169,139,255,.25); color: #E3DAFF; }
.tm-mini { height: 128px; border-radius: 12px; overflow: hidden; background: var(--page-grad); padding: 8px; font-size: 11px; display: flex; align-items: center; }
.tm-mini .tm-card { transform: scale(.82); transform-origin: left center; width: 122%; }
.tm-mini.dark { background: linear-gradient(160deg, #1D2029, #2A2F3D); justify-content: center; }
.tm-levels { display: flex; flex-direction: column; gap: 6px; width: 100%; } .tm-levels span { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: var(--glass); }
.tm-levels i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ink-3); } .tm-levels .on i { background: linear-gradient(135deg, #8B7BFF, #6A55F0); box-shadow: none; }
.tour-pin { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: #5A45E6; color: #fff; font: 600 12.5px/26px var(--font); text-align: center; box-shadow: 0 0 0 5px rgba(90,69,230,.22); z-index: 2; }
.tour-pin.pulse { animation: tour-pin 1.8s infinite; }
@keyframes tour-pin { 50% { box-shadow: 0 0 0 11px rgba(90,69,230,.08); } }
@media (max-width: 1100px) { .tour-split { grid-template-columns: 1fr; } .tour-promises, .tour-topics { grid-template-columns: repeat(2, 1fr); } }

/* Web demo banner (web.js only) */
.demo-banner { position: fixed; z-index: 70; left: 50%; bottom: 14px; transform: translateX(-50%); max-width: calc(100vw - 40px); padding: 9px 16px; border-radius: 999px; font-size: 12.5px; color: var(--ink-2);
    background: var(--glass-3); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-shadow); }
.demo-banner b { color: var(--ink); } .demo-banner a { color: #5A45E6; font-weight: 600; margin-left: 4px; }
/* Web demo: hide what can't apply in a browser or would change the shared sample data. */
.web-demo .capture, .web-demo .calls-row .btn-danger, .web-demo .calls-row .row > .row:has(.btn-danger) { display: none !important; }
