/* EVLVD Growth OS: aurora design system (evlvd-visuals). Navy ground, teal to violet
   signature gradient, Montserrat, glass panels. */
:root {
  --navy: #0A0D17; --panel: #11162A; --panel-2: #0E1220; --line: rgba(108, 92, 232, .25); --line-soft: rgba(185, 200, 238, .12);
  --teal: #2DD4BF; --violet: #6C5CE8; --aqua: #8FE8DC;
  --text: #EDF0F7; --white: #FFFFFF; --muted: #B9C8EE; --dim: #5E688C;
  --grad: linear-gradient(90deg, #2DD4BF, #6C5CE8);
  --ok: #2DD4BF; --warn: #F5C46B; --bad: #FF7A8A;
  --r: 16px; --r-sm: 10px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh; background: var(--navy); color: var(--text);
  font: 500 15px/1.5 Montserrat, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
body::before { /* aurora */
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 55% at 92% 0%, rgba(45, 212, 191, .20), transparent 62%),
    radial-gradient(60% 60% at 0% 100%, rgba(108, 92, 232, .26), transparent 64%),
    radial-gradient(40% 40% at 50% 45%, rgba(60, 90, 200, .07), transparent 70%),
    var(--navy);
}
body::after { /* one diagonal light streak */
  content: ""; position: fixed; inset: -20%; z-index: -1; pointer-events: none; opacity: .12;
  background: linear-gradient(115deg, transparent 44%, rgba(143, 232, 220, .55) 50%, transparent 56%);
}
a { color: var(--aqua); }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px;
  padding: 14px max(16px, env(safe-area-inset-left)); background: rgba(10, 13, 23, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft);
}
.wordmark { display: flex; align-items: baseline; gap: 8px; text-decoration: none; white-space: nowrap; }
.wordmark b { font-weight: 700; font-size: 22px; letter-spacing: .02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark span { font-weight: 600; font-size: 11px; letter-spacing: .28em; color: var(--white); }
.who { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); min-width: 0; }
.who .role { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--aqua); border: 1px solid rgba(143, 232, 220, .3); border-radius: 999px; padding: 3px 8px; }
.who .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- layout ---------- */
.wrap { width: min(1180px, 100%); margin: 0 auto; padding: 28px 16px 80px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--aqua); margin: 0 0 10px; }
.kicker::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad); }
h1 { font-weight: 700; font-size: clamp(28px, 5vw, 40px); line-height: 1.1; margin: 0; letter-spacing: -.01em; color: var(--white); }
.rule { width: 72px; height: 3px; border-radius: 3px; background: var(--grad); margin: 14px 0 0; }
.lede { color: var(--muted); margin: 14px 0 0; max-width: 60ch; }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(17, 22, 42, .8); color: var(--text);
  font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.btn:hover { border-color: rgba(143, 232, 220, .5); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { border: 0; background: var(--grad); color: #071016; font-weight: 700; box-shadow: 0 10px 30px rgba(45, 212, 191, .18); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--bad); border-color: rgba(255, 122, 138, .35); }
.btn.small { white-space: nowrap; min-height: 36px; padding: 6px 14px; font-size: 13px; }
.btn.block { width: 100%; }

/* ---------- chips / filters ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 38px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-soft); background: rgba(17, 22, 42, .6); color: var(--muted); font-weight: 600; font-size: 13px; cursor: pointer; }
.chip[aria-pressed="true"] { color: var(--white); border-color: transparent; background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--grad) border-box; border: 1px solid transparent; }
.chip .n { margin-left: 6px; color: var(--aqua); }

/* ---------- status pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: rgba(10, 13, 23, .78); border: 1px solid var(--line-soft); color: var(--muted); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.in_review { color: var(--aqua); }
.pill.changes_requested { color: var(--warn); }
.pill.approved { color: var(--teal); border-color: rgba(45, 212, 191, .4); }
.pill.posted { color: #A99CFF; }
.pill.archived { color: var(--dim); }

/* ---------- reel grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 200px), 1fr)); gap: 16px; }
.card { position: relative; display: block; width: 100%; padding: 0; text-align: left; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-soft); background: var(--panel); cursor: pointer; color: inherit; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); border-color: var(--line); box-shadow: var(--shadow); }
.card .thumb { position: relative; aspect-ratio: 9 / 16; background: var(--panel-2); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .pill { position: absolute; top: 10px; left: 10px; z-index: 1; }
.card .num { position: absolute; top: 10px; right: 10px; z-index: 1; font-weight: 700; font-size: 11px; color: var(--white); background: rgba(10, 13, 23, .78); border: 1px solid var(--line-soft); border-radius: 999px; padding: 4px 8px; }
.card .meta { padding: 12px 12px 14px; border-top: 1px solid var(--line-soft); }
.card .title { font-weight: 700; font-size: 14px; line-height: 1.3; min-height: 2.6em; color: var(--white); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .sub { margin-top: 6px; font-size: 12px; color: var(--muted); }
.card .ver { color: var(--aqua); font-weight: 700; }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r); background: rgba(17, 22, 42, .45); }
.empty strong { display: block; color: var(--white); font-size: 18px; margin-bottom: 6px; }

/* ---------- review sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: rgba(5, 7, 13, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet-card { position: relative; display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 0; width: min(980px, 100%); max-height: calc(100vh - 48px); border-radius: 22px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.player { position: relative; background: #000; display: flex; align-items: center; justify-content: center; }
.player video { width: 100%; height: 100%; max-height: calc(100vh - 48px); aspect-ratio: 9 / 16; object-fit: contain; background: #000; display: block; }
.panel { display: flex; flex-direction: column; min-width: 0; max-height: calc(100vh - 48px); }
.panel-body { flex: 1; overflow-y: auto; padding: 24px 24px 16px; }
.panel-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; padding-right: 44px; }
.panel h2 { font-weight: 700; font-size: 22px; line-height: 1.25; margin: 0; color: var(--white); }
.panel .facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.panel .facts b { color: var(--text); font-weight: 600; }
.label { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); margin: 22px 0 8px; }
.caption { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: var(--r-sm); padding: 14px; color: var(--text); font-size: 14px; }
.cover-row { display: flex; gap: 12px; align-items: center; }
.cover-row img { width: 64px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-soft); }
.history { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.history li { padding: 10px 12px; border-radius: var(--r-sm); background: rgba(14, 18, 32, .7); border: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); }
.history li b { color: var(--text); font-weight: 600; }
.history .note { margin-top: 4px; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.actions { padding: 14px 24px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-soft); background: rgba(14, 18, 32, .92); display: grid; gap: 10px; }
.actions .row { display: flex; gap: 10px; flex-wrap: wrap; }
.actions .row .btn { flex: 1 1 auto; }
.lock { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.lock::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--grad); }
textarea, input[type="date"], input[type="text"], input[type="password"] {
  width: 100%; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--panel-2); padding: 12px 14px; color: var(--text); font-size: 15px;
}
textarea { min-height: 96px; resize: vertical; }
.close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(10, 13, 23, .8); color: var(--white); font-size: 20px; line-height: 1; cursor: pointer; }
.pager { display: flex; gap: 8px; margin-left: auto; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 80; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 600; font-size: 14px; }
.toast.bad { border-color: rgba(255, 122, 138, .5); color: #FFD3D9; }
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r); background: linear-gradient(var(--panel), var(--panel)) padding-box, linear-gradient(90deg, rgba(45, 212, 191, .5), rgba(108, 92, 232, .5)) border-box; border: 1px solid transparent; margin-bottom: 22px; }
.notice .dot { flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 14px rgba(45, 212, 191, .7); }
.notice p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.notice strong { color: var(--white); }

/* ---------- calendar ---------- */
.cal-head { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.cal-head h2 { margin: 0 auto 0 0; font-size: 20px; font-weight: 700; color: var(--white); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal .dow { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); padding: 0 4px 4px; }
.day { min-height: 128px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(17, 22, 42, .55); padding: 8px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.day.out { opacity: .35; }
.day.today { border-color: rgba(45, 212, 191, .6); box-shadow: inset 0 0 0 1px rgba(45, 212, 191, .3); }
.day .d { font-size: 12px; font-weight: 700; color: var(--muted); }
.day .d .wd { display: none; }
.slot { display: flex; gap: 8px; align-items: center; width: 100%; padding: 5px; border-radius: 8px; border: 1px solid var(--line); background: rgba(10, 13, 23, .7); cursor: pointer; text-align: left; min-width: 0; }
.slot img { flex: none; width: 30px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 4px; }
.slot span { font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-width: 0; }
.slot.posted { border-color: rgba(169, 156, 255, .5); }
.section { margin-top: 40px; }
.section h2 { font-size: 20px; font-weight: 700; color: var(--white); margin: 0 0 6px; }
.section .sub { color: var(--muted); margin: 0 0 16px; font-size: 14px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); }
.table td { padding: 12px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; color: var(--text); overflow-wrap: anywhere; }
.table td .muted { color: var(--muted); }
.tablewrap { border: 1px solid var(--line-soft); border-radius: var(--r); background: rgba(17, 22, 42, .5); overflow: hidden; }
.mode { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(245, 196, 107, .4); color: var(--warn); }
.mode.live { color: var(--bad); border-color: rgba(255, 122, 138, .5); }
.unsched { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.popover { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(5, 7, 13, .7); }
.popover .box { width: min(420px, 100%); padding: 22px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.popover h3 { margin: 0 0 4px; font-size: 18px; color: var(--white); }
.popover p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.popover .row { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.popover .row .btn { flex: 1 1 auto; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: min(420px, 100%); padding: 34px 28px 28px; border-radius: 22px; background: rgba(17, 22, 42, .82); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.login-card .wordmark { margin-bottom: 30px; }
.login-card h1 { font-size: 30px; }
.field { display: grid; gap: 6px; margin-top: 16px; }
.field label { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.err { color: #FFB3BE; font-size: 14px; min-height: 20px; margin: 12px 0 0; }
.fine { color: var(--dim); font-size: 12px; margin: 18px 0 0; text-align: center; }

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .top { gap: 10px; padding-top: max(12px, env(safe-area-inset-top)); }
  .who .name { display: none; }
  .wrap { padding-top: 20px; }
  .sheet { padding: 0; place-items: stretch; }
  .sheet-card { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); width: 100%; max-height: none; height: 100%; border-radius: 0; border: 0; }
  .player video { max-height: 58vh; width: auto; max-width: 100%; }
  .panel { max-height: none; min-height: 0; }
  .panel-body { padding: 18px 16px 12px; }
  .actions { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .close { top: max(10px, env(safe-area-inset-top)); }
  .cal { grid-template-columns: 1fr; gap: 8px; }
  .cal .dow, .day.out, .day.blank { display: none; }
  .day { min-height: 0; flex-direction: row; align-items: flex-start; }
  .day .d { flex: none; width: 64px; padding-top: 6px; }
  .day .d .wd { display: block; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
  .day .slots { flex: 1; display: grid; gap: 6px; min-width: 0; }
  .day.empty-day { display: none; }
  .table thead { display: none; }
  .table tr { display: block; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
  .table td { display: block; padding: 2px 0; border: 0; }
}
@media (min-width: 761px) { .day .slots { display: grid; gap: 6px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* small helpers (no inline styles: the CSP blocks them) */
.gap-top { margin-top: 14px; }
.gap-bottom { margin: 0 0 14px; }
.label-tight { display: block; margin: 0 0 6px; }
.label-flush { margin: 0; }
.span-all { grid-column: 1 / -1; }
.dim { color: var(--dim); }
.cover-note { color: var(--muted); font-size: 13px; }

/* ---------- Growth OS shell: sidebar on desktop, top bar + tab bar on phone ---------- */
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.side { display: none; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(10, 13, 23, .92); border-top: 1px solid var(--line-soft);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; padding: 4px 2px; border: 0; border-radius: 12px; background: transparent; color: var(--dim); text-decoration: none; font-size: 11px; font-weight: 600; cursor: pointer; min-width: 0; }
.tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab[aria-current="page"] { color: var(--white); }
.tab[aria-current="page"] .ico { stroke: var(--aqua); filter: drop-shadow(0 0 8px rgba(45, 212, 191, .55)); }
.more-menu { position: fixed; inset: 0; z-index: 29; background: rgba(5, 7, 13, .55); display: flex; align-items: flex-end; justify-content: flex-end; padding: 0 10px calc(76px + env(safe-area-inset-bottom)); }
.more-card { width: min(280px, 100%); display: grid; gap: 2px; padding: 8px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.more-link { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.more-link[aria-current="page"] { background: rgba(108, 92, 232, .18); color: var(--white); }
.more-link .ico { color: var(--aqua); }
body.shell .wrap { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
body.shell .toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
.foot { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--dim); }
.byline { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.subnav { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 22px; border-radius: 999px; background: rgba(17, 22, 42, .7); border: 1px solid var(--line-soft); }
.subnav a { padding: 7px 16px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 13px; }
.subnav a[aria-current="page"] { color: var(--white); background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--grad) border-box; border: 1px solid transparent; }

@media (min-width: 1024px) {
  body.shell { padding-left: 248px; }
  body.shell .top, body.shell .tabbar, body.shell .more-menu { display: none !important; }
  body.shell .wrap { padding: 40px 32px 48px; }
  body.shell .toast { bottom: 24px; left: calc(50% + 124px); }
  .side {
    position: fixed; inset: 0 auto 0 0; z-index: 25; width: 248px; display: flex; flex-direction: column; gap: 22px;
    padding: 26px 16px 18px; background: rgba(10, 13, 23, .82); border-right: 1px solid var(--line-soft);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overflow-y: auto;
  }
  .side .wordmark { padding: 0 10px; }
  .side-nav { display: grid; gap: 2px; }
  .side-link { position: relative; display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 8px 12px; border-radius: 12px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; transition: background .15s ease, color .15s ease; }
  .side-link:hover { color: var(--white); background: rgba(17, 22, 42, .9); }
  .side-link[aria-current="page"] { color: var(--white); background: rgba(108, 92, 232, .16); box-shadow: inset 0 0 0 1px var(--line); }
  .side-link[aria-current="page"]::before { content: ""; position: absolute; left: -16px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); }
  .side-link[aria-current="page"] .ico { stroke: var(--aqua); }
  .side-who { margin-top: auto; display: grid; gap: 10px; padding: 14px 10px 0; border-top: 1px solid var(--line-soft); }
  .who-line { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
  .who-line .name { max-width: 100%; font-weight: 600; font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .who-line .role { flex: none; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--aqua); border: 1px solid rgba(143, 232, 220, .3); border-radius: 999px; padding: 3px 8px; }
}

/* ---------- Home ---------- */
.today { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .today { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.tile { display: flex; flex-direction: column; align-items: flex-start; padding: 22px; border-radius: 20px; background: rgba(17, 22, 42, .72); border: 1px solid var(--line-soft); color: inherit; text-decoration: none; min-width: 0; }
.tile-approve { position: relative; overflow: hidden; background: linear-gradient(rgba(17, 22, 42, .92), rgba(17, 22, 42, .92)) padding-box, linear-gradient(135deg, rgba(45, 212, 191, .55), rgba(108, 92, 232, .55)) border-box; border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease; }
.tile-approve::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(45, 212, 191, .22), transparent 70%); pointer-events: none; }
.tile-approve:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tile-label { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--aqua); }
.tile-row { display: flex; width: 100%; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tile-range { font-size: 13px; color: var(--muted); }
.big { margin: 10px 0 4px; font-weight: 700; font-size: clamp(64px, 12vw, 96px); line-height: 1; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tile-sub { margin: 0 0 18px; color: var(--muted); font-size: 14px; max-width: 42ch; }
.tile .btn { margin-top: auto; }
.mini { margin: 18px 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); }
.mini-list { display: grid; gap: 8px; width: 100%; }
.mini-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; background: rgba(10, 13, 23, .6); border: 1px solid var(--line-soft); text-decoration: none; color: inherit; min-width: 0; }
.mini-item img, .mini-blank { flex: none; width: 34px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 6px; background: var(--panel-2); }
.mini-text { display: grid; min-width: 0; }
.mini-text b { font-weight: 600; font-size: 14px; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-text span { font-size: 12px; color: var(--muted); }
.mini-empty { margin: 0; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line); color: var(--muted); font-size: 14px; }
.legend { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.legend .status b { color: var(--white); margin-left: 4px; }

/* ---------- agent and bot cards ---------- */
.mods { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.mod { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 18px; background: rgba(17, 22, 42, .66); border: 1px solid var(--line-soft); color: inherit; text-decoration: none; min-width: 0; transition: transform .2s ease, border-color .2s ease; }
a.mod:hover { transform: translateY(-2px); border-color: var(--line); }
.mod.live { background: linear-gradient(rgba(17, 22, 42, .9), rgba(17, 22, 42, .9)) padding-box, linear-gradient(135deg, rgba(45, 212, 191, .6), rgba(108, 92, 232, .45)) border-box; border: 1px solid transparent; }
.mod-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mod h3 { margin: 8px 0 0; font-size: 17px; font-weight: 700; color: var(--white); }
.mod .does { margin: 0; color: var(--muted); font-size: 14px; }
.mod .wait { margin: 8px 0 0; padding-top: 10px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--text); }
.mod .wait span { display: block; font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin-bottom: 2px; }
.mod .go { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--aqua); }
.mod .go::after { content: " \2192"; }
.kind { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line-soft); background: rgba(10, 13, 23, .6); white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.live { color: var(--teal); border-color: rgba(45, 212, 191, .45); }
.status.live::before { box-shadow: 0 0 10px rgba(45, 212, 191, .9); }
.status.building { color: var(--warn); border-color: rgba(245, 196, 107, .35); }
.status.planned, .status.soon { color: #A99CFF; border-color: rgba(169, 156, 255, .3); }

/* ---------- section and settings pages ---------- */
.section.first { margin-top: 8px; }
.gap-top-lg { margin-top: 32px; }
.needs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.needs li { position: relative; padding: 14px 16px 14px 46px; border-radius: 14px; background: rgba(17, 22, 42, .6); border: 1px solid var(--line-soft); color: var(--text); font-size: 15px; }
.needs li::before { content: ""; position: absolute; left: 16px; top: 16px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(143, 232, 220, .5); }
#intro .lede + .lede { margin-top: 8px; }
.facts-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.fact { padding: 14px 16px; border-radius: 14px; background: rgba(17, 22, 42, .6); border: 1px solid var(--line-soft); display: grid; gap: 4px; }
.fact span { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.fact b { font-weight: 600; color: var(--white); }
@media (max-width: 420px) { .top .who .role { display: none; } .top .wordmark span { letter-spacing: .2em; } }

/* ---------- Settings > Connections ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.conns { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.conn { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 18px; background: rgba(17, 22, 42, .66); border: 1px solid var(--line-soft); min-width: 0; }
.conn-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.conn h3 { margin: 0; font-size: 17px; color: var(--white); }
.conn .does { margin: 0; color: var(--muted); font-size: 14px; }
.conn .does b { color: var(--text); font-weight: 600; }
.vars { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.vars li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(10, 13, 23, .6); border: 1px solid var(--line-soft); min-width: 0; }
.vars code { font: 600 12px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); overflow-wrap: anywhere; min-width: 0; }
.vars .is-set { flex: none; font-size: 11px; font-weight: 700; color: var(--teal); }
.vars .not-set { flex: none; font-size: 11px; font-weight: 700; color: var(--dim); }
.conn .where { margin: 2px 0 0; font-size: 12px; color: var(--dim); }
.cstate { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line-soft); }
.cstate::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cstate.connected, .cstate.on { color: var(--teal); border-color: rgba(45, 212, 191, .45); }
.cstate.not-connected { color: var(--bad); border-color: rgba(255, 122, 138, .4); }
.cstate.coming-soon, .cstate.off { color: var(--dim); }
.cstate.test { color: var(--warn); border-color: rgba(245, 196, 107, .35); }
.conn-test { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.test-out { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; min-width: 0; }
.test-out.ok { color: var(--teal); }
.test-out.bad { color: #FFB3BE; }

/* ---------- systems, goals ---------- */
.home-sys { margin: 2px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--aqua); }
.fit { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
.fit-node { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 18px; border-radius: 16px; background: rgba(17, 22, 42, .66); border: 1px solid var(--line-soft); min-width: 0; }
.fit-node.here { background: linear-gradient(rgba(17, 22, 42, .9), rgba(17, 22, 42, .9)) padding-box, var(--grad) border-box; border: 1px solid transparent; }
.fit-node h3 { margin: 0; font-size: 18px; color: var(--white); }
.fit-owns { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.fit-node .btn { margin-top: auto; }
.fit-arrow { justify-self: center; width: 2px; height: 18px; background: var(--grad); border-radius: 2px; }
@media (min-width: 900px) {
  .fit { grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr); align-items: center; }
  .fit-node { height: 100%; }
  .fit-arrow { width: 28px; height: 2px; position: relative; }
  .fit-arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left-color: #6C5CE8; }
}
.goals { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.goal { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 16px; background: rgba(17, 22, 42, .66); border: 1px solid var(--line-soft); min-width: 0; }
.goal h3 { margin: 0; font-size: 16px; color: var(--white); }
.goal-target { margin: 0; font-weight: 700; font-size: 15px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.goal-why { margin: 0; font-size: 14px; color: var(--muted); }
.goal-mods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip-sm { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-soft); color: var(--muted); background: rgba(10, 13, 23, .6); }
.chip-sm.live { color: var(--teal); border-color: rgba(45, 212, 191, .4); }
.chip-sm.building { color: var(--warn); border-color: rgba(245, 196, 107, .3); }
.sys-panel { margin: 0 0 28px; padding: 20px; border-radius: 20px; background: linear-gradient(rgba(17, 22, 42, .9), rgba(17, 22, 42, .9)) padding-box, linear-gradient(135deg, rgba(45, 212, 191, .5), rgba(108, 92, 232, .5)) border-box; border: 1px solid transparent; }
.sys-panel-top { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.sys-panel h2 { margin: 6px 0 4px; font-size: 20px; color: var(--white); }
.sys-panel .sub { margin: 0; color: var(--muted); font-size: 14px; max-width: 60ch; }
.sys-summary { margin-top: 16px; }
.stats { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { padding: 12px 14px; border-radius: 14px; background: rgba(10, 13, 23, .6); border: 1px solid var(--line-soft); display: grid; gap: 2px; min-width: 0; }
.stat b { font-size: 26px; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 12px; color: var(--muted); }
.fine-left { margin: 10px 0 0; font-size: 12px; color: var(--dim); }

/* ---------- Swipe to approve (full-screen feed) ---------- */
body.feed-on { overflow: hidden; }
body.feed-on .tabbar, body.feed-on .more-menu, body.feed-on .top, body.feed-on .foot { display: none !important; }
.feed-wrap { padding: 0 !important; }
.feed { position: fixed; inset: 0; z-index: 45; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; background: #000; scrollbar-width: none; }
.feed::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { body.shell .feed { left: 248px; } }
.reel { position: relative; height: 100vh; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; touch-action: pan-y; transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .35s ease; background: #000; user-select: none; -webkit-user-select: none; }
.reel-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
@media (max-width: 760px) { .reel-video { object-fit: cover; } }
.reel-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(10, 13, 23, .55) 0%, transparent 16%, transparent 58%, rgba(10, 13, 23, .9) 76%, rgba(10, 13, 23, .97) 100%); }
.reel[data-lean="approve"] .reel-shade { box-shadow: inset 0 0 0 4px rgba(45, 212, 191, .9); }
.reel[data-lean="recut"] .reel-shade { box-shadow: inset 0 0 0 4px rgba(245, 196, 107, .9); }
.reel.out-right { transform: translateX(110%) rotate(8deg) !important; opacity: 0; }
.reel.out-left { transform: translateX(-110%) rotate(-8deg) !important; opacity: 0; }
.reel-burst { position: absolute; left: 50%; top: 45%; width: 140px; height: 140px; margin: -70px 0 0 -70px; border-radius: 50%; pointer-events: none; opacity: 0; transform: scale(.3); background: radial-gradient(circle, rgba(45, 212, 191, .95) 0%, rgba(108, 92, 232, .6) 45%, transparent 70%); }
.reel.burst .reel-burst { animation: burst .55s ease-out forwards; }
@keyframes burst { 0% { opacity: 0; transform: scale(.3); } 35% { opacity: 1; transform: scale(1.15); } 100% { opacity: 0; transform: scale(1.9); } }
.reel-text { position: absolute; left: 16px; right: 92px; bottom: calc(28px + env(safe-area-inset-bottom)); display: grid; gap: 8px; color: var(--white); }
.reel-hook { margin: 0; font-weight: 700; font-size: 18px; line-height: 1.2; text-shadow: 0 2px 16px rgba(0, 0, 0, .6); }
.reel-caption { all: unset; cursor: pointer; font-size: 14px; line-height: 1.45; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; }
.reel-caption.open { -webkit-line-clamp: 14; max-height: 46vh; overflow-y: auto; display: block; }
.reel-meta { margin: 0; font-size: 12px; color: var(--muted); }
.reel-actions { position: absolute; right: 12px; bottom: calc(28px + env(safe-area-inset-bottom)); display: grid; gap: 16px; justify-items: center; }
.ract { display: grid; justify-items: center; gap: 4px; border: 0; background: none; color: var(--white); font-size: 11px; font-weight: 700; cursor: pointer; padding: 0; }
.ract-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: rgba(10, 13, 23, .6); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform .15s ease; }
.ract:active .ract-ico { transform: scale(.88); }
.ract svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ract.approve .ract-ico { width: 68px; height: 68px; border: 0; background: var(--grad); color: #071016; box-shadow: 0 10px 34px rgba(45, 212, 191, .45); }
.ract.approve svg { width: 30px; height: 30px; stroke-width: 2.8; }
.ract.recut .ract-ico { color: var(--warn); }
.ract.sound.on .ract-ico { color: var(--aqua); border-color: rgba(143, 232, 220, .6); }
.ract-lock { margin: 0; max-width: 76px; text-align: center; font-size: 10px; color: var(--muted); }
.feed-bar { position: fixed; z-index: 46; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: max(12px, env(safe-area-inset-top)) 16px 12px; pointer-events: none; }
@media (min-width: 1024px) { body.shell .feed-bar { left: 248px; } }
.feed-bar > * { pointer-events: auto; }
.feed-close { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(10, 13, 23, .6); color: var(--white); text-decoration: none; font-size: 22px; border: 1px solid rgba(255, 255, 255, .18); }
.feed-count { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--white); text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
.feed-grid { font-size: 13px; font-weight: 600; color: var(--white); text-decoration: none; padding: 8px 14px; border-radius: 999px; background: rgba(10, 13, 23, .6); border: 1px solid rgba(255, 255, 255, .18); }
.feed-hint { pointer-events: none; position: fixed; z-index: 47; left: 16px; right: 16px; top: 40%; padding: 16px 18px; border-radius: 18px; text-align: center; font-weight: 600; color: var(--white); background: rgba(10, 13, 23, .85); border: 1px solid var(--line); box-shadow: var(--shadow); }
.feed-empty { min-height: 100dvh; display: grid; align-content: center; padding: 24px 20px; background: var(--navy); }
.feed-empty h1 { font-size: 34px; }
.feed-empty .row { display: flex; gap: 10px; flex-wrap: wrap; }
.recut-sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; background: rgba(5, 7, 13, .6); }
.recut-card { width: 100%; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: var(--panel); border-top: 1px solid var(--line); display: grid; gap: 12px; }
@media (min-width: 761px) { .recut-sheet { align-items: center; justify-content: center; } .recut-card { width: min(460px, 100%); border-radius: 22px; border: 1px solid var(--line); } }
.recut-card h3 { margin: 0; color: var(--white); }
.recut-card .row { display: flex; gap: 10px; }
.recut-card .row .btn { flex: 1; }
.swipe-only { display: none; }
@media (max-width: 760px) { .swipe-only { display: inline-flex; } }
@media (prefers-reduced-motion: reduce) { .reel.burst .reel-burst { animation: none; } }
body.feed-on .toast { top: calc(66px + env(safe-area-inset-top)); bottom: auto; border-radius: 18px; text-align: center; }
@media (min-width: 1024px) { body.shell.feed-on .toast { top: 70px; bottom: auto; } }

/* ---------- Business pulse ---------- */
.stats-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.pulse .stat b { font-size: clamp(26px, 4vw, 34px); }
.bars { display: grid; gap: 10px; margin-top: 16px; padding: 16px; border-radius: 16px; background: rgba(17, 22, 42, .6); border: 1px solid var(--line-soft); }
.bar-row { display: grid; grid-template-columns: minmax(90px, 1.2fr) 3fr auto; gap: 12px; align-items: center; min-width: 0; }
.bar-label { font-size: 13px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: grid; }
.bar-label small, .bar-val small { font-size: 11px; font-weight: 500; color: var(--dim); }
.bar-track { height: 10px; border-radius: 999px; background: rgba(10, 13, 23, .8); overflow: hidden; }
.bar-fill { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--grad); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.bar-val { font-size: 14px; font-weight: 700; color: var(--white); text-align: right; display: grid; }

/* ---------- Who to reach today ---------- */
.reach { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.person { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-radius: 18px; background: rgba(17, 22, 42, .7); border: 1px solid var(--line-soft); min-width: 0; }
.person-top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.person-rank { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 700; font-size: 14px; color: #071016; background: var(--grad); }
.person-id { min-width: 0; }
.person-id h3 { margin: 0; font-size: 16px; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-id p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.person-why { margin: 0; font-size: 14px; color: var(--text); }
.person-draft { padding: 12px 14px; border-radius: 12px; background: rgba(10, 13, 23, .7); border: 1px solid var(--line-soft); }
.person-draft span { display: block; font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.person-draft p { margin: 0; font-size: 14px; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.person-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.btn .soon { margin-left: 6px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--warn); }
.insights { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.insights li { position: relative; padding-left: 18px; font-size: 14px; color: var(--text); }
.insights li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }

/* ---------- Ask Growth OS ---------- */
.ask-spark { display: inline-block; width: 18px; height: 18px; flex: none; border-radius: 50%; background: conic-gradient(from 210deg, #2DD4BF, #8FE8DC, #6C5CE8, #2DD4BF); box-shadow: 0 0 14px rgba(45, 212, 191, .6); }
.ask-fab { position: fixed; z-index: 31; right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; box-shadow: var(--shadow); cursor: pointer; }
.ask-fab .ask-spark { width: 26px; height: 26px; }
body.feed-on .ask-fab { display: none; }
@media (min-width: 1024px) { .ask-fab { display: none; } }
.side-ask { display: none; }
@media (min-width: 1024px) {
  .side-ask { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(rgba(17, 22, 42, .9), rgba(17, 22, 42, .9)) padding-box, linear-gradient(90deg, rgba(45, 212, 191, .5), rgba(108, 92, 232, .5)) border-box; border-color: transparent; color: var(--white); font-weight: 600; font-size: 14px; cursor: pointer; }
  .side-ask kbd { margin-left: auto; font: 600 11px/1 Montserrat, sans-serif; color: var(--muted); padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line-soft); }
}
.ask { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-start; justify-content: center; padding: max(10vh, 24px) 16px 16px; background: rgba(5, 7, 13, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ask-card { width: min(640px, 100%); max-height: 80vh; overflow-y: auto; padding: 14px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 30px 90px rgba(0, 0, 0, .6); display: grid; gap: 12px; }
.ask-form { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 16px; background: var(--panel-2); border: 1px solid var(--line); }
.ask-form input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; padding: 10px 0 !important; font-size: 16px !important; outline: none; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ask-chips .chip { min-height: 34px; font-size: 12px; }
.ask-answer { padding: 14px 16px; border-radius: 14px; background: rgba(10, 13, 23, .7); border: 1px solid var(--line-soft); font-size: 15px; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }
.ask-src { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.ask-src a { font-size: 13px; font-weight: 600; color: var(--aqua); text-decoration: none; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(143, 232, 220, .35); }
.ask-mode, .ask-foot { margin: 8px 0 0; font-size: 12px; color: var(--dim); }
.ask-thinking { display: flex; gap: 6px; padding: 12px 4px; margin: 0; }
.ask-thinking span { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); animation: dots 1s infinite ease-in-out; }
.ask-thinking span:nth-child(2) { animation-delay: .15s; } .ask-thinking span:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }

/* ---------- Morning brief ---------- */
.brief-btn { gap: 10px; }
.brief-ico { width: 0; height: 0; border-left: 11px solid #071016; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.brief-btn.playing .brief-ico { width: 11px; height: 11px; border: 0; border-radius: 2px; background: #071016; }
.brief { margin: -6px 0 24px; padding: 16px 18px; border-radius: 18px; display: flex; gap: 16px; align-items: flex-start; background: linear-gradient(rgba(17, 22, 42, .9), rgba(17, 22, 42, .9)) padding-box, var(--grad) border-box; border: 1px solid transparent; }
.brief-wave { flex: none; display: flex; gap: 3px; align-items: center; height: 26px; padding-top: 2px; }
.brief-wave span { width: 4px; height: 8px; border-radius: 3px; background: var(--grad); }
.brief.on .brief-wave span { animation: wave 1s infinite ease-in-out; }
.brief-wave span:nth-child(2) { animation-delay: .1s; } .brief-wave span:nth-child(3) { animation-delay: .2s; } .brief-wave span:nth-child(4) { animation-delay: .3s; } .brief-wave span:nth-child(5) { animation-delay: .4s; }
@keyframes wave { 0%, 100% { height: 6px; } 50% { height: 24px; } }
.brief-text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.brief-text span.now { color: var(--white); background: rgba(45, 212, 191, .12); border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .brief.on .brief-wave span { animation: none; } }

/* Posting slots (two or more a day) */
.slot-time { color: var(--teal); font-weight: 700; }
.slot-free { display: block; font-size: 11px; color: var(--dim); padding: 2px 4px; letter-spacing: .04em; }
.month-planned { margin-top: 10px; font-size: 14px; color: var(--text); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.month-bar { display: inline-block; width: 140px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.month-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), #A99CFF); border-radius: inherit; }
#popSlot { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(10, 13, 23, .7); margin-bottom: 10px; }

/* No-show rescue */
.rescue.done { opacity: .55; }
.rescue-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--dim); }
.rescue-dot.upcoming { background: var(--teal); box-shadow: 0 0 10px rgba(45, 212, 191, .8); }
.rescue-dot.started, .rescue-dot.noshow { background: var(--warn); box-shadow: 0 0 10px rgba(245, 196, 107, .7); }
.rescue-dot.cancelled { background: #A99CFF; }
.handled { font-size: 12px; color: var(--muted); align-self: center; }

/* Reports scoreboard */
.score { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.score-card { padding: 18px 20px; border-radius: 18px; background: rgba(17, 22, 42, .72); border: 1px solid var(--line-soft); min-width: 0; display: grid; gap: 6px; align-content: start; }
.score-big { margin: 4px 0 0; font-size: clamp(40px, 7vw, 56px); font-weight: 700; line-height: 1; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.score-sub { margin: 0; font-size: 13px; color: var(--muted); }
.score-total { margin: 0; font-size: 12px; color: var(--dim); }
.delta.up { color: var(--teal); } .delta.down { color: var(--warn); } .delta.same { color: var(--muted); }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 34px; margin-top: 6px; }
.spark span { flex: 1; min-width: 6px; max-width: 22px; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--teal), rgba(108, 92, 232, .7)); opacity: .85; }
.did-strip { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); }
.tile-rescue { width: 100%; }
.tile-rescue.has-work { background: linear-gradient(rgba(17, 22, 42, .92), rgba(17, 22, 42, .92)) padding-box, linear-gradient(135deg, rgba(245, 196, 107, .55), rgba(108, 92, 232, .55)) border-box; border: 1px solid transparent; }
.big-sm { font-size: clamp(48px, 9vw, 72px); }
.did-note { grid-column: 1 / -1; margin: 0; }

/* Your agents: inbox, team, playbook, milestones */
.ax-group { margin-top: 26px; }
.ax-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.ax { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: 18px; background: rgba(17, 22, 42, .72); border: 1px solid var(--line-soft); min-width: 0; }
.ax.done { opacity: .6; }
.ax.flag { border-color: rgba(245, 196, 107, .35); }
.ax.brief { background: linear-gradient(rgba(17, 22, 42, .92), rgba(17, 22, 42, .92)) padding-box, linear-gradient(135deg, rgba(45, 212, 191, .5), rgba(108, 92, 232, .5)) border-box; border: 1px solid transparent; }
.ax-top { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.ax-kind { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--aqua); }
.ax-state { font-size: 12px; color: var(--muted); }
.ax h3 { margin: 0; font-size: 16px; color: var(--white); }
.ax-sub, .ax-why { margin: 0; font-size: 13px; color: var(--muted); }
.ax-body p { margin: 0; font-size: 14px; color: var(--text); line-height: 1.5; }
.agent-grid, .play-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.agent, .play { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border-radius: 18px; background: rgba(17, 22, 42, .72); border: 1px solid var(--line-soft); min-width: 0; }
.agent h3, .play h3 { margin: 4px 0 0; font-size: 17px; color: var(--white); }
.agent.is-soon, .play.is-soon { opacity: .8; }
.agent .btn { align-self: flex-start; }
.agent-did { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.agent-did div { padding: 10px 12px; border-radius: 12px; background: rgba(10, 13, 23, .6); border: 1px solid var(--line-soft); display: grid; gap: 2px; }
.agent-did span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.agent-did b { font-size: 14px; color: var(--text); font-weight: 600; }
.play-number { margin: 4px 0 0; font-size: 20px; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.month-bar.wide { width: 100%; max-width: 320px; }
.ms-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; color: var(--white); }
.ms-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.ms { padding: 16px 18px; border-radius: 18px; background: rgba(17, 22, 42, .6); border: 1px solid var(--line-soft); min-width: 0; }
.ms.now { border-color: rgba(45, 212, 191, .45); }
.ms ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.ms li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.ms li b { color: var(--text); font-weight: 600; }
.tile-agents { width: 100%; }
.ax-body p, .ax .person-draft p { overflow-wrap: anywhere; }

/* ---------- passive income: Teach Ask Sammy, Income, webinar plan, Ask Sammy pages ---------- */
.stat-note { font-style: normal; font-size: 12px; color: var(--dim); line-height: 1.35; }
.empty-stat b { color: var(--dim); background: none; -webkit-text-fill-color: var(--dim); }
.tn-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.tn-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; }
.tn-bar .fine, .tn-panel .fine, .pager .fine, .chat .fine, .step .fine { margin: 0; text-align: left; }
.tn-list { display: grid; gap: 12px; }
.tn { padding: 16px 18px; border-radius: 16px; background: rgba(17, 22, 42, .66); border: 1px solid var(--line-soft); min-width: 0; }
.tn.on { border-color: transparent; background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--grad) border-box; border: 1px solid transparent; }
.tn-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; }
.tn-pick input { width: 22px; height: 22px; accent-color: var(--teal); }
.tn h3 { margin: 10px 0 6px; font-size: 16px; color: var(--white); }
.tn-text { margin: 0; color: var(--muted); font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.tn-warn { margin: 8px 0 0; font-size: 13px; color: var(--warn); }
.tn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tn-edit { display: grid; gap: 8px; margin-top: 10px; }
.tn-edit input, .tn-edit textarea, .tn-add input, .chat-form textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(10, 13, 23, .7); }
.tn-team { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.tn-panel { padding: 16px 18px; border-radius: 16px; background: rgba(17, 22, 42, .66); border: 1px solid var(--line-soft); min-width: 0; }
.tn-panel h3 { margin: 0 0 10px; font-size: 15px; color: var(--white); }
.tn-switches { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.tn-switches li { display: flex; gap: 10px; align-items: flex-start; }
.tn-switches em { font-style: normal; }
.tn-add { display: grid; gap: 8px; grid-template-columns: 1fr 1fr auto; margin-top: 12px; }
.tn-try { max-width: 720px; }
.pager { align-items: center; flex-wrap: wrap; margin-top: 14px; }

.offer-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.offer { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 18px; background: rgba(17, 22, 42, .66); border: 1px solid var(--line-soft); min-width: 0; }
.offer .mod-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.offer-step { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 700; color: #071016; background: var(--grad); }
.offer h3 { margin: 8px 0 0; font-size: 17px; color: var(--white); }
.offer-price { margin: 0; font-weight: 700; color: var(--aqua); }
.offer .does { margin: 0; color: var(--muted); font-size: 14px; }
.offer-live { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.offer-live b { color: var(--white); }
.offer .label-tight { margin-top: 8px; font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.offer-needs { margin: 0 0 8px; padding-left: 18px; color: var(--text); font-size: 13px; display: grid; gap: 4px; }
.offer .btn { align-self: flex-start; margin-top: auto; }

.flow { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 22px; counter-reset: f; }
.flow li { counter-increment: f; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(17, 22, 42, .7); border: 1px solid var(--line-soft); }
.flow li::before { content: counter(f) "  "; color: var(--aqua); }
.steps { display: grid; gap: 12px; }
.step { padding: 16px 18px; border-radius: 16px; background: rgba(17, 22, 42, .66); border: 1px solid var(--line-soft); min-width: 0; }
.step.done { border-color: rgba(45, 212, 191, .4); }
.step-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.step-tick { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--white); cursor: pointer; }
.step-tick input { width: 22px; height: 22px; accent-color: var(--teal); flex: none; }
.step.done .step-tick span { text-decoration: line-through; text-decoration-color: var(--teal); }
.step .does { margin: 8px 0 4px; color: var(--muted); font-size: 14px; }
.drafts { display: grid; gap: 8px; margin-top: 12px; }
.draft { border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(10, 13, 23, .55); padding: 10px 12px; }
.draft summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.draft-text { white-space: pre-wrap; overflow-wrap: anywhere; font: 500 14px/1.5 Montserrat, ui-sans-serif, system-ui, sans-serif; color: var(--text); margin: 10px 0; }

/* Public pages (sales page, member chat): no sidebar. */
.pub-top .pub-signin, .pub-top .who { margin-left: auto; }
.pub-wrap { max-width: 860px; }
.pub-hero { padding: 24px 0 8px; }
.pub-hero h1 { font-size: clamp(34px, 7vw, 56px); }
.pub-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 24px; }
.pub-cta .fine { margin: 0; text-align: left; color: var(--muted); font-size: 14px; }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; }
.pub-qs { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.pub-qs p { margin: 0; padding: 14px 16px; border-radius: 14px; background: rgba(17, 22, 42, .66); border: 1px solid var(--line-soft); color: var(--text); }
.pub-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: s; }
.pub-steps li { counter-increment: s; display: grid; gap: 2px; padding: 14px 16px 14px 56px; position: relative; border-radius: 14px; background: rgba(17, 22, 42, .66); border: 1px solid var(--line-soft); }
.pub-steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-weight: 700; font-size: 13px; color: #071016; background: var(--grad); }
.pub-steps b { color: var(--white); }
.pub-steps span { color: var(--muted); font-size: 14px; }
.pub-faq { display: grid; gap: 8px; }
.pub-faq details { padding: 12px 16px; border-radius: 14px; background: rgba(17, 22, 42, .66); border: 1px solid var(--line-soft); }
.pub-faq summary { cursor: pointer; font-weight: 600; color: var(--white); }
.pub-faq p { color: var(--muted); margin: 8px 0 0; }
.chat-wrap { max-width: 760px; display: grid; justify-items: center; }
.chat-gate { margin-top: 24px; }
.chat { width: 100%; display: grid; gap: 12px; }
.chat-log { display: grid; gap: 10px; min-height: 40vh; align-content: start; }
.msg { max-width: 88%; padding: 12px 14px; border-radius: 16px; font-size: 15px; overflow-wrap: anywhere; }
.msg.me { justify-self: end; background: var(--grad); color: #071016; font-weight: 600; border-bottom-right-radius: 4px; }
.msg.sammy { justify-self: start; background: rgba(17, 22, 42, .82); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.note { justify-self: center; color: var(--warn); font-size: 13px; background: none; }
.msg.thinking span { display: inline-block; width: 7px; height: 7px; margin: 0 2px; border-radius: 50%; background: var(--aqua); animation: blink 1.2s infinite; }
.msg.thinking span:nth-child(2) { animation-delay: .2s; } .msg.thinking span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; position: sticky; bottom: 0; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--navy) 30%); }
.chat-form textarea { resize: none; }
@media (max-width: 560px) { .tn-add { grid-template-columns: 1fr; } }

/* Automations and Builder */
.subnav { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { white-space: nowrap; }
.auto-group { margin: 0 0 26px; }
.auto-group h2 { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.status.building { color: #FFD27A; border-color: rgba(255, 210, 122, .35); }
.b-audit, .b-values, .spec { padding: 18px 20px; border-radius: 18px; background: rgba(17, 22, 42, .72); border: 1px solid var(--line-soft); margin: 0 0 16px; min-width: 0; }
.b-audit h2, .spec h3 { margin: 0 0 6px; font-size: 17px; color: var(--white); }
.b-stats { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); margin: 12px 0; }
.b-stats div { padding: 10px 12px; border-radius: 12px; background: rgba(10, 13, 23, .6); border: 1px solid var(--line-soft); display: grid; gap: 2px; }
.b-stats span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.b-stats b { font-size: 16px; color: var(--text); }
.b-note { font-size: 13px; color: var(--muted); margin: 6px 0 0; overflow-wrap: anywhere; }
.b-switch { display: inline-flex; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid var(--line-soft); color: var(--muted); }
.b-switch.on { color: #FFD27A; border-color: rgba(255, 210, 122, .45); }
.b-values summary { cursor: pointer; font-weight: 700; color: var(--white); }
.b-form { display: grid; gap: 10px; margin-top: 14px; }
.b-form label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.b-form input { min-height: 40px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-soft); background: rgba(10, 13, 23, .6); color: var(--text); font: inherit; min-width: 0; }
.spec .mod-top { flex-wrap: wrap; }
.spec .plain { color: var(--muted); margin: 0 0 10px; font-size: 14px; }
.spec ul { margin: 6px 0 10px; padding-left: 18px; color: var(--text); font-size: 14px; }
.spec li { margin: 3px 0; overflow-wrap: anywhere; }
.spec details { margin: 8px 0; border-top: 1px solid var(--line-soft); padding-top: 8px; }
.spec summary { cursor: pointer; font-weight: 600; color: var(--aqua); font-size: 14px; }
.spec pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px; font-size: 13px; line-height: 1.45; color: var(--text); max-height: 420px; overflow-y: auto; }
.spec .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.spec ol { margin: 6px 0; padding-left: 20px; font-size: 14px; }
.spec ol li { margin: 8px 0; }
.spec .when { color: var(--aqua); font-weight: 600; font-size: 12px; display: block; }
.spec .msg { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
