:root {
  --bg: #0c0f14;
  --bg-elevated: #141a24;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8edf5;
  --muted: #94a3b8;
  --accent: #5eead4;
  --accent-dim: #2dd4bf;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  background: radial-gradient(1200px 600px at 10% -10%, #1a2744 0%, transparent 55%),
    radial-gradient(900px 500px at 90% 0%, #0f3d38 0%, transparent 50%), var(--bg);
  color: var(--text);
  line-height: 1.55;
}

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

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(12, 15, 20, 0.85);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-weight: 600;
}

.brand-mark {
  background: linear-gradient(135deg, var(--accent), #60a5fa);
  -webkit-background-clip: text;
  color: transparent;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.primary-nav {
  display: flex;
  flex: 1;
  gap: 0.15rem;
  flex-wrap: wrap;
  align-items: center;
}

.cta-header {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #042f2e;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav-tab {
  position: relative;
}

.nav-tab-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.15s, background 0.15s;
}

.nav-tab-link:hover,
.nav-tab-link--active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-chevron {
  font-size: 0.65rem;
  opacity: 0.6;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  padding: 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.15s, transform 0.15s;
}

.nav-dropdown--open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown-tagline {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.nav-dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-dropdown-link {
  display: block;
  padding: 0.45rem 0.5rem;
  border-radius: 6px;
  font-size: 0.88rem;
}

.nav-dropdown-link:hover {
  background: rgba(94, 234, 212, 0.12);
  color: var(--accent);
}

.nav-dropdown-link--train {
  color: var(--accent);
  font-weight: 600;
}

.nav-dropdown--wide {
  min-width: 260px;
}

.nav-dropdown-heading {
  margin: 0.65rem 0 0.35rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.nav-dropdown-muted {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.35rem 0.5rem;
}

.nav-submenu {
  position: relative;
}

.nav-submenu-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.nav-submenu-trigger--open,
.nav-submenu:hover > .nav-submenu-trigger {
  background: rgba(94, 234, 212, 0.12);
  color: var(--accent);
}

.nav-submenu-chevron {
  font-size: 0.75rem;
  opacity: 0.85;
}

.nav-submenu-panel {
  display: none;
  position: absolute;
  top: 0;
  left: calc(100% + 6px);
  min-width: 140px;
  padding: 0.5rem;
  margin: 0;
  list-style: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  z-index: 30;
}

.nav-submenu-panel--open {
  display: block;
}

@media (max-width: 720px) {
  .nav-submenu-panel {
    position: static;
    left: auto;
    margin-top: 0.25rem;
    margin-left: 0.5rem;
    box-shadow: none;
  }
}

.nav-dropdown-button {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.nav-tab-link--solo {
  display: inline-flex;
}

.model-result {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.45;
}

.main {
  flex: 1;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.main--compact {
  padding-top: 0.85rem;
  padding-bottom: 2rem;
}

.hero {
  max-width: 720px;
  margin-bottom: 3rem;
}

.hero--home {
  max-width: none;
  width: 100%;
  margin-bottom: 0.65rem;
}

.action-forms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.action-form-card {
  padding: 1.15rem 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  min-width: 0;
}

.action-form-card .deposit-heading {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
}

.action-form-lead {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}

.action-form-card .buy-server-form {
  max-width: none;
}

.action-form-card .buy-server-row {
  grid-template-columns: 6.25rem minmax(0, 1fr);
}

.action-form-card .buy-server-actions {
  grid-template-columns: 6.25rem minmax(0, 1fr);
}

.buy-pos-name-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  min-width: 0;
}

@media (max-width: 960px) {
  .action-forms {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .action-form-card .buy-server-row,
  .action-form-card .buy-server-actions {
    grid-template-columns: 1fr;
  }

  .buy-pos-name-pair {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--accent-dim);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--accent);
  color: #042f2e;
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.card-link {
  font-size: 0.88rem;
  color: var(--accent);
}

.page h1 {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 400;
  margin: 0 0 0.75rem;
}

.page-summary {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 640px;
}

.page-body {
  margin-top: 1.5rem;
  max-width: 680px;
}

.placeholder-banner {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px dashed var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}

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

.muted code {
  font-size: 0.85em;
  color: var(--text);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 1.25rem;
  margin-top: auto;
}

.footer--legal {
  text-align: center;
}

.footer-legal {
  max-width: 720px;
  margin: 0 auto;
}

.footer-legal p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.footer-legal-brand {
  margin-top: 0 !important;
  font-weight: 700;
  color: var(--text) !important;
  font-size: 0.9rem !important;
}

.page--wide {
  max-width: 820px;
}

.marketing-bullets {
  margin: 1.25rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.6;
}

.marketing-bullets li {
  margin-bottom: 0.5rem;
}

.deposit-section {
  margin-top: 0;
  padding: 1.15rem 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.deposit-heading {
  margin: 0 0 0.85rem;
  font-size: 1.35rem;
  line-height: 1.25;
}

.deposit-heading--with-models {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  margin: 0 0 0.85rem;
  font-size: 1.35rem;
  line-height: 1.35;
}

.deposit-heading--with-models .deposit-heading-text {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.deposit-heading-alt {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  font-size: 0.92em;
  color: var(--muted);
}

.deposit-lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.deposit-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 420px;
}

.deposit-form:not(.buy-server-form) label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.deposit-form:not(.buy-server-form) input,
.deposit-form:not(.buy-server-form) select {
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
  line-height: 1.3;
}

.buy-server-form {
  gap: 0.55rem;
  max-width: 560px;
}

.buy-server-row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.55rem 0.85rem;
  align-items: start;
}

.buy-server-form > .buy-server-row > label {
  display: block;
  padding-top: 0.55rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
}

.buy-server-control {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.buy-server-form input,
.buy-server-form select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
  line-height: 1.3;
}

.buy-server-product-note {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--muted);
}

.buy-server-service-label {
  display: block;
}

.buy-server-service-checks {
  margin: 0;
  padding: 0;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.buy-server-service-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
}

.buy-server-service-check input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--accent);
}

.buy-server-actions {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.55rem 0.85rem;
  margin-top: 0.25rem;
}

.buy-server-actions .btn {
  grid-column: 2;
  justify-self: start;
}

.btn-paypal {
  background: #ffc439;
  color: #003087;
  border: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.btn-paypal:hover:not(:disabled) {
  background: #f5b800;
  color: #001c64;
}

.btn-paypal:disabled {
  opacity: 0.7;
}

.btn-buy-model {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  background: #ffc439;
  color: #0a1628;
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.btn-buy-model:hover:not(:disabled) {
  background: #f5b800;
  color: #0a1628;
}

.btn-buy-model:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (max-width: 520px) {
  .buy-server-row,
  .buy-server-actions {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .buy-server-form > .buy-server-row > label {
    padding-top: 0;
  }

  .buy-server-actions .btn {
    grid-column: 1;
  }
}


.deposit-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.deposit-success {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(94, 234, 212, 0.35);
  background: rgba(94, 234, 212, 0.08);
}

.deposit-success h3 {
  margin: 0 0 0.5rem;
}

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

.vendor-po-minimum-line {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--text);
}

.vendor-po-lines-heading {
  margin: 1.5rem 0 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.vendor-po-lines {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vendor-po-line-card h4 {
  margin: 0 0 0.75rem;
}

.vendor-po-total {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
}

.sltp-levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.75rem 1.25rem;
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
  border-radius: 12px;
  background: #eef8f4;
  border: 1px solid #d4ebe3;
}

.sltp-level-label {
  font-size: 0.95rem;
  color: var(--text);
}

.sltp-level-value {
  font-weight: 600;
  color: #1a6fb5;
}

.sltp-max-invest {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  padding: 0.85rem 0;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.sltp-max-invest-label {
  font-weight: 700;
  color: var(--text);
}

.sltp-max-invest-value {
  color: #1a6fb5;
}

.sltp-max-invest-value strong {
  font-weight: 600;
}

.sltp-max-invest-cap {
  color: var(--muted);
  font-size: 0.88rem;
}

.sltp-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 1rem 0 1.25rem;
}

.sltp-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
}

.sltp-onoff {
  display: inline-block;
  min-width: 2.25rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sltp-onoff--on {
  background: #d4f0e4;
  color: #0d6b42;
}

.sltp-onoff--off {
  background: #eee;
  color: var(--muted);
}

.sltp-secondary-stats {
  margin-top: 1rem;
}

.sltp-prob-hint {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 400;
}

.model-run-title {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.model-run-error {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid #e8b4b4;
  background: #fff5f5;
  color: #8b2e2e;
  margin: 1rem 0;
}

.stock-stickers {
  margin-bottom: 1.25rem;
}

.stock-stickers-label {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.stock-stickers-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stock-sticker {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.stock-sticker:hover:not(:disabled) {
  border-color: #2a9d8f;
}

.stock-sticker--active {
  border-color: #2a9d8f;
  background: #e8f7f4;
  box-shadow: 0 0 0 1px #2a9d8f;
}

.stock-sticker:disabled {
  opacity: 0.6;
  cursor: wait;
}

.stock-sticker-symbol {
  font-weight: 700;
  font-size: 0.95rem;
}

.stock-sticker-name {
  font-size: 0.72rem;
  color: var(--muted);
}

.train-promo {
  margin: 2rem 0 1.5rem;
  padding: 1.5rem 1.75rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, #0f1f1c 0%, #132a26 100%);
  color: #e8f4f1;
}

.train-promo--compact {
  margin-top: 1.75rem;
  padding: 1.25rem 1.5rem;
}

.train-promo--compact .train-promo-title {
  font-size: 1.1rem;
}

.train-promo--compact .train-promo-steps {
  display: none;
}

.train-promo-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #5ec4b0;
}

.train-promo-title {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  color: #fff;
}

.train-promo-lead {
  margin: 0 0 1rem;
  color: #b8d4ce;
  max-width: 42rem;
}

.train-promo-steps {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  color: #c5ddd8;
}

.train-promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.train-promo .btn-ghost {
  border-color: #5ec4b0;
  color: #a8e6d8;
}

.order-lines-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.88rem;
}

.order-lines-table th,
.order-lines-table td {
  padding: 0.5rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.order-lines-table th {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.order-lines-table tfoot td {
  border-bottom: none;
  padding-top: 0.75rem;
}

  max-width: 820px;
}

.model-upstream-line {
  font-size: 0.88rem;
}

.inventory-report {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.inventory-report-kicker {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dim);
}

.inventory-report-title {
  margin: 0.35rem 0 0;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 400;
}

.inventory-report-meta {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.inventory-product-card {
  padding: 1.25rem 1.35rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.inventory-product-name {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.inventory-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.inventory-stat dt {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.inventory-stat dd {
  margin: 0.25rem 0 0;
  font-size: 1.35rem;
  font-weight: 600;
}

.inventory-stat--highlight dd {
  color: var(--accent);
}

.delta-up {
  color: #6ee7b7;
}

.delta-down {
  color: #fca5a5;
}

.inventory-recommendation {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

.inventory-recommendation.rec-increase {
  background: rgba(94, 234, 212, 0.08);
  border-color: rgba(94, 234, 212, 0.25);
}

.inventory-recommendation-badge {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
  color: var(--accent);
}

.inventory-recommendation p {
  margin: 0;
  font-size: 0.95rem;
}

.inventory-range h4 {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.inventory-range p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.inventory-risks {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.model-raw-details {
  margin-top: 1.5rem;
}

.model-raw-details summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .primary-nav {
    order: 3;
    width: 100%;
  }
  .cta-header {
    margin-left: auto;
  }
}


/* Appended by build.mjs — keep writable (index.css may be root-owned). */

/* Teal marketplace palette (nav + body) — matches ecommerce top-nav guide */
:root {
  --bg: #062e28;
  --bg-elevated: #0c453c;
  --border: rgba(255, 255, 255, 0.14);
  --text: #f4fffc;
  --muted: #b7d4ce;
  --accent: #7dd3c7;
  --accent-dim: #4db8a8;
  --nav-bg: #0e6251;
  /* Hero band: top of gradient → bottom (darker) */
  --nav-band-top: #0c5648;
  --nav-band-mid: #0a4a3e;
  --nav-band: #083b32;
  --nav-control: #1f7a6c;
  --nav-control-hover: #259081;
}

body {
  background:
    radial-gradient(1100px 520px at 8% -12%, #1a7a6c 0%, transparent 55%),
    radial-gradient(900px 480px at 92% 0%, #0e6251 0%, transparent 52%),
    var(--bg);
  color: var(--text);
}

.header {
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.22);
  backdrop-filter: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.brand-mark {
  background: none;
  -webkit-background-clip: unset;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-text {
  color: #ffffff;
  font-weight: 600;
}

.nav-tab-link {
  color: rgba(255, 255, 255, 0.88);
  border-radius: 8px;
}

.nav-tab-link:hover,
.nav-tab-link--active {
  color: #ffffff;
  background: var(--nav-control);
}

.cta-header {
  border-radius: 8px;
  background: var(--nav-control);
  color: #ffffff;
  font-weight: 600;
}

.cta-header:hover {
  background: var(--nav-control-hover);
  color: #ffffff;
}

.nav-dropdown,
.nav-submenu-panel {
  background: #0c453c;
  border-color: rgba(255, 255, 255, 0.14);
}

/*
 * Stock Volatility flyout: no dead gap.
 * The flyout overlaps the parent row and uses left padding as the mouse bridge.
 */
.nav-tab--ai-models .nav-submenu {
  position: relative;
  overflow: visible;
}

.nav-tab--ai-models .nav-submenu-flyout {
  display: none;
  position: absolute;
  left: calc(100% - 10px);
  top: -6px;
  z-index: 60;
  /* ~1/4"+ bridge so moving right never leaves a hoverable area */
  padding: 6px 8px 6px 28px;
  box-sizing: border-box;
}

.nav-tab--ai-models .nav-submenu-flyout--open {
  display: block;
}

.nav-tab--ai-models .nav-submenu-flyout .nav-submenu-panel,
.nav-tab--ai-models .nav-submenu-flyout .nav-submenu-panel--open {
  position: static;
  display: block;
  left: auto;
  top: auto;
  margin: 0;
  min-width: 140px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.nav-tab--ai-models .nav-submenu-panel::before {
  content: none;
  display: none;
}

.nav-dropdown.nav-dropdown--wide {
  padding: 0.75rem;
  overflow: visible;
}

.nav-tab--ai-models .nav-dropdown--open {
  overflow: visible;
}

.nav-dropdown-link:hover,
.nav-submenu-trigger--open,
.nav-submenu:hover > .nav-submenu-trigger,
.nav-submenu--open > .nav-submenu-trigger {
  background: rgba(125, 211, 199, 0.16);
  color: var(--accent);
}

@media (max-width: 720px) {
  .nav-tab--ai-models .nav-submenu-flyout {
    position: static;
    left: auto;
    top: auto;
    padding: 0.25rem 0 0 0.75rem;
  }
}

.action-form-card,
.deposit-form,
.model-result {
  border-color: rgba(255, 255, 255, 0.12);
}

/* Home landing: three equal cards (server | POS | train) */
.main--home-actions {
  max-width: 1440px;
  padding-top: 0.75rem;
  padding-bottom: 2.5rem;
}

.hero--home {
  max-width: none;
  width: 100vw;
  margin: 0 0 0.45rem;
  margin-left: calc(50% - 50vw);
  padding: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    180deg,
    var(--nav-band-top) 0%,
    var(--nav-band-mid) 48%,
    var(--nav-band) 100%
  );
  border-bottom: 1px solid rgba(0, 0, 0, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.home-offerings {
  list-style: none;
  margin: 0;
  padding: 0.55rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  border-top: 1px solid rgba(0, 0, 0, 0.22);
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.18) 100%
  );
}

.home-offerings > li {
  position: relative;
  margin: 0;
  padding: 0.35rem 1.5rem 0.35rem 0.25rem;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.2vw, 1.55rem);
  font-weight: 400;
  line-height: 1.2;
  color: rgba(244, 255, 252, 0.92);
  text-align: center;
}

.home-offerings-num {
  color: inherit;
  font-family: var(--serif);
  font-size: 1em;
  font-weight: 400;
  margin-right: 0.2rem;
}

.home-offerings-arrow {
  position: absolute;
  right: -0.15rem;
  top: 50%;
  transform: translate(50%, -50%);
  color: var(--accent);
  font-size: 1.15rem;
  font-family: var(--sans);
  user-select: none;
}

.action-forms.action-forms--three,
.action-forms.action-forms--two {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: start;
  width: 100%;
}

/* Card #1 full width; card #2 collapsed to 1px (hidden for now) */
.action-forms.action-forms--two:has(.action-form-card--minimized) {
  grid-template-columns: minmax(0, 1fr) 1px;
  gap: 0;
}

.action-forms--two .action-form-card--max {
  grid-column: 1;
  width: 100%;
  max-width: none;
}

.action-forms--two .action-form-card--minimized {
  grid-column: 2;
  width: 1px;
  max-width: 1px;
  min-width: 1px;
  padding: 0;
  margin: 0;
  border: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* Product card = width of offerings 1 + 2; train card = offering 3 */
.action-forms--two .action-form-card--wide {
  grid-column: span 2;
}

.action-forms--two .action-form-card--wide .buy-server-form {
  max-width: none;
  width: 100%;
}

.action-forms--two .action-form-card--wide .buy-server-row,
.action-forms--two .action-form-card--wide .buy-server-actions {
  grid-template-columns: 8rem minmax(0, 1fr);
}

.action-forms--three .action-form-card,
.action-forms--two .action-form-card {
  padding: 0.95rem 1rem;
  min-width: 0;
}

.action-forms--three .action-form-card .deposit-heading,
.action-forms--two .action-form-card .deposit-heading {
  font-size: 1.05rem;
  line-height: 1.25;
}

.action-forms--three .action-form-card .buy-server-row,
.action-forms--three .action-form-card .buy-server-actions,
.action-forms--two .action-form-card:not(.action-form-card--wide) .buy-server-row,
.action-forms--two .action-form-card:not(.action-form-card--wide) .buy-server-actions {
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 0.45rem 0.55rem;
}

.action-forms--three .action-form-lead,
.action-forms--two .action-form-lead {
  font-size: 0.82rem;
  margin-bottom: 0.7rem;
}

.action-form-steps {
  margin: 0 0 0.85rem;
  padding-left: 1.2rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.action-form-steps li {
  margin-bottom: 0.25rem;
}

.action-forms--two .action-form-steps,
.action-forms--three .action-form-steps {
  font-size: 0.82rem;
  margin-bottom: 0.7rem;
}

.train-guide {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
}

.train-guide-step {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.train-guide-step--open {
  border-color: rgba(94, 234, 212, 0.35);
}

.train-guide-tab-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 2ch;
  row-gap: 0.35rem;
  padding: 0.7rem 0.85rem;
}

.train-guide-tab-row .train-guide-tab {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  padding: 0;
}

.train-example-data-link {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: 600;
  white-space: nowrap;
}

.train-guide-tab {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  width: 100%;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.train-guide-tab:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.train-guide-num {
  color: var(--accent-dim);
  flex-shrink: 0;
}

.train-guide-panel {
  padding: 0 0.85rem 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.train-guide-panel .buy-server-form {
  margin-top: 0.65rem;
}

.train-guide-panel .buy-server-control {
  align-items: flex-start;
}

.train-guide-panel .buy-server-control input[type="file"] {
  margin: 0;
  padding: 0;
  display: block;
}

.train-upload-label-spacer {
  display: block;
  padding-top: 0.55rem;
}

.train-sample-link {
  margin: 0.35rem 0 0;
  padding: 0;
  text-align: left;
}

.train-sample-link .linkish {
  display: inline;
  text-align: left;
  white-space: normal;
}

.train-model-panel--compact .train-guide-tab {
  font-size: 0.84rem;
  padding: 0.6rem 0.75rem;
}

.train-model-panel--compact .train-guide-tab-row {
  padding: 0.6rem 0.75rem;
}

.train-guide-tab-row .train-guide-tab,
.train-model-panel--compact .train-guide-tab-row .train-guide-tab {
  padding: 0;
}

.train-model-panel--compact .train-guide-panel {
  padding: 0 0.75rem 0.75rem;
}

.form-disclaimer {
  margin: 0.15rem 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(94, 234, 212, 0.22);
  background: rgba(94, 234, 212, 0.06);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.form-disclaimer--under-select {
  margin-top: 0.45rem;
  max-width: 36rem;
}

.req-star {
  margin-left: 0.2rem;
  color: #f87171;
  font-weight: 700;
}

.field-error {
  margin: 0.3rem 0 0;
  color: #f87171;
  font-size: 0.78rem;
  line-height: 1.35;
}

.buy-server-control input[aria-invalid="true"],
.buy-server-control select[aria-invalid="true"],
.buy-server-row > input[aria-invalid="true"],
.buy-server-row > select[aria-invalid="true"],
.buy-pos-name-pair input[aria-invalid="true"] {
  border-color: rgba(248, 113, 113, 0.75);
}

button.linkish {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  cursor: pointer;
}

button.linkish:hover:not(:disabled),
button.linkish:focus-visible:not(:disabled) {
  color: var(--accent-dim);
  outline: none;
}

button.linkish:disabled {
  opacity: 0.65;
  cursor: wait;
}

.action-form-card .train-model-panel {
  margin-top: 0;
}

.action-form-card .train-model-panel .deposit-form {
  max-width: none;
}

.train-model-panel--compact .train-results .inventory-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.train-model-panel--compact .train-results code {
  word-break: break-all;
  font-size: 0.75rem;
}

.train-step {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.train-target-select {
  width: 200px;
  max-width: 100%;
  box-sizing: border-box;
}

.train-results {
  margin-top: 1.25rem;
}

.train-verdict {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.train-verdict h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.train-verdict > p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.train-verdict--good {
  border-color: rgba(94, 234, 212, 0.35);
  background: rgba(94, 234, 212, 0.08);
}

.train-verdict--warn {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.07);
}

.train-verdict--bad {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.08);
}

.train-corr-box {
  margin: 0 0 0.85rem;
}

.train-corr-list {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}

.train-corr-list li {
  margin: 0.2rem 0;
}
}

.train-verdict-warn {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.train-api-box {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.train-api-box h4 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.train-predict-form {
  margin-top: 0.75rem;
}

.train-predict-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  min-width: 0;
  overflow-x: auto;
}

.train-predict-heading {
  margin: 0;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 600;
}

.train-api-box h4.train-predict-heading {
  margin: 0;
}

.train-predict-field {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.train-predict-field label {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
}

.train-predict-submit {
  flex-shrink: 0;
}

.train-predict-input {
  width: 10ch;
  max-width: 10ch;
  box-sizing: content-box;
}

.train-predict-result {
  margin-top: 0.85rem;
}

.train-predict-result-line {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  min-width: 0;
}

.train-predict-result-title {
  margin: 0;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 600;
}

.train-predict-result-text {
  margin: 0;
  min-width: 0;
  font-size: 0.9rem;
  line-height: 1.35;
}

.train-predict-buy-row {
  margin-top: 0.65rem;
}

.buy-package-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  max-width: 100%;
}

.buy-package-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  padding: 0.6rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.buy-package-card:hover {
  border-color: rgba(94, 234, 212, 0.28);
}

.buy-package-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.buy-package-card--selected {
  border-color: rgba(94, 234, 212, 0.45);
  background: rgba(94, 234, 212, 0.08);
}

.buy-package-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem;
  min-width: 0;
}

.buy-package-card-title {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.buy-package-card-toggle {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.buy-package-card-toggle:hover,
.buy-package-card-toggle:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.buy-package-card-chevron {
  display: block;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.15s ease;
}

.buy-package-card-chevron--up {
  transform: rotate(-135deg) translateY(1px);
}

.buy-package-see-more {
  margin: 0.35rem 0 0;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 500;
  text-align: left;
}

.buy-package-details {
  margin: 0.45rem 0 0;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.buy-package-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 0.45rem;
  padding: 0.12rem 0;
  font-size: 0.72rem;
  line-height: 1.35;
}

.buy-package-detail-row dt {
  margin: 0;
  color: var(--muted);
  font-weight: 400;
}

.buy-package-detail-row dd {
  margin: 0;
  text-align: right;
  color: var(--text);
  font-weight: 500;
}

.buy-model-access-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  margin-top: 0.75rem;
}

.action-form-card .buy-server-actions.buy-model-access-actions,
.action-forms--two .action-form-card .buy-server-actions.buy-model-access-actions,
.action-forms--three .action-form-card .buy-server-actions.buy-model-access-actions {
  display: flex;
  grid-template-columns: unset;
  gap: 0;
}

.buy-model-access-actions .btn,
.buy-model-access-actions .btn-buy-model {
  grid-column: unset;
  justify-self: unset;
  width: auto;
  max-width: none;
  flex-shrink: 0;
}

.buy-model-paypal-actions {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.buy-model-contact-fields {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1rem;
  max-width: 28rem;
}

.buy-model-contact-row {
  display: flex;
}

.buy-model-contact-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--color-border, #3a4a3a);
  border-radius: 0.4rem;
  background: var(--color-input-bg, #0e1f0e);
  color: var(--color-text, #d6f0d6);
  font-size: 0.95rem;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.15s;
}

.buy-model-contact-input::placeholder {
  color: var(--color-text-muted, #6b8f6b);
}

.buy-model-contact-input:focus {
  border-color: var(--color-accent, #5abf5a);
}

.buy-model-paypal-note {
  margin: 0.15rem 0 0;
  max-width: 28rem;
}

.train-predict-buy-row.buy-model-access-actions {
  margin-top: 0.65rem;
}

.model-try-panel {
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

.model-try-title {
  margin: 0 0 0.55rem;
  font-size: 1rem;
}

.model-try-api {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  align-items: baseline;
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
}

.model-try-api--muted {
  color: var(--muted);
}

.model-try-api-label {
  flex: 0 0 auto;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.model-try-api code {
  word-break: break-all;
  font-size: 0.8rem;
}

.model-try-form {
  margin-top: 0.75rem;
  max-width: none;
}


.train-subhead {
  margin: 1rem 0 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.train-feature-list,
.train-warnings {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.train-promo {
  margin-top: 2rem;
  padding: 1.25rem 1.35rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(94, 234, 212, 0.06);
}

.train-promo--compact {
  margin-top: 1.5rem;
}

.train-promo-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.train-promo-title {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.15rem;
}

.train-promo-lead {
  margin: 0 0 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.train-promo-steps {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.train-promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

@media (max-width: 900px) {
  .action-forms.action-forms--three,
  .action-forms.action-forms--two {
    grid-template-columns: 1fr;
  }

  .action-forms.action-forms--two:has(.action-form-card--minimized) {
    grid-template-columns: 1fr;
  }

  .action-forms--two .action-form-card--minimized {
    display: none;
  }

  .action-forms--two .action-form-card--wide {
    grid-column: auto;
  }

  .action-forms--three .action-form-card .buy-server-row,
  .action-forms--three .action-form-card .buy-server-actions,
  .action-forms--two .action-form-card .buy-server-row,
  .action-forms--two .action-form-card .buy-server-actions {
    grid-template-columns: 1fr;
  }

  .home-offerings {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .home-offerings > li {
    text-align: left;
    padding: 0.2rem 0;
  }

  .home-offerings-arrow {
    display: none;
  }
}

.example-models {
  margin: 0 0 1.15rem;
  padding: 0 0 0.95rem;
  border-bottom: 1px solid var(--border);
  border-top: none;
}

.example-models--inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  border: none;
  vertical-align: middle;
}

.example-models-select-inline {
  max-width: min(100%, 22rem);
  box-sizing: content-box;
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.2;
  vertical-align: middle;
}

.example-models-dropdown-row {
  margin: 0;
  align-items: center;
  grid-template-columns: max-content max-content !important;
}

.example-models-dropdown-row > label {
  white-space: nowrap;
  padding-top: 0 !important;
  line-height: 1.2;
}

.example-models-dropdown-row .buy-server-control {
  width: max-content;
  max-width: 100%;
}

.example-models-dropdown-row select {
  max-width: 100%;
  box-sizing: content-box;
}

.example-models-muted {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.example-models--inline .example-models-muted {
  margin: 0;
}

.model-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4vh 1rem 2rem;
  overflow: auto;
  background: rgba(4, 8, 14, 0.72);
  backdrop-filter: blur(4px);
}

.model-modal {
  position: relative;
  width: min(720px, 100%);
  max-height: min(88vh, 920px);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #10161f;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.model-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.model-modal-title {
  margin: 0.15rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 400;
  line-height: 1.2;
}

.model-modal-close {
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.model-modal-close:hover,
.model-modal-close:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.model-modal-body {
  padding: 1rem 1.25rem 1.35rem;
  overflow: auto;
  min-height: 0;
}

.train-sample-data-modal {
  width: min(960px, 100%);
}

.train-sample-data-body {
  padding-top: 0.75rem;
}

.train-sample-table-wrap {
  overflow: auto;
  max-height: min(70vh, 640px);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
}

.train-sample-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  line-height: 1.35;
}

.train-sample-table th,
.train-sample-table td {
  padding: 0.35rem 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  white-space: nowrap;
}

.train-sample-table th {
  position: sticky;
  top: 0;
  background: #151c28;
  color: var(--accent-dim);
  font-weight: 600;
  z-index: 1;
}

.train-sample-table tbody tr:hover td {
  background: rgba(94, 234, 212, 0.06);
}

/* Header: language / currency / favorites / login */
.header-inner {
  gap: 1rem;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  margin-left: auto;
}

.header-tool {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.header-tool-select,
.header-tool-btn {
  appearance: none;
  border: none;
  border-radius: 8px;
  background: var(--nav-control);
  color: #ffffff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.header-tool-select {
  padding: 0.48rem 1.55rem 0.48rem 0.7rem;
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%),
    linear-gradient(135deg, #fff 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.header-tool-select:hover,
.header-tool-btn:hover,
.header-tool-btn--active {
  background-color: var(--nav-control-hover);
  color: #ffffff;
}

.header-tool-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.48rem 0.7rem;
  text-decoration: none;
}

.header-tool-icon {
  display: block;
  flex-shrink: 0;
}

.header-tool-badge {
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #ffffff;
  color: var(--nav-bg);
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-tool-label {
  white-space: nowrap;
}

.header-tool-muted {
  color: rgba(255, 255, 255, 0.7);
  padding: 0.48rem 0.55rem;
  font-size: 0.82rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.account-page h2 {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
}

.account-section {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.account-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.account-section-head a {
  color: var(--accent);
  font-size: 0.9rem;
}

.account-form {
  max-width: 28rem;
}

.account-pref-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.65rem;
  max-width: 22rem;
}

.account-pref-row label {
  min-width: 5.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.account-pref-row select {
  flex: 1;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  padding: 0.45rem 0.65rem;
  font: inherit;
}

.account-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.account-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.account-list a {
  color: var(--accent);
  font-weight: 600;
}

.account-list span {
  color: var(--muted);
  font-size: 0.85rem;
}

.account-muted,
.account-switch {
  color: var(--muted);
  font-size: 0.92rem;
}

.account-switch a {
  color: var(--accent);
}

.account-ok {
  margin: 0.65rem 0 0;
  color: var(--accent);
  font-size: 0.9rem;
}

.favorites-grid {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.favorites-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
}

.favorites-title {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.favorites-title:hover {
  color: var(--accent);
}

.favorites-item p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.favorites-toggle {
  flex-shrink: 0;
}

.favorites-toggle--on {
  background: var(--accent) !important;
  color: #042f2e !important;
}

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .primary-nav {
    order: 3;
    flex-basis: 100%;
  }

  .header-tool-label {
    display: none;
  }
}


/* Customer model predict landing (/models/predict?session=…) */
.customer-model-predict-card {
  margin-top: 0.75rem;
}

.customer-model-predict-meta {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
}

.customer-model-predict-api {
  margin-top: 1rem;
  font-size: 0.88rem;
}

.customer-model-predict-api-pre {
  margin: 0.5rem 0;
  padding: 0.75rem 0.9rem;
  overflow-x: auto;
  border-radius: 0.4rem;
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.8rem;
  line-height: 1.4;
  white-space: pre-wrap;
}

.customer-model-predict-back {
  margin-top: 1.25rem;
}

.customer-model-predict-scripts {
  margin-top: 1.25rem;
}

.customer-snippet-lang-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.75rem 0 0.65rem;
}

.customer-snippet-lang {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border, #3a4a3a);
  background: transparent;
  color: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.customer-snippet-lang--active,
.customer-snippet-lang[aria-selected="true"] {
  border-color: var(--accent, #5abf5a);
  background: rgba(90, 191, 90, 0.15);
}

.customer-snippet-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}

.customer-snippet-status {
  font-size: 0.85rem;
  color: var(--muted, #9bb89b);
}

.customer-snippet-pre {
  max-height: 28rem;
  overflow: auto;
}

