:root {
  color-scheme: dark;
  --bg: #0b0b0a;
  --panel: #111210;
  --panel-raised: #171816;
  --panel-hover: #1c1d1a;
  --text: #e9e6df;
  --muted: #918d87;
  --muted-strong: #b7b2aa;
  --rule: #2b2a27;
  --rule-soft: #22211f;
  --accent: #d9912b;
  --blue: #6f9fb5;
  --green: #70a27d;
  --red: #c66c5e;
  --reading-font: "LXGW WenKai Screen", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
  --ui-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans CJK SC", Arial, sans-serif;
  --code-font: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui-font);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.drawer-open {
  overflow: hidden;
}

::selection {
  background: #3a2b17;
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button,
select,
label,
input[type="checkbox"] {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.dashboard-shell {
  width: min(100%, 1800px);
  min-height: 100vh;
  margin-inline: auto;
  padding: 34px clamp(22px, 3.5vw, 58px) 28px;
}

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  color: var(--text);
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1;
  text-decoration: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.breadcrumb a {
  color: var(--blue);
  text-underline-offset: 3px;
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 34px;
  padding: 54px 0 32px;
}

.eyebrow,
.view-kicker {
  margin: 0 0 9px;
  color: var(--accent);
  font-family: var(--code-font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.11em;
  line-height: 1.5;
}

h1 {
  margin: 0;
  font-family: var(--reading-font);
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.dek {
  margin: 15px 0 0;
  color: var(--muted-strong);
  font-family: var(--reading-font);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.7;
}

.snapshot {
  display: grid;
  flex: 0 0 auto;
  gap: 5px;
  padding-left: 22px;
  border-left: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--code-font);
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-align: right;
}

.snapshot strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.coverage {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 150px)) minmax(240px, 1fr);
  border: 1px solid var(--rule);
  background: var(--panel);
}

.coverage-item {
  display: grid;
  min-height: 82px;
  padding: 15px 17px;
  align-content: center;
  gap: 3px;
  border-right: 1px solid var(--rule);
}

.coverage-value {
  color: var(--text);
  font-family: var(--code-font);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.coverage-label {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.coverage-note {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 16px 18px;
  color: var(--muted-strong);
  font-size: 11px;
  line-height: 1.6;
  text-align: right;
}

.verification-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgb(112 162 125 / 12%);
}

.controls {
  position: sticky;
  z-index: 20;
  top: 0;
  margin-top: 26px;
  padding: 14px;
  border: 1px solid var(--rule);
  background: rgb(11 11 10 / 96%);
  backdrop-filter: blur(8px);
}

.view-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 13px;
}

.view-tab {
  padding: 7px 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
}

.view-tab:hover {
  color: var(--text);
}

.view-tab.is-active {
  border-color: #45351f;
  background: #1e1810;
  color: var(--accent);
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(230px, 1.4fr) repeat(3, minmax(150px, 0.7fr)) auto;
  gap: 10px;
}

.standard-filters[hidden] {
  display: none;
}

.history-filters {
  display: grid;
  grid-template-columns: minmax(280px, 1.5fr) repeat(2, minmax(180px, 0.65fr));
  gap: 10px;
}

.history-filters[hidden] {
  display: none;
}

.filter-grid label,
.history-filters label,
.compare-selectors label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.025em;
  line-height: 1.4;
}

input[type="search"],
select {
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--panel-raised);
  color: var(--text);
  font-size: 12px;
  line-height: 1.4;
}

input[type="search"]::placeholder {
  color: #6f6b66;
}

.check-field {
  display: flex !important;
  min-height: 36px;
  padding: 19px 10px 0;
  align-items: center;
  gap: 8px !important;
  color: var(--muted-strong) !important;
  white-space: nowrap;
}

.check-field input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--accent);
}

.active-context {
  min-height: 18px;
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--code-font);
  font-size: 10px;
  line-height: 1.6;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 15px 2px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-mark {
  width: 13px;
  height: 7px;
  border: 1px solid var(--rule);
  background: var(--panel-raised);
}

.legend-mark.is-available { border-color: #345063; background: #16232a; }
.legend-mark.is-same { border-color: #365241; background: #17231a; }
.legend-mark.is-change { border-color: #73501e; background: #2a2012; }
.legend-mark.is-unpublished { border-color: #694039; background: #241714; }
.legend-mark.is-gap { background: repeating-linear-gradient(135deg, #121311 0, #121311 4px, #1b1c19 4px, #1b1c19 5px); }

.view-panel {
  padding-top: 46px;
}

.view-panel[hidden] {
  display: none;
}

.view-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 17px;
}

.view-heading h2,
.methodology h2,
.drawer-header h2 {
  margin: 0;
  font-family: var(--reading-font);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
}

.view-heading > p {
  max-width: 36em;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
  text-align: right;
}

.matrix-wrap {
  overflow: auto;
  max-height: min(72vh, 890px);
  border: 1px solid var(--rule);
  background: var(--panel);
  overscroll-behavior: contain;
  scrollbar-color: #45413b var(--panel);
}

.matrix-table {
  width: max-content;
  min-width: 100%;
  border-spacing: 0;
  border-collapse: separate;
  table-layout: fixed;
  font-size: 11px;
}

.matrix-table th,
.matrix-table td {
  padding: 0;
  border-right: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}

.matrix-table thead th {
  position: sticky;
  z-index: 7;
  top: 0;
  width: 224px;
  min-width: 224px;
  padding: 11px 12px;
  background: #151614;
  color: var(--muted-strong);
  font-family: var(--code-font);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 1.4;
  text-align: left;
}

.matrix-table thead th:first-child {
  z-index: 9;
  left: 0;
  width: 168px;
  min-width: 168px;
  color: var(--accent);
}

.matrix-table tbody th {
  position: sticky;
  z-index: 5;
  left: 0;
  width: 168px;
  min-width: 168px;
  padding: 14px 13px;
  background: #111210;
  color: var(--text);
  font-family: var(--reading-font);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
}

.matrix-company-group {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--ui-font);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.matrix-cell {
  position: relative;
  display: block;
  width: 224px;
  min-height: 142px;
  padding: 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.matrix-cell:hover {
  background: var(--panel-hover);
}

.matrix-cell.has-change {
  box-shadow: inset 3px 0 0 var(--accent);
}

.matrix-cell.is-same {
  box-shadow: inset 3px 0 0 var(--green);
}

.matrix-cell.is-gap,
.matrix-cell.is-not_researched,
.matrix-cell.is-no_definition {
  background: repeating-linear-gradient(135deg, #10110f 0, #10110f 7px, #151614 7px, #151614 8px);
  color: var(--muted);
}

.matrix-cell.is-not_published,
.matrix-cell.is-unavailable {
  background: #171210;
  color: #b8958f;
}

.cell-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: var(--code-font);
  font-size: 9px;
  line-height: 1.4;
}

.cell-status strong {
  color: var(--blue);
  font-weight: 500;
}

.has-change .cell-status strong { color: var(--accent); }
.is-same .cell-status strong { color: var(--green); }

.cell-quote {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--text);
  font-family: var(--reading-font);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.cell-kind {
  display: inline-block;
  margin-right: 6px;
  color: var(--muted);
  font-family: var(--ui-font);
  font-size: 9px;
}

.cell-more {
  margin-top: 7px;
  color: var(--muted);
  font-size: 9px;
}

.cell-empty {
  display: grid;
  min-height: 112px;
  align-content: center;
  gap: 7px;
  color: inherit;
}

.cell-empty strong {
  font-size: 11px;
  font-weight: 550;
}

.cell-empty span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--reading-font);
  font-size: 11px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.compare-heading {
  align-items: flex-end;
}

.compare-selectors {
  display: grid;
  width: min(100%, 460px);
  grid-template-columns: minmax(180px, 1fr) 130px;
  gap: 10px;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.compare-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--rule);
  background: var(--panel);
}

.compare-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule-soft);
}

.compare-card-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.compare-card-header span {
  color: var(--muted);
  font-family: var(--code-font);
  font-size: 9px;
}

.quote-card {
  padding: 16px 0;
}

.quote-card + .quote-card {
  border-top: 1px solid var(--rule-soft);
}

.quote-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 6px;
  border: 1px solid var(--rule);
  color: var(--muted-strong);
  font-size: 9px;
  line-height: 1.4;
}

.tag.is-kind {
  border-color: #3a4e59;
  color: var(--blue);
}

.tag.is-change {
  border-color: #61451e;
  color: var(--accent);
}

.tag.is-same {
  border-color: #365241;
  color: var(--green);
}

.quote-card blockquote,
.detail-record blockquote {
  margin: 0;
  color: var(--text);
  font-family: var(--reading-font);
  font-size: 15px;
  line-height: 1.72;
}

.quote-card-source {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.detail-button {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 10px;
  text-decoration: underline;
  text-decoration-color: rgb(111 159 181 / 45%);
  text-underline-offset: 3px;
}

.empty-state {
  display: grid;
  min-height: 180px;
  align-content: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 550;
}

.empty-state p {
  margin: 0;
  font-family: var(--reading-font);
  font-size: 12px;
  line-height: 1.65;
}

.records-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
}

.records-table {
  width: 100%;
  min-width: 1040px;
  border-spacing: 0;
  border-collapse: collapse;
  font-size: 11px;
}

.records-table th,
.records-table td {
  padding: 12px;
  border-right: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  text-align: left;
  vertical-align: top;
}

.records-table th {
  background: #151614;
  color: var(--muted);
  font-family: var(--code-font);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.035em;
}

.records-table td:first-child {
  width: 130px;
  color: var(--text);
  font-family: var(--reading-font);
  font-size: 13px;
  font-weight: 600;
}

.records-table td:nth-child(2) { width: 150px; color: var(--muted-strong); }
.records-table td:nth-child(3) { width: 90px; color: var(--blue); }
.records-table td:nth-child(5) { width: 180px; color: var(--muted); }

.history-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--rule);
  background: var(--panel);
}

.history-summary-item {
  display: grid;
  min-height: 74px;
  padding: 14px 16px;
  align-content: center;
  gap: 5px;
  border-right: 1px solid var(--rule);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.history-summary-item:last-child {
  border-right: 0;
}

.history-summary-value {
  color: var(--text);
  font-family: var(--code-font);
  font-size: 21px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.history-scope {
  display: grid;
  margin: 12px 0 16px;
  padding: 13px 15px;
  border: 1px solid var(--rule);
  background: #0f100e;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.history-scope p {
  margin: 0;
}

.history-scope a {
  color: var(--blue);
  text-underline-offset: 3px;
}

.history-table-wrap {
  overflow: auto;
  max-height: min(74vh, 920px);
  border: 1px solid var(--rule);
  background: var(--panel);
  overscroll-behavior: contain;
  scrollbar-color: #45413b var(--panel);
}

.history-table {
  width: 100%;
  min-width: 1420px;
  border-spacing: 0;
  border-collapse: separate;
  font-size: 11px;
}

.history-table th,
.history-table td {
  padding: 13px;
  border-right: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  text-align: left;
  vertical-align: top;
}

.history-table thead th {
  position: sticky;
  z-index: 4;
  top: 0;
  background: #151614;
  color: var(--muted);
  font-family: var(--code-font);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.035em;
}

.history-table thead th:first-child,
.history-table tbody th {
  position: sticky;
  z-index: 3;
  left: 0;
  width: 160px;
  min-width: 160px;
  background: #111210;
}

.history-table thead th:first-child {
  z-index: 6;
  background: #151614;
}

.history-table tbody th {
  color: var(--text);
  font-family: var(--reading-font);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.history-rank {
  display: block;
  margin-bottom: 7px;
  color: var(--accent);
  font-family: var(--code-font);
  font-size: 9px;
  font-weight: 500;
}

.history-ticker {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--code-font);
  font-size: 9px;
  font-weight: 400;
}

.history-metrics {
  width: 150px;
  min-width: 150px;
  color: var(--muted-strong);
  font-variant-numeric: tabular-nums;
  line-height: 1.65;
}

.history-metrics strong {
  display: block;
  color: var(--text);
  font-family: var(--code-font);
  font-size: 12px;
  font-weight: 500;
}

.history-metrics span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 9px;
}

.history-window {
  width: 150px;
  min-width: 150px;
  color: var(--muted-strong);
  font-family: var(--code-font);
  font-size: 10px;
  line-height: 1.65;
}

.history-window strong {
  display: block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
}

.history-window span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--ui-font);
  font-size: 9px;
}

.history-quote {
  width: 330px;
  min-width: 330px;
}

.history-quote blockquote {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--text);
  font-family: var(--reading-font);
  font-size: 13px;
  line-height: 1.68;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.history-quote time,
.history-quote a {
  display: inline-block;
  margin-top: 9px;
  color: var(--muted);
  font-family: var(--code-font);
  font-size: 9px;
  line-height: 1.5;
}

.history-quote a {
  margin-left: 8px;
  color: var(--blue);
  text-underline-offset: 3px;
}

.history-judgement {
  width: 190px;
  min-width: 190px;
  color: var(--muted-strong);
  line-height: 1.65;
}

.history-judgement p {
  margin: 9px 0 0;
  font-family: var(--reading-font);
  font-size: 11px;
}

.history-open {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 10px;
  text-decoration: underline;
  text-decoration-color: rgb(111 159 181 / 45%);
  text-underline-offset: 3px;
}

.history-row.is-insufficient .history-window strong,
.history-row.is-unchanged .history-window strong {
  color: var(--muted-strong);
}

.history-detail-intro {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.history-transition {
  padding: 19px 0 23px;
  border-top: 1px solid var(--rule);
}

.history-transition h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.history-transition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.history-snapshot-card {
  padding: 13px;
  border: 1px solid var(--rule-soft);
  background: var(--panel);
}

.history-snapshot-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-strong);
  font-family: var(--code-font);
  font-size: 9px;
  font-weight: 500;
}

.history-snapshot-card blockquote {
  margin: 0;
  color: var(--text);
  font-family: var(--reading-font);
  font-size: 14px;
  line-height: 1.75;
}

.history-snapshot-card a {
  display: inline-block;
  margin-top: 10px;
  color: var(--blue);
  font-size: 9px;
  text-underline-offset: 3px;
}

.history-transition-note {
  margin: 12px 0 0;
  color: var(--muted-strong);
  font-family: var(--reading-font);
  font-size: 12px;
  line-height: 1.72;
}

.record-quote-button {
  display: -webkit-box;
  overflow: hidden;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--reading-font);
  font-size: 13px;
  line-height: 1.65;
  text-align: left;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.record-quote-button:hover {
  color: var(--blue);
}

.pagination {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding-top: 14px;
}

.pagination button {
  min-width: 34px;
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid var(--rule);
  background: var(--panel);
  color: var(--muted-strong);
  font-size: 10px;
}

.pagination button.is-current {
  border-color: #61451e;
  color: var(--accent);
}

.methodology {
  margin-top: 56px;
  padding: 27px 0 10px;
  border-top: 1px solid var(--rule);
}

.methodology h2 {
  font-size: 20px;
}

.method-grid {
  display: grid;
  margin-top: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}

.method-grid h3 {
  margin: 0 0 7px;
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 600;
}

.method-grid p {
  margin: 0;
  color: var(--muted);
  font-family: var(--reading-font);
  font-size: 13px;
  line-height: 1.75;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.site-footer a {
  color: var(--blue);
  text-underline-offset: 3px;
}

.drawer-backdrop {
  position: fixed;
  z-index: 90;
  inset: 0;
  background: rgb(0 0 0 / 58%);
}

.source-drawer {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  width: min(620px, 94vw);
  height: 100vh;
  padding: 24px;
  border-left: 1px solid var(--rule);
  background: #10110f;
  transform: translateX(102%);
  transition: transform 180ms ease;
}

.source-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--rule);
}

.drawer-header h2 {
  font-size: 21px;
}

.icon-button {
  padding: 6px 9px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--muted-strong);
  font-size: 10px;
}

.drawer-content {
  overflow-y: auto;
  height: calc(100vh - 96px);
  padding: 6px 5px 50px 0;
  scrollbar-color: #45413b #10110f;
}

.detail-record {
  padding: 22px 0;
}

.detail-record + .detail-record {
  border-top: 1px solid var(--rule);
}

.detail-record blockquote {
  padding-left: 14px;
  border-left: 1px solid var(--accent);
  font-size: 17px;
  line-height: 1.8;
}

.detail-meta {
  display: grid;
  margin: 18px 0 0;
  border-top: 1px solid var(--rule-soft);
}

.detail-row {
  display: grid;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule-soft);
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  font-size: 11px;
  line-height: 1.65;
}

.detail-row dt {
  color: var(--muted);
}

.detail-row dd {
  min-width: 0;
  margin: 0;
  color: var(--muted-strong);
  overflow-wrap: anywhere;
}

.detail-row a {
  color: var(--blue);
  text-underline-offset: 3px;
}

.detail-change {
  margin: 16px 0 0;
  padding: 12px 13px;
  border-left: 2px solid var(--accent);
  background: #18140e;
  color: var(--muted-strong);
  font-family: var(--reading-font);
  font-size: 13px;
  line-height: 1.72;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.copy-button {
  padding: 7px 10px;
  border: 1px solid var(--rule);
  background: var(--panel-raised);
  color: var(--muted-strong);
  font-size: 10px;
}

.noscript {
  position: fixed;
  z-index: 200;
  right: 20px;
  bottom: 20px;
  max-width: 380px;
  padding: 14px;
  border: 1px solid var(--red);
  background: #211411;
  color: var(--text);
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 1120px) {
  .coverage {
    grid-template-columns: repeat(4, 1fr);
  }

  .coverage-note {
    justify-content: flex-start;
    grid-column: 1 / -1;
    border-top: 1px solid var(--rule);
    text-align: left;
  }

  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .history-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .history-filters .search-field {
    grid-column: 1 / -1;
  }

  .search-field {
    grid-column: 1 / -1;
  }

  .check-field {
    padding-top: 4px;
  }

  .compare-grid {
    grid-template-columns: 1fr;
  }

  .method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compare-card {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .dashboard-shell {
    padding: 26px 18px 24px;
  }

  .site-header,
  .hero,
  .view-heading,
  .compare-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .breadcrumb {
    flex-wrap: wrap;
  }

  .hero {
    padding: 40px 0 26px;
  }

  .snapshot {
    padding: 0;
    border: 0;
    text-align: left;
  }

  .coverage {
    grid-template-columns: repeat(2, 1fr);
  }

  .coverage-item:nth-child(2) {
    border-right: 0;
  }

  .coverage-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--rule);
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }

  .history-filters {
    grid-template-columns: 1fr;
  }

  .history-filters .search-field {
    grid-column: auto;
  }

  .search-field {
    grid-column: auto;
  }

  .view-tabs {
    overflow-x: auto;
  }

  .view-tab {
    white-space: nowrap;
  }

  .view-heading > p {
    text-align: left;
  }

  .compare-selectors {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .history-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .history-summary-item:nth-child(2) {
    border-right: 0;
  }

  .history-summary-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--rule);
  }

  .history-transition-grid {
    grid-template-columns: 1fr;
  }

  .source-drawer {
    width: 100vw;
    padding: 18px;
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .site-footer {
    flex-direction: column;
  }
}

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