:root {
  --ink: #111517;
  --paper: #f2f4ef;
  --panel: #ffffff;
  --line: #d7dcd6;
  --line-strong: #b9c1bb;
  --muted: #657069;
  --soft: #e7ebe5;
  --blue: #3454d1;
  --blue-soft: #e9edff;
  --lime: #c7f36b;
  --lime-soft: #effbd9;
  --coral: #ff6b57;
  --coral-soft: #fff0ed;
  --amber: #f5b83b;
  --cyan: #6bd6db;
  --sidebar: 242px;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Noto Sans SC", sans-serif; letter-spacing: 0; }
button, input, textarea, select { color: inherit; font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(52,84,209,.25); outline-offset: 2px; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; width: var(--sidebar); display: flex; flex-direction: column; padding: 19px 14px 14px; color: #e9eeeb; background: var(--ink); border-right: 1px solid #252b28; }
.app-brand { display: flex; align-items: center; gap: 11px; min-height: 40px; padding: 0 8px; }
.app-brand > span:last-child { display: grid; line-height: 1; }
.app-brand b { font-size: 17px; }
.app-brand small { margin-top: 5px; color: #89938d; font-family: "IBM Plex Mono", monospace; font-size: 8px; }
.app-mark { position: relative; width: 31px; height: 31px; }
.app-mark i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.app-mark i:nth-child(1) { left: 0; top: 13px; background: var(--coral); }
.app-mark i:nth-child(2) { left: 9px; top: 3px; background: var(--blue); }
.app-mark i:nth-child(3) { left: 14px; top: 13px; }
.app-mark i:nth-child(4) { right: 0; top: 6px; background: var(--amber); }
.app-mark i:nth-child(5) { right: 2px; bottom: 2px; background: var(--cyan); }
.app-mark::before, .app-mark::after { content: ""; position: absolute; left: 5px; top: 16px; width: 20px; height: 1px; background: #66716a; transform: rotate(-25deg); }
.app-mark::after { left: 13px; width: 18px; transform: rotate(38deg); }
.event-switch { margin: 20px 2px 17px; padding: 13px; border: 1px solid #303733; border-radius: 5px; background: #181d1b; }
.event-switch > span { display: flex; align-items: center; gap: 6px; color: #7f8a83; font-size: 10px; }
.event-switch b { display: block; margin: 8px 0 5px; font-size: 12px; line-height: 1.5; }
.event-switch small { color: #77827b; font-family: "IBM Plex Mono", monospace; font-size: 9px; }
.sidebar nav { display: grid; gap: 10px; }
.sidebar nav section > p { margin: 0 9px 6px; color: #606a64; font-family: "IBM Plex Mono", monospace; font-size: 9px; text-transform: uppercase; }
.sidebar nav button { position: relative; width: 100%; display: flex; align-items: center; gap: 11px; min-height: 40px; padding: 0 11px; color: #9da6a1; background: transparent; border-radius: 4px; cursor: pointer; text-align: left; font-size: 12px; }
.sidebar nav button:hover { color: #fff; background: #202623; }
.sidebar nav button.is-active { color: var(--ink); background: var(--lime); font-weight: 700; }
.sidebar nav button > i { margin-left: auto; width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--coral); font-family: "IBM Plex Mono", monospace; font-size: 9px; font-style: normal; }
.sidebar-proof { margin-top: auto; padding: 13px; border: 1px solid #343b37; border-radius: 5px; }
.sidebar-proof p { margin: 9px 0; color: #9da7a1; font-size: 10px; line-height: 1.55; }
.sidebar-proof button { display: inline-flex; align-items: center; gap: 5px; padding: 0; color: #dce2de; background: transparent; cursor: pointer; font-size: 10px; }
.sidebar-user { display: flex; align-items: center; gap: 9px; min-height: 48px; margin-top: 10px; padding: 0 5px; }
.sidebar-user > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--coral); font-size: 11px; font-weight: 700; }
.sidebar-user > div { min-width: 0; display: grid; flex: 1; }
.sidebar-user b { font-size: 11px; }
.sidebar-user small { overflow: hidden; color: #6e7972; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }

.main-shell { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { position: sticky; z-index: 12; top: 0; height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; background: rgba(242,244,239,.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar > div { display: flex; align-items: center; gap: 10px; }
.topbar > div:first-child > span:last-child { color: var(--muted); font-size: 11px; }
.topbar > div:last-child > button:first-child { width: 252px; display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 10px; color: #8a948e; background: #fff; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; font-size: 10px; text-align: left; }
.topbar kbd { margin-left: auto; padding: 2px 5px; border: 1px solid var(--line); border-radius: 3px; font-family: "IBM Plex Mono", monospace; font-size: 8px; }
.topbar a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.demo-guide-trigger { min-height: 26px; display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; color: var(--blue); background: var(--blue-soft); border: 1px solid #cbd3ff; border-radius: 3px; cursor: pointer; font-size: 10px; font-weight: 700; }
.demo-guide-trigger b { min-width: 24px; font-family: "IBM Plex Mono", monospace; font-size: 10px; }
.demo-guide-trigger.is-complete { color: #476d0d; background: var(--lime-soft); border-color: #d2e9a5; }
.notification-trigger { position: relative; display: inline-grid; place-items: center; }
.notification-trigger > i { position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; border: 2px solid var(--paper); border-radius: 50%; background: var(--coral); pointer-events: none; }
.app-main { width: 100%; }
.page { width: min(1380px, 100%); min-height: calc(100vh - 58px); margin: 0 auto; padding: 30px 30px 60px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 14px; border: 1px solid transparent; border-radius: 4px; cursor: pointer; font-size: 11px; font-weight: 700; white-space: nowrap; }
.button.primary { color: #fff; background: var(--blue); }
.button.primary:hover { background: #243fb8; }
.button.secondary { color: var(--ink); background: #fff; border-color: var(--line-strong); }
.button.secondary:hover { border-color: var(--blue); color: var(--blue); }
.button.ghost { color: var(--muted); background: transparent; }
.button.danger { color: #b73525; background: var(--coral-soft); border-color: #ffc8c0; }
.button:disabled { opacity: .45; cursor: not-allowed; }
.icon-button { width: 34px; height: 34px; display: inline-grid; place-items: center; padding: 0; color: inherit; background: transparent; border-radius: 4px; cursor: pointer; }
.icon-button:hover { background: rgba(127,140,132,.12); }
.badge { width: max-content; display: inline-flex; align-items: center; gap: 5px; min-height: 22px; padding: 0 7px; border: 1px solid var(--line); border-radius: 3px; color: #5f6a64; background: #f8faf7; font-family: "IBM Plex Mono", "Noto Sans SC", monospace; font-size: 9px; font-weight: 600; white-space: nowrap; }
.badge.lime { color: #385a00; background: var(--lime-soft); border-color: #cfe9a2; }
.badge.blue { color: #253b9f; background: var(--blue-soft); border-color: #cbd3ff; }
.badge.coral { color: #a53222; background: var(--coral-soft); border-color: #ffc3ba; }
.badge.neutral { color: #606b64; background: #f3f5f2; }
.meter { width: 100%; height: 4px; overflow: hidden; background: #e1e5e0; border-radius: 2px; }
.meter i { display: block; height: 100%; background: var(--blue); }
.meter.lime i { background: #77a725; }
.meter.coral i { background: var(--coral); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.panel > header { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 68px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.panel > header h2 { margin: 0; font-size: 15px; }
.panel > header p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.panel > header > button { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); background: transparent; cursor: pointer; font-size: 10px; }
.panel-filter { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.panel-filter select { max-width: 128px; min-height: 30px; padding: 0 24px 0 7px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 3px; cursor: pointer; font-size: 9px; }

.page-header { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 24px; align-items: center; min-height: 118px; margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line-strong); }
.page-header > div:first-child > p { margin: 0 0 8px; color: var(--blue); font-family: "IBM Plex Mono", monospace; font-size: 9px; font-weight: 600; }
.page-header h1 { margin: 0; font-size: 27px; line-height: 1.32; }
.page-header > div:first-child > span { display: block; max-width: 780px; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.page-actions { display: flex; gap: 8px; }
.page-header > aside { min-width: 115px; padding-left: 22px; border-left: 1px solid var(--line); }
.header-stat { display: grid; }
.header-stat span { color: var(--muted); font-size: 9px; }
.header-stat b { margin: 2px 0; color: var(--blue); font-family: "Space Grotesk", sans-serif; font-size: 31px; }
.header-stat.coral b { color: var(--coral); }
.header-stat small { color: var(--muted); font-size: 9px; }

.north-star { display: grid; grid-template-columns: 1.1fr 1.7fr; min-height: 185px; margin-bottom: 18px; color: #fff; background: var(--ink); border-radius: 6px; overflow: hidden; }
.north-copy { padding: 25px 28px; border-right: 1px solid #343b37; }
.north-copy h2 { margin: 15px 0 7px; font-size: 17px; font-weight: 500; }
.north-copy h2 b { margin: 0 6px; color: var(--lime); font-family: "Space Grotesk", sans-serif; font-size: 36px; }
.north-copy p { margin: 0 0 17px; color: #9ba49e; font-size: 10px; }
.north-copy .meter { background: #333a36; }
.north-metrics { display: grid; grid-template-columns: repeat(3, 1fr); }
.north-metrics > div { display: flex; flex-direction: column; justify-content: center; padding: 25px; border-right: 1px solid #343b37; }
.north-metrics > div:last-child { border-right: 0; }
.north-metrics span { color: #8f9993; font-size: 10px; }
.north-metrics b { margin: 10px 0 4px; font-family: "Space Grotesk", sans-serif; font-size: 31px; }
.north-metrics small { color: #737d77; font-size: 9px; }
.dashboard-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; }
.funnel-chart { display: grid; gap: 8px; padding: 18px; }
.funnel-chart > div { width: var(--width); min-width: 45%; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 15px; min-height: 34px; padding: 0 11px; background: #edf0ec; border-left: 3px solid var(--blue); }
.funnel-chart > div:nth-child(5), .funnel-chart > div:nth-child(6) { border-left-color: var(--coral); }
.funnel-chart span { font-size: 10px; }
.funnel-chart b { font-family: "IBM Plex Mono", monospace; font-size: 12px; }
.funnel-chart small { color: var(--muted); font-size: 9px; }
.action-panel > button { width: 100%; display: grid; grid-template-columns: 35px minmax(0, 1fr) 20px; align-items: center; gap: 11px; min-height: 96px; padding: 13px 18px; text-align: left; background: transparent; border-bottom: 1px solid var(--line); cursor: pointer; }
.action-panel > button:last-child { border-bottom: 0; }
.action-panel > button:hover { background: #f7f8f6; }
.action-panel h3 { margin: 6px 0 3px; font-size: 12px; }
.action-panel p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.action-index { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-family: "IBM Plex Mono", monospace; font-size: 9px; background: var(--soft); }
.action-index.urgent { background: var(--coral-soft); color: #b43626; }
.action-index.blue { background: var(--blue-soft); color: var(--blue); }
.action-index.lime { background: var(--lime-soft); color: #507800; }
.workflow-board { margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.workflow-board > header { display: grid; grid-template-columns: 1fr minmax(360px, .8fr); align-items: center; gap: 20px; min-height: 76px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.workflow-board h2 { margin: 0; font-size: 15px; }
.workflow-board header p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.workflow-items > button { width: 100%; display: grid; grid-template-columns: 38px minmax(150px, 1.1fr) minmax(160px, 1fr) 70px; gap: 13px; align-items: center; min-height: 71px; padding: 11px 18px; text-align: left; background: transparent; border-bottom: 1px solid var(--line); cursor: pointer; }
.workflow-items > button:last-child { border-bottom: 0; }
.workflow-items > button:hover { background: #f7f8f6; }
.workflow-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 4px; }
.workflow-icon.lime { background: var(--lime-soft); color: #5b820d; }
.workflow-icon.blue { background: var(--blue-soft); color: var(--blue); }
.workflow-icon.coral { background: var(--coral-soft); color: #c64231; }
.workflow-items button > div:nth-child(2) { min-width: 0; display: grid; }
.workflow-items b { font-size: 11px; }
.workflow-items small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.evidence-path { display: grid; grid-template-columns: repeat(5, 1fr); }
.evidence-path > div { position: relative; display: grid; justify-items: center; gap: 5px; color: #8d9791; }
.evidence-path > div::before { content: ""; position: absolute; top: 10px; right: 50%; left: -50%; height: 1px; background: var(--line-strong); }
.evidence-path > div:first-child::before { display: none; }
.evidence-path span { z-index: 1; width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: #fff; font-family: "IBM Plex Mono", monospace; font-size: 8px; }
.evidence-path b { font-size: 9px; }
.evidence-path .is-done, .evidence-path .is-current { color: var(--blue); }
.evidence-path .is-done::before, .evidence-path .is-current::before { background: var(--blue); }
.evidence-path .is-done span, .evidence-path .is-current span { color: #fff; border-color: var(--blue); background: var(--blue); }
.evidence-path.compact span { width: 18px; height: 18px; }
.evidence-path.compact > div::before { top: 9px; }

.running-banner { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; min-height: 68px; margin-bottom: 16px; padding: 10px 16px; background: var(--lime-soft); border: 1px solid #cfeaa0; border-radius: 5px; }
.running-banner > span { position: relative; width: 34px; height: 34px; display: grid; place-items: center; color: #4f720e; }
.running-banner > span i { position: absolute; inset: 0; border: 1px solid #8bb441; border-radius: 50%; animation: ping 1.8s ease infinite; }
@keyframes ping { 70%, 100% { transform: scale(1.3); opacity: 0; } }
.running-banner b { font-size: 11px; }
.running-banner p { margin: 4px 0 0; color: #5c6c40; font-size: 9px; }
.invite-layout { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(520px, 1.28fr); gap: 18px; }
.segment-list > button, .match-list > button, .update-list > button { width: 100%; display: block; padding: 15px 17px; text-align: left; background: transparent; border-bottom: 1px solid var(--line); cursor: pointer; }
.segment-list > button:last-child, .match-list > button:last-child, .update-list > button:last-child { border-bottom: 0; }
.segment-list > button:hover, .segment-list > button.is-selected, .match-list > button:hover, .match-list > button.is-selected, .update-list > button:hover, .update-list > button.is-selected { background: #f5f7f4; box-shadow: inset 3px 0 0 var(--blue); }
.segment-list button > header { display: flex; justify-content: space-between; align-items: center; }
.segment-list h3 { margin: 13px 0 5px; font-size: 13px; }
.segment-list button > p { margin: 0 0 11px; color: var(--muted); font-size: 9px; }
.segment-detail > header { min-height: 110px; }
.segment-detail > header h2 { margin: 11px 0 5px; font-size: 19px; }
.score-orbit, .match-score { min-width: 78px; display: grid; justify-items: center; }
.score-orbit b, .match-score b { color: var(--blue); font-family: "Space Grotesk", sans-serif; font-size: 34px; }
.score-orbit span, .match-score span { color: var(--muted); font-size: 8px; }
.reason-section { padding: 19px; }
.reason-section > h3 { margin: 0; font-size: 13px; }
.reason-section > p { margin: 5px 0 13px; color: var(--muted); font-size: 9px; }
.reason-section article { display: grid; grid-template-columns: 27px 1fr auto; gap: 10px; align-items: center; min-height: 58px; border-top: 1px solid var(--line); }
.reason-section article > span { font-family: "IBM Plex Mono", monospace; font-size: 9px; color: var(--blue); }
.reason-section article > div { display: grid; }
.reason-section article b { font-size: 10px; }
.reason-section article small { color: var(--muted); font-size: 8px; }
.risk-note, .caveat { display: grid; grid-template-columns: 24px 1fr; gap: 10px; margin: 0 19px; padding: 13px; color: #8f3327; background: var(--coral-soft); border-left: 3px solid var(--coral); }
.risk-note b, .caveat b { font-size: 10px; }
.risk-note p, .caveat p { margin: 3px 0 0; font-size: 9px; line-height: 1.55; }
.detail-actions { display: flex; gap: 8px; padding: 18px 19px; }
.invite-funnel { margin-top: 18px; }
.channel-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.channel-grid > div { display: grid; min-height: 105px; padding: 20px; border-right: 1px solid var(--line); }
.channel-grid > div:last-child { border-right: 0; }
.channel-grid span { color: var(--muted); font-size: 9px; }
.channel-grid b { margin: 7px 0; color: var(--blue); font-family: "Space Grotesk", sans-serif; font-size: 25px; }
.channel-grid small { color: #87918b; font-size: 8px; }

.match-search { padding: 17px; margin-bottom: 18px; background: var(--ink); border-radius: 6px; }
.match-search > div { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; color: #fff; }
.match-search textarea { width: 100%; resize: none; padding: 9px 12px; color: #fff; background: #202623; border: 1px solid #3a433e; border-radius: 4px; font-size: 12px; line-height: 1.55; }
.match-search > p { display: flex; align-items: center; gap: 7px; margin: 10px 0 0 34px; color: #87918b; font-size: 9px; }
.match-search > p button { padding: 4px 7px; color: #aeb7b1; background: transparent; border: 1px solid #3b443f; border-radius: 3px; cursor: pointer; font-size: 8px; }
.search-trace { max-width: 820px; margin: 0 auto 18px; }
.match-layout { display: grid; grid-template-columns: minmax(300px, .72fr) minmax(520px, 1.28fr); gap: 18px; }
.match-list > button > header { display: flex; justify-content: space-between; }
.match-list > button header div { display: grid; }
.match-list > button header b { font-size: 12px; }
.match-list > button header small { color: var(--muted); font-size: 8px; }
.match-list > button header > span { color: var(--blue); font-family: "Space Grotesk", sans-serif; font-size: 24px; }
.match-list > button > p { margin: 10px 0; font-size: 10px; line-height: 1.55; }
.match-list > button > footer { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 8px; }
.match-detail > header { min-height: 130px; }
.match-detail > header > div:first-child { max-width: 75%; }
.match-detail > header h2 { margin: 10px 0 6px; font-size: 20px; }
.match-detail > header p { font-size: 10px; line-height: 1.55; }
.match-detail > .evidence-path { margin: 16px 22px; }
.match-reasons { padding: 4px 19px 10px; }
.match-reasons > header { display: flex; justify-content: space-between; align-items: center; }
.match-reasons h3 { font-size: 12px; }
.match-reasons article { display: grid; grid-template-columns: 24px 1fr 18px; gap: 9px; align-items: center; min-height: 58px; border-top: 1px solid var(--line); }
.match-reasons article > span { width: 20px; height: 20px; display: grid; place-items: center; color: #fff; background: var(--blue); border-radius: 50%; font-size: 8px; }
.match-reasons article div { display: grid; }
.match-reasons article b { font-size: 10px; }
.match-reasons article small { color: var(--muted); font-size: 8px; }
.source-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 13px 19px 0; }
.source-chips button { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; color: #56615a; background: #f3f5f2; border: 1px solid var(--line); border-radius: 3px; cursor: pointer; font-size: 8px; }
.empty-state { min-height: 390px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); text-align: center; }
.empty-state h3 { margin: 12px 0 5px; color: var(--ink); font-size: 15px; }
.empty-state p { max-width: 450px; margin: 0 0 18px; font-size: 10px; line-height: 1.6; }

.question-card { margin-bottom: 18px; padding: 20px 23px; background: var(--ink); border-radius: 6px; color: #fff; }
.question-card > header { display: flex; justify-content: space-between; }
.question-card > header > div { display: flex; align-items: center; gap: 9px; color: #87918b; font-size: 9px; }
.question-card h2 { max-width: 1000px; margin: 20px 0 24px; font-size: 20px; line-height: 1.55; }
.question-card > footer { display: grid; grid-template-columns: minmax(420px, .65fr) 1fr; align-items: end; gap: 30px; }
.question-card .evidence-path span { color: var(--ink); }
.question-card .evidence-path b { color: #aab3ad; }
.question-card .evidence-path > div::before { background: #3f4943; }
.question-card footer > p { justify-self: end; margin: 0; color: #6f7a73; font-size: 8px; }
.audit-strip { display: grid; grid-template-columns: .75fr 1.25fr 1fr auto; align-items: stretch; min-height: 88px; margin: -6px 0 18px; overflow: hidden; }
.audit-strip > div:not(.audit-actions) { display: grid; align-content: center; gap: 4px; padding: 13px 16px; border-right: 1px solid var(--line); }
.audit-strip span { color: var(--muted); font-size: 8px; }
.audit-strip b { overflow: hidden; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.audit-strip small { overflow: hidden; color: #7c8780; font-size: 8px; white-space: nowrap; text-overflow: ellipsis; }
.audit-actions { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #f7f8f6; }
.evidence-layout { display: grid; grid-template-columns: minmax(310px, .75fr) minmax(540px, 1.25fr); gap: 18px; align-items: start; }
.source-card { width: 100%; display: block; padding: 15px 17px; text-align: left; background: transparent; border-bottom: 1px solid var(--line); cursor: pointer; }
.source-card:last-child { border-bottom: 0; }
.source-card:hover { background: #f7f8f6; }
.source-card.conflict { box-shadow: inset 3px 0 0 var(--coral); background: var(--coral-soft); }
.source-card.conflict.is-resolved { box-shadow: inset 3px 0 0 #86b836; background: var(--lime-soft); }
.source-card > header { display: flex; align-items: center; gap: 8px; }
.source-card > header > span { color: var(--blue); font-family: "IBM Plex Mono", monospace; font-size: 9px; }
.source-card > header > b { margin-left: auto; font-family: "Space Grotesk", sans-serif; font-size: 16px; }
.source-card h3 { margin: 12px 0 7px; font-size: 11px; line-height: 1.5; }
.source-card > p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.source-card > footer { display: flex; justify-content: space-between; align-items: center; margin-top: 11px; color: #89938d; font-size: 8px; }
.claim-workbench { overflow: hidden; }
.claim-card { padding: 17px 19px; border-bottom: 1px solid var(--line); }
.claim-card.conflict { background: var(--coral-soft); }
.claim-card.is-resolved { background: var(--lime-soft); }
.claim-card > header { display: flex; justify-content: space-between; }
.claim-card > header > div { display: flex; align-items: center; gap: 8px; }
.claim-card > header span { color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: 8px; }
.claim-card > header > b { color: var(--blue); font-family: "Space Grotesk", sans-serif; font-size: 17px; }
.claim-card h3 { margin: 12px 0; font-size: 12px; line-height: 1.6; }
.claim-links { display: flex; gap: 5px; }
.claim-links button { display: inline-flex; align-items: center; gap: 3px; padding: 4px 6px; color: var(--blue); background: var(--blue-soft); border-radius: 3px; cursor: pointer; font-family: "IBM Plex Mono", monospace; font-size: 8px; }
.claim-card > footer { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; padding-top: 12px; border-top: 1px solid #ffc5bc; }
.claim-card footer > span { display: inline-flex; align-items: center; gap: 5px; color: #a83a2b; font-size: 9px; }
.claim-card .resolved-note { border-color: #cde89b; }
.claim-card .resolved-note span { color: #527a0b; }
.claim-card .resolved-note button { color: #527a0b; background: transparent; cursor: pointer; font-size: 8px; }
.assumptions { padding: 17px 19px; }
.assumptions > header { display: flex; justify-content: space-between; }
.assumptions h3 { margin: 0; font-size: 12px; }
.assumptions header p { margin: 4px 0 12px; color: var(--muted); font-size: 9px; }
.assumptions label { display: flex; gap: 10px; align-items: flex-start; min-height: 42px; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.assumptions input { margin-top: 2px; accent-color: var(--blue); }
.assumptions label span { font-size: 9px; line-height: 1.55; }
.assumptions label b { margin-right: 8px; color: var(--blue); font-family: "IBM Plex Mono", monospace; }
.assumptions > .button { margin-top: 12px; }
.proof-output { margin-top: 18px; }
.proof-output-grid { display: grid; grid-template-columns: 1.45fr .55fr .75fr; }
.proof-output-grid > section { min-height: 170px; padding: 19px; border-right: 1px solid var(--line); }
.proof-output-grid > section:last-child { border-right: 0; }
.proof-output-grid span { color: var(--muted); font-size: 9px; }
.proof-output-grid h3 { margin: 13px 0 8px; font-size: 14px; line-height: 1.55; }
.proof-output-grid p { color: var(--muted); font-size: 9px; line-height: 1.6; }
.proof-output-grid section > b { display: block; margin: 18px 0 10px; color: var(--blue); font-family: "Space Grotesk", sans-serif; font-size: 34px; }
.proof-output-grid ul { padding-left: 15px; margin: 14px 0; font-size: 9px; line-height: 2; }
.proof-output > footer { display: flex; gap: 20px; padding: 12px 19px; background: #f5f7f4; border-top: 1px solid var(--line); }
.proof-output > footer span { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 8px; }

.impact-layout { display: grid; grid-template-columns: minmax(290px, .7fr) minmax(540px, 1.3fr); gap: 18px; }
.update-list > button > header { display: flex; justify-content: space-between; align-items: center; }
.update-list h3 { margin: 11px 0 5px; font-size: 11px; }
.update-list > button > p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.update-list > button > footer { display: flex; justify-content: space-between; margin-top: 11px; color: var(--muted); font-size: 8px; }
.impact-map > header { min-height: 115px; }
.impact-map > header > div { max-width: 85%; }
.impact-map > header h2 { margin: 9px 0 5px; font-size: 17px; }
.impact-map > header p { font-size: 9px; line-height: 1.55; }
.dependency-map { display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; gap: 18px; padding: 31px 22px; background: #f7f8f6; border-bottom: 1px solid var(--line); }
.dependency-map > div { position: relative; display: grid; justify-items: center; gap: 5px; text-align: center; }
.dependency-map > div > span { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: var(--blue); border-radius: 50%; font-family: "IBM Plex Mono", monospace; font-size: 9px; }
.dependency-map > .affected > span { background: var(--coral); }
.dependency-map > div > b { font-size: 9px; }
.dependency-map > div > small { color: var(--coral); font-size: 8px; }
.dependency-map > i { position: absolute; display: none; }
.dependency-map > div:not(:last-child)::after { content: "→"; position: absolute; left: calc(100% + 7px); top: 10px; color: #9ba59f; font-size: 18px; }
.review-queue { padding: 18px 20px; }
.review-queue > header { display: flex; justify-content: space-between; }
.review-queue h3 { margin: 0 0 11px; font-size: 12px; }
.review-queue article { display: grid; grid-template-columns: 30px 1fr auto; gap: 11px; align-items: center; min-height: 65px; border-top: 1px solid var(--line); }
.review-queue article > div { display: grid; }
.review-queue article b { font-size: 10px; }
.review-queue article p { margin: 4px 0 0; color: var(--muted); font-size: 8px; }
.priority { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-family: "IBM Plex Mono", monospace; font-size: 8px; }
.priority.high { color: #a73526; background: var(--coral-soft); }
.priority.medium { color: #3454d1; background: var(--blue-soft); }
.impact-actions { display: flex; gap: 8px; padding: 0 20px 20px; }

.modal-layer { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(6,9,10,.66); backdrop-filter: blur(6px); }
.modal { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: 6px; box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.modal.wide { width: min(840px, 100%); }
.modal > header { position: sticky; z-index: 2; top: 0; display: flex; justify-content: space-between; gap: 15px; min-height: 76px; padding: 17px 19px; background: #fff; border-bottom: 1px solid var(--line); }
.modal > header h2 { margin: 0; font-size: 16px; }
.modal > header p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.modal-body { padding: 19px; }
.modal > footer { position: sticky; z-index: 2; bottom: 0; display: flex; justify-content: flex-end; gap: 8px; min-height: 66px; align-items: center; padding: 12px 19px; background: #f7f8f6; border-top: 1px solid var(--line); }
.ai-trace { padding: 3px; }
.ai-trace > header { display: flex; align-items: center; gap: 9px; padding: 12px 0 17px; border-bottom: 1px solid var(--line); }
.ai-trace > header b { font-size: 11px; }
.ai-trace > header small { margin-left: auto; color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: 9px; }
.trace-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px var(--lime-soft); }
.ai-trace ol { padding: 0; margin: 0; list-style: none; }
.ai-trace li { display: grid; grid-template-columns: 23px 1fr auto; align-items: center; gap: 9px; min-height: 46px; color: #9aa39e; border-bottom: 1px solid #edf0ec; }
.ai-trace li > span { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-family: "IBM Plex Mono", monospace; font-size: 8px; }
.ai-trace li p { margin: 0; font-size: 10px; }
.ai-trace li.is-done, .ai-trace li.is-running { color: var(--ink); }
.ai-trace li.is-done span { color: #fff; border-color: var(--blue); background: var(--blue); }
.ai-trace li.is-running span { border-color: var(--coral); color: var(--coral); }
.ai-trace li.is-running i { width: 44px; height: 3px; overflow: hidden; background: var(--soft); }
.ai-trace li.is-running i::after { content: ""; display: block; width: 55%; height: 100%; background: var(--coral); animation: load 1s ease infinite alternate; }
@keyframes load { to { transform: translateX(80%); } }
.campaign-review { display: grid; grid-template-columns: .72fr 1.28fr; gap: 17px; }
.campaign-review > section { border: 1px solid var(--line); }
.campaign-review > section > header { display: flex; justify-content: space-between; align-items: center; padding: 12px; border-bottom: 1px solid var(--line); }
.campaign-review h3 { margin: 0; font-size: 11px; }
.campaign-review dl { margin: 0; }
.campaign-review dl > div { display: grid; grid-template-columns: 80px 1fr; min-height: 43px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 9px; }
.campaign-review dl > div:last-child { border-bottom: 0; }
.campaign-review dt { color: var(--muted); }
.campaign-review dd { margin: 0; }
.draft-field { display: grid; gap: 7px; }
.draft-field > span { font-size: 10px; font-weight: 700; }
.draft-field textarea { width: 100%; resize: vertical; padding: 11px; border: 1px solid var(--line-strong); border-radius: 4px; font-size: 10px; line-height: 1.65; }
.draft-field small { color: var(--muted); font-size: 8px; }
.consent-row { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 9px; padding: 12px; background: #f4f6f3; border: 1px solid var(--line); cursor: pointer; }
.consent-row input { margin-top: 2px; accent-color: var(--blue); }
.consent-row span { display: grid; }
.consent-row b { font-size: 9px; }
.consent-row small { color: var(--muted); font-size: 8px; }
.meeting-summary { padding: 13px; margin-bottom: 12px; background: var(--lime-soft); border-left: 3px solid #8abf31; }
.meeting-summary p { margin: 8px 0 0; font-size: 9px; line-height: 1.55; }
.slot-list { display: grid; gap: 7px; margin-bottom: 13px; }
.slot-list button { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; min-height: 48px; padding: 0 11px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
.slot-list button.is-selected { border-color: var(--blue); box-shadow: inset 3px 0 0 var(--blue); }
.slot-list button span { font-size: 10px; }
.slot-list button small { color: var(--muted); font-size: 8px; }
.source-detail { display: grid; grid-template-columns: .68fr 1.32fr; gap: 17px; }
.source-detail aside { border: 1px solid var(--line); }
.source-detail aside > div { display: grid; min-height: 53px; padding: 9px 11px; border-bottom: 1px solid var(--line); }
.source-detail aside > div:last-child { border-bottom: 0; }
.source-detail aside span { color: var(--muted); font-size: 8px; }
.source-detail aside b { font-size: 10px; }
.source-detail blockquote { margin: 13px 0; padding: 18px; background: #f5f7f4; border-left: 3px solid var(--blue); font-size: 12px; line-height: 1.8; }
.source-detail section > p { display: flex; gap: 5px; color: var(--muted); font-size: 8px; }
.classification { display: flex; align-items: center; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.classification span { margin-right: auto; color: var(--muted); font-size: 8px; }
.classification button { padding: 5px 8px; background: #fff; border: 1px solid var(--line); border-radius: 3px; cursor: pointer; font-size: 8px; }
.classification button.is-active { color: var(--blue); border-color: var(--blue); background: var(--blue-soft); }
.audit-timeline { display: grid; }
.audit-timeline article { display: grid; grid-template-columns: 32px 1fr; gap: 10px; min-height: 88px; }
.audit-timeline article > span { position: relative; width: 28px; height: 28px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border: 1px solid #ccd4ff; border-radius: 50%; }
.audit-timeline article:not(:last-child) > span::after { content: ""; position: absolute; top: 28px; bottom: -60px; left: 13px; width: 1px; background: var(--line); }
.audit-timeline article > div { padding: 3px 0 17px; }
.audit-timeline header { display: flex; justify-content: space-between; gap: 12px; }
.audit-timeline b { font-size: 10px; }
.audit-timeline time { color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: 8px; }
.audit-timeline p { margin: 6px 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.audit-timeline small { color: #7b857f; font-size: 8px; }
.conflict-review { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.conflict-review > section { padding: 14px; border: 1px solid var(--line); }
.conflict-review > section > header { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 8px; }
.conflict-review > section h3 { margin: 11px 0 6px; font-size: 11px; line-height: 1.5; }
.conflict-review > section p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.resolution-options { grid-column: 1 / -1; padding-top: 8px; }
.resolution-options h3 { font-size: 11px; }
.resolution-options label { display: flex; gap: 9px; min-height: 54px; padding: 10px; margin-top: 7px; background: #f7f8f6; border: 1px solid var(--line); cursor: pointer; }
.resolution-options input { accent-color: var(--blue); }
.resolution-options label span { display: grid; }
.resolution-options label b { font-size: 9px; }
.resolution-options label small { color: var(--muted); font-size: 8px; }
.toast { position: fixed; z-index: 150; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 9px; max-width: 380px; min-height: 46px; padding: 0 14px; color: #fff; background: var(--ink); border: 1px solid #333b37; border-radius: 5px; box-shadow: 0 10px 30px rgba(0,0,0,.2); font-size: 10px; }
.toast svg { color: var(--lime); }
.command-layer, .activity-layer { position: fixed; z-index: 140; inset: 0; background: rgba(6,9,10,.58); backdrop-filter: blur(5px); }
.command-layer { display: grid; place-items: start center; padding: min(14vh, 120px) 18px 18px; }
.command-palette { width: min(650px, 100%); overflow: hidden; background: #fff; border: 1px solid #bcc4be; border-radius: 6px; box-shadow: 0 28px 80px rgba(0,0,0,.3); }
.command-palette > header { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 9px; min-height: 58px; padding: 0 15px; border-bottom: 1px solid var(--line); }
.command-palette > header svg { color: var(--blue); }
.command-palette input { width: 100%; height: 56px; padding: 0; border: 0; outline: 0; background: transparent; font-size: 13px; }
.command-palette kbd { min-width: 24px; padding: 3px 5px; color: #727c76; background: #f3f5f2; border: 1px solid var(--line); border-radius: 3px; font-family: "IBM Plex Mono", monospace; font-size: 8px; text-align: center; }
.command-results { max-height: 420px; overflow: auto; padding: 7px; }
.command-results > button { width: 100%; display: grid; grid-template-columns: 36px 1fr 18px; align-items: center; gap: 10px; min-height: 62px; padding: 8px 10px; background: transparent; border-radius: 4px; cursor: pointer; text-align: left; }
.command-results > button.is-selected { background: var(--blue-soft); }
.command-results > button > span { width: 32px; height: 32px; display: grid; place-items: center; color: var(--blue); background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.command-results > button > div { min-width: 0; display: grid; gap: 4px; }
.command-results > button b { font-size: 11px; }
.command-results > button small { overflow: hidden; color: var(--muted); font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.command-results > button > svg { color: #8b958f; }
.command-empty { min-height: 180px; display: grid; place-items: center; align-content: center; gap: 6px; color: var(--muted); text-align: center; }
.command-empty p { margin: 3px 0 0; color: var(--ink); font-size: 12px; font-weight: 700; }
.command-empty span { font-size: 9px; }
.command-palette > footer { display: flex; align-items: center; gap: 15px; min-height: 40px; padding: 0 14px; color: var(--muted); background: #f7f8f6; border-top: 1px solid var(--line); font-size: 8px; }
.command-palette > footer span { display: flex; align-items: center; gap: 4px; }
.command-palette > footer b { margin-left: auto; color: #7b857f; font-weight: 500; }
.activity-layer { display: flex; justify-content: flex-end; }
.activity-center { width: min(420px, 100%); height: 100%; display: grid; grid-template-rows: auto 1fr auto; background: #fff; border-left: 1px solid var(--line); box-shadow: -20px 0 60px rgba(0,0,0,.2); }
.activity-center > header { min-height: 86px; display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.activity-center > header p { margin: 0 0 5px; color: var(--blue); font-family: "IBM Plex Mono", monospace; font-size: 8px; font-weight: 600; }
.activity-center > header h2 { margin: 0; font-size: 18px; }
.activity-list { overflow: auto; }
.activity-list > button { width: 100%; display: grid; grid-template-columns: 36px 1fr 18px; gap: 11px; align-items: start; min-height: 112px; padding: 18px; text-align: left; background: transparent; border-bottom: 1px solid var(--line); cursor: pointer; }
.activity-list > button:hover { background: #f7f8f6; }
.activity-list > button > span { width: 34px; height: 34px; display: grid; place-items: center; color: #59645d; background: #f3f5f2; border: 1px solid var(--line); border-radius: 4px; }
.activity-list > button > span.lime { color: #4d7410; background: var(--lime-soft); border-color: #d5eaa9; }
.activity-list > button > span.blue { color: var(--blue); background: var(--blue-soft); border-color: #cbd3ff; }
.activity-list > button > span.coral { color: #b33c2c; background: var(--coral-soft); border-color: #ffc3ba; }
.activity-list > button > div { display: grid; gap: 6px; }
.activity-list > button b { font-size: 11px; line-height: 1.45; }
.activity-list > button p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.activity-list > button small { width: max-content; padding: 3px 5px; color: #58635c; background: #eef1ed; font-size: 8px; }
.activity-list > button > svg { margin-top: 9px; color: #8c9690; }
.activity-center > footer { min-height: 62px; display: flex; align-items: center; gap: 8px; padding: 12px 18px; color: #69746d; background: #f7f8f6; border-top: 1px solid var(--line); font-size: 9px; line-height: 1.5; }
.activity-center > footer svg { flex: 0 0 auto; color: #507b0b; }
.demo-guide-layer { position: fixed; z-index: 145; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(6,9,10,.62); backdrop-filter: blur(5px); }
.demo-guide { width: min(680px, 100%); max-height: min(780px, calc(100vh - 36px)); display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; overflow: hidden; background: #fff; border: 1px solid #b9c1bb; border-radius: 6px; box-shadow: 0 28px 80px rgba(0,0,0,.3); }
.demo-guide > header { min-height: 114px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 24px; color: #fff; background: var(--ink); }
.demo-guide > header p { margin: 0 0 8px; color: var(--lime); font-family: "IBM Plex Mono", monospace; font-size: 10px; font-weight: 600; }
.demo-guide > header h2 { margin: 0; font-size: 21px; }
.demo-guide > header span { display: block; margin-top: 8px; color: #aab4ae; font-size: 11px; }
.demo-guide > header .icon-button { flex: 0 0 auto; color: #fff; background: #202723; border-color: #3a443e; }
.guide-progress { padding: 14px 24px; border-bottom: 1px solid var(--line); }
.guide-progress > div { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.guide-progress span { color: var(--muted); font-size: 10px; }
.guide-progress b { color: var(--blue); font-family: "IBM Plex Mono", monospace; font-size: 11px; }
.guide-steps { margin: 0; padding: 0; overflow: auto; list-style: none; }
.guide-steps li { border-bottom: 1px solid var(--line); }
.guide-steps li:last-child { border-bottom: 0; }
.guide-steps button { width: 100%; min-height: 106px; display: grid; grid-template-columns: 38px minmax(0, 1fr) 52px; align-items: start; gap: 12px; padding: 16px 24px; background: #fff; cursor: pointer; text-align: left; }
.guide-steps button:hover { background: #f7f8f6; }
.guide-steps button > span { width: 32px; height: 32px; display: grid; place-items: center; color: var(--muted); background: #f2f4f1; border: 1px solid var(--line); border-radius: 50%; font-family: "IBM Plex Mono", monospace; font-size: 9px; }
.guide-steps button > div { min-width: 0; }
.guide-steps button b { font-size: 13px; }
.guide-steps button p { margin: 5px 0 8px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.guide-steps button small { display: flex; align-items: center; gap: 5px; color: #717c75; font-size: 10px; }
.guide-steps button em { justify-self: end; margin-top: 4px; color: #7c8780; font-size: 10px; font-style: normal; font-weight: 700; }
.guide-steps .is-next { box-shadow: inset 3px 0 0 var(--blue); background: var(--blue-soft); }
.guide-steps .is-next button { background: transparent; }
.guide-steps .is-next button > span { color: #fff; background: var(--blue); border-color: var(--blue); }
.guide-steps .is-next button em { color: var(--blue); }
.guide-steps .is-done button > span { color: #426c08; background: var(--lime-soft); border-color: #cee49e; }
.guide-steps .is-done button em { color: #507b0b; }
.demo-guide > footer { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 24px; background: #f7f8f6; border-top: 1px solid var(--line); }
.guide-reset { min-height: 38px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; color: var(--muted); background: transparent; cursor: pointer; font-size: 10px; font-weight: 700; }
.boot-state, .fatal-state { min-height: 100vh; display: grid; place-items: center; align-content: center; padding: 32px; background: var(--paper); text-align: center; }
.boot-state > span, .fatal-state > span { color: var(--blue); font-family: "IBM Plex Mono", monospace; font-size: 9px; font-weight: 600; }
.boot-state h1, .fatal-state h1 { margin: 14px 0 8px; font-size: clamp(22px, 4vw, 34px); }
.boot-state p, .fatal-state p { max-width: 560px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.boot-state > i { width: min(280px, 70vw); height: 3px; margin-top: 22px; overflow: hidden; background: #dfe4de; }
.boot-state > i::after { content: ""; display: block; width: 45%; height: 100%; background: var(--blue); animation: boot-progress 1.2s ease-in-out infinite alternate; }
.fatal-state > div { display: flex; gap: 8px; margin-top: 20px; }
.fatal-state button, .fatal-state a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; color: #fff; background: var(--blue); border-radius: 4px; cursor: pointer; font-size: 10px; font-weight: 700; }
.fatal-state a { color: var(--ink); background: #fff; border: 1px solid var(--line-strong); }
@keyframes boot-progress { from { transform: translateX(-20%); } to { transform: translateX(145%); } }
.mobile-nav { display: none; }

/* Readability floor for projection, review laptops, and compressed captures. */
.app-brand small, .sidebar nav section > p, .sidebar nav button > i, .sidebar-user small,
.topbar kbd, .header-stat small, .evidence-path span, .score-orbit span, .match-score span,
.reason-section article small, .channel-grid small, .match-list > button header small,
.match-list > button > footer, .match-reasons article > span, .match-reasons article small,
.source-chips button, .question-card footer > p, .audit-strip span, .audit-strip small,
.source-card > footer, .claim-card > header span, .claim-links button,
.claim-card .resolved-note button, .proof-output > footer span, .update-list > button > footer,
.dependency-map > div > small, .review-queue article p, .priority, .ai-trace li > span,
.draft-field small, .consent-row small, .slot-list button small, .source-detail aside span,
.source-detail section > p, .classification span, .classification button,
.audit-timeline time, .audit-timeline small, .conflict-review > section > header,
.resolution-options label small, .command-palette kbd, .command-palette > footer,
.activity-list > button small, .activity-center > header p { font-size: 10px; }

.event-switch > span, .event-switch small, .sidebar-proof p, .sidebar-proof button,
.sidebar-user b, .topbar > div:first-child > span:last-child,
.topbar > div:last-child > button:first-child, .button, .badge, .panel > header p,
.panel > header > button, .panel-filter select, .page-header > div:first-child > p,
.header-stat span, .north-copy p, .north-metrics span, .north-metrics small,
.funnel-chart span, .funnel-chart small, .action-panel p, .action-index,
.workflow-board header p, .workflow-items b, .workflow-items small, .evidence-path b,
.running-banner b, .running-banner p, .segment-list button > p, .reason-section > p,
.reason-section article > span, .reason-section article b, .risk-note b, .caveat b,
.risk-note p, .caveat p, .channel-grid span, .match-search > p,
.match-search > p button, .match-list > button > p, .match-detail > header p,
.match-reasons h3, .match-reasons article b, .empty-state p,
.question-card > header > div, .audit-strip b, .source-card > header > span,
.source-card > p, .claim-card footer > span, .assumptions header p,
.assumptions label span, .proof-output-grid span, .proof-output-grid p,
.proof-output-grid ul, .update-list h3, .update-list > button > p,
.impact-map > header p, .dependency-map > div > span, .dependency-map > div > b,
.review-queue h3, .review-queue article b, .modal > header p, .ai-trace > header b,
.ai-trace > header small, .ai-trace li p, .campaign-review h3,
.campaign-review dl > div, .draft-field > span, .draft-field textarea,
.consent-row b, .meeting-summary p, .slot-list button span, .source-detail aside b,
.audit-timeline b, .audit-timeline p, .conflict-review > section p,
.resolution-options h3, .resolution-options label b, .toast,
.command-results > button b, .command-results > button small,
.command-empty span, .activity-list > button b, .activity-list > button p,
.activity-center > footer { font-size: 11px; }

.page-header > div:first-child > span, .match-search textarea, .source-detail blockquote,
.conflict-review > section h3, .source-card h3, .claim-card h3,
.proof-output-grid h3 { font-size: 13px; }
.question-card h2 { font-size: 22px; }

@media (max-width: 1120px) {
  :root { --sidebar: 210px; }
  .page { padding: 26px 22px 55px; }
  .dashboard-grid, .invite-layout, .match-layout, .evidence-layout, .impact-layout { grid-template-columns: 1fr; }
  .north-star { grid-template-columns: 1fr; }
  .north-copy { border-right: 0; border-bottom: 1px solid #343b37; }
  .segment-list, .match-list, .source-stack, .update-list { display: grid; grid-template-columns: repeat(3, 1fr); }
  .segment-list > header, .match-list > header, .source-stack > header, .update-list > header { grid-column: 1 / -1; }
  .segment-list > button, .match-list > button, .source-card, .update-list > button { border-right: 1px solid var(--line); }
  .audit-strip { grid-template-columns: repeat(3, 1fr); }
  .audit-actions { grid-column: 1 / -1; justify-content: flex-end; border-top: 1px solid var(--line); }
}

@media (max-width: 860px) {
  .sidebar { display: none; }
  .main-shell { margin-left: 0; }
  .topbar { padding: 0 16px; }
  .topbar > div:first-child > span:last-child, .topbar > div:last-child > button:first-child, .topbar .icon-button { display: none; }
  .notification-trigger { display: none; }
  .page { padding: 22px 16px 88px; }
  .page-header { grid-template-columns: 1fr; gap: 13px; align-items: start; }
  .page-actions { flex-wrap: wrap; }
  .page-header > aside { position: absolute; top: 0; right: 0; min-width: 90px; padding-left: 15px; }
  .page-header > div:first-child { padding-right: 95px; }
  .page-header h1 { font-size: 23px; }
  .mobile-nav { position: fixed; z-index: 50; left: 10px; right: 10px; bottom: 10px; display: grid; grid-template-columns: repeat(5, 1fr); min-height: 62px; padding: 5px; color: #88918c; background: rgba(17,21,23,.94); backdrop-filter: blur(15px); border: 1px solid #313834; border-radius: 6px; }
  .mobile-nav button { min-width: 0; display: grid; justify-items: center; align-content: center; gap: 4px; padding: 0; color: inherit; background: transparent; border-radius: 4px; font-size: 8px; }
  .mobile-nav button.is-active { color: var(--lime); background: #242b27; }
  .workflow-board > header { grid-template-columns: 1fr; }
  .audit-strip { grid-template-columns: 1fr 1fr; }
  .audit-strip > div:not(.audit-actions) { border-bottom: 1px solid var(--line); }
  .audit-strip > div:nth-child(2) { border-right: 0; }
  .audit-strip > div:nth-child(3) { grid-column: 1 / -1; border-right: 0; }
  .segment-list, .match-list, .source-stack, .update-list { grid-template-columns: 1fr; }
  .segment-list > button, .match-list > button, .source-card, .update-list > button { border-right: 0; }
}

@media (max-width: 620px) {
  .topbar { height: 52px; }
  .page { min-height: calc(100vh - 52px); padding: 17px 12px 84px; }
  .page-header { min-height: 126px; margin-bottom: 15px; }
  .page-header > div:first-child { padding-right: 0; }
  .page-header > aside { display: none; }
  .page-header h1 { font-size: 21px; }
  .page-header > div:first-child > span { font-size: 10px; }
  .button { min-height: 38px; padding: 0 11px; font-size: 11px; }
  .north-metrics { grid-template-columns: 1fr; }
  .north-metrics > div { min-height: 100px; border-right: 0; border-bottom: 1px solid #343b37; }
  .dashboard-grid { gap: 12px; }
  .funnel-chart > div { width: 100%; }
  .workflow-board > header .evidence-path { display: none; }
  .workflow-items > button { grid-template-columns: 38px 1fr auto; }
  .workflow-items > button > .meter { grid-column: 2 / 4; }
  .channel-grid { grid-template-columns: 1fr 1fr; }
  .channel-grid > div { border-bottom: 1px solid var(--line); }
  .match-search > div { grid-template-columns: 22px 1fr; }
  .match-search .button { grid-column: 1 / -1; }
  .match-search > p { margin-left: 0; flex-wrap: wrap; }
  .match-detail > header > div:first-child { max-width: 68%; }
  .question-card { padding: 16px; }
  .question-card h2 { font-size: 16px; }
  .question-card > footer { grid-template-columns: 1fr; }
  .question-card footer > p { justify-self: start; }
  .audit-strip { grid-template-columns: 1fr; }
  .audit-strip > div:not(.audit-actions), .audit-strip > div:nth-child(3) { grid-column: 1; border-right: 0; }
  .audit-actions { justify-content: stretch; }
  .audit-actions .button { flex: 1; }
  .proof-output-grid { grid-template-columns: 1fr; }
  .proof-output-grid > section { min-height: 130px; border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-output > footer { flex-direction: column; gap: 7px; }
  .dependency-map { grid-template-columns: 1fr 1fr; }
  .dependency-map > div:not(:last-child)::after { display: none; }
  .campaign-review, .source-detail, .conflict-review { grid-template-columns: 1fr; }
  .campaign-review .consent-row, .resolution-options { grid-column: 1; }
  .modal-layer { padding: 8px; align-items: end; }
  .modal { max-height: calc(100vh - 16px); border-radius: 6px 6px 0 0; }
  .slot-list button { grid-template-columns: 22px 1fr; }
  .slot-list button small { grid-column: 2; }
  .toast { right: 12px; bottom: 82px; left: 12px; max-width: none; }
  .command-layer { padding: 8px; place-items: end center; }
  .command-palette { border-radius: 6px 6px 0 0; }
  .command-results { max-height: min(54vh, 420px); }
  .command-palette > footer b { display: none; }
  .activity-center { width: 100%; }
  .mobile-nav button { font-size: 10px; }
  .demo-guide-layer { place-items: end center; padding: 0; }
  .demo-guide { max-height: 92vh; border-radius: 6px 6px 0 0; }
  .demo-guide > header { min-height: 104px; padding: 18px; }
  .guide-progress { padding: 12px 18px; }
  .guide-steps button { grid-template-columns: 34px minmax(0, 1fr); min-height: 112px; padding: 15px 18px; }
  .guide-steps button em { grid-column: 2; justify-self: start; margin-top: -3px; }
  .demo-guide > footer { padding: 10px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
