:root {
  color-scheme: light;
  --bg: #f4f6f5;
  --surface: #ffffff;
  --surface-soft: #eef2f0;
  --ink: #17211d;
  --muted: #68736e;
  --line: #dce3df;
  --line-strong: #c6d0cb;
  --green: #087a55;
  --green-dark: #075b42;
  --green-soft: #e6f5ee;
  --cyan: #087f8c;
  --amber: #a65d08;
  --amber-soft: #fff4df;
  --red: #b4232d;
  --red-soft: #ffedef;
  --black: #101613;
  --shadow: 0 14px 40px rgba(16, 34, 26, .12);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { background: var(--bg); color: var(--ink); font-size: 14px; letter-spacing: 0; }
button, input, select { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
[hidden] { display: none !important; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; background: var(--black); }
.login-shell { width: min(420px, 100%); }
.brand-lockup { display: flex; align-items: center; gap: 14px; color: white; margin-bottom: 30px; }
.brand-lockup h1 { margin: 0 0 4px; font-size: 28px; font-weight: 700; }
.brand-lockup p { margin: 0; color: #9fb0a7; }
.brand-mark { display: grid; place-items: center; width: 52px; height: 52px; background: #19a875; color: #061d14; border: 1px solid #51cea0; border-radius: 8px; font-weight: 800; }
.brand-mark.small { width: 38px; height: 38px; font-size: 12px; border-radius: 6px; }
.login-form { background: white; border: 1px solid #2a3530; border-radius: 8px; padding: 26px; box-shadow: var(--shadow); }
.login-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.login-heading h2 { margin: 0; font-size: 20px; }
.security-label { color: var(--green-dark); background: var(--green-soft); padding: 5px 8px; border-radius: 4px; font-size: 12px; }
.login-form label { display: grid; gap: 8px; margin: 0 0 18px; color: #3f4b45; font-weight: 600; }
.login-form input { height: 44px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 0 12px; outline: none; }
.login-form input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(8, 122, 85, .12); }
.login-button { width: 100%; height: 44px; justify-content: center; }
.form-error { min-height: 20px; margin: -6px 0 12px; color: var(--red); font-size: 13px; }
.login-shell footer { color: #78877f; text-align: center; margin-top: 22px; font-size: 11px; text-transform: uppercase; }

.topbar { height: 62px; display: grid; grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr); align-items: center; padding: 0 26px; background: var(--black); color: white; position: sticky; top: 0; z-index: 20; }
.topbar-brand { display: flex; align-items: center; gap: 11px; color: white; text-decoration: none; width: fit-content; }
.topbar-brand span:last-child { display: grid; gap: 2px; }
.topbar-brand strong { font-size: 14px; }
.topbar-brand small { color: #839189; font-size: 10px; text-transform: uppercase; }
.main-nav { height: 100%; display: flex; gap: 22px; }
.nav-item { position: relative; border: 0; padding: 0 3px; background: transparent; color: #9caaa2; font-weight: 600; }
.nav-item.active { color: white; }
.nav-item.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #27b982; }
.user-area { justify-self: end; display: flex; align-items: center; gap: 9px; color: #c8d1cc; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #2cca8e; box-shadow: 0 0 0 3px rgba(44, 202, 142, .14); }

main { width: min(1600px, 100%); margin: 0 auto; padding: 24px 28px 48px; }
.page-heading { min-height: 56px; display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; }
.page-heading h2 { margin: 2px 0 0; font-size: 25px; line-height: 1.2; }
.eyebrow { color: var(--green); font-size: 10px; font-weight: 800; margin: 0; }
.heading-actions { display: flex; align-items: center; gap: 8px; }
.auto-refresh { display: flex; align-items: center; gap: 7px; color: var(--muted); margin-right: 4px; }

.button, .icon-button, .text-button { border: 0; background: none; color: inherit; display: inline-flex; align-items: center; gap: 7px; }
.button { min-height: 36px; padding: 0 13px; border-radius: 6px; font-weight: 650; white-space: nowrap; }
.button.primary { background: var(--green); color: white; border: 1px solid var(--green); }
.button.primary:hover { background: var(--green-dark); }
.button.secondary { background: white; color: #36423c; border: 1px solid var(--line-strong); }
.button.secondary:hover { border-color: #8d9a93; background: #f9fbfa; }
.button.danger { color: white; background: var(--red); border: 1px solid var(--red); }
.button.compact { min-height: 32px; padding: 0 11px; font-size: 13px; }
.button:disabled, .icon-button:disabled { opacity: .45; cursor: not-allowed; }
.icon-button { width: 36px; height: 36px; justify-content: center; border-radius: 6px; }
.icon-button:hover { background: rgba(122, 142, 132, .12); }
.icon-button.bordered { background: white; border: 1px solid var(--line-strong); }
.text-button { color: var(--green); font-weight: 650; padding: 7px; }

.date-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.preset-group { display: flex; gap: 2px; padding: 3px; background: #e7ece9; border-radius: 7px; }
.preset { height: 31px; padding: 0 12px; border: 0; background: transparent; border-radius: 5px; color: #637069; font-weight: 600; }
.preset.active { color: var(--ink); background: white; box-shadow: 0 1px 3px rgba(26, 42, 34, .12); }
.custom-range { display: flex; align-items: flex-end; gap: 9px; color: var(--muted); }
.custom-range label { display: grid; gap: 4px; font-size: 11px; }
.custom-range input { width: 184px; height: 32px; border: 1px solid var(--line-strong); border-radius: 5px; padding: 0 8px; color: var(--ink); background: white; }
.custom-range > span { padding-bottom: 8px; }

.metrics-band { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.metrics-band article { min-width: 0; padding: 21px 24px 20px; border-right: 1px solid var(--line); }
.metrics-band article:first-child { padding-left: 0; }
.metrics-band article:last-child { border-right: 0; }
.metrics-band span, .metrics-band small { display: block; color: var(--muted); }
.metrics-band strong { display: block; margin: 8px 0 4px; font-size: 24px; line-height: 1; }
.metrics-band small { font-size: 11px; }

.analysis-band { display: grid; grid-template-columns: minmax(360px, 2fr) minmax(180px, .75fr) minmax(180px, .75fr); min-height: 236px; border-bottom: 1px solid var(--line); }
.analysis-band > div { min-width: 0; padding: 20px 22px; border-right: 1px solid var(--line); }
.analysis-band > div:first-child { padding-left: 0; }
.analysis-band > div:last-child { border-right: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.section-heading h3 { margin: 0; font-size: 14px; }
.section-heading span { color: var(--muted); font-size: 11px; }
.trend-chart { height: 160px; }
.trend-chart svg { width: 100%; height: 100%; overflow: visible; }
.chart-grid { stroke: #dce3df; stroke-width: 1; }
.chart-area { fill: rgba(8, 122, 85, .10); stroke: none; }
.chart-line { fill: none; stroke: var(--green); stroke-width: 2.4; }
.chart-error { fill: none; stroke: var(--red); stroke-width: 1.8; }
.chart-label { fill: #758079; font-size: 10px; }
.chart-empty { height: 100%; display: grid; place-items: center; color: var(--muted); }
.status-distribution { display: grid; gap: 14px; }
.status-row { display: grid; grid-template-columns: 34px 1fr 42px; align-items: center; gap: 8px; font-size: 12px; }
.status-progress { width: 100%; height: 6px; border: 0; appearance: none; background: #e1e7e4; border-radius: 3px; overflow: hidden; }
.status-progress::-webkit-progress-bar { background: #e1e7e4; }
.status-progress::-webkit-progress-value { background: var(--green); }
.status-progress::-moz-progress-bar { background: var(--green); }
.status-row[data-status="4xx"] .status-progress::-webkit-progress-value { background: var(--amber); }
.status-row[data-status="4xx"] .status-progress::-moz-progress-bar { background: var(--amber); }
.status-row[data-status="5xx"] .status-progress::-webkit-progress-value, .status-row[data-status="other"] .status-progress::-webkit-progress-value { background: var(--red); }
.status-row[data-status="5xx"] .status-progress::-moz-progress-bar, .status-row[data-status="other"] .status-progress::-moz-progress-bar { background: var(--red); }
.status-row strong { text-align: right; }
.ranking-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ranking-list li { min-width: 0; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.ranking-list .rank { color: var(--muted); font-size: 11px; }
.ranking-list .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ranking-list strong { font-size: 12px; }

.filter-panel { margin: 20px 0 16px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.filter-row { display: grid; gap: 10px; }
.primary-filters { grid-template-columns: minmax(250px, 1.5fr) repeat(4, minmax(120px, .65fr)) auto; }
.advanced-filters { grid-template-columns: repeat(5, minmax(130px, 1fr)); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.filter-row label, .table-header label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; }
.filter-row input, .filter-row select, .table-header select { width: 100%; height: 35px; border: 1px solid var(--line-strong); border-radius: 5px; background: white; color: var(--ink); padding: 0 9px; outline: none; }
.filter-row input:focus, .filter-row select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(8, 122, 85, .1); }
.search-field { position: relative; align-self: end; }
.search-field svg { position: absolute; left: 10px; bottom: 8px; width: 17px; color: var(--muted); }
.search-field input { padding-left: 34px; }
.primary-filters > .button { align-self: end; }
.filter-footer { display: flex; justify-content: space-between; align-items: center; min-height: 38px; margin-top: 8px; border-top: 1px solid var(--line); padding-top: 8px; color: var(--muted); font-size: 12px; }
.filter-footer > div { display: flex; gap: 8px; }

.table-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.table-header { min-height: 58px; display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.table-header > div { display: flex; align-items: baseline; gap: 10px; }
.table-header h3 { margin: 0; font-size: 14px; }
.table-header span { color: var(--muted); font-size: 12px; }
.table-header label { grid-template-columns: auto 72px; align-items: center; }
.table-header select { height: 30px; }
.table-scroll { overflow-x: auto; position: relative; min-height: 220px; }
table { width: 100%; min-width: 1320px; border-collapse: collapse; table-layout: fixed; }
th { height: 40px; padding: 0 12px; text-align: left; background: #f5f8f6; color: #68736e; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 700; text-transform: uppercase; }
th:nth-child(1) { width: 150px; } th:nth-child(2) { width: 235px; } th:nth-child(3) { width: 175px; } th:nth-child(4) { width: 130px; } th:nth-child(5) { width: 76px; } th:nth-child(6) { width: 86px; } th:nth-child(7) { width: 205px; } th:nth-child(8) { width: 168px; } th:nth-child(9) { width: 120px; }
th button { border: 0; padding: 0; background: transparent; color: inherit; font-weight: inherit; text-transform: inherit; display: flex; gap: 5px; }
td { height: 62px; padding: 9px 12px; border-bottom: 1px solid #e7ece9; vertical-align: middle; }
tbody tr { transition: background .12s ease; }
tbody tr:hover { background: #f5faf7; }
.cell-main, .cell-sub { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-main { font-weight: 600; }
.cell-sub { color: var(--muted); font-size: 11px; margin-top: 4px; }
.request-link { max-width: 100%; border: 0; background: none; padding: 0; color: var(--green-dark); font-weight: 700; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.method { display: inline-block; min-width: 38px; color: var(--cyan); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.payload-cell { padding-top: 7px; padding-bottom: 7px; }
.payload-actions { display: flex; align-items: center; gap: 5px; }
.payload-button { height: 27px; display: inline-flex; align-items: center; gap: 4px; padding: 0 7px; border: 1px solid var(--line-strong); border-radius: 5px; background: white; color: #36423c; font-size: 11px; font-weight: 700; }
.payload-button:hover { border-color: var(--green); color: var(--green-dark); background: var(--green-soft); }
.payload-button svg { width: 13px; height: 13px; }
.payload-summary { margin-top: 3px; }
.payload-preview { position: fixed; z-index: 40; width: min(520px, calc(100vw - 24px)); overflow: hidden; border: 1px solid #2d3b34; border-radius: 6px; background: var(--black); color: #eef6f1; box-shadow: 0 18px 46px rgba(8, 18, 13, .28); pointer-events: none; }
.payload-preview[hidden] { display: none; }
.payload-preview header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; padding: 12px 14px 10px; border-bottom: 1px solid #2d3b34; }
.payload-preview header div { min-width: 0; display: grid; gap: 3px; }
.payload-preview header span { color: #74cfa8; font-size: 9px; font-weight: 800; }
.payload-preview header strong { overflow: hidden; color: white; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.payload-preview header small { flex: 0 0 auto; color: #9dafa5; font-size: 10px; }
.payload-preview pre { max-height: 320px; margin: 0; padding: 13px 14px; overflow: hidden; color: #dce8e1; background: #0d1511; font: 11px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.payload-preview p { margin: 0; padding: 8px 14px; border-top: 1px solid #2d3b34; color: #9dafa5; font-size: 10px; }
.status-code { display: inline-flex; justify-content: center; min-width: 43px; padding: 4px 6px; border-radius: 4px; background: var(--green-soft); color: var(--green-dark); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; }
.status-code.error { background: var(--red-soft); color: var(--red); }
.status-code.warn { background: var(--amber-soft); color: var(--amber); }
.table-state { position: absolute; inset: 40px 0 0; display: grid; place-items: center; color: var(--muted); background: rgba(255,255,255,.88); }
.pagination { min-height: 54px; display: flex; justify-content: space-between; align-items: center; padding: 8px 16px; color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; }
.pagination > div { display: flex; align-items: center; gap: 10px; }
.pagination .icon-button { width: 32px; height: 32px; }

.archive-overview { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.archive-status { display: flex; align-items: center; gap: 14px; }
.archive-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 7px; background: var(--green-soft); color: var(--green); }
.archive-icon svg { width: 23px; height: 23px; }
.archive-status h3 { margin: 0 0 5px; font-size: 16px; }
.archive-status p { margin: 0; color: var(--muted); }
.status-pill { padding: 4px 8px; border-radius: 10px; color: var(--amber); background: var(--amber-soft); font-size: 11px; font-weight: 700; }
.status-pill.enabled { color: var(--green-dark); background: var(--green-soft); }
.archive-actions { display: flex; gap: 8px; }
.notice-line { display: grid; grid-template-columns: auto 1fr auto 1.5fr auto 1fr; gap: 10px; align-items: center; min-height: 54px; color: var(--muted); font-size: 12px; }
.notice-line strong { color: var(--ink); }
.archive-table-panel table { min-width: 1200px; }
.archive-table-panel th:nth-child(1) { width: 155px; } .archive-table-panel th:nth-child(2) { width: 90px; } .archive-table-panel th:nth-child(3) { width: 90px; } .archive-table-panel th:nth-child(4) { width: 100px; } .archive-table-panel th:nth-child(5) { width: 90px; } .archive-table-panel th:nth-child(6) { width: 330px; } .archive-table-panel th:nth-child(7) { width: 90px; } .archive-table-panel th:nth-child(8) { width: auto; }
.job-status { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.job-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.job-status.completed::before { background: var(--green); } .job-status.failed::before { background: var(--red); } .job-status.running::before { background: var(--cyan); }

.detail-drawer { position: fixed; z-index: 50; top: 0; right: 0; width: min(760px, 94vw); height: 100vh; background: white; box-shadow: -18px 0 50px rgba(18, 31, 25, .18); transform: translateX(102%); transition: transform .22s ease; display: grid; grid-template-rows: auto auto 1fr; }
.detail-drawer.open { transform: translateX(0); }
.drawer-backdrop { position: fixed; z-index: 45; inset: 0; background: rgba(15, 22, 18, .38); }
.drawer-header { min-height: 74px; display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.drawer-header h2 { margin: 3px 0 0; font-size: 18px; }
.detail-tabs { min-height: 46px; display: flex; align-items: stretch; gap: 20px; padding: 0 20px; border-bottom: 1px solid var(--line); background: #f8faf9; overflow-x: auto; }
.detail-tab { position: relative; flex: 0 0 auto; border: 0; background: transparent; color: var(--muted); padding: 0 2px; font-weight: 700; }
.detail-tab.active { color: var(--green-dark); }
.detail-tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--green); }
.drawer-content { overflow-y: auto; padding: 18px 20px 40px; }
.detail-panel { min-height: 100%; }
.capture-banner { display: flex; align-items: center; gap: 10px; padding: 11px 12px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 6px; background: #f8faf9; }
.capture-banner .capture-indicator { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.capture-banner.warning .capture-indicator { background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.capture-banner div { min-width: 0; display: grid; gap: 3px; }
.capture-banner strong { font-size: 13px; }
.capture-banner small { color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; margin-bottom: 18px; }
.detail-grid div { min-width: 0; padding: 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-grid div:nth-child(3n) { border-right: 0; }
.detail-grid span, .detail-section header span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; margin-bottom: 5px; }
.detail-grid strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detail-section { margin-top: 18px; }
.detail-section header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.detail-section h3 { margin: 0; font-size: 13px; }
.detail-section pre { max-height: 380px; overflow: auto; margin: 0; padding: 13px; background: #111814; color: #d8e5de; border-radius: 6px; font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.copy-button { border: 0; background: transparent; color: var(--green); padding: 4px; display: inline-flex; }
.detail-error { padding: 10px 12px; color: var(--red); background: var(--red-soft); border-left: 3px solid var(--red); margin-bottom: 14px; overflow-wrap: anywhere; }

.confirm-dialog { width: min(460px, calc(100vw - 32px)); border: 0; border-radius: 8px; padding: 0; box-shadow: var(--shadow); }
.confirm-dialog::backdrop { background: rgba(13, 20, 16, .55); }
.confirm-dialog form { padding: 24px; }
.dialog-icon { display: grid; place-items: center; width: 42px; height: 42px; color: var(--red); background: var(--red-soft); border-radius: 7px; }
.confirm-dialog h2 { font-size: 19px; margin: 16px 0 8px; }
.confirm-dialog p { color: var(--muted); line-height: 1.6; }
.confirm-dialog label { display: grid; gap: 8px; color: var(--muted); font-size: 12px; margin-top: 16px; }
.confirm-dialog input { height: 38px; border: 1px solid var(--line-strong); border-radius: 5px; padding: 0 10px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.toast { position: fixed; z-index: 80; right: 22px; bottom: 22px; max-width: min(420px, calc(100vw - 44px)); padding: 12px 15px; background: var(--black); color: white; border-radius: 6px; box-shadow: var(--shadow); transform: translateY(30px); opacity: 0; pointer-events: none; transition: .18s ease; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { background: var(--red); }

@media (max-width: 1100px) {
  .metrics-band { grid-template-columns: repeat(3, 1fr); }
  .metrics-band article:nth-child(3n) { border-right: 0; }
  .primary-filters { grid-template-columns: minmax(260px, 2fr) repeat(2, 1fr); }
  .advanced-filters { grid-template-columns: repeat(3, 1fr); }
  .analysis-band { grid-template-columns: 1.5fr 1fr; }
  .ranking-panel { display: none; }
  .distribution-panel { border-right: 0 !important; }
  .notice-line { grid-template-columns: auto 1fr; padding: 10px 0; }
}

@media (max-width: 760px) {
  .topbar { grid-template-columns: 1fr auto; height: auto; min-height: 60px; padding: 10px 14px 0; }
  .topbar-brand small, .user-area > span:not(.live-dot) { display: none; }
  .main-nav { grid-row: 2; grid-column: 1 / -1; height: 44px; }
  .user-area { grid-column: 2; grid-row: 1; }
  main { padding: 18px 14px 34px; }
  .page-heading { align-items: flex-start; }
  .heading-actions { flex-wrap: wrap; justify-content: flex-end; }
  .auto-refresh { display: none; }
  .date-bar { align-items: stretch; flex-direction: column; }
  .preset-group { align-self: flex-start; max-width: 100%; overflow-x: auto; }
  .custom-range { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; }
  .custom-range input { width: 100%; }
  .custom-range .button { grid-column: 1 / -1; justify-content: center; }
  .metrics-band { grid-template-columns: repeat(2, 1fr); }
  .metrics-band article, .metrics-band article:first-child { padding: 16px; border-bottom: 1px solid var(--line); }
  .metrics-band article:nth-child(odd) { border-right: 1px solid var(--line); }
  .metrics-band article:nth-child(even) { border-right: 0; }
  .metrics-band strong { font-size: 22px; }
  .analysis-band { grid-template-columns: 1fr; }
  .analysis-band > div { padding: 18px 0; border-right: 0; }
  .trend-panel { border-bottom: 1px solid var(--line); }
  .primary-filters, .advanced-filters { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .filter-footer { align-items: flex-start; gap: 10px; }
  .table-header { align-items: flex-start; }
  .archive-overview { align-items: flex-start; flex-direction: column; }
  .archive-actions { width: 100%; flex-direction: column; }
  .archive-actions .button { justify-content: center; }
  .archive-status { align-items: flex-start; }
  .detail-drawer { width: 100vw; }
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid div:nth-child(3n) { border-right: 1px solid var(--line); }
  .detail-grid div:nth-child(2n) { border-right: 0; }
}

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