/* Adquilla brand: indigo for actions, coral for the brain and highlights, Manrope headings, Inter text. */
:root {
  --indigo: #3D4BD8; --indigo-2: #2F3BB8; --coral: #FF6B4A; --coral-soft: #FFE9E3;
  --bg: #F6F7FB; --surface: #FFFFFF; --surface-2: #F0F2F8; --line: #E2E5EF; --line-2: #CDD2E1;
  --fg: #141726; --muted: #5B6075; --on-accent: #FFFFFF;
  --good: #137A43; --good-soft: #E3F4EA; --warn: #9A5B00; --warn-soft: #FDF1DC; --bad: #B3261E; --bad-soft: #FCE8E6;
  --radius: 14px; --shadow: 0 1px 2px rgba(20,23,38,.06), 0 6px 20px rgba(20,23,38,.06);
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --head: Manrope, Inter, system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #0E1020; --surface: #161933; --surface-2: #1D2142; --line: #2A2F55; --line-2: #3A4070; --fg: #ECEEF8; --muted: #A3A8C3; --indigo: #7C87FF; --indigo-2: #9AA3FF; --on-accent: #0E1020; --coral-soft: #3A2220; --good: #5AD08F; --good-soft: #13301F; --warn: #F2B65A; --warn-soft: #33270F; --bad: #FF8A80; --bad-soft: #3A1714; color-scheme: dark; } }
:root[data-theme="dark"] { --bg: #0E1020; --surface: #161933; --surface-2: #1D2142; --line: #2A2F55; --line-2: #3A4070; --fg: #ECEEF8; --muted: #A3A8C3; --indigo: #7C87FF; --indigo-2: #9AA3FF; --on-accent: #0E1020; --coral-soft: #3A2220; --good: #5AD08F; --good-soft: #13301F; --warn: #F2B65A; --warn-soft: #33270F; --bad: #FF8A80; --bad-soft: #3A1714; color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.55 var(--font); color: var(--fg); background: var(--bg); }
h1, h2, h3 { font-family: var(--head); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 26px; } h2 { font-size: 19px; } h3 { font-size: 16px; }
a { color: var(--indigo); }
.boot { padding: 40px; color: var(--muted); }
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 20px var(--head); margin: 0 6px 22px; text-decoration: none; color: var(--fg); }
.brand img { width: 30px; height: 30px; }
.nav a { display: flex; justify-content: space-between; align-items: center; padding: 9px 10px; border-radius: 10px; color: var(--fg); text-decoration: none; font-weight: 500; }
.nav a:hover { background: var(--surface-2); }
.nav a.on { background: var(--surface-2); color: var(--indigo); font-weight: 650; }
.nav .sep { margin: 16px 10px 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.count { background: var(--coral); color: #fff; border-radius: 999px; font-size: 12px; padding: 0 8px; font-weight: 700; }
main { padding: 26px 30px 60px; min-width: 0; }
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.muted { color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stack > * + * { margin-top: 16px; }
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: var(--surface); color: var(--fg); padding: 8px 14px; border-radius: 999px; font: 600 14px var(--font); cursor: pointer; text-decoration: none; min-height: 36px; }
.btn:hover { border-color: var(--indigo); color: var(--indigo); }
.btn.primary { background: var(--indigo); border-color: var(--indigo); color: var(--on-accent); }
.btn.primary:hover { background: var(--indigo-2); color: var(--on-accent); }
.btn.coral { background: var(--coral); border-color: var(--coral); color: #fff; }
.btn.danger { color: var(--bad); border-color: var(--bad); }
.btn.small { padding: 4px 10px; min-height: 28px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
label.f { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
label.f { grid-template-columns: minmax(0, 1fr); min-width: 0; overflow-wrap: anywhere; }
.card { min-width: 0; }
input, select, textarea { font: 15px var(--font); padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--fg); width: 100%; }
textarea { min-height: 90px; resize: vertical; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--indigo); border-color: var(--indigo); }
.kpi { font-size: 13px; color: var(--muted); }
.kpi b { display: block; font: 800 24px var(--head); color: var(--fg); margin-top: 2px; }
.delta { font-size: 12px; font-weight: 600; }
.up { color: var(--good); } .down { color: var(--bad); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; background: var(--surface-2); color: var(--muted); }
.pill.good { background: var(--good-soft); color: var(--good); } .pill.warn { background: var(--warn-soft); color: var(--warn); } .pill.bad { background: var(--bad-soft); color: var(--bad); } .pill.coral { background: var(--coral-soft); color: var(--coral); } .pill.indigo { background: var(--surface-2); color: var(--indigo); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.bar { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--indigo); border-radius: 999px; }
.bar.coral > span { background: var(--coral); }
.running { position: sticky; top: 0; z-index: 5; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin-bottom: 16px; font-size: 13px; box-shadow: var(--shadow); }
.running .bar { height: 6px; margin-top: 4px; }
.banner { padding: 10px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-weight: 500; margin-bottom: 16px; }
.banner.info { background: var(--surface-2); color: var(--fg); }
.channel { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.channel.pick { border-color: var(--indigo); box-shadow: inset 4px 0 0 var(--indigo); }
.score { font: 800 20px var(--head); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .d { min-height: 104px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px; font-size: 12px; }
.cal .d.out { opacity: .45; }
.cal .d .n { font-weight: 700; color: var(--muted); }
.cal .it { display: block; margin-top: 4px; padding: 3px 6px; border-radius: 6px; background: var(--surface-2); border-left: 3px solid var(--indigo); text-align: left; width: 100%; border-top: 0; border-right: 0; border-bottom: 0; font: 12px var(--font); color: var(--fg); cursor: pointer; }
.cal .it.instagram { border-color: #C13584; } .cal .it.facebook { border-color: #1877F2; } .cal .it.tiktok { border-color: #111; } .cal .it.gbp_local { border-color: #34A853; } .cal .it.landing_page { border-color: var(--coral); }
.cal .it.published { opacity: .6; text-decoration: line-through; }
.modal { position: fixed; inset: 0; background: rgba(10,12,25,.55); display: grid; place-items: center; z-index: 20; padding: 16px; }
.modal > .card { width: min(560px, 100%); max-height: 90vh; overflow: auto; }
.toast { position: fixed; bottom: 20px; right: 20px; background: var(--fg); color: var(--bg); padding: 12px 16px; border-radius: 12px; z-index: 30; max-width: 420px; box-shadow: var(--shadow); }
.toast.err { background: var(--bad); color: #fff; }
iframe.preview { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.auth { max-width: 440px; margin: 8vh auto; }
.chart svg { width: 100%; height: auto; display: block; }
.wizard-steps { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.wizard-steps span { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: 13px; }
.wizard-steps span.on { background: var(--indigo); color: var(--on-accent); }
.brain { border-left: 4px solid var(--coral); }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.hide-sm { }
@media (max-width: 860px) { .shell { grid-template-columns: 1fr; } .side { position: static; height: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px; } .brand { margin: 0 10px 0 0; } .nav { display: flex; flex-wrap: wrap; gap: 4px; } .nav .sep { display: none; } main { padding: 16px; } .cal { grid-template-columns: 1fr; } .cal .d.out { display: none; } .hide-sm { display: none; } }
@media (prefers-reduced-motion: no-preference) { .btn { transition: background .2s, border-color .2s, color .2s; } }
code,.mono{overflow-wrap:anywhere;word-break:break-all}
/* Sign-in and first setup: the threads image covers the whole screen behind the card (a fixed layer, since
   background-attachment: fixed is ignored on iPhone). Dark mode keeps the plain dark background. */
body:has(.auth){min-height:100vh;background:#FBF8F3}
body:has(.auth)::before{content:"";position:fixed;inset:0;z-index:-1;background:#FBF8F3 url(/hero-threads.jpg) 70% 60%/cover no-repeat}
@media (max-width:700px){body:has(.auth)::before{background-position:62% 100%}}
body:has(.auth) .auth{position:relative}
@media (max-width:480px){body:has(.auth) .auth{margin:6vh 16px}}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) body:has(.auth){background:var(--bg)}:root:not([data-theme="light"]) body:has(.auth)::before{display:none}}
:root[data-theme="dark"] body:has(.auth){background:var(--bg)}:root[data-theme="dark"] body:has(.auth)::before{display:none}
.cond{flex-wrap:nowrap}.cond>select,.cond>input{flex:1 1 0;min-width:0;width:auto}.cond>[data-rm]{flex:0 0 auto}#rule .row>.f{flex:1 1 140px}
ul.plain{list-style:none;padding:0;margin:0;display:grid;gap:6px}

/* ---------- 2026-11 redesign: calm canvas, one next step, grouped navigation ---------- */
:root { --bg: #F4F5FA; --shadow: 0 1px 2px rgba(20,23,38,.04), 0 8px 24px rgba(20,23,38,.05); --radius: 16px; }
body { font-size: 15px; -webkit-font-smoothing: antialiased; }
h1 { font-size: 30px; letter-spacing: -.015em; } h2 { font-size: 18px; letter-spacing: -.005em; }
main { padding: 28px 40px 72px; max-width: 1280px; width: 100%; }
.shell { grid-template-columns: 248px 1fr; }
.side { display: flex; flex-direction: column; gap: 4px; padding: 20px 14px; }
.brand { margin: 0 8px 18px; }
.nav a { gap: 10px; justify-content: flex-start; padding: 8px 10px; font-size: 14.5px; }
.nav a > span:not(.count) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav .sep { margin: 18px 10px 6px; font-size: 11.5px; }
.nav.foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 10px; }
.nav.foot a { color: var(--muted); font-size: 13.5px; padding: 6px 10px; }
.nav .add { color: var(--muted); }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn .i { width: 16px; height: 16px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); flex: none; margin: 0 4px; }
.dot.good { background: var(--good); } .dot.warn { background: #E0A030; } .dot.bad { background: var(--bad); }
.count.soft { background: var(--coral-soft); color: var(--coral); }
.running { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; font-size: 13px; position: sticky; top: 8px; }
.running > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.running .bar { width: 120px; height: 6px; margin: 0; flex: none; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); flex: none; }
@media (prefers-reduced-motion: no-preference) { .pulse { animation: pulse 1.4s ease-in-out infinite; } @keyframes pulse { 50% { opacity: .3; } } }
.note { padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); margin: 0 0 16px; font-size: 14px; }
.note.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.hello { margin: 6px 0 20px; } .hello h1 { margin-bottom: 4px; } .hello p { margin: 0; max-width: 70ch; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--coral); margin-bottom: 6px; }
.next { border: 0; background: linear-gradient(135deg, var(--surface) 0%, var(--surface) 60%, var(--coral-soft) 160%); box-shadow: inset 4px 0 0 var(--coral), var(--shadow); padding: 22px 24px; margin-bottom: 26px; }
.next h2 { font-size: 22px; margin-bottom: 6px; } .next p { margin: 0 0 14px; max-width: 70ch; }
.block { margin-bottom: 28px; } .block > .row { margin-bottom: 10px; } .block h2 { margin: 0; }
.approvals { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.approvals li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; }
.approvals li + li { border-top: 1px solid var(--line); }
.approvals p { margin: 2px 0 0; font-size: 13px; }
.bizgrid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.bizcard { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 12px; transition: border-color .15s, transform .15s; }
.bizcard:hover { border-color: var(--indigo); }
.bizcard h3 { margin: 0; font-size: 17px; } .bizcard .muted { margin: 2px 0 0; font-size: 13px; }
.top0 { align-items: flex-start; }
.nums { display: grid; grid-template-columns: auto auto 1fr; gap: 18px; align-items: end; }
.nums span { display: block; font-size: 12px; color: var(--muted); } .nums b { font: 800 22px var(--head); }
.nums .sp { justify-self: end; }
.say { margin: 0; font-size: 14px; }
.nextline { margin: 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13.5px; }
.nextline span { color: var(--coral); font-weight: 700; } .nextline.good { color: var(--good); }
.bizcard .pill { align-self: flex-start; }
.ring { --s: 44px; --p: 0; width: var(--s); height: var(--s); border-radius: 50%; display: inline-grid; place-items: center; flex: none; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--surface-2) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--surface); }
.ring b { position: relative; font: 800 calc(var(--s) * .34) var(--head); }
.ring.good { --c: var(--good); } .ring.warn { --c: #E0A030; } .ring.bad { --c: var(--bad); }
.ring.empty { background: var(--surface-2); color: var(--muted); font-weight: 700; }
.ring.empty::before { display: none; }
.bizhead { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 4px 0 18px; }
.bizhead .row { gap: 14px; flex-wrap: nowrap; } .bizhead h1 { margin: 0; } .bizhead p { margin: 2px 0 0; } .bizhead a { color: var(--muted); }
.tabs { gap: 2px; margin-bottom: 0; }
.tabs a { padding: 10px 14px; }
.subtabs { display: flex; gap: 6px; padding: 12px 0 0; margin-bottom: 18px; overflow-x: auto; }
.subtabs a { padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.subtabs a.on { background: var(--surface); color: var(--indigo); box-shadow: 0 0 0 1px var(--line); }
.tabs + #tab { margin-top: 18px; }
.ovgrid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0 12px 14px; border-left: 3px solid var(--indigo); margin-bottom: 8px; }
.step.coral { border-color: var(--coral); } .step.bad { border-color: var(--bad); } .step.muted { border-color: var(--line-2); }
.step p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.step .btn { flex: none; }
.big { font: 800 26px var(--head); margin: 6px 0 10px; } .big .muted { font: 600 15px var(--font); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.kpi { font-size: 13px; color: var(--muted); } .kpi > span:first-child { display: block; }
.kpi b { display: block; font: 800 28px var(--head); color: var(--fg); margin: 4px 0 2px; letter-spacing: -.01em; }
.delta { font-size: 12.5px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.legend { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; } .legend .l1 { background: var(--indigo); } .legend .l2 { background: var(--coral); margin-left: 10px; }
details.more > summary { cursor: pointer; font-weight: 650; color: var(--indigo); }
.card { box-shadow: var(--shadow); }
th { font-size: 11.5px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #0E1020; } }
:root[data-theme="dark"] { --bg: #0E1020; }
@media (max-width: 1100px) { .ovgrid { grid-template-columns: 1fr; } .kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .side { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 4px; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .side .nav { flex-wrap: nowrap; } .side .nav a { white-space: nowrap; } .side .nav a > span:not(.count) { overflow: visible; }
  .nav.foot { margin: 0; border: 0; padding: 0; } .nav.foot a:not(#logout) { display: none; } .nav .biz, .nav .add { display: none; }
  main { padding: 18px 16px 60px; } h1 { font-size: 24px; }
  .next { padding: 18px; } .next h2 { font-size: 19px; }
  .approvals li, .step { flex-direction: column; align-items: stretch; } .approvals .row { justify-content: flex-end; }
  .nums { grid-template-columns: 1fr 1fr; } .nums .sp { display: none; }
  .bizhead #run-brain { width: 100%; justify-content: center; }
}
.bizcard .top0 { flex-wrap: nowrap; }
.ring { height: var(--s); aspect-ratio: 1; align-self: flex-start; }
.nums span, .nums b { white-space: nowrap; }
.nums b { font-size: 21px; }
.ring { min-width: var(--s); max-width: var(--s); max-height: var(--s); }
.nums .sp { min-width: 0; } .nums .sp svg { max-width: 100%; height: auto; }
/* Coral is the brand signal; as text it uses a deeper tone so it passes contrast (4.5:1). */
:root { --coral-ink: #B5391C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --coral-ink: #FF9277; } }
:root[data-theme="dark"] { --coral-ink: #FF9277; }
.eyebrow, .nextline span, .count.soft { color: var(--coral-ink); }
.count { background: #C8401F; color: #fff; }
.count.soft { background: var(--coral-soft); }
.btn.coral { background: #CC3F1D; border-color: #CC3F1D; color: #fff; }
.btn.coral:hover { background: #B23517; border-color: #B23517; color: #fff; }
@media (max-width: 860px) { .shell { grid-template-columns: 1fr; } .side { position: static; height: auto; } .side .brand { margin: 0 8px 0 0; } }
.ring { aspect-ratio: auto; min-height: 0; overflow: hidden; line-height: 1; }
.ringx { display: inline-block; flex: none; border-radius: 50%; border: 3px dashed var(--line-2); box-sizing: border-box; align-self: flex-start; }
.step .btn { justify-content: center; }

/* "While you were away": the brain's free decisions as a ledger. Green squares are things done for you. */
.eyebrow { text-transform: none; letter-spacing: 0; font-size: 13.5px; }
.away .saved { margin: 0; color: var(--muted); font-size: 15px; } .away .saved b { color: var(--good); font-size: 17px; }
.away .ledger { list-style: none; margin: 10px 0 0; padding: 4px 20px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); }
.away .ledger li { display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.away .ledger li:last-child { border-bottom: 0; }
.away .ledger i { width: 9px; height: 9px; border-radius: 2px; background: var(--good); align-self: center; }
.away .ledger small { display: block; color: var(--muted); font-size: 13px; }
.away .ledger em { font-style: normal; color: var(--good); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 640px) { .away .ledger { padding: 4px 14px; } .away .ledger li { grid-template-columns: 12px 1fr; } .away .ledger em { grid-column: 2; } }
/* Cooler canvas, matching the site: cream with coral read as a stock look. Labels in sentence case. */
.nav .sep, th { text-transform: none; letter-spacing: 0; font-size: 13px; }
.away .more { margin: 8px 0 0; font-size: 14px; }

/* New campaign wizard and the plain-field ad editor */
.modal .card.wide, .modal.wide .card { width: min(760px, 94vw); max-height: 90vh; overflow: auto; }
.wizstep { margin: 0 0 4px; font-size: 13px; }
.wiz h2 { margin-bottom: 16px; }
.wiz fieldset { border: 0; padding: 0; margin: 0 0 18px; } .wiz legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; } .chip span { display: inline-block; padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line-2); cursor: pointer; }
.chip input:checked + span { background: var(--indigo); color: var(--on-accent, #fff); box-shadow: none; } .chip input:focus-visible + span { outline: 3px solid var(--indigo); outline-offset: 2px; }
.pick { display: grid; gap: 8px; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--indigo); background: var(--surface-2); }
.opt input { margin-top: 4px; accent-color: var(--indigo); } .opt b { display: flex; gap: 8px; align-items: center; } .opt em { font-style: normal; } .opt small { display: block; color: var(--muted); font-size: 14px; }
.budgetpick { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; } .budgetpick output { font: 800 40px/1 var(--head, inherit); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.wiz input[type=range] { width: 100%; accent-color: var(--indigo); }
.wizbar { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.small { font-size: 13.5px; }
.adprev { border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); padding: 14px 16px; background: var(--surface); }
.adprev p { margin: 0 0 4px; } .adprev .adh { color: var(--indigo); font-weight: 700; font-size: 18px; line-height: 1.3; }
.adgroup { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; } .adgroup legend { font-weight: 700; padding: 0 6px; }
textarea.over { box-shadow: inset 0 0 0 2px var(--bad); } .counts { font-size: 12.5px; color: var(--muted); }
.f.grow { flex: 1; }
.opt input, .chip input { width: auto; flex: none; min-height: 0; }
.opt > span { flex: 1; text-align: left; }

/* All accounts */
.hello.row { align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.toggle { display: inline-flex; background: var(--surface); border-radius: 999px; padding: 4px; box-shadow: inset 0 0 0 1px var(--line); }
.toggle a { padding: 6px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.toggle a.on { background: var(--indigo); color: var(--on-accent, #fff); }
.tablecard { padding: 0; overflow-x: auto; }
table.dash { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 980px; }
table.dash th, table.dash td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; text-transform: none; letter-spacing: 0; }
table.dash thead th { padding: 0; }
table.dash thead button { background: none; border: 0; width: 100%; text-align: left; padding: 12px 16px; font: 600 13px var(--font, inherit); color: var(--muted); cursor: pointer; }
table.dash tbody th a { font-weight: 700; color: var(--fg); text-decoration: none; }
table.dash tbody th small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; margin-top: 2px; }
table.dash tr:last-child th, table.dash tr:last-child td { border-bottom: 0; }
.delta { display: block; font-size: 12.5px; color: var(--muted); } .delta.up { color: var(--good); } .delta.down { color: var(--bad); }
.pacecell { min-width: 180px; }
.pace { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 6px 0 4px; } .pace span { display: block; height: 100%; background: var(--good); }
.pace.overspending span { background: var(--bad); } .pace.underspending span { background: var(--warn); }
.pacecell small { color: var(--muted); font-size: 12.5px; }
table.dash .sp { margin-top: 4px; }

.expect { margin: 0 0 12px; font-size: 14.5px; } .expect .pill { margin-left: 4px; }
table.dash td { white-space: nowrap; } table.dash td.pacecell { white-space: normal; }

/* Playbook: reversibility and the softer pacing tiers */
.undo { margin: 0 0 10px; font-size: 13.5px; color: var(--muted); }
.pace.alittleunder span, .pace.alittleover span { background: var(--warn); }

/* Connections groups, AI models, conversion goal */
.grouphead { font-size: 17px; margin: 22px 0 10px; }
#aim select { width: 100%; }
.goalline { background: var(--surface-2); border-radius: 10px; padding: 10px 14px; font-size: 14.5px; }

/* Google Partner progress */
.partner { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 10px 0; }
.partner .pace { margin: 6px 0 4px; }
pre.code { background: var(--soft, #f4f5fb); border: 1px solid var(--line); border-radius: 8px; padding: 10px; font-size: 12px; white-space: pre-wrap; word-break: break-all; max-height: 260px; overflow: auto; }

/* Landing page reviewer */
.rvgrid { display: grid; grid-template-columns: 260px 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .rvgrid { grid-template-columns: 1fr; } }
.rvlist { display: flex; flex-direction: column; gap: 6px; padding: 10px; }
.rvitem { display: flex; flex-direction: column; gap: 3px; text-align: left; font: inherit; font-size: 14px; background: none; border: 1px solid transparent; border-radius: 10px; padding: 10px; cursor: pointer; color: inherit; }
.rvitem:hover { background: var(--surface-2); } .rvitem.on { border-color: var(--indigo); background: var(--surface-2); }
.rvitem .muted { font-size: 12.5px; }
.heatbox { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.tip { border-top: 1px solid var(--line); padding: 10px 0; } .tip:first-of-type { border-top: 0; }
.abar { position: relative; height: 16px; line-height: 16px; margin: 3px 0; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.abar span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--coral); opacity: .75; } .abar em { position: relative; font-size: 10px; font-style: normal; padding-left: 4px; }
.btn.on { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.abar { display: block; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; } .abar > span { display: block; height: 100%; background: var(--indigo); border-radius: 99px; }

/* ---------- 2026-11-25: modern refresh, Simple and Expert views ----------
   Flat surfaces with hairline borders instead of shadows, the page as one sheet beside a quiet sidebar,
   tabular numbers everywhere. Expert tightens type and spacing; Simple keeps air and plain words. */
:root { --bg: #ECEEF3; --sheet: #FAFAFC; --surface: #FFFFFF; --surface-2: #F3F4F8; --line: #E2E5EC; --line-2: #CBD0DC; --radius: 12px; --shadow: none; --ink-2: #2A2E40; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #0A0C18; --sheet: #0F1226; --surface: #151832; --surface-2: #1C2040; --line: #262B4D; --line-2: #383F6B; --ink-2: #D5D8EA; } }
:root[data-theme="dark"] { --bg: #0A0C18; --sheet: #0F1226; --surface: #151832; --surface-2: #1C2040; --line: #262B4D; --line-2: #383F6B; --ink-2: #D5D8EA; }
body { background: var(--bg); font-feature-settings: "cv11", "ss01"; }
b, td, th, dd, .kpi b, .big, .nums b, .strip b { font-variant-numeric: tabular-nums; }
.card { box-shadow: none; border-color: var(--line); border-radius: var(--radius); }
.shell { grid-template-columns: 236px 1fr; background: var(--bg); }
.side { background: transparent; border-right: 0; padding: 16px 10px 14px 14px; }
.brand { font-size: 18px; margin: 2px 8px 16px; } .brand img { width: 26px; height: 26px; }
.nav a { border-radius: 8px; padding: 7px 10px; font-size: 14px; color: var(--ink-2); position: relative; }
.nav a:hover { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.nav a.on { background: var(--surface); color: var(--fg); font-weight: 650; box-shadow: 0 0 0 1px var(--line); }
.nav a.on .i { color: var(--indigo); }
.nav .sep { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--muted); margin: 18px 10px 6px; }
.nav.foot { border-top-color: var(--line); }
main { background: var(--sheet); margin: 8px 8px 8px 0; border: 1px solid var(--line); border-radius: 14px; padding: 0 36px 64px; max-width: none; min-height: calc(100vh - 16px); }
main > :not(.topbar) { max-width: 1320px; }
.topbar { position: sticky; top: 0; z-index: 6; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 -36px 22px; padding: 10px 36px; background: color-mix(in srgb, var(--sheet) 94%, transparent); border-bottom: 1px solid var(--line); border-radius: 14px 14px 0 0; }
.crumb { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); min-width: 0; } .crumb a { color: var(--muted); text-decoration: none; } .crumb a:hover { color: var(--fg); } .crumb b { color: var(--fg); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modesw { display: inline-flex; padding: 3px; border-radius: 9px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); flex: none; }
.modesw button { font: 600 13px var(--font); border: 0; background: none; color: var(--muted); padding: 5px 12px; border-radius: 7px; cursor: pointer; min-height: 28px; }
.modesw button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(20,23,38,.06); }
.modesw button:focus-visible { outline: 2px solid var(--indigo); outline-offset: 1px; }
.running { top: 58px; }
.hello { margin: 4px 0 20px; } h1 { font-size: 26px; letter-spacing: -.02em; }
.btn { border-radius: 9px; min-height: 34px; padding: 7px 13px; }
.btn.small { border-radius: 7px; }
.pill { border-radius: 6px; padding: 2px 8px; }
.count { border-radius: 6px; padding: 0 6px; }
.toggle { border-radius: 9px; padding: 3px; background: var(--surface-2); }
.toggle a { border-radius: 7px; padding: 4px 11px; font-size: 13px; }
.toggle a.on { background: var(--surface); color: var(--fg); box-shadow: 0 0 0 1px var(--line); }
.tabs { border-bottom-color: var(--line); } .tabs a { font-size: 14px; padding: 9px 12px; } .tabs a.on { color: var(--fg); border-color: var(--fg); }
.subtabs a { border-radius: 7px; } .subtabs a.on { color: var(--fg); }
.bizhead { margin: 0 0 14px; } .bizhead h1 { font-size: 24px; }
/* The next-step card was a soft gradient; now a flat card with one coral rule. */
.next { background: var(--surface); border: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--coral); }
.bizcard:hover { border-color: var(--line-2); }
.away .ledger, .approvals { box-shadow: none; border: 1px solid var(--line); border-radius: var(--radius); }
.jump { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0 0 12px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: 500 13.5px var(--font); cursor: pointer; }
.jump span { flex: 1; text-align: left; } .jump:hover { border-color: var(--line-2); color: var(--fg); }
kbd { font: 600 11px var(--font); padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--indigo); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cardhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; } .cardhead h2 { margin: 0; }
.tablecard .cardhead { padding: 14px 16px 10px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; font-size: 13.5px; }

/* KPI strip: one bordered row with dividers instead of a row of separate cards. */
.strip { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.strip.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.strip .cell { padding: 12px 14px; border-left: 1px solid var(--line); min-width: 0; }
.strip .cell:first-child { border-left: 0; }
.strip .cell > span { display: block; font-size: 12px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.strip .cell b { display: block; font: 700 20px var(--head); letter-spacing: -.01em; margin: 2px 0 0; white-space: nowrap; }
.strip .cell b small { font: 500 13px var(--font); color: var(--muted); }
.strip .delta { display: inline-block; font-size: 12px; font-weight: 600; }
.strip .spark { display: block; width: 100%; height: 20px; margin-top: 6px; }
.strip.six .cell b { font-size: 22px; }

.xgrid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 14px; }
.xgrid.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pacebar { position: relative; height: 10px; border-radius: 3px; background: var(--surface-2); margin: 12px 0 14px; }
.pacebar span { display: block; height: 100%; border-radius: 3px; background: var(--indigo); }
.pacebar i { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--fg); border-radius: 1px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0 0 12px; } .kv.four { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 8px 0 0; }
.kv dt { font-size: 12px; color: var(--muted); } .kv dd { margin: 0; font-weight: 650; font-size: 15px; }
.kv.four dd { font: 700 20px var(--head); }
table.ptable { font-size: 13px; margin-bottom: 12px; } table.ptable th, table.ptable td { padding: 6px 4px; }
table.dense { font-size: 13.5px; } table.dense th, table.dense td { padding: 8px 12px; white-space: nowrap; text-align: right; }
table.dense th:first-child, table.dense td:first-child, table.dense tbody th { text-align: left; }
table.dense tbody th { font-weight: 600; } table.dense tbody th small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
table.dense thead th { background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 12px; }
table.dense tbody tr:hover { background: var(--surface-2); } table.dense tr:last-child > * { border-bottom: 0; }
ul.tight { list-style: none; margin: 8px 0 0; padding: 0; }
ul.tight li { display: grid; grid-template-columns: 8px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
ul.tight li:first-child { border-top: 0; }
ul.tight small { display: block; color: var(--muted); font-size: 12.5px; } ul.tight em { font-style: normal; font-weight: 600; color: var(--good); font-size: 13px; white-space: nowrap; }
.tick { width: 8px; height: 8px; border-radius: 2px; background: var(--indigo); } .tick.good { background: var(--good); } .tick.warn { background: #E0A030; } .tick.coral, .tick.bad { background: var(--coral); } .tick.muted { background: var(--line-2); }

/* Simple: the summary says how it is going in one sentence, with three numbers anyone can read. */
.sum { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 26px 28px; margin-bottom: 16px; }
.sum h2 { font: 600 23px/1.35 var(--head); letter-spacing: -.01em; margin: 12px 0 8px; } .sum h2 b { font-weight: 800; }
.sum p { margin: 0; max-width: 60ch; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; padding: 4px 10px 4px 8px; border-radius: 6px; }
.status i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.status.good { background: var(--good-soft); color: var(--good); } .status.warn { background: var(--warn-soft); color: var(--warn); } .status.bad { background: var(--bad-soft); color: var(--bad); }
.sum-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-left: 1px solid var(--line); }
.sum-nums > div { padding: 4px 0 4px 22px; }
.sum-nums dt { font-size: 13px; color: var(--muted); font-weight: 600; } .sum-nums dd { margin: 2px 0; font: 800 30px var(--head); letter-spacing: -.02em; white-space: nowrap; } .sum-nums small { font-size: 12.5px; color: var(--muted); }
.toexpert { margin: 22px 0 0; text-align: center; color: var(--muted); font-size: 14px; }
.viewcard { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; } .viewcard p { margin: 0; max-width: 70ch; } .viewcard h2 { margin: 0 0 4px; }
:root[data-mode="simple"] .step { border-left-width: 3px; padding: 14px 0 14px 16px; }
:root[data-mode="simple"] .steps { counter-reset: s; } :root[data-mode="simple"] .step > div::before { counter-increment: s; content: counter(s) "."; font-weight: 800; color: var(--muted); margin-right: 6px; float: left; }

/* Expert: denser type and spacing so more fits on one screen. */
:root[data-mode="expert"] body { font-size: 14px; }
:root[data-mode="expert"] main { padding: 0 28px 48px; } :root[data-mode="expert"] .topbar { margin: 0 -28px 18px; padding: 8px 28px; }
:root[data-mode="expert"] .card { padding: 14px 16px; } :root[data-mode="expert"] .card.tablecard { padding: 0; }
:root[data-mode="expert"] h1 { font-size: 22px; } :root[data-mode="expert"] h2 { font-size: 15.5px; }
:root[data-mode="expert"] table.dash th, :root[data-mode="expert"] table.dash td { padding: 9px 14px; font-size: 13.5px; }
:root[data-mode="expert"] table.dash thead button { padding: 9px 14px; font-size: 12px; }
:root[data-mode="expert"] .hello { margin: 2px 0 14px; }

/* First sign-in: pick a view */
.choose { max-width: 920px; margin: 0 auto; padding: 8vh 20px 40px; }
.choose .brand { margin: 0 0 28px; } .choose h1 { font-size: 32px; margin-bottom: 6px; } .choose > p { margin: 0 0 28px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.choice { display: flex; flex-direction: column; gap: 18px; text-align: left; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; cursor: pointer; }
.choice:hover { border-color: var(--indigo); } .choice:focus-visible { outline: 3px solid var(--indigo); outline-offset: 2px; }
.choice .ct b { display: block; font: 800 20px var(--head); margin-bottom: 4px; } .choice .ct span { color: var(--muted); font-size: 14.5px; }
.mini { display: block; height: 168px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); padding: 16px 18px; overflow: hidden; }
.mini-simple small { display: block; font-size: 12px; color: var(--muted); } .mini-simple b { display: block; font: 800 44px/1.1 var(--head); color: var(--fg); }
.mini-simple > span { display: block; font-size: 13px; color: var(--muted); }
.mini-simple em { display: block; height: 8px; background: var(--line); border-radius: 3px; margin: 14px 0 12px; } .mini-simple em i { display: block; height: 100%; background: var(--good); border-radius: 3px; }
.mini-simple .mline { color: var(--fg); font-weight: 600; } .mini-simple .mline::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--coral); border-radius: 2px; margin-right: 8px; }
.mini-expert .mrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: center; }
.mini-expert .mrow small { font-size: 11px; color: var(--muted); font-weight: 600; } .mini-expert .mrow i { display: block; height: 6px; border-radius: 2px; background: var(--line-2); }
.mini-expert .mrow i:first-child { background: var(--indigo); opacity: .55; }

/* Jump bar */
.modal.pal { place-items: start center; padding-top: 14vh; }
.modal.pal > .card { width: min(560px, 94vw); padding: 0; overflow: hidden; }
.modal.pal #pq { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 16px 18px; font-size: 16px; outline: none; }
.pal-list { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow: auto; }
.pal-list a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--fg); text-decoration: none; font-size: 14.5px; }
.pal-list li[aria-selected="true"] a, .pal-list a:hover { background: var(--surface-2); }
.pal-list .none { padding: 12px; } .pal-foot { display: flex; gap: 6px; align-items: center; margin: 0; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 12px; }

@media (max-width: 1100px) { .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } .strip .cell:nth-child(3n+1) { border-left: 0; } .strip .cell:nth-child(n+4) { border-top: 1px solid var(--line); } .strip.six .cell:nth-child(4) { border-left: 0; } .xgrid, .xgrid.even { grid-template-columns: 1fr; } .sum { grid-template-columns: 1fr; } .sum-nums { border-left: 0; border-top: 1px solid var(--line); padding-top: 14px; } .sum-nums > div:first-child { padding-left: 0; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); } .side { padding: 10px 12px; }
  main { margin: 0; border-radius: 0; border-width: 1px 0 0; padding: 0 16px 56px; min-height: 0; }
  :root[data-mode="expert"] main { padding: 0 16px 48px; }
  .topbar, :root[data-mode="expert"] .topbar { margin: 0 -16px 16px; padding: 8px 16px; border-radius: 0; }
  .side { background: var(--bg); } .jump { display: none; }
  .choices { grid-template-columns: 1fr; } .choose { padding-top: 32px; } .choose h1 { font-size: 26px; }
  .strip, .strip.six { grid-template-columns: repeat(2, minmax(0, 1fr)); } .strip .cell { border-left: 0; border-top: 1px solid var(--line); } .strip .cell:nth-child(even) { border-left: 1px solid var(--line); } .strip .cell:nth-child(-n+2) { border-top: 0; }
  .sum { padding: 18px; gap: 16px; } .sum h2 { font-size: 19px; } .sum-nums dd { font-size: 22px; } .sum-nums > div { padding-left: 12px; } .sum-nums small { display: none; }
  .kv.four { grid-template-columns: 1fr 1fr; }
  ul.tight li { grid-template-columns: 8px 1fr; } ul.tight li > :last-child { grid-column: 2; justify-self: start; }
}

/* ---------- Beginner path (Simple): first-run checklist, plain help, folded detail ---------- */
.topbar { background: var(--sheet); }
.firstrun { padding: 22px 24px; margin-bottom: 16px; box-shadow: inset 3px 0 0 var(--coral); }
.fr-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.fr-head h2 { font-size: 21px; margin: 2px 0 4px; } .fr-head p { margin: 0; }
.fr-bar { width: 220px; height: 8px; border-radius: 3px; background: var(--surface-2); overflow: hidden; } .fr-bar span { display: block; height: 100%; background: var(--good); }
.fr-steps { list-style: none; margin: 16px 0 0; padding: 0; }
.fr-steps li { display: grid; grid-template-columns: 28px 1fr auto; gap: 14px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.fr-steps li p { margin: 4px 0 0; color: var(--muted); font-size: 14px; max-width: 70ch; }
.fr-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--font); background: var(--surface-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }
.fr-steps li.done .fr-n { background: var(--good-soft); color: var(--good); box-shadow: none; } .fr-steps li.done b { color: var(--muted); font-weight: 500; text-decoration: line-through; text-decoration-color: var(--line-2); }
.fr-steps li.now .fr-n { background: var(--indigo); color: var(--on-accent); box-shadow: none; }
.fr-steps li.now { padding: 14px 0; }
.firstrun ~ .ovgrid { grid-template-columns: 1fr; } .firstrun ~ .ovgrid .steps-card { display: none; }
.demo-say { margin: 10px 0 0; font-size: 13.5px; color: var(--warn); background: var(--warn-soft); padding: 6px 10px; border-radius: 6px; }
ol.howto { margin: 8px 0 12px; padding-left: 22px; } ol.howto li { margin: 4px 0; }
.moredetails { border-top: 1px solid var(--line); padding-top: 12px; } .moredetails > summary { cursor: pointer; font-weight: 600; color: var(--indigo); } .moredetails[open] > summary { margin-bottom: 12px; }
details.plain > summary { cursor: pointer; list-style: none; } details.plain > summary::-webkit-details-marker { display: none; }
details.plain > summary::after { content: "Details"; margin-left: 8px; font-size: 12.5px; color: var(--indigo); font-weight: 600; } details.plain[open] > summary::after { content: "Hide"; }
.simple-hint { background: var(--surface); }
.gconnect { margin-bottom: 16px; } .gconnect h2 { margin-bottom: 4px; } .gconnect > p { max-width: 70ch; }
#conn.folded { display: none; }
@media (max-width: 860px) { .fr-steps li { grid-template-columns: 28px 1fr; } .fr-steps li > .btn { grid-column: 2; justify-self: start; } .fr-bar { width: 100%; } .firstrun { padding: 18px; } }
#set label.row { flex-wrap: nowrap; align-items: flex-start; } #set label.row input { margin-top: 4px; }
#set input[type=color] { width: 64px; height: 36px; padding: 2px; }
.foldcard > summary { cursor: pointer; }

/* 2026-11-26: Adquilla's impact, before joining vs now */
.impact { margin: 16px 0; border-left: 3px solid var(--line-2); }
.impact.good { border-left-color: var(--good); } .impact.lean { border-left-color: var(--indigo); } .impact.bad { border-left-color: var(--bad); }
.imp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.imp-head h2 { margin: 0 0 2px; }
.imp-say { margin: 14px 0 16px; max-width: 760px; }
.imp-say h3 { font-family: var(--head); font-size: 22px; line-height: 1.3; font-weight: 600; margin: 0 0 6px; letter-spacing: -.01em; }
.imp-say h3 b { font-weight: 800; color: var(--fg); }
.impact.good .imp-say h3 b { color: var(--good); }
.imp-say p { margin: 0; color: var(--muted); font-size: 14.5px; }
.imp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.imp-tile { padding: 12px 14px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.imp-tile:last-child { border-right: 0; }
.imp-tile span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.imp-tile b { font-size: 24px; font-family: var(--head); font-weight: 750; font-variant-numeric: tabular-nums; }
.imp-tile small { font-size: 12.5px; color: var(--muted); }
.imp-tile em, .imp-changes em { font-style: normal; font-weight: 700; margin-left: 4px; }
.imp-tile em.up, .impact .up { color: var(--good); } .imp-tile em.down, .impact .down { color: var(--bad); }
.imp-tile.save b { color: var(--good); }
.imp-chart { margin-top: 16px; }
.imp-chart rect.b0 { fill: var(--line-2); } .imp-chart rect.b1 { fill: var(--indigo); opacity: .85; }
.imp-chart .joined { stroke: var(--fg); stroke-width: 1.25; stroke-dasharray: 4 3; }
.imp-chart .joined-t { font-size: 11.5px; font-weight: 650; fill: var(--fg); }
.imp-chart .mk line { stroke: var(--coral); stroke-width: 1; stroke-dasharray: 2 3; }
.imp-chart .mk circle { fill: var(--surface); stroke: var(--coral); stroke-width: 1.75; }
.imp-chart .mk text { font-size: 10.5px; font-weight: 750; fill: var(--coral); }
.imp-chart .legend { font-size: 12.5px; color: var(--muted); gap: 16px; flex-wrap: wrap; }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; margin-right: 4px; }
.lg.b0 { background: var(--line-2); } .lg.b1 { background: var(--indigo); } .lg.ln { height: 3px; width: 14px; background: var(--coral); vertical-align: 3px; }
.lg.mk { border-radius: 50%; border: 1.75px solid var(--coral); background: var(--surface); }
.imp-list { margin-top: 16px; }
.imp-list h3 { font-size: 15px; margin: 0 0 8px; }
.mknum { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.75px solid var(--coral); color: var(--coral); font-size: 11px; font-weight: 750; flex: none; }
.imp-changes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px 20px; }
.imp-changes li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); }
.imp-changes b { display: block; font-size: 14px; }
.imp-changes small { display: block; font-size: 12.5px; color: var(--muted); }
.imp-wrap { overflow-x: auto; }
.imp-table { width: 100%; table-layout: auto; }
.imp-table th, .imp-table td { text-align: left !important; vertical-align: top; white-space: normal; } .imp-table small { color: var(--muted); }
.imp-table td:last-child { font-size: 12.5px; font-variant-numeric: tabular-nums; min-width: 190px; }
.imp-table th:last-child { white-space: normal; }
.imp-how { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); max-width: 900px; }
html[data-mode="expert"] .imp-say h3 { font-size: 18px; }
html[data-mode="expert"] .imp-tile b { font-size: 19px; }
html[data-mode="expert"] .impact { margin-top: 14px; }
@media (max-width: 640px) {
  .imp-say h3 { font-size: 19px; }
  .imp-tiles { grid-template-columns: 1fr 1fr; }
  .imp-tile { border-bottom: 1px solid var(--line); }
  .imp-tile:nth-child(2n) { border-right: 0; }
  .imp-table { display: block; overflow-x: auto; }
}

/* Offers: several things advertised by one business */
.offers { margin: 0 0 16px; }
.offer-list { list-style: none; margin: 0; padding: 0; }
.offer-list li { display: grid; grid-template-columns: minmax(180px, 2fr) 90px 100px minmax(150px, 1.2fr) minmax(180px, 2fr); gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.o-name b { display: block; font-size: 14.5px; } .o-name small, .o-num small { display: block; color: var(--muted); font-size: 12.5px; }
.o-num b { font-size: 17px; font-family: var(--head); font-variant-numeric: tabular-nums; }
.o-next { font-size: 13.5px; } .o-next a { color: var(--indigo); }
.o-more summary { cursor: pointer; color: var(--indigo); font-size: 13.5px; font-weight: 600; padding: 8px 0 2px; }
table.grouped tr.grp th, table.grouped tr.grp td { background: var(--surface-2); font-weight: 700; border-top: 1px solid var(--line-2); }
table.grouped tr.grp th small { display: block; font-weight: 500; color: var(--muted); }
table.grouped tr.grp .pill { margin-left: 6px; font-size: 11px; }
table.grouped tbody tr:not(.grp) th { padding-left: 22px; }
table.grouped td.up { color: var(--good); } table.grouped td.down { color: var(--bad); }
.offerhead { margin: 22px 0 10px; } .offerhead:first-of-type { margin-top: 4px; }
.campdetail summary { cursor: pointer; color: var(--indigo); font-size: 13.5px; font-weight: 600; margin-top: 10px; }
@media (max-width: 760px) {
  .offer-list li { grid-template-columns: 1fr auto auto; grid-template-areas: "n a b" "t t t" "x x x"; gap: 6px 14px; }
  .offer-list .o-name { grid-area: n; } .offer-list .o-trend { grid-area: t; } .offer-list .o-next { grid-area: x; }
}

/* 2026-11-26: a little more life. Deep ink hero, confident brand colour, real charts, quiet motion. */
:root { --hero: #151A46; --hero-2: #1F2766; --hero-fg: #FFFFFF; --hero-muted: rgba(255,255,255,.72); --hero-line: rgba(255,255,255,.14); --hero-accent: #FFB09C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --hero: #1A1F52; --hero-2: #252C70; } }
:root[data-theme="dark"] { --hero: #1A1F52; --hero-2: #252C70; }

/* Hero (Simple summary) */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 8px 36px; align-items: center; padding: 28px 30px 0; margin-bottom: 16px; background: var(--hero); color: var(--hero-fg); border-radius: 16px; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 240px at 92% -10%, var(--hero-2), transparent 70%); }
.hero-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-kicker { font-size: 12.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--hero-muted); }
.hero-tag { font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 6px; background: rgba(255,190,90,.16); color: #FFD08A; }
.hero .status.good { background: rgba(90,208,143,.16); color: #7BE0A6; } .hero .status.warn { background: rgba(255,190,90,.16); color: #FFD08A; } .hero .status.bad { background: rgba(255,138,128,.18); color: #FFB0A8; }
.hero h2 { font: 600 27px/1.3 var(--head); letter-spacing: -.015em; margin: 14px 0 10px; color: var(--hero-fg); }
.hero h2 b { font-weight: 800; color: var(--hero-accent); }
.hero p { margin: 0; color: var(--hero-muted); font-size: 14.5px; max-width: 62ch; }
.hero .hero-demo { margin-top: 12px; font-size: 13px; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.07); border: 1px solid var(--hero-line); }
.hero-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.hero-nums > div { padding: 6px 0 6px 20px; border-left: 1px solid var(--hero-line); }
.hero-nums dt { font-size: 12.5px; color: var(--hero-muted); font-weight: 650; }
.hero-nums dd { margin: 4px 0 2px; font: 800 36px/1.05 var(--head); letter-spacing: -.025em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hero-nums small { font-size: 12px; color: var(--hero-muted); }
.hero-spark { grid-column: 1 / -1; height: 74px; margin: 10px -30px 0; }
.hero-spark svg { width: 100%; height: 100%; display: block; }
.hs-area { fill: rgba(255,176,156,.14); } .hs-line { fill: none; stroke: var(--hero-accent); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 0; }
.sum { display: none; }

/* Brand colour with more confidence */
.tabs a.on { color: var(--indigo); border-color: var(--indigo); }
.nav a.on { box-shadow: 0 0 0 1px var(--line), inset 3px 0 0 var(--indigo); }
.card { transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.card:hover { border-color: var(--line-2); }
.strip .cell { transition: background .15s ease; } .strip .cell:hover { background: var(--surface-2); }
.strip .cell b { font-variant-numeric: tabular-nums; }
.sp-area { fill: var(--indigo); opacity: .1; }
.strip .spark { height: 24px; }
.btn.primary { box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 1px 2px rgba(20,23,38,.18); }
.btn { transition: background .15s ease, border-color .15s ease, transform .1s ease; } .btn:active { transform: translateY(1px); }

/* Charts */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .gl { stroke: var(--line); stroke-dasharray: 3 4; } .chart .base { stroke: var(--line-2); }
.chart .ax { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; } .chart .ax.b { fill: var(--coral); opacity: .9; }
.chart .bar { fill: var(--coral); opacity: .55; transform-box: fill-box; transform-origin: bottom; }
.chart .area { fill: var(--indigo); opacity: .09; }
.chart .ln { fill: none; stroke: var(--indigo); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; }
.chart .xh { stroke: var(--fg); stroke-width: 1; stroke-dasharray: 2 3; opacity: 0; } .chart .xh.on { opacity: .5; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .hit:hover ~ .bars .bar { opacity: .4; }
.chart .tip { position: absolute; top: 4px; pointer-events: none; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; box-shadow: 0 6px 20px rgba(20,23,38,.12); display: grid; gap: 3px; min-width: 150px; z-index: 2; }
.chart .tip b { font-size: 12.5px; } .chart .tip span { color: var(--muted); white-space: nowrap; }
.chart .legend { font-size: 12.5px; color: var(--muted); gap: 16px; margin-top: 4px; }
.lg.bc { background: var(--coral); opacity: .7; }
.lg.ln { height: 3px; width: 14px; background: var(--indigo); vertical-align: 3px; }

/* Impact: the headline number */
.imp-say.with-big { display: flex; gap: 22px; align-items: center; max-width: 920px; }
.imp-big { flex: none; display: grid; place-items: center; text-align: center; min-width: 132px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); }
.imp-big b { font: 800 40px/1 var(--head); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.imp-big span { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.imp-big.good { background: var(--good-soft); } .imp-big.good b { color: var(--good); }
.imp-big.lean { background: color-mix(in srgb, var(--indigo) 10%, var(--surface)); } .imp-big.lean b { color: var(--indigo); }
.imp-big.bad { background: var(--bad-soft); } .imp-big.bad b { color: var(--bad); }
.imp-chart rect.b1, .imp-chart rect.b0 { transform-box: fill-box; transform-origin: bottom; }

/* Quiet motion on arrival */
@media (prefers-reduced-motion: no-preference) {
  #tab > *, .hero, .strip, .impact { animation: rise .45s cubic-bezier(.2,.7,.2,1) both; }
  #tab > :nth-child(2) { animation-delay: .05s; } #tab > :nth-child(3) { animation-delay: .1s; } #tab > :nth-child(4) { animation-delay: .15s; } #tab > :nth-child(5) { animation-delay: .2s; } #tab > :nth-child(n+6) { animation-delay: .25s; }
  .chart .bar, .imp-chart rect.b1, .imp-chart rect.b0 { animation: grow .7s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, .15s); }
  .chart .ln, .hs-line { animation: draw 1.1s cubic-bezier(.4,0,.2,1) both .1s; }
  .chart .area, .hs-area { animation: fade .8s ease both .35s; }
  .card:hover { transform: translateY(-1px); }
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } }

@media (max-width: 1100px) { .hero { grid-template-columns: 1fr; } .hero-nums > div:first-child { border-left: 0; padding-left: 0; } }
@media (max-width: 640px) {
  .hero { padding: 20px 18px 0; border-radius: 14px; } .hero h2 { font-size: 21px; } .hero-spark { margin: 6px -18px 0; height: 56px; }
  .hero-nums dd { font-size: 25px; } .hero-nums > div { padding-left: 12px; } .hero-nums small { display: none; }
  .imp-say.with-big { flex-direction: column; align-items: flex-start; gap: 12px; } .imp-big { min-width: 0; padding: 10px 14px; } .imp-big b { font-size: 32px; }
}
.chart .tip[hidden] { display: none; }
.chart .bar { opacity: .38; }
.hs-area { fill: rgba(255,176,156,.08); }
.hero-spark { height: 64px; }
.hs-area { fill: rgba(255,176,156,.06); }
/* Competitors tab */
.cp table.dense th, .cp table.dense td { text-align: left; white-space: normal; }
.cp table.dense td:nth-child(n+3) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cp .cpfeed .ledger { list-style: none; margin: 10px 0 0; padding: 0; }
.cp .cpfeed .ledger li { display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.cp .cpfeed .ledger li:last-child { border-bottom: 0; }
.cp .cpfeed .ledger i { width: 9px; height: 9px; border-radius: 2px; align-self: center; }
.cp .cpfeed .ledger small { display: block; color: var(--muted); font-size: 13px; }
.cp .cpfeed .ledger em { font-style: normal; color: var(--coral-ink, var(--coral)); font-weight: 600; font-size: 13px; }
.cp .chip small { font-size: 12px; }
.cp .chip input:checked + span small { color: inherit; opacity: .8; }
@media (max-width: 640px) { .cp .cpfeed .ledger li { grid-template-columns: 12px 1fr; } .cp .cpfeed .ledger em { grid-column: 2; } }
.cp fieldset.chips { border: 0; padding: 0; margin: 0; }
.totp-qr{background:#fff;border-radius:12px;padding:8px;width:220px;max-width:100%;margin:8px auto 16px}
.totp-qr svg{display:block;width:100%;height:auto}

/* Plan and billing */
.banner.good { background: var(--good-soft); color: var(--good); }
.banner.bad { background: var(--bad-soft); color: var(--bad); }
.card.chosen { border-color: var(--indigo); box-shadow: inset 0 3px 0 var(--indigo); }
.manual-key { margin: 4px 0 12px; text-align: center; }
.manual-key summary { display: inline-block; cursor: pointer; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; list-style: none; padding: 6px 4px; }
.manual-key summary::-webkit-details-marker { display: none; }
.manual-key[open] { text-align: left; }
.manual-key[open] summary { display: none; }
.manual-key .key { font: 700 18px monospace; word-break: break-all; background: var(--surface-2); padding: 12px; border-radius: 10px; }

/* Get set up */
.sintro .bar { margin: 12px 0 14px; }
.slanes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 12px; }
.slanes > div { background: var(--surface-2); border-radius: 12px; padding: 12px; }
.slanes p { margin: 6px 0; }
.splats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; margin-top: 16px; align-items: start; }
.ssteps { list-style: none; margin: 0; padding: 0; }
.sstep { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.sstep:first-child { border-top: 0; }
.sstep p { margin: 4px 0 8px; font-size: 14px; }
.sstep.done .sbody > p, .sstep.done b { color: var(--muted); }
.snum { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 700; font-size: 13px; }
.sstep.done .snum { background: var(--good-soft); color: var(--good); }
.sbody { flex: 1; min-width: 0; }
.row.wrap { flex-wrap: wrap; }
.stick { gap: 6px; font-size: 14px; }
.stick input { width: auto; }
.btn.linkish { border-color: transparent; color: var(--muted); }
.plainlist { margin: 8px 0 0; padding-left: 18px; }
.plainlist li { margin: 4px 0; }
.howto { padding-left: 20px; font-size: 14px; }
.howto li { margin: 6px 0; }
.small { font-size: 13px; }

/* Get set up: one-click sign-in per platform */
.ssign{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:10px 0 4px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--bg)}
.ssign .muted{flex:1 1 220px}

/* Platform keys: Get my key */
.getkey{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.getkey .muted{flex:1 1 200px}
details.adv > summary { cursor: pointer; font-size: 14px; color: var(--muted, #667); }
/* Phone menu: brand and a Menu button on one row; the whole navigation opens below it. */
.mtoggle { display: none; }
.mnav { display: contents; }
@media (max-width: 860px) {
  .side { position: sticky; top: 0; z-index: 30; flex-direction: row; flex-wrap: wrap; align-items: center; overflow: visible; gap: 0; padding: 8px 12px; border-bottom: 1px solid var(--line); }
  .mtoggle { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
  .mtoggle .i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .mnav { display: none; }
  .side.open { max-height: 100dvh; overflow-y: auto; }
  .side.open .mnav { display: flex; flex-direction: column; width: 100%; padding: 8px 0 4px; }
  .side.open .nav, .side.open .nav.foot { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 2px; margin: 0; padding: 0; border: 0; }
  .side.open .nav.foot { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
  .side.open .nav a, .side.open .nav.foot a:not(#logout), .side.open .nav .biz, .side.open .nav .add { display: flex; min-height: 44px; align-items: center; white-space: normal; }
  .side.open .nav .sep { display: block; margin: 10px 10px 2px; }
  .side.open .jump { display: none; }
}
