:root {
  color-scheme: light;
  --ink: var(--ink-900);
  --muted: var(--text-secondary-dark);
  --faint: var(--text-secondary-dark);
  --canvas: var(--ink-50);
  --line: var(--rule-light);
  --teal: var(--accent-legacy-text);
  --teal-dark: var(--accent-legacy-text);
  --teal-pale: var(--tint-teal);
  --nav: var(--ink-900);
  --paper: #fff;
  --sidebar: 207px;
  --radius: 13px;
  font-family: var(--sans);
  font-size: 14px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button { appearance: none; }
button:disabled { opacity: .55; cursor: wait; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, select:focus-visible, textarea:focus-visible, input:focus-visible, svg a:focus-visible { outline: 3px solid var(--accent-greenfield); outline-offset: 3px; }
button svg, a svg, .icon-box svg { flex: none; }
button { background: transparent; }
h1, h2, h3, h4, p, ul, ol, dl { margin: 0; }
.sr-only, .skip-link:not(:focus) { width: 1px; height: 1px; position: absolute; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 90; left: 14px; top: 12px; padding: 12px; background: white; border: 2px solid var(--teal); }
code, .mono { font-family: var(--mono); font-size: .9em; font-variant-numeric: tabular-nums; }
.soft { color: var(--muted); line-height: 1.55; }
.shell { min-height: 100dvh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); display: flex; flex-direction: column; color: #e9f1f2; background: linear-gradient(168deg,var(--ink-900) 0%,var(--ink-900) 48%,var(--ink-900) 100%); padding: 30px 14px 0; z-index: 14; }
.brand { display: flex; align-items: center; gap: 9px; padding: 0 11px 0; }
.brand strong { display: block; font-size: 27px; font-weight: 735; letter-spacing: -.9px; line-height: 1; }
.brand span { display: block; font-size: 11px; font-weight: 465; color: #b3c5cd; margin-top: 5px; }
.nav-label { margin: 48px 14px 12px; color: #99b0ba; font-size: 10px; font-weight: 620; letter-spacing: 1.45px; text-transform: uppercase; }
.sidebar nav { display: grid; gap: 5px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 11px; min-height: 41px; padding: 0 13px; border: 1px solid transparent; border-radius: 7px; color: #b8c8d0; font-weight: 515; font-size: 12.8px; transition: background .12s, color .12s; }
.nav-item:hover { background: #213844; color: #fff; }
.nav-item.active { background: #28464f; border-color: #36545c; color: #ebfdf8; }
.nav-item.active::before { content: ""; position: absolute; left: -1px; width: 3px; height: 18px; border-radius: 2px; background: #6bd6bd; }
.nav-item.active svg { color: #8be2cd; }
.nav-item small { margin-left: auto; min-width: 19px; padding: 2px 5px; border-radius: 5px; text-align: center; background: #2c414d; color: #bcd1d7; font: 10.5px var(--mono); }
.sidebar-bottom { margin: auto -14px 0; padding: 15px 22px 22px; }
.replay-env { display: flex; align-items: center; gap: 8px; color: #a4bcc4; font-size: 11px; padding-bottom: 17px; border-bottom: 1px solid #344651; }
.replay-env i, .synthetic i { width: 6px; height: 6px; border-radius: 50%; background: #61c4ab; box-shadow: 0 0 0 3px #58bda51a; }
.operator { display: flex; align-items: center; gap: 11px; padding-top: 17px; }
.avatar, .mini-avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; font-weight: 640; letter-spacing: .2px; }
.avatar { background: #294750; color: #bce6d9; border: 1px solid #3d5c64; width: 35px; height: 35px; font-size: 12px; }
.operator strong, .operator span:not(.avatar) { display: block; }
.operator strong { font-size: 13px; font-weight: 610; }
.operator span:not(.avatar) { margin-top: 3px; color: #a7bac4; font-size: 11px; }
.workspace { margin-left: var(--sidebar); min-height: 100dvh; }
.topbar { position: sticky; top: 0; z-index: 10; min-height: 62px; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px clamp(20px,2.8vw,44px); }
.breadcrumbs, .top-actions, .heading-actions, .case-kicker, .breadcrumbs strong, .synthetic, .clock-select, .select-wrap { display: flex; align-items: center; }
.breadcrumbs { gap: 11px; font-size: 12px; color: var(--muted); }
.breadcrumbs strong { font-weight: 560; color: #304750; }
.breadcrumb-slash { color: #a0aeb3; }
.top-actions { gap: 18px; }
.synthetic { gap: 8px; font-weight: 520; color: #526d70; font-size: 11px; }
.synthetic i { background: #398c74; }
.synthetic-short { display: none; }
.clock-select { gap: 6px; border-left: 1px solid var(--line); padding-left: 17px; color: #47616e; }
.clock-select select, .select-wrap select { appearance: none; border: 0; background: transparent; padding: 5px 0; min-width: 0; outline-offset: 1px; }
.clock-select select { font-family: var(--mono); font-size: 11.5px; font-weight: 550; color: var(--ink); }
.shift-date { color: #60747c; font-size: 11px; padding-right: 2px; }
.select-wrap { gap: 7px; border: 1px solid #ccd7da; border-radius: 7px; background: #fff; min-height: 36px; padding: 0 11px; }
.select-wrap select { flex: 1; font-size: 12px; font-weight: 530; }
.btn, .icon-btn, .text-link, .back-link { display: inline-flex; justify-content: center; align-items: center; }
.btn { gap: 8px; min-height: 36px; padding: 8px 13px; border-radius: 7px; border: 1px solid #cad5d9; background: #fff; font-size: 12.5px; font-weight: 590; line-height: 1.25; color: #2a424e; white-space: nowrap; transition: background .13s,border-color .13s; }
.btn:hover { background: #f4f8f8; border-color: #a9bdc0; }
.btn-primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn.wide { width: 100%; justify-content: space-between; }
.assistant-launch { color: #086b64; border-color: #c3ddd6; background: #f4faf7; min-height: 34px; }
.assistant-launch:hover { background: #e6f4ee; border-color: #a4c9bf; }
.icon-btn { border: 0; width: 34px; height: 34px; border-radius: 6px; color: var(--muted); }
.icon-btn:hover { background: #eef3f4; }
.mobile-menu, .nav-shade { display: none; }
main { max-width: 1650px; padding: 29px clamp(20px,2.8vw,44px) 18px; margin: auto; outline: none; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 22px; }
h1 { font-size: clamp(29px,2.65vw,40px); font-weight: 650; letter-spacing: -1.55px; line-height: 1.12; }
.page-heading p { color: var(--muted); font-size: 13px; margin-top: 7px; line-height: 1.48; }
.heading-actions { gap: 8px; }
.replay-btn { padding: 9px 14px; color: #2f4a54; }
.replay-btn svg { color: #167f71; }
.desk-grid { display: grid; grid-template-columns: minmax(0,2.25fr) minmax(250px,1fr); align-items: start; gap: 18px; }
.primary-stack, .side-stack { min-width: 0; display: grid; gap: 18px; align-content: start; }
.card, .corridor-hero, .map-card { border-radius: var(--radius); overflow: hidden; }
.card { background: var(--paper); border: 1px solid var(--line); box-shadow: 0 2px 5px #182e3b04; }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 15px; }
.card-header.compact { padding: 19px 18px 13px; }
.card-header h2, .map-heading h2, .findings h2 { font-size: 18px; font-weight: 630; line-height: 1.2; letter-spacing: -.5px; }
.card-header p, .card-header .soft { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.card-foot { border-top: 1px solid var(--line); padding: 13px 18px; }
.text-link, .back-link { color: var(--teal); gap: 6px; font-size: 12px; font-weight: 605; }
.text-link:hover, .back-link:hover, .table-anchor:hover { text-decoration: underline; text-underline-offset: 3px; }
.counter { display: inline-grid; place-items: center; min-width: 25px; height: 24px; border: 1px solid #dbe6e8; border-radius: 7px; background: #f2f6f6; color: #45636c; font: 600 12px var(--mono); }
.counter.warm { background: #fbf3e5; color: #8d6428; border-color: #efdfc1; }
.corridor-hero { color: #f4fbfb; background: linear-gradient(107deg,#193643 0%,#1b3c49 57%,#1e434e 100%); border: 1px solid #2c4d56; box-shadow: 0 3px 8px #1b36420b; position: relative; }
.hero-top { display: flex; position: relative; align-items: center; justify-content: space-between; padding: 19px 24px 17px; min-height: 127px; gap: 7px; isolation: isolate; }
.hero-text { z-index: 1; min-width: 0; }
.hero-meta { display: flex; align-items: center; gap: 8px; color: #b4d1d2; font-size: 10.8px; line-height: 1.4; }
.hero-meta span:first-of-type { font-family: var(--mono); font-weight: 650; color: #d5e6e6; }
.hero-meta b { width: 3px; height: 3px; background: #82a3a9; border-radius: 50%; }
.hero-text h2 { font-size: clamp(27px,2.65vw,39px); line-height: 1.12; letter-spacing: -1.35px; font-weight: 610; margin: 7px 0 11px; }
.hero-state { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.hero-state>span:last-child:not(.badge) { font: 10.5px var(--mono); color: #b8cdcf; }
.corridor-drawing { width: 37%; max-width: 305px; height: 107px; flex: 0 1 auto; opacity: .92; mask-image: linear-gradient(90deg,transparent 0%,#000 12%,#000 90%,transparent 100%); }
.badge, .case-status { display: inline-flex; align-items: center; gap: 6px; width: max-content; max-width: 100%; padding: 4px 8px; border-radius: 5px; font-size: 10.7px; font-weight: 595; line-height: 1.25; white-space: nowrap; }
.badge i, .case-status i, .network-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.fallback { color: #8d561b; background: #fff2d9; }
.badge.overdue { color: #984d31; background: #fae8df; }
.badge.normal, .case-status { color: #216e60; background: #e7f3ed; }
.hero-state .badge.fallback { background: #584b32; color: #ffda8d; border: 1px solid #7b6843; }
.hero-state .badge.overdue { background: #594237; color: #ffc2a1; border: 1px solid #796052; }
.hero-state .badge.normal { background: #284f4b; color: #a2e1ca; border: 1px solid #3e6660; }
.metrics { border-top: 1px solid #53707969; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 16px 0 17px; }
.metric { display: flex; flex-direction: column; align-items: flex-start; padding: 0 22px; min-width: 0; border-right: 1px solid #5d7b8265; }
.metric:last-child { border: 0; }
.metric:hover strong { color: #c7f5e9; }
.metric-label, .margin-strip, .legend, .legend span, .mini-owner, .linked-work { display: flex; align-items:center; }
.metric-label { gap: 7px; color: #d2e1e3; font-size: 11.8px; font-weight: 465; }
.series-dot { display: inline-block; flex:none; height: 6px; width: 6px; border-radius: 50%; }
.series-dot.rating { background: #65d6bd; }
.series-dot.limit { background: #8daff5; }
.series-dot.load { background: #efae79; }
.metric strong { display: block; margin: 7px 0 4px; font-size: clamp(23px,2.04vw,32px); font-weight: 610; letter-spacing: -.85px; line-height: 1; font-variant-numeric: tabular-nums; transition: color .13s; }
.metric strong small { font-size: .52em; font-weight: 435; color: #bdd0d3; }
.metric-source { font: 10px var(--mono); color: #acc3c6; margin-top: 3px; }
.muted-sep { color: #a2b2b5; margin: 0 4px; }
.segment { display: inline-flex; padding: 3px; background: #f2f5f5; border: 1px solid #dbe4e5; border-radius: 7px; gap: 2px; white-space: nowrap; }
.segment button { padding: 4px 9px; border: 1px solid transparent; border-radius: 4px; min-height: 24px; font-size: 11px; font-weight: 550; line-height: 1.2; color: #5b7078; }
.segment button[aria-pressed="true"] { color: #27464e; border-color: #d5dfe1; background: #fff; box-shadow: 0 1px 3px #173e5210; }
.legend { flex-wrap: wrap; gap: 15px; padding: 0 22px 7px; color: #465f68; }
.legend span { gap: 5px; font-size: 10.7px; }
.swatch { display: inline-block; width: 16px; height: 0; border-top: 2.5px solid #00857d; border-radius: 2px; }
.swatch.limit { border-color: #4772c6; border-top-style: dashed; }
.swatch.load { border-color: #bd6a32; position: relative; }
.swatch.load::after { content: ""; position: absolute; width: 4px; height: 4px; border-radius: 50%; top: -3px; left: 6px; background: #bd6a32; }
.chart-wrap { padding: 5px 9px 4px; }
.trend-svg { display: block; width: 100%; height: auto; min-height: 150px; }
.trend-svg text { font: 11.4px var(--mono); fill: #5d727a; font-variant-numeric: tabular-nums; }
.chart-grid { stroke: #dce5e6; stroke-width: 1; }
.chart-marker { stroke: #ac8e4c; stroke-width: 1; stroke-dasharray: 3 4; }
.trend-svg a:hover circle:last-child, .trend-svg a:focus circle:last-child { r: 4; stroke-width: 2.7px; }
.margin-strip { border-top: 1px solid #e2e9ea; padding: 12px 21px; gap: 11px; background: #fafcfc; color: #526871; font-size: 11px; }
.margin-label, .margin-value { white-space: nowrap; }
.margin-label b, .margin-value b { color: #243e48; font-weight: 660; }
.margin-label b { margin-left: 4px; }
.margin-meter { height: 5px; border-radius: 4px; background: #deeaeb; flex: 1; max-width: 165px; overflow: hidden; }
.margin-meter i { display: block; height: 100%; border-radius: 4px; background: #4c9d94; }
.margin-value { margin-left: auto; }
.readings-scroll { max-height: 219px; overflow: auto; min-height: 160px; }
.queue-list { display: grid; gap: 6px; padding: 0 10px 10px; }
.queue-row, .file-row { display: flex; align-items: flex-start; gap: 10px; border-radius: 7px; padding: 12px 10px; border: 1px solid transparent; }
.queue-row:hover, .file-row:hover { background: #f3f7f7; }
.queue-row.selected, .file-row.selected { background: #edf6f3; border-color: #c6ded7; }
.queue-glyph { display: grid; place-items: center; flex: none; width: 27px; height: 27px; border-radius: 7px; margin-top: 1px; }
.queue-glyph.fallback { color: #966327; background: #f9e8c5; }
.queue-glyph.overdue { color: #98543a; background: #fae7dc; }
.row-copy { display: grid; gap: 4px; flex: 1; }
.row-copy strong, .file-row strong { font-size: 13.5px; font-weight: 640; letter-spacing: -.25px; }
.row-copy>span { color: #5f6f71; font-size: 11.5px; }
.row-copy small, .file-row code { color: #647981; font: 10px var(--mono); }
.row-copy small b { color: #96a7aa; margin: 0 1px; }
.queue-row>svg, .file-row>svg { flex: none; color: #6d858b; margin-top: 6px; }
.quiet-state { display: flex; gap: 9px; align-items: center; padding: 14px 8px; color: #3a7165; font-size: 12px; line-height: 1.5; }
.case-card, .assistant-card, .map-aside { padding: 18px; }
.case-kicker { gap: 7px; color: #546b76; font-size: 11px; font-weight: 570; }
.case-kicker code { margin-left: auto; font-size: 10px; font-weight: 500; color: #617882; }
.icon-box { display: inline-grid; place-items: center; width: 29px; height: 29px; flex:none; border-radius: 7px; color: #426979; background: #eaf0f2; }
.icon-box.mint { color: #127b6c; background: #dff1e9; }
.case-card h3, .large-empty h3 { margin: 12px 0 11px; font-size: 18px; font-weight: 620; line-height: 1.3; letter-spacing: -.55px; }
.case-card>.soft, .assistant-card>.soft { font-size: 12px; margin: 9px 0 13px; }
.case-line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 12px 0 18px; }
.case-status { padding: 4px 6px; font-size: 10.2px; background: #eef4f6; color: #456777; }
.mini-owner { gap: 5px; font-size: 10.7px; color: #536971; }
.mini-avatar { width: 20px; height: 20px; background: #e2ece8; color: #386456; font-size: 8px; }
.assistant-card { background: linear-gradient(150deg,#f0f8f4,#fff 75%); }
.assistant-card .case-kicker span:not(.icon-box) { font-size: 13px; color: #254f49; font-weight: 620; }
.question-short { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11.8px; font-weight: 515; padding: 9px 0; color: #38675e; border-top: 1px solid #e0ebe6; line-height: 1.5; }
.question-short:hover { color: #004b43; }
.event-card .text-link { margin-top: 2px; white-space: nowrap; }
.timeline { list-style: none; padding: 0 22px 6px; }
.timeline li { position: relative; display: grid; grid-template-columns: 39px 11px minmax(0,1fr); gap: 9px; padding: 4px 0 17px; }
.timeline li::before { content: ""; position: absolute; top: 14px; bottom: -7px; left: 52px; width: 1px; background: #d4e2e3; }
.timeline li:last-child::before { display: none; }
.timeline time { font: 10.5px var(--mono); color: #5c737b; padding-top: 4px; }
.timeline-dot { position: relative; z-index: 1; width: 9px; height: 9px; border: 2px solid #44978a; border-radius: 50%; background: white; margin-top: 5px; }
.timeline-dot.sensor { border-color: #cf9350; }
.timeline-dot.limit { border-color: #6e91c9; }
.timeline-dot.load { border-color: #bd7951; }
.timeline-dot.work { border-color: #7486a1; }
.timeline li strong { font-size: 13px; font-weight: 620; }
.timeline li p, .drawer-hint, .field-help { color: var(--muted); font-size: 12px; line-height: 1.55; margin: 4px 0 6px; }
.citations { display: flex; flex-wrap: wrap; gap: 5px; }
.citation, .code-pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 4px; font: 10px var(--mono); letter-spacing: -.12px; }
.citation { color: #316469; background: #eff5f5; border: 1px solid #dbe7e7; padding: 3px 5px; white-space: nowrap; }
.citation:hover { color: #00594f; border-color: #a2c8bf; background: #e5f2ed; }
.workspace-footer { display: flex; gap: 10px; justify-content: space-between; margin-top: 21px; color: #687a81; font-size: 10px; }
.workspace-footer b { padding: 0 3px; }
.map-layout { display: grid; grid-template-columns: minmax(0,2.5fr) minmax(230px,1fr); gap: 18px; margin-bottom: 18px; }
.map-card { background: #173743; color: #f5fbfb; border: 1px solid #2e4c54; display: flex; flex-direction: column; justify-content: space-between; }
.map-heading { padding: 20px 22px 9px; display: flex; align-items: center; justify-content: space-between; }
.map-heading span { color: #abc1c6; font-size: 10.5px; }
.network-svg { display: block; width: 100%; height: auto; }
.network-svg a:hover path:last-of-type, .network-svg a:focus path:last-of-type { stroke-width: 4; }
.map-legend { display: flex; gap: 15px; flex-wrap: wrap; padding: 9px 20px 15px; color: #c8d9dc; font-size: 10.5px; }
.map-legend span { display: flex; align-items: center; gap: 5px; }
.network-dot.normal { background: #67bcb7; } .network-dot.fallback { background: #f5c16c; } .network-dot.overdue { background:#e6a786; }
.map-aside h2, .notebook-head h2 { margin: 13px 0 8px; font-size: 25px; line-height: 1.18; letter-spacing: -1px; font-weight: 635; }
.map-aside .case-kicker code { margin-left: 0; }
.table-scroll { overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; white-space: nowrap; }
.data-table th { padding: 10px 12px; background: #f5f7f8; border-block: 1px solid #e1e8e9; font-size: 10.4px; color: #566b74; font-weight: 590; }
.data-table td { padding: 12px; border-bottom: 1px solid #e6ebed; color: #344d57; font-variant-numeric: tabular-nums; }
.data-table th:first-child, .data-table td:first-child { padding-left: 21px; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: #f7faf9; }
.data-table tr.selected-line td { background: #eff7f3; }
.data-table td strong, .table-anchor { font-weight: 585; }
.table-anchor { color: var(--teal); }
.data-table small, .file-row small, .handover-row small { display: block; margin-top: 3px; font-size: 10.75px; color: var(--muted); }
.data-table.dense td { padding: 7px 10px; font-size: 10.8px; }
.data-table.dense th { padding: 7px 10px; font-size: 10px; }
.data-table.dense td:first-child, .data-table.dense th:first-child { padding-left: 20px; }
.table-empty { padding: 22px; font-size: 13px; color: var(--muted); }
.notebook-layout { display: grid; grid-template-columns: minmax(200px,.85fr) minmax(0,2.2fr); gap: 18px; align-items: start; }
.case-list { padding: 0 9px 9px; }
.case-list .card-header { padding-inline: 9px; }
.file-row { align-items: center; justify-content: space-between; }
.file-row strong, .file-row code { display: block; }
.file-row strong { margin: 5px 0; }
.notebook-head { padding: 21px; }
.notebook-head .case-kicker code { margin-left: 0; }
.case-top, .case-controls, .notebook-actions, .form-foot, .ledger-tools, .drawer-footer { display: flex; align-items: center; gap: 12px; }
.case-top, .notebook-actions, .form-foot, .drawer-footer { justify-content: space-between; }
.notebook-head>.soft { font-size: 12px; }
.case-controls { margin: 19px 0; align-items: flex-end; flex-wrap: wrap; }
.case-controls label, form>label { font-size: 11.5px; font-weight: 575; color: #405a63; }
.case-controls label { display: grid; gap: 6px; flex: 1; }
.case-controls select, textarea, .search-box { border: 1px solid #cbd8db; background: #fff; border-radius: 7px; }
.case-controls select { padding: 8px; width: 100%; font-size: 12px; }
.notebook-actions { border-top: 1px solid var(--line); padding-top: 15px; flex-wrap: wrap; }
.linked-work { gap: 7px; }
.linked-work .soft { font-size: 11px; }
.findings form { padding: 0 21px 18px; }
textarea { display: block; width: 100%; resize: vertical; padding: 10px 12px; line-height: 1.65; font-size: 12.6px; margin: 6px 0 10px; min-height: 52px; }
textarea::placeholder, input::placeholder { color: #788a91; }
.source-select { max-width: 66%; }
.source-select select { width: 100%; }
.finding-list { list-style: none; margin: 0 21px 16px; }
.finding-list li { border-bottom: 1px solid var(--line); padding: 9px 0; }
.finding-list small { color: #56716d; font-size: 10.5px; }
.finding-list p { font-size: 13px; line-height: 1.55; margin: 5px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ledger-tools { padding: 0 21px 15px; flex-wrap: wrap; }
.search-box { display: flex; align-items: center; gap: 7px; padding: 0 10px; min-height: 36px; color: var(--muted); flex: 1; max-width: 390px; min-width: 175px; }
.search-box input { width: 100%; min-width: 0; border: 0; background: transparent; font-size: 12px; padding: 8px 0; outline-offset: 1px; }
.large-empty { text-align: center; padding: 44px 20px; }
.large-empty .icon-box { width: 40px; height: 40px; }
.large-empty h2 { font-size: 20px; margin: 14px 0; letter-spacing: -.5px; }
.large-empty p { color: var(--muted); margin: 7px auto 14px; line-height: 1.55; max-width: 350px; font-size: 13px; }
.handover-row { display: flex; align-items: center; gap: 12px; padding: 17px 21px; border-top: 1px solid var(--line); }
.handover-row:hover { background: #f2f8f5; }
.handover-row>svg { margin-left: auto; }
.handover-row strong { font-size: 14px; font-weight: 600; }
.dialog-open { overflow: hidden; }
.veil { position: fixed; inset: 0; z-index: 45; background: #101f2c61; display: flex; justify-content: flex-end; }
.drawer { width: min(100%,485px); height: 100dvh; display: flex; flex-direction: column; background: #fff; border-left: 1px solid #d8e4e5; box-shadow: -12px 0 50px #0e25312b; outline: none; }
.drawer-header { padding: 19px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drawer-heading { display: flex; align-items: center; gap: 9px; }
.drawer-heading .icon-box { width: 34px; height: 34px; }
.drawer-heading h2 { font-size: 18px; font-weight: 650; letter-spacing: -.6px; }
.drawer-heading div>span { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.drawer-body { overflow: auto; overscroll-behavior: contain; padding: 20px 23px 32px; }
.back-link { margin-bottom: 17px; }
.record-intro h3, .answer-card h3 { margin: 12px 0 7px; font-size: 23px; letter-spacing: -.75px; color: var(--ink); line-height: 1.24; }
.record-intro p { color: var(--muted); font-size: 12px; }
.code-pill { padding: 5px 7px; background: #e8f1f2; color: #3b6770; }
.record-reading { margin: 20px 0 10px; padding: 16px; border-radius: 8px; background: #eef6f3; border: 1px solid #dceae3; }
.record-reading span, .record-reading strong { display: block; }
.record-reading span { color: #57756c; font-size: 11px; }
.record-reading strong { font-size: 30px; font-weight: 620; letter-spacing: -1px; margin-top: 4px; color: #204f44; }
.record-reading small { font-size: 15px; }
.facts { margin: 15px 0; }
.facts div { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; padding: 10px 0; border-bottom: 1px solid #e3e9eb; font-size: 12px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 555; text-align: right; }
.compact-facts { margin: 12px 0 15px; }
.compact-facts div { padding: 7px 0; font-size: 11.5px; }
.record-note { margin: 15px 0; padding: 13px; background: #f2f5f6; border-radius: 8px; }
.record-note h4, .drawer-section-title { font-size: 12px; color: #425c64; font-weight: 630; }
.record-note p { font-size: 12.6px; line-height: 1.62; margin-top: 5px; }
.record-note .citation { margin-top: 7px; }
.import-details { margin-top: 15px; border: 1px solid #dce5e6; border-radius: 7px; padding: 11px 12px; }
.import-details summary { cursor: pointer; font-size: 12px; font-weight: 580; color: #38645e; }
.import-details pre { margin: 10px 0 0; padding: 11px; border-radius: 5px; background: #f3f6f6; font: 10px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.drawer-footer { margin-top: 21px; border-top: 1px solid var(--line); padding-top: 16px; flex-wrap: wrap; }
.drawer-footer>span { color: #667a82; font-size: 10.7px; }
.scope-line { display: flex; align-items: center; gap: 7px; border: 1px solid #d8e5e5; border-radius: 7px; background: #f3f8f7; padding: 10px 11px; color: #3b6866; margin-bottom: 18px; }
.scope-line b { font-weight: 590; font-size: 12px; }
.scope-line span { margin-left: auto; color: #62787b; font: 10.7px var(--mono); }
.drawer-section-title { margin: 17px 0 9px; }
.prompts { display: grid; gap: 6px; }
.prompt { display: flex; justify-content: space-between; align-items: center; padding: 11px 12px; border: 1px solid #d7e3e4; border-radius: 7px; font-size: 12.5px; font-weight: 535; gap: 10px; }
.prompt:hover, .prompt.chosen { border-color: #aad0c3; background: #eef7f3; color: #115f51; }
.drawer-hint { margin-top: 15px; font-size: 11.5px; }
.answer-card { border-radius: 9px; background: #f4f9f6; border: 1px solid #d5e7dd; padding: 16px; }
.answer-card .case-kicker { color: #356e5d; }
.answer-card h3 { font-size: 19px; }
.claim { padding: 11px 0; border-top: 1px solid #dde9e2; }
.claim:first-of-type { border-top: 0; }
.claim p, .saved-text { font-size: 13px; line-height: 1.62; }
.claim .citations { margin-top: 6px; }
.answer-card .btn { margin-top: 6px; }
.saved-text { white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid #dce5e6; border-radius: 8px; padding: 15px; background: #fafcfc; }
.toast { position: fixed; z-index: 70; right: 18px; bottom: 18px; max-width: min(410px,calc(100vw - 36px)); padding: 11px 15px; border-radius: 8px; background: #183e39; box-shadow: 0 3px 16px #19352f22; color: #f4fffb; font-size: 12px; line-height: 1.45; opacity: 0; transform: translateY(5px); pointer-events: none; transition: opacity .14s,transform .14s; }
.toast.visible { opacity: 1; transform: none; }
.toast.error { background: #763f2d; }
@media(min-width:1550px) {
  :root { --sidebar: 224px; }
  .desk-grid { grid-template-columns: minmax(0,2.5fr) minmax(310px,1fr); gap: 22px; }
  .primary-stack, .side-stack { gap: 20px; }
  .hero-top { padding-block: 23px; }
}
@media(max-width:1150px) {
  :root { --sidebar: 181px; }
  .sidebar { padding-inline: 10px; }
  .sidebar-bottom { margin-inline: -10px; padding-inline: 19px; }
  .nav-item { gap: 8px; font-size: 12px; padding-inline: 9px; }
  .brand { padding-left: 7px; }
  .desk-grid { grid-template-columns: minmax(0,1fr) 248px; gap: 13px; }
  .primary-stack, .side-stack { gap: 13px; }
  main { padding-inline: 20px; }
  .metric { padding-inline: 15px; }
  .hero-top { padding-inline: 17px; }
  .hero-meta { font-size: 10px; }
  .hero-state>span:last-child:not(.badge) { font-size: 9.3px; }
  .card-header { padding-inline: 16px; }
  .case-card, .assistant-card { padding: 15px; }
  .notebook-layout { grid-template-columns:minmax(170px,.82fr) minmax(0,2.2fr); gap: 13px; }
  .top-actions { gap: 12px; }
}
@media(max-width:950px) and (min-width:761px) {
  :root { --sidebar: 71px; }
  .sidebar { align-items: center; padding-top: 23px; }
  .brand { padding: 0; } .brand>div, .nav-label, .nav-item>span, .nav-item small, .replay-env, .operator>div { display: none; }
  .sidebar nav { margin-top: 40px; gap: 9px; }
  .nav-item { width: 44px; height: 43px; justify-content: center; }
  .sidebar-bottom { padding: 15px 0; }
  .operator { padding-top: 0; }
}
@media(max-width:760px) {
  :root { --sidebar: 207px; }
  .sidebar { transform: translateX(-100%); visibility: hidden; padding-top: 24px; transition: transform .16s ease; }
  .workspace { margin-left: 0; }
  .mobile-menu { display: inline-flex; margin-left: -6px; }
  .menu-open .sidebar { visibility: visible; transform: none; z-index: 31; }
  .menu-open .nav-shade { display: block; position: fixed; inset: 0; z-index: 30; border: 0; background: #10222d65; }
  .topbar { min-height: 53px; padding: 7px 16px; }
  .top-actions { gap: 10px; }
  .breadcrumbs { gap: 5px; font-size: 11.5px; }
  .breadcrumb-home, .breadcrumb-slash { display: none; }
  .shift-date { display: none; }
  .clock-select { padding-left: 0; border: 0; gap: 4px; }
  main { padding: 22px 16px 15px; }
  .page-heading { margin-bottom: 17px; }
  .desk-grid { grid-template-columns: minmax(0,1fr); }
  .desk-grid>.primary-stack, .desk-grid>.side-stack { display: contents; }
  .corridor-hero { grid-row: 1; } .trend-card { grid-row: 2; } .queue-card { grid-row: 3; } .case-card { grid-row: 4; } .assistant-card { grid-row: 5; } .event-card { grid-row: 6; }
  .map-layout, .notebook-layout { grid-template-columns: minmax(0,1fr); }
  .notebook-layout>.primary-stack:first-child .assistant-card { display: none; }
  .case-list { display: flex; align-items: stretch; gap: 4px; flex-wrap: wrap; padding: 9px; }
  .case-list .card-header { align-items: center; padding: 7px; }
  .case-list .card-header h2 { font-size: 15px; }
  .file-row { padding: 7px 9px; }
  .case-list .file-row small { display: none; }
}
@media(max-width:520px) {
  .synthetic { gap: 4px; font-size: 9.5px; }
  .synthetic-long { display: none; } .synthetic-short { display: inline; }
  .assistant-launch { padding: 6px 8px; min-height: 30px; font-size: 11px; gap: 4px; }
  .topbar { padding-inline: 11px; } .top-actions { gap: 7px; }
  .clock-select select { font-size: 10px; }
  main { padding-inline: 11px; }
  h1 { font-size: 29px; letter-spacing: -1.05px; }
  .page-heading { align-items: flex-start; gap: 6px; }
  .page-heading p { font-size: 11.5px; max-width: 250px; }
  .replay-btn { min-height: 32px; font-size: 10.8px; gap: 5px; padding: 7px 8px; }
  .hero-top { min-height: 115px; padding: 15px 13px; }
  .hero-text h2 { font-size: 29px; }
  .corridor-drawing { width: 29%; height: 85px; }
  .hero-state { gap: 6px; } .badge { font-size: 9.8px; padding: 4px 6px; }
  .hero-state>span:last-child:not(.badge) { font-size: 8.8px; }
  .metrics { padding: 13px 0; }
  .metric { padding: 0 10px; }
  .metric-label { font-size: 9.3px; gap: 4px; }
  .metric-source { font-size: 8px; }
  .metric strong { font-size: 24px; }
  .card-header { padding: 15px 13px 11px; }
  .card-header h2 { font-size: 17px; }
  .legend { padding-inline: 13px; gap: 10px; }
  .legend span { font-size: 9.4px; }
  .chart-wrap { padding-inline: 2px; }
  .trend-svg { min-height: 104px; }
  .margin-strip { padding: 10px 12px; gap: 7px; font-size: 10px; }
  .segment button { font-size: 10px; min-height: 21px; padding: 3px 6px; }
  .timeline { padding-inline: 13px; }
  .page-heading .select-wrap { max-width: 140px; }
  .ledger-tools { padding-inline: 13px; gap: 6px; }
  .source-select { max-width: 56%; }
  .notebook-head, .findings form { padding-inline: 14px; }
  .drawer-body { padding-inline: 16px; } .drawer-header { padding-inline: 15px; }
  .scope-line span { font-size: 9.6px; }
}
@media(max-width:375px) {
  .page-heading:has(.select-wrap) { flex-wrap: wrap; gap: 9px; }
  .assistant-launch span { display: none; }
  .assistant-launch { min-width: 31px; }
}
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; } }
