@font-face {
  font-family: 'Pretendard';
  src: url('/fonts/PretendardVariable.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #fff;
  --paper-2: #f6f8f8;
  --ink: #192b33;
  --muted: #52616a;
  --soft: #626f76;
  --rule: #dce3e5;
  --rule-solid: #a9b6bb;
  --accent: #12695e;
  --accent-tint: #edf6f3;
  --link: #12695e;
  --warning: #80531d;
  --warning-tint: #faf4e9;
  --error: #973c35;
  --sans: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, select, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled, select:disabled { cursor: wait; opacity: .55; }
button, select, textarea { border: 1px solid var(--rule-solid); border-radius: 4px; }
a { color: var(--accent); text-underline-offset: 3px; }
button { background: var(--paper); }
button:hover:not(:disabled), a:hover { color: var(--accent); }
button:focus-visible, a:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin-top: 0; }
h2 { font-size: 23px; line-height: 1.4; letter-spacing: -.025em; margin-bottom: 0; font-weight: 600; }
h3 { font-size: 19px; letter-spacing: -.025em; line-height: 1.5; }
h4 { font-size: 14px; margin-bottom: 10px; }
p { margin-bottom: 12px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono, code { font-family: var(--mono); }
code { font-size: 11px; overflow-wrap: anywhere; }
.eyebrow { color: var(--soft); font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: .06em; line-height: 1.5; margin-bottom: 9px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 16px; padding: 12px; background: var(--paper); z-index: 10; }
.skip-link:focus { top: 12px; }
.masthead { max-width: 1680px; margin: auto; min-height: 78px; padding: 22px 48px; border-bottom: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 15px; letter-spacing: .025em; font-weight: 700; white-space: nowrap; }
.brand-light { font-weight: 400; letter-spacing: -.015em; color: var(--muted); }
.brand-mark { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid var(--ink); font-family: var(--sans); font-size: 20px; font-weight: 700; line-height: 1; }
.notice-badge { color: var(--accent); font-size: 11px; border-left: 2px solid var(--accent); padding-left: 11px; }
main { max-width: 1680px; margin: auto; padding: 0 48px; min-width: 0; }
.intro { padding: 42px 0 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
h1 { font-family: var(--sans); font-size: clamp(28px, 2.7vw, 36px); letter-spacing: -.035em; font-weight: 700; line-height: 1.35; margin-bottom: 11px; }
.subtitle { color: var(--muted); margin: 0; font-size: 14px; }
.dataset-meta { border-left: 1px solid var(--rule); padding-left: 24px; min-width: 230px; }
.dataset-meta p { margin: 7px 0 4px; font-size: 13px; }
.dataset-meta > span:last-child { color: var(--soft); overflow-wrap: anywhere; }
.tabs { display: flex; gap: 32px; border-bottom: 1px solid var(--rule-solid); }
.tabs button { min-height: 55px; padding: 14px 2px 17px; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; border-radius: 0; color: var(--muted); font-weight: 600; font-size: 14px; }
.tabs button[aria-selected='true'] { color: var(--accent); border-bottom-color: var(--accent); }
.tab-number { font-family: var(--mono); font-size: 10px; font-weight: 400; margin-right: 8px; }
.scope-bar { display: flex; align-items: center; gap: 22px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.scope-heading { display: flex; flex-direction: column; gap: 2px; margin-right: 8px; font-size: 12px; }
.scope-heading .eyebrow { font-size: 9px; margin: 0; }
.scope-bar label { display: flex; flex-direction: column; gap: 5px; min-width: 132px; color: var(--muted); font-size: 11px; }
.scope-bar .indicator-control { min-width: 188px; }
select { min-height: 39px; padding: 7px 30px 7px 10px; color: var(--ink); background: var(--paper); max-width: 100%; }
.scope-note { margin: 0 0 0 auto; font-size: 11px; color: var(--soft); }
.tab-panel { padding: 30px 0 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading .eyebrow { margin-bottom: 6px; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.graph-surface { min-width: 0; display: flex; flex-direction: column; }
.graph-host { min-width: 0; position: relative; }
.graph-toolbar { padding: 14px 18px; border-bottom: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.graph-toolbar label { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--muted); }
.node-picker { width: 210px; min-height: 32px; padding: 4px 24px 4px 8px; font-size: 12px; }
.diagram-scroll { max-width: 100%; overflow: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.relationship-diagram { width: auto; min-width: 100%; height: auto; display: block; background: var(--paper); font-family: var(--sans); }
.column-heading { font-size: 13px; fill: var(--soft); }
.graph-edge { fill: none; stroke: var(--muted); stroke-width: 1.35; }
.graph-edge-mask { fill: none; stroke: var(--paper); stroke-width: 5; }
.arrow-muted { fill: var(--muted); }
.arrow-accent { fill: var(--accent); }
.arrow-link { fill: var(--link); }
.edge-label-mask { fill: var(--paper); }
.edge-label { fill: var(--muted); font-size: 13px; font-weight: 500; }
.graph-node { cursor: pointer; outline: none; }
.node-box { fill: var(--paper); stroke: var(--rule-solid); stroke-width: 1.4; }
.kind-evidence .node-box, .kind-release .node-box, .kind-document .node-box { fill: var(--paper-2); }
.graph-node.is-selected .node-box { stroke: var(--accent); stroke-width: 2; fill: var(--accent-tint); }
.graph-node:hover .node-box { stroke: var(--accent); }
.graph-node:focus-visible .node-box { stroke: var(--accent); stroke-width: 3; stroke-dasharray: 6 3; }
.node-type { fill: var(--soft); font-size: 13px; }
.graph-node.is-selected .node-type { fill: var(--accent); }
.node-name { fill: var(--ink); font-size: 16px; font-weight: 600; }
.node-subtitle { fill: var(--muted); font-size: 14px; }
.node-divider { stroke: var(--rule); stroke-width: 1; }
.diagram-caption { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: auto; padding: 13px 18px; border-top: 1px solid var(--rule); font-size: 11px; color: var(--soft); }
.diagram-caption span { display: inline-flex; align-items: center; gap: 6px; }
.legend-focus { display: inline-block; width: 11px; height: 9px; border: 1px solid var(--accent); background: var(--accent-tint); border-radius: 2px; }
.graph-scope-note { padding: 0 18px; color: var(--muted); }
.detail-panel { background: #fbfcfc; border-left: 1px solid var(--rule); padding: 24px 22px; min-width: 0; max-height: 720px; overflow: auto; scrollbar-width: thin; }
.detail-panel h3 { margin-bottom: 8px; overflow-wrap: anywhere; }
.detail-panel .eyebrow { font-size: 9px; }
.node-id { font-size: 10px; color: var(--soft); overflow-wrap: anywhere; margin-bottom: 15px; }
.property-list { margin: 18px 0; }
.property-row { border-bottom: 1px solid var(--rule); padding: 9px 0; display: grid; grid-template-columns: minmax(65px, .7fr) minmax(0, 1fr); gap: 10px; font-size: 12px; }
.property-row dt { color: var(--soft); overflow-wrap: anywhere; }
.property-row dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; white-space: pre-wrap; }
.property-row dd.missing-value, .missing-value { color: var(--warning); font-weight: 600; }
.detail-subheading { margin-top: 23px; font-size: 12px; }
.relation-list { list-style: none; padding: 0; margin: 0; }
.relation-list li { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 12px; }
.relation-list code { font-size: 9px; color: var(--soft); }
.relation-name { color: var(--accent); }
.evidence-button { width: 100%; border-color: var(--rule-solid); padding: 10px; text-align: left; font-size: 12px; margin: 4px 0; color: var(--accent); }
.explainer-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; }
.explainer-row p { max-width: 740px; font-size: 12px; color: var(--muted); margin: 0; }
.explainer-row strong { display: block; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.text-button { border: 0; background: transparent; color: var(--accent); padding: 6px 0; font-size: 12px; white-space: nowrap; text-align: left; }
.primary-button { background: var(--accent); color: white; border-color: var(--accent); padding: 11px 18px; font-size: 13px; font-weight: 600; }
.primary-button:hover:not(:disabled) { background: #0a5047; color: white; }
.primary-button span { padding-left: 20px; }
.secondary-button { padding: 8px 12px; font-size: 12px; }
.button-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.status-badge { display: inline-block; background: var(--accent-tint); color: var(--accent); border-radius: 3px; font-size: 11px; padding: 5px 9px; overflow-wrap: anywhere; }
.status-warning { color: var(--warning); background: var(--warning-tint); }
.query-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 50px; }
.query-main { min-width: 0; }
.query-form { border: 1px solid var(--rule-solid); padding: 23px 24px 18px; border-radius: 6px; }
.query-form > label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
textarea { display: block; width: 100%; min-height: 110px; padding: 13px; resize: vertical; border-color: var(--rule); background: #fafcfc; line-height: 1.7; }
textarea::placeholder { color: var(--soft); }
.question-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
#query-context { color: var(--accent); margin-top: 17px; margin-bottom: 8px; }
.disclosure { color: var(--soft); font-size: 11px; line-height: 1.7; margin: 0; }
.examples { display: flex; align-items: baseline; gap: 16px; margin: 18px 0 24px; }
.examples > span { flex: 0 0 auto; }
.example-button { padding: 6px 9px; border-color: var(--rule); font-size: 11px; color: var(--muted); text-align: left; }
.example-button:hover:not(:disabled) { border-color: var(--accent); }
.query-guide { border-left: 1px solid var(--rule); padding-left: 25px; }
.process-guide { list-style: none; counter-reset: stages; padding: 0; margin: 24px 0 32px; }
.process-guide li { counter-increment: stages; padding: 0 0 24px 29px; position: relative; }
.process-guide li::before { content: counter(stages, decimal-leading-zero); position: absolute; top: 2px; left: 0; font: 10px var(--mono); color: var(--accent); }
.process-guide li strong { font-size: 13px; display: block; margin-bottom: 5px; }
.process-guide li span { font-size: 12px; color: var(--soft); }
.review-note { background: var(--paper-2); color: var(--muted); font-size: 12px; padding: 14px; border-left: 2px solid var(--rule-solid); line-height: 1.8; }
.query-empty { padding: 30px 0 60px; border-top: 1px solid var(--rule); }
.empty-glyph { font: 600 48px/1 var(--sans); color: var(--rule-solid); display: block; }
.query-empty h3 { font-size: 18px; margin: 5px 0 12px; }
.query-empty p { font-size: 13px; color: var(--soft); max-width: 460px; }
.empty-state { padding: 70px 24px; margin: 0; min-height: 290px; display: flex; justify-content: center; align-items: center; color: var(--muted); font-size: 13px; text-align: center; }
.error-box { padding: 18px; border: 1px solid #d9b6b0; border-radius: 4px; color: var(--error); background: #fffaf9; margin: 16px 0; }
.error-box p { margin: 0 0 12px; }
.query-progress { padding: 18px; border-left: 2px solid var(--accent); background: var(--accent-tint); color: var(--accent); font-size: 13px; margin: 24px 0; }
.result-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin: 24px 0 12px; }
.result-heading h3, .result-heading h4 { margin: 0; }
.result-question { font-size: 17px; font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; }
.generation-section { padding: 5px 0 20px; border-top: 1px solid var(--rule); }
.generation-state { color: var(--accent); text-align: right; }
.answer-text { font-size: 15px; line-height: 1.95; white-space: pre-wrap; overflow-wrap: anywhere; }
.inline-citation { display: inline; color: var(--accent); font-size: 12px; font-weight: 600; border: 0; padding: 1px 4px; background: var(--accent-tint); margin: 0 2px; }
.reason-note { font-size: 12px; color: var(--warning); padding: 12px 0; overflow-wrap: anywhere; }
.reason-list { padding: 14px 20px 14px 34px; background: var(--warning-tint); font-size: 13px; color: var(--warning); }
.reason-list li { margin: 8px 0; }
.reason-list code { display: block; margin-top: 4px; }
.result-section { padding: 24px 0; border-top: 1px solid var(--rule); }
.result-section > h4 { font-size: 15px; }
.table-scroll { overflow-x: auto; max-width: 100%; overscroll-behavior-x: contain; }
.facts-table { border-collapse: collapse; width: 100%; min-width: 600px; text-align: left; }
.facts-table th { padding: 10px; font-size: 11px; font-weight: 500; color: var(--soft); border-bottom: 1px solid var(--rule-solid); background: var(--paper-2); }
.facts-table td { padding: 12px 10px; border-bottom: 1px solid var(--rule); font-size: 12px; }
.cell-subtext { display: block; color: var(--soft); font-size: 11px; }
.fact-value { font-weight: 650; white-space: nowrap; }
.empty-inline { font-size: 12px; color: var(--soft); padding: 14px; background: var(--paper-2); }
.calculation { border-left: 2px solid var(--accent); padding: 16px 20px; background: var(--accent-tint); margin-top: 18px; }
.calculation > span { display: block; }
.calculation-value { display: block; font-size: 28px; color: var(--accent); letter-spacing: -.035em; margin: 6px 0; }
.calculation .property-list { margin: 0; max-width: 320px; }
.citation-card { display: grid; grid-template-columns: 35px minmax(0, 1fr); gap: 5px 12px; text-align: left; width: 100%; padding: 16px; border-color: var(--rule); border-radius: 4px; margin-top: 10px; }
.citation-label { grid-row: 1 / 5; color: var(--accent); font-size: 12px; }
.citation-card strong { font-size: 13px; }
.citation-quote { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; white-space: pre-wrap; }
.citation-action { font-size: 11px; color: var(--accent); margin-top: 4px; }
.trace-list { list-style: none; padding: 0; margin: 18px 0; counter-reset: trace; }
.trace-step { counter-increment: trace; padding: 3px 0 18px 34px; margin-left: 9px; border-left: 1px solid var(--rule); position: relative; }
.trace-step::before { content: counter(trace); position: absolute; left: -10px; top: 2px; display: grid; place-items: center; width: 19px; height: 19px; background: var(--paper); border: 1px solid var(--rule-solid); border-radius: 50%; font: 10px var(--mono); color: var(--soft); }
.trace-step.trace-ok::before { border-color: var(--accent); color: var(--accent); }
.trace-step.trace-blocked::before { border-color: var(--warning); color: var(--warning); }
.trace-title { display: flex; align-items: center; gap: 12px; }
.trace-title strong { font-size: 13px; }
.trace-title span { color: var(--soft); }
.trace-step p { margin: 5px 0 0; overflow-wrap: anywhere; }
.result-graph { border: 1px solid var(--rule); border-radius: 4px; margin: 12px 0 24px; }
summary { cursor: pointer; color: var(--accent); font-size: 13px; padding: 15px; }
.query-node-detail { padding: 20px; border-top: 1px solid var(--rule); }
.query-node-detail .property-list { max-width: 640px; }
.query-node-detail .evidence-button { width: auto; margin-right: 8px; }
.query-node-detail .relation-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.limits { color: var(--muted); font-size: 12px; }
.limits ul { padding-left: 18px; }
.limits li { margin: 7px 0; }
.suggested-questions { margin-bottom: 24px; }
.suggested-questions button { margin: 0 8px 8px 0; }
.class-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.class-button { border-color: var(--rule); padding: 7px 12px; font-size: 12px; color: var(--muted); }
.class-button[aria-pressed='true'] { background: var(--accent-tint); color: var(--accent); border-color: var(--accent); }
.class-property { display: grid; grid-template-columns: 1fr auto; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 12px; gap: 4px; }
.class-property strong { font-weight: 550; }
.class-property span { color: var(--accent); }
.class-property code { grid-column: 1 / -1; color: var(--soft); }
.rules-section { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 48px; padding: 38px 0 24px; }
.rules-section h3 { font-size: 20px; line-height: 1.6; }
.rule-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.rule-item { display: flex; gap: 15px; border-top: 1px solid var(--rule); padding: 14px 0; }
.rule-number { color: var(--accent); font-size: 11px; padding-top: 3px; }
.rule-item h4 { margin-bottom: 5px; font-size: 13px; }
.rule-item p { margin: 0; }
.download-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--rule); padding: 25px 0; margin-top: 28px; }
.download-bar > div:first-child { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 15px; }
.download-bar strong { font-size: 12px; font-weight: 600; }
.download-link { display: inline-block; text-decoration: none; border: 1px solid var(--rule); border-radius: 3px; padding: 7px 11px; font-size: 11px; white-space: nowrap; }
.download-link:hover { border-color: var(--accent); background: var(--accent-tint); }
footer { max-width: 1680px; margin: auto; border-top: 1px solid var(--rule); padding: 22px 48px 28px; display: flex; gap: 20px; justify-content: space-between; font-size: 10px; color: var(--soft); }
footer p { margin: 0; }
footer > span:first-child { color: var(--ink); white-space: nowrap; }
dialog { border: 1px solid var(--rule-solid); border-radius: 6px; width: min(720px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 26px; color: var(--ink); background: var(--paper); overflow: auto; overscroll-behavior: contain; }
dialog::backdrop { background: rgba(17, 31, 37, .42); }
.dialog-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--rule); }
.dialog-top h2 { font-size: 22px; overflow-wrap: anywhere; }
.dialog-top button { flex: 0 0 auto; }
#evidence-content { padding-top: 22px; }
#evidence-content .property-row { grid-template-columns: 130px minmax(0, 1fr); }
#evidence-content .download-link { margin: 5px 8px 5px 0; }
.evidence-quote-label { margin: 25px 0 10px; }
.source-quote { margin: 0; padding: 18px 20px; background: var(--paper-2); border-left: 2px solid var(--accent); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.9; }
.dialog-notice { border-top: 1px solid var(--rule); padding-top: 18px; margin: 24px 0 0; color: var(--soft); font-size: 11px; }
@media (min-width: 1500px) { .workspace-grid { grid-template-columns: minmax(0, 1fr) 320px; } }
@media (max-width: 1499px) {
  main { padding: 0 28px; }
  .masthead { padding-left: 28px; padding-right: 28px; }
  .workspace-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-panel { border-left: 0; border-top: 1px solid var(--rule); max-height: none; }
  .detail-panel .property-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .detail-panel .relation-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
  .detail-panel .evidence-button { width: auto; margin-right: 8px; }
  .query-layout { gap: 28px; grid-template-columns: minmax(0, 1fr) 220px; }
  .scope-note { display: none; }
  .rules-section { grid-template-columns: 220px minmax(0, 1fr); gap: 28px; }
  footer { padding-left: 28px; padding-right: 28px; flex-wrap: wrap; gap: 8px 24px; }
}
@media (max-width: 760px) {
  .masthead { padding: 17px 20px; flex-wrap: wrap; min-height: 0; gap: 12px; }
  .brand { font-size: 13px; }
  .notice-badge { font-size: 10px; }
  main { padding: 0 20px; }
  .intro { padding: 30px 0 23px; gap: 20px; }
  .dataset-meta { display: none; }
  .intro .eyebrow { font-size: 9px; }
  .tabs { gap: 0; justify-content: space-between; }
  .tabs button { font-size: 12px; padding: 12px 3px; min-height: 49px; }
  .tab-number { font-size: 9px; margin-right: 3px; }
  .scope-bar { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 12px; padding: 17px 0; }
  .scope-heading { grid-column: 1 / -1; display: flex; flex-direction: row; align-items: center; gap: 12px; font-size: 10px; }
  .scope-bar label, .scope-bar .indicator-control { min-width: 0; }
  .scope-bar select { padding-left: 8px; padding-right: 22px; font-size: 12px; width: 100%; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 19px; }
  h2 { font-size: 21px; }
  .tab-panel { padding-top: 25px; }
  .graph-toolbar { padding: 12px; gap: 8px; flex-wrap: wrap; }
  .graph-toolbar label { font-size: 11px; gap: 8px; }
  .graph-toolbar > span { font-size: 10px; }
  .node-picker { width: 180px; }
  .diagram-caption { padding: 12px; font-size: 10px; gap: 6px 14px; }
  .detail-panel { padding: 21px 18px; }
  .explainer-row { align-items: flex-start; flex-direction: column; gap: 10px; padding-top: 17px; }
  .query-layout { display: flex; flex-direction: column; gap: 20px; }
  .query-guide { border-left: 0; border-top: 1px solid var(--rule); padding: 24px 0 0; }
  .process-guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 10px; }
  .process-guide li { padding-bottom: 12px; }
  .process-guide li span { font-size: 11px; }
  .query-form { padding: 18px 15px; }
  .primary-button { padding: 10px 12px; font-size: 12px; }
  .primary-button span { padding-left: 12px; }
  .examples { flex-direction: column; gap: 8px; }
  .query-empty { padding-bottom: 30px; }
  .rules-section { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-top: 28px; }
  .rules-section h3 br { display: none; }
  .rules-section h3 { font-size: 18px; margin-bottom: 9px; }
  .download-bar { align-items: flex-start; flex-direction: column; gap: 13px; }
  .download-bar > div:first-child { flex-direction: column; }
  footer { padding: 20px; flex-direction: column; gap: 8px; }
  .result-heading { align-items: flex-start; }
  .result-heading .status-badge { font-size: 10px; }
  .answer-text { font-size: 14px; }
  .citation-card { padding: 12px; grid-template-columns: 25px minmax(0, 1fr); gap: 5px 8px; }
  dialog { padding: 20px; }
  .dialog-top { gap: 12px; }
  .dialog-top h2 { font-size: 18px; }
  .dialog-top .eyebrow { font-size: 9px; }
  #evidence-content .property-row { grid-template-columns: 90px minmax(0, 1fr); }
}
@media (max-width: 430px) {
  main { padding: 0 15px; }
  .masthead { padding: 16px 15px; }
  .tabs button { font-size: 11px; }
  .tab-number { display: none; }
  .scope-bar { grid-template-columns: 1fr 1fr; gap: 10px; }
  .scope-bar .indicator-control { grid-column: 1 / -1; grid-row: 3; }
  .scope-heading { grid-row: 1; }
  .detail-panel .property-list, .detail-panel .relation-list, .query-node-detail .relation-list { grid-template-columns: minmax(0, 1fr); }
  .rule-list { grid-template-columns: minmax(0, 1fr); }
  .node-picker { width: 165px; }
  .process-guide { grid-template-columns: minmax(0, 1fr); }
  .primary-button span { padding-left: 3px; }
  .question-bottom .small { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
