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

html {
  scroll-padding-top: 4.75rem; /* sticky .header */
}

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;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/*
 * Landing (/): sticky footer under full-bleed recruitment hero.
 * Do NOT leave empty space *below* the footer.
 */
.site--home .main--home-landing {
  flex: 1 0 auto;
}

.site--home .footer {
  margin-top: auto;
  flex-shrink: 0;
}

.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: center;
  gap: 0.5rem;
  font-weight: 600;
}

.brand-logo {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

.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 0 auto;
  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);
}

/* Outline pill — matches home “See Results” / ghost CTA on dark green */
.btn-see-results {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.25;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-see-results:hover,
.btn-see-results:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
  outline: none;
}

.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 a {
  color: var(--accent, #2563eb);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.page--wide {
  max-width: 1066px; /* was 820px; +30% for lease list / agent ask */
}

.main--ask-full {
  max-width: none;
}

.main--ask-full .page--wide {
  max-width: none;
}

/* Ask AI: wide enough for resume CTAs + accepted line on one row */
.main--ask-full .buy-server-form {
  max-width: 1200px;
}

.main--ask-full .train-model-panel,
.main--ask-full .train-guide {
  max-width: 1200px;
}

.legal-page.page--wide {
  max-width: 960px;
}

.legal-columns-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.25rem 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal-clauses {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.legal-clause {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border, #e2e8f0);
}

.legal-clause-official p,
.legal-clause-plain p,
.legal-section p {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.legal-clause-plain p {
  color: var(--text);
}

.legal-section {
  margin-top: 1.5rem;
}

.legal-section h2 {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
}

.legal-footnote {
  margin-top: 1.75rem;
  font-size: 0.82rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .legal-columns-head,
  .legal-clause {
    grid-template-columns: 1fr;
  }

  .legal-columns-head span:last-child,
  .legal-clause-plain {
    border-top: 1px dashed var(--border, #e2e8f0);
    padding-top: 0.75rem;
  }
}

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

.btn-schedule-consult {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  background: transparent;
  color: #e8f4f0;
  border: 1px solid rgba(232, 244, 240, 0.55);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.btn-schedule-consult:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(232, 244, 240, 0.85);
  color: #fff;
}

@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.rec-hold {
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.22);
}

.inventory-recommendation.rec-neutral {
  background: rgba(255, 255, 255, 0.04);
}

.webtraffic-stats {
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}

.webtraffic-stats .webtraffic-stat-text {
  font-size: 1.05rem;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.webtraffic-meta {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
}

.webtraffic-ip-section {
  margin-top: 1rem;
}

.webtraffic-ip-heading {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.webtraffic-log-range {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.webtraffic-log-range strong {
  color: var(--text);
  font-weight: 600;
}

.webtraffic-ip-table-wrap {
  max-height: 22rem;
  overflow: auto;
}

.webtraffic-ip-table .webtraffic-ip {
  font-size: 0.82rem;
  word-break: break-all;
}

.webtraffic-ip-table .webtraffic-path {
  font-size: 0.82rem;
  max-width: 14rem;
  word-break: break-word;
}

.webtraffic-ip-table .webtraffic-server-response {
  font-size: 0.82rem;
  white-space: nowrap;
}

.webtraffic-class-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.webtraffic-class-badge--scan {
  color: #fca5a5;
  background: rgba(252, 165, 165, 0.12);
  border: 1px solid rgba(252, 165, 165, 0.35);
}

.webtraffic-class-badge--benign {
  color: #6ee7b7;
  background: rgba(110, 231, 183, 0.1);
  border: 1px solid rgba(110, 231, 183, 0.3);
}

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

/* See Results sample analysis modal */
.see-results-backdrop {
  position: fixed;
  inset: 0;
  z-index: 220;
  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);
}

.see-results-modal {
  position: relative;
  width: min(920px, 100%);
  max-height: min(90vh, 960px);
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid rgba(157, 176, 168, 0.35);
  background: #0c1612;
  color: #e8f0ec;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.see-results-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem 0.75rem;
  border-bottom: 1px solid rgba(157, 176, 168, 0.22);
  flex-shrink: 0;
}

.see-results-modal__title {
  margin: 0.2rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 400;
  line-height: 1.2;
  color: #f2f6f4;
}

.see-results-modal__close {
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(157, 176, 168, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #f2f6f4;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.see-results-modal__close:hover,
.see-results-modal__close:focus-visible {
  border-color: #c8f542;
  color: #c8f542;
  outline: none;
}

.see-results-modal__body {
  padding: 1rem 1.2rem 1.35rem;
  overflow: auto;
  min-height: 0;
}

.see-results-modal__summary {
  margin: 0 0 0.85rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #c5d4cc;
}

.see-results-modal__bullets {
  margin: 0 0 1.15rem;
  padding-left: 1.15rem;
  color: #c5d4cc;
  font-size: 0.95rem;
  line-height: 1.5;
}

.see-results-modal__bullets strong {
  color: #f2f6f4;
}

.see-results-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(157, 176, 168, 0.22);
  border-radius: 8px;
}

.see-results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.see-results-table th,
.see-results-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(157, 176, 168, 0.16);
}

.see-results-table th {
  background: rgba(22, 51, 40, 0.85);
  color: #f2f6f4;
  font-weight: 600;
  white-space: nowrap;
}

.see-results-table td {
  color: #c5d4cc;
}

.see-results-table tr:last-child td {
  border-bottom: none;
}

.form-error {
  color: #a32020;
  margin: 0.75rem 0;
}

.form-success {
  color: #1a5c3a;
  margin: 0.75rem 0;
}

.leadgen-resume-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1rem 0 1.25rem;
}

.leadgen-resume-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(22, 51, 40, 0.12);
}

.leadgen-resume-row.is-selected {
  background: rgba(22, 51, 40, 0.04);
}

.leadgen-page textarea {
  width: 100%;
  min-height: 10rem;
  font: inherit;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(22, 51, 40, 0.25);
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.leadgen-page .muted {
  opacity: 0.7;
  font-weight: 400;
}

.leadgen-package-offers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 0.85rem;
  margin: 1rem 0;
}

.leadgen-package-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(22, 51, 40, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.leadgen-package-card.is-matched {
  border-color: rgba(22, 51, 40, 0.45);
}

.leadgen-package-card.is-selected {
  outline: 2px solid rgba(22, 51, 40, 0.55);
}

.leadgen-package-card__badge {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
}

.leadgen-package-card__price {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0.25rem 0 0.5rem;
}

.leadgen-package-card .btn {
  margin-top: auto;
  align-self: stretch;
}

@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-logo {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.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: 1rem;
}

.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: 0;
  max-width: 0;
  min-width: 0;
  height: 0;
  max-height: 0;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  /* Must not stretch the home grid row (was forcing a tall empty band + scroll). */
  align-self: start;
}

/* 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;
  scroll-margin-top: 4.75rem; /* stay clear of sticky .header */
}

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

/* Step 1: paid subscription fields under Accepted: formats note */
.resume-paid-sub-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 0.45rem 0.55rem;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.resume-paid-sub-row--under-accepted {
  margin: 0.15rem 0 0;
  padding: 0;
}

.resume-paid-sub-kicker {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--muted, #9fb3c8);
  white-space: nowrap;
}

.resume-paid-sub-field {
  display: flex;
  flex: 1 1 18rem;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  max-width: 28rem;
  margin: 0;
}

.resume-paid-sub-label {
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted, #9fb3c8);
  white-space: nowrap;
}

.resume-paid-sub-field input {
  flex: 1 1 auto;
  min-width: 12rem;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.28rem 0.45rem;
  font-size: 0.75rem;
}

@media (max-width: 900px) {
  .resume-paid-sub-row {
    flex-wrap: wrap;
    width: 100%;
  }

  .resume-paid-sub-field {
    flex: 1 1 calc(50% - 0.55rem);
    max-width: none;
  }
}

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

/* Keep agent accepted-formats hint on one line (matches CTA row width below). */
.train-accepted-note {
  white-space: nowrap;
  overflow-x: auto;
  max-width: 100%;
  font-size: 0.88rem;
  line-height: 1.35;
}

@media (max-width: 720px) {
  .train-accepted-note {
    white-space: normal;
  }
}

/* Resumes step 1: analyze + buy + schedule forced on one line */
.train-guide-panel .buy-server-actions.buy-server-actions--resume-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  grid-template-columns: unset;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.train-guide-panel .buy-server-actions.buy-server-actions--resume-row .btn {
  grid-column: unset;
  justify-self: unset;
  width: auto;
  max-width: none;
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0.55rem 0.95rem;
  font-size: 0.84rem;
}

@media (max-width: 520px) {
  .train-guide-panel .buy-server-actions.buy-server-actions--resume-row {
    display: flex;
    grid-template-columns: unset;
  }

  .train-guide-panel .buy-server-actions.buy-server-actions--resume-row .btn {
    grid-column: unset;
  }
}

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

.train-path-chooser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0 0 0.85rem;
}

.train-path-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  width: 100%;
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(94, 234, 212, 0.28);
  background: rgba(15, 40, 36, 0.55);
  color: var(--text, #f5f7f6);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.train-path-btn:hover:not(:disabled),
.train-path-btn:focus-visible:not(:disabled) {
  border-color: rgba(94, 234, 212, 0.65);
  outline: none;
}

.train-path-btn--active {
  border-color: rgba(94, 234, 212, 0.85);
  background: rgba(94, 234, 212, 0.12);
  box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.25);
}

.train-path-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.train-path-btn-title {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.25;
}

.train-path-btn-hint {
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--muted, #a7b8b3);
}

.train-doc-category-row {
  margin-bottom: 0.35rem;
}

.train-doc-category-select {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 640px) {
  .train-path-chooser {
    grid-template-columns: 1fr;
  }
}

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

/* Lease ask panel: use full guide width (override .buy-server-form 560px cap). */
.buy-server-form.buy-server-form--lease-full {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

/* Resume step 1 + package buy: full guide width so CTAs are not clipped */
.buy-server-form.buy-server-form--resume-wide {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

.resume-quota-expired-banner {
  margin-top: 0.85rem;
}

.resume-quota-expired-actions {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-start;
}

.train-guide-panel .buy-server-actions.buy-server-actions--resume-row {
  overflow-x: visible;
}

.resume-match-ctas {
  margin-top: 0.75rem;
  gap: 0.65rem;
}

.lease-session-tools {
  width: 100%;
  box-sizing: border-box;
}

/* Lease tool buttons: List, Delinquent, Pay Risk, Projections. */
.lease-tool-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: stretch;
  gap: 0.45rem;
  width: 100%;
  margin-top: 0.35rem;
  box-sizing: border-box;
}

.lease-tool-actions .btn {
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
  padding: 0.45rem 0.55rem;
  font-size: 0.82rem;
}

.lease-tool-actions .btn.lease-tool-btn--active {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  filter: brightness(1.08);
}

/* Beat .action-forms--* .buy-server-row (5rem/8rem) so label + input stay one row. */
.action-form-card .buy-server-row.lease-search-row,
.action-forms--two .action-form-card .buy-server-row.lease-search-row,
.action-forms--two .action-form-card--wide .buy-server-row.lease-search-row,
.action-forms--three .action-form-card .buy-server-row.lease-search-row,
.buy-server-form--lease-full .buy-server-row.lease-search-row,
.action-form-card .buy-server-row.resume-sub-row,
.action-forms--two .action-form-card .buy-server-row.resume-sub-row,
.action-forms--two .action-form-card--wide .buy-server-row.resume-sub-row,
.action-forms--three .action-form-card .buy-server-row.resume-sub-row,
.buy-server-form--lease-full .buy-server-row.resume-sub-row {
  width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.55rem 0.85rem;
  align-items: center;
}

.action-form-card .buy-server-row.lease-search-row > label,
.action-forms--two .action-form-card .buy-server-row.lease-search-row > label,
.action-forms--three .action-form-card .buy-server-row.lease-search-row > label,
.buy-server-form--lease-full .buy-server-row.lease-search-row > label,
.action-form-card .buy-server-row.resume-sub-row > label,
.action-forms--two .action-form-card .buy-server-row.resume-sub-row > label,
.action-forms--three .action-form-card .buy-server-row.resume-sub-row > label,
.buy-server-form--lease-full .buy-server-row.resume-sub-row > label {
  white-space: nowrap;
  padding-top: 0;
  line-height: 1.2;
}

@media (max-width: 520px) {
  .action-form-card .buy-server-row.lease-search-row,
  .action-forms--two .action-form-card .buy-server-row.lease-search-row,
  .action-forms--three .action-form-card .buy-server-row.lease-search-row,
  .action-form-card .buy-server-row.resume-sub-row,
  .action-forms--two .action-form-card .buy-server-row.resume-sub-row,
  .action-forms--three .action-form-card .buy-server-row.resume-sub-row {
    grid-template-columns: max-content minmax(0, 1fr);
  }
}

.buy-server-form--lease-full .buy-server-row {
  width: 100%;
}

.buy-server-form--lease-full .resume-jd-row {
  grid-template-columns: minmax(0, 1fr);
}

.buy-server-form--lease-full .resume-jd-row textarea {
  width: 100%;
  max-width: none;
  min-height: 7rem;
  box-sizing: border-box;
}

.buy-server-form--lease-full .resume-jd-actions {
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
}

.buy-server-form--lease-full .resume-jd-actions .btn {
  grid-column: 1;
  justify-self: start;
  text-align: left;
}

.buy-server-form--lease-full .resume-jd-actions.resume-jd-actions--row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  grid-template-columns: unset;
}

.buy-server-form--lease-full .resume-jd-actions.resume-jd-actions--row .btn {
  grid-column: unset;
  justify-self: unset;
  width: auto;
  flex-shrink: 0;
}

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

.resume-jd-writeup {
  margin-top: 0.35rem;
}

.resume-jd-writeup p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.resume-jd-writeup p:last-child {
  margin-bottom: 0;
}

.resume-jd-writeup strong {
  color: var(--text, #e8eef5);
  font-weight: 650;
}

.resume-match-panel {
  padding-top: 1.1rem;
}

.resume-match-kicker {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.resume-match-hero-row {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  flex-wrap: wrap;
}

.resume-match-ring {
  position: relative;
  width: 6.5rem;
  height: 6.5rem;
  flex: 0 0 auto;
}

.resume-match-ring-svg {
  width: 100%;
  height: 100%;
}

.resume-match-ring-pct {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 750;
  color: var(--text);
}

.resume-match-hero-copy {
  flex: 1 1 14rem;
  min-width: 0;
}

.resume-match-headline {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  line-height: 1.35;
}

.resume-match-pct-accent {
  color: var(--accent);
}

.resume-match-class-line {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.resume-match-skills-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--accent);
  font: inherit;
  font-weight: 650;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.resume-match-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.resume-match-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.86rem;
  color: var(--text);
}

.resume-match-pill strong {
  font-weight: 700;
}

.resume-match-pill--full {
  border-color: rgba(52, 211, 153, 0.45);
  color: #a7f3d0;
}

.resume-match-pill--partial {
  border-color: rgba(251, 191, 36, 0.45);
  color: #fde68a;
}

.resume-match-pill--missing {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

.resume-match-pill-icon {
  font-size: 0.85rem;
  opacity: 0.95;
}

.resume-skills-analysis {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.resume-skills-analysis-title {
  margin: 0 0 0.65rem;
  font-size: 0.98rem;
}

.resume-improve-block {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.resume-improve-ready {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.resume-improve-ready-icon {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(52, 211, 153, 0.18);
  color: #34d399;
  font-weight: 700;
}

.resume-improve-ready h4 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.resume-improve-ready p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.resume-improve-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 720px) {
  .resume-improve-cards {
    grid-template-columns: 1fr;
  }
}

.resume-improve-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.03);
}

.resume-improve-card h5 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
}

.resume-improve-card p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.resume-improve-card-btn {
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  background: transparent;
  font-size: 0.86rem;
  padding: 0.4rem 0.75rem;
}

.resume-optimize-compare {
  margin-top: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.15);
}

.resume-optimize-bar {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.86rem;
  color: var(--muted);
}

.resume-optimize-bar strong {
  color: var(--accent);
}

.resume-optimize-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

@media (max-width: 820px) {
  .resume-optimize-cols {
    grid-template-columns: 1fr;
  }
}

.resume-optimize-col {
  padding: 0.85rem 1rem 1rem;
}

.resume-optimize-col + .resume-optimize-col {
  border-left: 1px solid var(--border);
}

@media (max-width: 820px) {
  .resume-optimize-col + .resume-optimize-col {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}

.resume-optimize-col h6 {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.resume-optimize-col ul {
  margin: 0;
  padding-left: 1.05rem;
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.45;
}

.resume-optimize-col li + li {
  margin-top: 0.35rem;
}

.resume-optimize-added {
  color: #86efac;
}

.resume-optimize-keywords {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.resume-optimize-kw {
  display: inline-block;
  margin: 0.2rem 0.35rem 0 0;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: rgba(52, 211, 153, 0.14);
  color: #86efac;
  font-size: 0.78rem;
}

.resume-cover-cues {
  margin-top: 0.9rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.resume-cover-cues h6 {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
}

.resume-cover-cues ol {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.resume-cover-cues li + li {
  margin-top: 0.35rem;
}

.resume-apply-now-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 0.75rem;
}

.resume-apply-now {
  display: inline-flex;
  align-items: stretch;
  border-radius: 999px;
  overflow: hidden;
  background: #1d6ae5;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.resume-apply-now-main,
.resume-apply-now-chevron {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 650;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.resume-apply-now-main {
  padding: 0.7rem 1.15rem 0.7rem 1.35rem;
  font-size: 0.95rem;
}

.resume-apply-now-chevron {
  padding: 0 0.95rem;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.85rem;
  line-height: 1;
}

.resume-apply-now:hover {
  background: #1558c0;
}

.resume-apply-now-main:disabled,
.resume-apply-now-chevron:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.resume-apply-now-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  min-width: 13.5rem;
  z-index: 5;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0f1a16;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  padding: 0.35rem;
}

.resume-apply-now-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
}

.resume-apply-now-menu-item:hover {
  background: rgba(29, 106, 229, 0.18);
  color: #93c5fd;
}

.lease-results-block {
  width: 100%;
  margin-top: 0.15rem;
}

.lease-results-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 1rem;
  margin: 0 0 0.55rem;
}

.lease-results-count {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--text, #e8eef5);
  line-height: 1.3;
}

.lease-results-filter {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 12rem;
  max-width: 18rem;
  min-width: 10rem;
  margin-left: auto;
}

.lease-results-filter input[type="search"] {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.4rem 2rem 0.4rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text, #e8eef5);
  font: inherit;
  font-size: 0.88rem;
}

.lease-results-filter input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.lease-results-filter input[type="search"]:focus {
  outline: none;
  border-color: rgba(94, 234, 212, 0.55);
}

.lease-results-filter-clear {
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.6rem;
  height: 1.6rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted, #9fb3c8);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.lease-results-filter-clear:hover,
.lease-results-filter-clear:focus-visible {
  color: #5eead4;
  outline: none;
  background: rgba(94, 234, 212, 0.1);
}

.lease-results-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 0.35rem 0 0.25rem;
  border: 1px solid rgba(94, 234, 212, 0.22);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
}

.lease-results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  line-height: 1.35;
}

.lease-results-table--custom-widths {
  table-layout: fixed;
}

.lease-results-table th,
.lease-results-table td {
  padding: 0.45rem 0.55rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

/* Plain header cells (no lease-th-cell flex chrome) keep readable padding. */
.lease-results-table thead th:not(:has(.lease-th-cell)) {
  padding: 0.45rem 0.55rem;
}

.lease-results-table th.col-weight,
.lease-results-table td.col-weight {
  text-align: left;
}

.lease-results-table th.col-score,
.lease-results-table td.col-score {
  text-align: right;
}

.lease-results-table--custom-widths th,
.lease-results-table--custom-widths td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.lease-results-table th {
  position: sticky;
  top: 0;
  font-weight: 600;
  color: var(--muted, #9fb3c8);
  background: rgba(8, 20, 28, 0.95);
  border-bottom-color: rgba(94, 234, 212, 0.28);
  padding: 0;
}

/* Resume JD score table: restore header padding + Weight/Score alignment */
.resume-jd-score-table .lease-results-table th {
  padding: 0.45rem 0.55rem;
}

.resume-jd-score-table .lease-results-table th.col-weight,
.resume-jd-score-table .lease-results-table td.col-weight {
  text-align: left;
}

.resume-jd-score-table .lease-results-table th.col-score,
.resume-jd-score-table .lease-results-table td.col-score {
  text-align: right;
}

.resume-jd-score-table .lease-results-table th.col-summary,
.resume-jd-score-table .lease-results-table td.col-summary {
  text-align: left;
  white-space: normal;
  min-width: 12rem;
  max-width: 28rem;
}

.lease-results-table .lease-th-cell {
  display: flex;
  align-items: stretch;
  position: relative;
  min-width: 0;
  width: 100%;
}

.lease-results-table .lease-th-grip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.35rem 0.2rem 0.35rem 0.35rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.85em;
  line-height: 1;
  opacity: 0.4;
  cursor: grab;
  user-select: none;
}

.lease-results-table .lease-th-grip:hover,
.lease-results-table .lease-th-grip:focus-visible {
  opacity: 1;
  color: #5eead4;
  outline: none;
}

.lease-results-table .lease-th-grip:active {
  cursor: grabbing;
}

.lease-results-table .lease-th--dragging {
  opacity: 0.55;
}

.lease-results-table .lease-th--drop-target {
  box-shadow: inset 3px 0 0 #5eead4;
}

.lease-results-table .lease-th-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0.45rem 0.7rem 0.45rem 0.2rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lease-results-table .lease-th-sort:hover,
.lease-results-table .lease-th-sort:focus-visible {
  color: #5eead4;
  outline: none;
}

.lease-results-table .lease-th-sort--active {
  color: #5eead4;
}

.lease-results-table .lease-sort-arrow {
  flex: 0 0 auto;
  font-size: 0.72em;
  line-height: 1;
  opacity: 0.45;
}

.lease-results-table .lease-th-sort--active .lease-sort-arrow {
  opacity: 1;
}

.lease-results-table .lease-th-resize {
  position: absolute;
  top: 0;
  right: 0;
  width: 7px;
  height: 100%;
  cursor: col-resize;
  z-index: 2;
  touch-action: none;
  user-select: none;
}

.lease-results-table .lease-th-resize:hover,
.lease-results-table .lease-th-resize--active {
  background: rgba(94, 234, 212, 0.35);
}

.lease-results-table tbody tr:last-child td {
  border-bottom: none;
}

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

.lease-results-table a {
  color: #5eead4;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Job matches: fill the ask panel instead of the 560px form cap. */
.job-search-results {
  width: 100%;
  max-width: none;
  margin-top: 1rem;
}

.job-search-results .lease-results-table {
  width: 100%;
  table-layout: fixed;
}

.job-search-results .lease-results-table th,
.job-search-results .lease-results-table td {
  white-space: normal;
  overflow-wrap: anywhere;
}

.job-search-results .lease-results-table th {
  padding: 0.45rem 0.55rem;
}

.job-search-results .lease-results-table th:nth-child(1),
.job-search-results .lease-results-table td:nth-child(1) {
  width: 6%;
}

.job-search-results .lease-results-table th:nth-child(2),
.job-search-results .lease-results-table td:nth-child(2) {
  width: 34%;
}

.job-search-results .lease-results-table th:nth-child(3),
.job-search-results .lease-results-table td:nth-child(3) {
  width: 12%;
}

.job-search-results .lease-results-table th:nth-child(4),
.job-search-results .lease-results-table td:nth-child(4) {
  width: 20%;
}

.job-search-results .lease-results-table th:nth-child(5),
.job-search-results .lease-results-table td:nth-child(5) {
  width: 8%;
}

.job-search-results .lease-results-table th:nth-child(6),
.job-search-results .lease-results-table td:nth-child(6) {
  width: 14%;
}

.job-search-results .lease-results-table th:nth-child(7),
.job-search-results .lease-results-table td:nth-child(7) {
  width: 6%;
}

.jd-eval-table .lease-results-table th,
.jd-eval-table .lease-results-table td {
  white-space: normal;
}

.lease-sqft-report__headline {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text, #e8eef5);
  line-height: 1.4;
}

.lease-demand-metrics {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(94, 234, 212, 0.22);
  background: rgba(0, 0, 0, 0.16);
}

.lease-demand-metrics h4 {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted, #9fb3c8);
}

.lease-demand-metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem 0.75rem;
  margin: 0;
}

.lease-demand-metrics__grid dt {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted, #9fb3c8);
}

.lease-demand-metrics__grid dd {
  margin: 0.15rem 0 0;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--text, #e8eef5);
  font-variant-numeric: tabular-nums;
}

.lease-demand-metrics__takeaways {
  margin: 0.65rem 0 0;
  padding-left: 1.1rem;
}

.lease-demand-metrics__takeaways li {
  margin: 0.2rem 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--text, #e8eef5);
}

@media (max-width: 720px) {
  .lease-demand-metrics__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.lease-sqft-report__sections {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.lease-sqft-report__section h4 {
  margin: 0 0 0.3rem;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted, #9fb3c8);
}

.lease-sqft-report__section ul {
  margin: 0;
  padding-left: 1.1rem;
}

.lease-sqft-report__section li {
  margin: 0.15rem 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text, #e8eef5);
}

.lease-sqft-plot-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin-top: 0.5rem;
  border: 1px solid rgba(94, 234, 212, 0.22);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  padding: 0.35rem;
  box-sizing: border-box;
}

.lease-sqft-plot {
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
}

.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-metrics-list {
  margin: 0.65rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.train-metrics-list strong {
  color: var(--text);
}

.train-drift-panel {
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
}

.train-drift-panel h4 {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
}

.train-drift-panel p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.train-drift-panel--alert {
  border-color: #b45309;
}

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

.train-drift-form h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.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-paypal-actions.buy-model-paypal-actions--row {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

/* Multi-resume gate: PayPal buy left, Schedule on the right. */
.resume-gate-pay-row {
  width: 100%;
  margin-top: 1rem;
  justify-content: flex-start;
}

.resume-gate-pay-row .resume-gate-schedule-btn {
  margin-left: auto;
}

.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 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  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%);
}

.buy-model-paypal-modal {
  position: relative;
  width: min(440px, 100%);
  max-height: none;
}

/* Pin close X to the PayPal checkout card corner (not the viewport). */
.buy-model-paypal-modal .model-modal-header {
  position: relative;
  padding-right: 2.85rem;
}

.buy-model-paypal-modal .model-modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
}

.buy-model-paypal-modal-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/*
 * PayPal Smart Buttons lightbox injects .paypal-checkout-sandbox into <body>.
 * Their default close X sits at the far viewport corner — pull it next to the
 * centered PayPal form (~450×~680 lightbox).
 */
.paypal-checkout-sandbox .paypal-checkout-close,
body .paypal-checkout-sandbox .paypal-checkout-close {
  position: fixed !important;
  top: max(0.5rem, calc(50vh - min(42vh, 340px) - 0.15rem)) !important;
  right: max(0.5rem, calc(50vw - min(225px, 46vw) - 2.75rem)) !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  margin: 0 !important;
}

.buy-model-paypal-modal-body p {
  margin: 0;
  line-height: 1.45;
}

.buy-model-paypal-buttons {
  min-height: 3rem;
  width: 100%;
}

.buy-model-paypal-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

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

.forgot-password-link {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
}

.account-legal-notice {
  max-width: 28rem;
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--muted, #64748b);
}

.account-legal-notice a {
  color: var(--accent, #2563eb);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.forgot-password-link a {
  color: var(--accent, #2563eb);
  text-decoration: none;
}

.forgot-password-link a:hover {
  text-decoration: underline;
}

.account-reset-done {
  max-width: 28rem;
}

.oauth-login {
  max-width: 28rem;
  margin: 0 0 1.25rem;
}

.oauth-login-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.oauth-login-divider::before,
.oauth-login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.oauth-login-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.oauth-login-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.oauth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.oauth-btn:hover:not(:disabled) {
  border-color: #c5c9d1;
  background: #fafafa;
}

.oauth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.oauth-btn-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.oauth-btn-google {
  font-weight: 500;
}

.hcaptcha-row .hcaptcha-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.hcaptcha-host {
  min-height: 78px;
}

/* Homepage captcha gate: blur landing page + centered modal (non-dismissible). */
.homepage-captcha-content--blurred {
  filter: blur(6px);
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
}

body.homepage-captcha-locked {
  overflow: hidden;
}

.homepage-captcha-backdrop {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(4, 12, 10, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.homepage-captcha-modal {
  width: min(420px, 100%);
  padding: 1.35rem 1.25rem 1.5rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #101a18;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.homepage-captcha-title {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
  line-height: 1.25;
}

.homepage-captcha-lead {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.homepage-captcha-widget {
  display: flex;
  justify-content: center;
}

.homepage-captcha-widget .hcaptcha-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: auto;
}

.homepage-captcha-widget .hcaptcha-row > label {
  display: none;
}

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

.ops-account-section {
  max-width: 100%;
}

.ops-account-note {
  margin: 0 0 0.85rem;
}

.ops-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
}

.ops-tab {
  border: 1px solid var(--border);
  background: transparent;
  color: inherit;
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem;
  cursor: pointer;
}

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

.ops-table-wrap {
  overflow-x: auto;
}

.ops-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.ops-table th,
.ops-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--border);
}

.ops-table th {
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.ops-table code {
  font-size: 0.8rem;
  word-break: break-all;
}

.ops-link-btn {
  padding: 0.25rem 0.55rem;
  font-size: 0.82rem;
}

.ops-jd-preview {
  border: 0;
  background: transparent;
  color: var(--accent, #5abf5a);
  padding: 0;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  font: inherit;
  max-width: 14rem;
}

.ops-referrer {
  max-width: 18rem;
  word-break: break-all;
}

.ops-referrer a {
  color: var(--accent, #5abf5a);
}

.ops-modal {
  max-width: min(40rem, 94vw);
}

.ops-modal-list {
  margin: 0;
  padding-left: 1.1rem;
}

.ops-jd-full {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.45;
  max-height: 28rem;
  overflow: auto;
}

.ops-job-toolbar {
  margin: 0 0 0.75rem;
}

.ops-actions-cell {
  white-space: nowrap;
}

.ops-job-form-modal {
  max-width: min(44rem, 96vw);
}

.ops-job-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ops-job-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.88rem;
}

.ops-job-field--check {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.ops-job-field input[type="text"],
.ops-job-field input:not([type]),
.ops-job-field input[type="url"],
.ops-job-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  font: inherit;
}

.ops-job-field textarea {
  resize: vertical;
  min-height: 10rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.4;
}

.ops-job-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}


/* Default `/` recruitment landing — full-bleed hero + focused sections */

.main--home-landing {
  max-width: none;
  width: 100%;
  padding: 0;
  margin: 0;
}

.home-landing {
  --hl-ink: #f2f6f4;
  --hl-muted: #9db0a8;
  --hl-accent: #c8f542;
  --hl-accent-ink: #142018;
  --hl-panel: #163328;
  --hl-deep: #0a1612;
  --hl-line: rgba(200, 245, 66, 0.28);
  color: var(--hl-ink);
}

.home-landing-inner {
  width: min(1080px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* —— Hero: one composition —— */
.home-hero {
  position: relative;
  isolation: isolate;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: start;
  padding: clamp(1.75rem, 4vh, 2.75rem) 0 clamp(2.75rem, 6vh, 4rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 78% 18%, rgba(40, 120, 88, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 12% 88%, rgba(200, 245, 66, 0.12) 0%, transparent 50%),
    linear-gradient(165deg, #0d221c 0%, var(--hl-deep) 48%, #081410 100%);
}

.home-hero__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(105deg, transparent 42%, rgba(10, 22, 18, 0.55) 70%),
    repeating-linear-gradient(
      -12deg,
      transparent 0,
      transparent 28px,
      rgba(200, 245, 66, 0.035) 28px,
      rgba(200, 245, 66, 0.035) 29px
    );
}

.home-hero__stack {
  position: absolute;
  right: max(4vw, 1.5rem);
  top: 14%;
  width: min(42vw, 420px);
  aspect-ratio: 4 / 5;
  z-index: 1;
  animation: home-stack-drift 14s ease-in-out infinite alternate;
}

.home-hero__sheet {
  position: absolute;
  inset: 0;
  border-radius: 4px 18px 4px 4px;
  background: linear-gradient(160deg, #1f4a3a 0%, #123028 55%, #0e241c 100%);
  border: 1px solid rgba(242, 246, 244, 0.12);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.home-hero__sheet::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 14%;
  height: 10%;
  background: rgba(242, 246, 244, 0.14);
  border-radius: 2px;
}

.home-hero__sheet::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 22%;
  top: 32%;
  bottom: 16%;
  background: repeating-linear-gradient(
    to bottom,
    rgba(242, 246, 244, 0.1) 0 2px,
    transparent 2px 18px
  );
  opacity: 0.85;
}

.home-hero__sheet--back {
  transform: translate(18px, -16px) rotate(4deg);
  opacity: 0.55;
  filter: saturate(0.85);
}

.home-hero__sheet--mid {
  transform: translate(8px, -6px) rotate(1.5deg);
  opacity: 0.8;
}

.home-hero__sheet--front {
  transform: none;
}

.home-hero__match {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 10%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--hl-accent), transparent);
  animation: home-match-pulse 2.8s ease-in-out infinite;
  z-index: 2;
}

.home-hero__copy {
  position: relative;
  z-index: 2;
  max-width: min(42rem, 100%);
  padding-bottom: 0.25rem;
  animation: home-hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-hero__brand {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 4.35rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
  color: var(--hl-ink);
}

.home-hero__block {
  margin: 0 0 1.15rem;
}

.home-hero__label {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hl-accent);
}

.home-hero__headline {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 0.7rem;
  color: var(--hl-ink);
  max-width: 34ch;
}

.home-hero__support {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--hl-muted);
  max-width: 42ch;
}

.home-hero__block .home-hero__support {
  margin-bottom: 0;
}

.home-hero__block + .home-hero__actions {
  margin-top: 1.35rem;
}

.home-hero__actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.55rem;
  align-items: center;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.home-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.home-cta:hover {
  transform: translateY(-1px);
}

.home-cta--primary {
  background: var(--hl-accent);
  color: var(--hl-accent-ink);
}

.home-cta--primary:hover {
  background: #d6ff5c;
  color: var(--hl-accent-ink);
}

.home-cta--ghost {
  background: transparent;
  color: var(--hl-ink);
  border: 1px solid rgba(242, 246, 244, 0.28);
}

.home-cta--ghost:hover {
  border-color: var(--hl-accent);
  color: var(--hl-accent);
}

.home-cta--see-results {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  font-weight: 700;
}

.home-cta--see-results:hover,
.home-cta--see-results:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
  outline: none;
}

/* —— Sections —— */
.home-section {
  padding: clamp(3rem, 7vh, 4.75rem) 0;
  border-top: 1px solid rgba(242, 246, 244, 0.06);
}

.home-section--panel {
  background: linear-gradient(180deg, rgba(22, 51, 40, 0.55) 0%, transparent 100%);
}

.home-section__title {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.85rem;
  max-width: 22ch;
}

.home-section__title--packages {
  max-width: none;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .home-section__title--packages {
    white-space: normal;
    max-width: none;
  }
}

.home-section__body {
  margin: 0;
  max-width: 58ch;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--hl-muted);
}

.home-packages {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hl-line);
}

.home-packages li {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(242, 246, 244, 0.08);
  transition: background 0.2s ease, padding-left 0.2s ease;
}

.home-packages li:hover {
  background: rgba(200, 245, 66, 0.04);
  padding-left: 0.35rem;
}

.home-packages__name {
  font-weight: 600;
  font-size: 1.05rem;
}

.home-packages__price {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--hl-accent);
}

.home-packages__detail {
  color: var(--hl-muted);
  font-size: 0.95rem;
  min-width: 7rem;
  text-align: right;
}

.home-section__cta {
  margin-top: 1.75rem;
}

@keyframes home-hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes home-stack-drift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-12px);
  }
}

@keyframes home-match-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleX(0.82);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@media (max-width: 860px) {
  .home-hero {
    min-height: auto;
    align-items: start;
    padding-top: 2.75rem;
  }

  .home-hero__stack {
    position: relative;
    right: auto;
    top: auto;
    width: min(70vw, 280px);
    margin: 0 0 1.75rem auto;
    animation: none;
  }

  .home-hero__copy {
    max-width: none;
  }

  .home-packages li {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }

  .home-packages__detail {
    grid-column: 1 / -1;
    text-align: left;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__copy,
  .home-hero__stack,
  .home-hero__match {
    animation: none;
  }
}

