:root {
  --navy-950: #071726;
  --navy-900: #0b1f33;
  --navy-800: #12304a;
  --blue-700: #145f7a;
  --blue-600: #197493;
  --teal-700: #087b72;
  --teal-600: #0a978a;
  --teal-100: #dff5f1;
  --cyan-100: #e8f6fa;
  --red-700: #a33a43;
  --red-100: #fdebed;
  --amber-700: #a76406;
  --amber-100: #fff3d8;
  --ink: #162b3b;
  --slate-700: #465b6d;
  --slate-600: #5d7182;
  --slate-500: #718596;
  --line: #d5dfe7;
  --line-dark: #c4d0da;
  --canvas: #eef3f6;
  --surface: #ffffff;
  --surface-muted: #f6f8fa;
  --shadow: 0 12px 32px rgba(15, 42, 62, 0.09);
  --sidebar-width: 244px;
  --radius: 12px;
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--canvas); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }

button { cursor: pointer; }

button:focus-visible,
input:focus-visible,
select:focus-visible,
[role="tab"]:focus-visible {
  outline: 3px solid rgba(10, 151, 138, 0.24);
  outline-offset: 2px;
}

.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;
  z-index: 100;
  top: 8px;
  left: 8px;
  transform: translateY(-140%);
  padding: 9px 13px;
  border-radius: 8px;
  color: white;
  background: var(--navy-900);
}

.skip-link:focus { transform: translateY(0); }

.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  color: #d8e5ec;
  background:
    radial-gradient(circle at 30px 34px, rgba(20, 203, 184, 0.14), transparent 110px),
    linear-gradient(175deg, var(--navy-900), var(--navy-950));
  border-right: 1px solid rgba(255,255,255,0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 80px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(108, 239, 222, 0.45);
  border-radius: 10px;
  color: #d7fff9;
  background: linear-gradient(135deg, rgba(10,151,138,0.75), rgba(23,107,135,0.35));
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}

.brand p, .brand h1 { margin: 0; }
.brand-eyebrow { color: #76ded1; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.brand h1 { margin-top: 2px; color: white; font-size: 15px; font-weight: 700; }

.nav-list { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 18px 12px; }

.nav-item {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  width: 100%;
  min-height: 43px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #b9c9d3;
  background: transparent;
  text-align: left;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.nav-item:hover { color: white; background: rgba(255,255,255,0.055); }
.nav-item.is-active { color: white; background: rgba(21, 159, 146, 0.18); border-color: rgba(78, 218, 202, 0.2); }
.nav-item.is-active::before { position: absolute; left: 0; width: 3px; height: 27px; border-radius: 0 3px 3px 0; background: #3ed4c3; content: ""; }
.nav-icon { width: 24px; color: #75d9ce; font-size: 18px; text-align: center; }
.nav-count { min-width: 22px; padding: 2px 6px; border-radius: 999px; color: #a9bac6; background: rgba(255,255,255,.07); font-size: 11px; font-weight: 700; text-align: center; }
.nav-count-accent { color: #fff2d5; background: rgba(230,161,51,.2); }
.nav-separator { height: 1px; margin: 10px 8px; background: rgba(255,255,255,.08); }

.sidebar-footer { padding: 14px 16px 18px; border-top: 1px solid rgba(255,255,255,.08); }
.system-health { display: flex; align-items: center; gap: 9px; padding: 10px; border-radius: 8px; background: rgba(255,255,255,.045); }
.health-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 999px; background: #39d1a4; box-shadow: 0 0 0 4px rgba(57,209,164,.11); }
.system-health strong, .system-health span { display: block; }
.system-health strong { color: #edf8f6; font-size: 12px; }
.system-health span { margin-top: 2px; color: #8199a9; font-size: 10px; }
.sidebar-footer > p { margin: 10px 4px 0; color: #687f90; font-size: 10px; }

.main { width: calc(100% - var(--sidebar-width)); min-width: 0; margin-left: var(--sidebar-width); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.topbar-kicker { margin: 0 0 2px; color: var(--slate-500); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.topbar h2 { margin: 0; color: var(--navy-900); font-size: 20px; line-height: 1.2; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.environment-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #b8dfd9; border-radius: 999px; color: var(--teal-700); background: #eefaf8; font-size: 12px; font-weight: 700; white-space: nowrap; }
.environment-pill > span { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-600); box-shadow: 0 0 0 3px rgba(10,151,138,.12); }
.icon-button, .more-button { display: inline-grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--slate-700); background: white; font-weight: 800; }
.icon-button:hover, .more-button:hover { border-color: #9eb1bf; background: var(--surface-muted); }
.user-chip { display: flex; align-items: center; gap: 8px; margin-left: 2px; padding-left: 10px; border-left: 1px solid var(--line); }
.avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: white; background: linear-gradient(135deg, var(--blue-600), var(--teal-600)); font-size: 11px; font-weight: 800; }
.user-chip strong, .user-chip small { display: block; }
.user-chip strong { font-size: 12px; }
.user-chip small { color: var(--slate-500); font-size: 10px; }

.view { display: none; padding: 18px 22px 28px; }
.view.is-active { display: block; animation: view-in .2s ease-out; }
@keyframes view-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: 12px; margin-bottom: 14px; }
.metric-card { display: flex; min-height: 82px; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 2px 10px rgba(15,42,62,.035); }
.metric-icon { display: grid; width: 39px; height: 39px; place-items: center; flex: 0 0 auto; border-radius: 10px; font-size: 14px; font-weight: 900; }
.metric-blue { color: var(--blue-700); background: var(--cyan-100); }
.metric-red { color: var(--red-700); background: var(--red-100); }
.metric-teal { color: var(--teal-700); background: var(--teal-100); }
.metric-amber { color: var(--amber-700); background: var(--amber-100); }
.metric-card span, .metric-card strong, .metric-card small { display: block; }
.metric-card span { color: var(--slate-600); font-size: 11px; font-weight: 700; }
.metric-card strong { margin-top: -1px; color: var(--navy-900); font-size: 23px; line-height: 1.25; }
.metric-card small { color: var(--slate-500); font-size: 10px; }

.workspace-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; background: white; }
.toolbar-copy strong, .toolbar-copy span { display: block; }
.toolbar-copy strong { color: var(--navy-900); font-size: 14px; }
.toolbar-copy span { margin-top: 2px; color: var(--slate-500); font-size: 11px; }
.toolbar-controls { display: flex; align-items: center; gap: 8px; }
.search-box { display: flex; min-width: 260px; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--slate-500); background: white; }
.search-box:focus-within { border-color: var(--teal-600); box-shadow: 0 0 0 3px rgba(10,151,138,.1); }
.search-box input { width: 100%; height: 34px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.select-box select { height: 36px; padding: 0 30px 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; font-size: 12px; }

.review-layout { display: grid; grid-template-columns: minmax(270px, 320px) minmax(720px, 1fr); min-height: 650px; overflow: hidden; border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); background: white; box-shadow: var(--shadow); }
.queue-panel { min-width: 0; background: #f3f6f8; border-right: 1px solid var(--line); }
.queue-heading { display: flex; height: 39px; align-items: center; justify-content: space-between; padding: 0 12px; border-bottom: 1px solid var(--line); color: var(--slate-600); font-size: 10px; }
.queue-heading button { border: 0; color: var(--blue-700); background: transparent; font-size: 10px; }
.queue-list { max-height: calc(100vh - 264px); min-height: 610px; overflow: auto; }
.queue-empty { padding: 32px 16px; color: var(--slate-500); text-align: center; }
.queue-card { position: relative; width: 100%; padding: 13px 13px 13px 15px; border: 0; border-bottom: 1px solid var(--line); color: inherit; background: transparent; text-align: left; transition: background .15s ease; }
.queue-card:hover { background: white; }
.queue-card.is-active { background: white; }
.queue-card.is-active::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--teal-600); content: ""; }
.queue-card-top, .queue-card-meta, .queue-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.queue-channel { color: var(--blue-700); font-size: 10px; font-weight: 800; letter-spacing: .02em; }
.queue-age { color: var(--slate-500); font-size: 9px; }
.queue-card h4 { margin: 7px 0 3px; overflow: hidden; color: var(--navy-900); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.queue-card-meta { color: var(--slate-600); font-size: 10px; }
.queue-card-foot { margin-top: 9px; }
.queue-card-foot span:first-child { color: var(--slate-500); font-size: 9px; }

.mini-status, .status-badge { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 800; white-space: nowrap; }
.mini-status { padding: 3px 7px; font-size: 9px; }
.status-badge { padding: 4px 9px; font-size: 10px; }
.status-diff { color: var(--red-700); background: var(--red-100); }
.status-ready { color: var(--teal-700); background: var(--teal-100); }
.status-warning { color: var(--amber-700); background: var(--amber-100); }
.status-manual { color: #6746a3; background: #f0eafb; }
.status-running { color: var(--blue-700); background: var(--cyan-100); }
.status-success { color: var(--teal-700); background: var(--teal-100); }
.status-muted { color: var(--slate-600); background: #eaf0f4; }

.comparison-panel { min-width: 0; background: white; }
.comparison-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 17px 18px 12px; }
.record-title-row { display: flex; align-items: center; gap: 8px; }
.channel-chip { color: var(--blue-700); font-size: 10px; font-weight: 800; letter-spacing: .02em; }
.comparison-header h3 { margin: 6px 0 2px; color: var(--navy-900); font-size: 18px; }
.comparison-header p { margin: 0; color: var(--slate-500); font-size: 11px; }
.header-actions { display: flex; gap: 7px; }

.secondary-button, .primary-button {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
}
.secondary-button { border: 1px solid var(--line-dark); color: var(--navy-800); background: white; }
.secondary-button:hover { border-color: #8fa4b3; background: var(--surface-muted); }
.secondary-button:disabled { cursor: not-allowed; color: #9aa9b4; border-color: #d7e0e6; background: #f3f6f8; }
.primary-button { border: 1px solid var(--teal-700); color: white; background: linear-gradient(180deg, #0b9689, #08786f); box-shadow: 0 4px 11px rgba(8,123,114,.18); }
.primary-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 7px 15px rgba(8,123,114,.23); }
.primary-button:disabled { cursor: not-allowed; border-color: #a8b6bf; color: #eef2f4; background: #a8b6bf; box-shadow: none; }

.source-strip { display: flex; flex-wrap: wrap; gap: 1px; margin: 0 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--line); }
.source-item { flex: 1 1 135px; min-width: 0; padding: 8px 10px; background: var(--surface-muted); }
.source-item span, .source-item strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-item span { color: var(--slate-500); font-size: 9px; }
.source-item strong { margin-top: 2px; color: var(--navy-800); font-size: 10px; }

.alert-banner { display: flex; align-items: center; gap: 8px; min-height: 35px; margin: 10px 18px 0; padding: 7px 10px; border: 1px solid #f0c7cb; border-radius: 7px; color: #853038; background: #fff4f5; font-size: 10px; }
.alert-banner.ready { border-color: #b7e3da; color: var(--teal-700); background: #f0fbf8; }
.alert-banner.warning { border-color: #efd8a6; color: var(--amber-700); background: #fff9ea; }
.alert-banner::before { display: grid; width: 18px; height: 18px; place-items: center; flex: 0 0 auto; border-radius: 50%; color: currentColor; background: rgba(255,255,255,.7); font-weight: 900; content: "!"; }
.alert-banner.ready::before { content: "✓"; }

.tabs { display: flex; margin: 11px 18px 0; border-bottom: 1px solid var(--line); }
.tab { position: relative; min-height: 36px; padding: 6px 12px; border: 0; color: var(--slate-600); background: transparent; font-size: 11px; font-weight: 700; }
.tab span { display: inline-grid; min-width: 17px; height: 17px; margin-left: 3px; place-items: center; border-radius: 999px; color: var(--slate-600); background: #e8eef2; font-size: 8px; }
.tab.is-active { color: var(--teal-700); }
.tab.is-active::after { position: absolute; right: 8px; bottom: -1px; left: 8px; height: 2px; background: var(--teal-600); content: ""; }

.compare-table-wrap { min-height: 310px; overflow: auto; padding: 0 18px; }
table { border-collapse: collapse; }
.compare-table { width: 100%; table-layout: fixed; }
.compare-table th { position: sticky; top: 0; z-index: 1; height: 35px; padding: 7px 9px; color: var(--slate-600); background: #f7f9fa; border-bottom: 1px solid var(--line-dark); font-size: 9px; text-align: left; }
.compare-table th:nth-child(1) { width: 16%; }
.compare-table th:nth-child(2) { width: 20%; }
.compare-table th:nth-child(3) { width: 22%; }
.compare-table th:nth-child(4) { width: 25%; }
.compare-table th:nth-child(5) { width: 17%; }
.compare-table td { padding: 9px; border-bottom: 1px solid #e4eaee; vertical-align: top; font-size: 10px; }
.compare-table tr.has-diff { background: #fffafb; }
.compare-table tr.is-resolved { background: #fbfefd; }
.field-label { display: block; color: var(--navy-900); font-weight: 800; }
.field-required { margin-left: 4px; color: var(--red-700); font-size: 8px; }
.field-context { display: block; margin-top: 3px; color: var(--slate-500); font-size: 8px; }
.source-value { color: var(--slate-700); word-break: break-word; }
.ai-value { display: flex; align-items: flex-start; gap: 6px; color: var(--blue-700); font-weight: 700; word-break: break-word; }
.ai-mark { display: inline-grid; min-width: 19px; height: 16px; place-items: center; border-radius: 4px; color: var(--blue-700); background: var(--cyan-100); font-size: 7px; font-weight: 900; }
.confidence { display: block; margin-top: 3px; color: var(--slate-500); font-size: 8px; font-weight: 500; }
.target-input { width: 100%; min-height: 30px; padding: 5px 7px; border: 1px solid var(--line-dark); border-radius: 6px; color: var(--navy-900); background: white; font-size: 10px; }
.target-input:focus { border-color: var(--teal-600); outline: 3px solid rgba(10,151,138,.1); }
.target-input[readonly] { border-color: transparent; background: transparent; }
.row-action { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.row-button { padding: 4px 7px; border: 1px solid var(--line-dark); border-radius: 6px; color: var(--blue-700); background: white; font-size: 8px; font-weight: 800; }
.row-button:hover { border-color: var(--blue-600); background: var(--cyan-100); }
.row-note { color: var(--slate-500); font-size: 8px; }
.row-ok { display: inline-flex; align-items: center; gap: 4px; color: var(--teal-700); font-size: 9px; font-weight: 800; }
.row-ok::before { display: grid; width: 16px; height: 16px; place-items: center; border-radius: 50%; color: white; background: var(--teal-600); content: "✓"; }
.row-warn { color: var(--red-700); font-size: 9px; font-weight: 800; }
.inline-source { margin: 0; padding: 13px; border-radius: 7px; color: #ddfaf5; background: var(--navy-950); font: 10px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; }
.inline-audit { padding: 8px 2px 14px; }
.inline-audit strong { color: var(--navy-900); font-size: 12px; }
.inline-audit p { margin: 6px 0 0; color: var(--slate-600); font-size: 10px; }

.approval-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 2px; padding: 12px 18px; border-top: 1px solid var(--line); background: #fbfcfd; }
.approval-progress { display: flex; align-items: center; gap: 9px; }
.progress-ring { display: grid; min-width: 37px; height: 37px; padding: 0 4px; place-items: center; border: 3px solid #dae3e8; border-radius: 50%; color: var(--slate-600); background: white; font-size: 9px; font-weight: 900; }
.progress-ring.complete { border-color: var(--teal-600); color: var(--teal-700); }
.approval-progress strong, .approval-progress small { display: block; }
.approval-progress strong { color: var(--navy-900); font-size: 11px; }
.approval-progress small { margin-top: 2px; color: var(--slate-500); font-size: 9px; }
.approval-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }

.section-intro { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 15px; padding: 4px 2px; }
.section-intro h3 { margin: 2px 0 3px; color: var(--navy-900); font-size: 22px; }
.section-intro p:not(.eyebrow) { margin: 0; color: var(--slate-600); font-size: 12px; }
.eyebrow { margin: 0; color: var(--teal-700); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.data-card, .timeline-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.card-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.card-toolbar strong { color: var(--navy-900); }
.card-toolbar span { color: var(--slate-500); font-size: 10px; }
.data-table { width: 100%; }
.data-table th { padding: 10px 12px; color: #eaf2f7; background: var(--navy-800); border-right: 1px solid rgba(255,255,255,.1); font-size: 10px; text-align: left; }
.data-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); color: var(--slate-700); font-size: 11px; vertical-align: top; }
.data-table tbody tr:hover { background: #fafcfd; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.job-id { color: var(--blue-700); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 800; }
.progress-track { width: 120px; height: 7px; overflow: hidden; border-radius: 999px; background: #e5edf1; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue-600), var(--teal-600)); }
.progress-copy { display: block; margin-top: 4px; color: var(--slate-500); font-size: 9px; }

.timeline-card { padding: 8px 22px 20px; }
.timeline-row { position: relative; display: grid; grid-template-columns: 110px 24px 1fr; min-height: 75px; padding: 15px 0; }
.timeline-row:not(:last-child)::after { position: absolute; top: 38px; bottom: -18px; left: 121px; width: 1px; background: var(--line); content: ""; }
.timeline-time { color: var(--slate-500); font-size: 10px; }
.timeline-dot { z-index: 1; width: 11px; height: 11px; margin-top: 2px; border: 3px solid white; border-radius: 50%; background: var(--teal-600); box-shadow: 0 0 0 2px #a9ddd6; }
.timeline-content { padding-left: 9px; }
.timeline-content strong { color: var(--navy-900); font-size: 12px; }
.timeline-content p { margin: 4px 0 0; color: var(--slate-600); font-size: 11px; }
.timeline-meta { display: inline-block; margin-top: 6px; padding: 3px 7px; border-radius: 5px; color: var(--blue-700); background: var(--cyan-100); font-size: 9px; font-weight: 700; }

.mapping-filter-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 11px; }
.filter-chip { padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--slate-700); background: white; font-size: 10px; font-weight: 800; }
.filter-chip.is-active { border-color: #8bd3ca; color: var(--teal-700); background: var(--teal-100); }
.mapping-table th:nth-child(1) { width: 10%; }
.mapping-table th:nth-child(2) { width: 20%; }
.mapping-table th:nth-child(3) { width: 18%; }
.mapping-table th:nth-child(4) { width: 19%; }
.mapping-table th:nth-child(5) { width: 23%; }
.mapping-table th:nth-child(6) { width: 10%; }

.rule-grid { display: grid; grid-template-columns: repeat(2, minmax(300px, 1fr)); gap: 14px; }
.rule-card { display: flex; min-height: 170px; flex-direction: column; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 5px 18px rgba(15,42,62,.05); }
.rule-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rule-card h4 { margin: 2px 0; color: var(--navy-900); font-size: 14px; }
.rule-card p { margin: 5px 0 0; color: var(--slate-600); font-size: 11px; }
.rule-id { color: var(--teal-700); font-size: 9px; font-weight: 900; letter-spacing: .07em; }
.rule-switch { position: relative; width: 34px; height: 19px; flex: 0 0 auto; border: 0; border-radius: 999px; background: #becbd4; }
.rule-switch::after { position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(0,0,0,.2); content: ""; transition: transform .15s ease; }
.rule-switch.is-on { background: var(--teal-600); }
.rule-switch.is-on::after { transform: translateX(15px); }
.rule-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 12px; }
.rule-tags span { padding: 3px 7px; border-radius: 5px; color: var(--slate-600); background: #eef3f6; font-size: 9px; }

.deployment-grid { display: grid; grid-template-columns: repeat(3, minmax(270px, 1fr)); gap: 14px; }
.deployment-card { min-height: 385px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 5px 18px rgba(15,42,62,.05); }
.deployment-required { border-top: 3px solid var(--red-700); }
.deployment-card-head { display: flex; align-items: center; gap: 11px; padding: 16px; border-bottom: 1px solid var(--line); background: #fafcfd; }
.large-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 10px; color: var(--teal-700); background: var(--teal-100); font-size: 12px; font-weight: 900; }
.deployment-card-head p, .deployment-card-head h4 { margin: 0; }
.deployment-card-head p { color: var(--red-700); font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.deployment-card:not(.deployment-required) .deployment-card-head p { color: var(--blue-700); }
.deployment-card-head h4 { margin-top: 2px; color: var(--navy-900); font-size: 14px; }
.check-list, .spec-list { margin: 0; padding: 13px 16px; list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: 8px; padding: 8px 0; border-bottom: 1px solid #edf1f3; color: var(--slate-700); font-size: 10px; }
.check-list li span { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; border: 1px solid #aab8c2; border-radius: 4px; background: white; }
.check-list li.done span { display: grid; place-items: center; border-color: var(--teal-600); color: white; background: var(--teal-600); }
.check-list li.done span::after { font-size: 9px; font-weight: 900; content: "✓"; }
.spec-list li { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #edf1f3; }
.spec-list span { color: var(--slate-500); font-size: 10px; }
.spec-list strong { max-width: 65%; color: var(--navy-800); font-size: 10px; text-align: right; }
.text-amber { color: var(--amber-700) !important; }
.card-note { margin: 0 16px 16px; padding: 9px; border-radius: 7px; color: var(--slate-600); background: var(--surface-muted); font-size: 10px; }
.environment-note { display: flex; align-items: center; gap: 16px; margin-top: 14px; padding: 14px 16px; border: 1px solid #efd9ab; border-radius: 10px; color: var(--amber-700); background: #fff9eb; }
.environment-note strong { white-space: nowrap; }
.environment-note p { margin: 0; color: #73551f; font-size: 11px; }

.modal { width: min(520px, calc(100vw - 30px)); padding: 0; border: 0; border-radius: 14px; color: var(--ink); background: white; box-shadow: 0 28px 80px rgba(2,18,30,.32); }
.modal::backdrop { background: rgba(4, 20, 32, .56); backdrop-filter: blur(3px); }
.modal form { padding: 24px; }
.modal-icon { display: grid; width: 48px; height: 48px; margin-bottom: 12px; place-items: center; border-radius: 13px; color: white; background: linear-gradient(135deg, var(--blue-600), var(--teal-600)); font-size: 11px; font-weight: 900; }
.modal h3 { margin: 4px 0 6px; color: var(--navy-900); font-size: 20px; }
.modal form > p:not(.eyebrow) { margin: 0; color: var(--slate-600); font-size: 12px; }
.approval-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 16px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--line); }
.approval-summary div { padding: 9px 10px; background: var(--surface-muted); }
.approval-summary span, .approval-summary strong { display: block; }
.approval-summary span { color: var(--slate-500); font-size: 9px; }
.approval-summary strong { margin-top: 2px; color: var(--navy-900); font-size: 11px; }
.confirm-check { display: flex; align-items: flex-start; gap: 8px; padding: 11px; border: 1px solid #b9ded9; border-radius: 8px; color: var(--navy-800); background: #f2fbf9; font-size: 11px; }
.confirm-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--teal-600); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.source-modal { width: min(720px, calc(100vw - 30px)); }
.modal-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.source-modal pre { max-height: 420px; overflow: auto; margin: 15px 0 0; padding: 15px; border: 1px solid var(--line); border-radius: 8px; color: #dff9f5; background: var(--navy-950); font: 11px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; }
.help-steps { display: grid; gap: 9px; margin: 17px 0 0; padding: 0; list-style: none; }
.help-steps li { display: flex; align-items: flex-start; gap: 10px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; }
.help-steps li > span { display: grid; width: 25px; height: 25px; place-items: center; flex: 0 0 auto; border-radius: 7px; color: var(--teal-700); background: var(--teal-100); font-size: 10px; font-weight: 900; }
.help-steps strong { color: var(--navy-900); font-size: 11px; }
.help-steps p { margin: 2px 0 0 !important; font-size: 10px !important; }

.toast { position: fixed; right: 22px; bottom: 22px; z-index: 80; display: flex; min-width: 320px; max-width: 430px; align-items: flex-start; gap: 10px; padding: 13px 15px; border: 1px solid #acdcd5; border-radius: 10px; background: white; box-shadow: 0 18px 50px rgba(5,30,46,.2); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: none; }
.toast-icon { display: grid; width: 25px; height: 25px; place-items: center; flex: 0 0 auto; border-radius: 50%; color: white; background: var(--teal-600); font-size: 11px; font-weight: 900; }
.toast strong { color: var(--navy-900); font-size: 11px; }
.toast p { margin: 2px 0 0; color: var(--slate-600); font-size: 10px; }

@media (max-width: 1180px) {
  :root { --sidebar-width: 202px; }
  .brand { padding-inline: 13px; }
  .brand h1 { font-size: 13px; }
  .review-layout { grid-template-columns: 270px minmax(650px, 1fr); overflow-x: auto; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .deployment-grid { grid-template-columns: 1fr; }
  .deployment-card { min-height: 0; }
}

@media (max-width: 820px) {
  :root { --sidebar-width: 0px; }
  .sidebar { position: static; width: 100%; min-height: 0; }
  .app-shell { display: block; }
  .main { width: 100%; margin-left: 0; }
  .brand { min-height: 68px; }
  .nav-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); flex: none; padding: 8px; }
  .nav-item { grid-template-columns: 24px 1fr; min-height: 38px; padding: 5px; font-size: 11px; }
  .nav-count, .nav-separator { display: none; }
  .sidebar-footer { display: none; }
  .topbar { position: static; padding: 12px 14px; }
  .environment-pill, .user-chip small { display: none; }
  .view { padding: 14px; }
  .workspace-toolbar { align-items: stretch; flex-direction: column; }
  .toolbar-controls { width: 100%; }
  .search-box { min-width: 0; flex: 1; }
  .review-layout { display: block; min-height: 0; overflow: visible; }
  .queue-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .queue-list { display: flex; min-height: 0; max-height: none; overflow-x: auto; }
  .queue-card { min-width: 250px; border-right: 1px solid var(--line); }
  .comparison-panel { overflow-x: auto; }
  .comparison-header, .approval-bar { align-items: stretch; flex-direction: column; }
  .compare-table-wrap { min-width: 760px; }
  .approval-actions { justify-content: flex-start; }
  .rule-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .nav-list { grid-template-columns: repeat(2, 1fr); }
  .topbar-actions .environment-pill { display: none; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .metric-card { min-height: 72px; padding: 10px; }
  .metric-icon { display: none; }
  .toolbar-controls { align-items: stretch; flex-direction: column; }
  .select-box select { width: 100%; }
  .section-intro { align-items: flex-start; flex-direction: column; }
  .toast { right: 12px; bottom: 12px; left: 12px; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Readability floor for operational data on standard desktop displays. */
body { font-size: 16px; }
.nav-item { font-size: 13px; }
.environment-pill, .comparison-header p, .section-intro p:not(.eyebrow) { font-size: 12px; }
.toolbar-copy span, .search-box input, .select-box select { font-size: 12px; }
.queue-card h4 { font-size: 14px; }
.queue-card-meta, .comparison-header .channel-chip, .source-item strong, .alert-banner, .data-table th { font-size: 11px; }
.tab, .data-table td, .rule-card p, .environment-note p { font-size: 12px; }
.compare-table th { font-size: 11px; }
.compare-table td, .target-input { font-size: 12px; }
.field-label { font-size: 13px; }
.secondary-button, .primary-button { font-size: 12px; }

/* v1.0 — split verification workspace */
.validation-passes {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(240px, 1fr) 170px;
  gap: 8px;
  margin: 10px 18px 0;
}

.validation-pass,
.validation-score {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8fafb;
}

.pass-index {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: white;
  background: var(--navy-800);
  font-size: 13px;
  font-weight: 900;
}

.validation-pass div { min-width: 0; flex: 1; }
.validation-pass strong,
.validation-pass small { display: block; }
.validation-pass strong { color: var(--navy-900); font-size: 13px; }
.validation-pass small { margin-top: 2px; overflow: hidden; color: var(--slate-500); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.pass-result { flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; font-size: 10px; font-weight: 900; }

.validation-score {
  display: block;
  padding-left: 14px;
  border-color: #acdcd5;
  background: linear-gradient(135deg, #effbf8, #f8fcfc);
}
.validation-score span,
.validation-score strong,
.validation-score small { display: block; }
.validation-score span { color: var(--teal-700); font-size: 10px; font-weight: 800; }
.validation-score strong { color: var(--navy-900); font-size: 20px; line-height: 1.15; }
.validation-score small { color: var(--slate-500); font-size: 10px; }

.numeric-watch {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 9px 18px 0;
  padding: 9px 11px;
  border: 1px solid #efc884;
  border-left: 4px solid #d88713;
  border-radius: 8px;
  background: #fff9eb;
}
.numeric-watch.is-normal { border-color: #b8ded8; border-left-color: var(--teal-600); background: #f2fbf9; }
.numeric-watch.is-muted { border-color: var(--line); border-left-color: var(--slate-500); background: #f5f7f8; }
.numeric-watch-main { display: flex; min-width: 0; align-items: center; gap: 10px; }
.numeric-signal { display: grid; width: 28px; height: 28px; place-items: center; flex: 0 0 auto; border-radius: 50%; color: white; background: #d88713; font-size: 14px; font-weight: 900; }
.numeric-watch.is-normal .numeric-signal { background: var(--teal-600); }
.numeric-watch.is-muted .numeric-signal { background: var(--slate-500); }
.numeric-watch-main strong { display: block; color: #6e4509; font-size: 13px; }
.numeric-watch-main p { margin: 2px 0 0; color: #785c2e; font-size: 11px; }
.numeric-watch.is-normal .numeric-watch-main strong { color: var(--teal-700); }
.numeric-watch.is-normal .numeric-watch-main p,
.numeric-watch.is-muted .numeric-watch-main p { color: var(--slate-600); }
.numeric-watch-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; }
.watch-button { min-height: 30px; padding: 5px 8px; border: 1px solid #d9bd89; border-radius: 6px; color: #81530d; background: white; font-size: 10px; font-weight: 800; }
.watch-button:hover { border-color: #b9893e; background: #fffdf7; }
.watch-primary { color: white; border-color: #bd7410; background: #c67a11; }
.watch-primary:hover { color: white; background: #ad680d; }
.watch-button[hidden] { display: none; }

.switch-control { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.switch-control input { position: absolute; opacity: 0; pointer-events: none; }
.switch-control > span { position: relative; width: 34px; height: 19px; flex: 0 0 auto; border-radius: 999px; background: #aebcc5; transition: background .16s ease; }
.switch-control > span::after { position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(0,0,0,.2); content: ""; transition: transform .16s ease; }
.switch-control input:checked + span { background: var(--teal-600); }
.switch-control input:checked + span::after { transform: translateX(15px); }
.switch-control input:focus-visible + span { outline: 3px solid rgba(10,151,138,.2); outline-offset: 2px; }
.switch-control b { color: var(--slate-700); font-size: 11px; white-space: nowrap; }

.verification-split {
  display: grid;
  grid-template-columns: minmax(330px, 44%) minmax(410px, 56%);
  min-height: 540px;
  margin: 10px 18px 0;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: white;
}
.file-preview-pane,
.ailey-result-pane { min-width: 0; }
.file-preview-pane { background: #e9eef1; border-right: 1px solid var(--line-dark); }
.ailey-result-pane { background: white; }
.pane-header { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: white; }
.pane-header strong,
.pane-label { display: block; }
.pane-header strong { margin-top: 1px; color: var(--navy-900); font-size: 14px; }
.pane-label { color: var(--blue-700); font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.pane-tools { display: flex; align-items: center; gap: 5px; }
.pane-tools button { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--line); border-radius: 6px; color: var(--navy-800); background: white; font-weight: 800; }
.pane-tools span { min-width: 39px; color: var(--slate-600); font-size: 10px; font-weight: 800; text-align: center; }
.file-meta-bar { display: flex; min-height: 36px; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 11px; border-bottom: 1px solid #cbd5db; color: var(--navy-800); background: #f7f9fa; }
.file-meta-bar span { overflow: hidden; font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.file-meta-bar small { color: var(--slate-500); font-size: 9px; white-space: nowrap; }
.document-scroll { height: 455px; overflow: auto; padding: 18px; scroll-behavior: smooth; }
.document-preview { --doc-zoom: 1; width: 100%; min-width: 420px; transform-origin: top left; }
.file-sheet { overflow: hidden; border: 1px solid #c4ccd2; background: white; box-shadow: 0 8px 22px rgba(20,40,54,.13); }
.file-sheet-head { padding: 17px 19px 13px; border-bottom: 2px solid #1d745f; }
.file-sheet-head .file-type { display: inline-flex; padding: 3px 7px; border-radius: 4px; color: #176a55; background: #e5f4ef; font-size: 9px; font-weight: 900; }
.file-sheet-head h4 { margin: 7px 0 3px; color: #1c2d38; font-size: 16px; }
.file-sheet-head p { margin: 0; color: #657681; font-size: 10px; }
.file-sheet-meta { display: grid; grid-template-columns: repeat(2, 1fr); border-bottom: 1px solid #d6dde1; }
.file-sheet-meta div { padding: 8px 10px; border-right: 1px solid #d6dde1; border-bottom: 1px solid #e2e7ea; }
.file-sheet-meta div:nth-child(even) { border-right: 0; }
.file-sheet-meta span,
.file-sheet-meta strong { display: block; }
.file-sheet-meta span { color: #778690; font-size: 8px; }
.file-sheet-meta strong { margin-top: 2px; color: #263b48; font-size: 10px; }
.sheet-table-wrap { padding: 12px; }
.sheet-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.sheet-table th { padding: 6px 7px; color: white; background: #185a70; border: 1px solid #d4dce1; font-size: 9px; text-align: left; }
.sheet-table td { padding: 7px; border: 1px solid #d4dce1; color: #334955; font-size: 9px; vertical-align: top; word-break: break-word; }
.sheet-table tr:nth-child(even) td { background: #f8fafb; }
.sheet-table tr.source-focus td,
.file-sheet-meta div.source-focus { position: relative; background: #fff1c8 !important; box-shadow: inset 0 0 0 2px #d9911d; }
.sheet-row-number { width: 31px; color: #71818b !important; background: #edf1f3 !important; text-align: center; }
.file-sheet-foot { margin: 0 12px 14px; padding: 9px 10px; border-left: 3px solid #8a9aa4; color: #5d6e78; background: #f3f6f7; font-size: 9px; }

.ailey-pane-header { background: linear-gradient(90deg, #f6fbfb, white); }
.ailey-mark { padding: 5px 8px; border: 1px solid #a9ddd6; border-radius: 7px; color: var(--teal-700); background: var(--teal-100); font-size: 10px; font-weight: 900; letter-spacing: .06em; }
.ailey-result-pane .tabs { margin: 0; padding: 0 9px; background: #fafcfd; }
.ailey-result-pane .tab { min-height: 41px; padding-inline: 9px; font-size: 11px; }
.field-review-list { height: 466px; overflow: auto; background: #f6f8fa; }
.field-review-card { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(155px, .92fr) 106px; gap: 9px; padding: 11px 12px; border-bottom: 1px solid var(--line); background: white; }
.field-review-card.needs-review { background: #fffdf9; }
.field-review-card.is-resolved { background: #fbfefd; }
.field-name-row { display: flex; align-items: center; gap: 5px; }
.field-name-row strong { color: var(--navy-900); font-size: 13px; }
.field-source-locator { margin-top: 5px; padding: 3px 0; border: 0; color: var(--blue-700); background: transparent; font-size: 9px; font-weight: 800; }
.field-source-locator:hover { text-decoration: underline; }
.ailey-answer { margin-top: 5px; color: var(--blue-700); font-size: 12px; font-weight: 800; word-break: break-word; }
.ailey-check-line { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 6px; }
.check-chip { padding: 3px 6px; border-radius: 999px; font-size: 8px; font-weight: 900; }
.check-agree { color: var(--teal-700); background: var(--teal-100); }
.check-review { color: var(--amber-700); background: var(--amber-100); }
.check-confidence { color: var(--slate-600); background: #edf2f5; }
.erp-target-wrap label { display: block; margin-bottom: 4px; color: var(--slate-500); font-size: 9px; font-weight: 800; }
.field-review-card .target-input { min-height: 34px; font-size: 11px; }
.field-review-action { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 5px; }
.field-review-action .row-button { min-height: 30px; font-size: 9px; }
.field-review-action .row-ok { justify-content: center; }
.field-context-block { margin-top: 3px; color: var(--slate-500); font-size: 9px; }
.numbers-panel,
.audit-panel { padding: 13px; }
.number-check-card { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin-bottom: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.number-check-card.is-alert { border-color: #e8bd73; background: #fffaf0; }
.number-check-card strong { color: var(--navy-900); font-size: 12px; }
.number-check-card p { grid-column: 1 / -1; margin: 0; color: var(--slate-600); font-size: 10px; }
.number-value { color: var(--red-700); font-size: 13px; font-weight: 900; }
.number-check-card:not(.is-alert) .number-value { color: var(--teal-700); }
.audit-panel-item { display: grid; grid-template-columns: 105px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.audit-panel-item span { color: var(--slate-500); font-size: 10px; }
.audit-panel-item strong { color: var(--navy-900); font-size: 11px; }

/* persistent numeric baseline settings */
.baseline-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-bottom: 14px; }
.baseline-summary article { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.baseline-summary span,
.baseline-summary strong,
.baseline-summary small { display: block; }
.baseline-summary span { color: var(--slate-600); font-size: 11px; font-weight: 800; }
.baseline-summary strong { margin-top: 3px; color: var(--navy-900); font-size: 21px; }
.baseline-summary small { color: var(--slate-500); font-size: 10px; }
.baseline-layout { display: grid; grid-template-columns: minmax(470px, 1.05fr) minmax(400px, .95fr); gap: 14px; }
.settings-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.settings-head { display: flex; min-height: 67px; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border-bottom: 1px solid var(--line); background: #fafcfd; }
.settings-head h4 { margin: 2px 0 0; color: var(--navy-900); font-size: 16px; }
.switch-large > span { width: 42px; height: 23px; }
.switch-large > span::after { width: 17px; height: 17px; }
.switch-large input:checked + span::after { transform: translateX(19px); }
.setting-row { display: flex; min-height: 69px; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 15px; border-bottom: 1px solid var(--line); }
.setting-row strong,
.setting-row small { display: block; }
.setting-row strong { color: var(--navy-900); font-size: 13px; }
.setting-row small { margin-top: 2px; color: var(--slate-500); font-size: 10px; }
.setting-row label { display: flex; align-items: center; gap: 5px; color: var(--slate-600); font-size: 11px; font-weight: 800; }
.setting-row input { width: 72px; height: 35px; padding: 5px 7px; border: 1px solid var(--line-dark); border-radius: 6px; color: var(--navy-900); background: white; font-weight: 800; text-align: right; }
.settings-actions { display: flex; align-items: center; gap: 10px; padding: 14px 15px; }
.settings-actions small { color: var(--slate-500); font-size: 10px; }
.season-card { margin: 15px; padding: 14px; border: 1px solid #ebd09e; border-radius: 9px; background: #fffaf0; }
.season-card > div:first-child { display: flex; align-items: center; gap: 9px; }
.season-card > .switch-control { float: right; margin-top: -34px; }
.season-icon { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 9px; color: white; background: #c67a11; font-size: 15px; font-weight: 900; }
.season-card strong,
.season-card small { display: block; }
.season-card strong { color: #68450d; font-size: 13px; }
.season-card small { color: #9b742f; font-size: 10px; }
.season-card p { margin: 12px 0 0; color: #795923; font-size: 11px; }
.baseline-method { padding: 2px 16px 13px; }
.baseline-method > strong { color: var(--navy-900); font-size: 13px; }
.baseline-method ol { margin: 9px 0 0; padding-left: 20px; color: var(--slate-700); }
.baseline-method li { margin: 7px 0; font-size: 11px; }
.hard-rule-note { margin: 0 15px 15px; padding: 12px; border-left: 4px solid var(--red-700); color: #7c3037; background: var(--red-100); }
.hard-rule-note strong { font-size: 12px; }
.hard-rule-note p { margin: 4px 0 0; font-size: 10px; }

@media (max-width: 1280px) {
  .validation-passes { grid-template-columns: 1fr 1fr; }
  .validation-score { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .validation-score small { grid-column: 1 / -1; }
  .numeric-watch { align-items: stretch; flex-direction: column; }
  .numeric-watch-actions { justify-content: flex-end; }
  .field-review-card { grid-template-columns: minmax(145px, 1fr) minmax(145px, 1fr); }
  .field-review-action { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; }
  .baseline-layout { grid-template-columns: 1fr; }
}

@media (max-width: 940px) {
  .verification-split { grid-template-columns: 1fr; }
  .file-preview-pane { border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .document-scroll { height: 420px; }
  .field-review-list { height: auto; max-height: 560px; }
  .baseline-summary { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .validation-passes { grid-template-columns: 1fr; }
  .validation-score { grid-column: auto; }
  .numeric-watch-actions { align-items: stretch; flex-direction: column; }
  .numeric-watch-actions .switch-control { margin-bottom: 4px; }
  .verification-split { margin-inline: 10px; }
  .source-strip,
  .validation-passes,
  .numeric-watch { margin-inline: 10px; }
  .document-scroll { padding: 10px; }
  .file-meta-bar { align-items: flex-start; flex-direction: column; }
  .field-review-card { grid-template-columns: 1fr; }
  .field-review-action { grid-column: auto; }
  .baseline-summary { grid-template-columns: 1fr 1fr; }
  .setting-row { align-items: flex-start; flex-direction: column; }
}
