@charset "UTF-8";

:root {
  color-scheme: light;
  --canvas: #f6f5f0;
  --surface: #ffffff;
  --sidebar: #eeefe8;
  --ink: #25382e;
  --body: #3f4840;
  --muted: #697266;
  --forest: #42624c;
  --forest-dark: #304e3a;
  --forest-soft: #e9eee7;
  --ochre: #8a682e;
  --ochre-soft: #f7f1e3;
  --line: #d9ddd2;
  --line-soft: #e9ece4;
  --danger: #a04535;
  --radius: 8px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--body); font: 14px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select, [tabindex] { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, input, select { min-height: 36px; }
button:disabled { cursor: not-allowed; opacity: .48; }
button[aria-busy="true"] { cursor: progress; opacity: .72; }
button[aria-busy="true"]::after { content: ""; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
:focus-visible { outline: 3px solid #a57d38; outline-offset: 3px; }
[hidden] { display: none !important; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--forest-dark); }
svg { display: block; }
input, textarea { accent-color: var(--forest); }
textarea { resize: vertical; }
::selection { background: #dbe6d5; color: var(--ink); }
h1, h2, h3, p { margin-top: 0; }
p:last-child { margin-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.icon { width: 18px; height: 18px; flex: 0 0 18px; stroke-width: 1.65; }
.divider { height: 1px; background: var(--line-soft); margin: 24px 0; }

.app-shell { display: grid; grid-template-columns: 216px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 28px 16px 20px; background: var(--sidebar); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; text-decoration: none; color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 32px; height: 36px; color: var(--forest); }
.brand-mark svg { width: 32px; height: 32px; }
.brand-name { display: block; font-family: var(--serif); font-size: 25px; font-weight: 500; letter-spacing: -.8px; line-height: 1.1; }
.brand-subtitle { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; }
.project-switch { margin: 36px 4px 24px; padding: 12px; border: 1px solid #d3dacb; border-radius: 6px; background: rgba(255,255,255,.46); }
.project-label, .meta-label { display: block; font-size: 10px; font-weight: 650; letter-spacing: 1.3px; text-transform: uppercase; color: var(--muted); }
.project-name { margin-top: 5px; font-size: 12px; color: var(--ink); font-weight: 550; line-height: 1.5; }
.nav-list { display: flex; flex-direction: column; gap: 5px; padding: 0; list-style: none; }
.nav-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #5b6659; text-decoration: none; text-align: left; font-size: 13px; }
.nav-item:hover { background: #e4e8dc; color: var(--ink); }
.nav-item.active { color: var(--forest-dark); background: #dfe7d9; border-color: #d6dece; font-weight: 600; }
.nav-icon { display: grid; place-items: center; width: 18px; flex: 0 0 18px; }
.nav-number { color: #7d8878; font-size: 10px; font-variant-numeric: tabular-nums; margin-left: auto; }
.sidebar-bottom { margin-top: auto; padding: 24px 12px 0; font-size: 11px; color: var(--muted); }
.sidebar-bottom p { margin: 9px 0 0; line-height: 1.6; }
.local-status { display: flex; align-items: center; gap: 7px; color: var(--forest); font-size: 11px; }
.local-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--forest); }
.workspace { min-width: 0; }
.workspace > main, .main-content { max-width: 1500px; padding: 32px 36px 28px; margin: 0 auto; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 65px; padding: 0 36px; background: rgba(255,255,255,.55); border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.breadcrumb strong { color: var(--ink); font-weight: 500; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 550; line-height: 1.5; white-space: nowrap; }
.pill.demo { color: #80612b; border-color: #e4d8bd; background: #faf5e9; }
.pill.saved { color: var(--forest); border-color: #d8e2d1; background: #edf3e8; }
.mobile-brand { display: none; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.eyebrow { margin-bottom: 8px; color: var(--forest); font-size: 10px; font-weight: 650; letter-spacing: 1.5px; text-transform: uppercase; }
.page-title { margin: 0 0 10px; font: 400 35px/1.15 var(--serif); color: var(--ink); letter-spacing: -.9px; }
.page-description { max-width: 650px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; padding-bottom: 3px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 37px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 550; line-height: 1.4; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.button:hover { background: #f0f2eb; border-color: #bfc8b8; color: var(--ink); }
.button.primary { background: var(--forest); color: white; border-color: var(--forest); }
.button.primary:hover { background: var(--forest-dark); border-color: var(--forest-dark); }
.button.secondary { background: white; border-color: #cbd3c5; }
.button.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.button.ghost:hover { background: var(--forest-soft); color: var(--forest-dark); }
.button.small { min-height: 29px; padding: 5px 9px; font-size: 11px; }
.button.danger { color: var(--danger); border-color: #e3c5bc; }
.button.danger:hover { background: #fbf0ed; }
.button.icon { width: 34px; height: 34px; min-height: 34px; padding: 7px; flex: 0 0 34px; }
.button .icon { width: 15px; height: 15px; flex-basis: 15px; }
.work-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 24px; align-items: start; }
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel + .panel { margin-top: 20px; }
.work-grid > .panel + .panel { margin-top: 0; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line-soft); }
.panel-title { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.panel-description { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.panel-body { padding: 22px; }
.label { display: block; margin: 0 0 7px; font-size: 12px; font-weight: 550; color: var(--ink); }
.input, .select, .note-title-input, .textarea-small { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--ink); outline-offset: 2px; }
.input:hover, .select:hover, .textarea-small:hover { border-color: #acb8a5; }
.input::placeholder, textarea::placeholder { color: #7a8277; opacity: 1; }
.note-title-input { padding: 0 0 13px; border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; font: 400 22px/1.3 var(--serif); }
.editor { display: block; width: 100%; min-height: 340px; padding: 18px 0 8px; border: 0; background: transparent; color: var(--body); font: 14px/1.9 var(--serif); outline-offset: 6px; }
.editor:focus-visible { outline-width: 2px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.version-select { max-width: 210px; min-height: 30px; padding: 4px 28px 4px 8px; border: 1px solid var(--line); border-radius: 4px; background: white; color: var(--muted); font-size: 11px; }
.status-line { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; color: var(--muted); font-size: 11px; }
.notice { padding: 12px 14px; background: #eff3ec; border: 1px solid #dce5d5; border-radius: 5px; color: #50654b; font-size: 11px; line-height: 1.65; }
.notice.warm { background: var(--ochre-soft); border-color: #e9dfc9; color: #786137; }
.notice.subtle { background: #f6f7f3; border-color: var(--line-soft); color: var(--muted); }
.notice + .work-grid, .notice + .memo-grid { margin-top: 22px; }
.section-label { display: block; margin: 22px 0 11px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; }
.section-label:first-child { margin-top: 0; }
.text-link { display: inline-flex; align-items: center; gap: 5px; padding: 0; min-height: 24px; background: none; border: 0; color: var(--forest); font-size: 11px; font-weight: 550; text-decoration: underline; text-underline-offset: 3px; }
.source-list { max-height: 320px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #cdd5c7 transparent; }
.source-paragraph { display: flex; align-items: flex-start; gap: 12px; padding: 10px 8px; border-radius: 4px; transition: background .2s; }
.source-paragraph.highlighted { background: #eef2e8; box-shadow: inset 2px 0 0 var(--forest); }
.source-index { flex: 0 0 19px; padding-top: 3px; color: #7c8676; font-size: 10px; font-family: var(--sans); }
.source-text { margin: 0; font-family: var(--serif); font-size: 13px; line-height: 1.85; white-space: pre-wrap; }
.source-text mark { background: #f0e6be; color: inherit; padding: 1px 0; }

.map-panel { background: #fff; }
.map-canvas { display: block; width: 100%; height: 340px; overflow: visible; }
.map-canvas text { font-family: var(--sans); }
.map-canvas [role="button"] { cursor: pointer; outline: none; }
.map-canvas [role="button"]:focus-visible circle, .map-canvas [role="button"]:focus-visible ellipse { stroke: var(--ochre); stroke-width: 3px; }
.map-canvas [role="button"]:hover circle { filter: brightness(.98); }
.map-edge { fill: none; stroke: #d8dfd0; stroke-width: 1px; }
.map-node { cursor: pointer; }
.map-node circle { transition: stroke .15s, fill .15s; }
.map-node.selected circle { stroke: var(--forest); stroke-width: 2px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; color: var(--muted); font-size: 10px; padding: 0 16px 18px; }
.map-legend > span { display: inline-flex; gap: 6px; align-items: center; }
.legend-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--forest); }
.legend-dot.optional { background: white; border: 1px dashed #93a087; }
.dimension-button { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 5px; background: white; font-size: 11px; color: var(--body); }
.dimension-button:hover, .dimension-button.active { background: var(--forest-soft); color: var(--forest-dark); border-color: #adbea4; }
.dimension-chip { display: inline-block; padding: 3px 7px; margin: 2px; border: 1px solid #d4decc; border-radius: 4px; background: #f2f5ee; color: var(--forest); font-size: 10px; }
.evidence-panel { padding: 18px 22px; border-top: 1px solid var(--line-soft); background: #fafbf7; }
.evidence-panel h3 { font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.evidence-item + .evidence-item { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.evidence-quote { margin: 0 0 8px; padding-left: 12px; border-left: 2px solid #b8c6ad; color: var(--body); font: 13px/1.65 var(--serif); }
.evidence-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 10px; color: var(--muted); }
.empty-state { padding: 28px 20px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.7; }
.empty-state .icon { width: 26px; height: 26px; margin: 0 auto 12px; color: #7a8b70; }
.empty-state h3 { color: var(--ink); font-size: 14px; font-weight: 550; }
.count-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; padding: 1px 5px; margin-left: 6px; border-radius: 4px; background: #edf1e8; color: var(--forest); font-size: 10px; font-weight: 600; }

.tabs { display: flex; flex-wrap: wrap; gap: 18px; border-bottom: 1px solid var(--line); margin: 0 0 22px; }
.tab { position: relative; padding: 10px 0 12px; border: 0; background: transparent; color: var(--muted); font-size: 12px; }
.tab.active { color: var(--forest-dark); font-weight: 600; }
.tab.active::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--forest); }
.stepper { display: flex; gap: 0; margin: 0 0 26px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.65); }
.step { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; padding: 0 14px; }
.step:first-child { padding-left: 0; }
.step + .step { border-left: 1px solid var(--line); }
.step-number { display: grid; place-items: center; flex: 0 0 26px; width: 26px; height: 26px; border: 1px solid #cfd6c8; border-radius: 50%; font-size: 11px; color: var(--muted); }
.step.active .step-number { background: var(--forest); color: white; border-color: var(--forest); }
.step.complete .step-number { background: var(--forest-soft); color: var(--forest); border-color: #cad8c1; }
.step-title { font-size: 11px; color: var(--ink); font-weight: 600; }
.step-subtitle { font-size: 10px; color: var(--muted); margin-top: 2px; }
.memo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.memo-grid > .panel + .panel { margin-top: 0; }
.memo-editor { width: 100%; min-height: 170px; padding: 12px; border: 1px solid var(--line); border-radius: 5px; color: var(--body); background: #fdfdfb; font: 13px/1.8 var(--serif); }
.memo-editor + .label { margin-top: 18px; }
.disclosure-box { margin: 18px 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 5px; background: #f8f9f4; font-size: 11px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 9px; color: var(--body); font-size: 12px; line-height: 1.6; }
.checkbox-row input { width: 15px; height: 15px; min-height: 0; flex-shrink: 0; margin: 2px 0 0; }
.approved-excerpt { margin: 12px 0 0; padding: 12px; border-left: 2px solid #aaba9c; background: white; font: 12px/1.7 var(--serif); white-space: pre-wrap; }
.literature-row { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; font-size: 12px; }
.literature-row + .literature-row { border-top: 1px solid var(--line-soft); }
.literature-row .icon { color: #6b7e60; margin-top: 2px; }
.literature-row strong { display: block; font-weight: 550; color: var(--ink); }
.literature-row small { display: block; color: var(--muted); line-height: 1.65; margin-top: 3px; }
.reflection-card { padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.reflection-card:first-child { padding-top: 0; }
.reflection-card:last-child { border-bottom: 0; padding-bottom: 0; }
.reflection-kind { display: block; margin-bottom: 8px; color: var(--forest); font-size: 9px; font-weight: 650; letter-spacing: 1.15px; text-transform: uppercase; }
.reflection-title { margin: 0 0 8px; font: 400 18px/1.35 var(--serif); color: var(--ink); }
.reflection-text { font-size: 12px; line-height: 1.75; color: var(--body); }
.suggestion-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.decision-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: var(--forest); background: var(--forest-soft); padding: 3px 7px; border-radius: 4px; }
.decision-badge.rejected { background: #f3eee6; color: #7a6951; }
.textarea-small { min-height: 82px; font-size: 12px; line-height: 1.65; }

.history-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 28px; align-items: start; }
.history-summary { padding: 22px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.history-summary > div + div { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.stat-value { display: block; color: var(--ink); font: 400 30px/1.2 var(--serif); }
.stat-label { display: block; margin-top: 5px; font-size: 11px; color: var(--muted); }
.history-filter { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 24px; }
.history-filter .button.active { background: var(--forest-soft); border-color: #b9c6b0; color: var(--forest-dark); }
.timeline { padding: 0 0 0 7px; list-style: none; }
.timeline-item { position: relative; display: flex; gap: 20px; padding-bottom: 28px; }
.timeline-item::before { content: ""; position: absolute; top: 17px; left: 6px; bottom: -2px; width: 1px; background: #d7ded0; }
.timeline-item:last-child::before { display: none; }
.timeline-dot { position: relative; z-index: 1; flex: 0 0 13px; width: 13px; height: 13px; margin-top: 5px; border: 3px solid var(--canvas); border-radius: 50%; background: var(--forest); box-shadow: 0 0 0 1px #b6c4ac; }
.timeline-content { min-width: 0; flex: 1; padding: 17px 20px; border: 1px solid var(--line); background: white; border-radius: 6px; }
.timeline-time { display: block; margin-bottom: 7px; color: var(--muted); font-size: 10px; }
.timeline-heading { margin: 0 0 7px; font-size: 13px; font-weight: 550; color: var(--ink); }
.timeline-detail { color: var(--muted); font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.timeline-tag { display: inline-block; margin-top: 10px; padding: 2px 6px; border-radius: 3px; background: #f1f3ed; font-size: 9px; color: #63745a; }
.method-list { padding-left: 18px; font-size: 13px; line-height: 1.8; }
.method-list li + li { margin-top: 8px; }
.methods-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.methods-grid .panel + .panel { margin-top: 0; }
.methods-grid h3 { font: 400 21px/1.3 var(--serif); color: var(--ink); }
.methods-grid p { color: var(--muted); font-size: 12px; }
.footer-note { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-top: 22px; color: var(--muted); font-size: 10px; line-height: 1.6; }

.modal { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid #cbd3c4; border-radius: 9px; background: white; color: var(--body); box-shadow: 0 20px 80px rgba(27,42,29,.16); overflow-y: auto; }
.modal::backdrop { background: rgba(31,45,34,.32); backdrop-filter: blur(2px); }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 22px 24px; border-bottom: 1px solid var(--line-soft); }
.modal-header h2 { margin: 0; color: var(--ink); font: 400 24px/1.25 var(--serif); }
.modal-body { padding: 22px 24px; }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 16px 24px; background: #f8f9f5; border-top: 1px solid var(--line-soft); }
.form-row { margin-bottom: 17px; }
.form-row:last-child { margin-bottom: 0; }
.form-row small { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); line-height: 1.6; }
.toast { position: fixed; right: 28px; bottom: 28px; z-index: 100; max-width: min(400px, calc(100vw - 32px)); padding: 13px 18px; border: 1px solid #48654c; border-radius: 6px; background: var(--ink); color: white; box-shadow: 0 5px 24px rgba(27,42,29,.12); font-size: 12px; animation: toast-in .2s ease-out; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1600px) {
  .workspace > main, .main-content { padding-top: 40px; }
  .editor { min-height: 390px; }
}
@media (max-width: 1200px) {
  .workspace > main, .main-content { padding: 28px; }
  .topbar { padding: 0 28px; }
  .page-title { font-size: 31px; }
  .page-header { gap: 16px; }
  .header-actions { flex-wrap: wrap; justify-content: flex-end; max-width: 200px; }
  .panel-header, .panel-body, .evidence-panel { padding-left: 18px; padding-right: 18px; }
  .work-grid, .memo-grid { gap: 18px; }
}
@media (max-width: 1050px) {
  .work-grid, .memo-grid, .history-layout { grid-template-columns: minmax(0, 1fr); }
  .map-canvas { height: 360px; }
  .history-summary { display: flex; flex-wrap: wrap; gap: 24px; }
  .history-summary > div + div { margin: 0; padding: 0 0 0 24px; border-top: 0; border-left: 1px solid var(--line-soft); }
  .stepper { padding: 14px; }
  .step { gap: 7px; padding: 0 10px; }
  .step-subtitle { display: none; }
}
@media (max-width: 800px) {
  .app-shell { display: block; }
  .sidebar { position: relative; height: auto; padding: 16px 20px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0; }
  .brand-name { font-size: 23px; }
  .brand-subtitle { font-size: 8px; margin-top: 4px; }
  .project-switch, .sidebar-bottom { display: none; }
  .nav-list { flex-direction: row; gap: 4px; margin: 15px -4px 0; overflow-x: auto; scrollbar-width: none; }
  .nav-list::-webkit-scrollbar { display: none; }
  .nav-item { flex-shrink: 0; width: auto; min-height: 43px; padding: 10px 12px; border-radius: 5px 5px 0 0; white-space: nowrap; font-size: 12px; }
  .nav-list li { flex-shrink: 0; }
  .nav-number { display: none; }
  .topbar { height: 54px; padding: 0 22px; }
  .workspace > main, .main-content { padding: 26px 22px; }
  .page-header { align-items: flex-start; }
  .page-title { font-size: 30px; }
  .page-description { font-size: 12px; }
  .header-actions { max-width: 150px; }
  .methods-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .top-actions { gap: 6px; }
}
@media (max-width: 520px) {
  .sidebar { padding-left: 16px; padding-right: 16px; }
  .brand-mark { width: 26px; height: 28px; }
  .brand-mark svg { width: 26px; height: 26px; }
  .brand-name { font-size: 22px; }
  .topbar { padding: 0 16px; }
  .breadcrumb { font-size: 10px; gap: 6px; }
  .topbar .pill.saved { display: none; }
  .top-actions .button { font-size: 10px; min-height: 29px; padding: 5px 7px; }
  .workspace > main, .main-content { padding: 22px 16px; }
  .page-header { display: block; margin-bottom: 22px; }
  .page-title { font-size: 29px; }
  .header-actions { justify-content: flex-start; max-width: none; margin-top: 15px; padding: 0; }
  .panel-header, .panel-body, .evidence-panel { padding-left: 15px; padding-right: 15px; }
  .panel-header { gap: 8px; flex-wrap: wrap; }
  .panel-title { font-size: 13px; }
  .editor { min-height: 300px; font-size: 13px; }
  .note-title-input { font-size: 20px; }
  .toolbar { align-items: stretch; }
  .toolbar .button { flex: 1; }
  .map-canvas { height: 300px; }
  .stepper { gap: 6px; padding: 12px 10px; }
  .step { display: block; padding: 0 8px; }
  .step-number { width: 23px; height: 23px; margin-bottom: 6px; }
  .step-title { font-size: 10px; line-height: 1.45; }
  .step-copy { max-width: 100px; }
  .tabs { gap: 15px; }
  .tab { font-size: 11px; }
  .timeline-item { gap: 13px; }
  .timeline-content { padding: 14px; }
  .history-summary { gap: 14px; padding: 18px; }
  .history-summary > div + div { padding-left: 14px; }
  .stat-value { font-size: 25px; }
  .footer-note { flex-direction: column; gap: 5px; }
  .modal-header, .modal-body { padding: 18px; }
  .modal-footer { padding: 14px 18px; }
  .toast { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .panel, .notice, .nav-item.active, .button, .timeline-content, .pill { border: 1px solid CanvasText; }
  .tab.active::after, .timeline-dot, .legend-dot { background: Highlight; }
  .map-canvas circle, .map-canvas ellipse { stroke: CanvasText; }
  :focus-visible { outline-color: Highlight; }
}
@media print {
  .sidebar, .topbar, .header-actions, .toolbar, .suggestion-actions, .toast { display: none !important; }
  .app-shell { display: block; }
  .workspace > main, .main-content { padding: 0; max-width: none; }
  body { background: white; }
  .panel { break-inside: avoid; }
}
