:root {
  color-scheme: light;
  --bg: #f5f6f8;
  --surface: #fff;
  --text: #202b36;
  --muted: #65717e;
  --line: #e1e5e9;
  --green: #2c593f;
  --urgent: #b73730;
  --today: #98600d;
  --later: #385a97;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 13px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: default; opacity: .45; }
button, a, select, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #7aa98d; outline-offset: 3px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -60px; left: 20px; z-index: 10; background: white; padding: 10px; }
.skip-link:focus { top: 10px; }
.app-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1400px; min-height: 64px; padding: 0 28px; margin: auto; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; font-size: 21px; font-weight: 750; letter-spacing: -.7px; }
.brand-mark { display: inline-grid; place-items: center; width: 27px; height: 27px; margin-right: 9px; border-radius: 7px; background: var(--green); color: white; font-size: 25px; font-weight: 400; }
.brand-dot { color: var(--green); }
.workspace { color: #475360; font-size: 10px; font-weight: 700; letter-spacing: .7px; }
.workspace > span { color: #87919b; font-weight: 500; }
.navigation { display: flex; align-self: stretch; gap: 24px; margin-left: 18px; }
.navigation a { display: flex; align-items: center; gap: 7px; border-bottom: 2px solid transparent; padding-top: 2px; color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.navigation a:hover { color: var(--green); }
.navigation a.active { border-bottom-color: var(--green); color: var(--green); }
#nav-count { padding: 0 5px; min-width: 18px; border-radius: 4px; background: #eaf0ec; text-align: center; font-size: 10px; line-height: 18px; }
.change-dot { width: 6px; height: 6px; border-radius: 50%; background: #c48727; }
.demo-badge { display: flex; align-items: center; gap: 6px; margin-left: auto; padding: 3px 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: 10px; }
.demo-badge > span { width: 5px; height: 5px; border-radius: 50%; background: #7a9583; }
main { max-width: 1400px; min-height: calc(100vh - 125px); margin: auto; padding: 28px 28px 24px; }
main:focus { outline: none; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 24px; line-height: 1.25; font-weight: 700; letter-spacing: -.6px; }
.subtitle { color: var(--muted); margin-top: 7px; font-size: 12px; }
.heading-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.heading-actions { display: flex; align-items: center; gap: 8px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 35px; padding: 8px 12px; background: var(--surface); border: 1px solid #d9dfe3; border-radius: 6px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.btn:hover { background: #f0f3f1; border-color: #b5c5bb; }
.btn-primary { background: var(--green); border-color: var(--green); color: white; }
.btn-primary:hover { background: #214831; border-color: #214831; }
.refresh-icon { font-size: 15px; line-height: 1; }
.board { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: white; box-shadow: 0 2px 3px #202b3603; }
.board-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.filters { display: flex; gap: 5px; flex-wrap: wrap; }
.filter { display: flex; gap: 7px; align-items: center; min-height: 31px; border: 1px solid transparent; border-radius: 5px; padding: 6px 9px; background: transparent; color: var(--muted); font-size: 11px; }
.filter > span { font-size: 10px; color: #7f8993; font-variant-numeric: tabular-nums; }
.filter:hover { background: #f5f7f6; }
.filter.active { color: var(--green); font-weight: 600; background: #edf3ef; border-color: #dbe7df; }
.filter.active > span { color: var(--green); }
.sort-label { color: var(--muted); font-size: 10px; white-space: nowrap; }
.case-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.case-table th { background: #fafbfc; color: #73808c; text-align: left; font-size: 10px; line-height: 1.4; font-weight: 600; letter-spacing: .55px; text-transform: uppercase; padding: 11px 17px; border-bottom: 1px solid var(--line); }
.case-table th:nth-child(1) { width: 20%; }
.case-table th:nth-child(2) { width: 22%; }
.case-table th:nth-child(3) { width: 24%; }
.case-table th:nth-child(4) { width: 34%; }
.case-table td { vertical-align: top; padding: 18px 17px; border-bottom: 1px solid #e9ecef; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.case-table tbody tr:last-child td { border-bottom: 0; }
.case-row.urgent { background: #fffaf9; }
.case-row.done { background: #f8fbf9; }
.case-cell { box-shadow: inset 3px 0 var(--later); }
.urgent .case-cell { box-shadow: inset 3px 0 #d9695f; }
.today .case-cell { box-shadow: inset 3px 0 #d8a452; }
.done .case-cell { box-shadow: inset 3px 0 #8daf99; }
.case-top { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 7px; }
.case-id { font-family: ui-monospace, "Cascadia Code", monospace; font-size: 11px; font-weight: 600; color: #546271; }
.priority { display: inline-flex; align-items: center; padding: 1px 6px; border-radius: 4px; font-size: 10px; font-weight: 600; line-height: 19px; background: #edf1f8; color: var(--later); }
.priority.urgent { color: var(--urgent); background: #fbe9e6; }
.priority.today { color: var(--today); background: #fbefd9; }
.priority.done { color: #497155; background: #e8f1eb; }
.case-title { font-size: 13px; line-height: 1.45; font-weight: 650; margin-bottom: 5px; }
.deadline { color: var(--muted); font-size: 11px; }
.source-status { display: block; font-size: 12px; line-height: 1.6; font-weight: 600; }
.source-status.warn { color: #795b35; }
.source-status.ok { color: #497155; }
.source-detail { margin-top: 5px; color: var(--muted); font-size: 11px; }
.message-author { display: block; color: var(--muted); font-size: 10px; margin-bottom: 5px; }
.message-text { color: #485561; }
.action-head { display: flex; align-items: flex-start; gap: 8px; }
.action-text { flex: 1; color: #254733; font-size: 12px; font-weight: 600; }
.done .action-text { font-weight: 500; color: #5b7163; }
.icon-button { display: inline-grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border: 1px solid #dfe5e1; border-radius: 5px; background: #ffffffad; color: #76867c; }
.icon-button:hover { background: #eaf1ed; color: var(--green); }
.icon-button svg { width: 14px; height: 14px; }
.reason { margin-top: 9px; font-size: 11px; }
.reason summary { width: fit-content; cursor: pointer; color: #65786b; font-size: 10px; }
.reason[open] summary { margin-bottom: 8px; }
.reason p { color: var(--muted); margin-top: 6px; font-size: 11px; font-weight: 400; }
.reason strong { color: #46564c; font-weight: 600; }
.board-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 17px; border-top: 1px solid var(--line); background: #fcfdfc; font-size: 10px; color: var(--muted); }
.board-footer strong { color: #435c4b; font-weight: 600; }
.empty { padding: 32px !important; color: var(--muted); text-align: center; }
.quick-tip { margin-top: 13px; color: var(--muted); font-size: 11px; }
.quick-tip a, .text-link { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.notice { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 13px; margin-bottom: 16px; border: 1px solid #eeddbb; border-radius: 6px; background: #fff8e9; font-size: 11px; color: #7b5b22; }
.notice button { background: transparent; border: none; padding: 4px; color: #795916; font-size: 11px; font-weight: 600; text-decoration: underline; white-space: nowrap; }
.data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.data-card { border: 1px solid var(--line); border-radius: 8px; padding: 18px; background: white; }
.data-card .case-top { margin-bottom: 3px; }
.data-card .case-title { margin: 0; }
.edited-label { margin-left: auto; color: #916a29; background: #fff3db; border-radius: 4px; padding: 2px 6px; font-size: 10px; }
.data-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 17px; }
.mini-title { margin-bottom: 10px; color: #77838e; font-size: 10px; text-transform: uppercase; font-weight: 600; letter-spacing: .7px; }
.field + .field { margin-top: 13px; }
.field label { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; font-size: 11px; color: #4f5e69; }
select { width: 100%; min-height: 35px; border: 1px solid #d6dde2; border-radius: 5px; background: #fff; padding: 6px 25px 6px 9px; color: var(--text); font-size: 12px; }
input[type="checkbox"] { accent-color: var(--green); width: 15px; height: 15px; margin: 0; flex-shrink: 0; }
.message-preview { margin-top: 10px; font-size: 12px; color: #4d5b65; line-height: 1.65; }
.field-help { font-size: 11px; line-height: 1.6; color: var(--muted); margin-top: 10px; }
.data-footnote { color: var(--muted); font-size: 11px; line-height: 1.7; margin-top: 17px; max-width: 800px; }
.code-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; }
.code-tabs { display: flex; gap: 2px; padding: 5px; border: 1px solid var(--line); border-radius: 7px 7px 0 0; background: white; }
.code-tabs button { padding: 8px 12px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: 11px; }
.code-tabs button.active { background: #edf3ef; color: var(--green); font-weight: 600; }
.code-box { overflow: hidden; border-radius: 0 0 7px 7px; background: #17232e; color: #d1e1e6; }
.code-bar { padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; background: #202f3b; color: #c0cdd4; font-size: 11px; }
.code-actions { display: flex; align-items: center; gap: 14px; }
.code-actions button, .code-actions a { color: #c0cdd4; border: 0; background: transparent; padding: 3px 0; font-size: 11px; }
.code-content { margin: 0; padding: 18px; min-height: 310px; max-height: 560px; overflow: auto; white-space: pre; font: 12px/1.8 ui-monospace, "Cascadia Code", Consolas, monospace; tab-size: 2; }
.explanation { border: 1px solid var(--line); border-radius: 7px; padding: 16px; background: white; margin-bottom: 12px; }
.explanation h2 { font-size: 14px; margin-bottom: 9px; letter-spacing: -.2px; }
.explanation p, .explanation li { color: var(--muted); font-size: 12px; line-height: 1.7; }
.explanation ul { padding-left: 17px; margin: 10px 0 0; }
.explanation li + li { margin-top: 6px; }
.launch { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 15px; color: #52616c; font-size: 12px; }
.launch summary { cursor: pointer; font-weight: 600; color: var(--green); }
.launch p { max-width: 900px; margin-top: 10px; line-height: 1.8; }
.page-footer { display: flex; justify-content: space-between; gap: 14px; max-width: 1400px; margin: auto; padding: 16px 28px 20px; color: #7c8791; font-size: 10px; }
.page-footer a:hover { color: var(--green); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 12px); max-width: calc(100% - 32px); padding: 11px 17px; border-radius: 7px; background: #243d2e; color: white; font-size: 12px; box-shadow: 0 5px 20px #14271c20; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 20; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 1100px) {
  .workspace { display: none; }
  .case-table td, .case-table th { padding-left: 12px; padding-right: 12px; }
  .case-table th:nth-child(1) { width: 21%; }
  .case-table th:nth-child(2) { width: 21%; }
  .case-table th:nth-child(3) { width: 23%; }
  .case-table th:nth-child(4) { width: 35%; }
}
@media (max-width: 800px) {
  .header-inner { padding: 0 20px; gap: 20px; }
  .navigation { margin-left: 0; gap: 18px; }
  main { padding: 23px 20px; }
  .heading-row { align-items: flex-start; }
  .heading-actions { flex-wrap: wrap; justify-content: flex-end; }
  .case-table, .case-table tbody { display: block; }
  .case-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .case-table tr { display: grid; grid-template-columns: 1fr 1fr; padding: 16px; gap: 14px 20px; border-bottom: 1px solid var(--line); }
  .case-table tr:last-child { border-bottom: 0; }
  .case-table td { display: block; border-bottom: 0; padding: 0; }
  .case-table .case-cell { grid-column: 1 / -1; box-shadow: none; }
  .case-table .case-cell .case-top { margin-bottom: 4px; }
  .case-table .case-title { display: inline; margin-right: 8px; }
  .case-table .deadline { display: inline; }
  .case-table .source-cell::before { content: attr(data-label); display: block; margin-bottom: 6px; color: #7b8791; font-size: 10px; text-transform: uppercase; letter-spacing: .5px; }
  .case-table .action-cell { grid-column: 1 / -1; border-top: 1px solid #e5ebe7; padding-top: 11px; }
  .board-footer { align-items: flex-start; flex-direction: column; gap: 4px; }
  .data-grid { grid-template-columns: 1fr; }
  .code-layout { grid-template-columns: 1fr; }
  .code-side { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .page-footer { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 580px) {
  .header-inner { flex-wrap: wrap; gap: 0; padding: 13px 16px 0; }
  .brand { font-size: 20px; }
  .demo-badge { order: 1; }
  .navigation { order: 2; width: 100%; gap: 24px; min-height: 46px; margin-top: 7px; }
  main { padding: 22px 14px 16px; min-height: calc(100vh - 190px); }
  h1 { font-size: 22px; }
  .heading-row { flex-direction: column; gap: 15px; margin-bottom: 18px; }
  .heading-actions { width: 100%; justify-content: flex-start; }
  .btn { min-height: 37px; }
  .board-toolbar { padding: 10px; }
  .filter { padding: 6px; gap: 5px; font-size: 10px; }
  .sort-label { display: none; }
  .case-table tr { padding: 15px; gap: 13px; }
  .case-table .case-title, .case-table .deadline { display: block; }
  .case-table .case-title { margin-bottom: 3px; }
  .data-card { padding: 15px; }
  .data-columns { grid-template-columns: 1fr; gap: 17px; }
  .data-card .case-top { align-items: flex-start; }
  .edited-label { margin-left: 0; }
  .notice { align-items: flex-start; }
  .code-tabs button { padding: 8px; }
  .code-side { grid-template-columns: 1fr; gap: 0; }
  .page-footer { flex-direction: column; gap: 6px; padding: 12px 16px 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Case review and server-backed business logic */
.eyebrow { color: #7a858f; font-size: 10px; font-weight: 600; letter-spacing: .7px; text-transform: uppercase; margin-bottom: 6px; }
.text-separator { color: #b1b8be; margin: 0 5px; }
.server-label { color: #52735f; }
.intro-note { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; color: #607068; font-size: 12px; }
.intro-note p { flex: 1; }
.intro-note a { color: var(--green); font-size: 11px; font-weight: 600; white-space: nowrap; }
.note-mark { display: inline-grid; place-items: center; width: 17px; height: 17px; flex-shrink: 0; border: 1px solid #bdcbbf; border-radius: 50%; font-size: 10px; }
.case-title a:hover, .case-id:hover { text-decoration: underline; text-underline-offset: 3px; color: var(--green); }
.case-open { display: inline-flex; gap: 18px; align-items: center; margin-top: 9px; color: var(--green); font-size: 11px; font-weight: 600; }
.case-open:hover { text-decoration: underline; text-underline-offset: 3px; }
.board-footer a { color: var(--green); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #909aa2; font-size: 11px; margin-bottom: 20px; }
.breadcrumb a { color: #597460; }
.decision-banner { display: flex; gap: 15px; align-items: flex-start; border: 1px solid #dbe4ed; border-left: 3px solid #7792b6; border-radius: 7px; background: #f4f7fc; padding: 18px 20px; margin-bottom: 20px; }
.decision-banner.urgent { border-color: #ecdcd8; border-left-color: #ca685c; background: #fff7f4; }
.decision-banner.today { border-color: #eadfc8; border-left-color: #cda35c; background: #fffbf3; }
.decision-banner.done { border-color: #d5e5d9; border-left-color: #83a78d; background: #f3f9f5; }
.decision-icon { display: inline-grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: #e6edf7; color: #54749b; font-size: 17px; flex-shrink: 0; }
.urgent .decision-icon { background: #f8e3de; color: #aa493b; }
.today .decision-icon { background: #f8edcf; color: #917037; }
.done .decision-icon { background: #deeee3; color: #4a7959; }
.decision-title { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.decision-title h2 { font-size: 15px; font-weight: 650; }
.decision-banner p { max-width: 1050px; font-size: 13px; color: #50606a; line-height: 1.75; }
.rule-link { display: inline-block; color: #77858b; font-size: 10px; margin-top: 9px; }
.rule-link:hover { color: var(--green); text-decoration: underline; }
.rule-link code { font-size: 10px; }
.detail-grid { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 18px; align-items: start; }
.detail-main { min-width: 0; }
.evidence-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-bottom: 16px; }
.panel, .evidence-card { border: 1px solid var(--line); border-radius: 8px; background: white; padding: 19px; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.panel h2, .evidence-card h2 { font-size: 14px; font-weight: 650; }
.source-id { color: #8c989f; font: 10px/1.8 ui-monospace,Consolas,monospace; overflow-wrap: anywhere; }
.evidence-main { font-size: 14px; font-weight: 600; }
.evidence-card blockquote { margin: 0; color: #32474e; font-size: 14px; line-height: 1.8; }
.facts-list { margin: 18px 0 0; }
.facts-list > div { display: flex; justify-content: space-between; gap: 18px; margin-top: 8px; font-size: 11px; }
.facts-list dt { color: #87929a; }
.facts-list dd { margin: 0; color: #57656e; text-align: right; }
.source-footnote { font-size: 10px; line-height: 1.7; color: #8c959b; margin-top: 15px; padding-top: 10px; border-top: 1px solid #edf0f2; }
.subtle { color: var(--muted); font-size: 11px; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; padding: 11px 0; border-top: 1px solid #edf0f2; }
.check-list li:first-child { border-top: 0; padding-top: 0; }
.check-state { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; flex-shrink: 0; background: #f0f2f4; color: #7e8a91; font-size: 11px; }
.check-state.met { background: #edf4ef; color: #568064; }
.check-state.missing { background: #fbefdb; color: #a47d31; }
.check-list li > div { flex: 1; }
.check-list strong { font-size: 12px; font-weight: 500; }
.check-origin { display: block; color: #89959c; font: 10px/1.7 ui-monospace,Consolas,monospace; margin-top: 2px; }
.check-label { font-size: 10px; line-height: 20px; color: #7c878e; white-space: nowrap; }
.check-label.met { color: #60826a; }
.check-label.missing { color: #987326; }
.rule-trace { border-top: 1px solid #e8edef; margin-top: 10px; padding-top: 14px; font-size: 11px; color: #65776d; }
.rule-trace summary { cursor: pointer; }
.rule-trace ol { padding-left: 20px; margin: 15px 0; }
.rule-trace li { padding: 7px 0 7px 8px; color: #8a969c; }
.rule-trace li.matched { color: #355d43; }
.rule-trace strong { display: block; font-weight: 500; font-size: 12px; margin: 3px 0; }
.rule-trace code { font-size: 10px; }
.trace-result { font-size: 10px; text-transform: uppercase; letter-spacing: .4px; }
.action-panel { border-top: 3px solid #52775d; }
.recommended-action { font-size: 14px; color: #355241; line-height: 1.8; margin-top: 13px; }
.verify-note { padding: 12px 0; margin: 16px 0; border-top: 1px solid #e8eeea; border-bottom: 1px solid #e8eeea; }
.verify-note strong { font-size: 11px; font-weight: 600; }
.verify-note p { color: #6d7a72; font-size: 12px; line-height: 1.75; margin-top: 5px; }
.action-panel h3 { font-size: 11px; font-weight: 600; }
.closure-list { margin: 10px 0 0; padding-left: 17px; color: #66776c; font-size: 11px; line-height: 1.8; }
.closure-list li + li { margin-top: 8px; }
.uncertainty-panel { padding: 17px 18px; margin-top: 14px; background: #fbf7ee; border: 1px solid #eee5d3; border-radius: 7px; color: #8b7449; }
.uncertainty-panel h2 { font-size: 12px; }
.uncertainty-panel ul { padding-left: 15px; margin: 9px 0 0; font-size: 11px; line-height: 1.75; }
.uncertainty-panel li + li { margin-top: 7px; }
.scenario-panel { margin-top: 20px; }
.scenario-panel .panel-heading { margin-bottom: 20px; }
.scenario-panel .field-help { margin-top: 4px; }
.scenario-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.scenario-grid fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.scenario-grid legend { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: #7a8790; padding: 0; margin-bottom: 15px; }
.scenario-grid .field + .field { margin-top: 13px; }
.scenario-grid input { display: block; width: 100%; min-height: 35px; padding: 7px 9px; font-size: 12px; color: var(--text); border: 1px solid #d6dde2; border-radius: 5px; background: white; }
.input-help { display: block; font-size: 10px; color: #89959b; margin-top: 5px; }
.draft-quote { font-size: 12px; line-height: 1.75; color: #728077; margin-top: 12px; }
.scenario-actions { display: flex; align-items: center; gap: 8px; border-top: 1px solid #e9eeea; margin-top: 20px; padding-top: 15px; }
.scenario-actions > span { font-size: 11px; color: #86918a; margin-left: 6px; }
.scenario-panel > .field-help { margin-top: 12px; font-size: 10px; }
.comparison { display: grid; grid-template-columns: 1fr 1fr; margin-top: 17px; border: 1px solid #dce5df; border-radius: 6px; overflow: hidden; }
.comparison > div { padding: 14px; background: #fafbfa; }
.comparison .comparison-after { background: #f0f7f2; border-left: 1px solid #dce5df; }
.comparison .mini-title { display: block; font-size: 9px; }
.comparison p { font-size: 11px; line-height: 1.75; margin-top: 9px; color: #64746a; }
.api-details { border-top: 1px solid var(--line); margin-top: 23px; padding-top: 14px; font-size: 11px; color: #66786d; }
.api-details summary { cursor: pointer; }
.api-details summary span { color: #99a39d; margin-left: 12px; font-size: 10px; }
.api-details pre { padding: 15px; background: #eaf0ec; border-radius: 6px; max-height: 400px; overflow: auto; font: 11px/1.8 ui-monospace,Consolas,monospace; }
.logic-flow { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); background: white; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 23px; }
.logic-flow > div { padding: 17px 19px; border-left: 1px solid var(--line); }
.logic-flow > div:first-child { border-left: 0; }
.logic-flow span { color: #829a88; font: 11px ui-monospace,Consolas,monospace; margin-right: 8px; }
.logic-flow strong { font-size: 12px; font-weight: 600; }
.logic-flow p { font-size: 11px; color: #8b959d; margin-top: 6px; }
.business-code-layout { display: grid; grid-template-columns: 215px minmax(0,1fr); gap: 22px; align-items: start; }
.file-nav { display: flex; flex-direction: column; gap: 3px; }
.file-nav > a { display: flex; justify-content: space-between; gap: 10px; padding: 11px 12px; border-radius: 5px; font-size: 12px; color: #748079; border: 1px solid transparent; }
.file-nav > a.active { background: #eaf1ec; border-color: #d9e5dd; color: var(--green); font-weight: 600; }
.file-nav > a:hover { background: #edf2ee; }
.file-nav > a > span { color: #8eaa96; }
.code-boundary { padding: 17px 12px; color: #78867c; font-size: 11px; line-height: 1.8; }
.code-boundary strong { font-weight: 600; color: #4b6754; }
.code-boundary p { margin-top: 7px; }
.source-view { min-width: 0; }
.source-description { background: white; padding: 18px; border: 1px solid var(--line); border-radius: 7px 7px 0 0; }
.source-description h2 { font-size: 15px; margin-bottom: 7px; }
.source-description p { color: var(--muted); font-size: 12px; line-height: 1.75; }
.source-description dl { display: flex; gap: 30px; font-size: 11px; margin: 13px 0 0; }
.source-description dl > div { display: flex; gap: 10px; }
.source-description dt { color: #a0a8ae; }
.source-description dd { margin: 0; color: #607365; }
.rule-target { display: flex; justify-content: space-between; gap: 10px; padding: 10px 16px; background: #e7f0e9; color: #4c6c56; font-size: 11px; }
.rule-target button { background: none; border: 0; color: #477454; font-size: 11px; cursor: pointer; }
.numbered-code { padding: 12px 0; max-height: 580px; font-size: 12px; line-height: 1.85; }
.code-line { display: grid; grid-template-columns: 42px 1fr; width: max-content; min-width: 100%; padding-right: 20px; }
.line-number { color: #5a6c7a; font-size: 10px; text-align: right; padding-right: 13px; user-select: none; }
.highlight-line { background: #2a493e; box-shadow: inset 3px 0 #90b291; color: #e3efdf; }
.logic-modes { display: flex; gap: 5px; padding: 9px 12px; border: 1px solid var(--line); border-top: 0; background: #fff; }
.logic-modes a { padding: 7px 11px; border-radius: 5px; font-size: 12px; color: var(--muted); }
.logic-modes a[aria-current] { background: #eaf1ec; color: var(--green); font-weight: 600; }
.pseudocode-panel { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 7px 7px; background: #fff; overflow: hidden; }
.pseudo-toolbar { padding: 13px 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: #f3f6f3; color: #526c59; font-size: 11px; }
.pseudo-toolbar button { border: 0; background: transparent; color: var(--green); font-size: 11px; padding: 3px 0; }
.pseudocode { margin: 0; padding: 23px; white-space: pre-wrap; overflow-wrap: anywhere; color: #284d36; font: 13px/1.95 ui-monospace, "Cascadia Code", Consolas, monospace; }
.logic-rule { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 12px; padding: 18px; border-top: 1px solid #edf0ed; scroll-margin-top: 24px; }
.rule-step { padding-top: 2px; color: #7d9484; font: 12px/1.8 ui-monospace, Consolas, monospace; }
.rule-condition, .rule-outcome { font-size: 13px; line-height: 1.8; }
.rule-condition > span, .rule-outcome > span { font: 600 11px/1.8 ui-monospace, Consolas, monospace; color: #748478; margin-right: 5px; }
.rule-outcome { color: #285b39; margin-top: 6px; }
.rule-note { color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 8px; }
.rule-permalink { display: inline-block; margin-top: 10px; font: 10px/1.6 ui-monospace, Consolas, monospace; color: #748478; overflow-wrap: anywhere; }
.rule-permalink:hover { text-decoration: underline; }
.selected-rule { background: #eff7ef; box-shadow: inset 3px 0 #43885a; }
.rule-selected-label { display: inline-block; margin-left: 12px; color: #285b39; font-size: 10px; }
.logic-footnote { font-size: 11px; color: var(--muted); line-height: 1.9; padding-top: 12px; }
.logic-footnote a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.logic-next { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 18px; }
.rule-body { min-width: 0; }
.rule-body h3 { font-size: 12px; font-weight: 600; color: #52665a; margin: 0 0 12px; }
.rule-code { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 13px; line-height: 1.85; color: #33473a; }
.logic-overview { padding: 20px; font-size: 13px; line-height: 1.8; color: #42574a; }
.logic-overview h3 { font-size: 14px; margin: 0 0 8px; color: #284d36; }
.logic-overview a { color: #356947; text-decoration: underline; text-underline-offset: 3px; }
.overview-instruction { margin: 0 0 20px; }
.overview-group + .overview-group { border-top: 1px solid #e5ece7; margin-top: 23px; padding-top: 20px; }
.overview-group h3 > span { margin-left: 8px; font-size: 11px; color: #718078; font-weight: 400; }
.overview-group ol { margin: 0; padding-left: 25px; }
.overview-group li { padding: 8px 0 8px 4px; }
.overview-group li::marker { color: #718078; font-size: 12px; }
.overview-outcome { display: block; color: #718078; font-size: 11px; }
.rule-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 17px; margin-top: 13px; font-size: 11px; }
.rule-links a { color: #476953; text-decoration: underline; text-underline-offset: 3px; }
.rule-links .rule-permalink { margin-top: 0; }
.rule-details { margin-top: 13px; color: #52665a; font-size: 11px; line-height: 1.8; }
.rule-details summary { cursor: pointer; }
.rule-details p { margin-top: 9px; }
.rule-details ul { padding-left: 18px; margin: 7px 0 0; }
.source-github { display: inline-block; color: #356947; margin-top: 14px; font: 11px/1.6 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px; }
.source-revision { display: inline-block; color: #718078; margin: 8px 0 0 12px; font-size: 10px; }
.syntax-keyword { color: #743db1; font-weight: 600; }
.syntax-string { color: #256a3d; }
.syntax-number, .syntax-constant { color: #99601c; }
.syntax-function { color: #1e6591; }
.syntax-comment { color: #717c75; font-style: italic; }
.syntax-operator { color: #607265; }
.code-box .syntax-keyword { color: #d7adf5; }
.code-box .syntax-string { color: #a3dca2; }
.code-box .syntax-number, .code-box .syntax-constant { color: #efc48d; }
.code-box .syntax-function { color: #8fcff0; }
.code-box .syntax-comment { color: #a0aca5; }
.code-box .syntax-operator { color: #becdc3; }
.code-box .line-number { color: #95a99e; text-decoration: none; }
.code-box .line-number:hover { color: white; text-decoration: underline; }
@media (max-width: 580px) {
  .logic-rule { grid-template-columns: 20px minmax(0,1fr); gap: 8px; padding: 15px 12px; }
  .pseudocode { padding: 17px 12px; font-size: 11px; }
  .rule-condition, .rule-outcome { font-size: 12px; }
  .rule-selected-label { display: block; margin: 5px 0 0; }
  .logic-modes a { font-size: 11px; padding: 7px 9px; }
}
.implementation-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.implementation-notes h2 { font-size: 13px; margin-bottom: 8px; }
.implementation-notes p { font-size: 12px; line-height: 1.85; color: #7a8780; }
.error-notice { background: #fff2ef; border-color: #efd9d2; color: #9b5444; }
.error-notice p { margin-top: 7px; font-size: 11px; }
.error-notice ul { padding-left: 17px; }
.loading-state, .empty-state { padding: 70px 25px; text-align: center; color: var(--muted); }
.empty-state p { margin: 14px 0 20px; }
@media (max-width: 1100px) {
  .detail-grid { grid-template-columns: minmax(0,1fr) 275px; gap: 14px; }
  .evidence-grid { grid-template-columns: 1fr; }
  .evidence-card { padding: 16px; }
  .logic-flow > div { padding: 15px 12px; }
  .logic-flow span { display: block; margin-bottom: 5px; }
  .source-description dl { flex-direction: column; gap: 7px; }
}
@media (max-width: 800px) {
  .detail-grid { grid-template-columns: 1fr; }
  .evidence-grid { grid-template-columns: 1fr 1fr; }
  .detail-side { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 14px; align-items: start; }
  .uncertainty-panel { margin-top: 0; }
  .business-code-layout { grid-template-columns: 1fr; gap: 12px; }
  .file-nav { flex-direction: row; flex-wrap: wrap; gap: 5px; }
  .file-nav > a { padding: 8px 10px; font-size: 11px; }
  .file-nav > a > span, .code-boundary { display: none; }
  .intro-note { align-items: flex-start; }
  .intro-note a { display: none; }
}
@media (max-width: 580px) {
  .breadcrumb { margin-bottom: 16px; }
  .decision-banner { padding: 15px; gap: 10px; }
  .decision-icon { display: none; }
  .decision-title { align-items: flex-start; flex-direction: column; gap: 7px; }
  .decision-title h2 { font-size: 15px; }
  .decision-banner p { font-size: 12px; }
  .evidence-grid, .detail-side, .scenario-grid, .comparison, .implementation-notes { grid-template-columns: 1fr; }
  .detail-side { gap: 14px; }
  .panel, .evidence-card { padding: 16px; }
  .check-list li { gap: 8px; }
  .check-label { font-size: 9px; max-width: 80px; white-space: normal; text-align: right; line-height: 1.6; }
  .check-list strong { font-size: 11px; }
  .scenario-actions { flex-wrap: wrap; }
  .scenario-actions > span { margin-left: 0; margin-top: 4px; width: 100%; }
  .scenario-grid { gap: 22px; }
  .comparison .comparison-after { border-left: 0; border-top: 1px solid #dce5df; }
  .logic-flow { grid-template-columns: 1fr 1fr; }
  .logic-flow > div:nth-child(3) { border-left: 0; }
  .logic-flow > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .logic-flow strong { font-size: 11px; }
  .logic-flow p { font-size: 10px; }
  .rule-target { flex-wrap: wrap; }
  .source-description dl > div { flex-direction: column; gap: 3px; }
  .numbered-code { font-size: 11px; max-height: 480px; }
  .api-details summary span { display: block; margin-left: 14px; margin-top: 4px; }
}
