/* OnPage Agent — styles ported from the "AutoSEO App v2" design. */
:root {
  --bg: #F7F8FA; --surface: #FFFFFF; --ink: #151A23; --ink-2: #394150; --muted: #4A5260; --faint: #6B7280;
  --line: #E6E8EC; --line-2: #EEF0F3; --field: #D9DDE3; --chip: #F2F4F7;
  --blue: #2A5BEA; --blue-ink: #1F4CD6; --blue-hover: #1C44C4; --blue-soft: #EEF3FF; --blue-ring: #E3EBFF; --blue-mid: #9DB4F5;
  --green: #178A55; --green-ink: #11724A; --green-soft: #EAF6EF;
  --amber: #D08A1A; --amber-ink: #8A5300; --amber-soft: #FFF4E0;
  --red: #C8372D; --red-ink: #A42C23; --red-soft: #FDECEA; --red-diff: #FDF1F0;
  --violet-soft: #F1EEFF; --violet-ink: #5B3FC4;
  --shadow: 0 1px 2px rgba(16,24,40,0.05);
  --sans: 'Figtree', system-ui, sans-serif; --display: 'Google Sans', system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box }
body { margin: 0; font-family: var(--sans); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased }
button, input, select, textarea { font-family: inherit }
a { color: var(--blue); text-decoration: none }
a:hover { color: var(--blue-hover); text-decoration: underline }
form { margin: 0 }
.mono { font-family: var(--mono) }
.muted { color: var(--muted) } .faint { color: var(--faint) }
.hidden { display: none !important }

/* ---------- shell ---------- */
.shell { display: flex; min-height: 100vh }
.sidebar { width: 256px; flex-shrink: 0; border-right: 1px solid var(--line); background: var(--surface); padding: 18px 14px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto }
.brand { display: flex; align-items: center; padding: 6px 8px }
.logo { height: 20px; width: auto; display: block }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px }
.brand-name { font-weight: 600; font-size: 17px; letter-spacing: -0.01em }
.site-switch { position: relative }
.site-btn { width: 100%; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 10px; cursor: pointer; text-align: left }
.site-btn:hover { background: var(--bg) }
.site-initial { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex-shrink: 0 }
.site-meta { display: flex; flex-direction: column; min-width: 0; flex: 1 }
.site-meta b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.site-meta span { font-size: 12px; color: var(--faint) }
.menu { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(16,24,40,0.12); padding: 6px; z-index: 25; display: flex; flex-direction: column }
.menu-item { display: flex; justify-content: space-between; align-items: center; width: 100%; border: none; background: none; text-align: left; padding: 9px 10px; border-radius: 8px; font-size: 14px; cursor: pointer; color: var(--ink) }
.menu-item:hover { background: var(--chip); text-decoration: none }
.menu-item.add { color: var(--blue-ink) }
.nav { display: flex; flex-direction: column; gap: 2px }
.nav-head { font-size: 11px; font-weight: 600; color: var(--faint); padding: 0 10px 6px; letter-spacing: 0.06em; text-transform: uppercase }
.nav-link { display: flex; align-items: center; gap: 10px; border-radius: 8px; padding: 8px 10px; font-size: 14.5px; color: var(--ink-2) }
.nav-link:hover { background: var(--bg); color: var(--ink-2); text-decoration: none }
.nav-link.on { background: var(--blue-soft); color: var(--blue-ink); font-weight: 600 }
.nav-link span { flex: 1 }
.nav-link span.count { flex: 0 0 auto }
.count { background: var(--blue); color: #fff; font-size: 11px; font-weight: 600; border-radius: 999px; padding: 2px 7px }
.icon { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px }
.trial { background: #F3F6FD; border: 1px solid #DCE5FB; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px }
.trial-row { display: flex; justify-content: space-between; font-size: 13px }
.me { display: flex; align-items: center; gap: 10px; padding: 4px 6px }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--blue-ring); color: var(--blue-ink); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex-shrink: 0 }
.me-text { display: flex; flex-direction: column; min-width: 0; flex: 1 }
.me-text b { font-size: 14px; font-weight: 500 }
.me-text span { font-size: 12px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column }
.topbar { position: sticky; top: 0; z-index: 20; height: 64px; flex-shrink: 0; background: rgba(255,255,255,0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 32px }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--faint); min-width: 0; flex: 1 1 auto }
.crumbs span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0 }
.crumbs b { color: var(--ink); font-weight: 600; white-space: nowrap }
.jump { display: flex; align-items: center; gap: 10px; flex: 0 1 280px; min-width: 40px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); border-radius: 9px; padding: 8px 10px; font-size: 14px; color: var(--faint); cursor: pointer; text-align: left }
.jump span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
kbd { font-family: inherit; font-size: 12px; border: 1px solid var(--field); border-radius: 5px; padding: 1px 6px; background: #fff; flex-shrink: 0 }
.agent-pill { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 500; color: var(--ink); white-space: nowrap; min-width: 0; max-width: 360px; overflow: hidden }
.agent-pill:hover { text-decoration: none; color: var(--ink) }
.agent-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex-shrink: 0; box-shadow: 0 0 0 3px #DDF1E6 }
.agent-pill .dot.busy { background: var(--blue); box-shadow: 0 0 0 3px var(--blue-ring); animation: pulse 1.2s infinite }
.agent-pill .task { color: var(--faint); font-weight: 400; overflow: hidden; text-overflow: ellipsis }
@keyframes pulse { 50% { opacity: .35 } }
.bell { position: relative; width: 36px; height: 36px; flex-shrink: 0; border: 1px solid var(--line); background: #fff; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: var(--ink-2) }
.bell .badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; padding: 0 5px; border: 2px solid #fff }
.content { padding: 40px 48px 96px }
.container { max-width: 1160px; margin: 0 auto }

/* ---------- type & layout ---------- */
.stack { display: flex; flex-direction: column }
.row { display: flex; align-items: center }
.wrap { flex-wrap: wrap }
.g4{gap:4px}.g6{gap:6px}.g8{gap:8px}.g10{gap:10px}.g12{gap:12px}.g14{gap:14px}.g16{gap:16px}.g18{gap:18px}.g20{gap:20px}.g24{gap:24px}.g28{gap:28px}.g32{gap:32px}.g40{gap:40px}
.between { justify-content: space-between }
.end { align-items: flex-end }
.start { align-items: flex-start }
.baseline { align-items: baseline }
.grow { flex: 1; min-width: 0 }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap }
h1.title { margin: 0; font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: -0.02em }
h1.hero { margin: 0; font-family: var(--display); font-size: 36px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1 }
h2.section { font-family: var(--display); margin: 0; font-size: 22px; font-weight: 600 }
h2.sub { font-family: var(--display); margin: 0; font-size: 20px; font-weight: 600 }
.lede { margin: 0; font-size: 17px; color: var(--muted); max-width: 680px; text-wrap: pretty }
.lede-lg { margin: 0; font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 680px; text-wrap: pretty }
.eyebrow { font-size: 13px; color: var(--faint); letter-spacing: 0.04em; text-transform: uppercase }
.label { font-size: 13px; color: var(--faint) }
.grid { display: grid; gap: 12px }
.cols-auto-170 { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) }
.cols-fit-150 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) }
.cols-fit-170 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) }
.cols-fit-190 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) }
.cols-fit-200 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) }
.cols-fit-220 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) }
.cols-fit-240 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) }
.cols-fit-250 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) }
.cols-fill-280 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; align-items: start }
.split-420 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; align-items: start }
.split-440 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 20px; align-items: start }
.split-320 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; align-items: start }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow) }
.card.pad { padding: 24px } .card.pad-lg { padding: 28px } .card.pad-xl { padding: 32px } .card.pad-sm { padding: 20px 24px }
.card.clip { overflow: hidden }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 20px; display: flex; flex-direction: column; gap: 4px; text-align: left; color: inherit }
a.tile:hover, button.tile:hover { border-color: var(--blue); text-decoration: none; color: inherit }
.tile .num { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink) }
.tile .num.xl { font-size: 36px }
.tile .num small { font-size: 18px; color: var(--faint); font-weight: 400 }
.tile .lbl { font-size: 14px; color: var(--muted); line-height: 1.35 }
.tile .sub { font-size: 13px; color: var(--faint) }
.soft { background: var(--bg); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 6px }
.sticky { position: sticky; top: 88px }
.list-row { border-bottom: 1px solid var(--line-2); padding: 16px 24px }
.list-row:last-child { border-bottom: none }
.table-head { display: grid; gap: 16px; padding: 14px 24px; font-size: 13px; color: var(--faint); border-bottom: 1px solid var(--line-2); background: #FAFBFC }
.table-row { display: grid; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--line-2); align-items: center }
.table-row:last-child { border-bottom: none }
a.row-link { display: grid; color: inherit; background: #fff; text-decoration: none }
a.row-link:hover { background: #FAFBFC; color: inherit; text-decoration: none }
.empty { padding: 64px 32px; text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center }
.empty b { font-size: 24px; font-weight: 600 }
.empty p { margin: 0; font-size: 16px; color: var(--muted); max-width: 520px }
.notice { background: #F3F6FD; border: 1px solid #DCE5FB; border-radius: 14px; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 15px }
.notice.warn { background: var(--amber-soft); border-color: #F3DDB0 }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; padding: 11px 18px; font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap; border: 1px solid transparent; text-decoration: none; line-height: 1.2 }
.btn:hover { text-decoration: none }
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue) }
.btn-primary:hover { background: var(--blue-ink); color: #fff }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--field) }
.btn-secondary:hover { background: var(--bg); color: var(--ink) }
.btn-soft { background: var(--blue-soft); color: var(--blue-ink); border: none; border-radius: 8px; padding: 8px 12px; font-size: 14px }
.btn-soft:hover { background: var(--blue-ring); color: var(--blue-ink) }
.btn-danger-outline { background: #fff; border-color: var(--red); color: var(--red) }
.btn-text { background: none; border: none; color: var(--blue); padding: 6px 4px; font-size: 15px }
.btn-text.red { color: var(--red) } .btn-text.grey { color: var(--muted) }
.btn-sm { padding: 8px 12px; font-size: 14px; border-radius: 8px }
.btn-md { padding: 9px 16px; font-size: 14px }
.btn-lg { padding: 13px 18px }
.btn[disabled] { opacity: 0.45; cursor: not-allowed }
.btn-block { width: 100% }
.icon-btn { width: 32px; height: 32px; border: none; background: none; color: var(--faint); border-radius: 8px; font-size: 18px; cursor: pointer }
.icon-btn:hover { background: var(--chip) }
.field { display: flex; flex-direction: column; gap: 6px }
.field > span { font-size: 14px; font-weight: 500; color: var(--ink) }
.field small { font-size: 13px; color: var(--faint) }
.input, .select, .textarea { border: 1.5px solid var(--field); border-radius: 10px; padding: 11px 14px; font-size: 15px; outline: none; color: var(--ink); width: 100%; background: #fff }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue) }
.input[readonly] { background: var(--bg); color: var(--muted) }
.select { cursor: pointer }
.select-sm { border: 1px solid var(--field); border-radius: 8px; padding: 7px 10px; font-size: 14px; background: #fff; cursor: pointer }
.textarea { resize: vertical; line-height: 1.5 }
.chips { display: flex; gap: 8px; flex-wrap: wrap }
.chip { border: 1px solid var(--field); background: #fff; color: var(--ink-2); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 500; cursor: pointer }
.chip:hover { text-decoration: none; color: var(--ink-2); border-color: var(--blue-mid) }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink) }
.pill { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 4px 10px; white-space: nowrap; flex-shrink: 0 }
.tag { font-size: 13px; background: var(--chip); color: var(--ink-2); border-radius: 8px; padding: 5px 10px }
.tag-sm { font-size: 12px; background: var(--chip); color: var(--muted); border-radius: 6px; padding: 2px 7px }
.code-tag { font-size: 12px; font-family: var(--mono); background: var(--chip); color: var(--ink-2); border-radius: 6px; padding: 3px 8px }
.removable { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-family: var(--mono); background: var(--chip); border-radius: 8px; padding: 6px 6px 6px 12px }
.removable button { border: none; background: none; cursor: pointer; color: var(--faint); font-size: 16px; line-height: 1; padding: 2px 4px }
.switch { flex-shrink: 0; width: 44px; height: 26px; border-radius: 999px; border: none; padding: 3px; cursor: pointer; display: flex; justify-content: flex-start; background: #D3D7DE }
.switch.on { justify-content: flex-end; background: var(--blue) }
.switch span { width: 20px; height: 20px; border-radius: 50%; background: #fff; display: block; box-shadow: 0 1px 2px rgba(0,0,0,0.2) }
.bar { height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; position: relative }
.bar > span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--blue) }
.bar.thin { height: 4px } .bar.thick { height: 8px }
.select-card { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 18px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 10px; color: inherit; width: 100% }
.select-card:hover { text-decoration: none; color: inherit; border-color: var(--blue-mid) }
.select-card.on { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-ring) }
.radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); background: #fff; box-shadow: inset 0 0 0 3px #fff; flex-shrink: 0 }
.on .radio { border-color: var(--blue); background: var(--blue) }
.inline-form { display: inline }

/* ---------- diffs ---------- */
.diff { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px }
.diff.stacked { grid-template-columns: 1fr }
.before, .after { border-radius: 10px; padding: 14px; font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-break: break-word }
.before { background: var(--red-diff) } .after { background: var(--green-soft) }
.before i, .after i { display: block; font-style: normal; font-size: 12px; font-weight: 600; margin-bottom: 6px }
.before i { color: var(--red) } .after i { color: var(--green) }
.before.empty-val { color: var(--faint) }
.ba { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 6px 10px; font-size: 14px; line-height: 1.45 }
.ba .b { font-size: 12px; font-weight: 600; color: var(--red); padding-top: 2px }
.ba .a { font-size: 12px; font-weight: 600; color: var(--green); padding-top: 2px }

/* ---------- overlays ---------- */
.scrim { position: fixed; inset: 0; background: rgba(21,26,35,0.28); z-index: 30 }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px,100vw); background: #fff; z-index: 31; box-shadow: -12px 0 40px rgba(21,26,35,0.12); padding: 32px; overflow-y: auto; display: flex; flex-direction: column; gap: 24px }
.close-x { border: none; background: var(--chip); border-radius: 8px; width: 34px; height: 34px; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--ink) }
.close-x:hover { text-decoration: none; color: var(--ink) }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: #fff; border-radius: 12px; padding: 14px 20px; font-size: 15px; z-index: 70; box-shadow: 0 10px 30px rgba(21,26,35,0.25); max-width: min(560px,90vw); transition: opacity .3s }
.toast.error { background: var(--red-ink) }
.palette-scrim { position: fixed; inset: 0; background: rgba(21,26,35,0.3); z-index: 60 }
.palette { position: fixed; top: 14vh; left: 50%; transform: translateX(-50%); width: min(560px,92vw); background: #fff; border-radius: 14px; box-shadow: 0 24px 60px rgba(16,24,40,0.25); z-index: 61; overflow: hidden }
.palette input { width: 100%; border: none; border-bottom: 1px solid var(--line-2); padding: 18px 20px; font-size: 16px; outline: none; color: var(--ink) }
.palette-list { padding: 8px; display: flex; flex-direction: column; max-height: 360px; overflow-y: auto }
.palette-item { display: flex; align-items: center; gap: 12px; border-radius: 8px; padding: 10px 12px; font-size: 15px; color: var(--ink) }
.palette-item span { flex: 1 }
.palette-item small { font-size: 12px; color: var(--faint) }
.palette-item:hover, .palette-item.active { background: var(--chip); text-decoration: none; color: var(--ink) }

/* ---------- screen specifics ---------- */
.checklist-item { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line-2); background: #fff; border-radius: 10px; padding: 12px 14px; text-align: left; color: var(--ink) }
.checklist-item:hover { border-color: var(--blue-mid); text-decoration: none; color: var(--ink) }
.checklist-item.done { background: #FAFBFC; color: var(--faint) }
.checklist-item.done span.t { text-decoration: line-through }
.check-dot { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; border: 1.5px solid #C3C8D0; background: #fff }
.done .check-dot { background: var(--green); border-color: var(--green) }
.impact { background: var(--blue); color: #fff; border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 8px }
.impact .big { font-size: 40px; font-weight: 600; letter-spacing: -0.02em }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 96px }
.chart span { flex: 1; border-radius: 4px 4px 2px 2px; background: #C9D6FA }
.chart span.last { background: var(--blue) }
.note { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line) }
.note .d { font-size: 14px; color: var(--faint); padding-top: 2px }
.note .t { font-size: 16px; line-height: 1.55; max-width: 760px; text-wrap: pretty }
.approval-row { border-top: 1px solid var(--line-2); padding: 16px 0; display: flex; justify-content: space-between; gap: 16px; align-items: center; color: inherit }
.approval-row:hover { text-decoration: none; color: inherit }
.approval-row b { font-size: 16px; font-weight: 500; line-height: 1.35 }
.change-row { width: 100%; border-bottom: 1px solid var(--line-2); padding: 18px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,240px),1fr)); gap: 8px 20px; align-items: center; color: inherit }
.change-row:hover { background: #FAFBFC; text-decoration: none; color: inherit }
.change-row:last-child { border-bottom: none }
.graph { position: relative; height: 440px; margin: 10px 24px 26px; min-width: 0 }
.graph svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible }
.graph line { vector-effect: non-scaling-stroke }
.node { position: absolute; transform: translate(-50%,-50%); display: flex; flex-direction: column; align-items: center; color: var(--ink-2) }
.node:hover { text-decoration: none }
.node .circle { border-radius: 50%; background: #fff; border: 2px solid #9AA2AE; display: block }
.node .nlabel { position: absolute; top: 100%; margin-top: 4px; font-size: 12px; white-space: nowrap; background: rgba(255,255,255,0.9); padding: 1px 4px; border-radius: 4px; color: var(--ink-2) }
.node.orphan .circle { border-color: var(--red) }
.node.on .circle { background: var(--blue); border-color: var(--blue) }
.node.on .nlabel { color: var(--blue-ink); font-weight: 600 }
.legend { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line-2); padding-top: 14px }
.legend span { display: flex; align-items: center; gap: 6px }
.stat3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px }
.stat3 div { background: var(--bg); border-radius: 10px; padding: 12px }
.stat3 b { font-size: 22px; font-weight: 600; display: block }
.stat3 span { font-size: 13px; color: var(--muted) }
.orphan-btn { border: none; background: var(--red-diff); color: var(--red-ink); border-radius: 8px; padding: 8px 12px; font-size: 14px; text-align: left; font-family: var(--mono); display: block }
.orphan-btn:hover { text-decoration: none; color: var(--red-ink) }
.kanban { display: grid; grid-template-columns: repeat(5, minmax(190px,1fr)); gap: 12px; overflow-x: auto; padding-bottom: 4px }
.kcol { background: #F0F2F5; border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 190px }
.kcol-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 4px 6px }
.kcard { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 6px; color: inherit }
.kcard:hover { text-decoration: none; color: inherit; border-color: var(--blue-mid) }
.kcard.on { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-ring) }
.mark { width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700 }
.serp { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 5px; font-family: Arial, Helvetica, sans-serif }
.serp .t { font-size: 19px; color: #1A0DAB; line-height: 1.3; padding-top: 4px }
.serp .d { font-size: 14px; color: #4D5156; line-height: 1.55 }
.code { background: #0F1420; border-radius: 16px; overflow: hidden }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid #232A3A; font-size: 13px; color: #AEB7C7; font-family: var(--mono) }
.code-head button { background: #232A3A; color: #E6EAF2; border: none; border-radius: 6px; padding: 6px 10px; font-size: 12px; cursor: pointer }
.code pre { margin: 0; padding: 16px; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: #D6DEEB; max-height: 340px; overflow: auto; white-space: pre }
.schema-row { padding: 16px 24px; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 10px; color: inherit; background: #fff }
.schema-row:hover { text-decoration: none; color: inherit; background: #FAFBFC }
.schema-row.on { background: #F5F8FF }
.schema-row.on .nm { color: var(--blue-ink) }
.check-head { padding: 18px 24px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; align-items: center; color: inherit }
.check-head:hover { background: #FAFBFC; text-decoration: none; color: inherit }
.chev { width: 28px; height: 28px; border-radius: 8px; background: var(--chip); color: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 16px }
.finding { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; padding: 14px 24px; border-bottom: 1px solid var(--line-2); background: #FCFCFD }
.stepper { display: flex; align-items: center; gap: 4px; border: 1px solid var(--field); border-radius: 10px; padding: 4px }
.stepper button { width: 32px; height: 32px; border: none; background: var(--chip); border-radius: 7px; font-size: 18px; cursor: pointer }
.stepper b { width: 40px; text-align: center; font-size: 16px; font-weight: 600 }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden }
.tab { padding: 10px 14px; font-size: 15px; font-weight: 500; white-space: nowrap; margin-bottom: -1px; color: var(--muted); border-bottom: 2px solid transparent }
.tab:hover { text-decoration: none; color: var(--ink) }
.tab.on { color: var(--blue-ink); border-bottom-color: var(--blue) }
.int-logo { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; flex-shrink: 0 }
.connect { border-radius: 9px; padding: 8px 14px; font-size: 14px; font-weight: 500; cursor: pointer; background: #fff; color: var(--ink); border: 1px solid var(--field) }
.connect.on { background: var(--green-soft); color: var(--green-ink); border-color: #BFE3CE }
.plan { background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px }
.plan.on { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-ring) }

/* ---------- onboarding / auth ---------- */
.ob { min-height: 100vh; background: #fff; display: flex; flex-wrap: wrap }
.ob-main { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; padding: 28px 40px; min-height: 100vh }
.ob-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 0 }
.ob-form { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 22px }
.ob-form h2 { font-family: var(--display); margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2 }
.ob-form p.lead { margin: 0; font-size: 16px; color: var(--muted); line-height: 1.5 }
.ob-side { flex: 0 1 420px; min-width: 300px; background: #F3F6FD; border-left: 1px solid #E3E9F6; padding: 56px 44px; display: flex; flex-direction: column; gap: 32px }
.ob-step { display: flex; gap: 14px; align-items: flex-start }
.ob-step .c { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; background: #fff; color: var(--faint); border: 1.5px solid #C3C8D0 }
.ob-step.cur .c { border-color: var(--blue); color: var(--blue) }
.ob-step.done .c { background: var(--blue); border-color: var(--blue); color: #fff }
.ob-step .n { font-size: 15px; color: var(--faint); font-weight: 500 }
.ob-step.cur .n { color: var(--ink); font-weight: 600 } .ob-step.done .n { color: var(--ink) }
.kw-toggle { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 8px 14px; font-size: 14px; cursor: pointer; border: 1px solid var(--field); background: #fff; color: var(--ink-2); user-select: none }
.kw-toggle input { display: none }
.kw-toggle:has(input:checked) { background: var(--blue-soft); color: var(--blue-ink); border-color: var(--blue-mid) }
.kw-toggle .m::before { content: "+"; font-weight: 600 }
.kw-toggle:has(input:checked) .m::before { content: "✓" }
.scan-line { display: flex; gap: 12px; align-items: center; font-size: 15px }
.scan-line .ok { width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700 }
.errors { background: var(--red-soft); color: var(--red-ink); border-radius: 10px; padding: 12px 14px; font-size: 14px }

.menu-btn { display: none; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 7px 12px; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer }
@media (max-width: 900px) {
  .menu-btn { display: inline-block }
  .sidebar { gap: 12px; padding: 12px 16px }
  .sidebar > .nav, .sidebar > .side-foot, .sidebar > .site-switch { display: none }
  .sidebar.open > .nav, .sidebar.open > .side-foot { display: flex }
  .sidebar.open > .site-switch { display: block }
  .sidebar.open > .side-foot { margin-top: 8px }
  .crumbs span:first-child, .crumbs span:nth-child(2) { display: none }
  .jump { flex: 0 0 auto }
  .jump span, .jump kbd { display: none }
  .shell { flex-direction: column }
  .sidebar { width: 100%; height: auto; position: static; border-right: none; border-bottom: 1px solid var(--line) }
  .content { padding: 24px 16px 80px }
  .topbar { padding: 0 16px }
  .agent-pill { display: none }
  .ob-main { padding: 20px 16px }
  .ob-side { padding: 32px 20px }
}
.select-card:has(input[type=radio]:checked) { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-ring) }
.me:hover { background: var(--bg) }
.dot-wait { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: pulse 1.2s infinite; flex-shrink: 0 }
.prose { color: var(--ink-2) }
.prose h2 { font-family: var(--display); font-size: 19px; font-weight: 600; color: var(--ink); margin: 22px 0 8px }
.prose h3 { font-size: 16px; font-weight: 600; color: var(--ink); margin: 16px 0 6px }
.prose p, .prose ul, .prose ol { margin: 0 0 12px }
.prose ul, .prose ol { padding-left: 20px }
.prose a { color: var(--blue) }
.prose > :first-child { margin-top: 0 }

/* Content preview in the site's own theme (fonts and colours reported by the WordPress plugin) */
.theme-preview { font-family: var(--tp-body, var(--sans)); color: var(--tp-text, var(--ink)); background: var(--tp-bg, #fff); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; font-size: 16px; line-height: 1.65 }
.theme-preview :is(h2, h3) { font-family: var(--tp-head, var(--tp-body, var(--sans))); color: inherit; margin: 1.2em 0 .4em; line-height: 1.25 }
.theme-preview h2 { font-size: 1.4em } .theme-preview h3 { font-size: 1.15em }
.theme-preview a { color: var(--tp-link, var(--blue)) }
.theme-preview > :first-child { margin-top: 0 }
.theme-preview table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .92em }
.theme-preview :is(th, td) { border: 1px solid color-mix(in srgb, currentColor 20%, transparent); padding: .5em .7em; text-align: left; vertical-align: top }
.theme-preview .has-large-font-size { font-size: 1.25em; line-height: 1.5 }
.theme-preview .has-medium-font-size { font-size: 1.1em }
.theme-preview .wp-block-columns { display: flex; gap: 1em; margin: 1.2em 0; flex-wrap: wrap }
.theme-preview .wp-block-column { flex: 1 1 160px; min-width: 0 }
.theme-preview .wp-block-group { margin: 1.2em 0 }
.theme-preview .wp-block-group > :first-child { margin-top: 0 } .theme-preview .wp-block-group > :last-child { margin-bottom: 0 }
.theme-preview .wp-block-column .wp-block-group { margin: 0; height: 100% }
.theme-preview .is-style-stripes table { border: 0 } .theme-preview .is-style-stripes :is(th, td) { border: 0 }
.theme-preview .is-style-stripes tbody tr:nth-child(odd) { background: color-mix(in srgb, currentColor 6%, transparent) }
.theme-preview figure { margin: 1em 0 }
.theme-preview details { border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent); padding: .6em 0 }
.theme-preview summary { cursor: pointer; font-weight: 600 }
.theme-preview details > p { margin: .5em 0 0 }
.theme-preview .wp-block-buttons { margin-top: 1em }
.theme-preview .wp-block-button__link { display: inline-block; padding: .6em 1.3em; border-radius: 6px; background: var(--tp-link, var(--blue)); color: #fff; text-decoration: none; font-weight: 600 }
.theme-preview .has-text-color .wp-block-button__link { background: #fff; color: #111 }
.theme-label { font-size: 12px; color: var(--faint) }
