:root {
  color-scheme: light;
  --bg: #f4f6f9;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --accent: #0f766e;
  --accent-dark: #0b5f59;
  --soft: #eef6f5;
  --shadow: 0 8px 24px rgba(15, 23, 42, .07);
  --initial: #1d4ed8;
  --change: #b45309;
  --supplement: #7c3aed;
  --continuation: #0f766e;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
a,
select {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(15, 118, 110, .24);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 9px 13px;
  border-radius: 7px;
  color: #fff;
  background: var(--accent);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
}

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

.workspace-header {
  position: sticky;
  top: 0;
  z-index: 20;
  flex: 0 0 auto;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 246, 249, .96);
  backdrop-filter: blur(10px);
}

.topbar,
.filterbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
}

.title-lockup {
  flex: 0 0 auto;
}

h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 680;
  white-space: nowrap;
}

h1 span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

h1 b {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.searchbox {
  position: relative;
  flex: 1 1 280px;
  min-width: 180px;
}

.searchbox input {
  width: 100%;
  height: 36px;
  padding: 6px 54px 6px 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  font-size: 14px;
}

.searchbox input:focus,
.index-search input:focus,
.select-filters select:focus,
.page-jump input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.searchbox svg {
  position: absolute;
  top: 10px;
  left: 9px;
  width: 16px;
  height: 16px;
  color: var(--faint);
  pointer-events: none;
}

.search-clear {
  position: absolute;
  top: 6px;
  right: 7px;
  height: 24px;
  padding: 0 7px;
  border: 0;
  border-radius: 5px;
  color: var(--muted);
  background: #f1f5f9;
  font-size: 11px;
  font-weight: 650;
}

.search-clear[hidden] {
  display: none;
}

.home-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #475569;
  background: #fff;
  font-size: 12.5px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.home-link:hover {
  border-color: #b7d8d4;
  color: var(--accent-dark);
  background: var(--soft);
}

.mobile-tabs {
  display: none;
}

.filterbar {
  padding-top: 0;
}

.event-chips {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 650;
  white-space: nowrap;
}

.chip[hidden] {
  display: none;
}

.chip span {
  opacity: .68;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.chip.on span {
  color: #fff;
  opacity: .9;
}

.chip-all {
  color: var(--accent);
  background: var(--soft);
}

.chip-all.on {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.chip-initial {
  color: var(--initial);
  background: #eceefe;
}

.chip-initial.on {
  color: #fff;
  background: var(--initial);
}

.chip-change {
  color: var(--change);
  background: #fdf3e7;
}

.chip-change.on {
  color: #fff;
  background: var(--change);
}

.chip-supplement {
  color: var(--supplement);
  background: #f4f0fe;
}

.chip-supplement.on {
  color: #fff;
  background: var(--supplement);
}

.chip-continuation {
  color: var(--continuation);
  background: #e7fbf2;
}

.chip-continuation.on {
  color: #fff;
  background: var(--continuation);
}

.select-filters {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.select-filters select,
.reset-button {
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #475569;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
}

.select-filters select {
  max-width: 132px;
  padding: 0 24px 0 8px;
}

.reset-button {
  padding: 0 10px;
}

.select-filters select:hover,
.reset-button:hover {
  border-color: #b7d8d4;
  color: var(--accent-dark);
}

.workspace-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 14px;
  flex: 1;
  min-height: 0;
  padding: 14px 18px 10px;
  overflow: hidden;
}

.panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  min-height: 56px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.panel-title {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
}

.panel-title strong {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 680;
}

.panel-title span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scope-clear {
  flex: 0 0 auto;
  height: 24px;
  padding: 0 8px;
  border: 1px solid #b7d8d4;
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--soft);
  font-size: 11px;
  font-weight: 650;
}

.scope-clear[hidden] {
  display: none;
}

.result-meta {
  margin-left: auto;
  color: var(--muted);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.result-meta b {
  color: var(--accent);
}

.view-switch {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #eef2f7;
}

.view-switch button {
  height: 30px;
  padding: 0 13px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 660;
}

.view-switch button.on {
  color: var(--accent);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .12);
}

.feed-scroll,
.matrix-scroll,
.index-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.feed-head,
.contract-row {
  display: grid;
  grid-template-columns: 40px 56px 78px minmax(250px, 1fr) minmax(120px, 180px) 94px;
  align-items: center;
  gap: 11px;
}

.feed-head {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 7px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  background: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
}

.feed-head button {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-align: left;
}

.feed-head button:hover,
.feed-head button.on {
  color: var(--accent);
}

.feed-head i {
  margin-left: 3px;
  font-size: 9px;
  font-style: normal;
}

.feed-head .right,
.contract-row .row-number,
.contract-row .amount {
  text-align: right;
}

.contract-row {
  width: 100%;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  color: inherit;
  background: #fff;
  text-align: left;
  text-decoration: none;
}

.contract-row:nth-child(2n) {
  background: #fbfcfe;
}

.contract-row:hover,
.contract-row:focus-visible {
  background: #eaf3f1;
}

.row-number {
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.event-tag {
  justify-self: start;
  width: 50px;
  padding: 1px 0;
  border: 0;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
}

.event-tag.initial {
  color: var(--initial);
  background: #eceefe;
}

.event-tag.change {
  color: var(--change);
  background: #fdf3e7;
}

.event-tag.supplement {
  color: var(--supplement);
  background: #f4f0fe;
}

.event-tag.continuation {
  color: var(--continuation);
  background: #e7fbf2;
}

.contract-date {
  color: #64748b;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.project-name,
.supplier-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-name {
  color: #1e293b;
  font-size: 13px;
  font-weight: 500;
}

.project-name .buyer-prefix {
  margin-right: 7px;
  color: #64748b;
  font-weight: 650;
}

.project-source-link,
.project-source-missing {
  color: inherit;
}

.project-source-link {
  text-decoration: none;
}

.project-source-link:hover,
.project-source-link:focus-visible {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.supplier-name {
  color: var(--accent);
  font-size: 12px;
}

.supplier-name.none {
  color: #cbd5e1;
}

.amount {
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.amount.negative {
  color: #be123c;
}

.amount.none {
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 500;
}

.loading-state,
.index-loading {
  padding: 40px 18px;
  color: var(--faint);
  font-size: 13px;
  text-align: center;
}

.error-state,
.empty-state {
  display: grid;
  flex: 1;
  place-content: center;
  justify-items: center;
  gap: 7px;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.error-state[hidden],
.empty-state[hidden] {
  display: none;
}

.error-state strong,
.empty-state strong {
  color: var(--text);
}

.error-state button,
.empty-state button {
  height: 32px;
  margin-top: 4px;
  padding: 0 12px;
  border: 1px solid #b7d8d4;
  border-radius: 7px;
  color: var(--accent-dark);
  background: var(--soft);
  font-weight: 650;
}

.matrix-note {
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: #f8fafc;
  font-size: 12px;
}

.matrix-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.matrix-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.matrix-table th,
.matrix-table td {
  padding: 8px 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}

.matrix-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #475569;
  background: #eef3f2;
  font-weight: 650;
}

.matrix-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  min-width: 130px;
  color: var(--text);
  background: var(--soft);
  text-align: left;
}

.matrix-table thead th:first-child {
  z-index: 4;
  color: #fff;
  background: var(--accent);
}

.matrix-table td:last-child {
  color: #fff;
  background: var(--accent);
  font-weight: 700;
}

.matrix-table tbody tr:hover td,
.matrix-table tbody tr:hover th {
  background: #fffbe6;
}

.matrix-table tbody tr:hover td:last-child {
  color: var(--accent-dark);
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 6px;
  min-height: 50px;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.pager[hidden] {
  display: none;
}

.pager button {
  height: 30px;
  min-width: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #475569;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.pager button:hover:not(:disabled) {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.pager button:disabled {
  cursor: not-allowed;
  opacity: .4;
}

.page-info {
  padding: 0 8px;
  color: #475569;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.page-info b {
  color: var(--accent);
}

.page-jump {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  color: var(--muted);
  font-size: 12.5px;
}

.page-jump input {
  width: 56px;
  height: 30px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: center;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.index-tabs {
  display: inline-flex;
  gap: 4px;
}

.index-tabs button {
  height: 30px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: #fff;
  font-size: 13px;
  font-weight: 660;
}

.index-tabs button.on {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.index-total {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.index-search {
  display: block;
  flex: 0 0 auto;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
}

.index-search input {
  width: 100%;
  height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  font-size: 13px;
}

.index-list {
  margin: 0;
  padding: 6px;
  list-style: none;
}

.index-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 34px;
  padding: 5px 8px;
  border: 0;
  border-radius: 7px;
  color: inherit;
  background: #fff;
  text-align: left;
}

.index-row:hover {
  background: #f1f5f9;
}

.index-row.on {
  background: var(--soft);
  box-shadow: inset 0 0 0 1px #b7d8d4;
}

.index-rank {
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 650;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.index-name {
  min-width: 0;
  overflow: hidden;
  color: #334155;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.index-row.on .index-name {
  color: var(--accent-dark);
  font-weight: 700;
}

.index-count {
  color: var(--faint);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.index-count b {
  color: var(--accent);
}

.site-foot {
  display: flex;
  justify-content: center;
  flex: 0 0 auto;
  gap: 12px;
  padding: 0 18px 8px;
  color: #7c8da5;
  font-size: 11.5px;
}

.site-foot a {
  color: inherit;
}

.project-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: min(88dvh, 900px);
  padding: 0;
  border: 0;
  border-radius: 14px;
  color: var(--text);
  background: #fff;
  box-shadow: 0 30px 80px rgba(15, 23, 42, .24);
}

.project-dialog::backdrop {
  background: rgba(15, 23, 42, .54);
  backdrop-filter: blur(3px);
}

.dialog-shell {
  max-height: min(88dvh, 900px);
  overflow-y: auto;
}

.dialog-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px 17px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
}

.dialog-header p {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .08em;
}

.dialog-header h2 {
  margin: 5px 0 0;
  font-size: 21px;
  line-height: 1.4;
}

.dialog-header button,
.dialog-footer button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #475569;
  background: #fff;
  font-weight: 650;
}

.dialog-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 16px 22px 0;
}

.dialog-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 5px;
  color: var(--accent-dark);
  background: var(--soft);
  font-size: 11px;
  font-weight: 700;
}

.dialog-badge.change {
  color: var(--change);
  background: #fdf3e7;
}

.dialog-badge.supplement {
  color: var(--supplement);
  background: #f4f0fe;
}

.dialog-details {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  margin: 0;
  padding: 16px 22px 22px;
}

.dialog-details dt,
.dialog-details dd {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.dialog-details dt {
  padding-right: 14px;
  color: var(--muted);
  font-size: 13px;
}

.dialog-details dd {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 14px;
  font-weight: 580;
}

.dialog-details dd.negative {
  color: #be123c;
}

.initial-reference {
  margin: 0 22px 22px;
  padding: 15px;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: var(--soft);
}

.initial-reference h3 {
  margin: 0;
  font-size: 14px;
}

.initial-reference p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.initial-reference a {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
}

.dialog-footer {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
}

.source-button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  color: #fff;
  background: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 1180px) {
  .workspace-main {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .select-filters select {
    max-width: 112px;
  }

  .feed-head,
  .contract-row {
    grid-template-columns: 34px 54px 72px minmax(230px, 1fr) minmax(100px, 150px) 86px;
    gap: 8px;
  }
}

@media (max-width: 880px) {
  body {
    height: 100dvh;
  }

  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 12px 18px 8px;
  }

  .title-lockup {
    width: calc(100% - 112px);
  }

  h1 {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .home-link {
    order: 2;
    margin-left: auto;
  }

  .searchbox {
    order: 3;
    flex-basis: calc(100% - 108px);
  }

  .mobile-tabs {
    display: inline-flex;
    order: 4;
    gap: 4px;
    margin-left: auto;
  }

  .mobile-tabs button {
    height: 34px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #475569;
    background: #fff;
    font-size: 13px;
    font-weight: 650;
  }

  .mobile-tabs button.on {
    border-color: var(--accent);
    color: #fff;
    background: var(--accent);
  }

  .filterbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 0 18px 10px;
  }

  .select-filters {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .select-filters::-webkit-scrollbar {
    display: none;
  }

  .select-filters label {
    flex: 1 0 112px;
  }

  .select-filters select {
    width: 100%;
    max-width: none;
  }

  .workspace-main {
    display: block;
    padding: 10px;
    overflow: hidden;
  }

  .contract-panel,
  .index-panel {
    height: 100%;
  }

  .index-panel {
    display: none;
  }

  body.show-index .contract-panel {
    display: none;
  }

  body.show-index .index-panel {
    display: flex;
  }
}

@media (max-width: 620px) {
  .site-foot {
    display: none;
  }

  .topbar {
    gap: 8px;
  }

  .title-lockup {
    width: 100%;
  }

  h1 {
    font-size: 15px;
  }

  h1 span {
    font-size: 11.5px;
  }

  .home-link {
    display: none;
  }

  .searchbox {
    flex-basis: calc(100% - 104px);
  }

  .event-chips {
    gap: 7px;
  }

  .select-filters {
    display: none;
  }

  .workspace-main {
    padding-top: 10px;
  }

  .panel-head {
    min-height: 56px;
    padding: 9px 12px;
  }

  .panel-title {
    gap: 6px;
  }

  .panel-title span {
    max-width: 92px;
  }

  .scope-clear {
    width: 24px;
    overflow: hidden;
    padding: 0;
    color: transparent;
  }

  .scope-clear::after {
    color: var(--accent-dark);
    content: "清";
  }

  .feed-head,
  .contract-row {
    grid-template-columns: 30px 42px 58px minmax(0, 1fr) 78px;
    gap: 7px;
  }

  .supplier-column,
  .contract-row .supplier-name {
    display: none;
  }

  .feed-head {
    padding: 7px 10px;
  }

  .contract-row {
    height: 36px;
    padding: 0 10px;
  }

  .event-tag {
    width: 42px;
  }

  .project-name .buyer-prefix {
    display: none;
  }

  .pager {
    flex-wrap: wrap;
    min-height: 82px;
  }

  .page-jump {
    display: none;
  }

  .project-dialog {
    width: calc(100vw - 16px);
    max-height: 94dvh;
  }

  .dialog-shell {
    max-height: 94dvh;
  }

  .dialog-header {
    padding: 16px;
  }

  .dialog-header h2 {
    font-size: 18px;
  }

  .dialog-badges {
    padding-inline: 16px;
  }

  .dialog-details {
    grid-template-columns: 112px minmax(0, 1fr);
    padding: 14px 16px 18px;
  }

  .initial-reference {
    margin-inline: 16px;
  }

  .dialog-footer {
    padding: 12px 16px;
  }
}

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