:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #596574;
  --subtle: #7a8491;
  --line: #dfe3e8;
  --line-strong: #cbd1d8;
  --surface: #ffffff;
  --surface-soft: #f7f8fa;
  --canvas: #f3f1ed;
  --hero: #22252b;
  --hero-line: #3a3f47;
  --accent: #d83a32;
  --accent-dark: #a92722;
  --accent-soft: #fff0ed;
  --green: #147a55;
  --green-soft: #e8f6ef;
  --amber: #9a5c06;
  --amber-soft: #fff5dc;
  --red-soft: #ffebe8;
  --blue: #2768b2;
  --focus: #2768b2;
  --shadow-sm: 0 1px 2px rgb(24 32 42 / 8%);
  --shadow-md: 0 14px 38px rgb(24 32 42 / 12%);
  --radius-sm: 8px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --shell: 1240px;
  font-family: "Fira Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

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

button,
input,
select { font: inherit; }

button,
a,
summary { -webkit-tap-highlight-color: transparent; }

button,
summary,
a[href] { cursor: pointer; }

button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 32%, transparent);
  outline-offset: 2px;
}

[hidden] { display: none !important; }

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius-sm);
  transform: translateY(-150%);
}

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

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  color: var(--muted);
}

.boot-screen p { margin: 0; }

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
  box-shadow: 0 7px 18px rgb(216 58 50 / 24%);
}

.brand-mark--large {
  width: 54px;
  height: 54px;
  border-radius: 8px;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background-color: #25282e;
}

.login-card {
  width: min(100%, 460px);
  padding: clamp(28px, 5vw, 46px);
  background: var(--surface);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 90px rgb(0 0 0 / 32%);
}

.login-brand,
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.login-brand { margin-bottom: 38px; }
.login-brand div,
.wordmark > span:last-child { display: grid; }
.login-brand strong,
.wordmark strong { font-size: 0.98rem; line-height: 1.2; letter-spacing: 0.01em; }
.login-brand span,
.wordmark small { color: var(--muted); font-size: 0.77rem; letter-spacing: 0.06em; }

.eyebrow {
  margin: 0 0 7px;
  color: var(--accent-dark);
  font-family: "Fira Code", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.eyebrow--light { color: #ffaaa4; }

h1,
h2,
h3,
h4,
p { overflow-wrap: anywhere; }

h1,
h2,
h3,
h4 { margin-top: 0; line-height: 1.22; letter-spacing: -0.025em; }

.login-card h1 { margin-bottom: 13px; font-size: clamp(1.75rem, 5vw, 2.25rem); }
.login-lede { margin: 0 0 27px; color: var(--muted); }
.privacy-note { margin: 22px 0 0; color: var(--subtle); font-size: 0.78rem; }

.stack-form { display: grid; gap: 10px; }
.stack-form > label { font-weight: 650; font-size: 0.88rem; }

input,
select {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:hover,
select:hover { border-color: #9ca6b2; }

input:focus,
select:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgb(39 104 178 / 10%);
}

input:disabled { color: var(--muted); background: #eceff2; cursor: not-allowed; }

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.2;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button:hover { border-color: #9da6b0; background: var(--surface-soft); }
.button:disabled { opacity: 0.58; cursor: wait; }
.button--wide { width: 100%; margin-top: 8px; }
.button--compact { min-height: 36px; padding: 6px 11px; font-size: 0.8rem; }
.button--primary { color: #fff; background: var(--accent); border-color: var(--accent); box-shadow: 0 6px 15px rgb(216 58 50 / 14%); }
.button--primary:hover { color: #fff; background: var(--accent-dark); border-color: var(--accent-dark); }
.button--secondary { background: #fff; border-color: var(--line-strong); }
.button--ghost { color: var(--muted); background: transparent; border-color: var(--line); }
.button--ghost:hover { color: var(--ink); background: #fff; border-color: var(--line-strong); }
.button--danger { color: #a42d27; background: var(--red-soft); border-color: #f0bbb6; }
.button--danger:hover { color: #7f201c; background: #ffe1de; border-color: #dc8f88; }
.button--light { color: #fff; background: transparent; border-color: #656b74; }
.button--light:hover { color: #fff; background: rgb(255 255 255 / 8%); border-color: #8d939c; }

.form-message {
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
}

.form-message--error { color: #8d2520; background: var(--red-soft); border: 1px solid #f4c3be; }

.topbar {
  position: sticky;
  z-index: 50;
  top: 0;
  color: var(--ink);
  background: rgb(255 255 255 / 96%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.topbar__inner {
  min-height: 70px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
}

.wordmark { justify-self: start; }
.wordmark .brand-mark { width: 38px; height: 38px; border-radius: 8px; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.primary-nav a {
  padding: 7px 13px;
  color: var(--muted);
  border-radius: 7px;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-nav a:hover { color: var(--ink); }
.primary-nav a[aria-current="page"] { color: var(--ink); background: #fff; box-shadow: var(--shadow-sm); }
#logout-button { justify-self: end; }

.hero {
  color: #fff;
  background: var(--hero);
  border-bottom: 1px solid var(--hero-line);
}

.hero__inner {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-block: 42px;
}

.hero h1 { margin-bottom: 10px; font-size: clamp(2rem, 5vw, 3.25rem); }
.hero p:not(.eyebrow) { max-width: 700px; margin: 0; color: #c8ccd2; }
.hero__actions { display: grid; justify-items: end; gap: 12px; }
.freshness { font-family: "Fira Code", ui-monospace, monospace; font-size: 0.76rem; white-space: nowrap; }

.page-stack { display: grid; gap: 30px; padding-block: 30px 60px; }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: -60px;
}

.summary-card {
  min-height: 132px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid #9da6b0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.summary-card p { margin: 0 0 7px; color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.summary-card strong { display: block; margin-bottom: 6px; font-family: "Fira Code", ui-monospace, monospace; font-size: 2rem; line-height: 1; }
.summary-card span { color: var(--subtle); font-size: 0.76rem; }
.summary-card--healthy { border-top-color: var(--green); }
.summary-card--attention { border-top-color: var(--accent); }

.panel {
  padding: clamp(20px, 3vw, 30px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

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

.section-heading h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 1.75rem); }
.section-heading > p { max-width: 590px; margin: 0; color: var(--muted); font-size: 0.84rem; text-align: right; }
.section-heading--catalog { margin-bottom: 16px; padding-inline: 2px; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.ranking-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 0.84rem; }
.ranking-table th,
.ranking-table td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.ranking-table th { color: var(--muted); background: var(--surface-soft); font-size: 0.72rem; letter-spacing: 0.03em; }
.ranking-table tbody tr:last-child td { border-bottom: 0; }
.ranking-table tbody tr:hover { background: #fffaf8; }
.table-subline { display: block; margin-top: 2px; color: var(--subtle); font-size: 0.74rem; font-weight: 400; }
.number-cell { font-family: "Fira Code", ui-monospace, monospace; white-space: nowrap; }
.number-cell--strong { color: var(--accent-dark); font-weight: 700; }
.rank-badge { min-width: 26px; height: 26px; display: inline-grid; place-items: center; color: var(--muted); background: #edf0f3; border-radius: 99px; font-weight: 800; }
.rank-badge--top { color: #fff; background: var(--accent); }
.ranking-note,
.truncated-note { margin: 12px 0 0; color: var(--subtle); font-size: 0.76rem; }

.provider-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }

.provider-card {
  min-width: 0;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid #8e98a5;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.provider-card--ok { border-top-color: var(--green); }
.provider-card--stale { border-top-color: #c17a12; }
.provider-card--error,
.provider-card--low { border-top-color: var(--accent); }

.provider-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.provider-identity { min-width: 0; display: flex; align-items: center; gap: 11px; }
.provider-avatar { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: #353a42; border-radius: 8px; font-size: 0.75rem; font-weight: 800; }
.provider-identity h3 { margin: 0 0 2px; font-size: 1.08rem; }
.provider-identity p { margin: 0; color: var(--subtle); font-size: 0.75rem; }
.provider-card__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; }

.status {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid transparent;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.status__dot { width: 7px; height: 7px; background: currentColor; border-radius: 50%; }
.status--ok { color: var(--green); background: var(--green-soft); border-color: #bce4d2; }
.status--stale { color: var(--amber); background: var(--amber-soft); border-color: #efd8a6; }
.status--error { color: #a42d27; background: var(--red-soft); border-color: #f0bdb8; }

.balance-panel {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  background: var(--surface-soft);
  border-block: 1px solid var(--line);
}

.field-label { margin: 0 0 4px; color: var(--muted); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.balance-value { display: flex; align-items: baseline; gap: 7px; margin: 0; }
.balance-value strong { font-family: "Fira Code", ui-monospace, monospace; font-size: 1.7rem; line-height: 1; }
.balance-value span { color: var(--muted); font-size: 0.72rem; font-weight: 700; }
.balance-detail { margin: 8px 0 0; color: var(--muted); font-size: 0.72rem; }
.freshness-block { min-width: 142px; text-align: right; }
.freshness-block > p:last-of-type { margin: 0; color: var(--muted); font-size: 0.75rem; }
.freshness-block small { display: block; margin-top: 3px; color: var(--subtle); font-size: 0.66rem; }
.low-balance-label { display: block; margin-top: 5px; color: var(--accent-dark); font-size: 0.72rem; }

.status-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 20px;
  padding: 9px 11px;
  color: var(--muted);
  background: #f2f6f4;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
}

.status-note svg { flex: 0 0 auto; margin-top: 2px; color: var(--green); }
.status-note--error { color: #842923; background: var(--red-soft); }
.status-note--error svg { color: var(--accent); }

.card-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 18px 2px 9px; }
.card-section-heading h4 { margin: 0; font-size: 0.9rem; }
.card-section-heading span { color: var(--subtle); font-size: 0.7rem; text-align: right; }
.api-key-list,
.price-book-list { display: grid; gap: 7px; }

.disclosure-card {
  overflow: clip;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.disclosure-card[open] { border-color: #bfc6cf; box-shadow: 0 5px 16px rgb(24 32 42 / 7%); }
.disclosure-card summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 12px; list-style: none; transition: background-color 160ms ease; }
.disclosure-card summary::-webkit-details-marker { display: none; }
.disclosure-card summary:hover { background: var(--surface-soft); }
.disclosure-card summary::after { content: "+"; flex: 0 0 auto; color: var(--muted); font-size: 1rem; font-weight: 500; }
.disclosure-card[open] summary::after { content: "−"; }
.disclosure-card__title { min-width: 0; display: flex; align-items: center; gap: 7px; font-size: 0.78rem; }
.disclosure-card__title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.disclosure-card__title svg { flex: 0 0 auto; color: var(--muted); }
.key-state { padding: 2px 6px; color: var(--muted); background: #edf0f3; border-radius: 99px; font-family: "Fira Code", ui-monospace, monospace; font-size: 0.65rem; font-weight: 700; white-space: nowrap; }
.disclosure-card__summary { margin-left: auto; color: var(--muted); font-size: 0.68rem; text-align: right; }
.disclosure-card__body,
.price-book-body { padding: 11px 12px; border-top: 1px solid var(--line); }
.disclosure-card__body { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: 0.7rem; }
.usage-windows { width: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.usage-windows span { padding: 3px 7px; background: var(--surface-soft); border-radius: 5px; font-family: "Fira Code", ui-monospace, monospace; }

.quote-list { margin: 0; padding: 0; list-style: none; }
.quote-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 2px; border-bottom: 1px solid #edf0f2; }
.quote-row:last-child { border-bottom: 0; }
.model-identity { min-width: 0; display: grid; }
.model-identity strong { font-family: "Fira Code", ui-monospace, monospace; font-size: 0.72rem; }
.model-identity span { color: var(--subtle); font-size: 0.65rem; }
.quote-values { margin: 0; color: var(--muted); font-family: "Fira Code", ui-monospace, monospace; font-size: 0.66rem; text-align: right; }
.empty-inline { margin: 0; padding: 13px; color: var(--muted); background: var(--surface-soft); border-radius: var(--radius-sm); font-size: 0.78rem; }

.empty-state {
  grid-column: 1 / -1;
  min-height: 270px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 9px;
  padding: 35px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  text-align: center;
}

.empty-state svg { color: var(--accent); }
.empty-state h3,
.empty-state p { margin: 0; }
.empty-state h3 { color: var(--ink); font-size: 1rem; }
.empty-state p { max-width: 480px; font-size: 0.82rem; }
.empty-state .button { margin-top: 8px; }

.admin-page { padding-block: 42px 70px; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.admin-heading h1 { margin-bottom: 8px; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.admin-heading p:not(.eyebrow) { max-width: 720px; margin: 0; color: var(--muted); }
.admin-provider-list { display: grid; gap: 12px; }
.admin-provider-card { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.admin-provider-card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.admin-provider-card__header h2 { margin: 0 0 3px; font-size: 1.08rem; }
.admin-provider-card__header p { margin: 0; color: var(--muted); font-family: "Fira Code", ui-monospace, monospace; font-size: 0.7rem; }
.admin-meta { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin: 0 0 16px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.admin-meta div { min-width: 0; padding: 10px; background: var(--surface-soft); }
.admin-meta dt { color: var(--subtle); font-size: 0.66rem; font-weight: 700; }
.admin-meta dd { overflow: hidden; margin: 3px 0 0; font-size: 0.75rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.inline-auth-form { display: grid; grid-template-columns: minmax(180px, 1fr) auto; align-items: end; gap: 8px; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.inline-auth-form label { color: var(--muted); font-size: 0.72rem; font-weight: 700; }
.inline-auth-form input { margin-top: 4px; }

.modal {
  width: min(calc(100% - 30px), 760px);
  max-height: min(90vh, 840px);
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 35px 100px rgb(0 0 0 / 30%);
}

.modal::backdrop { background: rgb(18 21 26 / 65%); backdrop-filter: blur(3px); }
.modal__body { display: grid; max-height: inherit; overflow: auto; }
.modal__header { position: sticky; z-index: 2; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 24px 18px; background: #fff; border-bottom: 1px solid var(--line); }
.modal__header h2 { margin: 0 0 3px; font-size: 1.35rem; }
.modal__header p:last-child { margin: 0; color: var(--muted); font-size: 0.78rem; }
.icon-button { width: 36px; height: 36px; display: inline-grid; place-items: center; flex: 0 0 auto; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 1.25rem; line-height: 1; }
.icon-button:hover { color: var(--ink); background: var(--surface-soft); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 22px 24px; }
.form-grid label { min-width: 0; color: var(--ink); font-size: 0.78rem; font-weight: 700; }
.form-grid input,
.form-grid select { margin-top: 5px; }
.form-grid small { display: block; margin-top: 5px; color: var(--subtle); font-size: 0.67rem; font-weight: 400; }
.form-grid__wide { grid-column: 1 / -1; }
#provider-form-error { margin-inline: 24px; }
.modal__actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 9px; padding: 16px 24px; background: #fff; border-top: 1px solid var(--line); }

.notice {
  position: fixed;
  z-index: 100;
  right: 18px;
  bottom: 18px;
  width: min(calc(100% - 36px), 430px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  color: #fff;
  background: #2b3138;
  border: 1px solid #454d57;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.notice[data-tone="error"] { background: #8e2b26; border-color: #b5413a; }
.notice p { margin: 0; font-size: 0.82rem; }
.notice .icon-button { color: #fff; border-color: rgb(255 255 255 / 25%); }
.noscript { margin: 20px; padding: 14px; color: #8d2520; background: var(--red-soft); border: 1px solid #f4c3be; border-radius: var(--radius-sm); }

@media (max-width: 1040px) {
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .provider-grid { grid-template-columns: 1fr; }
  .admin-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .shell { width: min(calc(100% - 24px), var(--shell)); }
  .topbar__inner { min-height: 116px; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 7px 12px; padding-block: 10px; }
  .wordmark { grid-column: 1; grid-row: 1; }
  #logout-button { grid-column: 2; grid-row: 1; }
  .primary-nav { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .primary-nav a { flex: 1; text-align: center; }
  .hero__inner { min-height: 250px; display: grid; gap: 22px; padding-block: 32px 72px; }
  .hero__actions { justify-items: start; }
  .freshness { white-space: normal; }
  .summary-grid { grid-template-columns: 1fr 1fr; margin-top: -72px; }
  .summary-card { min-height: 118px; padding: 16px; }
  .summary-card strong { font-size: 1.65rem; }
  .section-heading,
  .admin-heading { display: grid; align-items: start; gap: 11px; }
  .section-heading > p { text-align: left; }
  .admin-heading .button { justify-self: start; }
  .provider-card { padding: 16px; }
  .provider-card__header { display: grid; }
  .provider-card__actions { justify-content: flex-start; }
  .balance-panel { display: grid; }
  .freshness-block { text-align: left; }
  .disclosure-card summary { align-items: flex-start; flex-wrap: wrap; }
  .disclosure-card__summary { width: 100%; margin-left: 0; padding-left: 23px; text-align: left; }
  .disclosure-card summary::after { position: absolute; right: 28px; }
  .quote-row { display: grid; gap: 5px; }
  .quote-values { text-align: left; }
  .admin-provider-card__header { display: grid; }
  .admin-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inline-auth-form { grid-template-columns: 1fr; }
  .inline-auth-form .button { justify-self: start; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid__wide { grid-column: auto; }
}

@media (max-width: 440px) {
  .login-card { padding: 26px 21px; }
  .wordmark small { display: none; }
  .summary-grid { grid-template-columns: 1fr; }
  .summary-card { min-height: 104px; }
  .card-section-heading { display: grid; gap: 2px; }
  .card-section-heading span { text-align: left; }
  .provider-card__actions .button { flex: 1; }
  .status { justify-content: center; }
  .admin-meta { grid-template-columns: 1fr; }
  .admin-actions .button { flex: 1; }
  .modal__header,
  .form-grid,
  .modal__actions { padding-inline: 17px; }
  #provider-form-error { margin-inline: 17px; }
}

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