:root {
  --fuel: #f25a22;
  --fuel-strong: #e24513;
  --fuel-dark: #8f2c0d;
  --ink: #11100e;
  --ink-soft: #2a2520;
  --bone: #fff6e8;
  --paper: #fffdf8;
  --paper-strong: #ffffff;
  --steel: #d8cec0;
  --steel-dark: #9d9284;
  --muted: #685f52;
  --green: #177245;
  --green-bg: #e8f7ed;
  --amber: #925600;
  --amber-bg: #fff0c2;
  --red: #a82218;
  --red-bg: #ffe4df;
  --shadow: 0 24px 70px rgb(17 16 14 / 0.16);
  --shadow-soft: 0 12px 36px rgb(17 16 14 / 0.1);
  --sidebar: #fff0d8;
  --radius: 8px;
  --font-sans:
    Inter, "SF Pro Text", "Segoe UI", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Roboto Mono", Consolas, monospace;
  --weight-regular: 500;
  --weight-medium: 600;
  --weight-semibold: 700;
  --weight-bold: 800;
  --weight-heavy: 900;
  color-scheme: light;
  font-family: var(--font-sans);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
  background: var(--bone);
}

#install,
#buy {
  scroll-margin-top: 112px;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: var(--weight-regular);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  letter-spacing: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-sans);
  font-weight: var(--weight-heavy);
  line-height: 1.05;
}

p {
  line-height: 1.5;
}

body[data-route="home"] {
  background:
    linear-gradient(90deg, rgb(17 16 14 / 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgb(17 16 14 / 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgb(242 90 34 / 0.96) 0, rgb(242 90 34 / 0.96) 560px, var(--bone) 560px),
    var(--bone);
  background-size: 64px 64px, 64px 64px, auto, auto;
}

body[data-route="market"] {
  background:
    linear-gradient(90deg, rgb(17 16 14 / 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgb(17 16 14 / 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgb(242 90 34 / 0.94) 0, rgb(242 90 34 / 0.94) 280px, var(--bone) 280px),
    var(--bone);
  background-size: 64px 64px, 64px 64px, auto, auto;
}

body[data-route="developer"] {
  background:
    linear-gradient(90deg, rgb(17 16 14 / 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgb(17 16 14 / 0.03) 1px, transparent 1px),
    var(--bone);
  background-size: 56px 56px, 56px 56px, auto;
}

body[data-route="onboarding"],
body[data-route="checkout"],
body[data-route="result"],
body[data-route="policy"],
body[data-route="docs"] {
  background:
    linear-gradient(90deg, rgb(17 16 14 / 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgb(17 16 14 / 0.03) 1px, transparent 1px),
    var(--bone);
  background-size: 56px 56px, 56px 56px, auto;
}

.checkout-route {
  min-height: 100vh;
  padding-top: 112px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  font-family: var(--font-sans);
  letter-spacing: 0;
}

:where(
  .nav-link,
  .login-button,
  .ghost-button,
  .primary-button,
  .black-button,
  .small-button,
  .sign-up-button,
  .hero-cta,
  .social-auth-button,
  .command-pill,
  .icon-button
) {
  font-family: var(--font-sans);
  font-weight: var(--weight-bold);
  line-height: 1;
  letter-spacing: 0;
}

:where(
  label,
  .social-auth-title,
  .auth-separator,
  .trust-bar-label,
  .terminal-caption,
  .field-help,
  .status,
  .proof-tag,
  .data-table th,
  .portal-metric span,
  .credits-status-content span,
  .account-fields span,
  .result-stat span,
  .metric-card span,
  .marketplace-stat span,
  .brand-asset-saved-header,
  .sponsor-line-preview-label
) {
  font-family: var(--font-sans);
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
}

:where(input, select, textarea) {
  font-weight: var(--weight-regular);
}

button {
  border: 0;
}

button,
a,
input,
select,
textarea {
  border-radius: var(--radius);
}

.shell {
  min-height: 100vh;
  padding-top: 92px;
}

.public-nav {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  padding: 22px 0;
  transform: translateX(-50%);
}

.public-nav::before {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  border-bottom: 2px solid var(--ink);
  background: #ffffff;
  content: "";
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: var(--weight-bold);
  color: var(--ink);
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name span:first-child {
  font-size: 1rem;
}

.brand-name span:last-child {
  margin-top: 3px;
  color: rgb(17 16 14 / 0.62);
  font-size: 0.76rem;
  font-weight: var(--weight-semibold);
}

.logo {
  display: inline-block;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
}

.logo svg {
  display: block;
  width: 100%;
  height: 100%;
}

.public-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.public-section-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 4px;
  white-space: nowrap;
}

.header-icon-links {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-left: 4px;
}

.header-action-links,
.header-account-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-group-divider {
  display: block;
  flex: 0 0 1px;
  width: 1px;
  height: 28px;
  margin: 0 3px;
  background: rgb(17 16 14 / 0.26);
}

.header-icon-link {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgb(17 16 14 / 0.16);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
}

.header-icon-link:hover,
.header-icon-link.active {
  border-color: var(--ink);
  background: #fff8ec;
  color: var(--ink);
  text-decoration: none;
}

.header-icon-link.disabled {
  color: rgb(17 16 14 / 0.34);
  cursor: not-allowed;
}

.header-icon-link.header-icon-link-discord,
.trust-logo-link.trust-logo-link-discord,
.policy-footer-social-link.policy-footer-social-link-discord {
  color: #5865f2;
}

.header-icon-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.header-icon-link .npm-wordmark {
  display: block;
  width: 28px;
  height: auto;
}

.header-section-links-visible .public-section-links {
  opacity: 1;
  pointer-events: auto;
}

.header-section-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: var(--weight-bold);
  text-decoration: none;
  white-space: nowrap;
}

.header-section-link:hover {
  color: var(--ink);
  text-decoration: none;
}

.nav-link.header-action-link,
.nav-link.header-action-link:hover {
  border-color: #1260cc;
  background: #1769e0;
  color: #ffffff;
}

.nav-link.header-action-link:hover {
  background: #0f56bd;
}

.nav-link,
.ghost-button,
.primary-button,
.black-button,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgb(17 16 14 / 0.16);
  color: var(--ink);
  font-weight: var(--weight-semibold);
  cursor: pointer;
}

.nav-link {
  background: #ffffff;
}

.login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-weight: var(--weight-heavy);
  cursor: pointer;
}

.login-button:hover,
.login-button.active {
  background: #302d27;
  color: #ffffff;
}

.nav-link:hover,
.ghost-button:hover {
  background: #fff8ec;
}

.sign-up-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--fuel);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  font-weight: var(--weight-heavy);
}

.sign-up-button:hover {
  transform: translateY(1px);
  box-shadow: 0 3px 0 var(--ink);
}

.sign-up-button.active {
  background: var(--ink);
  color: var(--paper);
}

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

.primary-button:hover {
  background: #000000;
}

.primary-button.danger-button {
  border-color: var(--red);
  background: var(--red);
}

.primary-button.danger-button:hover {
  background: #8f1e15;
}

.black-button {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.ghost-button {
  background: transparent;
}

.small-button {
  min-height: 34px;
  padding: 0 10px;
  background: var(--paper);
  font-size: 0.85rem;
  gap: 7px;
}

.small-button.dark {
  background: var(--ink);
  color: var(--paper);
}

.nav-link:disabled,
.ghost-button:disabled,
.primary-button:disabled,
.black-button:disabled,
.small-button:disabled,
.icon-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.home-hero {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 104px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.74fr);
  gap: 26px;
  align-items: start;
}

.hero-copy {
  padding: 40px 0 0;
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.08fr);
  gap: 42px;
  align-items: center;
}

.hero-collapsed {
  grid-template-columns: 1fr;
  justify-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgb(17 16 14 / 0.22);
  background: rgb(255 246 232 / 0.44);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: var(--weight-bold);
}

.hero-title {
  max-width: 720px;
  margin: 20px 0 16px;
  font-size: 4.72rem;
  line-height: 0.94;
  font-weight: var(--weight-heavy);
}

.hero-message h1 {
  max-width: 690px;
  margin: 0;
  font-size: 4.35rem;
  line-height: 0.95;
  font-weight: var(--weight-heavy);
}

.hero-message p {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgb(17 16 14 / 0.73);
  font-size: 1.55rem;
  line-height: 1.22;
  font-weight: var(--weight-semibold);
}

.hero-subtitle {
  max-width: 760px;
  margin: 0;
  color: rgb(17 16 14 / 0.74);
  font-size: 1.28rem;
  line-height: 1.42;
  font-weight: var(--weight-medium);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-proof-card {
  position: relative;
  display: grid;
  gap: 44px;
  min-height: 430px;
  padding: 38px 44px 56px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background:
    radial-gradient(circle at 21% 59%, rgb(255 208 90 / 0.34), transparent 31%),
    linear-gradient(135deg, #fffdf8 0%, #fff6e8 48%, #ffffff 100%);
  box-shadow: 16px 16px 0 rgb(17 16 14 / 0.12), var(--shadow-soft);
  isolation: isolate;
  overflow: hidden;
}

.hero-collapsed .hero-proof-card {
  grid-template-columns: minmax(300px, 0.74fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  width: min(1120px, 100%);
  text-align: left;
}

.hero-flame-button {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 370px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  pointer-events: none;
  overflow: visible;
}

.hero-flame-svg {
  display: block;
  width: min(100%, 390px);
  height: auto;
  max-height: 370px;
  overflow: visible;
}

.hero-flame-backplate {
  display: none;
}

.hero-flame-glow {
  fill: url("#hero-flame-glow-gradient");
  opacity: 0.58;
  transform-box: fill-box;
  transform-origin: center;
  animation: hero-flame-glow 5.2s ease-in-out infinite;
  will-change: opacity, transform;
}

.hero-flame-wind {
  transform-box: fill-box;
  transform-origin: 50% 88%;
  transform: scale(1);
}

.hero-flame-layer {
  transform-box: fill-box;
  transform-origin: 50% 92%;
}

.hero-flame-shadow {
  fill: rgb(17 16 14 / 0.14);
}

.hero-flame-outer {
  fill: url("#hero-flame-outer-gradient");
  animation: hero-flame-outer-flow 6.4s ease-in-out infinite;
  will-change: opacity, transform;
}

.hero-flame-accent {
  mix-blend-mode: screen;
  opacity: 0.44;
}

.accent-blue {
  fill: #28d5ff;
}

.accent-green {
  fill: #41df8b;
}

.hero-flame-mid {
  fill: #ff7a1f;
  filter: url("#hero-flame-soften");
  opacity: 0.84;
  animation: hero-flame-mid-flow 5.3s ease-in-out infinite;
  will-change: opacity, transform;
}

.hero-flame-inner {
  fill: url("#hero-flame-inner-gradient");
  opacity: 0.95;
  animation: hero-flame-inner-flow 4.7s ease-in-out infinite;
  will-change: opacity, transform;
}

.hero-flame-core {
  fill: #fff4c8;
  opacity: 0.88;
  animation: hero-flame-core-flow 4.1s ease-in-out infinite;
  will-change: opacity, transform;
}

@keyframes hero-flame-glow {
  0%,
  100% {
    opacity: 0.56;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.035);
  }
}

@keyframes hero-flame-outer-flow {
  0%,
  100% {
    opacity: 0.98;
    transform: translateX(0) rotate(0deg) skewX(0deg) scale(1);
  }

  35% {
    opacity: 0.93;
    transform: translateX(7px) rotate(1.8deg) skewX(2.6deg) scale(1.02, 1.055);
  }

  70% {
    opacity: 0.97;
    transform: translateX(-5px) rotate(-1.3deg) skewX(-1.8deg) scale(1.004, 1.035);
  }
}

@keyframes hero-flame-mid-flow {
  0%,
  100% {
    opacity: 0.84;
    transform: translateX(0) rotate(0deg) scale(1);
  }

  42% {
    opacity: 0.74;
    transform: translateX(-6px) rotate(-1.8deg) scale(1.035, 1.075);
  }

  76% {
    opacity: 0.82;
    transform: translateX(5px) rotate(1.2deg) scale(1.014, 1.05);
  }
}

@keyframes hero-flame-inner-flow {
  0%,
  100% {
    opacity: 0.95;
    transform: translateX(0) rotate(0deg) scale(1);
  }

  38% {
    opacity: 0.86;
    transform: translateX(5px) rotate(1.5deg) scale(1.03, 1.07);
  }

  72% {
    opacity: 0.92;
    transform: translateX(-4px) rotate(-1.1deg) scale(1.012, 1.045);
  }
}

@keyframes hero-flame-core-flow {
  0%,
  100% {
    opacity: 0.88;
    transform: translateX(0) scale(1);
  }

  45% {
    opacity: 0.74;
    transform: translateX(-3px) scale(1.03, 1.08);
  }

  78% {
    opacity: 0.84;
    transform: translateX(3px) scale(1.012, 1.05);
  }
}

.hero-flame-basin path {
  fill: none;
  stroke: rgb(17 16 14 / 0.74);
  stroke-linecap: round;
  stroke-width: 8;
}

.hero-headline {
  display: grid;
  gap: 12px;
  max-width: 820px;
  text-align: left;
}

.hero-headline h1 {
  margin: 0;
  color: var(--ink);
  font-size: 3.35rem;
  line-height: 1.02;
  font-weight: var(--weight-heavy);
  letter-spacing: 0;
}

.hero-headline p {
  max-width: 720px;
  margin: 0;
  color: rgb(17 16 14 / 0.72);
  font-size: 1.42rem;
  line-height: 1.22;
  font-weight: var(--weight-bold);
  letter-spacing: 0;
}

.hero-money {
  color: var(--green);
}

.hero-marker-underline {
  position: relative;
  z-index: 0;
  display: inline-block;
  white-space: nowrap;
}

.hero-marker-underline::after {
  position: absolute;
  right: -0.04em;
  bottom: 0.02em;
  left: -0.06em;
  z-index: -1;
  height: 0.2em;
  border-radius: 999px;
  background: linear-gradient(90deg, rgb(197 44 18 / 0.9), rgb(242 90 34 / 0.78), rgb(197 44 18 / 0.88));
  content: "";
  transform: rotate(-1.2deg);
}

.hero-brand-shimmer {
  display: inline-block;
  background: linear-gradient(110deg, #9f1d12 0%, #e33c17 22%, var(--fuel) 42%, #ffb629 56%, #ff7a1a 72%, #c52c12 100%);
  background-clip: text;
  background-size: 240% 100%;
  color: var(--ink);
  text-shadow: 0 1px 0 rgb(17 16 14 / 0.06);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hero-brand-shimmer 5.8s ease-in-out infinite;
}

@keyframes hero-brand-shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-brand-shimmer {
    animation-duration: 12s;
  }
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.hero-cta {
  min-height: 48px;
  padding: 0 18px;
  font-size: 0.98rem;
}

.hero-cta.install-cta {
  border-color: var(--ink);
  background: #28d5ff;
  color: var(--ink);
  box-shadow: 0 5px 0 var(--ink);
}

.hero-cta.install-cta:hover {
  background: #7be8ff;
}

.hero-cta-row .ghost-button {
  border-color: #f25a22;
  background: #fffaf0;
  box-shadow: 0 0 0 3px rgb(242 90 34 / 0.2), 0 0 18px rgb(242 90 34 / 0.34);
}

.hero-cta-row .ghost-button:hover {
  background: #fff3dc;
  box-shadow: 0 0 0 3px rgb(242 90 34 / 0.28), 0 0 24px rgb(242 90 34 / 0.42);
}

.trust-bar-section {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
  width: min(1180px, calc(100% - 32px));
  margin: -56px auto 0;
  padding: 0 0 18px;
}

.trust-bar {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgb(17 16 14 / 0.22);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.trust-bar-label {
  color: rgb(17 16 14 / 0.62);
  font-size: 0.82rem;
  font-weight: var(--weight-heavy);
  letter-spacing: 0;
}

.trust-logo-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
}

.trust-logo-item {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 34px;
  padding: 2px 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: var(--weight-bold);
  white-space: nowrap;
}

.trust-logo-link {
  min-height: 40px;
  padding: 3px 10px;
  border: 1px solid rgb(17 16 14 / 0.16);
  border-radius: var(--radius);
  background: #ffffff;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.trust-logo-link:not(.disabled):hover {
  border-color: var(--ink);
  background: #fff8ec;
  transform: translateY(-1px);
}

.trust-logo-link.disabled {
  color: rgb(17 16 14 / 0.42);
  cursor: not-allowed;
}

.trust-follow-mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.trust-follow-mark svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.trust-follow-mark .npm-wordmark {
  display: block;
  width: 28px;
  height: auto;
}

.trust-logo-mark {
  display: block;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.trust-logo-mark.image-logo {
  border-radius: 6px;
  object-fit: contain;
}

.trust-logo-mark.image-logo[src$="/codex.png"],
.trust-logo-mark.image-logo[src$="/hermes.png"],
.trust-logo-mark.image-logo[src$="/cursor.png"] {
  width: 30px;
  height: 30px;
}

.trust-lettermark {
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: #11100e;
  color: #ffffff;
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(350px, 1.06fr);
  gap: 18px;
  margin-top: 28px;
}

.install-panel,
.checkout-panel,
.market-strip,
.white-panel,
.terminal-panel,
.metric-card,
.table-panel,
.mini-panel,
.login-panel {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.install-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.conversion-section {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 54px;
}

.conversion-grid,
.charts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  gap: 18px;
  align-items: stretch;
}

.install-column {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  min-height: 100%;
}

.conversion-grid .install-panel {
  width: 100%;
  min-height: 100%;
  text-align: left;
}

.supported-panel {
  padding: 14px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.supported-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.supported-panel h2 {
  margin: 0;
  font-size: 0.95rem;
}

.supported-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: var(--weight-semibold);
  line-height: 1.35;
}

.adapter-group {
  display: grid;
  gap: 7px;
}

.adapter-group + .adapter-group {
  margin-top: 12px;
}

.adapter-group h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: var(--weight-heavy);
  text-transform: uppercase;
}

.agent-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.agent-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--steel);
  border-radius: 999px;
  background: #fffaf0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: var(--weight-bold);
  text-align: left;
  cursor: pointer;
}

.agent-item.ready {
  border-color: rgb(23 114 69 / 0.38);
  background: var(--green-bg);
  color: var(--green);
}

.agent-item.selected {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.agent-label {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.agent-label small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: var(--weight-semibold);
}

.agent-icon {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border-bottom: 1px solid rgb(255 253 248 / 0.16);
}

.panel-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: var(--weight-bold);
}

.panel-note {
  color: rgb(255 253 248 / 0.58);
  font-size: 0.78rem;
  font-weight: var(--weight-semibold);
}

.install-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.terminal {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.93rem;
  line-height: 1.8;
  white-space: pre;
}

.terminal .prompt {
  color: var(--fuel);
}

.terminal-caption {
  margin-top: auto;
  padding: 0 18px 18px;
  color: rgb(255 253 248 / 0.66);
  font-size: 0.86rem;
}

.terminal-caption-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.command-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgb(255 253 248 / 0.24);
  border-radius: 999px;
  background: rgb(255 253 248 / 0.1);
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: var(--weight-bold);
  cursor: pointer;
}

.command-pill:hover {
  background: rgb(255 253 248 / 0.18);
}

.checkout-panel {
  background: var(--paper);
  box-shadow: 12px 12px 0 rgb(17 16 14 / 0.14), var(--shadow-soft);
}

.checkout-panel .panel-header {
  border-color: var(--steel);
}

.checkout-panel .panel-note {
  color: var(--muted);
}

.checkout-panel-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.checkout-form {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 10px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: var(--weight-bold);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--steel);
  background: #ffffff;
  color: var(--ink);
  padding: 9px 10px;
  outline: none;
}

.field textarea {
  min-height: 76px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgb(242 90 34 / 0.18);
}

.upload-field {
  min-width: 0;
}

.file-input-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid var(--steel);
  background: #ffffff;
  padding: 8px 10px;
}

.file-input-shell:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgb(242 90 34 / 0.18);
}

.file-input-shell input[type="file"] {
  min-width: 0;
  min-height: auto;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: var(--weight-semibold);
}

.file-input-shell input[type="file"]:focus {
  border: 0;
  box-shadow: none;
}

.file-input-shell input[type="file"]::file-selector-button {
  margin-right: 10px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  padding: 7px 10px;
  font-weight: var(--weight-heavy);
  cursor: pointer;
}

.file-input-shell span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: var(--weight-bold);
  white-space: nowrap;
}

.money-input {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 42px;
  overflow: hidden;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  background: #ffffff;
}

.money-input:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgb(242 90 34 / 0.18);
}

.money-input span {
  display: grid;
  place-items: center;
  height: 100%;
  min-width: 36px;
  border-right: 1px solid var(--steel);
  background: #fff8ec;
  color: var(--muted);
  font-family: var(--font-mono);
  font-weight: var(--weight-heavy);
}

.money-input input {
  min-height: 40px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.money-input input:focus {
  border: 0;
  box-shadow: none;
}

.sponsor-market-guidance {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  background: #fff8ec;
}

.sponsor-market-prices {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: var(--weight-bold);
}

.sponsor-market-prices span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.sponsor-market-prices strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: var(--weight-heavy);
}

.checkout-quick-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.checkout-quick-label,
.sponsor-custom-bid-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: var(--weight-bold);
}

.bid-quick-options {
  align-items: center;
}

.checkout-quick-button {
  min-width: 44px;
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid var(--steel-dark);
  border-radius: var(--radius);
  background: var(--paper-strong);
  color: var(--ink);
  font-weight: var(--weight-heavy);
  line-height: 1;
  cursor: pointer;
}

.checkout-quick-button:hover,
.checkout-quick-button:focus-visible {
  border-color: var(--ink);
}

.checkout-quick-button:focus-visible {
  outline: 3px solid rgb(242 90 34 / 0.22);
  outline-offset: 1px;
}

.checkout-quick-button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.block-quick-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-self: start;
  gap: 6px;
}

.block-quick-options .checkout-quick-button {
  min-width: 0;
  min-height: 38px;
  height: 38px;
  padding: 5px 8px;
}

.sponsor-delivery-help {
  margin: -2px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--fuel);
  background: #fff8ec;
}

.sponsor-delivery-help strong {
  color: var(--ink);
}

.sponsor-delivery-help a {
  color: var(--fuel-dark);
  font-weight: var(--weight-bold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.terms-check {
  align-items: center;
  display: flex;
  gap: 9px;
  font-size: 0.9rem;
  font-weight: var(--weight-semibold);
  line-height: 1.35;
}

.terms-check input {
  accent-color: var(--ink);
  flex: 0 0 auto;
  height: 16px;
  margin: 0;
  width: 16px;
}

.terms-check a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.terms-help {
  margin-top: -6px;
}

.checkout-total {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--steel);
  background: #fff8ec;
}

.checkout-total strong {
  font-size: 1.5rem;
}

.checkout-total span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: var(--weight-semibold);
}

.checkout-total .status {
  justify-self: end;
  justify-content: center;
  min-width: 166px;
  text-align: center;
}

.stripe-button-wrap {
  position: relative;
}

.checkout-payment-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stripe-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--fuel);
  color: var(--ink);
  box-shadow: 0 7px 0 var(--ink);
  cursor: pointer;
}

.stripe-button:hover {
  transform: translateY(2px);
  box-shadow: 0 5px 0 var(--ink);
}

.stripe-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.stripe-button strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 1rem;
  font-weight: var(--weight-heavy);
}

.free-credit-button {
  background: #e7f5e8;
}

.free-credit-button strong {
  flex-wrap: wrap;
}

.free-credit-button-note {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stripe-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  background: #635bff;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: var(--weight-heavy);
  letter-spacing: 0;
}

.sponsor-submit-tooltip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  z-index: 20;
  width: min(300px, calc(100vw - 36px));
  padding: 12px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.stripe-button-wrap.blocked:hover .sponsor-submit-tooltip,
.stripe-button-wrap.blocked:focus .sponsor-submit-tooltip,
.stripe-button-wrap.blocked:focus-within .sponsor-submit-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.sponsor-submit-tooltip strong {
  display: block;
  font-size: 0.82rem;
  font-weight: var(--weight-heavy);
  margin-bottom: 8px;
}

.sponsor-submit-tooltip ul {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sponsor-submit-check {
  align-items: center;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: var(--weight-bold);
}

.sponsor-submit-dot {
  border-radius: 999px;
  display: inline-block;
  height: 9px;
  width: 9px;
}

.sponsor-submit-check.ready {
  color: var(--green);
}

.sponsor-submit-check.ready .sponsor-submit-dot {
  background: var(--green);
}

.sponsor-submit-check.missing {
  color: var(--red);
}

.sponsor-submit-check.missing .sponsor-submit-dot {
  background: var(--red);
}

.sponsor-submit-check small {
  font-size: 0.72rem;
  font-weight: var(--weight-heavy);
}

.market-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-top: 18px;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.down-arrow {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-top: 28px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 9px 0 rgb(17 16 14 / 0.14);
  font-size: 2.1rem;
  font-weight: var(--weight-heavy);
  line-height: 1;
}

.down-arrow:hover {
  transform: translateY(2px);
  box-shadow: 0 7px 0 rgb(17 16 14 / 0.14);
}

.marketplace-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 54px;
}

.marketplace-proof-section {
  padding: 0 0 24px;
}

.marketplace-proof-section .market-pulse-panel {
  overflow: hidden;
}

.marketplace-proof-section .graph-panel .panel-header {
  padding: 18px 20px;
}

.marketplace-proof-section .graph-panel .panel-title {
  font-size: 1.18rem;
}

.marketplace-proof-section .graph-body {
  padding: 22px;
}

.marketplace-proof-section .price-chart {
  height: 320px;
  padding: 20px;
}

.marketplace-proof-section .price-line {
  stroke-width: 6;
}

.market-metric-carousel {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 2px 0;
}

.market-metric-carousel::before,
.market-metric-carousel::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 74px;
  content: "";
  pointer-events: none;
}

.market-metric-carousel::before {
  left: 0;
  background: linear-gradient(90deg, #ffffff 0%, rgb(255 255 255 / 0.84) 34%, transparent 100%);
}

.market-metric-carousel::after {
  right: 0;
  background: linear-gradient(270deg, #ffffff 0%, rgb(255 255 255 / 0.84) 34%, transparent 100%);
}

.market-metric-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: market-metric-marquee 34s linear infinite;
  will-change: transform;
}

.market-metric-carousel:hover .market-metric-track,
.market-metric-carousel:focus-within .market-metric-track {
  animation-play-state: paused;
}

.market-metric-set {
  display: flex;
  gap: 14px;
  padding-right: 14px;
}

.market-metric-card {
  display: grid;
  align-content: center;
  gap: 8px;
  flex: 0 0 clamp(185px, 20vw, 230px);
  min-height: 88px;
  padding: 14px 16px;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  background: #fffaf0;
  box-shadow: 0 8px 18px rgb(17 16 14 / 0.07);
}

.market-metric-card.advertiser {
  background: linear-gradient(135deg, #fff8ea, #ffffff);
}

.market-metric-card.developer {
  background: linear-gradient(135deg, #effcff, #ffffff);
}

.market-metric-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: var(--weight-heavy);
}

.market-metric-card strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: clamp(1.22rem, 2.3vw, 1.7rem);
  line-height: 1;
}

@keyframes market-metric-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.marketplace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.86fr);
  gap: 18px;
  align-items: start;
}

.graph-panel {
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.graph-panel .panel-header {
  border-color: var(--steel);
}

.graph-panel .panel-note {
  color: var(--muted);
}

.graph-body {
  padding: 16px;
}

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

.graph-metrics div {
  display: grid;
  gap: 7px;
  padding: 13px;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  background: #fffaf0;
}

.graph-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: var(--weight-heavy);
}

.graph-metrics .wiring-marker {
  color: var(--red);
}

.graph-metrics strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 1.35rem;
}

.price-chart {
  height: 240px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgb(17 16 14 / 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgb(242 90 34 / 0.09), transparent 56%),
    #fffaf0;
  background-size: 100% 25%, auto, auto;
}

.price-chart svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.price-line {
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
  filter: drop-shadow(0 6px 0 rgb(17 16 14 / 0.1));
}

.price-fill {
  fill: rgb(242 90 34 / 0.18);
  stroke: none;
}

.chart-y-grid {
  stroke: rgb(17 16 14 / 0.14);
  stroke-dasharray: 5 8;
  stroke-width: 1.4;
}

.chart-y-axis {
  stroke: rgb(17 16 14 / 0.28);
  stroke-width: 1.8;
}

.chart-y-label {
  fill: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: var(--weight-heavy);
}

.price-dot {
  fill: var(--green);
  stroke: var(--ink);
  stroke-width: 4;
}

.price-sample-dot {
  fill: #8f8d87;
  stroke: #ffffff;
  stroke-width: 2.5;
}

.price-sample-dot-latest {
  fill: var(--green);
  stroke: var(--ink);
  stroke-width: 3;
}

.price-marker-label {
  filter: drop-shadow(0 5px 0 rgb(17 16 14 / 0.14));
}

.price-marker-box {
  fill: var(--green);
  stroke: var(--ink);
  stroke-width: 2.4;
}

.price-marker-text {
  fill: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: var(--weight-heavy);
}

.payout-chart .price-line {
  stroke: var(--green);
}

.payout-chart .price-fill {
  fill: rgb(23 114 69 / 0.15);
}

.graph-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: var(--weight-bold);
}

.market-mini-queue {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.market-mini-queue div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  background: var(--paper);
}

.market-mini-queue span,
.market-mini-queue em {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: var(--weight-bold);
}

.market-mini-queue strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-cell {
  min-height: 92px;
  padding: 15px;
  border-right: 1px solid rgb(255 253 248 / 0.13);
}

.market-cell:last-child {
  border-right: 0;
}

.market-cell span {
  display: block;
  color: rgb(255 253 248 / 0.56);
  font-size: 0.75rem;
  font-weight: var(--weight-bold);
}

.market-cell strong {
  display: block;
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: 1.35rem;
}

.market-cell small {
  display: block;
  margin-top: 6px;
  color: var(--fuel);
  font-weight: var(--weight-bold);
}

.developer-shell {
  min-height: 100vh;
}

.developer-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
}

.developer-account {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.developer-account > span {
  padding: 9px 10px;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: var(--weight-bold);
}

.developer-page {
  display: grid;
  gap: 18px;
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 52px;
}

.dev-balance-card {
  display: grid;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgb(242 90 34 / 0.2), transparent 42%),
    var(--paper);
  box-shadow: 12px 12px 0 rgb(17 16 14 / 0.1), var(--shadow-soft);
}

.dev-balance-card span {
  color: var(--muted);
  font-weight: var(--weight-heavy);
}

.dev-balance-card strong {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 3rem;
  line-height: 1;
}

.dev-balance-card small {
  color: var(--muted);
  font-size: 1rem;
  font-weight: var(--weight-bold);
}

.wiring-marker {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid currentColor;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: var(--weight-heavy);
  line-height: 1;
}

.wiring-marker.unwired {
  background: var(--red-bg);
  color: var(--red);
}

.wiring-marker.wired {
  width: 30px;
  height: 30px;
  border-color: #0f7a2f;
  background: #2cff68;
  color: #062b13;
  font-size: 0.95rem;
  box-shadow: 0 0 0 3px rgb(44 255 104 / 0.28);
}

.button-wiring-marker {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: var(--weight-heavy);
  line-height: 1;
}

.button-wiring-marker.unwired {
  background: var(--red-bg);
  color: var(--red);
}

.button-wiring-marker.wired {
  background: var(--green-bg);
  color: var(--green);
}

.small-button.dark .button-wiring-marker,
.range-button.active .button-wiring-marker {
  background: #ffffff;
}

.developer-overview-panel {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.developer-section {
  border-bottom: 1px solid var(--ink);
}

.developer-section:last-child {
  border-bottom: 0;
}

.developer-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--steel);
  background: #fffaf0;
}

.developer-section-title,
.developer-section-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.developer-section-title {
  min-width: 0;
}

.developer-section-actions {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.developer-section-header h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
}

.developer-section-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

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

.api-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portal-metric {
  display: grid;
  min-height: 132px;
  align-content: space-between;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  background: #fffaf0;
}

.portal-metric span,
.credits-status-content span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: var(--weight-heavy);
}

.portal-metric .wiring-marker.unwired,
.credits-status-banner .wiring-marker.unwired {
  color: var(--red);
}

.portal-metric .wiring-marker.wired,
.credits-status-banner .wiring-marker.wired {
  color: #062b13;
}

.portal-metric strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 1.34rem;
  line-height: 1.1;
}

.portal-metric small,
.credits-status-content p {
  margin: 0;
  color: var(--muted);
  font-weight: var(--weight-semibold);
  line-height: 1.4;
}

.portal-metric.positive strong {
  color: var(--green);
}

.portal-metric.negative strong {
  color: var(--fuel-dark);
}

.api-key-table-wrap {
  overflow-x: auto;
}

.wired-heading {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.inference-create-panel,
.inference-key-reveal {
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  background: #fffaf0;
  padding: 14px;
}

.inference-create-copy {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: var(--weight-semibold);
  line-height: 1.4;
}

.inference-key-modal {
  display: grid;
  gap: 12px;
}

.inference-key-modal label {
  display: grid;
  gap: 7px;
}

.inference-key-modal label span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: var(--weight-heavy);
}

.inference-key-modal input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: var(--weight-semibold);
  padding: 10px 11px;
}

.inference-key-modal p {
  margin: 0;
  color: var(--muted);
  font-weight: var(--weight-semibold);
  line-height: 1.4;
}

.inference-key-copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.inference-key-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.inference-key-form label {
  display: grid;
  gap: 7px;
}

.inference-key-form label span,
.inference-key-reveal span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: var(--weight-heavy);
}

.inference-key-form input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: var(--weight-semibold);
  padding: 10px 11px;
}

.inference-key-reveal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-color: var(--green);
  background: linear-gradient(90deg, rgb(31 122 70 / 0.12), transparent 64%), #fffaf0;
}

.inference-key-reveal div:first-child {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.inference-key-reveal strong {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.inference-key-reveal p,
.form-error {
  margin: 0;
  color: var(--muted);
  font-weight: var(--weight-semibold);
  line-height: 1.4;
}

.form-error {
  color: var(--red);
  margin-top: 10px;
}

.api-key-table {
  width: 100%;
  min-width: 640px;
  border: 1px solid var(--steel);
  border-collapse: collapse;
  background: #fffaf0;
}

.api-key-table th,
.api-key-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--steel);
  text-align: left;
  vertical-align: middle;
}

.api-key-table th {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: var(--weight-heavy);
}

.api-key-table tr:last-child td {
  border-bottom: 0;
}

.table-empty-state {
  color: var(--muted);
  font-weight: var(--weight-bold);
  text-align: center;
}

.key-mask {
  color: var(--muted);
  overflow-wrap: anywhere;
  font-size: 0.92rem;
  font-weight: var(--weight-bold);
}

.key-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 34px;
  height: 34px;
  padding: 0 7px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.icon-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.icon-button.danger {
  color: var(--red);
}

.credits-status-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 0;
  padding: 14px;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgb(23 114 69 / 0.12), transparent 58%),
    #fffaf0;
}

.credits-status-content {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.credits-status-content > div {
  display: grid;
  gap: 5px;
}

.credits-status-content strong {
  font-size: 1.12rem;
  line-height: 1.2;
}

.payout-setup-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  background: #fffaf0;
}

.payout-setup-panel.ready {
  background:
    linear-gradient(90deg, rgb(23 114 69 / 0.12), transparent 58%),
    #fffaf0;
}

.payout-setup-panel > div {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.payout-setup-panel > div > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: var(--weight-heavy);
}

.payout-setup-panel strong {
  font-size: 1.12rem;
  line-height: 1.2;
}

.payout-setup-panel p {
  margin: 0;
  color: var(--muted);
}

.onboarding-helper {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: grid;
  width: min(360px, calc(100vw - 24px));
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.onboarding-helper.flash {
  animation: onboarding-helper-pulse 1.4s ease-in-out 4;
}

.onboarding-helper.collapsed {
  width: min(260px, calc(100vw - 24px));
  gap: 0;
}

.onboarding-helper-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 2px;
}

.onboarding-helper-header span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: var(--weight-heavy);
}

.onboarding-helper-header strong {
  font-size: 1.05rem;
  line-height: 1.2;
}

.onboarding-helper-toggle {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-soft);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: var(--weight-heavy);
  line-height: 1;
  cursor: pointer;
}

.onboarding-helper-toggle:hover {
  background: var(--paper-warm);
}

.onboarding-helper-body {
  display: grid;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.onboarding-helper-body p,
.onboarding-helper-body ol {
  margin: 0;
}

.onboarding-helper-body ol {
  padding-left: 20px;
}

.onboarding-helper-actions {
  display: grid;
  gap: 8px;
}

.onboarding-helper-actions .small-button {
  width: 100%;
  min-height: 38px;
  white-space: normal;
  line-height: 1.2;
  text-align: center;
}

@keyframes onboarding-helper-pulse {
  0%,
  100% {
    box-shadow: var(--shadow-soft);
    transform: translateY(0);
  }

  45% {
    box-shadow: 0 0 0 5px rgb(242 90 34 / 0.2), var(--shadow-soft);
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .onboarding-helper.flash {
    animation: none;
  }
}

.account-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.account-fields div {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  background: var(--paper);
}

.account-fields span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: var(--weight-heavy);
}

.account-fields strong {
  overflow-wrap: anywhere;
  font-size: 0.92rem;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.small-button.danger-text {
  border-color: rgb(168 34 24 / 0.34);
  color: var(--red);
}

.dev-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.dev-grid.compact {
  grid-template-columns: minmax(300px, 0.7fr) minmax(0, 1.3fr);
}

.dev-panel {
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.dev-panel .panel-header {
  border-color: var(--steel);
}

.dev-panel .panel-note {
  color: var(--muted);
}

.dev-panel-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.connection-status {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  background: #fffaf0;
}

.connection-status span {
  color: var(--muted);
  font-weight: var(--weight-semibold);
}

.dev-stats {
  display: grid;
  gap: 0;
  padding: 16px;
}

.dev-stats div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--steel);
}

.dev-stats div:last-child {
  border-bottom: 0;
}

.dev-stats span {
  color: var(--muted);
  font-weight: var(--weight-bold);
}

.dev-stats strong {
  font-family: var(--font-mono);
  font-size: 1.2rem;
}

.activity-list {
  display: grid;
}

.activity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--steel);
}

.activity-row:last-child {
  border-bottom: 0;
}

.activity-row > span {
  color: var(--ink);
  font-weight: var(--weight-bold);
}

.activity-row strong {
  color: var(--green);
}

.advertiser-main-grid {
  align-items: start;
}

.campaign-summary {
  display: grid;
  gap: 7px;
  padding: 13px;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  background: #fffaf0;
}

.campaign-summary span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: var(--weight-heavy);
}

.campaign-summary strong {
  font-size: 1.05rem;
  line-height: 1.35;
}

.campaign-summary .status {
  justify-self: start;
}

.campaign-url {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: var(--weight-bold);
  overflow-wrap: anywhere;
}

.campaign-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.campaign-picker span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: var(--weight-heavy);
}

.campaign-picker select {
  max-width: 220px;
  min-height: 34px;
  padding: 0 32px 0 10px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: #fffaf0;
  color: var(--ink);
  font: 900 0.84rem "Inter", system-ui, sans-serif;
}

.compact-stats {
  padding: 0;
}

.campaign-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.campaign-stats div {
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 11px;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  background: #fffaf0;
}

.campaign-stats div:last-child {
  border-bottom: 1px solid var(--steel);
}

.campaign-stats span {
  font-size: 0.74rem;
}

.campaign-stats strong {
  font-size: 1.02rem;
}

.campaign-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.advertiser-page .activity-row strong {
  color: var(--ink);
}

.advertiser-page {
  width: min(1120px, calc(100% - 32px));
}

.advertiser-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 1fr);
  gap: 18px;
  align-items: stretch;
}

.advertiser-top-grid > .graph-panel,
.advertiser-top-grid > .checkout-panel {
  min-height: 100%;
}

.advertiser-live-panel .graph-body {
  display: grid;
}

.advertiser-live-chart {
  min-height: 252px;
}

.marketplace-panel,
.campaign-management-panel,
.advertiser-backend-panel,
.account-management-panel {
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.marketplace-panel-header,
.backend-panel-heading,
.account-management-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--steel);
  background: #fffaf0;
}

.marketplace-panel-header h2,
.backend-panel-heading h2,
.account-management-heading h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
}

.marketplace-panel-header p,
.backend-panel-heading p,
.account-management-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: var(--weight-semibold);
}

.report-range-picker {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: var(--weight-heavy);
}

.report-range-picker select {
  min-width: 112px;
  min-height: 34px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: var(--weight-bold);
}

.range-buttons {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
}

.range-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 48px;
  min-height: 34px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-weight: var(--weight-heavy);
  cursor: pointer;
}

.range-button.active {
  background: var(--ink);
  color: var(--paper);
}

.marketplace-panel-body {
  padding: 16px;
}

.marketplace-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.marketplace-stat {
  display: grid;
  min-height: 112px;
  align-content: space-between;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  background: #fffaf0;
}

.marketplace-stat span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: var(--weight-heavy);
}

.marketplace-stat .wiring-marker {
  color: var(--red);
}

.marketplace-stat strong {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  line-height: 1.05;
}

.marketplace-stat small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: var(--weight-bold);
}

.marketplace-macro-chart {
  min-height: 260px;
}

.campaign-management-panel .table-toolbar {
  border-bottom: 1px solid var(--steel);
  background: #fffaf0;
}

.advertiser-promotion-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: center;
  gap: 28px;
  padding: 22px;
  background: #fffaf0;
}

.advertiser-promotion-copy {
  display: grid;
  gap: 7px;
}

.advertiser-promotion-copy > span {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: var(--weight-heavy);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.advertiser-promotion-copy h2,
.advertiser-promotion-copy p {
  margin: 0;
}

.advertiser-promotion-copy h2 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.1;
}

.advertiser-promotion-copy p,
.advertiser-promotion-progress-wrap span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: var(--weight-semibold);
}

.advertiser-promotion-progress-wrap {
  display: grid;
  gap: 9px;
}

.advertiser-promotion-progress-wrap strong {
  font-family: var(--font-mono);
  font-size: 1.08rem;
}

.advertiser-promotion-progress {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
}

.advertiser-promotion-progress::-webkit-progress-bar {
  background: var(--paper);
}

.advertiser-promotion-progress::-webkit-progress-value {
  background: var(--green);
}

.advertiser-promotion-progress::-moz-progress-bar {
  background: var(--green);
}

.campaign-table-wrap {
  contain: layout;
  overflow-x: auto;
}

.campaign-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
}

.campaign-table th,
.campaign-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--steel);
  text-align: left;
  vertical-align: middle;
}

.campaign-table th {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: var(--weight-heavy);
}

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

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--steel);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: var(--weight-bold);
}

.pagination-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination-actions .small-button {
  min-height: 32px;
}

.pagination-actions .small-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.campaign-name {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.campaign-name strong {
  white-space: nowrap;
}

.campaign-name span {
  max-width: 260px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: var(--weight-semibold);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.campaign-row-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
}

.campaign-row-actions .small-button {
  min-height: 32px;
  white-space: nowrap;
}

.empty-table-note {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--muted);
  font-weight: var(--weight-bold);
}

.empty-table-note strong {
  color: var(--ink);
}

.empty-table-note span {
  overflow-wrap: anywhere;
}

.backend-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--steel);
}

.backend-metric-card {
  display: grid;
  min-height: 112px;
  align-content: space-between;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  background: #fffaf0;
}

.backend-metric-card.warning {
  background: #fff4da;
}

.backend-metric-card.negative {
  background: var(--red-bg);
}

.backend-metric-card span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: var(--weight-heavy);
}

.backend-metric-card strong {
  font-size: 1.15rem;
  line-height: 1.05;
}

.backend-metric-card small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: var(--weight-bold);
}

.creative-breakdown-block {
  display: grid;
}

.backend-subheader {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--steel);
  background: #ffffff;
}

.backend-subheader h3 {
  margin: 0;
  font-size: 0.96rem;
}

.backend-subheader p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: var(--weight-semibold);
}

.creative-breakdown-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
}

.creative-breakdown-table th,
.creative-breakdown-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--steel);
  text-align: left;
  vertical-align: middle;
}

.creative-breakdown-table th {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: var(--weight-heavy);
}

.creative-breakdown-table tr:last-child td {
  border-bottom: 0;
}

.creative-row-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-width: 0;
}

.creative-row-heading .wiring-marker {
  margin-top: 1px;
}

.verification-list {
  display: grid;
  align-content: start;
  gap: 8px;
}

.verification-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  background: var(--paper);
}

.verification-item span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: var(--weight-heavy);
}

.verification-item .wiring-marker {
  color: var(--red);
}

.account-management-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
}

.account-management-actions .small-button {
  white-space: nowrap;
}

.empty-balance strong {
  color: var(--ink);
}

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

.empty-state-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 220px;
  padding: 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgb(242 90 34 / 0.13), transparent 50%),
    var(--paper);
  box-shadow: var(--shadow-soft);
}

.empty-state-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--fuel);
  font-size: 1.45rem;
  font-weight: var(--weight-heavy);
  line-height: 1;
}

.empty-state-card h2 {
  margin: 0;
  font-size: 1.2rem;
}

.empty-state-card p {
  margin: 0;
  color: var(--muted);
  font-weight: var(--weight-semibold);
  line-height: 1.45;
}

.empty-state-card .small-button {
  justify-self: start;
  margin-top: auto;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
}

.section.tight {
  padding-top: 24px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: 2rem;
}

.section-heading p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-weight: var(--weight-medium);
  line-height: 1.5;
}

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

.proof-card {
  position: relative;
  min-height: 175px;
  padding: 18px;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  background: var(--paper);
}

.proof-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 14px;
  padding: 0 8px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--fuel);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: var(--weight-heavy);
}

.proof-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.proof-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.proof-card strong {
  display: block;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 1.4rem;
}

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

.depot-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.65fr);
  gap: 18px;
  min-height: 220px;
  padding: 20px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgb(242 90 34 / 0.14), transparent 42%),
    var(--paper);
  box-shadow: var(--shadow-soft);
}

.depot-panel h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.depot-panel p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-weight: var(--weight-medium);
  line-height: 1.5;
}

.depot-stats {
  align-self: end;
  border-top: 1px solid var(--steel);
}

.trust-band {
  border-top: 1px solid var(--steel);
  border-bottom: 1px solid var(--steel);
  background: var(--paper);
}

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

.trust-item {
  padding: 16px 0;
}

.trust-item strong {
  display: block;
  margin-bottom: 7px;
}

.trust-item span {
  color: var(--muted);
  line-height: 1.5;
}

.market-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 62px;
}

.market-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: end;
  padding: 28px 0 32px;
}

.market-hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: 4rem;
  line-height: 0.96;
}

.market-hero p {
  max-width: 670px;
  margin: 16px 0 0;
  color: rgb(17 16 14 / 0.74);
  font-size: 1.15rem;
  font-weight: var(--weight-medium);
  line-height: 1.45;
}

.bid-callout {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 16px;
}

.bid-callout span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: var(--weight-bold);
}

.bid-callout strong {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 2.15rem;
}

.table-panel {
  overflow: hidden;
  background: var(--paper);
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--steel);
}

.table-toolbar h2,
.table-toolbar h3 {
  margin: 0;
  font-size: 1rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--steel);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: var(--weight-heavy);
}

.data-table td {
  font-size: 0.93rem;
}

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

.mono {
  font-family: var(--font-mono);
}

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

.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: var(--weight-heavy);
}

.status.live,
.status.approved,
.status.completed,
.status.confirmed,
.status.healthy {
  background: var(--green-bg);
  color: var(--green);
}

.status.pending,
.status.review,
.status.queued,
.status.held {
  background: var(--amber-bg);
  color: var(--amber);
}

.status.rejected,
.status.blocked,
.status.revoked,
.status.failed,
.status.expired {
  background: var(--red-bg);
  color: var(--red);
}

.status.refunded,
.status.not-applicable {
  background: var(--amber-bg);
  color: var(--amber);
}

.login-route {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: var(--fuel);
}

.login-panel {
  width: min(920px, 100%);
  overflow: hidden;
  background: var(--paper);
}

.login-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.login-brand {
  padding: 32px;
  background: #eef0f2;
}

.login-brand h1 {
  margin: 32px 0 12px;
  font-size: 3rem;
  line-height: 1;
}

.login-brand p {
  margin: 0;
  color: rgb(17 16 14 / 0.74);
  font-weight: var(--weight-semibold);
  line-height: 1.5;
}

.login-form {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 32px;
}

.login-form h2 {
  margin: 0;
}

.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: #fff8ec;
}

.login-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: var(--weight-heavy);
  cursor: pointer;
}

.login-tabs a.active {
  background: var(--ink);
  color: var(--paper);
}

.login-tabs a:focus {
  outline: none;
}

.login-tabs a:focus-visible {
  box-shadow: inset 0 0 0 2px var(--fuel);
}

.auth-link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: var(--weight-bold);
}

.auth-link-row a:hover {
  color: var(--ink);
}

.social-auth {
  display: grid;
  gap: 10px;
}

.social-auth-title {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: var(--weight-heavy);
  letter-spacing: 0;
}

.social-auth-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.social-auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 9px 18px rgb(22 18 10 / 0.05);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: var(--weight-heavy);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.social-auth-button:hover:not(:disabled),
.social-auth-button:focus-visible {
  border-color: rgb(22 18 10 / 0.28);
  box-shadow: 0 14px 26px rgb(22 18 10 / 0.1);
  transform: translateY(-1px);
}

.social-auth-button:focus {
  outline: none;
}

.social-auth-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.social-auth-logo {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.github-logo {
  color: #181717;
}

.auth-separator {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: var(--weight-bold);
}

.auth-separator::before,
.auth-separator::after {
  height: 1px;
  background: var(--steel);
  content: "";
}

.auth-mini-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  background: #fff8ec;
}

.auth-mini-card strong {
  font-size: 0.95rem;
}

.auth-mini-card span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: var(--weight-semibold);
  line-height: 1.4;
}

.auth-mini-card.confirmed {
  border-color: rgb(23 114 69 / 0.34);
  background: var(--green-bg);
}

.signup-role-gate {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  background: #ffffff;
}

.signup-role-gate.confirmed {
  border-color: rgb(31 122 58 / 0.55);
  background: rgb(31 122 58 / 0.06);
}

.signup-role-gate p {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: var(--weight-semibold);
  line-height: 1.45;
}

.signup-role-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.signup-role-primary {
  border-color: #f25a22;
  background: #fffaf0;
  color: var(--ink);
  box-shadow: 0 0 0 3px rgb(242 90 34 / 0.2), 0 0 18px rgb(242 90 34 / 0.34);
}

.signup-role-gate:not(.confirmed) .signup-role-primary {
  animation: signup-role-cta-pulse 2s ease-in-out infinite;
}

.signup-role-primary:hover {
  background: #fff3dc;
  box-shadow: 0 0 0 3px rgb(242 90 34 / 0.28), 0 0 24px rgb(242 90 34 / 0.42);
}

.signup-role-gate.confirmed .signup-role-primary {
  animation: none;
}

@keyframes signup-role-cta-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgb(242 90 34 / 0.18), 0 0 14px rgb(242 90 34 / 0.28);
  }

  50% {
    box-shadow: 0 0 0 5px rgb(242 90 34 / 0.24), 0 0 28px rgb(242 90 34 / 0.48);
  }
}

@media (prefers-reduced-motion: reduce) {
  .signup-role-gate:not(.confirmed) .signup-role-primary {
    animation: none;
  }
}

.signup-fields {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.signup-fields:disabled {
  opacity: 0.5;
}

.signup-password-fields {
  display: grid;
  gap: 10px;
}

.password-input-shell {
  position: relative;
}

.field .password-input-shell input {
  padding-right: 46px;
}

.password-visibility-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  place-items: center;
  transform: translateY(-50%);
}

.password-visibility-toggle:hover {
  background: var(--paper-dark);
  color: var(--ink);
}

.password-visibility-toggle:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.password-visibility-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.auth-message {
  padding: 11px 12px;
  border: 1px solid rgb(23 114 69 / 0.36);
  border-radius: var(--radius);
  background: var(--green-bg);
  color: #123a25;
  font-size: 0.9rem;
  font-weight: var(--weight-bold);
  line-height: 1.35;
}

.auth-message.error {
  border-color: rgb(170 38 28 / 0.35);
  background: #fff0ed;
  color: #7a1f16;
}

.password-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -4px;
}

.password-rules span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: var(--weight-heavy);
}

.password-rules span::before {
  margin-right: 6px;
  content: "!";
}

.password-rules span.valid {
  background: var(--green-bg);
  color: var(--green);
}

.password-rules span.valid::before {
  content: "✓";
}

.password-rules span.invalid {
  background: var(--red-bg);
  color: var(--red);
}

.compact-auth-route {
  background: var(--fuel);
}

.compact-auth-panel {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  width: min(760px, 100%);
}

.compact-auth-brand {
  padding: 28px;
  background: #eef0f2;
}

.compact-auth-brand h1 {
  margin: 28px 0 10px;
  font-size: 2.5rem;
  line-height: 1;
}

.compact-auth-brand p {
  margin: 0;
  color: rgb(17 16 14 / 0.74);
  font-weight: var(--weight-semibold);
  line-height: 1.45;
}

.result-route,
.policy-route {
  min-height: 100vh;
}

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

.docs-route {
  min-height: 100vh;
  padding-top: 93px;
  background: #f8f7f3;
}

.docs-route .public-nav::before {
  border-bottom-color: #d9d6ce;
}

.docs-route .header-section-link.active {
  border-color: var(--ink);
  background: #f3efe7;
}

.docs-shell {
  display: grid;
  grid-template-columns: 224px minmax(0, 760px) 176px;
  justify-content: center;
  gap: 44px;
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.docs-sidebar,
.docs-toc {
  position: sticky;
  top: 118px;
  align-self: start;
  max-height: calc(100vh - 144px);
  overflow-y: auto;
}

.docs-home-link {
  display: grid;
  gap: 2px;
  padding: 0 10px 18px;
  border-bottom: 1px solid #dedbd4;
  border-radius: 0;
}

.docs-home-link span {
  font-size: 1rem;
  font-weight: var(--weight-heavy);
}

.docs-home-link small {
  color: #716b61;
  font-size: 0.74rem;
  font-weight: var(--weight-semibold);
}

.docs-navigation {
  padding-top: 16px;
}

.docs-search {
  position: relative;
  display: block;
  margin-bottom: 22px;
}

.docs-search input {
  width: 100%;
  height: 38px;
  padding: 0 36px 0 11px;
  border: 1px solid #d4d0c8;
  border-radius: 6px;
  outline: 0;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.84rem;
}

.docs-search input:focus {
  border-color: var(--fuel);
  box-shadow: 0 0 0 3px rgb(242 90 34 / 0.12);
}

.docs-search kbd {
  position: absolute;
  top: 8px;
  right: 9px;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 1px solid #d4d0c8;
  border-radius: 4px;
  background: #f5f3ee;
  color: #7a746a;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.docs-nav-group {
  margin-bottom: 21px;
}

.docs-nav-group h2 {
  margin: 0 0 6px;
  padding: 0 10px;
  color: #7a746a;
  font-size: 0.68rem;
  line-height: 1.3;
  text-transform: uppercase;
}

.docs-nav-link {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 5px 5px 0;
  color: #4f4a43;
  font-size: 0.84rem;
  font-weight: var(--weight-semibold);
  line-height: 1.25;
}

.docs-nav-link:hover {
  background: #efede7;
  color: var(--ink);
}

.docs-nav-link.active {
  border-left-color: var(--fuel);
  background: #fff0e8;
  color: #a2350f;
  font-weight: var(--weight-bold);
}

.docs-filter-empty {
  display: none;
  margin: 8px 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.docs-filter-empty.show {
  display: block;
}

.docs-mobile-nav {
  display: none;
}

.docs-article {
  min-width: 0;
}

.docs-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #777168;
  font-size: 0.76rem;
  font-weight: var(--weight-semibold);
}

.docs-breadcrumbs a:hover {
  color: var(--fuel-strong);
}

.docs-page-header {
  padding-bottom: 30px;
  border-bottom: 1px solid #dcd8d0;
}

.docs-page-header h1 {
  max-width: 700px;
  margin: 0;
  font-size: 2.7rem;
  line-height: 1.02;
}

.docs-page-header > p {
  max-width: 700px;
  margin: 14px 0 0;
  color: #5e584f;
  font-size: 1.06rem;
  font-weight: var(--weight-regular);
  line-height: 1.65;
}

.docs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.docs-tags span {
  padding: 4px 8px;
  border: 1px solid #d8d3cb;
  border-radius: 5px;
  background: #ffffff;
  color: #5d574f;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: var(--weight-bold);
}

.docs-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 8px;
}

.docs-link-card {
  position: relative;
  display: grid;
  gap: 7px;
  min-height: 116px;
  padding: 16px 42px 16px 16px;
  border: 1px solid #d8d3cb;
  border-radius: 7px;
  background: #ffffff;
}

.docs-link-card:hover {
  border-color: var(--fuel);
  box-shadow: 0 8px 20px rgb(17 16 14 / 0.07);
}

.docs-link-card strong {
  font-size: 0.94rem;
}

.docs-link-card span {
  color: #686158;
  font-size: 0.81rem;
  font-weight: var(--weight-regular);
  line-height: 1.45;
}

.docs-link-card b {
  position: absolute;
  top: 16px;
  right: 15px;
  color: var(--fuel-strong);
  font-family: var(--font-mono);
}

.docs-document {
  margin-top: 6px;
}

.docs-section {
  padding: 38px 0 6px;
  scroll-margin-top: 122px;
}

.docs-section + .docs-section {
  margin-top: 18px;
  border-top: 1px solid #dedbd4;
}

.docs-section h2 {
  margin: 0 0 17px;
  font-size: 1.52rem;
  line-height: 1.2;
}

.docs-section > p,
.docs-section li,
.docs-callout p {
  color: #4f4941;
  font-size: 0.96rem;
  font-weight: var(--weight-regular);
  line-height: 1.72;
}

.docs-section > p {
  margin: 0 0 18px;
}

.docs-section a {
  color: #b23a0f;
  font-weight: var(--weight-semibold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.docs-section code,
.docs-table code {
  padding: 2px 5px;
  border: 1px solid #ded8cf;
  border-radius: 4px;
  background: #f1eee7;
  color: #7f2d0f;
  font-family: var(--font-mono);
  font-size: 0.84em;
}

.docs-section ul {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding-left: 22px;
}

.docs-steps {
  display: grid;
  gap: 0;
  margin: 2px 0 20px;
  padding: 0;
  list-style: none;
  counter-reset: docs-step;
}

.docs-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 13px;
  padding-bottom: 22px;
  counter-increment: docs-step;
}

.docs-steps li::before {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: #ffffff;
  color: var(--ink);
  content: counter(docs-step);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: var(--weight-bold);
}

.docs-steps li:not(:last-child)::after {
  position: absolute;
  top: 30px;
  bottom: 0;
  left: 14px;
  width: 1px;
  background: #d8d3cb;
  content: "";
}

.docs-steps strong {
  display: block;
  margin: 3px 0 3px;
  color: var(--ink);
  font-size: 0.94rem;
}

.docs-steps p {
  margin: 0;
}

.docs-callout {
  margin: 20px 0;
  padding: 15px 17px;
  border: 1px solid #c9d9cf;
  border-left: 4px solid var(--green);
  border-radius: 6px;
  background: #eef8f1;
}

.docs-callout.warning {
  border-color: #ead8a9;
  border-left-color: #b86c00;
  background: #fff8e5;
}

.docs-callout > strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.85rem;
}

.docs-callout p {
  margin: 0;
  font-size: 0.88rem;
}

.docs-code-block {
  overflow: hidden;
  margin: 20px 0;
  border: 1px solid #312f2b;
  border-radius: 7px;
  background: #171614;
  color: #f7f2e8;
}

.docs-skill-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 20px 0;
  padding: 16px 18px;
  border: 1px solid #d8d3cb;
  border-radius: 7px;
  background: #ffffff;
  text-decoration: none;
}

.docs-skill-file:hover {
  border-color: var(--fuel);
  box-shadow: 0 8px 20px rgb(17 16 14 / 0.07);
}

.docs-skill-file span {
  display: grid;
  gap: 5px;
}

.docs-skill-file strong {
  color: var(--ink);
  font-size: 0.94rem;
}

.docs-skill-file small {
  color: #686158;
  font-size: 0.81rem;
  font-weight: var(--weight-regular);
}

.docs-skill-file b {
  flex: 0 0 auto;
  color: var(--fuel-strong);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.docs-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 12px 0 15px;
  border-bottom: 1px solid #34312d;
  background: #211f1c;
  color: #bcb5a9;
  font-size: 0.68rem;
  font-weight: var(--weight-bold);
}

.docs-code-header button {
  padding: 4px 8px;
  border: 1px solid #4c4842;
  border-radius: 4px;
  background: #2b2824;
  color: #f7f2e8;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: var(--weight-bold);
}

.docs-code-header button:hover {
  border-color: #81796e;
  background: #35312c;
}

.docs-code-block pre {
  overflow-x: auto;
  margin: 0;
  padding: 18px;
}

.docs-code-block pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
}

.docs-agent-launcher {
  display: grid;
  gap: 14px;
  margin: 20px 0 24px;
}

.docs-subheading {
  margin: 30px 0 8px;
  font-size: 1.05rem;
}

.docs-agent-help-command {
  margin-top: 0;
}

.docs-cli-help {
  overflow: hidden;
  border: 1px solid #312f2b;
  border-radius: 7px;
  background: #171614;
  color: #f7f2e8;
}

.docs-cli-help-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 8px 12px 8px 15px;
  border-bottom: 1px solid #34312d;
  background: #211f1c;
}

.docs-cli-help-header span {
  color: #a9a298;
  font-size: 0.66rem;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
}

.docs-agent-command button {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid #4c4842;
  border-radius: 4px;
  background: #2b2824;
  color: #f7f2e8;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: var(--weight-bold);
}

.docs-agent-command button:hover {
  border-color: #81796e;
  background: #35312c;
}

.docs-cli-help pre {
  max-height: 220px;
  overflow: auto;
  margin: 0;
  padding: 15px 18px;
}

.docs-cli-help pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.55;
}

.docs-agent-picker {
  padding: 16px;
  border: 1px solid #d5d0c8;
  border-radius: 7px;
  background: #ffffff;
}

.docs-agent-picker-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.docs-agent-picker-heading > div {
  display: grid;
  gap: 3px;
}

.docs-agent-picker-heading span {
  font-size: 0.94rem;
  font-weight: var(--weight-heavy);
}

.docs-agent-picker-heading p {
  margin: 0;
  color: #6c655c;
  font-size: 0.78rem;
  font-weight: var(--weight-regular);
}

.docs-agent-picker-heading > strong {
  padding: 4px 7px;
  border: 1px solid #d7d2ca;
  border-radius: 4px;
  background: #f5f3ee;
  color: #6b645a;
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.docs-agent-group + .docs-agent-group {
  margin-top: 13px;
}

.docs-agent-group h3 {
  margin: 0 0 7px;
  color: #777168;
  font-size: 0.66rem;
  text-transform: uppercase;
}

.docs-agent-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.docs-agent-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 10px;
  border: 1px solid #d7d2ca;
  border-radius: 5px;
  background: #faf9f6;
  color: #4f4941;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: var(--weight-bold);
}

.docs-agent-button:hover {
  border-color: #9f988d;
  background: #ffffff;
}

.docs-agent-button.selected {
  border-color: var(--fuel);
  background: #fff0e8;
  color: #9a3210;
  box-shadow: inset 0 0 0 1px rgb(242 90 34 / 0.2);
}

.docs-agent-button > span {
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  color: var(--fuel-strong);
  font-size: 0.68rem;
}

.docs-agent-command {
  display: grid;
  grid-template-columns: minmax(120px, 0.65fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 17px;
  padding: 11px 12px;
  border-radius: 6px;
  background: #1d1b18;
  color: #f8f3ea;
}

.docs-agent-command > div {
  display: grid;
  gap: 2px;
}

.docs-agent-command span {
  color: #9f988d;
  font-size: 0.62rem;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
}

.docs-agent-command strong {
  font-size: 0.75rem;
}

.docs-agent-command > code {
  overflow-x: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #b8f6ce;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  white-space: nowrap;
}

.docs-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid #d8d3cb;
  border-radius: 6px;
  background: #ffffff;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.docs-table th,
.docs-table td {
  padding: 11px 13px;
  border-right: 1px solid #e3dfd8;
  border-bottom: 1px solid #e3dfd8;
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}

.docs-table th:last-child,
.docs-table td:last-child {
  border-right: 0;
}

.docs-table tbody tr:last-child td {
  border-bottom: 0;
}

.docs-table th {
  background: #f0eee8;
  color: #5f594f;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.docs-table td {
  color: #4f4941;
}

.docs-toc {
  padding-left: 16px;
  border-left: 1px solid #dedbd4;
}

.docs-toc > strong {
  color: #5f594f;
  font-size: 0.72rem;
}

.docs-toc nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.docs-toc nav a {
  color: #777168;
  font-size: 0.74rem;
  font-weight: var(--weight-semibold);
  line-height: 1.35;
}

.docs-toc nav a:hover {
  color: var(--fuel-strong);
}

.docs-support-link {
  display: inline-flex;
  margin-top: 22px;
  color: #a2350f;
  font-size: 0.76rem;
  font-weight: var(--weight-bold);
}

.docs-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid #dcd8d0;
}

.docs-pagination a {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 13px 15px;
  border: 1px solid #d8d3cb;
  border-radius: 6px;
  background: #ffffff;
}

.docs-pagination a:hover {
  border-color: var(--fuel);
}

.docs-pagination a.next {
  text-align: right;
}

.docs-pagination span {
  color: #777168;
  font-size: 0.68rem;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
}

.docs-pagination strong {
  font-size: 0.8rem;
}

.result-page,
.policy-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 52px;
}

.result-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 92px);
}

.result-panel {
  width: min(760px, 100%);
  padding: 26px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 14px 14px 0 rgb(17 16 14 / 0.12), var(--shadow-soft);
}

.result-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--green);
  color: var(--paper);
  font-size: 1.8rem;
  font-weight: var(--weight-heavy);
}

.result-panel.canceled .result-mark {
  background: var(--amber);
}

.result-panel h1 {
  margin: 18px 0 10px;
  font-size: 3.2rem;
  line-height: 0.98;
}

.result-panel p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: var(--weight-semibold);
  line-height: 1.45;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 22px;
  border-top: 1px solid var(--steel);
  border-bottom: 1px solid var(--steel);
}

.result-stat {
  display: grid;
  gap: 7px;
  padding: 14px 12px;
  border-right: 1px solid var(--steel);
}

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

.result-stat span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: var(--weight-heavy);
}

.result-stat strong {
  font-family: var(--font-mono);
  font-size: 1.25rem;
}

.result-stat small {
  color: var(--muted);
  font-weight: var(--weight-semibold);
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.policy-page {
  width: min(940px, calc(100% - 32px));
}

.policy-hero {
  padding: 26px 0 20px;
}

.policy-hero h1 {
  margin: 16px 0 10px;
  font-size: 4rem;
  line-height: 0.96;
}

.policy-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
  font-weight: var(--weight-semibold);
  line-height: 1.45;
}

.policy-version {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: var(--weight-bold);
}

.policy-document {
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.policy-document article {
  padding: 20px;
  border-bottom: 1px solid var(--steel);
}

.policy-document article:last-child {
  border-bottom: 0;
}

.policy-document h2 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.policy-document p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-weight: var(--weight-semibold);
  line-height: 1.55;
}

.policy-footer {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 34px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: var(--weight-bold);
}

.policy-footer-links,
.policy-footer-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.policy-footer-links a:hover {
  color: var(--ink);
}

.policy-footer-socials {
  gap: 7px;
}

.policy-footer-social-link {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgb(17 16 14 / 0.16);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
}

.policy-footer-social-link:hover {
  border-color: var(--ink);
  background: #fff8ec;
}

.policy-footer-social-link svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.policy-footer-social-link .npm-wordmark {
  display: block;
  width: 25px;
  height: auto;
}

.app-shell {
  display: grid;
  grid-template-columns: 254px minmax(0, 1fr);
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgb(17 16 14 / 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgb(17 16 14 / 0.03) 1px, transparent 1px),
    var(--bone);
  background-size: 56px 56px, 56px 56px, auto;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 18px;
  border-right: 1px solid var(--ink);
  background:
    linear-gradient(180deg, rgb(242 90 34 / 0.28), transparent 180px),
    var(--sidebar);
  color: var(--ink);
}

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

.sidebar .brand-name span:last-child {
  color: rgb(17 16 14 / 0.56);
}

.side-section {
  margin-top: 26px;
}

.side-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: var(--weight-bold);
}

.side-nav {
  display: grid;
  gap: 5px;
}

.side-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid transparent;
  color: var(--ink-soft);
  font-weight: var(--weight-bold);
}

.side-nav a:hover,
.side-nav a.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.role-switcher {
  display: grid;
  gap: 7px;
}

.role-switcher a {
  display: block;
  padding: 10px;
  border: 1px solid var(--steel-dark);
  background: rgb(255 253 248 / 0.38);
  color: var(--ink-soft);
  font-weight: var(--weight-bold);
}

.role-switcher a.active {
  border-color: var(--ink);
  background: var(--fuel);
  color: var(--ink);
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--steel-dark);
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.45;
}

.app-main {
  min-width: 0;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 0 28px;
  border-bottom: 1px solid var(--steel);
  background: rgb(255 253 248 / 0.88);
  backdrop-filter: blur(16px);
}

.app-title h1 {
  margin: 0;
  font-size: 1.35rem;
}

.app-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: var(--weight-semibold);
}

.app-content {
  display: grid;
  gap: 18px;
  padding: 24px 28px 42px;
}

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

.metric-card {
  min-height: 138px;
  padding: 16px;
  background: var(--paper);
  box-shadow: none;
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: var(--weight-bold);
}

.metric-card strong {
  display: block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 1.8rem;
}

.metric-card small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-weight: var(--weight-semibold);
}

.metric-card.good strong,
.metric-card.good small {
  color: var(--green);
}

.metric-card.warn strong,
.metric-card.warn small {
  color: var(--amber);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
}

.content-grid.reverse {
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
}

.white-panel,
.terminal-panel,
.mini-panel {
  background: var(--paper);
  box-shadow: none;
}

.white-panel {
  overflow: hidden;
}

.white-panel .panel-header,
.terminal-panel .panel-header,
.mini-panel .panel-header {
  border-color: var(--steel);
}

.white-panel .panel-note,
.terminal-panel .panel-note,
.mini-panel .panel-note {
  color: var(--muted);
}

.panel-body {
  padding: 16px;
}

.api-snippet {
  margin: 0;
  padding: 17px;
  overflow-x: auto;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  line-height: 1.75;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  word-break: break-word;
}

.usage-bars {
  display: grid;
  gap: 12px;
}

.usage-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 84px;
  gap: 10px;
  align-items: center;
}

.bar {
  height: 10px;
  overflow: hidden;
  border: 1px solid var(--steel);
  border-radius: 99px;
  background: #f0e6d6;
}

.bar span {
  display: block;
  height: 100%;
  background: var(--fuel);
}

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

.ledger-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  background: #fffaf0;
}

.ledger-item strong {
  display: block;
}

.ledger-item span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.86rem;
}

.ledger-item .amount {
  color: var(--green);
  font-family: var(--font-mono);
  font-weight: var(--weight-bold);
}

.split-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mini-stack {
  display: grid;
  gap: 14px;
}

.mini-panel {
  padding: 16px;
}

.mini-panel h3 {
  margin: 0 0 12px;
}

.mini-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--steel);
}

.mini-stat:last-child {
  border-bottom: 0;
}

.mini-stat span {
  color: var(--muted);
  font-weight: var(--weight-semibold);
}

.mini-stat strong {
  font-family: var(--font-mono);
}

.copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.key-box {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  background: #fffaf0;
  padding: 10px;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
  word-break: break-word;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  display: none;
  max-width: calc(100vw - 44px);
  padding: 12px 14px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
  font-weight: var(--weight-bold);
}

.toast.show {
  display: block;
}

.toast.persistent {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast-close {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ff6b61;
  font: inherit;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

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

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgb(17 16 14 / 0.48);
}

.modal-backdrop.show {
  display: grid;
}

.session-expiry-backdrop {
  z-index: 60;
}

.modal {
  width: min(520px, 100%);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.modal h2 {
  margin: 0;
  padding: 18px;
  border-bottom: 1px solid var(--steel);
}

.modal-body {
  padding: 18px;
}

.modal-body p {
  color: var(--muted);
  line-height: 1.5;
}

.modal-field {
  display: grid;
  gap: 8px;
}

.advertisement-edit-fields {
  display: grid;
  gap: 14px;
  max-height: min(64vh, 680px);
  overflow-y: auto;
  padding-right: 4px;
}

.advertisement-edit-selected-asset {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 10px;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  background: #ffffff;
}

.advertisement-edit-selected-asset img {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  object-fit: contain;
  border: 1px solid var(--steel);
  border-radius: 4px;
  background: #ffffff;
}

.advertisement-edit-selected-asset div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.advertisement-edit-selected-asset span {
  color: var(--muted);
  font-size: 0.8rem;
}

.advertisement-edit-asset-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 8px;
  max-height: 158px;
  overflow-y: auto;
}

.advertisement-edit-asset-option {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 6px;
  border: 1px solid var(--steel);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
}

.advertisement-edit-asset-option.selected {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.advertisement-edit-asset-option img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border: 1px solid var(--steel);
  border-radius: 3px;
  background: #ffffff;
}

.advertisement-edit-asset-option span {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.advertisement-edit-asset-upload .brand-asset-upload-control {
  width: 100%;
}

.modal-field span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: var(--weight-bold);
}

.modal-field input,
.modal-field select {
  min-height: 42px;
}

.modal-actions {
  display: flex;
  justify-content: end;
  gap: 10px;
  padding: 0 18px 18px;
}

@media (max-width: 1040px) {
  .docs-shell {
    grid-template-columns: 210px minmax(0, 760px);
    gap: 34px;
  }

  .docs-toc {
    display: none;
  }

  .hero-grid,
  .hero-split,
  .market-hero,
  .marketplace-grid,
  .conversion-grid,
  .charts-grid,
  .advertiser-top-grid,
  .content-grid,
  .content-grid.reverse {
    grid-template-columns: 1fr;
  }

  .hero-title,
  .hero-headline h1,
  .hero-message h1,
  .market-hero h1 {
    font-size: 3.05rem;
  }

  .hero-headline p {
    font-size: 1.9rem;
  }

  .trust-bar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .market-metric-card {
    flex-basis: clamp(170px, 30vw, 220px);
  }

  .hero-collapsed .hero-proof-card {
    grid-template-columns: minmax(270px, 0.8fr) minmax(0, 1fr);
    gap: 34px;
    padding: 28px 30px 38px;
  }

  .hero-collapsed .hero-headline h1 {
    font-size: 2.75rem;
  }

  .hero-collapsed .hero-headline p {
    font-size: 1.55rem;
  }

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

  .metric-grid,
  .portal-metrics,
  .proof-grid,
  .depot-grid,
  .market-mini-queue,
  .trust-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .marketplace-metrics,
  .backend-summary-grid,
  .empty-state-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .depot-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  body[data-route="home"],
  body[data-route="market"] {
    background: var(--fuel);
  }

  .public-nav {
    align-items: center;
    gap: 14px;
  }

  .public-links {
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  .public-section-links {
    display: inline-flex;
  }

  .header-action-links,
  .header-action-divider,
  .header-icon-link-x,
  .header-icon-link-discord {
    display: none;
  }

  .header-icon-links {
    gap: 4px;
    padding-left: 0;
  }

  .header-icon-link {
    width: 36px;
    height: 36px;
  }

  .docs-route {
    padding-top: 93px;
  }

  .docs-mobile-nav {
    display: block;
    width: min(100% - 32px, 760px);
    margin: 18px auto 0;
    border: 1px solid #d4d0c8;
    border-radius: 6px;
    background: #ffffff;
  }

  .docs-mobile-nav summary {
    padding: 11px 13px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: var(--weight-bold);
  }

  .docs-mobile-nav .docs-navigation {
    padding: 3px 12px 12px;
    border-top: 1px solid #e3dfd8;
  }

  .docs-mobile-nav .docs-nav-group {
    margin: 14px 0;
  }

  .docs-shell {
    display: block;
    width: min(100% - 32px, 760px);
    padding-top: 24px;
  }

  .docs-sidebar {
    display: none;
  }

  .docs-page-header h1 {
    font-size: 2.3rem;
  }

  .docs-link-grid {
    grid-template-columns: 1fr;
  }

  .hero-title,
  .hero-message h1,
  .market-hero h1 {
    font-size: 2.65rem;
  }

  .hero-subtitle,
  .hero-message p,
  .market-hero p {
    font-size: 1.04rem;
  }

  .home-hero::before {
    display: none;
  }

  .field-row,
  .login-grid,
  .compact-auth-panel {
    grid-template-columns: 1fr;
  }

  .market-strip {
    grid-template-columns: 1fr;
  }

  .marketplace-proof-section .charts-grid {
    grid-template-columns: 1fr;
  }

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

  .market-cell {
    border-right: 0;
    border-bottom: 1px solid rgb(255 253 248 / 0.13);
  }

  .market-cell:last-child {
    border-bottom: 0;
  }

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

  .dev-grid,
  .dev-grid.compact {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
  }

  .side-section {
    margin-top: 16px;
  }

  .app-topbar {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }

  .app-content {
    padding: 18px;
  }

  .metric-grid,
  .portal-metrics,
  .proof-grid,
  .depot-grid,
  .market-mini-queue,
  .marketplace-metrics,
  .backend-summary-grid,
  .empty-state-grid,
  .trust-list {
    grid-template-columns: 1fr;
  }

  .advertiser-promotion-panel {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .checkout-payment-actions {
    grid-template-columns: 1fr;
  }

  .backend-subheader {
    align-items: flex-start;
    flex-direction: column;
  }

  .result-stats {
    grid-template-columns: 1fr;
  }

  .result-stat {
    border-right: 0;
    border-bottom: 1px solid var(--steel);
  }

  .result-stat:last-child {
    border-bottom: 0;
  }

  .inference-key-form,
  .inference-key-reveal,
  .inference-key-copy-row {
    grid-template-columns: 1fr;
  }

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

  .data-table {
    min-width: 760px;
  }

  .campaign-picker {
    width: 100%;
    justify-content: space-between;
  }

  .campaign-picker select {
    max-width: min(100%, 240px);
  }

  .marketplace-panel-header,
  .backend-panel-heading,
  .account-management-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .report-range-picker {
    width: 100%;
    justify-content: space-between;
  }

  .range-buttons {
    width: 100%;
  }

  .range-button {
    flex: 1;
  }

  .table-panel {
    overflow-x: auto;
  }

  .login-route {
    background: var(--fuel);
  }

  .compact-auth-route {
    background: var(--fuel);
  }

  .checkout-route {
    padding-top: 132px;
  }

  .result-panel h1,
  .policy-hero h1 {
    font-size: 2.45rem;
  }
}

@media (max-width: 680px) {
  html {
    scroll-behavior: auto;
  }

  .hero-collapsed .hero-proof-card {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 20px;
    padding: 28px;
    text-align: center;
  }

  .hero-flame-button {
    width: min(100%, 360px);
    min-height: 260px;
  }

  .hero-headline {
    max-width: 680px;
    text-align: center;
  }

  .hero-headline p {
    margin: 0 auto;
  }

  .hero-cta-row {
    justify-content: center;
  }

  .hero-flame-svg {
    max-height: 240px;
  }
}

@media (max-width: 720px) {
  .hero-collapsed .hero-proof-card {
    padding: 24px;
  }
}

@media (max-width: 520px) {
  .shell {
    padding-top: 152px;
  }

  .install-header-actions .panel-note {
    display: none;
  }

  .social-auth-actions {
    grid-template-columns: 1fr;
  }

  .public-nav,
  .home-hero,
  .conversion-section,
  .marketplace-section,
  .section,
  .market-page {
    width: min(100% - 22px, 1180px);
  }

  .public-nav {
    flex-direction: row;
    gap: 10px;
    padding: 12px 0;
  }

  .header-icon-link-github,
  .header-icon-link-npm {
    display: none;
  }

  .docs-route {
    padding-top: 72px;
  }

  .docs-mobile-nav,
  .docs-shell {
    width: min(100% - 22px, 760px);
  }

  .docs-page-header h1 {
    font-size: 2rem;
  }

  .docs-page-header > p {
    font-size: 0.96rem;
  }

  .docs-section {
    padding-top: 30px;
  }

  .docs-section h2 {
    font-size: 1.32rem;
  }

  .docs-pagination {
    grid-template-columns: 1fr;
  }

  .docs-cli-help-header {
    align-items: flex-start;
  }

  .docs-agent-picker-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .docs-agent-button {
    flex: 1 1 132px;
    justify-content: center;
  }

  .docs-agent-command {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .docs-agent-command > div {
    grid-column: 1 / -1;
  }

  .checkout-route {
    padding-top: 96px;
  }

  .public-links {
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 6px;
    white-space: nowrap;
  }

  .brand {
    min-width: 0;
    gap: 8px;
  }

  .brand-name span:first-child {
    font-size: 0.92rem;
  }

  .brand-name span:last-child {
    display: none;
  }

  .logo {
    width: 38px;
    height: 38px;
  }

  .nav-link,
  .login-button,
  .sign-up-button {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.88rem;
  }

  .hero-copy {
    padding-top: 18px;
  }

  .hero-title,
  .hero-headline h1,
  .hero-message h1,
  .market-hero h1 {
    font-size: 1.95rem;
  }

  .hero-headline p {
    font-size: 1.25rem;
  }

  .hero-cta-row {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-cta {
    width: 100%;
  }

  .hero-proof-card {
    padding: 18px;
  }

  .trust-bar-section {
    margin-top: -42px;
  }

  .trust-logo-list {
    width: 100%;
  }

  .trust-logo-item {
    justify-content: flex-start;
    text-align: left;
  }

  .market-metric-carousel::before,
  .market-metric-carousel::after {
    width: 52px;
  }

  .market-metric-card {
    flex-basis: calc(100vw - 96px);
    min-height: 94px;
  }

  .marketplace-proof-section .price-chart {
    height: 220px;
  }

  .checkout-total {
    grid-template-columns: 1fr;
  }

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

  .price-chart {
    height: 180px;
    padding: 10px;
  }

  .checkout-total {
    grid-template-columns: 1fr;
  }

  .checkout-total .status {
    justify-self: stretch;
    min-width: 0;
  }

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

  .developer-account {
    justify-content: flex-start;
  }

  .dev-balance-card strong {
    font-size: 2.25rem;
  }

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

  .copy-row,
  .ledger-item {
    grid-template-columns: 1fr;
  }
}

.developer-overview-panel .portal-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.developer-overview-panel .portal-metric {
  min-height: 116px;
}

.field-help {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 6px 0 0;
}

.field-help.danger {
  color: var(--red);
}

.brand-assets-inline {
  display: grid;
  gap: 8px;
}

.brand-asset-auth-prompt {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: var(--weight-semibold);
}

.brand-asset-auth-prompt p {
  margin: 0;
}

.brand-asset-auth-prompt a {
  color: #155eef;
  font-weight: var(--weight-heavy);
}

.checkout-focus-page {
  display: grid;
  gap: 16px;
  width: min(760px, calc(100% - 32px));
  margin: 0 auto 72px;
}

.checkout-focus-header {
  display: grid;
  gap: 8px;
}

.checkout-focus-header h1,
.checkout-focus-header p {
  margin: 0;
}

.brand-asset-upload {
  position: relative;
  display: grid;
  gap: 6px;
}

.brand-asset-file-input {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.brand-asset-upload-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  min-height: 42px;
  padding: 6px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
}

.brand-asset-choose-button {
  flex: 0 0 auto;
}

.brand-asset-upload-status {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: var(--weight-bold);
  white-space: nowrap;
}

.return-top-wrap {
  display: flex;
  justify-content: center;
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 8px 0 0;
}

.return-top-button {
  min-width: 148px;
}

.brand-asset-saved-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  background: #ffffff;
}

.brand-asset-saved-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.brand-asset-saved-header strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.brand-asset-saved-message {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.brand-asset-saved-box.warning {
  border-color: rgb(168 34 24 / 0.45);
  background: var(--red-bg);
}

.brand-asset-saved-box.warning .brand-asset-saved-message {
  color: var(--red);
}

.brand-asset-list {
  display: grid;
  gap: 10px;
  padding: 0;
}

.brand-asset-item {
  align-items: center;
  border: 1px solid var(--steel);
  border-radius: 8px;
  background: #ffffff;
  display: grid;
  gap: 12px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  padding: 10px;
}

.brand-asset-item.selected {
  border-color: rgb(31 122 58 / 0.55);
  background: rgb(31 122 58 / 0.06);
}

.brand-asset-item img {
  background: var(--bone);
  border: 1px solid var(--steel);
  border-radius: 8px;
  height: 44px;
  object-fit: contain;
  width: 44px;
}

.brand-asset-item strong,
.brand-asset-item span {
  display: block;
}

.brand-asset-item span {
  color: var(--muted);
  font-size: 0.82rem;
}

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

.brand-asset-actions .selected-button {
  border-color: rgb(31 122 58 / 0.7);
  background: rgb(31 122 58 / 0.12);
  color: rgb(20 92 43);
}

.sponsor-line-preview-wrap {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.sponsor-line-preview-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: var(--weight-bold);
}

.sponsor-line-preview {
  align-items: center;
  border: 1px solid var(--steel);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
}

.sponsor-line-preview img,
.sponsor-line-preview-placeholder {
  background: var(--bone);
  border: 1px solid var(--steel);
  border-radius: 7px;
  flex: 0 0 30px;
  height: 30px;
  object-fit: contain;
  width: 30px;
}

.sponsor-line-preview-copy {
  align-items: baseline;
  display: flex;
  flex: 1 1 auto;
  gap: 8px;
  min-width: 0;
}

.sponsor-line-preview-copy strong,
.sponsor-line-preview-copy span {
  color: var(--ink);
  font-size: 0.9rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.sponsor-line-preview-copy strong {
  flex: 0 1 auto;
  font-weight: var(--weight-bold);
}

.sponsor-line-preview-copy span {
  color: var(--muted);
  flex: 1 1 auto;
}

.sponsor-line-preview-link {
  align-items: center;
  border: 1px solid var(--steel);
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: var(--weight-bold);
  gap: 5px;
  justify-content: center;
  margin-left: auto;
  min-height: 30px;
  padding: 0 9px;
  text-decoration: none;
}

.sponsor-line-preview-link svg {
  height: 14px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 14px;
}

.sponsor-line-preview-link.disabled {
  color: var(--muted);
  cursor: default;
  opacity: 0.55;
  pointer-events: none;
}

@media (max-width: 720px) {
  .developer-overview-panel .portal-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .credits-status-banner {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .brand-asset-upload,
  .brand-asset-item {
    grid-template-columns: 1fr;
  }

  .brand-asset-actions {
    justify-content: flex-start;
  }

}

@media (max-width: 520px) {
  .sponsor-market-prices {
    display: grid;
  }

  .block-quick-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .developer-overview-panel .portal-metrics {
    grid-template-columns: 1fr;
  }

  .developer-section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .developer-section-actions,
  .developer-section-actions .small-button {
    width: 100%;
  }

  .payout-setup-panel {
    grid-template-columns: 1fr;
  }

  .payout-setup-panel .small-button {
    width: 100%;
  }
}
