:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #5d6874;
  --soft: #7b8390;
  --paper: #f4f2ed;
  --surface: #fffdf8;
  --surface-2: #edf3f1;
  --line: #d9d6c9;
  --line-dark: #303940;
  --coal: #171d21;
  --coal-2: #222b31;
  --white: #ffffff;
  --teal: #0f766e;
  --teal-dark: #0a544f;
  --gold: #b78234;
  --rust: #954d3d;
  --blue: #31517d;
  --shadow: 0 18px 44px rgb(23 32 38 / 12%);
  --shadow-strong: 0 24px 70px rgb(23 32 38 / 22%);
  --font-scale: 0.7;
  --font-size-11: 7.7px;
  --font-size-12: 8.4px;
  --font-size-13: 9.1px;
  --font-size-14: 9.8px;
  --font-size-15: 10.5px;
  --font-size-16: 11.2px;
  --font-size-17: 11.9px;
  --font-size-18: 12.6px;
  --font-size-21: 14.7px;
  --font-size-22: 15.4px;
  --font-size-26: 18.2px;
  --font-size-30: 21px;
  --font-size-44: 30.8px;
  --font-size-h1: clamp(32.2px, 6.3vw, 81.2px);
  --font-size-h2: clamp(19.6px, 2.8vw, 36.4px);
  --font-size-copy-22: clamp(11.9px, 1.4vw, 15.4px);
  --font-size-copy-23: clamp(11.9px, 1.4vw, 16.1px);
  --font-size-card-heading: clamp(16.8px, 2.1vw, 23.8px);
  --font-size-section-heading: clamp(18.2px, 2.1vw, 29.4px);
  --font-size-doc-heading: clamp(19.6px, 2.8vw, 30.8px);
  --font-size-page-hero: clamp(26.6px, 4.2vw, 50.4px);
  --font-size-stream-hero: clamp(29.4px, 4.9vw, 54.6px);
  --font-weight-normal: 280;
  --font-weight-strong: 490;
  --font-weight-680: 476;
  --font-weight-740: 518;
  --font-weight-760: 532;
  --font-weight-780: 546;
  --font-weight-800: 560;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--font-size-16);
  font-weight: var(--font-weight-normal);
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgb(15 118 110 / 34%);
  outline-offset: 3px;
}

h1,
h2,
h3,
p,
li,
td,
th,
code {
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: var(--font-size-h1);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: var(--font-size-h2);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: var(--font-size-21);
  line-height: 1.2;
  letter-spacing: 0;
}

p {
  margin-bottom: 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

strong,
b,
th,
h1,
h2,
h3 {
  font-weight: var(--font-weight-strong);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 12px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid rgb(255 255 255 / 12%);
  background: rgb(23 29 33 / 92%);
  color: var(--white);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  font-weight: var(--font-weight-780);
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  background: transparent;
  object-fit: contain;
}

.brand-text {
  white-space: nowrap;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 28px);
  color: rgb(255 255 255 / 76%);
  font-size: var(--font-size-14);
}

.topnav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.topnav a:hover,
.topnav a:focus-visible,
.topnav a[aria-current="page"] {
  color: var(--white);
}

.topbar-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
}

.topbar-signin[hidden],
.topbar-account[hidden],
.topbar-account-menu[hidden] {
  display: none !important;
}

.topbar-signin,
.topbar-account-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 8px;
  background: rgb(255 255 255 / 8%);
  color: var(--white);
  font-size: var(--font-size-13);
  font-weight: var(--font-weight-760);
  text-decoration: none;
}

.topbar-signin {
  padding: 0 14px;
  white-space: nowrap;
}

.topbar-account {
  position: relative;
}

.topbar-account-toggle {
  gap: 9px;
  min-width: 156px;
  max-width: 232px;
  padding: 5px 10px 5px 6px;
  cursor: pointer;
}

.topbar-signin:hover,
.topbar-signin:focus-visible,
.topbar-account-toggle:hover,
.topbar-account-toggle:focus-visible {
  border-color: rgb(255 255 255 / 34%);
  background: rgb(255 255 255 / 13%);
}

.topbar-account-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--white);
  color: var(--teal-dark);
  font-size: var(--font-size-11);
  font-weight: var(--font-weight-800);
}

.topbar-account-label {
  display: grid;
  min-width: 0;
  text-align: left;
}

.topbar-account-label strong,
.topbar-account-label span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-account-label strong {
  color: var(--white);
  font-size: 12px;
  line-height: 1.1;
}

.topbar-account-label span {
  max-width: 152px;
  color: rgb(255 255 255 / 68%);
  font-size: var(--font-size-11);
  line-height: 1.2;
}

.topbar-account-label .topbar-wallet { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; margin-top: 3px; font-variant-numeric: tabular-nums; }
.topbar-wallet [data-header-wallet-balance] { font-size: 11px; line-height: 1.3; white-space: normal; overflow-wrap: anywhere; }
.topbar-wallet small { font-size: 9px; font-weight: 500; }

.topbar-account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 70;
  display: grid;
  width: 218px;
  padding: 6px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 8px;
  background: rgb(23 29 33 / 98%);
  box-shadow: var(--shadow-strong);
}

.topbar-account-menu a,
.topbar-account-menu button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: rgb(255 255 255 / 82%);
  font: inherit;
  font-size: var(--font-size-13);
  font-weight: var(--font-weight-strong);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.topbar-account-menu a:hover,
.topbar-account-menu a:focus-visible,
.topbar-account-menu button:hover,
.topbar-account-menu button:focus-visible {
  background: rgb(255 255 255 / 10%);
  color: var(--white);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  gap: 4px;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 8px;
  background: rgb(255 255 255 / 9%);
  color: var(--white);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.shell {
  display: grid;
  grid-template-columns: minmax(210px, 248px) minmax(0, 1fr);
  min-height: calc(100svh - 68px);
}

.page-shell {
  background:
    linear-gradient(90deg, var(--surface-2) 0, var(--surface-2) 248px, transparent 248px),
    var(--paper);
}

.sidebar {
  position: sticky;
  top: 68px;
  align-self: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: calc(100svh - 68px);
  padding: 28px 20px;
  border-right: 1px solid var(--line);
  background: var(--surface-2);
}

.sidebar nav {
  display: grid;
  gap: 8px;
}

.sidebar a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: var(--font-size-14);
  font-weight: var(--font-weight-680);
  text-decoration: none;
}

.sidebar a:hover,
.sidebar a:focus-visible {
  background: rgb(15 118 110 / 10%);
  color: var(--teal-dark);
}

.sidebar a[aria-current="page"] {
  background: var(--coal);
  color: var(--white);
}

.sidebar-page-link {
  color: var(--ink);
}

.sidebar-divider {
  display: block;
  height: 1px;
  margin: 8px 0;
  background: var(--line);
}

.sidebar-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgb(15 118 110 / 20%);
  border-radius: 8px;
  background: rgb(255 255 255 / 64%);
  color: var(--muted);
  font-size: var(--font-size-13);
}

.status-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgb(15 118 110 / 12%);
}

.status-dot-muted {
  background: var(--gold);
  box-shadow: 0 0 0 5px rgb(183 130 52 / 14%);
}

.content {
  min-width: 0;
}

.content-page {
  padding: clamp(28px, 5vw, 64px);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(740px, 76svh);
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(18 24 28 / 94%) 0%, rgb(18 24 28 / 76%) 43%, rgb(18 24 28 / 22%) 82%),
    linear-gradient(0deg, rgb(18 24 28 / 18%), rgb(18 24 28 / 10%));
}

.hero-content {
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 96px);
  padding: 72px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: var(--font-size-12);
  font-weight: var(--font-weight-800);
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgb(255 255 255 / 86%);
  font-size: var(--font-size-copy-23);
}

.page-copy {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: var(--font-size-copy-22);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  max-width: 100%;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: var(--font-weight-740);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  color: var(--white);
  background: var(--teal);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--teal-dark);
}

.button-secondary {
  color: var(--white);
  border-color: rgb(255 255 255 / 42%);
  background: rgb(255 255 255 / 12%);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgb(255 255 255 / 18%);
}

.section {
  padding: clamp(48px, 8vw, 96px) clamp(18px, 4vw, 56px);
}

.section-light {
  background: var(--paper);
}

.section-accent {
  color: var(--white);
  background:
    linear-gradient(135deg, rgb(15 118 110 / 16%), transparent 34%),
    var(--coal);
}

.section-console {
  color: var(--white);
  background: var(--coal-2);
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.two-column,
.console-layout,
.access-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.copy-stack {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: var(--font-size-18);
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 26px;
}

.section-copy {
  max-width: 520px;
  margin-top: 18px;
  color: rgb(255 255 255 / 72%);
  font-size: var(--font-size-18);
}

.feature-grid,
.split-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-card,
.panel-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feature-card:nth-child(2),
.panel-card:nth-child(2) {
  border-top-color: var(--teal);
}

.feature-card:nth-child(3),
.panel-card:nth-child(3) {
  border-top-color: var(--rust);
}

.feature-card p,
.panel-card p {
  color: var(--muted);
}

.pipeline-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 8px;
  background: rgb(255 255 255 / 7%);
  box-shadow: var(--shadow-strong);
}

.pipeline-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0 14px;
  padding: 16px;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 8px;
  background: rgb(255 255 255 / 8%);
}

.pipeline-step span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--coal);
  font-weight: var(--font-weight-800);
}

.pipeline-step strong {
  color: var(--white);
  font-size: var(--font-size-18);
}

.pipeline-step p {
  color: rgb(255 255 255 / 68%);
}

.pipeline-step.is-muted span {
  background: rgb(255 255 255 / 20%);
  color: var(--white);
}

.status-list,
.status-board {
  display: grid;
  gap: 10px;
}

.status-list div,
.status-board div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 14px 16px;
  border-radius: 8px;
}

.status-list div {
  border: 1px solid rgb(255 255 255 / 18%);
  background: rgb(255 255 255 / 7%);
}

.status-list span {
  color: rgb(255 255 255 / 68%);
}

.status-list strong {
  color: var(--white);
  text-align: right;
}

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

.status-board div {
  border: 1px solid var(--line);
  background: var(--surface);
}

.status-board span {
  color: var(--muted);
}

.status-board strong {
  color: var(--teal-dark);
  text-align: right;
}

.page-hero {
  width: min(980px, 100%);
  margin: 0 auto clamp(36px, 6vw, 70px);
  padding: clamp(34px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgb(15 118 110 / 12%), rgb(183 130 52 / 10) 42%, transparent 70%),
    var(--surface);
  box-shadow: var(--shadow);
}

.page-hero.compact h1 {
  max-width: 880px;
  font-size: var(--font-size-page-hero);
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 18px;
  color: var(--muted);
  font-size: var(--font-size-18);
}

.doc-section {
  width: min(980px, 100%);
  margin: 0 auto clamp(32px, 5vw, 58px);
}

.doc-section > h2 {
  margin-bottom: 18px;
  font-size: var(--font-size-doc-heading);
}

.doc-section > p {
  color: var(--muted);
  font-size: var(--font-size-18);
}

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

.doc-grid article,
.endpoint-list article,
.auth-context {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.doc-grid p,
.endpoint-list p,
.auth-context p,
.auth-context li {
  color: var(--muted);
}

.principle-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principle-list li {
  padding: 18px 20px;
  border-left: 4px solid var(--teal);
  border-radius: 0 8px 8px 0;
  background: var(--surface);
  color: var(--muted);
  box-shadow: var(--shadow);
}

.principle-list strong {
  color: var(--ink);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--ink);
  font-size: var(--font-size-13);
  text-transform: uppercase;
}

td {
  color: var(--muted);
}

tr:last-child td {
  border-bottom: 0;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 2px 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.timeline span {
  grid-row: span 2;
  color: var(--gold);
  font-weight: var(--font-weight-800);
  text-transform: uppercase;
}

.timeline strong {
  font-size: var(--font-size-18);
}

.timeline p {
  color: var(--muted);
}

.endpoint-list {
  display: grid;
  gap: 12px;
}

.endpoint-list code {
  display: inline-flex;
  max-width: 100%;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: var(--font-size-15);
  font-weight: var(--font-weight-800);
}

.inline-note {
  margin-top: 16px;
  color: var(--muted);
}

.inline-note a {
  color: var(--teal-dark);
  font-weight: var(--font-weight-760);
}

.code-panel {
  overflow-x: auto;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: var(--coal);
  box-shadow: var(--shadow-strong);
}

.code-panel pre {
  margin: 0;
  padding: 22px;
}

.code-panel code {
  color: rgb(255 255 255 / 84%);
  font-size: var(--font-size-14);
  line-height: 1.6;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.8fr);
  gap: clamp(18px, 4vw, 42px);
  width: min(980px, 100%);
  margin: 0 auto clamp(36px, 6vw, 70px);
  align-items: start;
}

.auth-layout-single {
  grid-template-columns: minmax(300px, 520px) minmax(280px, 0.9fr);
}

.auth-card {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-card-google {
  display: grid;
  align-content: start;
  min-height: 320px;
}

.auth-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.auth-card h2,
.auth-context h2 {
  font-size: var(--font-size-card-heading);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgb(183 130 52 / 14%);
  color: #7a531f;
  font-size: var(--font-size-12);
  font-weight: var(--font-weight-800);
}

.provider-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.provider-button {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: var(--font-weight-760);
  cursor: pointer;
}

.provider-button-google {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 12px;
  min-height: 54px;
  margin-top: 4px;
  background: var(--white);
}

.google-letter {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #1a73e8;
  font-size: var(--font-size-16);
  font-weight: var(--font-weight-800);
  line-height: 1;
}

.provider-button:hover,
.provider-button:focus-visible {
  border-color: rgb(15 118 110 / 42%);
  background: rgb(15 118 110 / 7%);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 18px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.auth-tab {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: var(--font-weight-760);
  cursor: pointer;
}

.auth-tab.is-active {
  background: var(--surface);
  color: var(--teal-dark);
  box-shadow: 0 2px 10px rgb(23 32 38 / 9%);
}

.auth-form {
  display: none;
  gap: 10px;
}

.auth-form.is-active {
  display: grid;
}

.auth-form label {
  color: var(--ink);
  font-size: var(--font-size-14);
  font-weight: var(--font-weight-760);
}

.auth-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.auth-form input::placeholder {
  color: var(--soft);
}

.auth-form .button {
  width: 100%;
  margin-top: 6px;
}

.auth-message {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgb(183 130 52 / 28%);
  border-radius: 8px;
  background: rgb(183 130 52 / 10%);
  color: #6e4a1d;
  font-size: var(--font-size-14);
}

.auth-compact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: space-between;
  margin-top: 18px;
  color: var(--muted);
  font-size: var(--font-size-13);
}

.auth-compact-links a {
  color: var(--teal-dark);
  font-weight: var(--font-weight-760);
  text-decoration: none;
}

.auth-compact-links a:hover,
.auth-compact-links a:focus-visible {
  text-decoration: underline;
}

.auth-context ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 20px;
}

.account-shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100svh;
  background: var(--white);
  color: var(--ink);
}

.account-sidebar {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 26px;
  height: 100svh;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: var(--white);
}

.account-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: var(--font-size-21);
  font-weight: var(--font-weight-760);
  text-decoration: none;
}

.account-site-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal-dark);
  font-size: var(--font-size-13);
  font-weight: var(--font-weight-760);
  text-decoration: none;
}

.account-site-link:hover,
.account-site-link:focus-visible {
  border-color: rgb(15 118 110 / 28%);
  background: rgb(15 118 110 / 7%);
}

.account-sidebar nav {
  display: grid;
  align-content: start;
  gap: 5px;
}

.account-sidebar nav a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: var(--font-weight-strong);
  text-decoration: none;
}

.account-sidebar nav a:hover,
.account-sidebar nav a:focus-visible,
.account-sidebar nav a[aria-current="page"] {
  background: rgb(15 118 110 / 8%);
  color: var(--teal-dark);
}

.account-logout,
.link-button {
  border: 0;
  background: transparent;
  color: var(--rust);
  font: inherit;
  font-weight: var(--font-weight-760);
  cursor: pointer;
}

.account-logout {
  justify-self: start;
  min-height: 34px;
  padding: 0 12px;
  color: var(--muted);
}

.account-main {
  min-width: 0;
  padding: 28px clamp(18px, 4vw, 54px) 54px;
}

.account-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.account-topbar h1 {
  font-size: var(--font-size-page-hero);
}

.account-view-summary {
  max-width: 620px;
  margin-top: 10px;
  color: var(--muted);
  font-size: var(--font-size-14);
}

.account-topbar-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  min-width: 0;
}

.account-context {
  position: relative;
  min-width: 0;
}

.account-context-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  max-width: 320px;
  padding: 5px 9px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.account-context-toggle:hover,
.account-context-toggle:focus-visible,
.account-context-toggle[aria-expanded="true"] {
  border-color: rgb(15 118 110 / 30%);
  background: rgb(15 118 110 / 6%);
}

.account-context-avatar {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 7px;
  border: 1px solid rgb(49 81 125 / 18%);
  border-radius: 50%;
  background: rgb(49 81 125 / 7%);
  object-fit: contain;
}

.account-context-identity {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.account-context-identity strong,
.account-context-identity span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-context-identity strong {
  color: var(--ink);
  font-size: var(--font-size-14);
  font-weight: var(--font-weight-760);
}

.account-context-identity span {
  max-width: 210px;
  color: var(--muted);
  font-size: var(--font-size-12);
}

.account-context-caret {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.58;
}

.account-context-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  display: grid;
  min-width: 226px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-strong);
}

.account-context-menu[hidden] {
  display: none !important;
}

.account-context-menu a,
.account-context-menu button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: var(--font-size-13);
  font-weight: var(--font-weight-760);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.account-context-menu a:hover,
.account-context-menu a:focus-visible,
.account-context-menu a[aria-current="page"],
.account-context-menu button:hover,
.account-context-menu button:focus-visible {
  background: rgb(15 118 110 / 8%);
  color: var(--teal-dark);
}

.account-context-menu button {
  color: var(--rust);
}

.account-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
  flex-wrap: wrap;
}

.account-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--muted);
  font: inherit;
  font-size: var(--font-size-13);
  font-weight: var(--font-weight-760);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.account-action-link:hover,
.account-action-link:focus-visible,
.account-action-link[aria-current="page"] {
  border-color: rgb(15 118 110 / 28%);
  background: rgb(15 118 110 / 7%);
  color: var(--teal-dark);
}

.account-action-logout {
  color: var(--rust);
}

.account-user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.account-user strong,
.account-user span {
  display: block;
}

.account-user span:not(.account-avatar) {
  color: var(--muted);
  font-size: var(--font-size-13);
}

.account-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgb(49 81 125 / 22%);
  border-radius: 50%;
  background: rgb(49 81 125 / 9%);
  color: var(--blue);
  font-weight: var(--font-weight-800);
}

.account-status {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgb(15 118 110 / 20%);
  border-radius: 8px;
  background: rgb(15 118 110 / 7%);
  color: var(--teal-dark);
  font-size: var(--font-size-14);
}

.account-view[hidden] {
  display: none !important;
}

.account-view.is-active {
  animation: account-view-in 140ms ease-out;
}

@keyframes account-view-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.account-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.account-metrics article {
  min-height: 138px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.account-metrics span,
.account-panel-head p,
.account-profile dt {
  color: var(--muted);
  font-size: var(--font-size-13);
}

.account-metrics strong {
  display: block;
  margin-top: 14px;
  color: var(--ink);
  font-size: var(--font-size-30);
  line-height: 1;
}

.account-metrics p {
  margin-top: 12px;
  color: var(--muted);
}

.usage-meter {
  height: 6px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.usage-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.account-panel {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.account-shell.is-tabbed .account-panel {
  padding-top: 8px;
  border-top: 0;
}

.account-shell.is-tabbed .account-metrics {
  margin-bottom: 0;
}

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

.usage-summary-grid article {
  min-width: 0;
  min-height: 118px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.usage-summary-grid span,
.usage-chart-head p,
.usage-chart-meta span,
.usage-chart-value span {
  color: var(--muted);
  font-size: var(--font-size-13);
}

.usage-summary-grid strong {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-size: var(--font-size-26);
  line-height: 1;
}

.usage-summary-grid p {
  margin-top: 10px;
  color: var(--muted);
  font-size: var(--font-size-13);
}

.usage-chart-panel {
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.usage-chart-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.usage-chart-head h3 {
  margin-bottom: 4px;
  font-size: var(--font-size-18);
}

.usage-chart {
  display: grid;
  gap: 10px;
}

.usage-chart-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) minmax(180px, 1fr) minmax(82px, auto);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.usage-chart-meta {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.usage-chart-meta strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: var(--font-size-13);
  font-weight: var(--font-weight-760);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.usage-chart-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.usage-chart-bar span {
  display: block;
  width: var(--bar-size, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.usage-chart-row.is-error .usage-chart-bar span {
  background: var(--rust);
}

.usage-chart-value {
  display: grid;
  gap: 1px;
  justify-items: end;
  color: var(--ink);
  font-size: var(--font-size-13);
}

.usage-chart-value strong {
  font-weight: var(--font-weight-800);
}

.account-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.account-panel h2 {
  font-size: var(--font-size-card-heading);
}

.api-key-create-form {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: min(100%, 390px);
}

.api-key-create-form input,
.api-secret-row input,
.api-console-form input,
.api-console-form textarea {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: var(--font-size-14);
}

.api-key-create-form input {
  min-width: 180px;
}

.api-secret-box {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgb(15 118 110 / 24%);
  border-radius: 8px;
  background: rgb(15 118 110 / 7%);
}

.api-secret-box[hidden],
.api-console-result[hidden] {
  display: none !important;
}

.api-secret-box strong {
  display: block;
  color: var(--teal-dark);
  font-size: var(--font-size-14);
}

.api-secret-box p {
  margin-top: 3px;
  color: var(--muted);
  font-size: var(--font-size-13);
}

.api-secret-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}

.api-secret-row input,
.api-console-form input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.api-console-form {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.api-console-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: var(--font-size-13);
  font-weight: var(--font-weight-760);
}

.api-console-form textarea {
  min-height: 116px;
  padding: 12px;
  resize: vertical;
  line-height: 1.5;
}

.api-console-form .button {
  justify-self: start;
}

.api-console-result {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.api-console-result-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: var(--font-size-13);
}

.api-console-result-head span {
  color: var(--teal-dark);
  font-weight: var(--font-weight-760);
}

.api-console-result pre {
  max-height: 360px;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  color: var(--ink);
  font: inherit;
  line-height: 1.55;
}

.api-console-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.api-console-sources span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--muted);
  font-size: var(--font-size-12);
}

.account-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  box-shadow: none;
}

.account-table {
  min-width: 820px;
}

.account-table code {
  color: var(--blue);
  font-size: var(--font-size-12);
}

.account-status-chip {
  color: var(--teal-dark);
  font-weight: var(--font-weight-760);
}

.account-ok {
  color: var(--teal-dark);
  font-weight: var(--font-weight-760);
}

.account-action-message {
  margin-top: 12px;
}

.account-profile {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
}

.account-profile div {
  min-width: 0;
}

.account-profile dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: var(--font-size-16);
}

.button:disabled {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--soft);
  cursor: not-allowed;
}

.billing-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.billing-pill,
.billing-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgb(15 118 110 / 24%);
  border-radius: 8px;
  background: rgb(15 118 110 / 8%);
  color: var(--teal-dark);
  font-size: var(--font-size-12);
  font-weight: var(--font-weight-800);
  text-transform: uppercase;
}

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

.billing-summary-grid article,
.billing-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.billing-summary-grid span,
.billing-card p,
.billing-plan-row span,
.billing-detail-list dt,
.billing-method-empty p,
.billing-checklist li,
.billing-rule-list span,
.billing-note {
  color: var(--muted);
  font-size: var(--font-size-13);
}

.billing-summary-grid strong {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-size: var(--font-size-22);
  line-height: 1.12;
}

.billing-summary-grid p {
  margin-top: 10px;
}

.billing-wallet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 12px;
  margin-bottom: 12px;
}

.billing-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.billing-card h3 {
  margin-bottom: 6px;
  font-size: var(--font-size-18);
}

.billing-topup-card {
  display: grid;
  align-content: start;
}

.billing-topup-amount {
  display: grid;
  gap: 4px;
  margin: 6px 0 14px;
  padding: 18px;
  border: 1px solid rgb(15 118 110 / 18%);
  border-radius: 8px;
  background: linear-gradient(135deg, rgb(15 118 110 / 9%), rgb(49 81 125 / 6%));
}

.billing-topup-amount strong {
  color: var(--ink);
  font-size: clamp(var(--font-size-30), 5vw, var(--font-size-44));
  line-height: 1;
}

.billing-topup-amount span {
  color: var(--teal-dark);
  font-size: var(--font-size-13);
  font-weight: var(--font-weight-760);
}

.billing-note {
  margin: 0;
}

.billing-plan-list {
  display: grid;
  gap: 8px;
}

.billing-plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.billing-plan-row.is-selected {
  border-color: rgb(15 118 110 / 24%);
  background: rgb(15 118 110 / 7%);
}

.billing-plan-row strong,
.billing-method-empty strong {
  display: block;
  color: var(--ink);
  font-size: var(--font-size-14);
}

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

.billing-rule-list {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.billing-rule-list li {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.billing-rule-list strong {
  color: var(--ink);
  font-size: var(--font-size-14);
}

.billing-method-empty {
  min-height: 132px;
  padding: 16px;
  border: 1px dashed rgb(49 81 125 / 28%);
  border-radius: 8px;
  background: rgb(49 81 125 / 6%);
}

.billing-method-empty p {
  margin-top: 8px;
}

.billing-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.billing-detail-list div {
  min-width: 0;
}

.billing-detail-list dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: var(--font-size-14);
}

.billing-checklist {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.billing-history {
  margin-top: 0;
}

.billing-table {
  min-width: 640px;
}

.account-doc-grid,
.account-api-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.account-note-list,
.account-code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.account-doc-card,
.account-api-card,
.account-note-list article,
.account-code-grid article {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.account-doc-card span,
.account-api-card span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: var(--font-size-12);
  font-weight: var(--font-weight-800);
  text-transform: uppercase;
}

.account-doc-card h3,
.account-note-list h3,
.account-code-grid h3 {
  margin-bottom: 8px;
  font-size: var(--font-size-18);
}

.account-doc-card p,
.account-api-card p,
.account-note-list p,
.account-note-list li {
  color: var(--muted);
  font-size: var(--font-size-14);
}

.account-doc-card a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 14px;
  color: var(--teal-dark);
  font-weight: var(--font-weight-760);
  text-decoration: none;
}

.account-doc-card a:hover,
.account-doc-card a:focus-visible {
  text-decoration: underline;
}

.account-note-list ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.account-note-list code {
  color: var(--blue);
  font-size: var(--font-size-13);
}

.account-api-card code {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: var(--font-size-15);
  font-weight: var(--font-weight-800);
}

.account-code-grid pre {
  margin: 0;
  max-height: 360px;
  overflow: auto;
  padding: 16px;
  border-radius: 8px;
  background: var(--coal);
}

.account-code-grid code {
  color: rgb(255 255 255 / 84%);
  font-size: var(--font-size-13);
  line-height: 1.6;
  white-space: pre;
}

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

.store-entry-panel {
  margin-bottom: 16px;
  padding-top: 0;
}

.store-shell .account-topbar {
  align-items: flex-end;
}

.store-dashboard-metrics {
  margin-bottom: 18px;
}

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

.store-card {
  display: grid;
  align-content: start;
  min-height: 168px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
}

.store-card:hover,
.store-card:focus-visible {
  border-color: rgb(15 118 110 / 30%);
  background: rgb(15 118 110 / 6%);
}

.store-card-primary {
  border-color: rgb(15 118 110 / 24%);
  background: linear-gradient(135deg, rgb(15 118 110 / 8%), rgb(49 81 125 / 5%));
}

.store-card span,
.store-intake-grid span,
.store-product-score span {
  color: var(--muted);
  font-size: var(--font-size-12);
  font-weight: var(--font-weight-800);
  letter-spacing: 0;
  text-transform: uppercase;
}

.store-card strong {
  display: block;
  margin-top: 10px;
  font-size: var(--font-size-24);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.store-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: var(--font-size-14);
  line-height: 1.45;
}

.store-file-console {
  display: grid;
  gap: 14px;
  padding: 20px 0 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.store-file-console-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.store-file-console-head h2 {
  font-size: var(--font-size-card-heading);
}

.store-file-console-head p,
.store-quota-meta,
.store-file-meta,
.store-file-size span {
  color: var(--muted);
  font-size: var(--font-size-13);
}

.store-file-console-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.store-shell .button-secondary {
  border-color: rgb(15 118 110 / 28%);
  background: rgb(15 118 110 / 7%);
  color: var(--teal-dark);
}

.store-shell .button-secondary:hover,
.store-shell .button-secondary:focus-visible {
  background: rgb(15 118 110 / 12%);
}

.store-quota-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.store-quota-head,
.store-quota-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.store-quota-head span {
  color: var(--muted);
  font-size: var(--font-size-13);
  font-weight: var(--font-weight-760);
}

.store-quota-head strong {
  color: var(--ink);
  font-size: var(--font-size-22);
  line-height: 1;
}

.store-quota-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.store-quota-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  transition: width 160ms ease;
}

.store-product-search-panel {
  display: grid;
  gap: 12px;
  margin: 22px 0 18px;
}

.store-upload-panel {
  padding-top: 18px;
}

.store-upload-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.store-upload-form-simple {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  padding: 14px;
}

.store-upload-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: var(--font-size-13);
  font-weight: var(--font-weight-760);
}

.store-upload-form input[type="text"],
.store-upload-form input[type="url"],
.store-upload-form input[type="password"],
.store-upload-form input[type="file"],
.store-upload-form textarea {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: var(--font-size-14);
}

.store-upload-form input[type="file"] {
  padding: 9px 12px;
  cursor: pointer;
}

.store-upload-form textarea {
  min-height: 168px;
  padding: 12px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  line-height: 1.5;
}

.store-upload-content {
  grid-column: 1 / -1;
}

.store-upload-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.store-upload-actions-compact {
  grid-column: auto;
  align-self: end;
  min-height: 40px;
}

.store-upload-check {
  display: inline-flex !important;
  grid-auto-flow: column;
  align-items: center;
  justify-content: start;
  width: fit-content;
}

.store-upload-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--teal);
}

.store-upload-message {
  grid-column: 1 / -1;
  min-height: 24px;
  color: var(--muted);
  font-size: var(--font-size-13);
}

.store-upload-advanced {
  grid-column: 1 / -1;
  padding-top: 2px;
}

.store-upload-advanced summary {
  width: fit-content;
  min-height: 32px;
  color: var(--teal-dark);
  font-size: var(--font-size-13);
  font-weight: var(--font-weight-760);
  cursor: pointer;
}

.store-upload-advanced-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.store-upload-message[data-tone="ok"] {
  color: var(--teal-dark);
  font-weight: var(--font-weight-760);
}

.store-upload-message[data-tone="error"] {
  color: var(--rust);
  font-weight: var(--font-weight-760);
}

.store-panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.store-product-search {
  position: relative;
  display: block;
}

.store-product-search::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 18px;
  width: 15px;
  height: 15px;
  border: 2px solid var(--teal-dark);
  border-radius: 999px;
  transform: translateY(-58%);
}

.store-product-search::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 32px;
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: var(--teal-dark);
  transform: translateY(4px) rotate(42deg);
}

.store-product-search input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px 0 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 12px 30px rgb(23 32 38 / 6%);
  font: inherit;
  font-size: var(--font-size-15);
}

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

.store-intake-grid article {
  min-width: 0;
  min-height: 118px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.store-intake-grid strong {
  display: block;
  margin-top: 10px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: var(--font-size-18);
  line-height: 1.2;
}

.store-intake-grid p {
  margin-top: 8px;
  color: var(--muted);
  font-size: var(--font-size-13);
}

.store-product-list {
  display: grid;
  gap: 10px;
}

.store-product-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(96px, auto);
  gap: 16px;
  align-items: start;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.store-product-row h3 {
  margin-bottom: 10px;
  font-size: var(--font-size-18);
  line-height: 1.22;
}

.store-product-row p {
  color: var(--muted);
  font-size: var(--font-size-14);
}

.store-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.store-product-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  max-width: 100%;
  padding: 0 8px;
  border: 1px solid rgb(49 81 125 / 18%);
  border-radius: 8px;
  background: rgb(49 81 125 / 6%);
  color: var(--muted);
  font-size: var(--font-size-12);
  overflow-wrap: anywhere;
}

.store-product-codes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.store-product-codes div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.store-product-codes dt {
  color: var(--muted);
  font-size: var(--font-size-12);
  font-weight: var(--font-weight-800);
  text-transform: uppercase;
}

.store-product-codes dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: var(--font-size-12);
  overflow-wrap: anywhere;
}

.store-product-score {
  display: grid;
  justify-items: end;
  gap: 8px;
  color: var(--teal-dark);
}

.store-product-score strong {
  font-size: var(--font-size-22);
  line-height: 1;
}

.store-product-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.store-product-notice {
  grid-template-columns: 1fr;
  background: var(--surface);
}

.store-raw-list {
  margin-top: 4px;
}

.store-file-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) minmax(90px, auto);
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.store-file-row h3 {
  margin-bottom: 4px;
  font-size: var(--font-size-17);
  line-height: 1.22;
}

.store-file-row p {
  color: var(--muted);
  font-size: var(--font-size-14);
}

.store-file-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(15 118 110 / 22%);
  border-radius: 8px;
  background: rgb(15 118 110 / 7%);
  color: var(--teal-dark);
  font-size: var(--font-size-12);
  font-weight: var(--font-weight-800);
  text-transform: uppercase;
}

.store-file-main {
  min-width: 0;
}

.store-file-key {
  display: block;
  color: var(--muted);
  font-size: var(--font-size-12);
  overflow-wrap: anywhere;
}

.store-file-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.store-file-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  max-width: 100%;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.store-file-size {
  display: grid;
  justify-items: end;
  gap: 3px;
  color: var(--ink);
}

.store-file-size strong {
  font-size: var(--font-size-18);
  line-height: 1;
}

.store-file-row-notice {
  grid-template-columns: 1fr;
  background: var(--surface);
}

.store-raw-codes {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr) minmax(0, 0.8fr);
}

.admin-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100svh;
  background: var(--white);
  color: var(--ink);
}

.admin-body {
  overflow-x: hidden;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  height: 100svh;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: var(--white);
}

.admin-sidebar nav {
  display: grid;
  align-content: start;
  gap: 5px;
}

.admin-sidebar nav a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: var(--font-weight-strong);
  text-decoration: none;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a:focus-visible,
.admin-sidebar nav a[aria-current="page"] {
  background: rgb(15 118 110 / 8%);
  color: var(--teal-dark);
}

.admin-main {
  min-width: 0;
  padding: 28px clamp(18px, 3.8vw, 48px) 54px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.admin-topbar h1 {
  font-size: var(--font-size-page-hero);
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.admin-user strong,
.admin-user span {
  display: block;
}

.admin-user span:not(.account-avatar) {
  color: var(--muted);
  font-size: var(--font-size-13);
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.admin-metrics article {
  min-height: 126px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.admin-metrics span,
.admin-panel-head p,
.admin-detail-head p,
.admin-credit-form label {
  color: var(--muted);
  font-size: var(--font-size-13);
}

.admin-metrics strong {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-size: var(--font-size-30);
  line-height: 1;
}

.admin-metrics p {
  margin-top: 10px;
  color: var(--muted);
}

.admin-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: start;
  margin-bottom: 26px;
}

.admin-list-panel,
.admin-detail-panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.admin-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.admin-panel-head h2,
.admin-detail-head h2 {
  font-size: var(--font-size-card-heading);
}

.admin-search {
  flex: 0 1 260px;
}

.admin-search input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.admin-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.admin-filter,
.admin-secondary-button,
.admin-danger-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--muted);
  font: inherit;
  font-weight: var(--font-weight-760);
  cursor: pointer;
}

.admin-filter.is-active,
.admin-filter:hover,
.admin-filter:focus-visible {
  border-color: rgb(15 118 110 / 26%);
  background: rgb(15 118 110 / 8%);
  color: var(--teal-dark);
}

.admin-member-table {
  min-width: 980px;
}

.admin-member-table tr.is-selected td {
  background: rgb(15 118 110 / 5%);
}

.admin-member-button {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-member-button strong {
  font-size: var(--font-size-15);
}

.admin-member-button span {
  color: var(--muted);
  font-size: var(--font-size-13);
}

.admin-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: var(--font-size-12);
  font-weight: var(--font-weight-760);
}

.admin-status-active {
  border-color: rgb(15 118 110 / 24%);
  background: rgb(15 118 110 / 8%);
  color: var(--teal-dark);
}

.admin-status-watch {
  border-color: rgb(183 130 52 / 30%);
  background: rgb(183 130 52 / 12%);
  color: #725019;
}

.admin-status-suspended,
.account-status-bad {
  border-color: rgb(149 77 61 / 25%);
  background: rgb(149 77 61 / 10%);
  color: var(--rust);
}

.admin-detail-panel {
  position: sticky;
  top: 24px;
}

.admin-detail-head {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.admin-detail-head span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--teal-dark);
  font-size: var(--font-size-12);
  font-weight: var(--font-weight-800);
  text-transform: uppercase;
}

.admin-credit-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.admin-credit-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: var(--font-weight-760);
}

.admin-credit-form input,
.admin-credit-form textarea {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.admin-credit-form textarea {
  resize: vertical;
}

.admin-key-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.admin-danger-button {
  border-color: rgb(149 77 61 / 30%);
  color: var(--rust);
}

.admin-secondary-button:hover,
.admin-secondary-button:focus-visible {
  border-color: rgb(49 81 125 / 26%);
  background: rgb(49 81 125 / 8%);
  color: var(--blue);
}

.admin-danger-button:hover,
.admin-danger-button:focus-visible {
  background: rgb(149 77 61 / 8%);
}

.admin-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
}

.admin-lower-grid .account-panel {
  padding-top: 18px;
}

.admin-audit-table {
  min-width: 720px;
}

.directory-page {
  padding-bottom: clamp(34px, 6vw, 76px);
}

.directory-hero {
  margin-bottom: clamp(22px, 4vw, 36px);
}

.directory-panel {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.directory-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.directory-head h2 {
  font-size: var(--font-size-section-heading);
}

.directory-updated,
.directory-result-line {
  color: var(--muted);
  font-size: var(--font-size-14);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.metric-grid div {
  min-height: 74px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.metric-grid span {
  display: block;
  color: var(--muted);
  font-size: var(--font-size-13);
  font-weight: var(--font-weight-strong);
}

.metric-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: var(--font-size-30);
  line-height: 1;
}

.directory-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) repeat(3, minmax(150px, 0.7fr));
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.directory-toolbar label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: var(--font-size-13);
  font-weight: var(--font-weight-760);
}

.directory-toolbar input,
.directory-toolbar select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.directory-table-wrap {
  margin-top: 10px;
}

.directory-table {
  min-width: 1050px;
}

.directory-table th {
  white-space: nowrap;
}

.product-cell {
  display: grid;
  gap: 5px;
}

.product-title {
  color: var(--ink);
  font-weight: var(--font-weight-800);
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: var(--font-size-13);
}

.code-stack {
  display: grid;
  gap: 6px;
}

.code-line {
  display: grid;
  gap: 2px;
}

.code-line span {
  color: var(--soft);
  font-size: var(--font-size-11);
  font-weight: var(--font-weight-800);
  text-transform: uppercase;
}

.code-line code {
  color: var(--blue);
  font-size: var(--font-size-12);
  line-height: 1.35;
}

.coverage-row,
.quality-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--muted);
  font-size: var(--font-size-12);
  font-weight: var(--font-weight-780);
  white-space: nowrap;
}

.chip-on {
  border-color: rgb(15 118 110 / 25%);
  background: rgb(15 118 110 / 10%);
  color: var(--teal-dark);
}

.chip-off {
  border-color: rgb(149 77 61 / 25%);
  background: rgb(149 77 61 / 10%);
  color: var(--rust);
}

.chip-review {
  border-color: rgb(183 130 52 / 30%);
  background: rgb(183 130 52 / 12%);
  color: #725019;
}

.chip-status {
  border-color: rgb(49 81 125 / 24%);
  background: rgb(49 81 125 / 9%);
  color: var(--blue);
}

.raw-key {
  max-width: 260px;
  color: var(--muted);
  font-size: var(--font-size-12);
  line-height: 1.4;
}

.raw-directory {
  margin-top: clamp(28px, 5vw, 56px);
  padding-top: clamp(24px, 4vw, 42px);
  border-top: 1px solid var(--line);
}

.raw-directory-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.4fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 16px;
}

.raw-directory-head h2 {
  margin-bottom: 10px;
  font-size: var(--font-size-section-heading);
}

.raw-directory-head p:not(.eyebrow),
.raw-directory-updated,
.raw-directory-status,
.raw-directory-actions span {
  color: var(--muted);
  font-size: var(--font-size-14);
}

.raw-directory-updated {
  text-align: right;
}

.raw-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.raw-stat-grid div {
  min-height: 74px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.raw-stat-grid span {
  display: block;
  color: var(--muted);
  font-size: var(--font-size-13);
  font-weight: var(--font-weight-strong);
}

.raw-stat-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: var(--font-size-26);
  line-height: 1.08;
}

.raw-object-list {
  display: grid;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.raw-object-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  min-height: 86px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}

.raw-object-row:first-child {
  border-top: 0;
}

.raw-object-index {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgb(15 118 110 / 10%);
  color: var(--teal-dark);
  font-size: var(--font-size-12);
  font-weight: var(--font-weight-800);
}

.raw-object-content {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.raw-object-content h3 {
  margin-bottom: 0;
  font-size: var(--font-size-17);
}

.raw-object-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: var(--font-size-13);
}

.raw-object-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.raw-object-key {
  display: block;
  color: var(--blue);
  font-size: var(--font-size-12);
  line-height: 1.35;
}

.raw-directory-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.raw-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  background: var(--teal);
  color: var(--white);
  font: inherit;
  font-weight: var(--font-weight-780);
  cursor: pointer;
}

.raw-more-button:hover,
.raw-more-button:focus-visible {
  background: var(--teal-dark);
}

.raw-more-button:disabled {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--muted);
  cursor: not-allowed;
}

.empty-state {
  padding: 22px;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  padding: 22px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}

.footer-brand {
  display: inline-flex;
  margin-bottom: 4px;
  color: var(--ink);
  font-weight: var(--font-weight-800);
  text-decoration: none;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.site-footer a {
  color: var(--teal-dark);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

.error-page {
  display: grid;
  min-height: 100svh;
  align-items: center;
}

@media (max-width: 1000px) {
  .topnav {
    gap: 14px;
  }

  .shell,
  .page-shell {
    grid-template-columns: 1fr;
    background: var(--paper);
  }

  .menu-toggle {
    display: inline-grid;
  }

  .topnav {
    display: none;
  }

  .topbar-actions {
    margin-left: auto;
  }

  .sidebar {
    position: fixed;
    top: 76px;
    left: 16px;
    right: 16px;
    z-index: 35;
    min-height: 0;
    max-height: calc(100svh - 92px);
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-strong);
    opacity: 1;
    pointer-events: none;
    transform: translateY(-10px);
    visibility: hidden;
    transition: transform 160ms ease, visibility 0ms linear 160ms;
  }

  .sidebar.is-open {
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
    transition: transform 160ms ease;
  }

  .content-page {
    padding: clamp(22px, 5vw, 42px);
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: 72svh;
  }

  .hero-content {
    width: min(680px, calc(100% - 36px));
    margin: 0 auto;
    padding: 52px 0;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgb(18 24 28 / 92%) 0%, rgb(18 24 28 / 62%) 100%);
  }

  .two-column,
  .console-layout,
  .access-layout,
  .feature-grid,
  .split-cards,
  .doc-grid,
  .status-board,
    .auth-layout,
    .account-metrics,
    .account-profile,
    .billing-workspace,
    .billing-lower-grid,
    .billing-wallet-layout,
    .admin-metrics,
    .admin-workspace,
    .admin-lower-grid,
    .account-doc-grid,
    .account-api-layout,
    .account-note-list,
    .account-code-grid,
    .store-card-grid,
    .store-intake-grid,
    .store-upload-form,
    .store-upload-advanced-grid,
    .metric-grid,
    .directory-toolbar,
    .raw-directory-head,
    .raw-stat-grid {
    grid-template-columns: 1fr;
  }

  .account-shell {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .account-sidebar {
    position: static;
    grid-template-rows: auto auto auto;
    height: auto;
    gap: 14px;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-sidebar {
    position: static;
    grid-template-rows: auto auto;
    height: auto;
    gap: 14px;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .account-sidebar nav {
    display: flex;
    gap: 4px;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .admin-sidebar nav {
    display: flex;
    gap: 4px;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
  }

  .account-sidebar nav::-webkit-scrollbar {
    display: none;
  }

  .account-sidebar nav a {
    flex: 0 0 auto;
  }

  .admin-sidebar nav a {
    flex: 0 0 auto;
  }

  .account-logout {
    display: none;
  }

  .account-main {
    padding: 22px;
  }

  .admin-main {
    padding: 22px;
  }

  .account-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-topbar-right {
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
  }

  .account-context {
    width: min(100%, 360px);
  }

  .account-context-toggle {
    width: 100%;
  }

  .account-context-menu {
    right: auto;
    left: 0;
  }

  .admin-topbar,
  .admin-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-detail-panel {
    position: static;
  }

  .usage-chart-row {
    grid-template-columns: minmax(0, 1fr) minmax(150px, 0.9fr) auto;
  }

  .store-product-codes {
    grid-template-columns: 1fr;
  }

  .store-file-console-head,
  .store-quota-head,
  .store-quota-meta {
    align-items: stretch;
    flex-direction: column;
  }

  .store-file-console-actions {
    justify-content: flex-start;
  }

  .store-upload-form-simple {
    grid-template-columns: 1fr;
  }

  .store-upload-actions-compact {
    grid-column: 1 / -1;
  }

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

  .billing-summary-grid,
  .billing-detail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .directory-head,
  .raw-directory-head {
    align-items: start;
    flex-direction: column;
  }

  .raw-directory-updated {
    text-align: left;
  }

  .feature-card,
  .panel-card {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .topbar {
    min-height: 64px;
    gap: 12px;
    padding-inline: 14px;
  }

  .brand-text {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar-account-toggle {
    min-width: 0;
    padding: 5px 7px;
  }

  .topbar-account-label {
    display: grid;
  }

  .topbar-account-label > strong {
    display: none;
  }

  .topbar-signin {
    min-height: 36px;
    padding: 0 10px;
  }

  .topbar-account-menu {
    right: -54px;
    width: min(224px, calc(100vw - 28px));
  }

  .hero {
    min-height: 70svh;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .page-hero,
  .auth-card,
  .auth-context,
  .account-metrics article {
    padding: 20px;
  }

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

  .status-list div,
  .status-board div,
  .metric-grid div,
  .raw-stat-grid div,
  .site-footer,
  .timeline div {
    align-items: flex-start;
    flex-direction: column;
  }

  .timeline div {
    display: flex;
  }

  .status-list strong,
  .status-board strong {
    text-align: left;
  }

  .raw-object-row {
    grid-template-columns: 1fr;
  }

  .raw-directory-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .raw-more-button {
    width: 100%;
  }

  .account-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .billing-head-actions,
  .billing-card-head,
  .billing-plan-row {
    align-items: stretch;
    flex-direction: column;
  }

  .usage-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .usage-chart-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
  }

  .usage-chart-row:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .usage-chart-value {
    justify-items: start;
  }

  .api-key-create-form,
  .api-secret-row {
    grid-template-columns: 1fr;
    align-items: stretch;
    min-width: 0;
  }

  .api-key-create-form {
    display: grid;
  }

  .api-key-create-form .button,
  .api-secret-row .button,
  .api-console-form .button,
  .billing-card-actions .button,
  .billing-head-actions .button,
  .account-inline-actions .button {
    width: 100%;
  }

  .account-topbar-right {
    display: grid;
    gap: 14px;
  }

  .store-shell .account-topbar {
    align-items: stretch;
  }

  .store-product-row {
    grid-template-columns: 1fr;
  }

  .store-file-row {
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
  }

  .store-file-size {
    grid-column: 1 / -1;
    justify-items: start;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .store-product-score {
    justify-items: start;
  }

  .store-product-actions .button,
  .store-panel-actions .button,
  .store-upload-actions .button {
    width: 100%;
  }

  .store-upload-actions,
  .store-panel-actions,
  .store-file-console-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .store-upload-check {
    width: 100%;
  }

  .store-raw-codes {
    grid-template-columns: 1fr;
  }

  .account-context,
  .account-context-menu {
    width: 100%;
  }

  .account-context-identity span {
    max-width: 190px;
  }

  .usage-summary-grid {
    grid-template-columns: 1fr;
  }

  .billing-summary-grid,
  .billing-detail-list {
    grid-template-columns: 1fr;
  }

  .admin-list-panel,
  .admin-detail-panel,
  .admin-metrics article {
    padding: 20px;
  }

  .admin-key-actions {
    grid-template-columns: 1fr;
  }

  .admin-body .admin-sidebar nav {
    flex-wrap: wrap;
    overflow: visible;
  }

  .admin-body .account-table,
  .admin-body .admin-member-table,
  .admin-body .admin-audit-table {
    min-width: 100%;
    table-layout: fixed;
  }

  .admin-body th,
  .admin-body td {
    padding: 12px 8px;
    overflow-wrap: anywhere;
  }
}

.directory-stream-body {
  min-height: 100svh;
  background: #f7f8f6;
}

.stream-menu {
  display: none;
}

.stream-page {
  min-height: calc(100svh - 68px);
  padding: clamp(24px, 5vw, 58px);
}

.stream-shell {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.stream-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.38fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: end;
  margin-bottom: 22px;
}

.stream-hero h1 {
  margin-bottom: 12px;
  font-size: var(--font-size-stream-hero);
  line-height: 0.96;
}

.stream-hero p {
  max-width: 620px;
  color: var(--muted);
  font-size: var(--font-size-16);
}

.stream-source {
  justify-self: end;
  max-width: 340px;
  text-align: right;
  font-size: var(--font-size-13) !important;
  line-height: 1.45;
}

.stream-search {
  position: relative;
  display: block;
  margin-bottom: 16px;
}

.stream-search::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 20px;
  width: 15px;
  height: 15px;
  border: 2px solid var(--teal-dark);
  border-radius: 999px;
  transform: translateY(-58%);
}

.stream-search::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 34px;
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: var(--teal-dark);
  transform: translateY(4px) rotate(42deg);
}

.stream-search input {
  width: 100%;
  min-height: 58px;
  padding: 0 20px 0 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 14px 34px rgb(23 32 38 / 7%);
  font: inherit;
  font-size: var(--font-size-16);
}

.stream-search input::placeholder {
  color: var(--soft);
}

.stream-stat-grid {
  margin-bottom: 12px;
}

.stream-stat-grid div {
  background: #ffffff;
}

.stream-status-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: var(--font-size-14);
}

.stream-list {
  margin-top: 0;
  border-color: #dfe4dd;
  background: #ffffff;
  box-shadow: 0 18px 46px rgb(23 32 38 / 8%);
}

.stream-list .raw-object-row {
  grid-template-columns: 64px minmax(0, 1fr);
  min-height: 94px;
  padding: 18px 20px;
  background: #ffffff;
}

.stream-list .raw-object-row:hover {
  background: #fbfcfa;
}

.stream-list .raw-object-index {
  width: 42px;
  height: 42px;
}

.stream-list .raw-object-content h3 {
  font-size: var(--font-size-18);
}

.stream-list .raw-object-content p {
  color: var(--muted);
  font-size: var(--font-size-14);
}

.stream-list .raw-object-key {
  overflow-wrap: anywhere;
}

.raw-object-row-notice .raw-object-index {
  background: var(--surface-2);
  color: var(--soft);
}

.stream-actions {
  justify-content: space-between;
  padding-bottom: clamp(8px, 3vw, 32px);
}

@media (max-width: 1000px) {
  .stream-menu {
    position: fixed;
    top: 76px;
    left: 16px;
    right: 16px;
    z-index: 35;
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow-strong);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    visibility: hidden;
    transition: transform 160ms ease, opacity 160ms ease, visibility 0ms linear 160ms;
  }

  .stream-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .stream-menu a {
    min-height: 42px;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--muted);
    font-size: var(--font-size-14);
    font-weight: var(--font-weight-760);
    text-decoration: none;
  }

  .stream-menu a:hover,
  .stream-menu a:focus-visible,
  .stream-menu a[aria-current="page"] {
    background: var(--coal);
    color: var(--white);
  }
}

@media (max-width: 820px) {
  .stream-page {
    padding: 28px 18px 42px;
  }

  .stream-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .stream-source {
    justify-self: start;
    text-align: left;
  }

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

@media (max-width: 560px) {
  .stream-page {
    padding: 22px 12px 34px;
  }

  .stream-hero h1 {
    font-size: var(--font-size-44);
  }

  .stream-search input {
    min-height: 54px;
    font-size: var(--font-size-15);
  }

  .stream-stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stream-stat-grid div {
    min-height: 68px;
    padding: 12px;
  }

  .stream-stat-grid strong {
    font-size: var(--font-size-22);
  }

  .stream-list .raw-object-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
  }

  .stream-actions {
    align-items: stretch;
    flex-direction: column;
  }
}
