:root {
  color-scheme: light;
  --ink: #16211d;
  --muted: #6f7b76;
  --line: #dfe5e1;
  --soft: #f4f6f4;
  --paper: #ffffff;
  --green: #2f684f;
  --green-dark: #204b39;
  --green-soft: #e8f1ec;
  --lime: #d8f06e;
  --amber: #a45c1d;
  --amber-soft: #fff4e8;
  --red: #ad3e35;
  --red-soft: #fff0ed;
  --shadow: 0 12px 32px rgba(29, 51, 42, .07);
  font-family: Inter, Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: #f6f7f5; }
button, input, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid rgba(47, 104, 79, .25); outline-offset: 2px; }
svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 18px 22px; background: #173f31; color: #eef7f2; display: flex; flex-direction: column; z-index: 5; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 32px; color: #fff; text-decoration: none; font-size: 19px; font-weight: 700; letter-spacing: -.4px; }
.brand-mark { width: 25px; height: 25px; display: inline-flex; align-items: flex-end; justify-content: center; gap: 2px; padding: 5px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; }
.brand-mark i { width: 3px; background: var(--lime); border-radius: 2px; }
.brand-mark i:nth-child(1) { height: 6px; } .brand-mark i:nth-child(2) { height: 12px; } .brand-mark i:nth-child(3) { height: 9px; }
.main-nav { display: grid; gap: 6px; }
.nav-item { position: relative; width: 100%; height: 46px; display: flex; align-items: center; gap: 13px; padding: 0 14px; border: 0; border-radius: 9px; color: #afc7bc; background: transparent; cursor: pointer; text-align: left; font-size: 14px; font-weight: 500; }
.nav-item:hover:not(:disabled) { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: #295743; color: #fff; }
.nav-item.active svg { color: var(--lime); }
.nav-item.active i { position: absolute; right: 0; width: 3px; height: 20px; border-radius: 3px 0 0 3px; background: var(--lime); }
.nav-item:disabled { opacity: .42; cursor: not-allowed; }
.sidebar-guide { margin: auto 4px 20px; padding: 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: rgba(255,255,255,.035); }
.eyebrow, .section-kicker, .step-label { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: var(--green); }
.sidebar-guide .eyebrow { color: var(--lime); }
.sidebar-guide p { margin: 9px 0 13px; font-size: 12px; line-height: 1.65; color: #bdd0c7; word-break: keep-all; }
.safe-badge { display: inline-flex; gap: 7px; align-items: center; font-size: 11px; color: #dfeb7d; }
.safe-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(216,240,110,.12); }
.sidebar-footer { padding: 17px 8px 0; border-top: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; gap: 10px; }
.avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #e3edaa; color: var(--green-dark); font-size: 10px; font-weight: 700; }
.sidebar-footer div { display: grid; gap: 2px; }
.sidebar-footer strong { font-size: 11px; } .sidebar-footer div span { font-size: 10px; color: #9eb9ac; }

.workspace { min-width: 0; }
.topbar { height: 66px; padding: 0 34px; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 4; }
.breadcrumb { display: flex; gap: 10px; align-items: center; font-size: 12px; }
.breadcrumb span, .breadcrumb b { color: #9ba59f; font-weight: 400; }
.breadcrumb strong { font-weight: 600; }
.top-actions, .heading-actions { display: flex; gap: 9px; align-items: center; }
.mobile-brand { display: none; }
.icon-button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--muted); }
.content { width: min(1240px, calc(100% - 64px)); margin: 0 auto; padding: 48px 0 70px; }

.hero-row { display: flex; justify-content: space-between; gap: 30px; align-items: end; padding-bottom: 36px; }
.hero-row h1, .page-heading h1 { margin: 9px 0 12px; font-size: clamp(34px, 4vw, 54px); line-height: 1.15; letter-spacing: -2.3px; }
.hero-row h1 em { color: var(--green); font-style: normal; }
.hero-row p, .page-heading p { margin: 0; max-width: 640px; color: var(--muted); line-height: 1.7; font-size: 14px; word-break: keep-all; }
.step-rail { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.step-rail span { display: flex; gap: 6px; align-items: center; font-size: 11px; color: #9aa39f; white-space: nowrap; }
.step-rail span b { display: grid; place-items: center; width: 19px; height: 19px; background: var(--soft); border-radius: 50%; font-size: 9px; }
.step-rail span.active { color: var(--green); font-weight: 700; } .step-rail span.active b { color: #fff; background: var(--green); }
.step-rail > i { width: 22px; height: 1px; background: var(--line); }

.input-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, .75fr); gap: 18px; align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 5px 20px rgba(29,51,42,.035); }
.upload-panel, .settings-panel, .changes-panel, .quality-panel, .records-panel, .report-aside .panel { padding: 24px; }
.panel-heading, .section-title { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.panel-heading h2, .section-title h2, .report-section h2, .report-aside h2 { margin: 4px 0 0; font-size: 18px; letter-spacing: -.5px; }
.text-button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; color: var(--green); font-size: 12px; font-weight: 700; cursor: pointer; }
.text-button svg { width: 16px; }
.drop-zone { min-height: 225px; border: 1.5px dashed #bfcac4; border-radius: 10px; background: #fafbf9; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 25px; text-align: center; transition: .2s ease; cursor: pointer; }
.drop-zone:hover, .drop-zone.dragging { border-color: var(--green); background: var(--green-soft); transform: translateY(-1px); }
.upload-symbol { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 13px; color: var(--green); border-radius: 50%; background: var(--green-soft); }
.upload-symbol svg { width: 29px; }
.drop-zone strong { font-size: 15px; } .drop-zone p { margin: 6px 0 17px; color: var(--muted); font-size: 11px; }
.button { min-height: 38px; padding: 0 16px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 7px; font-size: 12px; font-weight: 700; cursor: pointer; transition: .15s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { opacity: .42; cursor: not-allowed; }
.button-primary { background: var(--green); color: #fff; box-shadow: 0 5px 14px rgba(47,104,79,.16); }
.button-primary:hover:not(:disabled) { background: var(--green-dark); }
.button-secondary { border-color: var(--line); background: #fff; }
.button-secondary:hover { border-color: #b5c3bc; }
.button-quiet { min-height: 32px; border-color: transparent; background: var(--soft); color: var(--green); }
.button-ghost { background: transparent; color: var(--muted); }
.button-full { width: 100%; margin-top: 20px; min-height: 45px; }
.schema-row { display: flex; align-items: center; gap: 6px; overflow: auto; padding: 15px 0 0; }
.schema-row > span { margin-right: 4px; color: var(--muted); font-size: 10px; white-space: nowrap; }
code { padding: 3px 6px; border-radius: 4px; color: #3e5f51; background: #eef3f0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; white-space: nowrap; }
.csv-editor { margin-top: 16px; border-top: 1px solid var(--line); }
.csv-editor summary { padding: 14px 2px 0; cursor: pointer; font-size: 11px; font-weight: 600; color: var(--muted); }
.csv-editor summary span { float: right; font-weight: 400; }
.csv-editor textarea { width: 100%; min-height: 155px; margin-top: 12px; padding: 13px; resize: vertical; border: 1px solid var(--line); border-radius: 7px; background: #fbfcfb; font: 11px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; color: #34453e; }
.settings-panel { position: sticky; top: 86px; }
.field-label { display: block; margin-top: 26px; font-size: 12px; font-weight: 600; }
.threshold-control { display: grid; grid-template-columns: 1fr 75px; gap: 15px; align-items: center; margin-top: 12px; }
input[type="range"] { width: 100%; accent-color: var(--green); }
.threshold-control > div { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.threshold-control input[type="number"] { width: 50px; height: 38px; border: 0; text-align: right; font-weight: 700; outline: none; }
.threshold-control span { font-size: 11px; color: var(--muted); }
.field-help { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.checks-list { margin-top: 27px; padding-top: 19px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.checks-list > div { display: flex; gap: 10px; align-items: center; }
.checks-list svg { width: 21px; padding: 4px; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.checks-list span { display: grid; gap: 2px; }
.checks-list strong { font-size: 11px; } .checks-list small { color: var(--muted); font-size: 9px; }
.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 18px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.trust-strip > div { min-height: 85px; padding: 18px; display: flex; align-items: center; gap: 12px; background: #fff; }
.trust-strip > div > span { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; color: var(--green); border-radius: 50%; background: var(--green-soft); }
.trust-strip svg { width: 18px; }
.trust-strip p { margin: 0; display: grid; gap: 3px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.trust-strip strong { color: var(--ink); font-size: 11px; }

.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-heading h1 { font-size: 38px; margin-bottom: 8px; }
.summary-bar { display: grid; grid-template-columns: repeat(5, 1fr); margin-bottom: 18px; background: #fff; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.summary-bar > div { padding: 18px 20px; border-right: 1px solid var(--line); }
.summary-bar > div:last-child { border: 0; }
.summary-bar span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 9px; font-weight: 600; }
.summary-bar strong { font-size: 19px; letter-spacing: -.6px; }
.summary-bar small { margin-left: 3px; color: var(--muted); font-size: 9px; }
.validation-banner { min-height: 70px; display: flex; align-items: center; gap: 13px; margin-bottom: 32px; padding: 14px 18px; border: 1px solid #bcd5c8; border-radius: 9px; background: #edf6f1; }
.validation-banner > svg { width: 29px; color: var(--green); }
.validation-banner div { display: grid; gap: 3px; }
.validation-banner strong { font-size: 12px; } .validation-banner p { margin: 0; color: var(--muted); font-size: 10px; }
.validation-banner > span { margin-left: auto; padding: 5px 9px; border-radius: 99px; background: #d9ece1; color: var(--green); font-size: 9px; font-weight: 700; }
.validation-banner.failed { border-color: #e6c0bb; background: var(--red-soft); }
.section-block { margin-bottom: 28px; }
.threshold-pill, .count-badge { padding: 5px 9px; border-radius: 99px; color: var(--green); background: var(--green-soft); font-size: 9px; font-weight: 700; }
.channel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.channel-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow); }
.channel-card header { padding: 17px 19px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.channel-card header div { display: flex; align-items: center; gap: 9px; }
.channel-card header div span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; background: var(--green); color: #fff; font-size: 10px; font-weight: 700; }
.channel-card header strong { font-size: 13px; } .channel-card header small { color: var(--muted); font-size: 9px; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); padding: 20px 19px; }
.metric-row > div { padding-left: 14px; border-left: 1px solid var(--line); }
.metric-row > div:first-child { padding-left: 0; border: 0; }
.metric-row span { display: block; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .7px; }
.metric-row strong { display: block; margin: 6px 0 5px; font-size: 17px; letter-spacing: -.5px; }
.metric-row strong.unavailable { color: var(--red); font-size: 13px; }
.change { font-size: 9px; font-weight: 700; } .change.up { color: var(--red); } .change.down { color: #3570a0; } .change.flat, .change-na { color: var(--muted); }
.channel-card footer { padding: 10px 19px; display: flex; align-items: center; gap: 8px; background: #fafbf9; border-top: 1px solid var(--line); }
.channel-card footer span { color: var(--muted); font-size: 9px; }
.two-column { display: grid; grid-template-columns: 1.6fr .8fr; gap: 14px; margin-bottom: 14px; }
.change-list { display: grid; gap: 1px; background: var(--line); }
.change-list > div { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; background: #fff; }
.change-list p { display: grid; gap: 2px; margin: 0; } .change-list p strong { font-size: 11px; } .change-list p small { color: var(--muted); font-size: 9px; }
.change-list b { font-size: 12px; } .change-list code { grid-column: 2 / 4; justify-self: start; }
.metric-token { width: fit-content; padding: 4px 7px; border-radius: 5px; background: var(--green-soft); color: var(--green); font-size: 9px; font-weight: 700; }
.positive { color: var(--red); } .negative { color: #34709f; }
.quality-score { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 8px; background: var(--green-soft); }
.quality-score > span { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--green); }
.quality-score svg { width: 23px; }
.quality-score div { display: grid; gap: 2px; } .quality-score strong { font-size: 13px; } .quality-score p { margin: 0; color: var(--muted); font-size: 9px; }
.quality-panel ul { padding: 14px 3px 0; margin: 0; list-style: none; display: grid; gap: 10px; }
.quality-panel li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.quality-panel li i { width: 7px; height: 7px; border-radius: 50%; } .quality-panel li i.ok { background: #5a9a77; } .quality-panel li i.warn { background: #d78741; }
.records-panel { margin-top: 14px; }
.muted { color: var(--muted); font-size: 9px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 10px; white-space: nowrap; }
th { padding: 10px 12px; color: var(--muted); background: var(--soft); text-align: left; font-size: 9px; font-weight: 600; }
td { padding: 12px; border-bottom: 1px solid var(--line); } tr:last-child td { border: 0; }
.row-chip { padding: 3px 6px; border-radius: 99px; background: var(--soft); color: var(--muted); font-size: 8px; }
.empty-state.mini { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-state svg { width: 28px; color: var(--green); }
.empty-state strong { margin-top: 9px; font-size: 12px; } .empty-state p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }

.error-panel { margin-bottom: 20px; padding: 18px; border: 1px solid #e6c0bb; border-radius: 10px; background: var(--red-soft); }
.error-title { display: flex; gap: 11px; align-items: center; }
.error-title > svg { width: 25px; color: var(--red); }
.error-title div { display: grid; gap: 3px; } .error-title strong { font-size: 13px; } .error-title p { margin: 0; color: #8d5b56; font-size: 10px; }
.error-list { margin-top: 14px; display: grid; gap: 7px; }
.error-list > div { display: grid; grid-template-columns: 110px 150px 1fr; gap: 10px; padding: 10px; align-items: center; background: rgba(255,255,255,.65); border-radius: 6px; }
.error-list code { color: var(--red); background: #f8dcd7; text-align: center; }
.error-list strong { font-size: 10px; } .error-list span { color: #79534f; font-size: 10px; }

.report-layout { display: grid; grid-template-columns: minmax(0, 1fr) 255px; gap: 18px; align-items: start; }
.report-paper { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.report-cover { min-height: 90px; padding: 24px 30px; display: flex; justify-content: space-between; align-items: center; color: #fff; background: var(--green-dark); }
.report-cover > div { display: flex; align-items: center; gap: 10px; font-size: 10px; letter-spacing: 1px; }
.report-logo { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--green-dark); background: var(--lime); font-size: 9px; font-weight: 800; }
.report-cover p { color: #bed0c7; font-size: 9px; }
.report-section { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 30px; border-bottom: 1px solid var(--line); }
.report-section:last-child { border: 0; }
.report-section > div { min-width: 0; }
.report-number { padding-top: 2px; color: #a8b4ae; font: 10px ui-monospace, monospace; }
.report-section h2 { margin-bottom: 18px; font-size: 20px; }
.highlight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.report-highlight { padding: 17px; border: 1px solid #c6d9ce; border-radius: 8px; background: var(--green-soft); }
.report-highlight.lowest { border-color: #ead5bb; background: #fff8ed; }
.report-highlight > span:first-child { color: var(--green); font-size: 8px; letter-spacing: 1px; font-weight: 700; }
.report-highlight.lowest > span:first-child { color: var(--amber); }
.report-highlight strong { display: block; margin: 8px 0 5px; font-size: 16px; }
.report-highlight p { min-height: 34px; margin: 0 0 10px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.evidence-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.report-channel-list { display: grid; gap: 9px; }
.report-channel { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.report-channel header { padding: 10px 13px; display: flex; justify-content: space-between; background: var(--soft); }
.report-channel header strong { font-size: 11px; } .report-channel header span { color: var(--muted); font-size: 9px; }
.report-channel > div { display: grid; grid-template-columns: repeat(3, 1fr); }
.report-channel p { min-width: 0; margin: 0; padding: 13px; border-right: 1px solid var(--line); color: var(--muted); font-size: 9px; line-height: 1.6; }
.report-channel p:last-child { border: 0; }
.report-channel .evidence-chips { margin-top: 7px; }
.movement-list { display: grid; gap: 7px; }
.movement { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 7px; }
.movement p { display: grid; gap: 3px; margin: 0; color: var(--muted); font-size: 9px; } .movement p strong { color: var(--ink); font-size: 11px; }
.movement > b { font-size: 12px; } .movement .evidence-chips { grid-column: 2 / 4; }
.empty-inline { padding: 16px; border-radius: 7px; background: var(--soft); color: var(--muted); font-size: 10px; }
.follow-list { display: grid; gap: 8px; }
.follow-list > div { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; gap: 10px; align-items: start; padding: 12px; border-left: 2px solid var(--amber); background: #fffaf2; }
.follow-list > div > span { width: 21px; height: 21px; display: grid; place-items: center; color: var(--amber); border: 1px solid #e9cda8; border-radius: 50%; font-size: 8px; }
.follow-list p { margin: 0; color: #6e6255; font-size: 9px; line-height: 1.65; }
.follow-list b { padding: 4px 7px; border-radius: 99px; background: #f3e3cc; color: var(--amber); font-size: 8px; white-space: nowrap; }
.sticky-panel { position: sticky; top: 86px; }
.validation-ring { width: 126px; height: 126px; margin: 24px auto; display: flex; flex-direction: column; justify-content: center; align-items: center; border-radius: 50%; background: conic-gradient(var(--green) 100%, var(--line) 0); position: relative; }
.validation-ring::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fff; }
.validation-ring strong, .validation-ring span { position: relative; z-index: 1; }
.validation-ring strong { font-size: 27px; } .validation-ring small { font-size: 12px; }
.validation-ring span { margin-top: 2px; color: var(--muted); font-size: 9px; }
.report-aside dl { margin: 0; display: grid; }
.report-aside dl div { padding: 10px 0; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); }
.report-aside dt { color: var(--muted); font-size: 10px; } .report-aside dd { margin: 0; font-size: 10px; font-weight: 700; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 10; padding: 12px 17px; color: #fff; background: #183c30; border-radius: 7px; box-shadow: 0 10px 30px rgba(0,0,0,.18); font-size: 11px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.loading { min-height: 55vh; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); font-size: 11px; }
.loading span { width: 28px; height: 28px; border: 2px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 74px minmax(0,1fr); }
  .sidebar { padding-inline: 12px; }
  .brand { justify-content: center; padding-inline: 0; font-size: 0; }
  .nav-item { justify-content: center; padding: 0; } .nav-item span, .sidebar-guide, .sidebar-footer div { display: none; }
  .sidebar-footer { justify-content: center; padding-inline: 0; }
  .input-grid, .two-column { grid-template-columns: 1fr; }
  .settings-panel { position: static; }
  .report-layout { grid-template-columns: 1fr; } .sticky-panel { position: static; }
  .report-aside .panel { display: grid; grid-template-columns: 1fr 150px; gap: 0 20px; align-items: center; }
  .report-aside .validation-ring { grid-column: 2; grid-row: 1 / 4; }
}

@media (max-width: 720px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; inset: auto 0 0; width: 100%; height: 64px; padding: 8px 12px; flex-direction: row; z-index: 9; box-shadow: 0 -5px 18px rgba(0,0,0,.12); }
  .sidebar .brand, .sidebar-guide, .sidebar-footer { display: none; }
  .main-nav { width: 100%; display: grid; grid-template-columns: repeat(3,1fr); }
  .nav-item { height: 48px; flex-direction: column; gap: 2px; border-radius: 6px; font-size: 9px; }
  .nav-item span { display: block; } .nav-item svg { width: 17px; } .nav-item.active i { display: none; }
  .topbar { height: 58px; padding: 0 18px; }
  .breadcrumb { display: none; } .mobile-brand { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--green-dark); }
  .mobile-brand .brand-mark { border-color: var(--green); } .mobile-brand .brand-mark i { background: var(--green); }
  .button-quiet { font-size: 0; width: 34px; padding: 0; } .button-quiet svg { width: 17px; }
  .content { width: calc(100% - 30px); padding: 32px 0 90px; }
  .hero-row, .page-heading { display: block; }
  .hero-row h1 { font-size: 37px; letter-spacing: -1.8px; }
  .step-rail { margin-top: 24px; justify-content: center; }
  .input-grid, .trust-strip, .channel-grid, .summary-bar, .highlight-grid { grid-template-columns: 1fr; }
  .trust-strip { gap: 1px; }
  .summary-bar { grid-template-columns: 1fr 1fr; }
  .summary-bar > div { border-bottom: 1px solid var(--line); }
  .page-heading .heading-actions { margin-top: 20px; }
  .page-heading .heading-actions .button { flex: 1; }
  .error-list > div { grid-template-columns: 1fr; gap: 5px; }
  .error-list code { justify-self: start; }
  .report-cover { display: block; } .report-cover p { margin: 12px 0 0; }
  .report-section { grid-template-columns: 1fr; padding: 23px 18px; }
  .report-number { display: none; }
  .report-channel > div { grid-template-columns: 1fr; } .report-channel p { border-right: 0; border-bottom: 1px solid var(--line); }
  .report-aside .panel { display: block; }
  .report-aside .validation-ring { margin: 24px auto; }
  .movement { grid-template-columns: 42px 1fr; } .movement > b { grid-column: 2; } .movement .evidence-chips { grid-column: 2; }
  .follow-list > div { grid-template-columns: 24px 1fr; } .follow-list b { grid-column: 2; justify-self: start; }
  .schema-row { padding-bottom: 4px; }
  .toast { right: 15px; left: 15px; bottom: 78px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
