
:root {
  color-scheme: light;
  --canvas: #f4f6f9;
  --surface: #fff;
  --ink: #17243b;
  --muted: #57677d;
  --subtle: #718096;
  --line: #e0e6ed;
  --line-strong: #c8d2de;
  --brand: #174582;
  --brand-hover: #10376b;
  --focus: #ee8c39;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 15px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-underline-offset: .16em; }
a:hover { color: var(--brand-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.shell { max-width: 1160px; margin-inline: auto; padding-inline: 32px; }
.topbar { background: #13243c; color: #fff; border-bottom: 1px solid #2b3e56; }
.topbar-inner { min-height: 72px; display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; font-size: 16px; font-weight: 730; letter-spacing: -.025em; white-space: nowrap; }
.brand:hover { color: #fff; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #eaf2ff; color: #174582; font-size: 18px; font-weight: 800; }
.brand-divider { height: 24px; width: 1px; background: #52647a; }
.workspace-label { color: #c9d4e1; font-size: 13px; font-weight: 560; }
.topbar-home { margin-left: auto; color: #e7eef7; text-decoration: none; font-size: 13px; font-weight: 600; border-radius: 7px; padding: 9px 12px; }
.topbar-home:hover { color: #fff; background: #29415e; }
main.shell { padding-top: 36px; padding-bottom: 72px; min-height: calc(100vh - 72px); }
.page-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--subtle); font-size: 11px; font-weight: 760; letter-spacing: .13em; text-transform: uppercase; }
.page-kicker:before { content: ""; width: 19px; height: 2px; background: #4873ab; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 20px; font-size: 13px; color: var(--subtle); }
nav a { display: inline-flex; align-items: center; min-height: 34px; padding: 5px 10px; border: 1px solid transparent; border-radius: 7px; color: #445a76; text-decoration: none; font-weight: 650; }
nav a:hover { background: #e7edf5; color: var(--brand); border-color: #d9e2ed; }
nav a[aria-current=page] { background: #e7eef8; color: var(--brand); border-color: #d7e2f0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; margin: 0 0 18px; box-shadow: 0 1px 3px #1b2b4210, 0 12px 32px #1b2b4207; }
.card.narrow { max-width: 640px; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
h1, h2, h3 { color: #13243c; letter-spacing: -.035em; line-height: 1.2; }
h1 { font-size: clamp(26px, 3vw, 34px); font-weight: 750; margin: 0 0 14px; }
h2 { font-size: 20px; font-weight: 720; margin: 30px 0 12px; }
h3 { font-size: 16px; }
p { margin: 0 0 16px; }
.muted { color: var(--muted); }
.eyebrow { color: var(--brand); font-size: 11px; font-weight: 780; text-transform: uppercase; letter-spacing: .13em; margin-bottom: 10px; }
form { max-width: 720px; }
label { display: block; margin: 20px 0 7px; font-size: 13px; line-height: 1.35; font-weight: 700; color: #263850; }
input, textarea, select { display: block; width: 100%; min-height: 44px; padding: 10px 12px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; font: inherit; box-shadow: 0 1px 2px #1b2b4209 inset; }
input:hover, textarea:hover, select:hover { border-color: #95a8be; }
input:focus, textarea:focus, select:focus { border-color: var(--brand); }
textarea { resize: vertical; }
input[type=checkbox], input[type=radio] { display: inline-block; width: auto; min-height: 0; margin-right: 8px; box-shadow: none; accent-color: var(--brand); }
button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 22px; padding: 10px 17px; border: 1px solid var(--brand); border-radius: 8px; background: var(--brand); color: #fff; font: inherit; font-weight: 700; line-height: 1.3; cursor: pointer; transition: background .15s ease, box-shadow .15s ease; }
button:hover { background: var(--brand-hover); box-shadow: 0 3px 10px #1745822b; }
button:disabled { opacity: .55; cursor: not-allowed; }
.error { padding: 13px 15px; border: 1px solid #f1c9cb; border-left: 4px solid #b43642; border-radius: 8px; background: #fff5f5; color: #8c2831; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 100px; background: #e9f1fc; color: #214e85; font-size: 12px; font-weight: 680; vertical-align: middle; }
.items { list-style: none; padding: 0; margin: 10px 0; border-top: 1px solid var(--line); }
.items li { padding: 17px 2px; border-bottom: 1px solid var(--line); }
.items li strong { font-weight: 700; }
.items li .muted { font-size: 13px; }
.dashboard-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 0 0 26px; }
.dashboard-header h1 { margin-bottom: 5px; }
.dashboard-header .muted { margin: 0; }
.agency-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); gap: 16px; margin: 0 0 28px; }
.agency-tile { display: flex; flex-direction: column; min-height: 188px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 3px #1b2b4210; text-decoration: none; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease; }
.agency-tile:hover { color: var(--ink); border-color: #9ab5d5; box-shadow: 0 6px 18px #1b2b4214; }
.agency-tile-name { display: block; margin: 17px 0 5px; font-size: 19px; font-weight: 730; letter-spacing: -.025em; }
.agency-tile-meta { color: var(--muted); font-size: 13px; }
.agency-tile-action { margin-top: auto; padding-top: 18px; color: var(--brand); font-size: 13px; font-weight: 700; }
.section-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 16px; margin: 0 0 24px; }
.section-toolbar h1 { margin-bottom: 5px; }
.section-toolbar p { margin: 0; }
.action-link { display: inline-flex; align-items: center; justify-content: center; min-height: 41px; padding: 8px 14px; border: 1px solid var(--brand); border-radius: 8px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; }
.action-link:hover { color: #fff; background: var(--brand-hover); }
.empty-state { padding: 34px; border: 1px dashed var(--line-strong); border-radius: 10px; background: #fafbfd; text-align: center; }
.empty-state h2 { margin: 0 0 8px; }
.empty-state p { max-width: 470px; margin: 0 auto; }
.quiet-form button { margin-top: 0; background: #fff; color: var(--brand); border-color: var(--line-strong); }
.quiet-form button:hover { background: #eef3fa; color: var(--brand); }
dl { display: grid; grid-template-columns: minmax(140px, 210px) minmax(0, 1fr); gap: 12px 22px; padding: 16px 0; margin: 16px 0; border-top: 1px solid var(--line); }
dt { font-size: 13px; color: var(--muted); font-weight: 650; }
dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font-weight: 560; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .91em; }
code { overflow-wrap: anywhere; }
.agency-web-review .review-json, pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 30rem; overflow: auto; padding: 16px; background: #f6f8fb; border: 1px solid var(--line); border-radius: 8px; }
details { margin: 14px 0; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfe; }
details[open] { background: #fff; }
summary { padding: 12px 15px; cursor: pointer; color: var(--brand); font-weight: 670; }
details > :not(summary) { margin: 0 15px 15px; }
.auth-layout .topbar-home { display: none; }
.auth-layout main.shell { display: grid; grid-template-columns: minmax(220px, .82fr) minmax(0, 1fr); align-items: start; gap: clamp(32px, 6vw, 84px); padding-top: clamp(48px, 9vw, 108px); }
.auth-intro { padding-top: 35px; max-width: 360px; }
.auth-intro h2 { font-size: clamp(27px, 3vw, 38px); margin: 0 0 16px; }
.auth-intro p { color: var(--muted); font-size: 16px; }
.auth-layout .card.narrow { width: 100%; max-width: 620px; padding: clamp(24px, 4vw, 42px); }
.auth-layout .card form { max-width: none; }
.compact-auth main.shell { display: block; max-width: 720px; padding-top: 40px; }
.compact-auth .card.narrow { max-width: none; }
.setup-steps { list-style: none; padding: 0; margin: 20px 0 0; counter-reset: step; }
.setup-steps > li { position: relative; padding-left: 34px; margin: 0 0 24px; counter-increment: step; }
.setup-steps > li:before { content: counter(step); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: #e6f0fc; color: var(--brand); font-size: 12px; font-weight: 760; }
.setup-steps strong { display: block; margin-bottom: 5px; }
.qr-frame { display: inline-flex; padding: 13px; margin: 12px 0 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.qr-frame img { display: block; width: min(230px, 100%); height: auto; aspect-ratio: 1; }
.setup-key { display: block; padding: 11px 12px; background: #f2f5f9; border-radius: 6px; user-select: all; }
.recovery-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; padding-left: 20px; margin-top: 12px !important; }
.recovery-list li { padding: 3px 0; font-variant-numeric: tabular-nums; }
.recovery-note { padding: 13px 15px; margin: 16px 0; background: #fff8e9; border: 1px solid #f0dfb8; border-radius: 8px; color: #634a18; font-size: 13px; }
@media (max-width: 780px) { .auth-layout main.shell { grid-template-columns: 1fr; gap: 18px; padding-top: 32px; } .auth-intro { padding-top: 0; max-width: 620px; } .auth-intro h2 { font-size: 25px; } .auth-intro p { margin-bottom: 0; } }
@media (max-width: 560px) { .shell { padding-inline: 18px; } .topbar-inner { min-height: 64px; } main.shell, .compact-auth main.shell { padding-top: 24px; } .brand-divider, .workspace-label { display: none; } .card { padding: 23px 19px; } dl { grid-template-columns: 1fr; gap: 2px; } dd { margin-bottom: 10px; } .recovery-list { grid-template-columns: 1fr; } .topbar-home { padding-inline: 5px; } .dashboard-header, .section-toolbar { align-items: stretch; flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { button { transition: none; } }
