:root {
  color-scheme: light;
  --paper: #f6f7f2;
  --white: #ffffff;
  --ink: #14231c;
  --muted: #65716b;
  --faint: #8d9892;
  --line: #d7dcd7;
  --line-strong: #aeb8b1;
  --green: #116b45;
  --green-dark: #0a4a30;
  --green-pale: #e0f1e6;
  --blue: #2554c7;
  --amber: #a15c00;
  --amber-pale: #fff4d8;
  --red: #a7372a;
  --shadow: 0 24px 70px rgb(25 44 35 / 10%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: "IBM Plex Sans", "Helvetica Neue", sans-serif;
  font-size: 15px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select,
summary {
  outline-offset: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--blue);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.55;
}

p {
  margin: 0;
  color: var(--muted);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 9px 14px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-180%);
}

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

.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;
}

.sidebar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 74px;
  padding: 0 max(24px, calc((100vw - 1320px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgb(246 247 242 / 92%);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  color: var(--ink);
  text-decoration: none;
}

.brand-symbol {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 34px;
  height: 34px;
  padding: 0 8px;
  background: var(--ink);
  border-radius: 50%;
}

.brand-symbol i {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: var(--white);
}

.brand-symbol i:nth-child(2) {
  width: 70%;
}

.brand-symbol i:nth-child(3) {
  width: 42%;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
  line-height: 1.05;
}

.brand-wordmark small {
  margin-top: 3px;
  color: var(--faint);
  font-family: "IBM Plex Mono", monospace;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.sidebar nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-link {
  position: relative;
  padding: 11px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.nav-link::after {
  position: absolute;
  right: 14px;
  bottom: 5px;
  left: 14px;
  height: 2px;
  background: var(--green);
  content: "";
  opacity: 0;
  transform: scaleX(0.25);
  transition:
    opacity 160ms ease,
    transform 220ms var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
}

.nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.sidebar-bottom {
  justify-self: end;
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #2bb673;
  box-shadow: 0 0 0 4px rgb(43 182 115 / 12%);
}

main {
  min-height: calc(100vh - 74px);
}

.topbar,
.view,
footer {
  width: min(calc(100% - 48px), 1320px);
  margin-inline: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.page-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
  padding: 76px 0 48px;
}

.page-heading h1 {
  max-width: 900px;
  margin: 16px 0 26px;
}

.page-heading p {
  max-width: 660px;
  color: #4c5a53;
  font-size: 17px;
  line-height: 1.7;
}

.primary,
.secondary {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms var(--ease);
}

.secondary:hover {
  border-color: var(--ink);
  background: var(--white);
}

.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.primary:hover {
  border-color: var(--green-dark);
  background: var(--green-dark);
}

.primary:active,
.secondary:active {
  transform: translateY(1px);
}

.proof-ribbon {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0;
  margin: 0 0 32px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--ink);
  box-shadow: var(--shadow);
  color: var(--white);
  list-style: none;
}

.proof-ribbon::before {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #41d992, #b9f7d3);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  animation: verify-line 900ms 180ms var(--ease) forwards;
}

.proof-ribbon li {
  position: relative;
  min-height: 124px;
  padding: 26px 28px 24px;
  border-right: 1px solid rgb(255 255 255 / 16%);
}

.proof-ribbon li:last-child {
  border-right: 0;
}

.proof-ribbon li::after {
  position: absolute;
  top: 29px;
  right: 22px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #55dc9b;
  box-shadow: 0 0 0 1px #55dc9b;
  content: "";
}

.proof-ribbon span,
.proof-ribbon small {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
}

.proof-ribbon span {
  color: #b9c6bf;
}

.proof-ribbon strong {
  display: block;
  margin: 15px 0 6px;
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.proof-ribbon small {
  color: #86deae;
}

.notice {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0 14px 16px;
  margin-bottom: 8px;
  border-left: 3px solid #d19336;
  background: var(--amber-pale);
}

.notice-symbol {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #c78829;
  border-radius: 50%;
  color: var(--amber);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}

.notice strong {
  color: #68400b;
  font-size: 12px;
  font-weight: 600;
}

.notice p {
  margin-top: 2px;
  color: #7f5a25;
  font-size: 11px;
}

.notice-tag {
  padding-right: 18px;
  color: #886022;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 64px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  min-width: 0;
  padding: 24px 24px 24px 0;
  border-right: 1px solid var(--line);
}

.stat + .stat {
  padding-left: 24px;
}

.stat:last-child {
  border-right: 0;
}

.stat > div,
.stat > span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.stat strong {
  display: block;
  margin: 7px 0 5px;
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.unit {
  margin-left: 2px;
  font-size: 24px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.section-heading > a {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 500;
}

.count-badge {
  display: inline-grid;
  width: 22px;
  height: 22px;
  margin-left: 7px;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  vertical-align: 3px;
}

.section-status {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cohort-chip,
.freshness {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
}

.cohort-chip {
  padding: 4px 7px;
  border: 1px solid var(--line-strong);
}

@keyframes verify-line {
  to {
    transform: scaleX(1);
  }
}

.filter-bar {
  display: grid;
  grid-template-columns:
    minmax(170px, 1.4fr) repeat(3, minmax(120px, 0.8fr)) minmax(170px, 1fr)
    auto;
  gap: 0;
  align-items: stretch;
  border: 1px solid var(--ink);
  background: var(--white);
}

.filter-bar > label {
  display: flex;
  min-width: 0;
  min-height: 78px;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 12px 16px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.filter-bar input[type="number"],
.filter-bar input[type="text"],
.filter-bar select,
.subscription-inspector input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.filter-bar select {
  appearance: auto;
}

.input-unit {
  position: relative;
  display: flex;
  align-items: center;
}

.input-unit input {
  padding-right: 42px !important;
}

.input-unit span {
  position: absolute;
  right: 0;
  color: var(--faint);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  pointer-events: none;
}

.filter-bar small {
  display: none;
}

.filter-bar .checkbox-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--green);
}

.filter-bar button {
  min-width: 128px;
  min-height: 78px;
  border: 0;
}

.mode-policy-note,
.policy-result {
  min-height: 42px;
  padding: 12px 0;
  color: var(--muted);
  font-size: 11px;
}

.policy-result {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.policy-result::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--amber);
  content: "";
}

.policy-result[data-state="selected"]::before {
  background: var(--green);
}

.error {
  padding: 13px 16px;
  margin-bottom: 18px;
  border-left: 3px solid var(--red);
  background: #fff0ee;
  color: var(--red);
  font-size: 12px;
}

.provider-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.provider-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(420px, 1.4fr);
  gap: 30px 54px;
  padding: 32px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--green);
  background: var(--white);
  box-shadow: var(--shadow);
}

.provider-card::after {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 150px;
  height: 150px;
  border: 32px solid var(--green-pale);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.provider-top,
.provider-description,
.tags,
.provider-footer,
.subscription-identity,
.subscription-inspector,
.subscription-terms,
.subscription-empty {
  grid-column: 1;
}

.provider-top {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 13px;
  align-items: center;
}

.provider-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ink);
  color: var(--green-dark);
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-size: 22px;
}

.provider-name h3 {
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.provider-name p {
  margin-top: 2px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
}

.provider-top > .badge {
  position: absolute;
  z-index: 1;
  top: 28px;
  right: 30px;
}

.provider-description {
  margin-top: -12px;
  font-size: 13px;
  line-height: 1.65;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: -16px;
}

.tag,
.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 8px;
}

.badge.good {
  border-color: #85b99a;
  background: var(--green-pale);
  color: var(--green-dark);
}

.provider-metrics {
  display: grid;
  grid-row: 1 / span 4;
  grid-column: 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: stretch;
  border-left: 1px solid var(--line);
}

.provider-metrics > div {
  min-width: 0;
  padding: 15px 22px;
  border-bottom: 1px solid var(--line);
}

.provider-metrics > div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.provider-metrics > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.provider-metrics small,
.provider-metrics span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.provider-metrics strong {
  display: block;
  margin: 8px 0 5px;
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.provider-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.price {
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-size: 20px;
  font-weight: 500;
}

.price span {
  margin-left: 4px;
  color: var(--muted);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 10px;
  font-weight: 400;
}

.footnote {
  display: flex;
  gap: 10px;
  max-width: 900px;
  padding: 18px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.footnote > span {
  color: var(--green);
}

.subscription-card {
  border-top-color: var(--blue);
}

.subscription-identity,
.subscription-inspector,
.subscription-terms {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.subscription-identity h4,
.subscription-terms h4,
.subscription-inspector label {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 600;
}

.subscription-identity p,
.subscription-identity small,
.subscription-inspector small,
.subscription-empty {
  display: block;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 9px;
}

.subscription-inspector-controls {
  display: flex;
  gap: 8px;
}

.subscription-inspector input {
  padding: 9px 10px;
  border: 1px solid var(--line-strong);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.subscription-terms dl {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px 14px;
  margin: 0;
  font-size: 10px;
}

.subscription-terms dt {
  color: var(--muted);
}

.subscription-terms dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.atomic-value {
  display: flex;
  flex-direction: column;
}

.atomic-value small {
  color: var(--faint);
  font-size: 8px;
}

.history-heading {
  margin-top: 64px;
}

.table-wrap {
  overflow: auto;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--white);
}

.load-history {
  display: block;
  margin: 16px auto 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-strong);
  background: #edf0ec;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  font-weight: 500;
  white-space: nowrap;
}

td {
  padding: 17px 18px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
}

td:first-child {
  font-weight: 600;
}

td small {
  display: block;
  margin-top: 3px;
  color: var(--faint);
  font-family: "IBM Plex Mono", monospace;
  font-size: 8px;
  font-weight: 400;
}

td a {
  color: var(--green-dark);
}

td .secondary {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 10px;
}

.muted-value {
  color: var(--muted);
}

.empty {
  padding: 46px 24px;
  text-align: center;
}

.empty-symbol {
  margin-bottom: 8px;
  color: var(--green);
  font-size: 24px;
}

.empty strong {
  font-size: 13px;
}

.empty p {
  margin-top: 6px;
  font-size: 11px;
}

#activity-view .page-heading,
#protocol-view .page-heading {
  border-bottom: 1px solid var(--line);
}

.activity-list {
  position: relative;
  padding: 38px 0 12px 34px;
}

.activity-list::before {
  position: absolute;
  top: 38px;
  bottom: 12px;
  left: 7px;
  width: 1px;
  background: var(--line-strong);
  content: "";
}

.activity-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 7px 24px;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.activity-item::before {
  position: absolute;
  top: 4px;
  left: -31px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 1px var(--green);
  content: "";
}

.activity-item > .badge {
  grid-row: 1;
  grid-column: 2;
}

.activity-item h3,
.activity-item p {
  grid-column: 1;
}

.activity-item p {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
}

.activity-item a,
.activity-item button {
  grid-row: 3;
  width: fit-content;
  margin-right: 14px;
  color: var(--green-dark);
  font-size: 10px;
}

.activity-item .secondary {
  justify-self: end;
  grid-column: 2;
  min-height: 34px;
}

.cli-card {
  padding: 28px 30px;
  margin-top: 28px;
  border: 1px solid var(--line-strong);
  background: var(--white);
}

.cli-card h2 {
  margin-bottom: 12px;
}

.cli-card p {
  max-width: 760px;
  font-size: 12px;
}

.cli-card > code {
  display: block;
  width: fit-content;
  padding: 10px 13px;
  margin: 18px 0;
  background: var(--ink);
  color: #baf2d2;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}

.cli-card a {
  display: inline-block;
  margin-top: 14px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 500;
}

.protocol-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 48px 0;
}

.protocol-grid::before {
  position: absolute;
  top: 69px;
  right: 8%;
  left: 8%;
  height: 1px;
  background: var(--line-strong);
  content: "";
}

.protocol-grid article {
  position: relative;
  z-index: 1;
  padding: 0 26px;
  border-right: 1px solid var(--line);
}

.protocol-grid article:first-child {
  padding-left: 0;
}

.protocol-grid article:last-child {
  padding-right: 0;
  border-right: 0;
}

.protocol-grid article > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--green-dark);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.protocol-grid h2 {
  margin: 22px 0 10px;
  font-size: 20px;
}

.protocol-grid p {
  font-size: 12px;
  line-height: 1.7;
}

dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: min(84vh, 820px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 100px rgb(10 28 19 / 24%);
}

dialog::backdrop {
  background: rgb(20 35 28 / 28%);
  backdrop-filter: blur(5px);
}

.dialog-header {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(12px);
}

.icon-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

#detail-body {
  padding: 30px 34px 34px;
}

dialog h2 {
  margin-bottom: 10px;
  font-size: 34px;
}

dialog p {
  font-size: 13px;
}

dialog dl {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 0;
  margin: 28px 0 0;
  border-top: 1px solid var(--ink);
  font-size: 11px;
}

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

dialog dt {
  color: var(--muted);
}

dialog dd {
  margin: 0;
  overflow-wrap: anywhere;
}

dialog dd a,
.detail-links {
  color: var(--green-dark);
}

dialog details {
  margin-top: 20px;
}

dialog summary {
  cursor: pointer;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 500;
}

dialog pre {
  max-height: 320px;
  padding: 16px;
  overflow: auto;
  background: #edf0ec;
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
}

.detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
  font-size: 11px;
}

.view:not([hidden]) .page-heading > div {
  animation: reveal-copy 560ms var(--ease) both;
}

.view:not([hidden]) .page-heading > button {
  animation: reveal-copy 560ms 90ms var(--ease) both;
}

dialog[open] {
  animation: reveal-dialog 220ms var(--ease) both;
}

@keyframes reveal-copy {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes reveal-dialog {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
}

@media (max-width: 1100px) {
  .filter-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .filter-bar > label {
    border-bottom: 1px solid var(--line);
  }

  .filter-bar .checkbox-label {
    border-bottom: 0;
  }

  .filter-bar button {
    grid-column: span 2;
  }

  .provider-card {
    grid-template-columns: 1fr;
  }

  .provider-metrics {
    grid-row: auto;
    grid-column: 1;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .sidebar {
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
    min-height: 112px;
    padding: 13px 20px 0;
  }

  .sidebar nav {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-content: space-between;
    border-top: 1px solid var(--line);
  }

  .nav-link {
    flex: 1;
    padding: 12px 6px 13px;
    text-align: center;
  }

  .nav-link::after {
    right: 12px;
    bottom: 0;
    left: 12px;
  }

  .sidebar-bottom {
    font-size: 8px;
  }

  .topbar,
  .view,
  footer {
    width: min(calc(100% - 32px), 1320px);
  }

  .topbar {
    height: 44px;
  }

  .network-chip {
    display: none;
  }

  .page-heading {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 46px 0 34px;
  }

  .page-heading h1 {
    margin: 13px 0 20px;
    font-size: clamp(50px, 16vw, 72px);
  }

  .page-heading p {
    font-size: 15px;
  }

  .page-heading > .secondary {
    justify-self: start;
  }

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

  .proof-ribbon li {
    min-height: 112px;
    padding: 22px 20px;
    border-bottom: 1px solid rgb(255 255 255 / 16%);
  }

  .proof-ribbon li:nth-child(2) {
    border-right: 0;
  }

  .proof-ribbon li:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .notice {
    grid-template-columns: auto 1fr;
  }

  .notice-tag {
    display: none;
  }

  .stats-grid {
    margin-bottom: 46px;
  }

  .stat,
  .stat + .stat {
    padding: 20px 16px;
  }

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

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .section-heading {
    align-items: flex-start;
  }

  .section-status {
    align-items: flex-end;
    flex-direction: column;
    gap: 5px;
    text-align: right;
  }

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

  .filter-bar > label:first-child,
  .filter-bar .checkbox-label,
  .filter-bar button {
    grid-column: 1 / -1;
  }

  .filter-bar > label:nth-child(even) {
    border-right: 0;
  }

  .filter-bar > label:first-child {
    border-right: 0;
  }

  .filter-bar button {
    min-height: 56px;
  }

  .provider-card {
    gap: 24px;
    padding: 24px 20px;
  }

  .provider-card::after {
    width: 110px;
    height: 110px;
  }

  .provider-top > .badge {
    top: 22px;
    right: 18px;
  }

  .provider-metrics > div {
    padding: 14px 12px;
  }

  .history-heading {
    margin-top: 48px;
  }

  .activity-item {
    grid-template-columns: 1fr;
  }

  .activity-item > .badge,
  .activity-item .secondary {
    grid-row: auto;
    grid-column: 1;
    justify-self: start;
  }

  .protocol-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 34px 0;
  }

  .protocol-grid::before {
    display: none;
  }

  .protocol-grid article:nth-child(2) {
    border-right: 0;
  }

  .protocol-grid article:nth-child(3) {
    padding-left: 0;
  }

  #detail-body {
    padding: 24px 22px 28px;
  }

  dialog dl {
    grid-template-columns: 110px 1fr;
  }

  footer {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .brand-wordmark small {
    display: none;
  }

  .proof-ribbon strong {
    max-width: 120px;
    font-size: 19px;
  }

  .proof-ribbon li::after {
    top: 23px;
    right: 14px;
  }

  .stat strong {
    font-size: 32px;
  }

  .provider-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .provider-top > .badge {
    position: static;
    grid-column: 1 / -1;
    margin-top: 7px;
  }

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

  .protocol-grid article,
  .protocol-grid article:first-child,
  .protocol-grid article:nth-child(3) {
    padding: 0 0 28px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .protocol-grid article:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  dialog dl {
    grid-template-columns: 1fr;
  }

  dialog dt {
    padding-bottom: 2px;
    border-bottom: 0;
  }

  dialog dd {
    padding-top: 2px;
  }

  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.topbar div span {
  margin: 0 8px;
  color: var(--line-strong);
}

.network-chip {
  color: var(--muted);
}

.view {
  min-height: 70vh;
  padding: 0 0 56px;
}

.eyebrow {
  color: var(--green);
  font-size: 13px;
  font-weight: 500;
}

h1 {
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-size: clamp(46px, 7vw, 92px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.88;
}

h2 {
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 16px;
  font-weight: 600;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}
