:root {
  --red: #e10613;
  --red-dark: #a80712;
  --action: #0f5f6b;
  --action-dark: #0c4c56;
  --ink: #1c1e21;
  --muted: #5d6770;
  --line: #e3e6ea;
  --paper: #f3f4f6;
  --card: #fff;
  --high: #9f1239;
  --high-bg: #fde8ec;
  --med: #8a5b00;
  --med-bg: #fff3d6;
  --ok: #0f6b45;
  --ok-bg: #e5f6ee;
  --esc: #6d28a8;
  --esc-bg: #f3e8ff;
  --info: #9f1239;
  --shadow: 0 1px 2px rgba(20, 24, 28, .04), 0 8px 24px rgba(20, 24, 28, .04);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
html:not(.signed-in) .shell,
html:not(.signed-in) #toast,
html:not(.signed-in) .oxa-layer { display: none !important; }
html.signed-in .login { display: none !important; }
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(280px, 420px) minmax(0, 1fr); }
.login-brand { background: #000; color: #fff; padding: 40px 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.login-brand img { width: 176px; height: auto; display: block; }
.login-kicker { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #ff4d57; }
.login-brand > div { container-type: inline-size; }
.login-brand h1 { font-size: clamp(18px, 8.6cqi, 30px); letter-spacing: -.04em; margin-top: 8px; white-space: nowrap; }
.login-legal { margin: 12px 0 0; max-width: 36ch; color: #b0b0b0; font-size: 11px; font-weight: 500; line-height: 1.45; letter-spacing: 0; }
.login-panel { display: grid; place-items: center; padding: 32px 24px; background: linear-gradient(180deg, #f7f8fa 0%, #e4e8ee 100%); }
.login-card { width: min(420px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0; overflow: hidden; box-shadow: 0 18px 40px -16px rgba(16, 24, 32, .22); }
.login-mark { background: #000; text-align: center; padding: 28px 32px; }
.login-mark a { display: inline-block; }
.login-mark img { width: 220px; height: auto; display: block; }
.login-fields { padding: 28px 28px 24px; }
.login-error { margin: 4px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--high-bg); color: var(--high); font-size: 14px; font-weight: 700; }
.login-card .field input { height: 44px; }
.login-card .primary { width: 100%; margin-top: 6px; padding: 12px; }
.login-powered { margin: 22px 0 0; text-align: center; color: #94a3b8; font-size: 11px; line-height: 1.4; }
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 252px;
  flex: none;
  background: #000;
  color: #fff;
  padding: 22px 16px 18px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand img { width: 176px; height: auto; display: block; background: #000; }
.brand-title { margin: 18px 0 16px; }
.brand-title strong { display: block; font-size: 16px; }
.sidebar nav { display: grid; gap: 4px; }
.oxa-open { margin-top: auto; display: flex; align-items: center; gap: 10px; border: 1px solid #333; background: #111; color: #fff; border-radius: 10px; padding: 8px 12px; font-weight: 800; text-align: left; }
.oxa-open:hover { border-color: #5ee7f0; color: #5ee7f0; }
.oxa-open img, .oxa-face { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: center 18%; background: #000; flex: none; }
.oxa-head .oxa-face { width: 52px; height: 52px; }
.oxa-layer { position: fixed; inset: 0; z-index: 45; }
.oxa-backdrop { position: absolute; inset: 0; border: 0; padding: 0; background: rgba(16, 24, 32, .4); }
.oxa-drawer { position: absolute; top: 0; right: 0; height: 100%; width: min(420px, 100%); background: #fff; border-left: 1px solid var(--line); box-shadow: -8px 0 24px rgba(16, 24, 32, .12); display: flex; flex-direction: column; }
.oxa-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.oxa-head > div { flex: 1; min-width: 0; }
.oxa-head h2 { font-size: 18px; }
.oxa-head p { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.oxa-log { flex: 1; overflow: auto; padding: 16px; display: grid; align-content: start; gap: 10px; }
.oxa-row { display: flex; align-items: flex-end; gap: 8px; max-width: 100%; }
.oxa-row .oxa-face { width: 28px; height: 28px; }
.oxa-msg { max-width: 92%; padding: 10px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; }
.oxa-msg.user { justify-self: end; background: #111; color: #fff; }
.oxa-row .oxa-msg { max-width: none; background: #f4f5f7; }
.oxa-msg.is-pending { color: var(--muted); font-style: italic; }
.oxa-msg p { margin: 0 0 10px; font-weight: 400; }
.oxa-msg p:last-child { margin-bottom: 0; }
.oxa-msg p strong, .oxa-steps span strong { font-weight: 800; }
.oxa-steps { list-style: none; counter-reset: oxa; margin: 0; padding: 0; display: grid; gap: 10px; }
.oxa-steps li { counter-increment: oxa; display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 8px; row-gap: 2px; align-items: start; }
.oxa-steps li::before { content: counter(oxa); grid-row: 1 / span 2; width: 22px; height: 22px; border-radius: 50%; background: #111; color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.oxa-steps li.is-line::before { grid-row: 1; align-self: start; margin-top: 1px; }
.oxa-steps strong, .oxa-steps span { grid-column: 2; }
.oxa-steps strong { font-size: 14px; }
.oxa-steps span { color: #3d474f; font-size: 13px; line-height: 1.45; }
.oxa-prompts { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.oxa-prompts button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 700; }
.oxa-form { display: flex; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.oxa-form input { flex: 1; height: 40px; }
.oxa-form .primary { width: auto; margin: 0; padding: 8px 14px; }
.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 56px;
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  color: #d5d5d5;
  text-align: left;
  border-radius: 8px;
  padding: 8px 12px;
}
.nav span { display: block; line-height: 1.15; }
.nav svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.nav:hover, .nav.active { background: #1a1a1a; color: #fff; }
.nav.active { border-left-color: var(--red); }
.nav.is-muted { color: #6b6f74; }
.nav.is-muted:hover, .nav.is-muted.active { color: #8d9196; background: transparent; }
.nav.is-muted.active { border-left-color: #6b6f74; }
.workspace { flex: 1; min-width: 0; padding: 22px 28px 56px; }
.topbar { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.topbar h1 { font-size: 30px; letter-spacing: -.04em; margin-top: 4px; }
.top-actions { display: flex; align-items: flex-end; gap: 12px; }
.help-toggle { width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #06b6d4; display: inline-flex; align-items: center; justify-content: center; }
.help-toggle[aria-expanded="true"] { background: rgba(6, 182, 212, .12); border-color: rgba(6, 182, 212, .45); color: #0891b2; }
.help-layer { position: fixed; inset: 0; z-index: 40; }
.help-backdrop { position: absolute; inset: 0; border: 0; padding: 0; background: rgba(16, 24, 32, .4); }
.help-drawer { position: absolute; top: 0; right: 0; height: 100%; width: min(420px, 100%); background: #fff; border-left: 1px solid var(--line); box-shadow: -8px 0 24px rgba(16, 24, 32, .12); display: flex; flex-direction: column; }
.help-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.help-head h2 { font-size: 15px; font-weight: 600; }
.help-x { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.help-x:hover { background: var(--paper); color: var(--ink); }
.help-body { overflow: auto; padding: 16px 18px 28px; }
.help-section { margin: 0 0 18px; }
.help-section h3 { font-size: 13px; margin-bottom: 6px; }
.help-section p, .help-section li { color: #3e4850; font-size: 14px; line-height: 1.55; }
.help-section p { margin: 0 0 8px; }
.help-section ul { margin: 0; padding-left: 18px; }
.help-section li + li { margin-top: 6px; }
.export-note { margin: 0; text-align: right; }
.export-note small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.export-note strong { display: block; margin-top: 2px; font-size: 16px; }
.date-control { display: grid; gap: 6px; }
.date-control > span, .filter label span, .field span { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.date-stepper { display: flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.date-stepper button, .icon-btn {
  border: 0;
  background: #fff;
  width: 36px;
  height: 40px;
  font-size: 22px;
  color: #333;
}
.date-stepper button:disabled { color: #c5c8cc; cursor: default; }
.date-stepper select, select, input, textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
}
.date-stepper select { border: 0; border-radius: 0; min-width: 132px; height: 40px; flex: 1; }
select:focus, input:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; }
.queue-chip {
  background: #111;
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 168px;
  font-size: 13px;
  font-weight: 700;
}
.queue-chip small { display: block; color: #cfcfcf; font-weight: 600; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.run-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 6px;
}
.run-stat, .panel, .metric, .signal, .scenario, .day, .review-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.run-stat { padding: 10px 11px; border-radius: 10px; }
.run-stat span, .metric span, .signal span, .figure span { display: block; color: var(--muted); font-size: 12px; }
.run-stat span { font-size: 10px; }
.run-stat strong, .metric strong { display: block; margin-top: 4px; font-size: 22px; letter-spacing: -.03em; }
.run-stat strong { margin-top: 3px; font-size: 18px; }
.run-stat small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 600; }
.run-note { margin: 8px 0 18px; color: #3e4850; font-size: 14px; line-height: 1.5; }
.meeting { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.meeting button, .text-button, .primary, .ghost, .status-picks button {
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 11px 12px;
  text-align: left;
}
.meeting button strong, .scenario strong { display: block; font-size: 14px; }
.meeting button span, .scenario span, .signal small, .metric small, .figure small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.meeting button:hover, .scenario:hover, .signal:hover, .day button:hover { border-color: #c9ced4; }
.metrics, .signals, .dash-grid, .two-col, .figures, .facts { display: grid; gap: 12px; }
.metrics, .signals, .figures, .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 12px 0; }
.dash-grid, .two-col { grid-template-columns: 1.4fr .8fr; align-items: start; }
.col-stack { display: grid; gap: 12px; align-content: start; }
.metric, .signal, .scenario, .panel { padding: 16px; }
.metric { text-align: left; width: 100%; }
.section-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; margin: 22px 0 10px; }
.section-head h2, .panel h2, .panel h3 { font-size: 18px; letter-spacing: -.02em; }
.section-head p, .panel p, .panel li { color: var(--muted); font-size: 14px; line-height: 1.55; }
.panel h2, .panel h3 { margin-bottom: 8px; }
.panel ol, .panel ul { margin: 8px 0 0; padding-left: 18px; }
.chart { display: flex; align-items: flex-end; gap: 3px; height: 168px; margin-top: 14px; }
.bar { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bar-fill { display: block; width: 70%; max-width: 16px; background: #e6e8ec; border-radius: 4px 4px 0 0; height: calc(var(--h) * 1.2px); min-height: 4px; }
.bar.has .bar-fill { background: #f3b3b8; }
.bar.today .bar-fill { background: var(--red); }
.bar-label { height: 32px; margin-top: 6px; font-size: 10px; color: var(--muted); text-align: center; }
.scenario-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.scenario { width: 100%; text-align: left; }
.scenario em { font-style: normal; color: var(--red-dark); font-size: 12px; font-weight: 700; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.filter { display: grid; gap: 6px; }
.filter select, .section-head input, .search { min-width: 150px; }
.table-wrap { overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #73808a; background: #fafbfc; }
td, th { padding: 12px 14px; border-bottom: 1px solid #eef1f4; vertical-align: top; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td { font-size: 13px; }
td strong { display: block; }
td small, .muted { display: block; margin-top: 3px; color: #80909b; font-size: 12px; }
tr:last-child td { border-bottom: 0; }
.clickable { cursor: pointer; }
.clickable:hover { background: #fafbfc; }
.refund-row { background: #fff8f8; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 8px; font-size: 11px; font-weight: 800; background: #eef1f4; color: #52606a; }
.badge.high { background: var(--high-bg); color: var(--high); }
.badge.open { background: #eef1f4; color: #3e4850; }
.sev { display: inline-flex; align-items: center; gap: 6px; border-radius: 6px; padding: 5px 8px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.sev i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.sev.sev-high { background: var(--red); color: #fff; }
.sev.sev-medium { background: #f6c445; color: #5c3b00; }
.sev.sev-low { background: #eef1f4; color: #52606a; }
.sev-row.sev-high { box-shadow: inset 4px 0 var(--red); }
.sev-row.sev-medium { box-shadow: inset 4px 0 #e0a106; }
.sev-row.sev-low { box-shadow: inset 4px 0 #c5ced6; }
.badge.low { background: #eef1f4; color: #52606a; }
.badge.medium { background: var(--med-bg); color: var(--med); }
.badge.investigating { background: #fff3d6; color: #8a5b00; }
.badge.explained, .badge.closed { background: var(--ok-bg); color: var(--ok); }
.badge.assessment { background: #eef1f4; color: #3e4850; }
.badge.escalated { background: var(--esc-bg); color: var(--esc); }
.badge.conditional { background: #fff4f3; color: var(--red-dark); }
.badge.new { background: #e5f4f6; color: var(--action-dark); }
.badge.ongoing { background: #e7eef8; color: #1d4e89; }
.review {
  border-radius: 8px;
  border: 1px solid var(--action);
  background: var(--action);
  color: #fff;
  padding: 7px 12px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}
.review:hover { background: var(--action-dark); border-color: var(--action-dark); }
.pager { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: 10px; color: var(--muted); font-size: 13px; }
.pager div { display: flex; gap: 6px; }
.ghost, .primary { padding: 8px 12px; font-weight: 700; }
.primary { background: var(--action); color: #fff; border-color: var(--action); text-align: center; }
.primary:hover { background: var(--action-dark); border-color: var(--action-dark); }
.back { border: 0; background: transparent; color: var(--red-dark); font-weight: 800; padding: 0 0 12px; }
.case-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.kicker { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.kicker .when { margin-left: auto; color: var(--muted); font-size: 13px; }
.narrative, .threshold, .watch { background: #f8f9fa; border-radius: 12px; padding: 14px 16px; margin: 12px 0; }
.threshold { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.policy { margin-top: 8px; font-size: 13px; }
.timeline { margin: 8px 0 0; display: grid; gap: 8px; }
.tl {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  min-width: 0;
}
.tl-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.tl strong, .tl small { display: block; }
.tl-mark { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.tl-amount { flex: none; text-align: right; }
.tl-amount small { margin-top: 3px; color: #80909b; font-weight: 700; white-space: nowrap; }
.tl-body { min-width: 0; }
.tl-body strong { line-height: 1.35; overflow-wrap: anywhere; }
.tl-body small { margin-top: 4px; color: #80909b; line-height: 1.4; overflow-wrap: anywhere; }
.tl.is-threshold { border-color: #f3c1c6; background: #fff8f8; }
.tl.is-threshold .tl-mark { color: var(--red-dark); }
.figure, .facts > div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.facts > div strong, .figure strong { display: block; margin-top: 4px; }
.money-neg { color: var(--high); font-weight: 800; }
.review-card { padding: 0; position: sticky; top: 12px; min-width: 0; display: flex; flex-direction: column; overflow: visible; }
.review-fixed { flex: none; padding: 16px 16px 8px; background: #fff; border-bottom: 1px solid var(--line); }
.status-help { min-height: 3.9em; margin: 0; font-size: 13px; line-height: 1.3; }
.review-rest { overflow: auto; max-height: min(46vh, 420px); padding: 8px 16px 16px; }
.evidence-picks { display: grid; gap: 6px; margin: 8px 0 4px; font-size: 13px; }
.evidence-picks label { display: flex; gap: 8px; align-items: flex-start; }
.review-error { margin: 8px 0 0; color: var(--red-dark); font-size: 13px; line-height: 1.4; }
.schema-table { margin-top: 12px; }
.schema-table td code { font-size: 12px; }
.review-label { margin: 12px 0 0; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.status-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 0 12px; }
.status-picks button { text-align: center; font-weight: 700; white-space: normal; line-height: 1.25; min-height: 42px; }
.status-picks button[aria-pressed="true"] { background: #111; color: #fff; border-color: #111; }
.review-card .primary { width: 100%; margin-top: 4px; }
.field { display: grid; gap: 6px; margin: 10px 0; }
.field textarea, .field select, .field input { width: 100%; resize: vertical; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 8px; }
.field select, .field input { resize: none; height: 36px; }
.history { display: grid; gap: 0; margin-top: 18px; }
.history > strong { margin-bottom: 4px; }
.history article { display: grid; gap: 2px; border-top: 1px solid var(--line); padding: 12px 0; font-size: 13px; line-height: 1.45; }
.history article strong { display: block; }
.history article small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.history article p { margin: 6px 0 0; line-height: 1.45; }
.dropzone {
  border: 1.5px dashed #c5ccd3;
  border-radius: 14px;
  padding: 22px;
  background: #fff;
  text-align: center;
}
.dropzone.drag { border-color: var(--red); background: #fff7f7; }
.dropzone input { margin-top: 10px; }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.dow { font-size: 11px; font-weight: 800; color: #8b969e; text-align: center; }
.day { padding: 8px; min-height: 86px; display: flex; flex-direction: column; gap: 4px; }
.day strong { font-size: 14px; }
.day small { color: var(--muted); font-size: 11px; }
.day.in-run { box-shadow: inset 3px 0 var(--red); }
.day button { margin-top: auto; border: 0; background: #f4f5f7; border-radius: 7px; padding: 5px 6px; font-size: 11px; font-weight: 700; }
.schema { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.schema code, code { background: #f4f5f7; border-radius: 5px; padding: 2px 5px; font-size: 12px; }
.log { display: grid; gap: 6px; margin-top: 8px; }
.log p { font-size: 13px; color: var(--muted); }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); }
.tx-detail { display: grid; grid-template-columns: 1.2fr .8fr; gap: 12px; margin-bottom: 12px; }
.seg { display: flex; gap: 6px; }
.seg button[aria-pressed="true"] { background: #111; color: #fff; border-color: #111; }
.error { color: var(--high); font-size: 13px; margin-top: 8px; }
.toast {
  position: fixed;
  bottom: 18px;
  right: 18px;
  background: #111;
  color: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  max-width: 320px;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: .2s ease;
}
.toast.show { opacity: 1; transform: none; }
.range-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 16px; margin-bottom: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; position: relative; }
.card-story { position: relative; align-self: end; margin-bottom: 2px; }
.card-story-toggle { width: 32px; height: 32px; }
.card-story-panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 6; width: min(380px, calc(100vw - 48px)); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(16, 24, 32, .12); padding: 12px; display: grid; gap: 8px; }
.card-story-panel[hidden] { display: none; }
.card-story-panel p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.card-story-panel button { display: grid; gap: 2px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; line-height: 1.4; }
.card-story-panel button strong { font-size: 14px; }
.card-story-panel button span { color: var(--muted); font-size: 13px; font-weight: 500; }
.card-story-panel button:hover { border-color: #c9ced4; }
.range-bar .ghost { align-self: end; margin-bottom: 2px; white-space: nowrap; }
.range-bar label { display: grid; gap: 2px; color: var(--muted); font-size: 11px; font-weight: 700; }
.range-bar select, .range-bar input { color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; min-width: 148px; }
.rate-row small, .week-row small, .week-row span, .token-line span, .token-line small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.hours, .stacks { display: grid; gap: 6px; align-items: end; min-height: 168px; }
.hours { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.stacks { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.hour-col, .stack { display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; min-height: 140px; }
.hour-col button, .stack button, .legend i, .seg-refund, .seg-discount, .seg-cash, .seg-stock, .seg-card { border: 0; border-radius: 4px; width: 100%; padding: 0; }
.lbl { font-size: 10px; color: var(--muted); text-align: center; }
.hour-col.late .lbl { color: var(--red-dark); font-weight: 800; }
.seg-refund { background: #9f1239; }
.seg-discount { background: #c4880a; }
.seg-cash { background: #1f4b73; }
.seg-stock { background: #0f6b45; }
.seg-card { background: #e10613; }
.seg-empty { background: #eceff2; min-height: 8px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 10px; font-size: 12px; color: var(--muted); }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.legend i { display: inline-block; width: 12px; height: 12px; }
.rate-row, .week-row, .token-line button, .figure { text-align: left; width: 100%; }
.rate-row { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; align-items: center; margin-top: 8px; background: transparent; border: 0; padding: 0; }
.staff-panel p { margin-bottom: 4px; }
.staff-row { display: grid; grid-template-columns: auto auto 1fr auto; align-items: baseline; column-gap: 10px; row-gap: 2px; width: 100%; margin: 0; padding: 8px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; text-align: left; }
.staff-row strong { font-size: 14px; }
.staff-mark, .staff-sales { white-space: nowrap; font-size: 12px; font-weight: 700; }
.staff-mark { color: var(--ink); }
.staff-sales { color: var(--muted); font-weight: 600; }
.staff-rates { grid-column: 1 / -1; font-size: 12px; color: var(--muted); line-height: 1.3; white-space: nowrap; }
.staff-rates b { color: var(--ink); font-weight: 800; }
.head-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 10px 28px; }
.head-line .text-button {
  flex: none;
  padding: 3px 12px;
  line-height: 1.2;
  background: linear-gradient(#1a7382, var(--action));
  color: #fff;
  border: 1px solid #0a3d45;
  border-radius: 7px;
  font-weight: 700;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 1px 0 #0a3d45;
}
.head-line .text-button:hover { background: var(--action-dark); }
.head-line .text-button:active { transform: translateY(1px); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .28); }
.tracks { display: grid; gap: 4px; }
.track { display: block; height: 8px; background: #eef0f2; border-radius: 99px; overflow: hidden; }
.track i { display: block; height: 8px; width: 0; border-radius: 99px; }
.pair > .panel { min-width: 0; }
.heat { display: grid; grid-template-columns: minmax(0, 1.45fr) repeat(8, minmax(0, 1fr)); gap: 4px; margin-top: 12px; min-width: 0; }
.map-panel { margin-top: 12px; }
.map-panel .section-head { align-items: flex-start; }
.map-panel .section-head .ghost { flex: none; white-space: nowrap; }
.my-map { position: relative; margin-top: 8px; }
.my-map > svg { width: 100%; height: auto; display: block; }
.my-map > svg circle { pointer-events: none; }
.map-pin { position: absolute; width: var(--d, 28px); aspect-ratio: 1; height: auto; transform: translate(-50%, -50%); background: transparent; border: 0; padding: 0; border-radius: 50%; }
.map-panel.is-enlarged {
  position: fixed;
  z-index: 40;
  inset: 12px;
  margin: 0;
  overflow: auto;
  background: #fff;
  box-shadow: 0 18px 48px rgba(16, 24, 32, .24);
}
.map-panel.is-enlarged .my-map { overflow: auto; }
.map-panel.is-enlarged .my-map > svg { width: max(100%, 1560px); max-width: none; }
.map-pin:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }
.map-tip { display: none; position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; text-align: left; box-shadow: 0 8px 20px rgba(16, 24, 32, .12); z-index: 6; pointer-events: none; }
.map-pin.tip-left .map-tip { left: auto; right: calc(100% + 10px); }
.map-pin:hover .map-tip, .map-pin:focus-visible .map-tip { display: block; }
.map-tip strong, .map-row strong { display: block; font-size: 13px; }
.map-tip span, .map-row span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; line-height: 1.35; }
.map-tip .map-open, .map-row .map-open { color: var(--action); font-weight: 700; margin-top: 6px; }
.map-marks { display: inline-flex; gap: 4px; align-items: center; margin-right: 6px; vertical-align: middle; }
.map-tip .mark-svg, .map-marks .mark-svg, .legend .mark-svg { width: 14px; height: 14px; max-width: 14px; display: inline-block; vertical-align: -3px; flex: none; }
.legend i.mark-quiet, .mark-quiet { width: 8px; height: 8px; border-radius: 99px; display: inline-block; background: #fff; box-shadow: inset 0 0 0 2px #9aa3ab; }
.map-legend .rate-swatch { border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(15, 95, 107, .35); }
.map-legend .rate-swatch.low { width: 8px; height: 8px; background: rgb(214, 230, 226); }
.map-legend .rate-swatch.high { width: 18px; height: 18px; background: rgb(6, 55, 62); }
.map-exposure { margin: 12px 0 0; color: var(--ink); font-size: 14px; line-height: 1.4; }
.map-exposure strong { font-size: 20px; letter-spacing: -.03em; }
.map-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.map-window-note { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #f4f7f8; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.map-window-note p { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.45; }
.map-window-note .primary { flex: none; }
.map-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; align-items: start; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.map-row:hover, .map-row:focus-visible { border-color: #7eb8c0; box-shadow: 0 0 0 3px rgba(15, 95, 107, .16), 0 10px 24px rgba(15, 95, 107, .2); transform: translateY(-1px); outline: none; }
.map-row .map-types, .map-row .map-open, .map-row .map-money, .map-row > span:first-of-type { grid-column: 1 / -1; }
.map-row .map-money, .map-tip .map-money { color: var(--ink); font-weight: 700; }
.map-rate { font-size: 18px; letter-spacing: -.03em; line-height: 1; }
.map-row.is-note { cursor: default; background: #f7f8f9; }
.rule-list { display: grid; gap: 8px; margin-top: 12px; }
.rule-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; width: 100%; }
.rule-row.is-off { background: #f7f8f9; }
.rule-row.is-off .rule-box { color: transparent; }
.rule-main { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; text-align: left; background: transparent; border: 0; padding: 0; width: 100%; }
.rule-box { width: 22px; height: 22px; border: 2px solid #0f5f6b; border-radius: 6px; color: #0f5f6b; font-weight: 800; line-height: 18px; text-align: center; }
.rule-row strong { display: block; font-size: 15px; }
.rule-what, .rule-example { display: block; font-size: 13px; margin-top: 4px; line-height: 1.45; }
.rule-what { color: var(--ink); }
.rule-example { color: var(--muted); }
.rule-example b { color: var(--action); font-weight: 700; }
.rule-priority { display: grid; gap: 4px; justify-items: end; padding-top: 2px; }
.rule-priority span { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.rule-priority select { height: 32px; border-radius: 8px; border: 1px solid var(--line); font-weight: 800; padding: 0 8px; background: #fff; }
.rule-priority select.sev-high { background: var(--high-bg); color: var(--high); border-color: transparent; }
.rule-priority select.sev-medium { background: var(--med-bg); color: var(--med); border-color: transparent; }
.rule-priority select.sev-low { background: #eef1f4; color: #52606a; border-color: transparent; }
.planned-panel { margin-top: 12px; }
.planned-list { display: grid; gap: 8px; margin-top: 12px; }
.planned-card { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; background: #f7f8f9; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.planned-off { width: 22px; height: 22px; border: 2px solid var(--high); border-radius: 6px; color: var(--high); font-size: 13px; font-weight: 800; line-height: 18px; text-align: center; }
.planned-card strong { display: block; font-size: 15px; }
.heat > * { min-width: 0; }
.heat .hd { font-size: 11px; font-weight: 800; color: var(--muted); display: flex; flex-direction: column; justify-content: flex-end; line-height: 1.15; text-align: center; overflow-wrap: break-word; }
.heat .hd:nth-child(9n + 1) { align-items: flex-start; justify-content: center; text-align: left; }
.heat .hd small { font-weight: 600; }
.heat button { border: 0; border-radius: 8px; min-height: 36px; min-width: 0; padding: 4px 1px; font-size: 12px; font-weight: 800; line-height: 1; }
.heat button:disabled { background: #f4f5f7; color: #b0b7be; cursor: default; }
.featured .section-head { align-items: flex-start; }
.evidence-link { flex: none; align-self: flex-start; padding: 6px 10px; font-size: 12px; font-weight: 700; line-height: 1.2; white-space: nowrap; border-radius: 8px; background: var(--action); color: #fff; border: 1px solid var(--action); }
.evidence-link.is-quiet { background: #fff; color: var(--ink); border-color: var(--line); }
.token-line { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; list-style: none; padding: 4px 0 2px; margin: 12px 0 0; align-items: stretch; }
.token-line li { display: flex; min-width: 0; }
.token-line button { flex: 1; min-height: 108px; height: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 8px; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease; }
.token-line .hit { border-color: #f3c1c6; background: #fff8f8; }
.token-line button:hover {
  border-color: var(--action);
  background: #f4fafa;
  box-shadow: 0 8px 18px rgba(15, 95, 107, .14);
  transform: translateY(-2px);
}
.token-line button:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(15, 95, 107, .16);
}
.week-row { display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 8px; }
.bar.spike .bar-fill { background: var(--red); }
.figure { cursor: pointer; }
.overview-answer { margin: 0 0 8px; color: var(--muted); line-height: 1.35; white-space: nowrap; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.summary-grid .metric { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 8px; text-align: left; padding: 8px 12px; }
.summary-grid .metric span { grid-column: 1; }
.summary-grid .metric strong { grid-column: 2; margin-top: 0; font-size: 22px; }
.summary-grid .metric small { grid-column: 1 / -1; margin-top: 0; white-space: nowrap; }
.trend-panel, .pair, .featured { margin-top: 12px; }
.panel > .section-head { margin-top: 0; }
.queue-band { margin-top: 28px; }
.queue-band > .section-head { margin-top: 0; }
.trend-scroll { overflow-x: auto; margin-top: 4px; padding-bottom: 4px; }
.trend { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(36px, 1fr); gap: 6px; align-items: end; min-height: 168px; min-width: max(100%, calc(var(--days) * 44px)); }
.trend-col { display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; min-height: 148px; }
.trend-col button { border: 0; border-radius: 4px; width: 100%; padding: 0; }
.trend-col .met { background: linear-gradient(180deg, #4d7eaa, #16324f); color: #fff; font-size: 12px; font-weight: 700; }
.trend-col .quiet { display: block; height: 8px; background: #eceff2; border-radius: 4px; }
.seg-payment { background: #1f4b73; }
.trend-col .is-spike { box-shadow: inset 0 0 0 2px #111; }
.trend-col .is-building { background: repeating-linear-gradient(135deg, #d7e3ee, #d7e3ee 3px, #1f4b73 3px, #1f4b73 6px); }
.legend i.is-building { background: repeating-linear-gradient(135deg, #d7e3ee, #d7e3ee 2px, #1f4b73 2px, #1f4b73 4px); }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 12px; align-items: start; }
.priority-grid { display: grid; grid-template-columns: repeat(5, minmax(140px, 1fr)); gap: 10px; }
.priority-card { display: flex; flex-direction: column; gap: 8px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; box-shadow: var(--shadow); min-height: 176px; }
.priority-card.is-settled { background: #f4f6f8; box-shadow: none; }
.review-effect { margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: var(--ink); }
.priority-card strong { font-size: 14px; letter-spacing: -.02em; line-height: 1.3; }
.priority-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.priority-card small { margin-top: auto; font-size: 12px; color: var(--ink); }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px; }
.trend-panel.is-focus, .featured.is-focus, .queue-band.is-focus .priority-card, .pair.is-focus .panel { border-color: #f0b4b8; }
.intake-page .lead { max-width: 68ch; color: var(--muted); line-height: 1.5; margin-bottom: 14px; }
.intake-summary { margin-top: 0; }
.intake-actions { display: grid; grid-template-columns: minmax(220px, 360px); gap: 12px; margin: 14px 0; align-items: start; }
.demo-controls { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; }
.demo-controls > div { flex: 1; min-width: 200px; }
.demo-controls p { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.intake-actions p { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.intake-actions .primary, .intake-actions .ghost, .file-detail .primary, .file-detail .ghost { max-width: 100%; white-space: normal; }
.primary:disabled { opacity: .45; cursor: default; }
.process-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 0 0 14px; padding: 0; }
.process-steps li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-width: 0; }
.process-steps li.done { border-color: #f3c1c6; }
.process-steps span { display: block; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.process-steps strong { display: block; margin-top: 6px; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.insight-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.insight-row .insight { margin: 0; font-weight: 700; }
.intake-done { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 14px 0 16px; }
.intake-done .insight { margin: 0; font-weight: 700; flex: 1; min-width: 220px; }
.intake-files { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, .7fr); gap: 12px; align-items: start; }
.intake-files h2 { font-size: 18px; letter-spacing: -.02em; }
.file-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.file-legend span { display: inline-flex; align-items: center; gap: 6px; }
.file-legend i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line); background: #fff; }
.file-legend .is-processed { background: #e7f3f4; border-color: #c5dfe3; }
.file-legend .is-close { background: var(--action); border-color: var(--action); }
.file-calendar { margin-top: 10px; }
.file-day { min-height: 52px; padding: 7px 2px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; line-height: 1.15; }
.file-day:hover { border-color: #7eb8c0; }
.file-day strong, .file-day small { display: block; }
.file-day strong { font-size: 15px; letter-spacing: -.02em; }
.file-day small { color: var(--muted); font-size: 10px; }
.file-day.status-processed { background: #e7f3f4; border-color: #d3e6e9; }
.file-day.status-selected { background: var(--action); border-color: var(--action); color: #fff; }
.file-day.status-selected small { color: #d5eef2; }
.file-day.status-selected:hover { background: var(--action-dark); border-color: var(--action-dark); }
.file-day.is-picked { box-shadow: inset 0 0 0 2px #111; }
.file-kicker { color: var(--action); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.file-detail { display: grid; gap: 8px; align-content: start; }
.file-detail .ghost, .file-detail .primary { justify-self: start; }
.disclosure { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 12px; }
.case-title { margin-top: 0; align-items: flex-start; }
.case-title .ghost { flex: none; white-space: nowrap; }
.link-toolbar { display: flex; align-items: flex-start; gap: 16px; margin: 6px 0 8px; }
.link-toolbar > div { flex: 1; min-width: 0; }
.link-toolbar h2 { font-size: 20px; letter-spacing: -.02em; }
.link-toolbar .back { padding-top: 4px; white-space: nowrap; }
.link-toolbar .ghost { flex: none; }
.link-scope { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.link-layout { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 12px; align-items: start; }
.link-stage-wrap { min-width: 0; overflow: auto; }
.link-detail { width: 200px; }
.link-stage { position: relative; width: 760px; background: #fbfcfd; border: 1px solid var(--line); border-radius: 12px; }
.link-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.link-lines line { stroke: #c5ced6; stroke-width: 1.25; }
.link-lines text { fill: #3e4850; font-size: 10px; font-weight: 700; paint-order: stroke; stroke: #fbfcfd; stroke-width: 4px; }
.link-node { position: absolute; transform: translate(-50%, -50%); width: 108px; min-height: 44px; padding: 6px 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: center; line-height: 1.2; }
.link-node:hover { border-color: #7eb8c0; z-index: 2; }
.link-node strong, .link-node small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-node strong { font-size: 12px; }
.link-node small { color: var(--muted); font-size: 10px; margin-top: 2px; }
.link-node.is-evidence { border-color: #7eb8c0; background: #f4fafa; }
.link-node.is-threshold { box-shadow: inset 0 0 0 2px var(--high); }
.link-node.is-ordinary { border-style: dashed; background: #f7f8f9; }
.link-node.is-outside { background: #f3f4f6; border-style: dashed; border-color: #c5ced6; color: #8b949e; }
.link-node.is-outside small { color: #8b949e; }
.link-lines line.is-outside { stroke: #d5dbe1; stroke-dasharray: 4 3; }
.link-node.is-selected { border-color: var(--action); box-shadow: 0 0 0 3px rgba(15, 95, 107, .16); }
.link-node.kind-case, .link-node.is-case { background: var(--action); color: #fff; border-color: var(--action); }
.link-node.is-case small { color: #d7eef1; }
.link-node.is-side { width: 78px; min-height: 58px; padding: 8px 6px; }
.link-node.is-side strong { white-space: normal; }
.link-legend { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.link-legend span { display: inline-flex; align-items: center; gap: 6px; }
.link-legend span::before { content: ""; width: 12px; height: 12px; border-radius: 4px; border: 1px solid var(--line); background: #fff; }
.link-legend .is-evidence::before { border-color: #7eb8c0; background: #f4fafa; }
.link-legend .is-threshold::before { box-shadow: inset 0 0 0 2px var(--high); }
.link-legend .is-ordinary::before { border-style: dashed; background: #f7f8f9; }
.link-legend .is-outside::before { background: #f3f4f6; border-style: dashed; border-color: #c5ced6; }
.link-pick.is-quiet { background: #f7f8f9; }
.tl.is-outside { background: #f7f8f9; border-style: dashed; }
.tl.is-outside .tl-mark { color: #8b949e; }
.link-detail h2 { margin: 4px 0 8px; font-size: 16px; }
.link-detail p { margin-top: 8px; }
.link-detail .ghost { margin-top: 12px; }
.link-role { color: var(--action); font-size: 12px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.link-facts { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 4px; }
.link-facts span { display: block; color: var(--muted); font-size: 11px; }
.link-facts strong { display: block; margin-top: 2px; font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.link-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.link-pick { display: grid; gap: 4px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 14px 12px; }
.link-pick strong { font-size: 15px; letter-spacing: -.02em; }
.link-pick span { color: var(--muted); font-size: 13px; }
.link-pick-type { color: var(--action); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.link-pick-hint { color: #3e4850; }
.link-pick:hover { border-color: #7eb8c0; box-shadow: 0 0 0 3px rgba(15, 95, 107, .12); transform: translateY(-1px); }
.disclosure summary { font-weight: 800; cursor: pointer; }
.disclosure .dropzone, .disclosure .schema, .disclosure .log { margin-top: 12px; }
@media (max-width: 800px) {
  .login { grid-template-columns: 1fr; align-content: start; }
  .login-brand { justify-content: flex-start; padding: 24px 20px 20px; gap: 18px; }
  .login-panel { align-items: start; padding: 20px 16px 32px; }
}
@media (max-width: 980px) {
  .shell { display: block; }
  .sidebar { position: sticky; top: 0; z-index: 5; width: auto; height: auto; flex-direction: row; align-items: center; gap: 8px; padding: 8px 10px; overflow: hidden; }
  .brand { flex: none; }
  .brand-title { display: none; }
  .brand img { width: 92px; }
  .sidebar nav { display: flex; overflow: auto; flex: 1; }
  .oxa-open { margin-top: 0; white-space: nowrap; }
  .nav { width: auto; height: auto; white-space: nowrap; border-left-width: 0; padding: 8px 12px; }
  .nav span br { display: none; }
  .nav span { display: inline; }
  .nav.active { box-shadow: inset 3px 0 var(--red); }
  .nav.is-muted.active { box-shadow: inset 3px 0 #6b6f74; }
  .top-actions { width: 100%; justify-content: flex-end; }
  .export-note { width: auto; flex: 1; }
  .explain-panel { flex-direction: column; }
  .workspace { padding: 16px; }
  .workspace button, .workspace select { scroll-margin-top: 76px; }
  .topbar, .section-head, .case-layout, .dash-grid, .two-col, .threshold, .tx-detail, .meeting, .scenario-grid, .link-layout, .link-toolbar { display: grid; grid-template-columns: 1fr; }
  .link-picks { grid-template-columns: 1fr; }
  .hours { overflow: auto; }
  .summary-grid, .pair, .process-steps, .intake-files { grid-template-columns: 1fr 1fr; }
  .intake-actions { grid-template-columns: 1fr; }
  .priority-grid { grid-template-columns: 1fr 1fr; min-width: 0; }
  .run-strip, .metrics, .signals, .figures, .facts { grid-template-columns: 1fr 1fr; }
  .kicker .when { margin-left: 0; }
  .review-card { position: static; max-height: none; overflow: visible; }
  .review-rest { overflow: visible; max-height: none; }
}
@media (max-width: 640px) {
  .topbar h1 { font-size: 24px; }
  .date-stepper select { min-width: 0; width: auto; }
  .queue-chip { display: none; }
  .metrics, .signals, .figures, .facts, .run-strip, .summary-grid { grid-template-columns: 1fr 1fr; }
  .priority-grid { grid-template-columns: 1fr 1fr; }
  .pair, .process-steps, .intake-files, .link-facts { grid-template-columns: 1fr; }
  .overview-answer { white-space: normal; }
  .map-tip { display: none !important; }
  .map-list { grid-template-columns: 1fr; }
  .map-window-note { flex-wrap: wrap; }
  .rule-row { grid-template-columns: 1fr; }
  .rule-priority { justify-items: start; }
  .file-day { padding: 5px 1px; }
  .file-day strong { font-size: 12px; }
  .calendar { gap: 4px; }
  .day { min-height: 72px; padding: 5px; }
}
