:root {
  --ink: #111927;
  --muted: #65707c;
  --green: #315e4b;
  --green-dark: #244838;
  --green-soft: #eaf1ed;
  --line: #dde4e0;
  --paper: #fbfaf8;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(42, 70, 58, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 85% 15%, rgba(49, 94, 75, 0.08), transparent 26rem),
    linear-gradient(180deg, #fffdfa 0%, #fbfaf8 46%, #f8faf8 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    repeating-radial-gradient(ellipse at 78% 24%, transparent 0 17px, rgba(49, 94, 75, 0.08) 18px 19px),
    repeating-radial-gradient(ellipse at 20% 82%, transparent 0 22px, rgba(49, 94, 75, 0.04) 23px 24px);
  mask-image: linear-gradient(90deg, transparent, #000 35%, #000 90%);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 0 clamp(28px, 5vw, 78px);
  border-bottom: 1px solid rgba(17, 25, 39, 0.1);
  background: rgba(255, 253, 250, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 36px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  color: var(--green);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-mark path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.4;
}

.brand-mark circle {
  fill: var(--green);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 46px);
  font-size: 15px;
  font-weight: 700;
}

.main-nav a:not(.nav-button):hover {
  color: var(--green);
}

.nav-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 9px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.nav-button {
  min-height: 46px;
  padding: 0 22px;
}

.nav-button,
.button.primary {
  color: white;
  background: linear-gradient(145deg, #3b6f58, #244838);
  box-shadow: 0 14px 28px rgba(36, 72, 56, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.button.secondary {
  color: #47515d;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #cfd7d2;
}

.nav-button:hover,
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(36, 72, 56, 0.18);
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100svh - 84px);
  padding: clamp(58px, 7vw, 92px) clamp(24px, 7vw, 98px);
  border-bottom: 1px solid rgba(17, 25, 39, 0.1);
}

.hero-copy {
  max-width: 1320px;
}

.eyebrow,
.section-kicker {
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  font-weight: 900;
}

.eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 32px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--green-soft);
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 1320px;
  margin-bottom: 24px;
  font-size: clamp(46px, 5vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.065em;
}

.headline-line,
.price-line {
  display: block;
}

.price-line {
  color: var(--green);
}

.hero-text {
  max-width: 650px;
  color: #59636f;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
}

.button.secondary span {
  margin-left: 16px;
  font-size: 28px;
  line-height: 0;
}

.works-with {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 700;
}

.works-with ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.works-with li {
  position: relative;
}

.features,
.steps {
  padding: 76px clamp(24px, 7vw, 98px);
  text-align: center;
}

.section-kicker {
  margin-bottom: 18px;
}

.features h2 {
  margin-bottom: 20px;
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.04em;
}

.divider {
  width: 48px;
  height: 3px;
  margin: 0 auto 50px;
  border-radius: 999px;
  background: var(--green);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1140px;
  margin: 0 auto;
  text-align: left;
}

.feature-card {
  padding: 6px 48px 0;
  border-left: 1px solid var(--line);
}

.feature-card:first-child {
  border-left: 0;
  padding-left: 4px;
}

.icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: var(--green);
  border-radius: 11px;
  background: linear-gradient(145deg, #edf4f0, #f8faf8);
  font-size: 26px;
  font-weight: 900;
}

.feature-card h3 {
  margin-bottom: 14px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.feature-card p {
  color: #59636f;
  line-height: 1.65;
}

.steps {
  padding-top: 42px;
}

.step-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: clamp(22px, 5vw, 78px);
  max-width: 1100px;
  margin: 28px auto 0;
  text-align: left;
}

.step {
  display: grid;
  grid-template-columns: 102px 1fr;
  align-items: center;
  gap: 22px;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  color: #2f251d;
  border: 1px solid #e1e5e2;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  font-size: 38px;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.step h3 span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  color: white;
  background: var(--green);
  border-radius: 50%;
  font-size: 12px;
}

.step p {
  color: #59636f;
  line-height: 1.55;
}

body.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 25, 39, 0.48);
  backdrop-filter: blur(10px);
}

.modal-backdrop[hidden] {
  display: none;
}

.waitlist-dialog {
  position: relative;
  width: min(100%, 620px);
  max-height: min(760px, calc(100svh - 48px));
  overflow-y: auto;
  padding: clamp(28px, 5vw, 42px);
  border: 1px solid #dbe2de;
  border-radius: 18px;
  background: rgba(255, 253, 250, 0.98);
  box-shadow: 0 28px 90px rgba(17, 25, 39, 0.24);
}

.waitlist-dialog .eyebrow {
  margin-bottom: 20px;
}

.waitlist-dialog h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.04em;
}

.waitlist-dialog p {
  color: #59636f;
  line-height: 1.6;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #dbe2de;
  border-radius: 999px;
  color: #47515d;
  background: white;
  cursor: pointer;
  font: inherit;
  font-size: 26px;
  line-height: 1;
}

.modal-close:hover {
  color: var(--green);
  border-color: var(--green);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 24px 42px;
  color: #6a737d;
}

@media (max-width: 980px) {
  .main-nav a:not(.nav-button) {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .feature-grid,
  .step-row {
    grid-template-columns: 1fr 1fr;
  }

  .feature-card:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .feature-card {
    padding-bottom: 34px;
  }

  .step-row .step:last-child {
    grid-column: 1 / -1;
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 76px;
  }

  .nav-button {
    min-height: 44px;
    padding: 0 16px;
    font-size: 13px;
  }

  .hero {
    padding-top: 54px;
  }

  h1 {
    font-size: clamp(43px, 14vw, 58px);
  }

  .hero-actions,
  .button,
  .nav-button {
    width: 100%;
  }

  .button,
  .nav-button {
    min-height: 52px;
  }

  .feature-grid,
  .step-row {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .feature-card:first-child {
    padding: 0 0 28px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-card:last-child {
    border-bottom: 0;
  }

  .step,
  .step-row .step:last-child {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .waitlist-dialog {
    padding: 28px 22px;
  }

  .waitlist-form {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-wrap: wrap;
  }
}

.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;
}

.waitlist-form {
  display: grid;
  grid-template-columns: minmax(240px, 360px) auto;
  gap: 12px;
  align-items: start;
}

.waitlist-form input,
.auth-card input {
  min-height: 52px;
  width: 100%;
  padding: 0 16px;
  border: 1px solid #cfd7d2;
  border-radius: 9px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  font: inherit;
  outline: none;
}

.waitlist-form input:focus,
.auth-card input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(49, 94, 75, 0.12);
}

.form-status {
  grid-column: 1 / -1;
  min-height: 22px;
  margin: 2px 0 0;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

.form-status[data-error=true] {
  color: #9f2d2d;
}

.button:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.64;
}

.docs-page {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 76px) clamp(20px, 5vw, 54px);
}

.docs-hero {
  margin-bottom: 24px;
}

.docs-hero h1 {
  max-width: 820px;
  margin-bottom: 14px;
  font-size: clamp(36px, 6vw, 58px);
}

.docs-hero p {
  max-width: 640px;
  color: #59636f;
  line-height: 1.6;
}

.docs-card {
  margin-top: 18px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid #dbe2de;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 42px rgba(49, 94, 75, 0.06);
}

.docs-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.docs-card h2:not(:first-child) {
  margin-top: 26px;
}

.docs-card pre {
  overflow-x: auto;
  margin: 0;
  padding: 16px;
  border: 1px solid #dbe2de;
  border-radius: 12px;
  background: #101820;
  color: #ecf5ef;
  font-size: 14px;
  line-height: 1.55;
}

.docs-card code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.docs-card li {
  margin: 8px 0;
  color: #59636f;
}

.legal-page {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 84px) clamp(24px, 6vw, 64px);
}

.legal-card {
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid #dbe2de;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.legal-card h1 {
  margin-bottom: 10px;
}

.legal-card h2 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.legal-card p,
.legal-card li {
  color: #59636f;
  line-height: 1.68;
}

.legal-card a {
  color: var(--green);
  font-weight: 800;
}

.legal-updated {
  font-weight: 800;
}

.app-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 84px) clamp(24px, 6vw, 64px);
}

.app-intro {
  max-width: 820px;
  margin-bottom: 36px;
}

.app-intro h1 {
  font-size: clamp(44px, 6vw, 72px);
}

.auth-grid,
.dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.auth-card {
  padding: 28px;
  border: 1px solid #dbe2de;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 42px rgba(49, 94, 75, 0.07);
}

.auth-card h2 {
  margin-bottom: 22px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.auth-card label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: #47515d;
  font-weight: 800;
}

.auth-card .button {
  margin-top: 6px;
}

.wide-card {
  grid-column: 1 / -1;
}

.dashboard-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.muted {
  color: #59636f;
  line-height: 1.55;
}

.key-panel,
.setup-card {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.setup-card {
  margin-top: 24px;
}

.setup-card code,
.secret-output {
  display: block;
  width: 100%;
  overflow-x: auto;
  padding: 16px;
  border: 1px solid #dbe2de;
  border-radius: 12px;
  background: #f5f8f6;
  color: var(--green-dark);
  font: 700 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.secret-output {
  white-space: pre-wrap;
  word-break: break-all;
}

.compact-actions {
  margin-top: 18px;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
}

.enhanced-admin-row {
  align-items: stretch;
  border-color: rgba(49, 94, 75, 0.14);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(49, 94, 75, 0.06);
}

.admin-row-main {
  min-width: 0;
  flex: 1;
}

.admin-row-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.admin-row-heading > strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 18px;
}

.admin-row p {
  margin: 4px 0 0;
}

.admin-meta-grid,
.audit-metadata-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.admin-meta-grid div,
.audit-metadata-grid span {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(49, 94, 75, 0.1);
  border-radius: 12px;
  background: rgba(247, 250, 248, 0.72);
}

.admin-meta-grid dt,
.audit-metadata-grid small {
  display: block;
  margin-bottom: 4px;
  color: #65707c;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-meta-grid dd,
.audit-metadata-grid strong {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.admin-callout {
  margin-top: 10px !important;
  padding: 10px 12px;
  border-left: 4px solid #a37840;
  border-radius: 10px;
  background: rgba(250, 241, 226, 0.72);
  color: #6d4f28;
  font-weight: 800;
}

.admin-callout[data-tone=note] {
  border-left-color: #315e4b;
  background: rgba(232, 243, 237, 0.78);
  color: #244838;
}

.admin-callout[data-tone=danger] {
  border-left-color: #9f2d2d;
  background: rgba(252, 234, 234, 0.84);
  color: #8f2a2a;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-actions-stack {
  align-content: flex-start;
  justify-content: flex-end;
  max-width: 260px;
}

.admin-actions button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #cfd7d2;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 800;
}

.admin-actions button[data-tone=good] {
  border-color: rgba(49, 94, 75, 0.28);
  background: #edf6f1;
  color: #244838;
}

.admin-actions button[data-tone=warning] {
  border-color: rgba(163, 120, 64, 0.28);
  background: #fbf2e2;
  color: #7a5425;
}

.admin-actions button[data-tone=danger] {
  border-color: rgba(159, 45, 45, 0.28);
  background: #fceaea;
  color: #8f2a2a;
}

.admin-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.admin-page .admin-row {
  border-color: var(--admin-line);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

.admin-page .admin-row-heading > strong,
.admin-page .admin-meta-grid dd,
.admin-page .audit-metadata-grid strong,
.admin-page .admin-summary-pill strong,
.admin-page .admin-empty-state strong {
  color: var(--admin-text);
}

.admin-page .admin-meta-grid div,
.admin-page .audit-metadata-grid span,
.admin-page .admin-summary-pill,
.admin-page .admin-status-chip,
.admin-page .admin-empty-state {
  border-color: var(--admin-line);
  background: rgba(255, 255, 255, 0.04);
}

.admin-page .admin-meta-grid dt,
.admin-page .audit-metadata-grid small,
.admin-page .admin-summary-pill small,
.admin-page .admin-status-chip,
.admin-page .admin-empty-state p {
  color: var(--admin-muted);
}

.admin-page .admin-status-chip[data-tone=good] {
  border-color: rgba(49, 94, 75, 0.26);
  background: rgba(49, 94, 75, 0.1);
  color: #a6e7c0;
}

.admin-page .admin-status-chip[data-tone=warning] {
  border-color: rgba(213, 160, 76, 0.3);
  background: rgba(213, 160, 76, 0.1);
  color: #f0c47e;
}

.admin-page .admin-status-chip[data-tone=danger] {
  border-color: rgba(239, 100, 100, 0.3);
  background: rgba(239, 100, 100, 0.1);
  color: #ffaaa6;
}

.admin-page .admin-actions button {
  border-color: var(--admin-line);
  background: rgba(255, 255, 255, 0.055);
  color: var(--admin-text);
}

.admin-page .admin-actions button[data-tone=good] {
  border-color: rgba(49, 94, 75, 0.28);
  background: rgba(49, 94, 75, 0.12);
  color: #b7efcc;
}

.admin-page .admin-actions button[data-tone=warning] {
  border-color: rgba(213, 160, 76, 0.3);
  background: rgba(213, 160, 76, 0.12);
  color: #f1c783;
}

.admin-page .admin-actions button[data-tone=danger] {
  border-color: rgba(239, 100, 100, 0.28);
  background: rgba(239, 100, 100, 0.11);
  color: #ffaaa6;
}

.admin-page .admin-filter-row input,
.admin-page .admin-filter-row select {
  border-color: var(--admin-line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--admin-text);
}

.admin-page .admin-filter-row input::placeholder {
  color: rgba(159, 177, 168, 0.78);
}

.admin-page .admin-callout {
  background: rgba(213, 160, 76, 0.1);
  color: #f1c783;
}

.admin-page .admin-callout[data-tone=note] {
  background: rgba(49, 94, 75, 0.1);
  color: #b7efcc;
}

.admin-page .admin-callout[data-tone=danger] {
  background: rgba(239, 100, 100, 0.11);
  color: #ffaaa6;
}

@media (max-width: 760px) {
  .waitlist-form,
  .auth-grid,
  .dashboard {
    grid-template-columns: 1fr;
  }

  .dashboard-header,
  .admin-row,
  .usage-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .usage-metrics,
  .admin-telemetry-grid,
  .usage-request-row,
  .usage-table-row {
    grid-template-columns: 1fr;
  }

  .usage-orb {
    width: 118px;
    height: 118px;
  }
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.form-status a {
  display: inline-block;
  margin-top: 6px;
  color: var(--green-dark);
  text-decoration: underline;
}

.confirm-shell {
  min-height: calc(100svh - 84px);
  display: grid;
  place-items: center;
}

.confirm-card {
  max-width: 820px;
}

.confirm-card h1 {
  font-size: clamp(42px, 5.4vw, 72px);
}

#confirm-message[data-error=true] {
  color: #9f2d2d;
}

.admin-page {
  --admin-bg: #0d1412;
  --admin-card: rgba(18, 27, 24, 0.86);
  --admin-card-soft: rgba(25, 38, 33, 0.72);
  --admin-line: rgba(199, 224, 211, 0.13);
  --admin-text: #eef7f1;
  --admin-muted: #9fb1a8;
  --admin-accent: #84d0a6;
  color: var(--admin-text);
  background:
    radial-gradient(circle at 18% 5%, rgba(49, 94, 75, 0.14), transparent 26rem),
    radial-gradient(circle at 86% 16%, rgba(213, 160, 76, 0.1), transparent 22rem),
    linear-gradient(180deg, #0b1110, #101715 42%, #0c1210 100%);
}

.admin-page::before {
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(199, 224, 211, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199, 224, 211, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, #000, transparent 75%);
}

.admin-page .site-header {
  min-height: 64px;
  border-bottom-color: var(--admin-line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--admin-text);
}

.admin-page .brand-mark,
.admin-page .section-kicker {
  color: var(--admin-accent);
}

.admin-page .main-nav a,
.admin-page .nav-button-plain,
.admin-page .muted {
  color: var(--admin-muted);
}

.admin-app-shell {
  max-width: 1320px;
  padding-top: 24px;
}

.admin-console {
  border-color: var(--admin-line);
  background: linear-gradient(180deg, rgba(20, 30, 27, 0.92), rgba(13, 20, 18, 0.96));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
}

.admin-console-header {
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--admin-line);
}

.admin-console-header h1 {
  font-size: clamp(38px, 5vw, 68px);
  letter-spacing: -0.07em;
}

.admin-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-page .button.secondary {
  border-color: var(--admin-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--admin-text);
}

.admin-page .button.primary {
  background: #dcefe5;
  color: #102018;
}

.admin-page .usage-observatory {
  border-color: var(--admin-line);
  background:
    radial-gradient(circle at 15% 10%, rgba(49, 94, 75, 0.12), transparent 18rem),
    linear-gradient(145deg, rgba(19, 31, 27, 0.88), rgba(16, 24, 22, 0.8));
  box-shadow: none;
}

.admin-page .usage-chart-card,
.admin-page .usage-recent,
.admin-page .usage-metric {
  border-color: var(--admin-line);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

.admin-page .usage-chart-header span,
.admin-page .usage-request-row span,
.admin-page .usage-table-row span,
.admin-page .usage-metric span,
.admin-page .usage-metric p {
  color: var(--admin-muted);
}

.admin-page .usage-chart-header strong,
.admin-page .usage-request-row strong,
.admin-page .usage-table-row strong,
.admin-page .usage-metric strong,
.admin-page .usage-hero h2 {
  color: var(--admin-text);
}

.admin-page .usage-sparkline {
  background:
    linear-gradient(180deg, rgba(49, 94, 75, 0.08), transparent),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(199, 224, 211, 0.06) 32px);
}

.admin-subheading {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.admin-section-card {
  margin-top: 18px;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid rgba(49, 94, 75, 0.14);
  border-radius: 18px;
  background:
    radial-gradient(circle at 98% 0%, rgba(49, 94, 75, 0.1), transparent 14rem),
    rgba(255, 255, 255, 0.62);
}

.admin-page .admin-section-card {
  border-color: var(--admin-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.032));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.admin-section-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-section-header h2 {
  margin-bottom: 8px;
}

.admin-summary-strip,
.admin-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-summary-strip {
  justify-content: flex-end;
  min-width: min(100%, 360px);
}

.admin-summary-pill,
.admin-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(49, 94, 75, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.admin-summary-pill {
  flex-direction: column;
  align-items: flex-start;
  min-width: 96px;
  padding: 10px 12px;
}

.admin-summary-pill strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.admin-summary-pill small,
.admin-status-chip {
  color: #65707c;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-status-chip {
  padding: 7px 9px;
}

.admin-status-chip[data-tone=good] {
  border-color: rgba(49, 94, 75, 0.24);
  background: rgba(232, 243, 237, 0.9);
  color: #244838;
}

.admin-status-chip[data-tone=warning] {
  border-color: rgba(163, 120, 64, 0.28);
  background: rgba(250, 241, 226, 0.95);
  color: #7a5425;
}

.admin-status-chip[data-tone=danger] {
  border-color: rgba(159, 45, 45, 0.24);
  background: rgba(252, 234, 234, 0.94);
  color: #8f2a2a;
}

.error-text {
  color: #9f2d2d;
}

.single-auth-grid {
  grid-template-columns: minmax(0, 520px);
}

.nav-button-plain {
  border: 0;
  cursor: pointer;
  font: inherit;
}

#api-key-panel[data-disabled=true] {
  opacity: 0.76;
}

.auth-link-row {
  margin: 14px 0 0;
  font-weight: 700;
}

.auth-link-row a {
  color: var(--green-dark);
  text-decoration: underline;
}

.turnstile-field:empty {
  display: none;
}

.turnstile-field {
  margin: 0 0 16px;
}

.waitlist-form .turnstile-field {
  grid-column: 1 / -1;
  margin: 0;
}

.compact-header {
  margin-bottom: 16px;
}

.usage-observatory {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid rgba(49, 94, 75, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 12%, rgba(49, 94, 75, 0.18), transparent 18rem),
    radial-gradient(circle at 92% 18%, rgba(163, 120, 64, 0.12), transparent 16rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(234, 241, 237, 0.72));
  box-shadow: 0 22px 70px rgba(49, 94, 75, 0.12);
}

.usage-observatory::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  pointer-events: none;
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(49, 94, 75, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 94, 75, 0.1) 1px, transparent 1px);
  background-size: 34px 34px;
  transform: rotate(-8deg);
  mask-image: radial-gradient(circle at 65% 35%, #000, transparent 65%);
}

.usage-hero,
.usage-metrics,
.usage-chart-card,
.usage-recent,
.admin-telemetry-grid {
  position: relative;
  z-index: 1;
}

.usage-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
}

.usage-hero h2 {
  margin-bottom: 8px;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.05em;
}

.usage-orb {
  --orb: #315e4b;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: clamp(118px, 15vw, 154px);
  height: clamp(118px, 15vw, 154px);
  border: 1px solid rgba(49, 94, 75, 0.2);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.94) 0 38%, transparent 39%),
    conic-gradient(from 120deg, rgba(49, 94, 75, 0.12), rgba(49, 94, 75, 0.85), rgba(163, 120, 64, 0.46), rgba(49, 94, 75, 0.12));
  box-shadow: inset 0 0 34px rgba(49, 94, 75, 0.16), 0 20px 50px rgba(49, 94, 75, 0.16);
  animation: usage-orbit 9s linear infinite;
}

.usage-orb span {
  max-width: 82px;
  color: var(--green-dark);
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.04em;
  animation: usage-counter-orbit 9s linear infinite;
}

.admin-orb {
  --orb: #244838;
}

.usage-meter {
  position: relative;
  height: 12px;
  overflow: hidden;
  margin: 10px 0 18px;
  border: 1px solid rgba(49, 94, 75, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
}

.usage-meter span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #315e4b, #79a88e);
  box-shadow: 0 0 22px rgba(49, 94, 75, 0.3);
  transition: width 600ms ease;
}

.usage-meter span[data-warn=true] {
  background: linear-gradient(90deg, #9f6a2d, #d5a04c);
}

.usage-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.usage-metric {
  position: relative;
  overflow: hidden;
  min-height: 142px;
  padding: 18px;
  border: 1px solid rgba(49, 94, 75, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 38px rgba(49, 94, 75, 0.08);
}

.usage-metric::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -28px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(49, 94, 75, 0.09);
}

.usage-metric[data-tone=cache]::after {
  background: rgba(92, 137, 114, 0.16);
}

.usage-metric[data-tone=pulse]::after {
  background: rgba(163, 120, 64, 0.16);
}

.usage-metric[data-tone=latency]::after {
  background: rgba(49, 81, 94, 0.12);
}

.usage-metric span {
  display: block;
  color: #65707c;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.usage-metric strong {
  display: block;
  margin: 16px 0 8px;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.usage-metric p {
  margin: 0;
  color: #59636f;
  font-weight: 700;
  line-height: 1.4;
}

.usage-chart-card,
.usage-recent {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(49, 94, 75, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
}

.usage-chart-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.usage-chart-header span {
  color: #65707c;
  font-size: 13px;
  font-weight: 800;
}

.usage-sparkline {
  display: flex;
  align-items: end;
  gap: 5px;
  height: 160px;
  padding: 12px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(49, 94, 75, 0.08), transparent),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(49, 94, 75, 0.08) 32px);
}

.usage-bar {
  flex: 1;
  min-width: 5px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, #315e4b, #89ad99);
  box-shadow: 0 0 16px rgba(49, 94, 75, 0.18);
  transition: transform 160ms ease, opacity 160ms ease;
}

.usage-bar[data-cache=some] {
  background: linear-gradient(180deg, #5f8c73, #a9c7b5);
}

.usage-bar[data-cache=high] {
  background: linear-gradient(180deg, #244838, #d6ad68);
}

.usage-bar:hover {
  opacity: 0.82;
  transform: translateY(-3px) scaleY(1.04);
}

.usage-request-row,
.usage-table-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(160px, 1.2fr) minmax(90px, auto);
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(49, 94, 75, 0.12);
}

.usage-request-row:first-of-type,
.usage-table-row:first-of-type {
  border-top: 0;
}

.usage-request-row span,
.usage-table-row span {
  color: #65707c;
  font-size: 13px;
  font-weight: 700;
}

.usage-request-row[data-ok=false] strong {
  color: #9f2d2d;
}

.admin-telemetry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 14px;
}

.usage-table {
  display: grid;
}

@keyframes usage-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes usage-counter-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

.session-list {
  display: grid;
  gap: 10px;
}

.session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
}

.session-row p {
  margin: 4px 0 0;
}

@media (max-width: 760px) {
  .session-row {
    flex-direction: column;
    align-items: stretch;
  }
}

.admin-filter-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 220px) auto;
  gap: 10px;
  margin: 0 0 16px;
}

.admin-filter-row input,
.admin-filter-row select {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #cfd7d2;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font: inherit;
}

.audit-row code {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  margin-top: 8px;
  color: var(--green-dark);
  font: 700 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.audit-metadata-grid {
  margin-top: 10px;
}

.admin-empty-state {
  padding: 22px;
  border: 1px dashed rgba(49, 94, 75, 0.24);
  border-radius: 16px;
  background: rgba(247, 250, 248, 0.7);
}

.admin-empty-state strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 18px;
}

.admin-empty-state p {
  margin: 0;
  color: #65707c;
  font-weight: 700;
}

.admin-load-more {
  justify-self: start;
}

@media (max-width: 760px) {
  .admin-filter-row,
  .admin-meta-grid,
  .audit-metadata-grid {
    grid-template-columns: 1fr;
  }

  .admin-section-header,
  .admin-row-heading {
    flex-direction: column;
  }

  .admin-summary-strip,
  .admin-actions-stack {
    justify-content: flex-start;
    max-width: none;
  }

  .usage-metrics,
  .admin-telemetry-grid,
  .usage-request-row,
  .usage-table-row {
    grid-template-columns: 1fr;
  }
}

/* ───────────────────────────────────────────────────────────────────────────
 * Admin console (v3) — clean dark surface inspired by Nexum/Opencode refs.
 * Everything is scoped under .admin-page so it cannot leak to other pages.
 * Old .admin-* rules above this block are unused by the v3 markup.
 * ─────────────────────────────────────────────────────────────────────────── */

.admin-page {
  --a-bg:        #f5f3ee;
  --a-bg-2:      #ffffff;
  --a-surface:   #ffffff;
  --a-surface-2: #faf9f6;
  --a-line:      #e5e1d8;
  --a-line-2:    #efece4;
  --a-text:      #1c2620;
  --a-text-2:    #45524a;
  --a-muted:     #7a857d;
  --a-accent:    #315e4b;
  --a-accent-2:  #244838;
  --a-warn:      #a3641f;
  --a-danger:    #9f2d2d;
  color: var(--a-text);
  background:
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(49, 94, 75, 0.06), transparent 70%),
    radial-gradient(ellipse 70% 40% at 100% 30%, rgba(163, 120, 64, 0.04), transparent 70%),
    var(--a-bg);
  font-feature-settings: "cv11", "ss01";
}
.admin-page::before { display: none; }

.admin-page .site-header.admin-topbar {
  min-height: 56px;
  padding: 0 24px;
  border-bottom: 1px solid var(--a-line);
  background: rgba(255, 255, 255, 0.85);
  color: var(--a-text);
  backdrop-filter: blur(14px);
}
.admin-page .brand { font-size: 18px; }
.admin-page .brand-mark { width: 28px; height: 24px; color: var(--a-accent); }
.admin-page .main-nav a,
.admin-page .main-nav .nav-button-plain {
  font-size: 13px;
  color: var(--a-text-2);
}
.admin-page .main-nav a:hover,
.admin-page .main-nav .nav-button-plain:hover { color: var(--a-text); }
.admin-topbar-pill {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border: 1px solid var(--a-line);
  border-radius: 999px;
  background: rgba(49, 94, 75, 0.08);
  color: var(--a-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Shell: sidebar + main */
.admin-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 0;
  min-height: calc(100vh - 56px);
  max-width: 1480px;
  margin: 0 auto;
}

.admin-sidebar {
  position: sticky;
  top: 56px;
  align-self: start;
  height: calc(100vh - 56px);
  padding: 20px 12px;
  border-right: 1px solid var(--a-line);
  background: var(--a-bg-2);
  overflow-y: auto;
}
.admin-sidebar-label {
  margin: 4px 12px 8px;
  color: var(--a-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.admin-sidebar-label-mt { margin-top: 28px; }

.admin-tabs { display: flex; flex-direction: column; gap: 2px; }
.admin-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--a-text-2);
  font: 600 13.5px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.admin-tab:hover { background: rgba(28, 38, 32, 0.04); color: var(--a-text); }
.admin-tab[aria-selected="true"] {
  background: rgba(49, 94, 75, 0.1);
  color: var(--a-text);
}
.admin-tab-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--a-muted);
  flex-shrink: 0;
}
.admin-tab[aria-selected="true"] .admin-tab-dot { background: var(--a-accent); }
.admin-tab-count {
  margin-left: auto;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(28, 38, 32, 0.05);
  color: var(--a-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.admin-tab[aria-selected="true"] .admin-tab-count { color: var(--a-text-2); }

.admin-sidebar-status {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 4px;
}
.admin-sidebar-status p { margin: 0 8px; color: var(--a-muted); font-size: 12px; }
.admin-sidebar-status-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--a-muted);
}
.admin-sidebar-status-row strong { color: var(--a-text); font-weight: 600; }

/* Main column */
.admin-main {
  min-width: 0;
  padding: 24px 28px 64px;
  background:
    radial-gradient(circle at 100% 0%, rgba(49, 94, 75, 0.05), transparent 30rem),
    var(--a-bg);
}

.admin-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--a-line);
}
.admin-page-header h1 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--a-text);
}
.admin-page-subtitle {
  margin: 0;
  color: var(--a-muted);
  font-size: 13px;
}
.admin-page-actions { display: flex; gap: 8px; }

/* Buttons */
.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--a-line);
  border-radius: 7px;
  background: var(--a-surface);
  color: var(--a-text);
  font: 600 13px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.admin-btn:hover { background: var(--a-surface-2); border-color: rgba(28, 38, 32, 0.18); }
.admin-btn-ghost { background: transparent; }
.admin-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Panels */
.admin-panel { display: block; }
.admin-panel[hidden] { display: none; }

/* KPI grid */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.admin-kpi {
  padding: 14px 16px;
  border: 1px solid var(--a-line);
  border-radius: 10px;
  background: var(--a-surface);
}
.admin-kpi-label {
  display: block;
  margin-bottom: 8px;
  color: var(--a-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.admin-kpi-value {
  display: block;
  margin-bottom: 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--a-text);
  font-variant-numeric: tabular-nums;
}
.admin-kpi-detail { margin: 0; color: var(--a-muted); font-size: 12px; }

/* Overview cards */
.admin-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 12px;
}
.admin-card {
  padding: 16px;
  border: 1px solid var(--a-line);
  border-radius: 10px;
  background: var(--a-surface);
}
.admin-card-wide { grid-column: 1 / -1; }
.admin-card-header {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--a-line-2);
}
.admin-card-header h2 {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--a-text);
}
.admin-card-caption { margin: 0; color: var(--a-muted); font-size: 12px; }

.admin-sparkline {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 96px;
  padding: 4px 0;
}
.admin-sparkline-bar {
  flex: 1 1 0;
  min-width: 3px;
  border-radius: 2px;
  background: rgba(49, 94, 75, 0.5);
  transition: background 0.12s;
}
.admin-sparkline-bar[data-cache="high"] { background: var(--a-accent); }
.admin-sparkline-bar[data-cache="some"] { background: rgba(49, 94, 75, 0.65); }
.admin-sparkline-bar[data-cache="none"] { background: rgba(28, 38, 32, 0.18); }

.admin-mini-table { display: flex; flex-direction: column; gap: 2px; }
.admin-mini-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--a-line-2);
  font-size: 12.5px;
}
.admin-mini-row:last-child { border-bottom: 0; }
.admin-mini-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.admin-mini-row-main strong { color: var(--a-text); font-weight: 600; overflow-wrap: anywhere; }
.admin-mini-row-main span { color: var(--a-muted); font-size: 11.5px; }
.admin-mini-row-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.admin-mini-row-right strong { color: var(--a-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.admin-mini-row-right span { color: var(--a-muted); font-size: 11.5px; }
.admin-mini-row-error .admin-mini-row-main strong { color: var(--a-danger); }
.admin-mini-empty { margin: 8px 0; color: var(--a-muted); font-size: 12.5px; }


/* Toolbar */
.admin-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}
.admin-toolbar-passive { padding-bottom: 4px; }
.admin-toolbar-hint { margin: 0; color: var(--a-muted); font-size: 12.5px; }
.admin-search {
  position: relative;
  flex: 1 1 320px;
  max-width: 360px;
}
.admin-search svg {
  position: absolute;
  top: 50%; left: 10px;
  transform: translateY(-50%);
  color: var(--a-muted);
  pointer-events: none;
}
.admin-search input {
  width: 100%;
  height: 32px;
  padding: 0 12px 0 30px;
  border: 1px solid var(--a-line);
  border-radius: 7px;
  background: var(--a-surface);
  color: var(--a-text);
  font: 500 13px/1 Inter, ui-sans-serif, system-ui, sans-serif;
}
.admin-search input::placeholder { color: var(--a-muted); }
.admin-search input:focus,
.admin-select:focus {
  outline: 0;
  border-color: rgba(49, 94, 75, 0.45);
  box-shadow: 0 0 0 3px rgba(49, 94, 75, 0.1);
}
.admin-select {
  height: 32px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--a-line);
  border-radius: 7px;
  background: var(--a-surface);
  color: var(--a-text);
  font: 500 13px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  appearance: none;
}

/* Table */
.admin-table-wrap {
  border: 1px solid var(--a-line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--a-surface);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 14px;
  border-bottom: 1px solid var(--a-line);
  background: var(--a-surface-2);
  color: var(--a-muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}
.admin-table .col-num { text-align: right; }
.admin-table .col-actions { width: 44px; text-align: right; }
.admin-table tbody tr { border-bottom: 1px solid var(--a-line-2); }
.admin-table tbody tr:last-child { border-bottom: 0; }
.admin-table tbody td {
  padding: 11px 14px;
  color: var(--a-text-2);
  vertical-align: middle;
}
.admin-table tbody tr.admin-tr:hover { background: rgba(28, 38, 32, 0.03); }
.admin-tr-placeholder td,
.admin-tr-empty td {
  padding: 32px 16px;
  text-align: center;
  color: var(--a-muted);
  font-size: 13px;
}
.admin-tr-paging td { padding: 12px; text-align: center; }

.td-email { min-width: 220px; max-width: 320px; }
.td-stack { display: flex; flex-direction: column; gap: 2px; }
.td-stack > strong {
  color: var(--a-text);
  font-weight: 600;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.td-sub { color: var(--a-muted); font-size: 11.5px; }
.td-sub[data-tone="danger"] { color: var(--a-danger); }
.td-num { text-align: right; font-variant-numeric: tabular-nums; color: var(--a-text); }
.td-rel { color: var(--a-muted); font-size: 12px; white-space: nowrap; }

/* Status pill: dot + label */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--a-muted);
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(28, 38, 32, 0.04);
}
.status-pill[data-tone="good"]    { color: var(--a-accent); }
.status-pill[data-tone="good"] .status-dot    { background: var(--a-accent); }
.status-pill[data-tone="warning"] { color: var(--a-warn); }
.status-pill[data-tone="warning"] .status-dot { background: var(--a-warn); }
.status-pill[data-tone="danger"]  { color: var(--a-danger); }
.status-pill[data-tone="danger"] .status-dot  { background: var(--a-danger); }
.status-pill[data-tone="neutral"] { color: var(--a-text-2); }

/* Audit metadata chips */
.td-meta-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.td-meta-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid var(--a-line);
  border-radius: 999px;
  background: var(--a-surface-2);
  font-size: 11px;
}
.td-meta-chip small {
  color: var(--a-muted);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.td-meta-chip strong { color: var(--a-text); font-weight: 600; }

/* Row action menu */
.row-menu-trigger {
  width: 28px; height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--a-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.row-menu-trigger:hover { background: rgba(28, 38, 32, 0.06); color: var(--a-text); }

.admin-menu {
  position: fixed;
  z-index: 100;
  min-width: 200px;
  padding: 4px;
  border: 1px solid var(--a-line);
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(28, 38, 32, 0.14), 0 2px 4px rgba(28, 38, 32, 0.08);
}
.admin-menu[hidden] { display: none; }
.admin-menu-item {
  display: block;
  width: 100%;
  padding: 7px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--a-text);
  font: 500 13px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
}
.admin-menu-item:hover { background: rgba(28, 38, 32, 0.05); }
.admin-menu-item[data-tone="good"]:hover    { background: rgba(49, 94, 75, 0.1); color: var(--a-accent); }
.admin-menu-item[data-tone="warning"]:hover { background: rgba(163, 100, 31, 0.1); color: var(--a-warn); }
.admin-menu-item[data-tone="danger"]:hover  { background: rgba(159, 45, 45, 0.08); color: var(--a-danger); }
.admin-menu-divider {
  height: 1px;
  margin: 4px 4px;
  background: var(--a-line);
}
.admin-menu-empty { margin: 0; padding: 8px 12px; color: var(--a-muted); font-size: 12px; }

.admin-loading {
  margin: 0;
  padding: 12px;
  color: var(--a-muted);
  font-size: 13px;
  grid-column: 1 / -1;
}

/* Responsive */
@media (max-width: 1020px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: relative;
    top: 0;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--a-line);
    padding: 12px;
  }
  .admin-tabs { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .admin-tab { padding: 8px 12px; }
  .admin-sidebar-label-mt, .admin-sidebar-status { display: none; }
  .admin-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-overview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .admin-main { padding: 16px; }
  .admin-page-header { flex-direction: column; align-items: stretch; }
  .admin-kpi-grid { grid-template-columns: 1fr; }
  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
  .admin-table tbody tr {
    padding: 12px 14px;
    border-bottom: 1px solid var(--a-line);
  }
  .admin-table tbody td {
    padding: 4px 0;
    text-align: left !important;
  }
  .td-actions { text-align: right !important; }
}


/* ───────────────────────────────────────────────────────────────────────────
 * Dashboard (v3) — single-user account page reusing the admin dark surface.
 * ─────────────────────────────────────────────────────────────────────────── */

.dashboard-page .main-nav a,
.dashboard-page .main-nav .nav-button-plain { font-size: 13px; }

.dash-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 28px 64px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dash-account-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--a-line);
}
.dash-account-label {
  margin: 0 0 6px;
  color: var(--a-muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.dash-account-identity h1 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--a-text);
  overflow-wrap: anywhere;
}
.dash-account-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--a-muted);
  font-size: 13px;
}
.dash-account-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dash-meta-tag {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 12px;
  border: 1px solid var(--a-line);
  border-radius: 8px;
  background: var(--a-surface);
  min-width: 96px;
}
.dash-meta-tag small {
  color: var(--a-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.dash-meta-tag strong { color: var(--a-text); font-size: 13px; font-weight: 600; }
.dash-meta-tag[data-tone="good"] strong { color: var(--a-accent); }
.dash-meta-tag[data-tone="warning"] strong { color: var(--a-warn); }
.dash-meta-tag[data-tone="danger"] strong { color: var(--a-danger); }

.dashboard-page .admin-kpi-grid { margin-bottom: 0; }

.dash-card-header { align-items: center; }
.dash-card-header > .dash-orb,
.dash-card-header > .admin-btn { flex-shrink: 0; }

.dash-orb {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border: 1px solid var(--a-line);
  border-radius: 999px;
  background: var(--a-surface-2);
  color: var(--a-text-2);
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.dash-orb[data-tone="good"]    { border-color: rgba(49, 94, 75, 0.3); background: rgba(49, 94, 75, 0.08); color: var(--a-accent); }
.dash-orb[data-tone="warning"] { border-color: rgba(163, 100, 31, 0.3); background: rgba(163, 100, 31, 0.08); color: var(--a-warn); }

.dash-usage-meter {
  margin-top: 14px;
  height: 4px;
  border-radius: 999px;
  background: rgba(28, 38, 32, 0.06);
  overflow: hidden;
}
.dash-usage-meter span {
  display: block;
  height: 100%;
  background: var(--a-accent);
  transition: width 0.3s ease;
}
.dash-usage-meter span[data-warn="true"] { background: var(--a-warn); }

.dash-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.dash-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.admin-btn-primary {
  border-color: var(--a-accent);
  background: var(--a-accent);
  color: #ffffff;
}
.admin-btn-primary:hover {
  background: var(--a-accent-2);
  border-color: var(--a-accent-2);
  color: #ffffff;
}

.dash-secret {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--a-line);
  border-radius: 8px;
  background: var(--a-bg);
  color: var(--a-text);
  font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-x: auto;
  white-space: pre;
  word-break: break-all;
}
.dash-endpoint { color: var(--a-accent); font-weight: 600; }

.dash-status {
  margin: 4px 0 0;
  min-height: 18px;
  color: var(--a-muted);
  font-size: 12.5px;
}
.dash-status[data-error="true"] { color: var(--a-danger); }

.dash-table-wrap { border: 0; background: transparent; }
.dash-table thead th { background: transparent; }
.dash-table tbody td:first-child,
.dash-table thead th:first-child { padding-left: 0; }
.dash-table tbody td:last-child,
.dash-table thead th:last-child { padding-right: 0; }

.dash-revoke { height: 28px; padding: 0 10px; font-size: 12px; }

#api-key-panel[data-disabled="true"] { opacity: 0.78; }
#api-key-panel[data-disabled="true"] .admin-btn-primary {
  border-color: var(--a-line);
  background: var(--a-surface);
  color: var(--a-muted);
}

@media (max-width: 840px) {
  .dash-main { padding: 18px 16px 48px; }
  .dash-2col { grid-template-columns: 1fr; }
  .dash-account-header { flex-direction: column; }
  .dash-account-meta { width: 100%; }
}


/* ───────────────────────────────────────────────────────────────────────────
 * Landing (v3) — dark motif matching admin / dashboard.
 * Scoped under .landing-page so it doesn't affect other pages.
 * ─────────────────────────────────────────────────────────────────────────── */

.landing-page {
  --l-bg:        #f5f3ee;
  --l-bg-2:      #ffffff;
  --l-surface:   #ffffff;
  --l-surface-2: #faf9f6;
  --l-line:      #e5e1d8;
  --l-line-2:    #efece4;
  --l-text:      #1c2620;
  --l-text-2:    #45524a;
  --l-muted:     #7a857d;
  --l-accent:    #315e4b;
  --l-accent-2:  #244838;
  color: var(--l-text);
  background:
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(49, 94, 75, 0.07), transparent 70%),
    radial-gradient(ellipse 70% 40% at 100% 30%, rgba(163, 120, 64, 0.04), transparent 70%),
    var(--l-bg);
  min-height: 100vh;
}
.landing-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(28, 38, 32, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 38, 32, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000, transparent 70%);
}
.landing-page > * { position: relative; z-index: 1; }

/* Header */
.landing-page .site-header {
  border-bottom: 1px solid var(--l-line);
  background: rgba(255, 253, 248, 0.82);
  backdrop-filter: blur(14px);
  color: var(--l-text);
}
.landing-page .brand,
.landing-page .brand span:last-child { color: var(--l-text); }
.landing-page .brand-mark { color: var(--l-accent); }
.landing-page .brand-mark path { stroke: var(--l-accent); }
.landing-page .brand-mark circle { fill: var(--l-accent); }
.landing-page .main-nav a:not(.nav-button) { color: var(--l-text-2); }
.landing-page .main-nav a:not(.nav-button):hover { color: var(--l-text); }
.landing-page .nav-button {
  border: 1px solid var(--l-accent);
  background: var(--l-accent);
  color: #ffffff;
}
.landing-page .nav-button:hover {
  background: var(--l-accent-2);
  border-color: var(--l-accent-2);
  color: #ffffff;
}

/* Hero */
.landing-page .hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 88px 28px 72px;
  text-align: left;
  background: transparent;
}
.landing-page .eyebrow,
.landing-page .section-kicker {
  color: var(--l-accent);
  background: rgba(49, 94, 75, 0.06);
  border: 1px solid rgba(49, 94, 75, 0.18);
}
.landing-page .eyebrow span {
  background: var(--l-accent);
  box-shadow: 0 0 12px rgba(49, 94, 75, 0.55);
}
.landing-page .hero h1 {
  color: var(--l-text);
  letter-spacing: -0.035em;
}
.landing-page .headline-line { color: var(--l-text); }
.landing-page .price-line { color: var(--l-accent); }
.landing-page .hero-text {
  color: var(--l-text-2);
  max-width: 620px;
}
.landing-page .hero-actions { margin-top: 32px; }
.landing-page .hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 0;
  padding: 8px 14px;
  border: 1px solid var(--l-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--l-text-2);
  font-size: 13px;
  font-weight: 500;
}
.landing-page .hero-trust strong {
  color: var(--l-text);
  font-weight: 700;
}
.landing-page .hero-trust svg { color: var(--l-accent); flex-shrink: 0; }
.landing-page .button.primary {
  background: var(--l-accent);
  color: #ffffff;
  border: 1px solid var(--l-accent);
}
.landing-page .button.primary:hover {
  background: var(--l-accent-2);
  border-color: var(--l-accent-2);
  transform: translateY(-1px);
}
.landing-page .button.secondary {
  background: transparent;
  color: var(--l-text);
  border: 1px solid var(--l-line);
}
.landing-page .button.secondary:hover {
  background: var(--l-surface);
  border-color: rgba(28, 38, 32, 0.18);
}
.landing-page .button.secondary span { color: var(--l-muted); }
.landing-page .works-with {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--l-line);
}
.landing-page .works-with > span {
  color: var(--l-muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.landing-page .works-with li {
  color: var(--l-text-2);
  background: var(--l-surface);
  border: 1px solid var(--l-line);
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

/* Features */
.landing-page .features,
.landing-page .steps {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 28px;
}
.landing-page .features h2,
.landing-page .steps h2 {
  color: var(--l-text);
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.025em;
  margin: 14px 0 0;
}
.landing-page .divider {
  background: var(--l-line);
  margin: 28px 0 36px;
}
.landing-page .feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.landing-page .feature-card {
  padding: 24px 22px;
  border: 1px solid var(--l-line);
  border-radius: 12px;
  background: var(--l-surface);
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
.landing-page .feature-card:hover {
  border-color: rgba(49, 94, 75, 0.28);
  background: var(--l-surface-2);
  transform: translateY(-2px);
}
.landing-page .feature-card .icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border: 1px solid rgba(49, 94, 75, 0.22);
  border-radius: 9px;
  background: rgba(49, 94, 75, 0.08);
  color: var(--l-accent);
  font-size: 15px;
  font-weight: 600;
}
.landing-page .feature-card h3 {
  color: var(--l-text);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin-bottom: 8px;
}
.landing-page .feature-card p {
  color: var(--l-text-2);
  font-size: 13.5px;
  line-height: 1.55;
}

/* Steps */
.landing-page .step-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.landing-page .step {
  display: flex;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--l-line);
  border-radius: 12px;
  background: var(--l-surface);
}
.landing-page .step-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(49, 94, 75, 0.22);
  border-radius: 9px;
  background: rgba(49, 94, 75, 0.08);
  color: var(--l-accent);
  font-size: 18px;
  flex-shrink: 0;
}
.landing-page .step h3 {
  color: var(--l-text);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.landing-page .step h3 span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(49, 94, 75, 0.1);
  color: var(--l-accent);
  font-size: 11px;
  font-weight: 700;
}
.landing-page .step p {
  color: var(--l-text-2);
  font-size: 13.5px;
  line-height: 1.55;
}

/* Footer */
.landing-page .site-footer {
  border-top: 1px solid var(--l-line);
  background: var(--l-bg-2);
  color: var(--l-muted);
  padding: 24px 28px;
  font-size: 12.5px;
}
.landing-page .site-footer a { color: var(--l-text-2); }
.landing-page .site-footer a:hover { color: var(--l-text); }
.landing-page .site-footer span { color: var(--l-muted); }

/* Waitlist modal */
.landing-page .modal-backdrop {
  background: rgba(28, 38, 32, 0.36);
  backdrop-filter: blur(8px);
}
.landing-page .waitlist-dialog {
  background: var(--l-surface);
  border: 1px solid var(--l-line);
  color: var(--l-text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.landing-page .waitlist-dialog h2 { color: var(--l-text); }
.landing-page .waitlist-dialog p { color: var(--l-text-2); }
.landing-page .waitlist-dialog .eyebrow {
  background: rgba(49, 94, 75, 0.06);
  border: 1px solid rgba(49, 94, 75, 0.18);
  color: var(--l-accent);
}
.landing-page .waitlist-dialog input[type="email"] {
  background: var(--l-bg);
  border: 1px solid var(--l-line);
  color: var(--l-text);
}
.landing-page .waitlist-dialog input[type="email"]::placeholder { color: var(--l-muted); }
.landing-page .waitlist-dialog input[type="email"]:focus {
  outline: 0;
  border-color: rgba(49, 94, 75, 0.45);
  box-shadow: 0 0 0 3px rgba(49, 94, 75, 0.1);
}
.landing-page .modal-close {
  color: var(--l-muted);
  background: transparent;
}
.landing-page .modal-close:hover {
  background: rgba(28, 38, 32, 0.05);
  color: var(--l-text);
}
.landing-page .form-status { color: var(--l-muted); }

@media (max-width: 880px) {
  .landing-page .hero { padding: 56px 20px 48px; }
  .landing-page .features,
  .landing-page .steps { padding: 48px 20px; }
  .landing-page .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-page .step-row { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .landing-page .feature-grid { grid-template-columns: 1fr; }
}


/* ───────────────────────────────────────────────────────────────────────────
 * Landing-page dark overrides for content pages
 * (auth, docs, legal, confirm). Reuses --l-* tokens from .landing-page.
 * ─────────────────────────────────────────────────────────────────────────── */

/* Generic main containers */
.landing-page .app-shell { background: transparent; }
.landing-page .app-intro { color: var(--l-text); }
.landing-page .app-intro h1 { color: var(--l-text); letter-spacing: -0.03em; }
.landing-page .app-intro .hero-text { color: var(--l-text-2); }

/* Auth forms */
.landing-page .auth-page-shell { padding: 56px 24px; }
.landing-page .auth-grid { gap: 18px; }
.landing-page .auth-card {
  background: var(--l-surface);
  border: 1px solid var(--l-line);
  color: var(--l-text);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.landing-page .auth-card h1,
.landing-page .auth-card h2 { color: var(--l-text); }
.landing-page .auth-card p,
.landing-page .auth-card .muted { color: var(--l-text-2); }
.landing-page .auth-card label { color: var(--l-text-2); }
.landing-page .auth-card input[type="email"],
.landing-page .auth-card input[type="password"],
.landing-page .auth-card input[type="text"] {
  background: var(--l-bg);
  border: 1px solid var(--l-line);
  color: var(--l-text);
}
.landing-page .auth-card input::placeholder { color: var(--l-muted); }
.landing-page .auth-card input:focus {
  outline: 0;
  border-color: rgba(49, 94, 75, 0.45);
  box-shadow: 0 0 0 3px rgba(49, 94, 75, 0.1);
}
.landing-page .auth-card .button.primary {
  background: var(--l-accent);
  color: #ffffff;
  border: 1px solid var(--l-accent);
}
.landing-page .auth-card .button.primary:hover {
  background: var(--l-accent-2);
  border-color: var(--l-accent-2);
}
.landing-page .auth-link-row a,
.landing-page .form-status a {
  color: var(--l-accent);
}
.landing-page .auth-link-row a:hover,
.landing-page .form-status a:hover { color: var(--l-accent-2); }

/* Confirm page */
.landing-page .confirm-shell { background: transparent; }
.landing-page .confirm-card {
  background: var(--l-surface);
  border: 1px solid var(--l-line);
  color: var(--l-text);
}
.landing-page .confirm-card h1 { color: var(--l-text); }
.landing-page .confirm-card p { color: var(--l-text-2); }
.landing-page #confirm-message[data-error="true"] { color: var(--l-danger, #e07b7b); }

/* Docs page */
.landing-page .docs-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.landing-page .docs-header {
  background: rgba(255, 253, 248, 0.82);
  color: var(--l-text);
}
.landing-page .docs-hero h1 {
  color: var(--l-text);
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.03em;
  margin: 12px 0 18px;
}
.landing-page .docs-hero p { color: var(--l-text-2); }
.landing-page .docs-hero .button.primary {
  background: var(--l-accent);
  color: #ffffff;
  border: 1px solid var(--l-accent);
}
.landing-page .docs-card {
  margin-top: 24px;
  padding: 26px 28px;
  background: var(--l-surface);
  border: 1px solid var(--l-line);
  border-radius: 12px;
}
.landing-page .docs-card h2 {
  color: var(--l-text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 22px 0 10px;
}
.landing-page .docs-card h2:first-child { margin-top: 0; }
.landing-page .docs-card p,
.landing-page .docs-card li { color: var(--l-text-2); }
.landing-page .docs-card ul { padding-left: 18px; }
.landing-page .docs-card li { margin: 4px 0; }
.landing-page .docs-card pre,
.landing-page .docs-card code,
.landing-page .docs-card pre code {
  background: var(--l-bg);
  border: 1px solid var(--l-line);
  color: var(--l-text);
  border-radius: 8px;
  padding: 10px 12px;
  font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  display: block;
  overflow-x: auto;
}
.landing-page .docs-card p code,
.landing-page .docs-card li code {
  display: inline;
  padding: 2px 7px;
  font-size: 12px;
  color: var(--l-accent);
  background: rgba(49, 94, 75, 0.06);
  border-color: rgba(49, 94, 75, 0.14);
}
.landing-page .docs-card pre { padding: 0; border: 0; background: transparent; }

/* Legal pages */
.landing-page .legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.landing-page .legal-card {
  padding: 32px;
  background: var(--l-surface);
  border: 1px solid var(--l-line);
  border-radius: 12px;
}
.landing-page .legal-card h1 {
  color: var(--l-text);
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.025em;
  margin: 12px 0 6px;
}
.landing-page .legal-card h2 {
  color: var(--l-text);
  font-size: 16px;
  font-weight: 700;
  margin: 28px 0 10px;
}
.landing-page .legal-card p,
.landing-page .legal-card li { color: var(--l-text-2); }
.landing-page .legal-card a { color: var(--l-accent); }
.landing-page .legal-card a:hover { color: var(--l-accent-2); }
.landing-page .legal-card .legal-updated {
  color: var(--l-muted);
  font-size: 12.5px;
  margin-bottom: 18px;
}
.landing-page .legal-card ul { padding-left: 20px; }
.landing-page .legal-card code {
  background: var(--l-bg);
  border: 1px solid var(--l-line);
  color: var(--l-accent);
  padding: 1px 6px;
  border-radius: 5px;
  font: 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Hero now stands alone — vertical centering on landing */
.landing-page .hero {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
}
@media (max-width: 880px) {
  .landing-page .hero { min-height: auto; padding: 56px 20px; }
}

/* Keep header text buttons from inheriting the legacy filled nav-button motif. */
.admin-page .main-nav .nav-button-plain,
.dashboard-page .main-nav .nav-button-plain {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--a-text-2);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  transform: none;
}
.admin-page .main-nav .nav-button-plain:hover,
.dashboard-page .main-nav .nav-button-plain:hover {
  background: transparent;
  box-shadow: none;
  color: var(--a-text);
  transform: none;
}
