:root {
  --ink: #182221;
  --muted: #66736f;
  --soft: #eef1ec;
  --canvas: #f7f8f4;
  --surface: #ffffff;
  --line: #dfe5de;
  --brand: #174f46;
  --brand-bright: #1f6a5b;
  --lime: #d9ee8f;
  --amber: #9b6b10;
  --amber-bg: #fff6d8;
  --red: #a63d36;
  --red-bg: #fff0ee;
  --blue: #35657a;
  --blue-bg: #edf7fa;
  --shadow: 0 14px 38px rgba(24, 34, 33, 0.08);
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
.booting body { visibility: hidden; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(31, 106, 91, .26); outline-offset: 2px; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(1.45rem, 2.3vw, 2rem); letter-spacing: -.035em; }
h2 { margin-bottom: .65rem; font-size: clamp(1.65rem, 3.2vw, 2.65rem); line-height: 1.04; letter-spacing: -.045em; }
h3 { margin-bottom: 0; font-size: 1.05rem; letter-spacing: -.015em; }
p { color: var(--muted); line-height: 1.55; }
.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; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; transform: translateY(-150%); padding: .7rem 1rem; border-radius: 8px; color: #fff; background: var(--brand); }
.skip-link:focus { transform: translateY(0); }

.app-shell { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: 100vh; }
.auth-shell { min-height: 100vh; padding: 28px; display: grid; place-items: center; background: #102e2a; }
.auth-card { width: min(430px, 100%); padding: clamp(25px, 5vw, 40px); border-radius: 22px; background: #fff; box-shadow: 0 28px 80px rgba(0,0,0,.22); }
.auth-brand { padding: 0 0 32px; color: var(--ink); }
.auth-brand small { color: var(--muted); }
.auth-card > p { font-size: .82rem; }
.auth-card form { margin-top: 24px; }
.auth-card form .button { width: 100%; }
.auth-notice { margin: 15px 0 0; }
.auth-footnote { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: .69rem !important; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 18px 20px; display: flex; flex-direction: column; background: #102e2a; color: #f3f6ef; }
.brand { display: flex; gap: 12px; align-items: center; padding: 0 10px 34px; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; background: var(--lime); color: #17332e; font-size: .72rem; font-weight: 900; letter-spacing: -.04em; }
.brand strong, .brand small { display: block; line-height: 1.05; }
.brand strong { font-size: .95rem; }
.brand small { color: #b9c9c4; font-size: .8rem; }
.primary-nav { display: grid; gap: 7px; }
.nav-item { width: 100%; border: 0; border-radius: 11px; padding: 12px; display: flex; align-items: center; gap: 11px; color: #b9c9c4; background: transparent; cursor: pointer; text-align: left; font-weight: 680; }
.nav-item > span:first-child { width: 22px; font-size: 1.25rem; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.is-active { color: #14342e; background: var(--lime); }
.nav-count { margin-left: auto; min-width: 24px; padding: 2px 7px; border-radius: 20px; text-align: center; font-size: .72rem; background: rgba(255,255,255,.12); }
.nav-item.is-active .nav-count { background: rgba(23,79,70,.12); }
.sidebar-foot { margin-top: auto; padding: 16px 9px 4px; border-top: 1px solid rgba(255,255,255,.12); display: flex; gap: 10px; align-items: center; }
.sidebar-foot strong, .sidebar-foot small { display: block; }
.sidebar-foot strong { font-size: .78rem; }
.sidebar-foot small { color: #9eb3ad; font-size: .67rem; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #efb842; box-shadow: 0 0 0 4px rgba(239,184,66,.12); }
.status-dot.is-online { background: #92d083; box-shadow: 0 0 0 4px rgba(146,208,131,.12); }
.status-dot.is-error { background: #e0766e; box-shadow: 0 0 0 4px rgba(224,118,110,.12); }

.workspace { min-width: 0; padding-bottom: 48px; }
.topbar { min-height: 88px; padding: 20px clamp(22px, 4vw, 58px); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; background: rgba(247,248,244,.93); }
.eyebrow { margin-bottom: 5px; color: var(--brand-bright); font-size: .68rem; font-weight: 850; letter-spacing: .135em; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.mode-badge, .banner-pill { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border-radius: 99px; background: var(--amber-bg); color: #75500e; font-size: .68rem; font-weight: 830; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.demo-banner { margin: 18px clamp(22px, 4vw, 58px) 0; padding: 13px 16px; border: 1px solid #e6cd86; border-radius: 13px; display: flex; justify-content: space-between; align-items: center; gap: 18px; background: #fffaf0; }
.demo-banner strong, .demo-banner span { display: block; }
.demo-banner strong { margin-bottom: 2px; font-size: .82rem; }
.demo-banner div span { color: #786942; font-size: .76rem; }
.banner-pill { background: #f2e4b8; }
.notice { margin: 14px clamp(22px, 4vw, 58px) 0; padding: 13px 16px; border: 1px solid #b9d8d2; border-radius: 12px; background: #eff9f6; color: #275f55; font-size: .85rem; }
.notice.is-error { border-color: #efc4c0; background: var(--red-bg); color: var(--red); }
main { min-width: 0; max-width: 100%; padding: 38px clamp(22px, 4vw, 58px) 0; }
.view { display: none; min-width: 0; max-width: 100%; }
.view.is-active { display: block; animation: appear .18s ease both; }
@keyframes appear { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(230px, .5fr); gap: 30px; align-items: end; margin-bottom: 30px; }
.hero-copy p:last-child { max-width: 700px; margin-bottom: 0; }
.target-card { border-radius: var(--radius); padding: 21px; color: #f7fff8; background: var(--brand); box-shadow: var(--shadow); }
.target-card > span { color: #b8d5cc; font-size: .72rem; font-weight: 760; text-transform: uppercase; letter-spacing: .07em; }
.target-card strong { display: block; font-size: 2.5rem; line-height: 1.05; color: var(--lime); }
.target-card small { color: #f7fff8; }
.target-card p { margin: 13px 0 0; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.15); color: #c9dad5; font-size: .75rem; line-height: 1.4; }
.research-form { display: grid; gap: 17px; }
.panel, .empty-panel, .submit-panel, .detail-panel, .opportunity-card, .job-card, .metric { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.form-panel { padding: clamp(21px, 3vw, 31px); }
.panel-heading { margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel-heading > div { display: flex; align-items: center; gap: 10px; }
.step { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: var(--soft); color: var(--brand); font-size: .74rem; font-weight: 850; }
.field-hint { color: var(--muted); font-size: .72rem; }
.mode-picker { margin: 0 0 21px; padding: 0; border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-picker legend, .decision-options legend { margin-bottom: 9px; color: var(--muted); font-size: .73rem; font-weight: 760; }
.mode-option { display: flex; gap: 10px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.mode-option:has(input:checked) { border-color: #73a399; background: #f2f8f5; box-shadow: inset 0 0 0 1px #73a399; }
.mode-option input { margin-top: 3px; accent-color: var(--brand); }
.mode-option strong, .mode-option small { display: block; }
.mode-option strong { margin-bottom: 2px; font-size: .83rem; }
.mode-option small { color: var(--muted); line-height: 1.35; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.field-grid.three-column { grid-template-columns: repeat(3, 1fr); }
.field { display: block; margin-bottom: 17px; }
.field > span { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; font-size: .76rem; font-weight: 730; }
.field em { color: #8b938f; font-size: .68rem; font-style: normal; font-weight: 500; }
.field input, .field textarea, .field select, .search-box input { width: 100%; border: 1px solid #d5ddd6; border-radius: 10px; padding: 11px 12px; color: var(--ink); background: #fff; }
.field input::placeholder, .field textarea::placeholder, .search-box input::placeholder { color: #9ba49f; }
.field textarea { resize: vertical; line-height: 1.45; }
.full-span { grid-column: 1 / -1; }
.check-group { padding-top: 5px; display: flex; gap: 13px; flex-direction: column; font-size: .78rem; color: var(--muted); }
.check-group input { margin-right: 7px; accent-color: var(--brand); }
.submit-panel { padding: 20px 22px; display: flex; justify-content: space-between; gap: 22px; align-items: center; background: #f1f5ed; }
.submit-panel strong { font-size: .85rem; }
.submit-panel p { margin: 3px 0 0; font-size: .75rem; }
.button { min-height: 42px; padding: 10px 16px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-size: .78rem; font-weight: 780; transition: transform .12s ease, background .12s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: progress; transform: none; }
.button-primary { background: var(--brand); color: #fff; box-shadow: 0 7px 16px rgba(23,79,70,.14); }
.button-primary:hover { background: var(--brand-bright); }
.button-secondary { border-color: var(--line); background: #fff; color: var(--brand); }
.button-compact { min-height: 34px; padding: 7px 11px; }
.button-danger { border-color: #edc7c3; background: #fff7f6; color: var(--red); }
.empty-panel { margin-top: 18px; padding: 24px; display: flex; align-items: center; gap: 17px; border-style: dashed; }
.empty-icon { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; background: var(--soft); color: var(--brand); font-size: 1.5rem; }
.empty-panel h3 { margin-bottom: 3px; }
.empty-panel p { margin-bottom: 0; font-size: .78rem; }
.empty-panel .button { margin-left: auto; white-space: nowrap; }

.section-heading { margin-bottom: 22px; display: flex; justify-content: space-between; gap: 20px; align-items: end; }
.section-heading p:last-child { margin-bottom: 0; }
.jobs-heading { align-items: center; }
.filter-toolbar { display: flex; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.filter-scroll, .subfilters { display: flex; gap: 7px; flex-wrap: wrap; }
.filter-chip { min-height: 34px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: var(--muted); cursor: pointer; font-size: .7rem; font-weight: 740; }
.filter-chip.is-active { border-color: var(--brand); background: var(--brand); color: #fff; }
.filter-chip .chip-count { margin-left: 4px; opacity: .68; }
.search-box { min-width: 230px; }
.search-box input { padding: 9px 12px; font-size: .76rem; }
.subfilters { margin-bottom: 20px; padding-top: 10px; border-top: 1px solid var(--line); }
.subfilters::before { content: "Execution:"; align-self: center; margin-right: 3px; color: var(--muted); font-size: .68rem; font-weight: 730; text-transform: uppercase; letter-spacing: .05em; }
.opportunity-layout { display: block; min-width: 0; max-width: 100%; }
.opportunity-list { min-width: 0; max-width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.table-wrap { min-width: 0; width: 100%; max-width: 100%; }
.table-scroll { min-width: 0; width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 10px 30px rgba(24,34,33,.04); }
.table-scroll-hint { display: none; margin: 0 0 7px; color: var(--brand); font-size: .68rem; font-weight: 750; }
.table-scroll:focus-visible { outline: 3px solid rgba(31,106,91,.26); outline-offset: 2px; }
.opportunity-table { width: 100%; min-width: 1060px; border-collapse: separate; border-spacing: 0; font-size: .75rem; }
.opportunity-table th { position: sticky; top: 0; z-index: 2; padding: 0; border-bottom: 1px solid var(--line); color: var(--muted); background: #f4f6f2; text-align: left; }
.opportunity-table th:first-child { left: 0; z-index: 4; min-width: 250px; }
.opportunity-table td { min-width: 150px; padding: 15px 13px; border-bottom: 1px solid var(--line); vertical-align: top; background: #fff; }
.opportunity-table td:first-child { position: sticky; left: 0; z-index: 1; min-width: 250px; box-shadow: 7px 0 12px rgba(24,34,33,.035); }
.opportunity-table tbody tr:last-child td { border-bottom: 0; }
.opportunity-table tbody tr:hover td { background: #f8faf6; }
.opportunity-table tbody tr.is-selected td { background: #f1f8f5; }
.opportunity-table tbody tr.is-selected td:first-child { box-shadow: inset 3px 0 0 var(--brand), 7px 0 12px rgba(24,34,33,.035); }
.opportunity-table tbody tr.is-dropped td { background: #faf7f6; }
.opportunity-table tbody tr.is-expired td { border-bottom-color: #e7c5c1; }
.table-sort { width: 100%; min-height: 48px; padding: 10px 13px; border: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: inherit; background: transparent; cursor: pointer; text-align: left; font-size: .66rem; font-weight: 820; letter-spacing: .025em; }
.table-sort:hover, .table-sort.is-active { color: var(--brand); background: #eaf1eb; }
.table-title { max-width: 240px; padding: 0; border: 0; color: var(--ink); background: transparent; cursor: pointer; text-align: left; font-weight: 790; line-height: 1.3; }
.table-title:hover { color: var(--brand-bright); text-decoration: underline; }
.table-cell-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.economic-cell strong, .economic-cell small { display: block; }
.economic-cell strong { color: var(--ink); font-size: .73rem; line-height: 1.35; }
.economic-cell small { margin-top: 4px; color: var(--muted); font-size: .62rem; line-height: 1.35; }
.opportunity-card { width: 100%; padding: 17px; text-align: left; cursor: pointer; }
.opportunity-card:hover { border-color: #a6bbb5; }
.opportunity-card.is-selected { border-color: var(--brand); box-shadow: inset 3px 0 0 var(--brand), var(--shadow); }
.card-topline, .card-meta, .detail-meta, .history-meta, .job-topline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.opportunity-card h3 { margin: 10px 0 7px; line-height: 1.25; }
.opportunity-card p { margin-bottom: 12px; font-size: .77rem; line-height: 1.45; }
.card-meta { justify-content: space-between; color: var(--muted); font-size: .67rem; }
.pill { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 8px; border-radius: 7px; background: var(--soft); color: #56625e; font-size: .62rem; font-weight: 800; letter-spacing: .025em; }
.pill-interesting { background: #e4f4cf; color: #3d6b26; }
.pill-demo { background: #fff2c9; color: #805913; }
.pill-not_interesting, .pill-dropped { background: #f3ecea; color: #80514b; }
.pill-ai_led { background: #e6f2ef; color: #28685a; }
.pill-hybrid { background: var(--blue-bg); color: var(--blue); }
.pill-human_led { background: #f4edf8; color: #684a78; }
.pill-supported, .pill-supported_with_uncertainty, .pill-completed, .pill-succeeded { background: #e8f5e5; color: #3a7132; }
.pill-weakened, .pill-failed { background: var(--red-bg); color: var(--red); }
.pill-running { background: var(--blue-bg); color: var(--blue); }
.pill-queued { background: var(--amber-bg); color: var(--amber); }
.pill-awaiting_review { background: var(--amber-bg); color: #795009; box-shadow: inset 0 0 0 1px #e5c76e; }
.flag { color: var(--amber); font-size: .65rem; font-weight: 800; }
.detail-panel { margin-top: 18px; padding: clamp(20px, 3vw, 30px); min-height: 440px; }
.detail-panel h2 { margin: 14px 0 8px; font-size: clamp(1.5rem, 2.7vw, 2.15rem); }
.detail-lede { font-size: .87rem; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.detail-section { padding: 19px 0; border-top: 1px solid var(--line); }
.detail-section h3 { margin-bottom: 10px; font-size: .88rem; }
.detail-section p:last-child { margin-bottom: 0; }
.detail-note { padding: 11px 13px; border-left: 3px solid #91aaa3; background: #f4f7f3; font-size: .72rem; }
.assumption-block { margin-top: 13px; }
.assumption-block > strong { font-size: .72rem; }
.assumption-block ul { margin: 7px 0 0; padding-left: 19px; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.fact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fact { padding: 12px; border-radius: 11px; background: var(--canvas); }
.fact span, .fact strong { display: block; }
.fact span { margin-bottom: 4px; color: var(--muted); font-size: .65rem; text-transform: uppercase; letter-spacing: .04em; }
.fact strong { font-size: .79rem; line-height: 1.35; }
.task-list, .source-list, .history-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.task-item, .history-item { padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.task-item strong, .task-item span { display: block; }
.task-item strong { font-size: .75rem; }
.task-item span, .history-item p { margin: 4px 0 0; color: var(--muted); font-size: .7rem; line-height: 1.4; }
.source-item { display: flex; justify-content: space-between; gap: 14px; align-items: start; padding: 11px 0; border-bottom: 1px solid var(--line); }
.source-item:last-child { border-bottom: 0; }
.source-item a { overflow-wrap: anywhere; color: var(--brand-bright); font-size: .74rem; font-weight: 700; }
.source-item p { margin: 5px 0 0; color: var(--muted); font-size: .68rem; line-height: 1.4; }
.source-item time { color: var(--muted); font-size: .65rem; white-space: nowrap; }
.history-meta { justify-content: space-between; font-size: .65rem; }
.history-meta time { color: var(--muted); }
.detail-placeholder, .list-empty { display: grid; place-items: center; min-height: 290px; padding: 25px; text-align: center; color: var(--muted); }
.detail-placeholder div { max-width: 300px; }
.detail-placeholder strong { display: block; margin-bottom: 6px; color: var(--ink); }
.match-list { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.match-item { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--canvas); }
.match-item > div:first-child { margin-bottom: 11px; }
.match-item strong { font-size: .78rem; }
.match-item p { margin: 3px 0 0; font-size: .7rem; }
.identity-resolution-form { display: grid; gap: 15px; }
.resolution-options { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.resolution-options legend { margin-bottom: 3px; color: var(--muted); font-size: .72rem; font-weight: 760; }
.resolution-option { display: flex; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }
.resolution-option:has(input:checked) { border-color: var(--brand); background: #f1f8f5; }
.resolution-option input { margin-top: 3px; accent-color: var(--brand); }
.resolution-option strong, .resolution-option small { display: block; }
.resolution-option strong { margin-bottom: 2px; font-size: .76rem; }
.resolution-option small { color: var(--muted); font-size: .68rem; line-height: 1.35; }
.identity-resolution-form > .button { justify-self: start; }

.metric-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 10px; margin-bottom: 18px; }
.metric { padding: 16px; }
.metric span, .metric strong { display: block; }
.metric span { margin-bottom: 5px; color: var(--muted); font-size: .67rem; text-transform: uppercase; letter-spacing: .045em; }
.metric strong { font-size: 1.25rem; }
.job-list { display: grid; gap: 11px; }
.job-card { padding: 19px; }
.job-topline { justify-content: space-between; }
.job-card h3 { margin: 11px 0 4px; }
.job-card p { margin-bottom: 12px; font-size: .76rem; }
.job-card p.review-required { padding: 10px 12px; border-left: 3px solid #d5aa32; background: var(--amber-bg); color: #6f4b0d; font-weight: 680; }
.progress-track { width: 100%; height: 7px; overflow: hidden; border: 0; border-radius: 99px; appearance: none; background: var(--soft); }
.progress-track::-webkit-progress-bar { border-radius: 99px; background: var(--soft); }
.progress-track::-webkit-progress-value { border-radius: 99px; background: var(--brand-bright); }
.progress-track::-moz-progress-bar { border-radius: 99px; background: var(--brand-bright); }
.job-stats { display: flex; gap: 17px; flex-wrap: wrap; margin-top: 11px; color: var(--muted); font-size: .67rem; }

.mobile-nav { display: none; }
dialog { width: min(530px, calc(100vw - 28px)); max-height: calc(100vh - 30px); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 28px 90px rgba(12,28,25,.24); }
dialog::backdrop { background: rgba(11,29,25,.45); backdrop-filter: blur(3px); }
dialog form { padding: 24px; }
.dialog-heading, .dialog-actions { display: flex; justify-content: space-between; gap: 15px; align-items: start; }
.dialog-heading { margin-bottom: 20px; }
.dialog-heading h2 { font-size: 1.5rem; }
.icon-button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; font-size: 1.2rem; }
.decision-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 18px; padding: 0; border: 0; }
.decision-options legend { grid-column: 1 / -1; }
.decision-option { padding: 11px; border: 1px solid var(--line); border-radius: 10px; font-size: .76rem; font-weight: 720; }
.decision-option:has(input:checked) { border-color: var(--brand); background: #f1f8f5; }
.decision-option input { margin-right: 7px; accent-color: var(--brand); }
.dialog-actions { justify-content: flex-end; margin-top: 8px; }

@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 82px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .brand { padding-inline: 9px; }
  .brand > span:last-child, .nav-item:not(.is-active) .nav-count, .sidebar-foot div { display: none; }
  .brand-mark { flex: 0 0 39px; }
  .nav-item { justify-content: center; padding-inline: 5px; font-size: 0; }
  .nav-item > span:first-child { width: auto; font-size: 1.25rem; }
  .nav-count { margin-left: 0; font-size: .62rem; }
  .sidebar-foot { justify-content: center; }
  .detail-panel { position: static; }
}

@media (max-width: 700px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .workspace { padding-bottom: 82px; }
  .topbar { min-height: 72px; padding: 14px 18px; }
  .topbar .eyebrow { display: none; }
  .topbar-actions { gap: 6px; }
  .mode-badge { max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
  .demo-banner, .notice { margin: 12px 14px 0; }
  .demo-banner { align-items: start; }
  .demo-banner .banner-pill { display: none; }
  main { padding: 28px 14px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 18px; }
  .target-card { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 15px; }
  .target-card strong { grid-column: 2; grid-row: 1 / span 2; }
  .target-card p { grid-column: 1 / -1; }
  .mode-picker, .field-grid, .field-grid.three-column, .fact-grid { grid-template-columns: 1fr; }
  .mode-option { padding: 13px; }
  .panel-heading { align-items: start; }
  .field-hint { max-width: 120px; text-align: right; }
  .submit-panel, .empty-panel { align-items: stretch; flex-direction: column; }
  .submit-panel .button, .empty-panel .button { width: 100%; margin-left: 0; }
  .empty-panel { text-align: center; }
  .empty-icon { align-self: center; }
  .section-heading, .filter-toolbar { align-items: stretch; flex-direction: column; }
  .filter-scroll { flex-wrap: nowrap; margin-inline: -14px; padding-inline: 14px; overflow-x: auto; scrollbar-width: none; }
  .filter-scroll::-webkit-scrollbar { display: none; }
  .filter-chip { flex: 0 0 auto; }
  .search-box { min-width: 0; }
  .subfilters { flex-wrap: nowrap; overflow-x: auto; }
  .subfilters::before { display: none; }
  .opportunity-card { padding: 15px; }
  .table-scroll { margin-inline: 0; border-radius: 13px; }
  .table-scroll-hint { display: block; }
  .opportunity-table { min-width: 980px; }
  .opportunity-table th:first-child, .opportunity-table td:first-child { min-width: 205px; max-width: 205px; }
  .table-title { max-width: 185px; }
  .detail-panel { padding: 19px; }
  .detail-actions .button { flex: 1 1 130px; }
  .metric-row { grid-template-columns: 1fr 1fr; }
  .jobs-heading .button { width: 100%; }
  .mobile-nav { position: fixed; z-index: 30; bottom: 0; left: 0; right: 0; height: 67px; padding: 7px max(10px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(255,255,255,.97); box-shadow: 0 -8px 25px rgba(30,43,40,.07); }
  .mobile-nav button { border: 0; border-radius: 8px; display: grid; place-items: center; gap: 1px; color: var(--muted); background: transparent; font-size: .62rem; font-weight: 760; }
  .mobile-nav button span { font-size: 1.15rem; line-height: 1; }
  .mobile-nav button.is-active { color: var(--brand); background: #edf4ee; }
  .decision-options { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .opportunity-table th:first-child { left: auto; z-index: 2; }
  .opportunity-table td:first-child { position: static; box-shadow: none; }
  .opportunity-table tbody tr.is-selected td:first-child { box-shadow: none; }
}

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