/* TRIBE components layered on the original design system (styles.css).
   No inline styles anywhere (strict CSP): widths and rings use generated classes at the end. */

/* ---------- utilities ---------- */
.muted { color: var(--muted); }
.small { font-size: 10px; }
.text-bad { color: var(--bad); font-weight: 700; }
.text-good { color: var(--lime-dark); font-weight: 700; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.section-gap { margin-top: 22px; }
.pad { padding: 20px 24px; }
.pad-sm { padding: 14px 18px; }
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.page-head .button, .head-actions .button { white-space: nowrap; }
.button-block { width: 100%; }
.button-danger { color: var(--on-accent); background: var(--bad); }
.button-danger:hover { background: var(--bad-hover); }
.button[disabled] { opacity: 0.5; cursor: not-allowed; }
.small-icon { width: 30px; height: 30px; color: var(--muted); }
.small-icon:hover { color: var(--ink); background: var(--line); }
.small-icon svg { width: 14px; height: 14px; }
.inline-icon svg { width: 14px; height: 14px; }
.ic-inline svg { display: inline-block; width: 13px; height: 13px; vertical-align: -2px; }
a { color: var(--accent-strong); }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { opacity: 1; }
.htmx-indicator { opacity: 0; transition: opacity 150ms ease; }
.htmx-request.button, .htmx-request .button[type="submit"] { opacity: 0.6; }

/* ---------- sidebar extras ---------- */
.sidebar-profile-copy { min-width: 0; }
.sidebar-profile-copy strong, .sidebar-profile-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-menu { display: grid; place-items: center; color: var(--muted); }
.profile-menu svg { width: 16px; height: 16px; }
.score-link { display: block; color: inherit; text-decoration: none; }
.pillar-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 10px; }
.pillar-row span { padding: 4px 0; color: var(--muted); background: var(--sidebar-soft); border-radius: 6px; font-size: 9px; text-align: center; }
.pillar-row b { display: block; color: var(--lime); font-size: 10px; }
.primary-nav .nav-label { margin-top: 14px; }
.primary-nav .nav-item { height: 38px; }

/* ---------- auth ---------- */
.auth-body { min-height: 100vh; background: var(--sidebar); }
.auth-shell { display: flex; min-height: 100vh; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 32px 16px; }
.auth-brand { color: var(--brand-ink); }
.auth-card { border: 1px solid var(--line); width: min(420px, 100%); padding: 30px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); }
.auth-card h1 { margin: 2px 0 10px; font-family: var(--font-display); font-size: 30px; font-weight: 400; }
.auth-foot { color: var(--muted); font-size: 11px; }
.stack-form { display: grid; gap: 14px; margin-top: 16px; }
.stack-form label > span, .field > span { display: block; margin-bottom: 6px; color: var(--ink-soft); font-size: 10px; font-weight: 800; }
.stack-form small { color: var(--muted); font-weight: 600; }
.stack-form input:where(:not([type="checkbox"], [type="radio"])), .stack-form select, .stack-form textarea,
.field input:where(:not([type="checkbox"], [type="radio"])), .field select, .field textarea,
.inline-form input:where(:not([type="checkbox"], [type="radio"])), .inline-form select, .inline-form textarea {
  width: 100%; min-height: 42px; padding: 8px 12px; color: var(--ink); background-color: var(--surface);
  border: 1px solid var(--line-dark); border-radius: 8px; outline: none;
}
.stack-form textarea, .field textarea, .inline-form textarea { min-height: 90px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.field { display: block; }
.field + .field, .field + .form-grid, .form-grid + .field { margin-top: 14px; }
.form-grid > .field + .field, .stack-form > .field + .field, .stack-form > .field + .form-grid, .stack-form > .form-grid + .field { margin-top: 0; }
.field small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.check-row input { flex: none; width: 16px; height: 16px; min-height: 0; margin: 0; padding: 0; }

/* ---------- inline forms ---------- */
.inline-form { display: flex; gap: 8px; padding: 14px 24px 18px; border-top: 1px solid var(--line); }
.inline-form.wrap { flex-wrap: wrap; }
.inline-form.wrap > * { flex: 1 1 160px; }
.inline-form.wrap > input[name="title"], .inline-form.wrap > textarea { flex: 3 1 260px; }
.inline-form .button { flex: none; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.form-grid.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- lists ---------- */
.list { padding: 4px 24px 8px; }
.list-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; color: inherit; border-bottom: 1px solid var(--line); text-decoration: none; }
.list-row:last-child { border-bottom: 0; }
a.list-row:hover .list-copy strong { color: var(--accent-strong); }
.list-copy { min-width: 0; }
.list-copy strong, .list-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-copy strong { margin-bottom: 3px; font-size: 11px; }
.list-copy span { color: var(--muted); font-size: 10px; }
.list-copy.wrap strong, .list-copy.wrap span { white-space: normal; }
.empty-inline { padding: 16px 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.empty-state.compact { padding: 36px 12px; }

/* ---------- badges & chips ---------- */
.badge, .chip, .reason-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; color: var(--muted); background: var(--surface-soft);
  border: 1px solid var(--line); border-radius: 20px; font-size: 9px; font-weight: 800; letter-spacing: 0.03em; white-space: nowrap;
}
.badge { text-transform: uppercase; }
.badge-muted { color: var(--muted); }
.badge-bad, .chip-bad { color: var(--bad); background: var(--bad-soft); border-color: var(--bad-line); }
.chip-good, .badge-good { color: var(--lime-dark); background: var(--good-soft); border-color: var(--good-line); }
.chip-warn, .badge-warn { color: var(--amber-dark); background: var(--amber); border-color: var(--amber-line); }
.chip-accent { color: var(--accent-strong); background: var(--accent-soft); border-color: var(--amber-line); }
.chip-dark { color: var(--ink); background: var(--sidebar); border-color: var(--sidebar); }
.chip-muted { color: var(--muted); }
.reasons { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.reason-chip { font-weight: 700; letter-spacing: 0; }
.reason-chip.effort { color: var(--muted); background: transparent; }
.moment-public_ask { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.moment-launch, .moment-funding, .moment-book { color: var(--lime-dark); background: var(--good-soft); border-color: var(--good-line); }
.moment-new_role, .moment-award, .moment-milestone { color: var(--violet); background: var(--violet-soft); border-color: var(--violet-line); }
.moment-hiring { color: var(--blue-dark); background: var(--blue); border-color: var(--blue-line); }
.moment-appearance { color: var(--amber-dark); background: var(--amber); border-color: var(--amber-line); }
.moment-setback { color: var(--muted); background: var(--surface-soft); }
.prov { font-size: 8px; }
.prov-public { color: var(--blue-dark); background: var(--blue); border-color: var(--blue-line); }
.prov-told { color: var(--lime-dark); background: var(--good-soft); border-color: var(--good-line); }
.prov-mutual { color: var(--amber-dark); background: var(--amber); border-color: var(--amber-line); }
.prov-personal { color: var(--bad); background: var(--bad-soft); border-color: var(--bad-line); }
.prov-inferred { color: var(--violet); background: var(--violet-soft); border-color: var(--violet-line); }
.stage-pill.rung-0::before, .stage-pill.rung-1::before { background: var(--muted); }
.stage-pill.rung-2::before, .stage-pill.rung-3::before { background: var(--accent); }
.stage-pill.rung-4::before, .stage-pill.rung-5::before { background: var(--lime-dark); }
.stage-pill.rung-6::before, .stage-pill.rung-7::before { background: var(--blue-dark); }

/* ---------- Today ---------- */
.onboarding-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; padding: 22px 24px; border-color: var(--line-dark); background: var(--accent-soft); }
.onboarding-card h2 { margin: 0 0 6px; font-family: var(--font-display); font-size: 22px; font-weight: 400; }
.onboarding-card p { margin: 0; font-size: 11px; }
.engine-move { grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; }
.engine-move .check-button { margin-top: 2px; }
.engine-move .move-copy strong, .engine-move .move-copy span { white-space: normal; }
.promise-move .move-copy strong::before { content: "Promise · "; color: var(--accent-strong); }
.move-actions { display: flex; align-items: center; gap: 4px; }
.plan-foot { margin: 0; padding: 0 24px 16px; color: var(--muted); font-size: 9px; }
.track-warn span { background: var(--amber-dark); }
.warn-footer { color: var(--amber-dark); background: var(--amber); border-color: var(--amber-line); }

/* ---------- people ---------- */
.people-table .table-head, .people-table .target-row { grid-template-columns: minmax(200px, 1.3fr) minmax(170px, 1.2fr) 120px 100px 120px 32px; }
.target-row { color: inherit; text-decoration: none; }
.warmth { display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 700; }
.warmth .progress-track { width: 54px; margin: 0; }
.warmth.good .progress-track span { background: var(--lime-dark); }
.warmth.warn .progress-track span { background: var(--amber-dark); }
.warmth.cold .progress-track span { background: var(--blue-dark); }
.warmth.muted .progress-track span { background: var(--line-dark); }
.portfolio-bar { display: flex; overflow: hidden; height: 8px; margin: 6px 0 18px; background: var(--surface-soft); border-radius: 10px; }
.portfolio-bar span { display: block; }
.portfolio-bar .north { background: var(--blue-dark); }
.portfolio-bar .bridge { background: var(--accent); }
.portfolio-bar .peer { background: var(--lime); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 10px; }
.legend i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; }
.legend .north { background: var(--blue-dark); }
.legend .bridge { background: var(--accent); }
.legend .peer { background: var(--lime); }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.filter-bar select { min-height: 40px; max-width: 100%; padding: 8px 12px; background-color: var(--surface); border: 1px solid var(--line); border-radius: 8px; }

/* ---------- dossier ---------- */
.person-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 26px 28px; color: var(--ink); background: var(--sidebar); border-radius: var(--radius-md) var(--radius-md) 0 0; }
.person-hero .avatar { width: 60px; height: 60px; font-size: 15px; border: 3px solid var(--line-dark); }
.person-hero h1 { margin: 0 0 4px; font-family: var(--font-display); font-size: 30px; font-weight: 400; letter-spacing: -0.02em; }
.person-hero p { margin: 0; color: var(--muted); font-size: 11px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hero-chips .chip { color: var(--ink); background: var(--sidebar-soft); border-color: var(--line); }
.hero-side { text-align: right; }
.hero-side .warmth-big { font-family: var(--font-display); font-size: 34px; line-height: 1; }
.hero-side span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.ladder-card { padding: 18px 28px 20px; background: var(--surface); border: 1px solid var(--line); border-top: 0; }
.ladder { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin-bottom: 12px; }
.rung { position: relative; padding: 8px 4px 7px; color: var(--muted); background: var(--surface-soft); border-radius: 7px; font-size: 9px; font-weight: 700; text-align: center; }
.rung b { display: block; font-size: 13px; font-family: var(--font-display); font-weight: 400; }
.rung.done { color: var(--lime-dark); background: var(--good-soft); }
.rung.current { color: var(--on-accent); background: var(--accent); }
.rung button { all: unset; cursor: pointer; display: block; width: 100%; }
.ladder-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; }
.ladder-meta strong { font-weight: 700; }
.gate { display: inline-flex; align-items: center; gap: 6px; }
.suggest-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 12px 14px; color: var(--lime-dark); background: var(--good-soft); border: 1px solid var(--good-line); border-radius: 9px; font-size: 11px; }
.tabs { display: flex; gap: 2px; overflow-x: auto; padding: 0 20px; background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius-md) var(--radius-md); }
.tab { flex: none; padding: 13px 12px; color: var(--muted); border-bottom: 2px solid transparent; font-size: 11px; font-weight: 700; text-decoration: none; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--accent); }
.tab-body { margin-top: 22px; }
.kv { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px 16px; padding: 18px 24px; font-size: 11px; }
.kv dt { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.kv dd { margin: 0; color: var(--ink-soft); line-height: 1.55; }
.insight { padding: 13px 0; border-bottom: 1px solid var(--line); }
.insight:last-child { border-bottom: 0; }
.insight-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; }
.insight-body { color: var(--ink-soft); font-size: 12px; line-height: 1.55; }
.insight-quote { margin: 7px 0 0; padding: 8px 12px; color: var(--ink-soft); background: var(--surface-soft); border-left: 3px solid var(--line); border-radius: 0 7px 7px 0; font-size: 11px; font-style: italic; }
.insight-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.insight.suggested { padding-left: 12px; background: var(--accent-soft); border-left: 3px solid var(--accent); }
.verified { color: var(--lime-dark); }
.unverified { color: var(--bad); }
.recon-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; padding: 6px 24px 14px; }
.recon-q { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.recon-q .num { display: grid; width: 22px; height: 22px; place-items: center; color: var(--muted); background: var(--surface-soft); border-radius: 50%; font-size: 9px; font-weight: 800; }
.recon-q.done .num { color: var(--on-accent); background: var(--lime-dark); }
.recon-q.l1 .num { box-shadow: 0 0 0 2px var(--accent-soft); }
.recon-q small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.timeline .list-row { grid-template-columns: 90px minmax(0, 1fr) auto; }
.timeline time { color: var(--muted); font-size: 10px; font-weight: 700; }
.inklings { display: grid; gap: 8px; padding: 16px 24px 20px; }
.inkling { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; font-size: 11px; }
.inkling > span:first-child { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 2px; }

/* ---------- coach ---------- */
.coach-check.fail .coach-check-icon { color: var(--bad); background: var(--bad-soft); }
.coach-checks.compact { grid-template-columns: 1fr; gap: 6px; }
.coach-checks.compact .coach-check { padding: 9px 11px; }
.grade { display: inline-grid; min-width: 42px; height: 32px; place-items: center; padding: 0 8px; border-radius: 8px; font-family: var(--font-display); font-size: 18px; }
.grade.good { color: var(--lime-dark); background: var(--good-soft); }
.grade.warn { color: var(--amber-dark); background: var(--amber); }
.grade.bad { color: var(--bad); background: var(--bad-soft); }
.grade.muted { color: var(--muted); background: var(--surface-soft); }
.coach-summary { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 11px; }
.gate-box { margin-top: 12px; padding: 12px 14px; color: var(--amber-dark); background: var(--amber); border: 1px solid var(--amber-line); border-radius: 9px; font-size: 10px; line-height: 1.5; }
.gate-box.ready { color: var(--lime-dark); background: var(--good-soft); border-color: var(--good-line); }
.gate-box ul { margin: 6px 0 0; padding-left: 16px; }
.anchor-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.anchor-chips button { cursor: pointer; }
.composer-body textarea[name="body"] { min-height: 230px; font-size: 12px; }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 11px; }
.table th { padding: 10px 14px; color: var(--muted); background: var(--surface-soft); border-bottom: 1px solid var(--line); font-size: 9px; font-weight: 800; letter-spacing: 0.08em; text-align: left; text-transform: uppercase; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.bar { display: block; height: 6px; margin-top: 5px; background: var(--surface-soft); border-radius: 10px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); }

/* ---------- kanban ---------- */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.kanban-col { padding: 12px; background: var(--surface-soft); border-radius: 12px; }
.kanban-col h3 { margin: 0 0 10px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.kanban-card { margin-bottom: 8px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: 11px; }
.kanban-card strong { display: block; margin-bottom: 4px; }
.kanban-card p { margin: 0 0 8px; color: var(--muted); font-size: 10px; line-height: 1.45; }

/* ---------- prose (guide, dossier) ---------- */
.prose { padding: 8px 28px 26px; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.prose h1 { font-family: var(--font-display); font-size: 32px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.15; }
.prose h2 { margin-top: 28px; font-family: var(--font-display); font-size: 22px; font-weight: 400; }
.prose h3 { margin-top: 22px; font-size: 14px; }
.prose table { width: 100%; margin: 14px 0; border-collapse: collapse; font-size: 11px; line-height: 1.5; }
.prose th, .prose td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--muted); background: var(--surface-soft); font-size: 10px; }
.prose blockquote { margin: 14px 0; padding: 10px 16px; background: var(--surface-soft); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; }
.prose pre { overflow-x: auto; padding: 14px; color: var(--ink); background: var(--sidebar); border-radius: 10px; font-size: 11px; line-height: 1.45; }
.prose code { font-size: 0.92em; }
.prose q { color: var(--ink-soft); font-style: italic; }
.prose ul, .prose ol { padding-left: 20px; }
.cite { margin-left: 1px; color: var(--accent-strong); font-size: 9px; font-weight: 800; }
.footnotes { margin-top: 18px; padding-top: 12px; color: var(--muted); border-top: 1px solid var(--line); font-size: 10px; }
.guide-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; align-items: start; }
.guide-nav { position: sticky; top: 94px; padding: 10px; }
.guide-nav a { display: block; padding: 9px 10px; color: var(--ink-soft); border-radius: 8px; font-size: 11px; font-weight: 600; text-decoration: none; }
.guide-nav a.active, .guide-nav a:hover { background: var(--surface-soft); color: var(--ink); }

/* ---------- palette / search ---------- */
.palette { width: min(640px, 100%); }
.palette-input { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.palette-input input { width: 100%; height: 44px; padding: 0 14px; font-size: 14px; border: 1px solid var(--line-dark); border-radius: 10px; outline: none; }
.palette-results { max-height: 60vh; overflow-y: auto; padding: 6px 20px 16px; }
.palette-results .list-row { padding: 10px 0; }

/* ---------- capture (mobile-first) ---------- */
.capture-shell { max-width: 640px; margin: 0 auto; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--surface-soft); border-radius: 10px; }
.segmented a { padding: 10px 8px; color: var(--muted); border-radius: 7px; font-size: 11px; font-weight: 700; text-align: center; text-decoration: none; }
.segmented a.active { color: var(--ink); background: var(--surface); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16); }
.offline-banner { margin-bottom: 14px; padding: 10px 14px; color: var(--amber-dark); background: var(--amber); border: 1px solid var(--amber-line); border-radius: 9px; font-size: 11px; }
.big-input { font-size: 15px !important; min-height: 48px !important; }

/* ---------- AI / jobs ---------- */
.ai-box { padding: 16px 20px; border-top: 1px solid var(--line); }
.ai-provider { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 700; }
.ai-provider svg { width: 12px; height: 12px; }
.working { display: flex; align-items: center; gap: 10px; padding: 18px 24px; color: var(--muted); font-size: 11px; }
.spinner { width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.brief-section { padding: 14px 24px; border-bottom: 1px solid var(--line); }
.brief-section h3 { margin: 0 0 8px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.brief-section ul { margin: 0; padding-left: 18px; font-size: 12px; line-height: 1.6; }
.brief-section p { margin: 0; font-size: 12px; line-height: 1.6; }

/* ---------- misc ---------- */
.callout { padding: 14px 16px; color: var(--ink-soft); background: var(--accent-soft); border: 1px solid var(--amber-line); border-radius: 10px; font-size: 11px; line-height: 1.55; }
.callout strong { color: var(--accent-strong); }
.callout > .icon { display: inline-block; margin-right: 6px; color: var(--accent-strong); vertical-align: -4px; }
.callout { font-size: 12px; line-height: 1.65; }
.code-box { display: block; overflow-x: auto; padding: 12px 14px; color: var(--ink); background: var(--sidebar); border-radius: 10px; font-family: var(--font-mono); font-size: 11px; word-break: break-all; white-space: pre-wrap; }
.bookmarklet { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; color: var(--on-accent); background: var(--accent); border-radius: 9px; font-weight: 800; text-decoration: none; cursor: grab; }
.pill-group { display: flex; flex-wrap: wrap; gap: 6px; }
.member-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.member-row:last-child { border-bottom: 0; }
.trend { display: flex; align-items: flex-end; gap: 6px; height: 90px; padding: 12px 24px 6px; }
.trend div { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.trend .col { width: 100%; max-width: 34px; background: var(--accent); border-radius: 5px 5px 0 0; }
.trend small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.funnel-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 34px; align-items: center; gap: 10px; padding: 6px 0; font-size: 11px; }
.funnel-row .bar { margin: 0; height: 10px; }
.month-cost { font-family: var(--font-display); font-size: 26px; }
details.disclosure summary { cursor: pointer; color: var(--accent-strong); font-size: 11px; font-weight: 800; }
details.disclosure[open] summary { margin-bottom: 10px; }

@media (max-width: 1100px) {
  .people-table .table-head, .people-table .target-row { grid-template-columns: minmax(180px, 1.3fr) minmax(150px, 1fr) 110px 32px; }
  .people-table .table-head > *:nth-child(4), .people-table .target-row > *:nth-child(4),
  .people-table .table-head > *:nth-child(5), .people-table .target-row > *:nth-child(5) { display: none; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .grid-2, .grid-3, .guide-layout, .recon-grid { grid-template-columns: 1fr; }
  .guide-nav { position: static; }
  .person-hero { grid-template-columns: auto minmax(0, 1fr); }
  .hero-side { grid-column: 1 / -1; text-align: left; }
  .ladder { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 680px) {
  .hide-sm { display: none; }
  .people-table .target-row { grid-template-columns: minmax(0, 1fr) auto; }
  .people-table .target-row > *:nth-child(2), .people-table .target-row > *:nth-child(4),
  .people-table .target-row > *:nth-child(5), .people-table .target-row > *:nth-child(6) { display: none; }
  .kv, .inkling { grid-template-columns: 1fr; }
  .inline-form { flex-wrap: wrap; padding: 12px 16px 16px; }
  .list { padding: 4px 16px 8px; }
  .person-hero { padding: 20px; }
  .ladder-card { padding: 16px; }
  .engine-move { grid-template-columns: auto minmax(0, 1fr); }
  .engine-move .move-actions { grid-column: 2; }
  .timeline .list-row { grid-template-columns: minmax(0, 1fr) auto; }
  .timeline time { display: none; }
}

/* ---------- settings, guide, welcome, popup ---------- */
a.chip { text-decoration: none; }
.outreach-layout { align-items: start; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--font-mono); font-size: 0.95em; word-break: break-all; }
.stack-sm { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.table-scroll { overflow-x: auto; }
.table-scroll .table { min-width: 560px; }
.tabs-standalone { border-top: 1px solid var(--line); border-radius: var(--radius-md); }
.filter-count { align-self: center; margin-left: auto; padding: 0 6px; }
.chip-button { max-width: 100%; border: 1px dashed var(--line-dark); background: var(--surface); cursor: pointer; text-align: left; white-space: normal; line-height: 1.4; }
.chip-button:hover { border-color: var(--accent); color: var(--ink); }
.step-dot { display: grid; place-items: center; flex: none; width: 28px; height: 28px; color: var(--muted); background: var(--line); border-radius: 50%; font-size: 11px; font-weight: 800; }
.step-dot.done { color: var(--on-accent); background: var(--lime-dark); }
.step-dot svg { width: 14px; height: 14px; }
.danger-card { border-color: var(--bad-line); }
.danger-card h2 { color: var(--bad); }
.danger-button { color: var(--bad); }
.danger-button:hover { color: var(--on-accent); background: var(--bad); }
.critique { padding: 12px 14px; background: var(--surface-soft); border-radius: 10px; }
.critique ul { margin: 8px 0 0; padding-left: 18px; line-height: 1.6; }
.coach-side .pad { padding-top: 6px; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.guide-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; color: var(--ink); text-decoration: none; transition: transform 120ms ease, box-shadow 120ms ease; }
.guide-card:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16); }
.guide-card strong { font-family: var(--font-display); font-size: 17px; font-weight: 400; line-height: 1.25; }
.guide-card span:last-child { color: var(--muted); font-size: 11px; line-height: 1.5; }
.guide-num { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: 0.1em; }
.prose-card { padding-top: 20px; }
.prose-card > .eyebrow { padding: 0 28px; }
.guide-pager { display: flex; justify-content: space-between; gap: 12px; padding: 16px 28px 24px; border-top: 1px solid var(--line); }
.palette-foot { display: flex; flex-wrap: wrap; gap: 14px; padding: 12px 20px 16px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 700; }
.palette-foot a { color: var(--muted); text-decoration: none; }
.palette-foot a:hover { color: var(--ink); }
.palette-input { display: flex; align-items: center; gap: 10px; }
.palette-input > svg { flex: none; width: 16px; height: 16px; color: var(--muted); }
.popup-body { min-height: 100vh; background: var(--canvas); }
.popup-shell { max-width: 560px; margin: 0 auto; padding: 16px; }
.popup-shell > .brand { min-height: 38px; margin-bottom: 12px; }
@media (max-width: 680px) {
  .guide-pager { flex-direction: column; }
  .filter-count { display: none; }
}

/* ---------- generated: widths (.pct-N) and score rings (.ring-N); no inline styles under CSP ---------- */
.pct-h-0{height:0%} .pct-h-1{height:1%} .pct-h-2{height:2%} .pct-h-3{height:3%} .pct-h-4{height:4%} .pct-h-5{height:5%} .pct-h-6{height:6%} .pct-h-7{height:7%} .pct-h-8{height:8%} .pct-h-9{height:9%} .pct-h-10{height:10%} .pct-h-11{height:11%} .pct-h-12{height:12%} .pct-h-13{height:13%} .pct-h-14{height:14%} .pct-h-15{height:15%} .pct-h-16{height:16%} .pct-h-17{height:17%} .pct-h-18{height:18%} .pct-h-19{height:19%} .pct-h-20{height:20%} .pct-h-21{height:21%} .pct-h-22{height:22%} .pct-h-23{height:23%} .pct-h-24{height:24%} .pct-h-25{height:25%} .pct-h-26{height:26%} .pct-h-27{height:27%} .pct-h-28{height:28%} .pct-h-29{height:29%} .pct-h-30{height:30%} .pct-h-31{height:31%} .pct-h-32{height:32%} .pct-h-33{height:33%} .pct-h-34{height:34%} .pct-h-35{height:35%} .pct-h-36{height:36%} .pct-h-37{height:37%} .pct-h-38{height:38%} .pct-h-39{height:39%} .pct-h-40{height:40%} .pct-h-41{height:41%} .pct-h-42{height:42%} .pct-h-43{height:43%} .pct-h-44{height:44%} .pct-h-45{height:45%} .pct-h-46{height:46%} .pct-h-47{height:47%} .pct-h-48{height:48%} .pct-h-49{height:49%} .pct-h-50{height:50%} .pct-h-51{height:51%} .pct-h-52{height:52%} .pct-h-53{height:53%} .pct-h-54{height:54%} .pct-h-55{height:55%} .pct-h-56{height:56%} .pct-h-57{height:57%} .pct-h-58{height:58%} .pct-h-59{height:59%} .pct-h-60{height:60%} .pct-h-61{height:61%} .pct-h-62{height:62%} .pct-h-63{height:63%} .pct-h-64{height:64%} .pct-h-65{height:65%} .pct-h-66{height:66%} .pct-h-67{height:67%} .pct-h-68{height:68%} .pct-h-69{height:69%} .pct-h-70{height:70%} .pct-h-71{height:71%} .pct-h-72{height:72%} .pct-h-73{height:73%} .pct-h-74{height:74%} .pct-h-75{height:75%} .pct-h-76{height:76%} .pct-h-77{height:77%} .pct-h-78{height:78%} .pct-h-79{height:79%} .pct-h-80{height:80%} .pct-h-81{height:81%} .pct-h-82{height:82%} .pct-h-83{height:83%} .pct-h-84{height:84%} .pct-h-85{height:85%} .pct-h-86{height:86%} .pct-h-87{height:87%} .pct-h-88{height:88%} .pct-h-89{height:89%} .pct-h-90{height:90%} .pct-h-91{height:91%} .pct-h-92{height:92%} .pct-h-93{height:93%} .pct-h-94{height:94%} .pct-h-95{height:95%} .pct-h-96{height:96%} .pct-h-97{height:97%} .pct-h-98{height:98%} .pct-h-99{height:99%} .pct-h-100{height:100%}
.pct-0{width:0%} .pct-1{width:1%} .pct-2{width:2%} .pct-3{width:3%} .pct-4{width:4%} .pct-5{width:5%} .pct-6{width:6%} .pct-7{width:7%} .pct-8{width:8%} .pct-9{width:9%} .pct-10{width:10%} .pct-11{width:11%} .pct-12{width:12%} .pct-13{width:13%} .pct-14{width:14%} .pct-15{width:15%} .pct-16{width:16%} .pct-17{width:17%} .pct-18{width:18%} .pct-19{width:19%} .pct-20{width:20%} .pct-21{width:21%} .pct-22{width:22%} .pct-23{width:23%} .pct-24{width:24%} .pct-25{width:25%} .pct-26{width:26%} .pct-27{width:27%} .pct-28{width:28%} .pct-29{width:29%} .pct-30{width:30%} .pct-31{width:31%} .pct-32{width:32%} .pct-33{width:33%} .pct-34{width:34%} .pct-35{width:35%} .pct-36{width:36%} .pct-37{width:37%} .pct-38{width:38%} .pct-39{width:39%} .pct-40{width:40%} .pct-41{width:41%} .pct-42{width:42%} .pct-43{width:43%} .pct-44{width:44%} .pct-45{width:45%} .pct-46{width:46%} .pct-47{width:47%} .pct-48{width:48%} .pct-49{width:49%} .pct-50{width:50%} .pct-51{width:51%} .pct-52{width:52%} .pct-53{width:53%} .pct-54{width:54%} .pct-55{width:55%} .pct-56{width:56%} .pct-57{width:57%} .pct-58{width:58%} .pct-59{width:59%} .pct-60{width:60%} .pct-61{width:61%} .pct-62{width:62%} .pct-63{width:63%} .pct-64{width:64%} .pct-65{width:65%} .pct-66{width:66%} .pct-67{width:67%} .pct-68{width:68%} .pct-69{width:69%} .pct-70{width:70%} .pct-71{width:71%} .pct-72{width:72%} .pct-73{width:73%} .pct-74{width:74%} .pct-75{width:75%} .pct-76{width:76%} .pct-77{width:77%} .pct-78{width:78%} .pct-79{width:79%} .pct-80{width:80%} .pct-81{width:81%} .pct-82{width:82%} .pct-83{width:83%} .pct-84{width:84%} .pct-85{width:85%} .pct-86{width:86%} .pct-87{width:87%} .pct-88{width:88%} .pct-89{width:89%} .pct-90{width:90%} .pct-91{width:91%} .pct-92{width:92%} .pct-93{width:93%} .pct-94{width:94%} .pct-95{width:95%} .pct-96{width:96%} .pct-97{width:97%} .pct-98{width:98%} .pct-99{width:99%} .pct-100{width:100%}
.ring-0{--score:0} .ring-1{--score:1} .ring-2{--score:2} .ring-3{--score:3} .ring-4{--score:4} .ring-5{--score:5} .ring-6{--score:6} .ring-7{--score:7} .ring-8{--score:8} .ring-9{--score:9} .ring-10{--score:10} .ring-11{--score:11} .ring-12{--score:12} .ring-13{--score:13} .ring-14{--score:14} .ring-15{--score:15} .ring-16{--score:16} .ring-17{--score:17} .ring-18{--score:18} .ring-19{--score:19} .ring-20{--score:20} .ring-21{--score:21} .ring-22{--score:22} .ring-23{--score:23} .ring-24{--score:24} .ring-25{--score:25} .ring-26{--score:26} .ring-27{--score:27} .ring-28{--score:28} .ring-29{--score:29} .ring-30{--score:30} .ring-31{--score:31} .ring-32{--score:32} .ring-33{--score:33} .ring-34{--score:34} .ring-35{--score:35} .ring-36{--score:36} .ring-37{--score:37} .ring-38{--score:38} .ring-39{--score:39} .ring-40{--score:40} .ring-41{--score:41} .ring-42{--score:42} .ring-43{--score:43} .ring-44{--score:44} .ring-45{--score:45} .ring-46{--score:46} .ring-47{--score:47} .ring-48{--score:48} .ring-49{--score:49} .ring-50{--score:50} .ring-51{--score:51} .ring-52{--score:52} .ring-53{--score:53} .ring-54{--score:54} .ring-55{--score:55} .ring-56{--score:56} .ring-57{--score:57} .ring-58{--score:58} .ring-59{--score:59} .ring-60{--score:60} .ring-61{--score:61} .ring-62{--score:62} .ring-63{--score:63} .ring-64{--score:64} .ring-65{--score:65} .ring-66{--score:66} .ring-67{--score:67} .ring-68{--score:68} .ring-69{--score:69} .ring-70{--score:70} .ring-71{--score:71} .ring-72{--score:72} .ring-73{--score:73} .ring-74{--score:74} .ring-75{--score:75} .ring-76{--score:76} .ring-77{--score:77} .ring-78{--score:78} .ring-79{--score:79} .ring-80{--score:80} .ring-81{--score:81} .ring-82{--score:82} .ring-83{--score:83} .ring-84{--score:84} .ring-85{--score:85} .ring-86{--score:86} .ring-87{--score:87} .ring-88{--score:88} .ring-89{--score:89} .ring-90{--score:90} .ring-91{--score:91} .ring-92{--score:92} .ring-93{--score:93} .ring-94{--score:94} .ring-95{--score:95} .ring-96{--score:96} .ring-97{--score:97} .ring-98{--score:98} .ring-99{--score:99} .ring-100{--score:100}

/* toast levels */
.toast-error::before { background: var(--accent); }
.toast-warn::before { background: var(--amber-dark); }

/* inline form sizing */
.inline-form > input:not([type="date"]):not([type="checkbox"]), .inline-form > textarea { flex: 1 1 auto; min-width: 0; }
.inline-form > input[type="date"], .inline-form > select { flex: 0 1 auto; width: auto; }
.inline-form.wrap > input[type="date"] { flex: 0 1 150px; }
a.filter-tab { text-decoration: none; }
.filter-tab.active-tab { color: var(--ink); background: var(--surface); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16); }
.mb-16 { margin-bottom: 16px; }
.wide-modal { width: min(780px, 100%); }
.form-grid.four-col { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rating-set { margin: 0 0 18px; padding: 12px 14px 4px; border: 1px solid var(--line); border-radius: 10px; }
.rating-set legend { padding: 0 6px; color: var(--muted); font-size: 9px; font-weight: 700; }
.rating-set .form-grid { margin-bottom: 8px; }
.gate-box.mx { margin: 0 24px 20px; }
.modal-form details.disclosure { margin-bottom: 14px; }
@media (max-width: 680px) { .form-grid.four-col, .form-grid.three-col { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- network map ---------- */
.map-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 16px; }
.map-filters select { width: auto; max-width: 100%; }
.segmented-inline { display: inline-flex; gap: 3px; padding: 3px; background: var(--surface-soft); border-radius: 9px; }
.seg-option { display: inline-flex; align-items: center; padding: 6px 12px; color: var(--muted); border-radius: 7px; font-size: 11px; font-weight: 700; cursor: pointer; }
.seg-option input { position: absolute; opacity: 0; pointer-events: none; }
.seg-option.active, .seg-option:has(input:checked) { color: var(--ink); background: var(--surface); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16); }
.seg-option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
.map-card { overflow: hidden; }
.map-canvas { position: relative; }
.map-float { position: absolute; top: 14px; right: 14px; width: min(330px, 42%); max-height: calc(100% - 28px); overflow-y: auto; box-shadow: var(--shadow-lg); }
.map-float:has(.map-card-empty) { width: min(260px, 40%); box-shadow: var(--shadow-sm); }
.map-float-close { position: absolute; top: 10px; right: 10px; }
.map-person { position: relative; }
.map-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px 10px 20px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 11px; }
.map-zoom { display: inline-flex; gap: 2px; }
.map-zoom .icon-btn { font-size: 16px; font-weight: 700; line-height: 1; }
.text-warn { color: var(--amber-dark); }
.map-canvas { background: var(--surface-soft); }
.map-card-empty { padding: 14px 16px; }
.map-hint { margin: 0; padding: 8px 20px; color: var(--muted); border-top: 1px solid var(--line); font-size: 10px; }
.netmap { display: block; width: 100%; height: auto; max-height: 78vh; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: none; }
.netmap:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.netmap.panning { cursor: grabbing; }
.netmap .ring { fill: none; stroke: var(--line); stroke-width: 1; }
.netmap .ring-label { fill: var(--muted); font-size: 12px; font-weight: 700; text-anchor: middle; paint-order: stroke; stroke: var(--surface-soft); stroke-width: 4px; stroke-linejoin: round; }
.netmap .loose-label { fill: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-anchor: start; text-transform: uppercase; }
.netmap .sector-line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 6; }
.netmap .sector-label { fill: var(--muted); font-size: 15px; font-weight: 800; letter-spacing: 0.14em; text-anchor: middle; text-transform: uppercase; }
.edge { fill: none; stroke-linecap: round; transition: opacity 140ms ease; }
.e-you { stroke: var(--map-link); }
.e-tie { stroke: var(--muted); opacity: 0.6; }
.e-tie.stale { stroke-dasharray: 4 4; }
.edge.s1 { stroke-width: 1; }
.edge.s2 { stroke-width: 1.6; }
.edge.s3 { stroke-width: 2.2; }
.edge.s4 { stroke-width: 2.8; }
.edge.s5 { stroke-width: 3.4; }
.e-intro-made { stroke: var(--amber-dark); stroke-width: 2.4; }
.e-intro-open { stroke: var(--amber-dark); stroke-width: 1.8; stroke-dasharray: 2 5; }
.edge.e-path-alt { stroke: var(--blue-dark); stroke-width: 2.4; stroke-dasharray: 6 4; opacity: 0.9; }
.edge.e-path { stroke: var(--ink); stroke-width: 3.8; opacity: 1; }
.node { cursor: pointer; outline: none; transition: opacity 140ms ease; }
.node .dot { stroke: var(--canvas); stroke-width: 2; transition: transform 120ms ease; }
.node .halo { fill: none; stroke: transparent; stroke-width: 2.2; }
.node.target.seg-north_star .dot { fill: var(--accent); }
.node.target.seg-bridge .dot { fill: var(--blue-dark); }
.node.target.seg-peer .dot { fill: var(--lime-dark); }
.node.conn .dot { fill: var(--muted); stroke-width: 1.4; }
.node.team .dot { fill: var(--sidebar); stroke: var(--accent); stroke-width: 2.5; }
.node.w-warm .halo { stroke: var(--lime-dark); }
.node.w-cooling .halo { stroke: var(--amber-dark); stroke-dasharray: 3 3; }
.node.w-dormant .halo { stroke: var(--muted); stroke-dasharray: 1 3; }
.node.blocked .dot, .node.target.blocked .dot { fill: var(--canvas); stroke: var(--muted); stroke-dasharray: 2 2; }
.node.blocked .inner { fill: var(--muted); }
.node .inner { fill: var(--canvas); font-size: 12px; font-weight: 800; text-anchor: middle; pointer-events: none; }
.node.team .inner { fill: var(--accent-strong); font-size: 13px; }
.node .label { fill: var(--ink-soft); font-size: 14px; font-weight: 600; paint-order: stroke; stroke: var(--surface-soft); stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.node.conn .label { fill: var(--muted); font-size: 12px; font-weight: 500; }
.swatch .node .inner { font-size: 8px; }
.node.team .label { font-weight: 800; }
.badge { stroke: var(--canvas); stroke-width: 1.6; }
.netmap .badge { transform: scale(1.35); transform-box: fill-box; transform-origin: center; }
.b-promise { fill: var(--amber-dark); }
.b-overdue { fill: var(--bad); }
.b-moment { fill: var(--accent-strong); }
.b-ready { fill: var(--lime-dark); }
.node.on-path .dot { stroke: var(--ink); stroke-width: 3; }
.node.is-focus .halo, .node.selected .halo { stroke: var(--ink); stroke-width: 2.6; stroke-dasharray: none; }
.node:focus-visible .halo { stroke: var(--accent); stroke-width: 3; stroke-dasharray: none; }
.node:hover .dot { transform: scale(1.08); }
.netmap.focus-mode .node:not(.lit) { opacity: 0.18; }
.netmap.focus-mode .edge:not(.lit) { opacity: 0.05; }
.netmap.focus-mode .edge.lit { opacity: 1; }
.map-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px 22px; padding: 16px 20px 20px; border-top: 1px solid var(--line); }
.legend-group h4 { margin: 0 0 8px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.legend-item { display: flex; align-items: center; gap: 8px; margin: 5px 0; color: var(--ink-soft); font-size: 11px; line-height: 1.35; }
.swatch { flex: none; width: 22px; height: 16px; overflow: visible; }
.swatch .node { cursor: default; }
.swatch .node:hover .dot { transform: none; }
.legend-ring { fill: none; stroke: var(--line-dark); stroke-width: 1; }
.map-card-empty { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 12px; line-height: 1.5; }
.map-card-empty svg { flex: none; width: 22px; height: 22px; color: var(--accent); }
.map-card-empty p { margin: 0; }
.path-steps { margin: 6px 0 10px; padding-left: 20px; font-size: 13px; font-weight: 700; line-height: 1.8; }
.map-person-head { display: flex; gap: 12px; align-items: center; padding: 18px 20px 6px; }
.map-person-head h2 { margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 400; }
.map-person-head p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.map-subhead { margin: 14px 20px 0; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.map-person-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 20px 18px; border-top: 1px solid var(--line); }
.health-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.health-grid > div { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; background: var(--surface); }
.health-grid strong { font-family: var(--font-display); font-size: 24px; font-weight: 400; }
.health-grid span { color: var(--muted); font-size: 10px; }
.health-section { padding: 14px 20px; border-bottom: 1px solid var(--line); }
.health-section:last-child { border-bottom: 0; }
.health-section h3 { margin: 0 0 4px; font-size: 12px; }
.health-section p { margin: 0 0 8px; }
.health-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 10px; align-items: center; padding: 5px 0; font-size: 11px; }
.health-row a { font-weight: 700; text-decoration: none; }
.health-row .bar { height: 8px; margin: 0; }
@media (max-width: 900px) {
  .map-float, .map-float:has(.map-card-empty) { position: static; width: auto; max-height: none; box-shadow: none; border-width: 1px 0 0; border-radius: 0; }
}
@media (max-width: 680px) {
  .map-filters { padding: 10px 12px; }
  .map-filters select { flex: 1 1 140px; }
  .netmap { max-height: none; }
}

/* ---------- network map motion (paused by .still and by prefers-reduced-motion) ---------- */
@keyframes map-ping { from { transform: scale(1); opacity: 0.65; } to { transform: scale(3); opacity: 0; } }
@keyframes map-flow-22 { to { stroke-dashoffset: -22; } }
@keyframes map-flow-20 { to { stroke-dashoffset: -20; } }
@keyframes map-flow-14 { to { stroke-dashoffset: -14; } }
.netmap .ping { fill: none; stroke-width: 2; pointer-events: none; transform-box: fill-box; transform-origin: center; animation: map-ping 1.9s ease-out infinite; }
.netmap .ping.p-overdue { stroke: var(--bad); }
.netmap .ping.p-moment { stroke: var(--accent-strong); animation-duration: 2.6s; }
.netmap .ping.p-team { stroke: var(--lime-dark); stroke-width: 1.6; animation-duration: 3.4s; }
.netmap .edge.e-path { stroke-dasharray: 12 10; animation: map-flow-22 1.1s linear infinite; }
.netmap .edge.e-path-alt { animation: map-flow-20 2s linear infinite; }
.netmap .edge.e-intro-open { animation: map-flow-14 2.4s linear infinite; }
.netmap .node.selected .halo, .netmap .node.is-focus .halo { stroke-dasharray: 4 3; animation: map-flow-14 1.6s linear infinite; }
.netmap .node .label, .netmap .badge { transition: opacity 450ms ease; }
.netmap.entering .label, .netmap.entering .badge, .netmap.entering .ping { opacity: 0; }
.netmap.still .ping { display: none; }
.netmap.still .edge, .netmap.still .node .halo { animation: none; }
/* Until the script has drawn its first frame, hide people and links so a re-rendered map never
   flashes in its final layout. Without JavaScript they appear after a moment anyway. */
@keyframes map-reveal { to { opacity: 1; } }
.netmap:not([data-ready]) .nodes, .netmap:not([data-ready]) .edges { opacity: 0; animation: map-reveal 0.01s linear 1.2s forwards; }
[data-map-motion] .i-play { display: none; }
[data-map-motion].paused .i-play { display: inline-flex; }
[data-map-motion].paused .i-pause { display: none; }
[data-map-motion] span { display: inline-flex; }
@media (prefers-reduced-motion: reduce) {
  .netmap .ping { display: none; }
  .netmap .edge, .netmap .node .halo { animation: none !important; }
}

/* ---------- appearance comparison ---------- */
.appearance-summary { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 16px; font-size: 12px; }
.appearance-status { margin: 0; color: var(--ink-soft); }
.appearance-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.appearance-option { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.appearance-option-head { padding: 20px 22px 18px; }
.appearance-option-head h2 { margin: 0 0 5px; font-size: 18px; font-weight: 650; letter-spacing: -0.02em; }
.appearance-option-head p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.appearance-option-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 16px 20px; font-size: 11px; }
[data-theme-choice][aria-pressed="true"] { color: var(--accent-strong); background: var(--accent-soft); border-color: var(--accent); }
[data-theme-choice][aria-pressed="true"]::before { content: "✓"; }
.appearance-light { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius-md); }
.appearance-light h2 { margin: 0 0 5px; font-size: 14px; }
.appearance-light p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.appearance-links { margin-top: 20px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.appearance-links a { text-underline-offset: 3px; }

.theme-preview { display: grid; grid-template-columns: 100px minmax(0, 1fr); min-height: 345px; color: var(--ink); background: var(--canvas); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--font-body); }
.theme-preview-sidebar { display: flex; flex-direction: column; gap: 6px; padding: 18px 10px; background: var(--sidebar); border-right: 1px solid var(--line); }
.theme-preview-brand { display: flex; align-items: center; gap: 6px; margin: 0 3px 21px; color: var(--brand-bronze); font-size: 10px; letter-spacing: 0.1em; }
.theme-preview-brand b { color: var(--brand-ink); }
.theme-preview-brand .brand-mark { width: 20px; height: 20px; }
.theme-preview-nav { display: flex; align-items: center; gap: 7px; padding: 8px 6px; border-radius: 5px; color: var(--muted); font-size: 9px; }
.theme-preview-nav .icon { width: 13px; height: 13px; }
.theme-preview-nav.is-active { color: var(--accent-strong); background: var(--accent-soft); }
.theme-preview-sidebar-foot { margin-top: auto; padding: 20px 6px 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.theme-preview-main { min-width: 0; padding: 20px 18px; }
.theme-preview-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--muted); font-size: 8px; letter-spacing: 0.06em; }
.theme-preview-heading > span:first-child { color: var(--accent-strong); font-weight: 700; letter-spacing: 0.1em; }
.theme-preview-main h3 { margin: 0 0 5px; font-family: var(--font-display); font-size: 23px; font-weight: 400; letter-spacing: -0.025em; }
.theme-preview-intro { margin: 0 0 18px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.theme-preview-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.theme-preview-stats > div { padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.theme-preview-stats strong, .theme-preview-stats span { display: block; }
.theme-preview-stats strong { margin-bottom: 5px; color: var(--ink); font-family: var(--font-display); font-size: 23px; font-weight: 400; line-height: 1; }
.theme-preview-stats span { color: var(--muted); font-size: 9px; line-height: 1.4; }
.theme-preview-panel { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.theme-preview-panel-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 5px; padding: 12px; border-bottom: 1px solid var(--line); }
.theme-preview-panel-head strong { font-size: 10px; font-weight: 650; }
.theme-preview-panel-head > span { color: var(--muted); font-size: 8px; }
.theme-preview-person { display: flex; align-items: center; gap: 8px; padding: 11px 12px; }
.theme-preview-person + .theme-preview-person { border-top: 1px solid var(--line); }
.theme-preview-avatar { display: grid; flex: none; place-items: center; width: 25px; height: 25px; color: var(--accent-strong); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 7px; font-size: 8px; font-weight: 700; }
.theme-preview-person > div { min-width: 0; }
.theme-preview-person strong { display: block; margin-bottom: 3px; font-size: 10px; font-weight: 650; }
.theme-preview-person div > span { display: block; color: var(--muted); font-size: 8px; line-height: 1.4; }
.theme-preview-dot { flex: none; width: 5px; height: 5px; margin-left: auto; background: var(--lime-dark); border-radius: 50%; }
.theme-preview-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 15px; }
.theme-preview-note { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 8px; }
.theme-preview-note .icon { width: 11px; height: 11px; }
.theme-preview-action { padding: 8px 10px; color: var(--on-accent); background: var(--accent); border-radius: 5px; font-size: 9px; font-weight: 700; }

@media (max-width: 1700px) {
  .theme-preview { grid-template-columns: 45px minmax(0, 1fr); }
  .theme-preview-sidebar { align-items: center; padding: 18px 5px; }
  .theme-preview-brand { margin: 0 0 21px; }
  .theme-preview-brand b, .theme-preview-nav > span, .theme-preview-sidebar-foot { display: none; }
  .theme-preview-nav { padding: 9px; }
  .theme-preview-main { padding: 18px 14px; }
}
@media (max-width: 800px) {
  .appearance-comparison { grid-template-columns: minmax(0, 1fr); }
}
