:root {
  color-scheme: dark;
  --portal-bg: #0b1020;
  --portal-surface: rgba(11, 17, 36, 0.88);
  --portal-surface-2: rgba(20, 29, 56, 0.9);
  --portal-surface-3: rgba(10, 15, 31, 0.7);
  --portal-ink: #f5f7ff;
  --portal-muted: #a7b2d8;
  --portal-line: rgba(122, 140, 189, 0.24);
  --portal-accent: #31c0e6;
  --portal-accent-2: #dd2df9;
  --portal-accent-3: #7c83ff;
  --portal-success: #5de0a6;
  --portal-warning: #ffb454;
  --portal-danger: #ff7a90;
  --portal-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --portal-soft-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

/* SolarNova dark gradient refresh */
body.portal-body.product-landing,
body.portal-body:not(.product-landing) {
  color-scheme: dark;
  --portal-bg: #0b1020;
  --portal-surface: rgba(9, 14, 31, 0.86);
  --portal-surface-2: rgba(14, 21, 44, 0.9);
  --portal-surface-3: rgba(255, 255, 255, 0.055);
  --portal-ink: #f6f8ff;
  --portal-muted: #b0bdd7;
  --portal-line: rgba(255, 255, 255, 0.13);
  --portal-accent: #31c0e6;
  --portal-accent-2: #dd2df9;
  --portal-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --portal-soft-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  color: var(--portal-ink);
  background:
    radial-gradient(circle at 20% 10%, rgba(155, 92, 246, 0.12), transparent 30%),
    radial-gradient(circle at 86% 14%, rgba(49, 192, 230, 0.1), transparent 32%),
    radial-gradient(circle at 60% 92%, rgba(49, 192, 230, 0.07), transparent 38%),
    linear-gradient(145deg, #0b1020 0%, #111827 48%, #0d1324 100%);
}

body.portal-body.product-landing::before,
body.portal-body:not(.product-landing)::before {
  background:
    linear-gradient(135deg, rgba(49, 192, 230, 0.08), transparent 42%),
    linear-gradient(225deg, rgba(221, 45, 249, 0.1), transparent 34%);
  opacity: 1;
}

body.portal-body.product-landing .brand,
body.portal-body.product-landing .product-hero h1,
body.portal-body.product-landing .section-heading h2,
body.portal-body.product-landing .mission-label h2,
body.portal-body.product-landing .insight-copy h2,
body.portal-body.product-landing .pricing-group-head h3,
body.portal-body.product-landing .addon-card h3,
body.portal-body.product-landing .product-cta h2,
body.portal-body.product-landing .trial-banner h3,
body.portal-body.product-landing .plan-head strong,
body.portal-body.product-landing .pricing-table td:first-child,
body.portal-body.product-landing .faq-grid summary,
body.portal-body.product-landing .product-proof-row dt,
body.portal-body.product-landing .product-proof-row dd,
body.portal-body:not(.product-landing) .auth-copy h1,
body.portal-body:not(.product-landing) .section-heading h1,
body.portal-body:not(.product-landing) .section-heading h2,
body.portal-body:not(.product-landing) .card-head h2,
body.portal-body:not(.product-landing) .content-card h2,
body.portal-body:not(.product-landing) .content-card h3,
body.portal-body:not(.product-landing) .metric-grid article p,
body.portal-body:not(.product-landing) .summary-list dd,
body.portal-body:not(.product-landing) .admin-nav-button.active {
  color: var(--portal-ink);
}

body.portal-body.product-landing .brand small,
body.portal-body.product-landing .footer-copy,
body.portal-body.product-landing .site-footer,
body.portal-body.product-landing .muted,
body.portal-body.product-landing .product-hero-lead,
body.portal-body.product-landing .product-section .section-heading p:not(.eyebrow),
body.portal-body.product-landing .mission-copy p,
body.portal-body.product-landing .insight-copy p,
body.portal-body.product-landing .usecase-card p,
body.portal-body.product-landing .operation-card p,
body.portal-body.product-landing .pricing-group-head p,
body.portal-body.product-landing .addon-card p,
body.portal-body.product-landing .faq-grid p,
body.portal-body.product-landing .product-cta p,
body.portal-body.product-landing .trial-banner p,
body.portal-body.product-landing .plan-head p,
body.portal-body.product-landing .pricing-plan-card ul,
body.portal-body.product-landing .pricing-table th,
body.portal-body.product-landing .pricing-table td,
body.portal-body:not(.product-landing) .brand small,
body.portal-body:not(.product-landing) .muted,
body.portal-body:not(.product-landing) .footer-copy,
body.portal-body:not(.product-landing) .hero-text,
body.portal-body:not(.product-landing) .auth-copy p,
body.portal-body:not(.product-landing) .content-card p,
body.portal-body:not(.product-landing) .hero-panel p,
body.portal-body:not(.product-landing) .info-card p,
body.portal-body:not(.product-landing) .step-card p,
body.portal-body:not(.product-landing) .summary-list dt,
body.portal-body:not(.product-landing) .metric-grid h3 {
  color: var(--portal-muted);
}

body.portal-body.product-landing .nav-link,
body.portal-body.product-landing .button-secondary,
body.portal-body:not(.product-landing) .nav-link,
body.portal-body:not(.product-landing) .button-secondary {
  border-color: var(--portal-line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--portal-ink);
  box-shadow: none;
}

body.portal-body.product-landing .brand-mark,
body.portal-body.product-landing .product-proof-row div,
body.portal-body.product-landing .trial-banner,
body.portal-body.product-landing .usecase-card,
body.portal-body.product-landing .operation-card,
body.portal-body.product-landing .pricing-plan-card,
body.portal-body.product-landing .addon-card,
body.portal-body.product-landing .faq-grid details,
body.portal-body.product-landing .product-visual-panel,
body.portal-body.product-landing .screen-card,
body.portal-body.product-landing .capability-grid article,
body.portal-body.product-landing .document-sheet,
body.portal-body:not(.product-landing) .brand-mark,
body.portal-body:not(.product-landing) .hero-metrics div,
body.portal-body:not(.product-landing) .summary-list div,
body.portal-body:not(.product-landing) .metric-grid article,
body.portal-body:not(.product-landing) .hero-panel,
body.portal-body:not(.product-landing) .info-card,
body.portal-body:not(.product-landing) .step-card,
body.portal-body:not(.product-landing) .auth-card,
body.portal-body:not(.product-landing) .content-card,
body.portal-body:not(.product-landing) .summary-card,
body.portal-body:not(.product-landing) .admin-side-nav,
body.portal-body:not(.product-landing) .org-side-nav {
  border-color: var(--portal-line);
  background: rgba(17, 26, 46, 0.84);
  box-shadow: var(--portal-soft-shadow);
}

body.portal-body.product-landing .product-hero,
body.portal-body.product-landing .product-cta {
  background:
    linear-gradient(90deg, rgba(11, 16, 32, 0.99) 0%, rgba(17, 24, 39, 0.97) 58%, rgba(17, 24, 39, 0.95) 100%),
    url("./brand/product-wave-bg.png") center / cover no-repeat,
    linear-gradient(135deg, #050816, #0b1630 54%, #160a2c);
}

body.portal-body.product-landing .product-hero::after {
  background: linear-gradient(0deg, rgba(5, 8, 22, 0.86), transparent);
}

.pricing-calculator {
  border-color: var(--portal-line);
  background:
    linear-gradient(135deg, rgba(49, 192, 230, 0.1), rgba(221, 45, 249, 0.08)),
    rgba(9, 14, 31, 0.82);
}

.pricing-calculator-copy h3,
.pricing-calculator-result strong,
.pricing-calculator-result b {
  color: var(--portal-ink);
}

.pricing-calculator-copy p:not(.eyebrow),
.pricing-calculator-result p,
.pricing-calculator-form label > span {
  color: var(--portal-muted);
}

.pricing-calculator-result,
.toggle-line {
  border-color: var(--portal-line);
  background: rgba(255, 255, 255, 0.055);
}

/* Stitch-guided admin-only refresh: keep workspace behavior untouched. */
body.portal-dashboard[data-page="admin"] {
  color-scheme: light;
  --portal-bg: #f3f8fc;
  --portal-surface: #ffffff;
  --portal-surface-2: #f8fbff;
  --portal-surface-3: #eef6fd;
  --portal-ink: #10213f;
  --portal-muted: #5f728b;
  --portal-line: #cfe0ee;
  --portal-line-strong: #b7d3e9;
  --portal-accent: #0098d8;
  --portal-accent-2: #14b8c9;
  --portal-soft-shadow: 0 18px 44px rgba(27, 63, 103, 0.11);
  height: 100dvh;
  min-height: 100svh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(236, 247, 255, 0.96), rgba(247, 251, 255, 0.98)),
    #f3f8fc;
  color: var(--portal-ink);
}

body.portal-dashboard[data-page="admin"]::before {
  display: none;
}

body.portal-dashboard[data-page="admin"] .site-header {
  height: 76px;
  border-bottom: 1px solid rgba(177, 207, 231, 0.8);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 26px rgba(31, 78, 121, 0.08);
}

body.portal-dashboard[data-page="admin"] .brand,
body.portal-dashboard[data-page="admin"] .brand strong,
body.portal-dashboard[data-page="admin"] .section-heading h1,
body.portal-dashboard[data-page="admin"] .card-head h2,
body.portal-dashboard[data-page="admin"] .content-card h2,
body.portal-dashboard[data-page="admin"] .content-card h3,
body.portal-dashboard[data-page="admin"] .panel-tree-head strong,
body.portal-dashboard[data-page="admin"] table td:first-child {
  color: var(--portal-ink);
}

body.portal-dashboard[data-page="admin"] .brand small,
body.portal-dashboard[data-page="admin"] .muted,
body.portal-dashboard[data-page="admin"] .content-card p,
body.portal-dashboard[data-page="admin"] .summary-list dt,
body.portal-dashboard[data-page="admin"] .metric-grid h3,
body.portal-dashboard[data-page="admin"] .panel-tree-kicker,
body.portal-dashboard[data-page="admin"] .panel-tree-item small,
body.portal-dashboard[data-page="admin"] table th,
body.portal-dashboard[data-page="admin"] table td {
  color: var(--portal-muted);
}

body.portal-dashboard[data-page="admin"] .dashboard-layout {
  height: calc(100dvh - 76px);
  min-height: 0;
  overflow: hidden;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(226, 241, 252, 0.92), rgba(247, 251, 255, 0.96)),
    #f3f8fc;
}

body.portal-dashboard[data-page="admin"] .admin-console-shell {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 16px;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

body.portal-dashboard[data-page="admin"] .admin-side-nav {
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px;
  border: 1px solid var(--portal-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--portal-soft-shadow);
}

body.portal-dashboard[data-page="admin"] .admin-nav-button {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #526173;
  font-weight: 700;
  text-align: left;
}

body.portal-dashboard[data-page="admin"] .admin-nav-button:hover {
  border-color: rgba(0, 152, 216, 0.18);
  background: #eef7fd;
  color: #0f2747;
}

body.portal-dashboard[data-page="admin"] .admin-nav-button.active {
  border-color: rgba(0, 152, 216, 0.28);
  background: linear-gradient(135deg, rgba(0, 152, 216, 0.14), rgba(20, 184, 201, 0.08));
  color: #0f2747;
  box-shadow: inset 3px 0 0 var(--portal-accent);
}

body.portal-dashboard[data-page="admin"] .admin-console-content {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

body.portal-dashboard[data-page="admin"] .admin-console-content [data-admin-section]:not(.is-hidden) {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 2px 8px 28px 2px;
  scrollbar-gutter: stable;
}

body.portal-dashboard[data-page="admin"] .admin-console-content [data-admin-section].two-column:not(.is-hidden),
body.portal-dashboard[data-page="admin"] .admin-dashboard-panels {
  display: grid;
  grid-template-columns: minmax(380px, 1.04fr) minmax(340px, 0.96fr);
  align-items: start;
  gap: 16px;
}

body.portal-dashboard[data-page="admin"] .section-heading {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}

body.portal-dashboard[data-page="admin"] .section-heading h1 {
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: 0;
}

body.portal-dashboard[data-page="admin"] .content-card,
body.portal-dashboard[data-page="admin"] .summary-card,
body.portal-dashboard[data-page="admin"] .metric-grid article {
  border: 1px solid var(--portal-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--portal-soft-shadow);
  color: var(--portal-ink);
}

body.portal-dashboard[data-page="admin"] .admin-console-content .content-card {
  overflow: visible;
}

body.portal-dashboard[data-page="admin"] .card-head {
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(207, 224, 238, 0.78);
}

body.portal-dashboard[data-page="admin"] .eyebrow {
  color: #0078b6;
  letter-spacing: 0.12em;
}

body.portal-dashboard[data-page="admin"] .panel-builder-step,
body.portal-dashboard[data-page="admin"] .panel-tree-maker,
body.portal-dashboard[data-page="admin"] .panel-tree-series,
body.portal-dashboard[data-page="admin"] .table-wrap,
body.portal-dashboard[data-page="admin"] .support-thread-list,
body.portal-dashboard[data-page="admin"] .support-thread-messages {
  border: 1px solid var(--portal-line);
  border-radius: 10px;
  background: rgba(248, 251, 255, 0.96);
  color: var(--portal-ink);
}

body.portal-dashboard[data-page="admin"] .panel-builder-step {
  padding: 14px;
}

body.portal-dashboard[data-page="admin"] .panel-builder-step > strong {
  display: block;
  margin-bottom: 10px;
  color: #0f2747;
}

body.portal-dashboard[data-page="admin"] .stack-form {
  gap: 14px;
}

body.portal-dashboard[data-page="admin"] label > span,
body.portal-dashboard[data-page="admin"] .check-row span {
  color: #334b68;
  font-weight: 700;
}

body.portal-dashboard[data-page="admin"] input:not([type="checkbox"]),
body.portal-dashboard[data-page="admin"] select,
body.portal-dashboard[data-page="admin"] textarea {
  min-height: 42px;
  border: 1px solid var(--portal-line-strong) !important;
  border-radius: 9px;
  background: #ffffff !important;
  color: #10213f !important;
  box-shadow: inset 0 1px 0 rgba(16, 33, 63, 0.03);
  color-scheme: light;
}

body.portal-dashboard[data-page="admin"] select option,
body.portal-dashboard[data-page="admin"] select optgroup {
  background: #ffffff !important;
  color: #10213f !important;
}

body.portal-dashboard[data-page="admin"] input::placeholder,
body.portal-dashboard[data-page="admin"] textarea::placeholder {
  color: #91a2b8 !important;
}

body.portal-dashboard[data-page="admin"] input:focus,
body.portal-dashboard[data-page="admin"] select:focus,
body.portal-dashboard[data-page="admin"] textarea:focus {
  border-color: rgba(0, 152, 216, 0.76) !important;
  box-shadow: 0 0 0 3px rgba(0, 152, 216, 0.14);
  outline: none;
}

body.portal-dashboard[data-page="admin"] .button-primary {
  min-height: 42px;
  border-color: transparent;
  background: linear-gradient(135deg, #0098d8, #14b8c9);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 152, 216, 0.2);
}

body.portal-dashboard[data-page="admin"] .button-secondary,
body.portal-dashboard[data-page="admin"] .nav-link {
  border-color: var(--portal-line);
  background: #ffffff;
  color: #0f2747;
}

body.portal-dashboard[data-page="admin"] .button-secondary:hover,
body.portal-dashboard[data-page="admin"] .nav-link:hover {
  border-color: rgba(0, 152, 216, 0.36);
  background: #eef7fd;
}

body.portal-dashboard[data-page="admin"] .button-secondary.danger {
  border-color: rgba(220, 38, 38, 0.26);
  color: #dc2626;
}

body.portal-dashboard[data-page="admin"] .panel-tree-wrap {
  max-height: min(620px, calc(100dvh - 230px));
  overflow: auto;
  padding-right: 4px;
}

body.portal-dashboard[data-page="admin"] .table-wrap {
  max-height: min(620px, calc(100dvh - 230px));
  overflow: auto;
}

body.portal-dashboard[data-page="admin"] table {
  color: var(--portal-ink);
}

body.portal-dashboard[data-page="admin"] table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f2f8fd;
  color: #47627d;
}

body.portal-dashboard[data-page="admin"] table th,
body.portal-dashboard[data-page="admin"] table td {
  border-bottom-color: rgba(207, 224, 238, 0.9);
}

body.portal-dashboard[data-page="admin"] .form-status {
  color: #47627d;
}

body.portal-dashboard[data-page="admin"] .form-status.error {
  color: #dc2626;
}

body.portal-dashboard[data-page="admin"] .admin-side-nav,
body.portal-dashboard[data-page="admin"] .admin-console-content [data-admin-section]:not(.is-hidden),
body.portal-dashboard[data-page="admin"] .panel-tree-wrap,
body.portal-dashboard[data-page="admin"] .table-wrap,
body.portal-dashboard[data-page="admin"] .support-thread-list,
body.portal-dashboard[data-page="admin"] .support-thread-messages {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 152, 216, 0.42) transparent;
}

body.portal-dashboard[data-page="admin"] .admin-side-nav::-webkit-scrollbar,
body.portal-dashboard[data-page="admin"] .admin-console-content [data-admin-section]:not(.is-hidden)::-webkit-scrollbar,
body.portal-dashboard[data-page="admin"] .panel-tree-wrap::-webkit-scrollbar,
body.portal-dashboard[data-page="admin"] .table-wrap::-webkit-scrollbar,
body.portal-dashboard[data-page="admin"] .support-thread-list::-webkit-scrollbar,
body.portal-dashboard[data-page="admin"] .support-thread-messages::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

body.portal-dashboard[data-page="admin"] .admin-side-nav::-webkit-scrollbar-track,
body.portal-dashboard[data-page="admin"] .admin-console-content [data-admin-section]:not(.is-hidden)::-webkit-scrollbar-track,
body.portal-dashboard[data-page="admin"] .panel-tree-wrap::-webkit-scrollbar-track,
body.portal-dashboard[data-page="admin"] .table-wrap::-webkit-scrollbar-track,
body.portal-dashboard[data-page="admin"] .support-thread-list::-webkit-scrollbar-track,
body.portal-dashboard[data-page="admin"] .support-thread-messages::-webkit-scrollbar-track {
  background: transparent;
}

body.portal-dashboard[data-page="admin"] .admin-side-nav::-webkit-scrollbar-thumb,
body.portal-dashboard[data-page="admin"] .admin-console-content [data-admin-section]:not(.is-hidden)::-webkit-scrollbar-thumb,
body.portal-dashboard[data-page="admin"] .panel-tree-wrap::-webkit-scrollbar-thumb,
body.portal-dashboard[data-page="admin"] .table-wrap::-webkit-scrollbar-thumb,
body.portal-dashboard[data-page="admin"] .support-thread-list::-webkit-scrollbar-thumb,
body.portal-dashboard[data-page="admin"] .support-thread-messages::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(0, 152, 216, 0.36);
  background-clip: padding-box;
}

body.portal-dashboard[data-page="admin"] .admin-side-nav:hover::-webkit-scrollbar-thumb,
body.portal-dashboard[data-page="admin"] .admin-console-content [data-admin-section]:not(.is-hidden):hover::-webkit-scrollbar-thumb,
body.portal-dashboard[data-page="admin"] .panel-tree-wrap:hover::-webkit-scrollbar-thumb,
body.portal-dashboard[data-page="admin"] .table-wrap:hover::-webkit-scrollbar-thumb,
body.portal-dashboard[data-page="admin"] .support-thread-list:hover::-webkit-scrollbar-thumb,
body.portal-dashboard[data-page="admin"] .support-thread-messages:hover::-webkit-scrollbar-thumb {
  background: rgba(0, 152, 216, 0.62);
  background-clip: padding-box;
}

@media (max-width: 1180px) {
  body.portal-dashboard[data-page="admin"] .admin-console-shell {
    grid-template-columns: 196px minmax(0, 1fr);
  }

  body.portal-dashboard[data-page="admin"] .admin-console-content [data-admin-section].two-column:not(.is-hidden),
  body.portal-dashboard[data-page="admin"] .admin-dashboard-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.portal-dashboard[data-page="admin"] .dashboard-layout {
    height: auto;
    min-height: calc(100dvh - 76px);
    overflow: auto;
    padding: 12px;
  }

  body.portal-dashboard[data-page="admin"] .admin-console-shell {
    height: auto;
    overflow: visible;
    grid-template-columns: 1fr;
  }

  body.portal-dashboard[data-page="admin"] .admin-side-nav {
    max-height: 180px;
  }

  body.portal-dashboard[data-page="admin"] .admin-console-content [data-admin-section]:not(.is-hidden) {
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 0 0 24px;
  }
}

body.portal-dashboard[data-page="admin"] input:not([type="checkbox"]),
body.portal-dashboard[data-page="admin"] select,
body.portal-dashboard[data-page="admin"] textarea {
  background: rgba(7, 18, 36, 0.94) !important;
  border-color: rgba(125, 211, 252, 0.28) !important;
  color: #eff6ff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.portal-dashboard[data-page="admin"] select option,
body.portal-dashboard[data-page="admin"] select optgroup {
  color: #0f172a;
}

body.portal-dashboard[data-page="admin"] input::placeholder,
body.portal-dashboard[data-page="admin"] textarea::placeholder {
  color: #7f8faa !important;
}

body.portal-dashboard[data-page="admin"] input:focus,
body.portal-dashboard[data-page="admin"] select:focus,
body.portal-dashboard[data-page="admin"] textarea:focus {
  border-color: rgba(56, 189, 248, 0.78) !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
  outline: none;
}

/* 2026-06-09 brochure hardening for Roof product landing. */
body.portal-body.product-landing {
  color-scheme: light !important;
  --portal-bg: #f7fbff;
  --portal-surface: #ffffff;
  --portal-surface-2: #f3f9ff;
  --portal-surface-3: #eef8ff;
  --portal-ink: #08245c;
  --portal-muted: #52657f;
  --portal-line: #cfe8fb;
  --portal-accent: #0d7fea;
  --portal-accent-2: #0fa8c8;
  --portal-shadow: 0 18px 42px rgba(31, 112, 169, 0.12);
  --portal-soft-shadow: 0 12px 28px rgba(31, 112, 169, 0.10);
  background:
    radial-gradient(840px 520px at 96% -12%, rgba(174, 229, 239, 0.72), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 52%, #eef8ff 100%) !important;
  color: var(--portal-ink) !important;
}

body.portal-body.product-landing::before,
body.portal-body.product-landing::after,
body.portal-body.product-landing .product-hero::before,
body.portal-body.product-landing .product-hero::after,
body.portal-body.product-landing .product-section::before,
body.portal-body.product-landing .product-section::after,
body.portal-body.product-landing .product-cta::before,
body.portal-body.product-landing .product-cta::after {
  opacity: 0 !important;
}

body.portal-body.product-landing main > section,
body.portal-body.product-landing .product-hero,
body.portal-body.product-landing .product-section,
body.portal-body.product-landing .product-cta,
body.portal-body.product-landing .site-footer {
  border-top: 1px solid var(--portal-line) !important;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%) !important;
  color: var(--portal-ink) !important;
}

body.portal-body.product-landing .site-nav {
  border-bottom: 1px solid var(--portal-line) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 10px 32px rgba(31, 112, 169, 0.08) !important;
}

body.portal-body.product-landing .hero-preview-card,
body.portal-body.product-landing .product-proof-row div,
body.portal-body.product-landing .trial-banner,
body.portal-body.product-landing .usecase-card,
body.portal-body.product-landing .operation-card,
body.portal-body.product-landing .pricing-calculator,
body.portal-body.product-landing .pricing-calculator-result,
body.portal-body.product-landing .pricing-plan-card,
body.portal-body.product-landing .addon-card,
body.portal-body.product-landing .pricing-table,
body.portal-body.product-landing .faq-grid details,
body.portal-body.product-landing .product-visual-panel,
body.portal-body.product-landing .screen-card,
body.portal-body.product-landing .capability-grid article,
body.portal-body.product-landing .document-sheet,
body.portal-body.product-landing .flow-row,
body.portal-body.product-landing .mission-label,
body.portal-body.product-landing .mission-copy,
body.portal-body.product-landing .insight-copy {
  border: 1px solid var(--portal-line) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: var(--portal-soft-shadow) !important;
  color: var(--portal-ink) !important;
}

body.portal-body.product-landing .product-hero h1,
body.portal-body.product-landing .section-heading h2,
body.portal-body.product-landing .mission-label h2,
body.portal-body.product-landing .insight-copy h2,
body.portal-body.product-landing .pricing-group-head h3,
body.portal-body.product-landing .addon-card h3,
body.portal-body.product-landing .product-cta h2,
body.portal-body.product-landing .trial-banner h3,
body.portal-body.product-landing .plan-head strong,
body.portal-body.product-landing .pricing-table td:first-child,
body.portal-body.product-landing .faq-grid summary,
body.portal-body.product-landing .product-proof-row dt,
body.portal-body.product-landing .product-proof-row dd,
body.portal-body.product-landing .screen-card h3,
body.portal-body.product-landing .usecase-card h3,
body.portal-body.product-landing .operation-card h3 {
  color: var(--portal-accent) !important;
  text-shadow: none !important;
}

body.portal-body.product-landing .brand small,
body.portal-body.product-landing .footer-copy,
body.portal-body.product-landing .site-footer,
body.portal-body.product-landing .muted,
body.portal-body.product-landing .product-hero-lead,
body.portal-body.product-landing .product-section .section-heading p:not(.eyebrow),
body.portal-body.product-landing .mission-copy p,
body.portal-body.product-landing .insight-copy p,
body.portal-body.product-landing .usecase-card p,
body.portal-body.product-landing .operation-card p,
body.portal-body.product-landing .pricing-group-head p,
body.portal-body.product-landing .addon-card p,
body.portal-body.product-landing .faq-grid p,
body.portal-body.product-landing .product-cta p,
body.portal-body.product-landing .trial-banner p,
body.portal-body.product-landing .plan-head p,
body.portal-body.product-landing .pricing-plan-card ul,
body.portal-body.product-landing .pricing-table th,
body.portal-body.product-landing .pricing-table td,
body.portal-body.product-landing li {
  color: var(--portal-muted) !important;
  text-shadow: none !important;
}

body.portal-body.product-landing .button-primary,
body.portal-body.product-landing .nav-link-primary {
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--portal-accent), #12a7e4) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 26px rgba(13, 127, 234, 0.22) !important;
}

body.portal-body.product-landing .nav-link,
body.portal-body.product-landing .button-secondary {
  border-color: #a9d8f6 !important;
  background: #ffffff !important;
  color: var(--portal-accent) !important;
}

/* 2026-06-09 brochure design baseline */
:root {
  color-scheme: light;
  --portal-bg: #f7fbff;
  --portal-surface: #ffffff;
  --portal-surface-2: #f3f9ff;
  --portal-ink: #0b1f4d;
  --portal-muted: #53657d;
  --portal-line: #d8eaf8;
  --portal-line-strong: #a9d8f6;
  --portal-blue: #0d7fea;
  --portal-cyan: #0fa8c8;
  --portal-green: #08a68a;
  --portal-shadow: 0 18px 46px rgba(31, 112, 169, 0.13);
}

body {
  background:
    radial-gradient(900px 520px at 94% -12%, rgba(174, 229, 239, 0.75), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 50%, #eef8ff 100%);
  color: var(--portal-ink);
}

.portal-shell,
.portal-header,
.portal-card,
.portal-panel,
.portal-section,
.pricing-calculator,
.pricing-calculator-result,
.toggle-line {
  border-color: var(--portal-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--portal-shadow);
  color: var(--portal-ink);
}

.portal-header,
.portal-topbar {
  background: rgba(255, 255, 255, 0.9);
}

.portal-card h2,
.portal-card h3,
.portal-section h2,
.portal-section h3,
.portal-hero h1 {
  color: var(--portal-blue);
}

.portal-card p,
.portal-section p,
.pricing-calculator-form label > span {
  color: var(--portal-muted);
}

.portal-button,
.portal-primary,
.pricing-calculator button {
  border-color: transparent;
  background: linear-gradient(135deg, var(--portal-blue), #12a7e4);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(13, 127, 234, 0.22);
}

.portal-button.secondary,
.portal-secondary {
  border-color: var(--portal-line-strong);
  background: #ffffff;
  color: var(--portal-blue);
  box-shadow: none;
}

/* Product page usability refinement: make the actual workspace preview visible enough to explain the service. */
body.portal-body.product-landing .product-hero {
  grid-template-columns: minmax(0, 0.82fr) minmax(440px, 0.88fr);
  gap: clamp(34px, 5.4vw, 78px);
}

body.portal-body.product-landing .product-hero-content {
  max-width: 700px;
}

body.portal-body.product-landing .hero-preview-card {
  width: min(100%, 520px);
  justify-self: center;
  transform: translateY(8px);
}

body.portal-body.product-landing .hero-preview-card img {
  aspect-ratio: 16 / 10;
}

@media (max-width: 900px) {
  body.portal-body.product-landing .product-hero {
    grid-template-columns: 1fr;
  }

  body.portal-body.product-landing .hero-preview-card {
    width: min(100%, 640px);
    transform: none;
  }
}

@media (max-width: 720px) {
  body.portal-body.product-landing .hero-preview-card {
    display: block;
    width: 100%;
    margin-top: 4px;
  }

  body.portal-body.product-landing .hero-preview-card img {
    aspect-ratio: 16 / 9;
  }

  body.portal-body.product-landing .hero-preview-card figcaption {
    padding: 12px;
  }
}

/* Usability pass: calm dark pages, clearer mobile flow, and stronger content hierarchy. */
body.portal-body {
  background:
    radial-gradient(circle at 18% 12%, rgba(155, 92, 246, 0.1), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(49, 192, 230, 0.08), transparent 32%),
    linear-gradient(145deg, #0b1020 0%, #111827 52%, #0d1324 100%);
}

body.portal-body .environment-banner {
  top: 12px;
  right: 14px;
  min-height: 28px;
  padding: 5px 11px;
  font-size: 11px;
  opacity: 0.88;
}

body.portal-body .site-header {
  min-height: 68px;
  padding: 14px 0;
}

body.portal-body .brand {
  min-width: 0;
}

body.portal-body .brand span:last-child {
  min-width: 0;
}

body.portal-body .brand strong,
body.portal-body .brand small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.portal-body:not(.product-landing) .site-header,
body.portal-body:not(.product-landing) .site-footer,
body.portal-body:not(.product-landing) main {
  width: min(1180px, calc(100vw - 40px));
}

body.portal-body:not(.product-landing) .auth-layout {
  min-height: calc(100vh - 112px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.74fr);
  align-items: center;
  gap: clamp(28px, 6vw, 86px);
  padding: clamp(44px, 9vh, 92px) 0;
}

body.portal-body:not(.product-landing) .auth-copy {
  max-width: 620px;
}

body.portal-body:not(.product-landing) .auth-copy h1 {
  max-width: 12ch;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.04;
}

body.portal-body:not(.product-landing) .auth-card {
  width: 100%;
  max-width: 520px;
  border-color: rgba(190, 205, 235, 0.16);
  background:
    linear-gradient(135deg, rgba(49, 192, 230, 0.07), rgba(155, 92, 246, 0.05)),
    rgba(17, 26, 46, 0.9);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

body.portal-body:not(.product-landing) .auth-card input {
  background: rgba(8, 13, 30, 0.78);
}

body.portal-body.product-landing .product-hero {
  min-height: min(690px, calc(100vh - 122px));
  align-items: center;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 0.66fr);
  gap: clamp(28px, 5vw, 68px);
}

body.portal-body.product-landing .product-hero-content {
  max-width: 760px;
}

body.portal-body.product-landing .hero-preview-card {
  position: relative;
  z-index: 1;
  align-self: center;
  margin: 0;
  border: 1px solid rgba(190, 205, 235, 0.18);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(17, 26, 46, 0.82);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

body.portal-body.product-landing .hero-preview-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

body.portal-body.product-landing .hero-preview-card figcaption {
  display: grid;
  gap: 4px;
  padding: 16px;
}

body.portal-body.product-landing .hero-preview-card span,
body.portal-body.product-landing .screen-card span {
  color: var(--portal-accent);
}

body.portal-body.product-landing .hero-preview-card strong,
body.portal-body.product-landing .screen-card h3,
body.portal-body.product-landing .capability-grid h3,
body.portal-body.product-landing .flow-line-item span,
body.portal-body.product-landing .document-sheet strong {
  color: var(--portal-ink);
}

body.portal-body.product-landing .screen-card p,
body.portal-body.product-landing .capability-grid p,
body.portal-body.product-landing .document-sheet p {
  color: var(--portal-muted);
}

body.portal-body.product-landing .screen-card div {
  background: rgba(17, 26, 46, 0.96);
}

body.portal-body.product-landing .screen-card img {
  background: rgba(255, 255, 255, 0.92);
}

@media (max-width: 900px) {
  body.portal-body.product-landing .product-hero {
    grid-template-columns: 1fr;
  }

  body.portal-body.product-landing .hero-preview-card {
    max-width: 620px;
  }
}

@media (max-width: 720px) {
  body.portal-body .environment-banner {
    top: 8px;
    left: 8px;
    right: auto;
    max-width: min(178px, calc(100vw - 24px));
    min-height: 28px;
  }

  body.portal-body .environment-banner:not([hidden]) + .site-header {
    margin-top: 42px;
  }

  body.portal-body.product-landing .site-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.portal-body.product-landing .site-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.portal-body.product-landing .site-nav .nav-link[href^="#"] {
    display: none;
  }

  body.portal-body.product-landing .site-nav .nav-link {
    min-width: 0;
    justify-content: center;
    padding: 0 10px;
  }

  body.portal-body.product-landing .product-hero {
    min-height: auto;
    padding: 34px 22px;
    gap: 22px;
  }

  body.portal-body.product-landing .product-hero h1 {
    font-size: clamp(32px, 9.2vw, 42px);
    line-height: 1.12;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  body.portal-body.product-landing .product-hero-lead,
  body.portal-body.product-landing .mission-copy p,
  body.portal-body.product-landing .section-heading p:not(.eyebrow) {
    font-size: 15px;
    line-height: 1.86;
  }

  body.portal-body.product-landing .mission-label h2,
  body.portal-body.product-landing .section-heading h2,
  body.portal-body.product-landing .insight-copy h2 {
    font-size: clamp(28px, 7.6vw, 34px);
    line-height: 1.16;
    max-width: 100%;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  body.portal-body.product-landing .mission-label h2 {
    max-width: 10.8em;
  }

  body.portal-body.product-landing .mission-section,
  body.portal-body.product-landing .mission-label,
  body.portal-body.product-landing .mission-copy {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body.portal-body.product-landing .product-proof-row {
    gap: 10px;
  }

  body.portal-body.product-landing .hero-preview-card {
    display: none;
  }

  body.portal-body:not(.product-landing) .site-header,
  body.portal-body:not(.product-landing) .site-footer,
  body.portal-body:not(.product-landing) main,
  body.portal-body:not(.product-landing) .portal-auth main {
    width: min(100vw - 24px, 100%);
  }

  body.portal-body:not(.product-landing) .auth-layout {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 36px 0 56px;
    gap: 22px;
  }

  body.portal-body:not(.product-landing) .auth-copy h1 {
    max-width: 100%;
    font-size: clamp(32px, 10vw, 44px);
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  body.portal-body:not(.product-landing) .auth-card {
    max-width: 100%;
    padding: 22px;
  }
}

/* Calm dark polish: keep the current layout, but make the base match the logo's darker navy gradient. */
body.portal-body.product-landing,
body.portal-body:not(.product-landing) {
  --portal-bg: #0b1020;
  --portal-surface: rgba(17, 26, 46, 0.88);
  --portal-surface-2: rgba(24, 35, 55, 0.9);
  --portal-surface-3: rgba(255, 255, 255, 0.055);
  --portal-ink: #f6f8ff;
  --portal-muted: #aebbd2;
  --portal-line: rgba(190, 205, 235, 0.14);
  --portal-accent: #31c0e6;
  --portal-accent-2: #9b5cf6;
  background:
    radial-gradient(circle at 20% 10%, rgba(155, 92, 246, 0.12), transparent 30%),
    radial-gradient(circle at 86% 14%, rgba(49, 192, 230, 0.1), transparent 32%),
    radial-gradient(circle at 60% 92%, rgba(49, 192, 230, 0.07), transparent 38%),
    linear-gradient(145deg, #0b1020 0%, #111827 48%, #0d1324 100%);
}

body.portal-body.product-landing::before,
body.portal-body:not(.product-landing)::before {
  background:
    linear-gradient(135deg, rgba(49, 192, 230, 0.045), transparent 46%),
    linear-gradient(225deg, rgba(155, 92, 246, 0.055), transparent 34%);
}

body.portal-body.product-landing .site-header,
body.portal-body:not(.product-landing) .site-header {
  border-color: var(--portal-line);
  background: rgba(11, 16, 32, 0.74);
  backdrop-filter: blur(18px);
}

body.portal-body.product-landing .brand-mark,
body.portal-body.product-landing .product-proof-row div,
body.portal-body.product-landing .trial-banner,
body.portal-body.product-landing .usecase-card,
body.portal-body.product-landing .operation-card,
body.portal-body.product-landing .pricing-plan-card,
body.portal-body.product-landing .addon-card,
body.portal-body.product-landing .faq-grid details,
body.portal-body.product-landing .product-visual-panel,
body.portal-body.product-landing .screen-card,
body.portal-body.product-landing .capability-grid article,
body.portal-body.product-landing .document-sheet,
body.portal-body.product-landing .pricing-calculator,
body.portal-body.product-landing .pricing-calculator-result,
body.portal-body.product-landing .toggle-line,
body.portal-body:not(.product-landing) .brand-mark,
body.portal-body:not(.product-landing) .hero-metrics div,
body.portal-body:not(.product-landing) .summary-list div,
body.portal-body:not(.product-landing) .metric-grid article,
body.portal-body:not(.product-landing) .hero-panel,
body.portal-body:not(.product-landing) .info-card,
body.portal-body:not(.product-landing) .step-card,
body.portal-body:not(.product-landing) .auth-card,
body.portal-body:not(.product-landing) .content-card,
body.portal-body:not(.product-landing) .summary-card,
body.portal-body:not(.product-landing) .admin-side-nav,
body.portal-body:not(.product-landing) .org-side-nav {
  border-color: var(--portal-line);
  background: rgba(17, 26, 46, 0.84);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

body.portal-body.product-landing .product-hero,
body.portal-body.product-landing .product-cta {
  background:
    linear-gradient(90deg, rgba(11, 16, 32, 0.99) 0%, rgba(17, 24, 39, 0.97) 58%, rgba(17, 24, 39, 0.95) 100%),
    url("./brand/product-wave-bg.png") center / cover no-repeat,
    linear-gradient(135deg, #0b1020, #111827 54%, #15112a);
}

body.portal-body.product-landing .product-hero::after {
  background: linear-gradient(0deg, rgba(11, 16, 32, 0.94), transparent);
}

body.portal-body.product-landing .product-proof-row {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  max-width: 780px;
}

body.portal-body.product-landing .product-proof-row dd {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

body.portal-body.product-landing .button-primary,
body.portal-body:not(.product-landing) .button-primary {
  background: linear-gradient(135deg, #31c0e6, #8d5cf7 58%, #c946d8);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(49, 192, 230, 0.2);
}

body.portal-body.product-landing input,
body.portal-body.product-landing select,
body.portal-body.product-landing textarea,
body.portal-body:not(.product-landing) input,
body.portal-body:not(.product-landing) select,
body.portal-body:not(.product-landing) textarea {
  border-color: var(--portal-line);
  background: rgba(11, 16, 32, 0.74);
  color: var(--portal-ink);
}

body.portal-body.product-landing select option,
body.portal-body.product-landing select optgroup,
body.portal-body:not(.product-landing) select option,
body.portal-body:not(.product-landing) select optgroup {
  background: #111827;
  color: var(--portal-ink);
}

@media (max-width: 720px) {
  body.portal-body.product-landing .product-proof-row {
    grid-template-columns: 1fr;
    max-width: none;
  }
}

@media (max-width: 720px) {
  body.portal-body.product-landing .product-hero {
    min-height: 600px;
  }
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(49, 192, 230, 0.72) rgba(10, 15, 31, 0.56);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(10, 15, 31, 0.56);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  border: 2px solid rgba(10, 15, 31, 0.56);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(49, 192, 230, 0.9), rgba(221, 45, 249, 0.78));
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #31c0e6, #dd2df9);
}

*::-webkit-scrollbar-corner {
  background: rgba(10, 15, 31, 0.56);
}

html {
  background: var(--portal-bg);
}

body.portal-body {
  margin: 0;
  min-height: 100vh;
  color: var(--portal-ink);
  font-family: "Yu Gothic UI", "Meiryo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(5, 8, 22, 0.78), rgba(5, 8, 22, 0.96)),
    url("./brand/solarnova-og.png") center top / cover no-repeat fixed,
    var(--portal-bg);
}

body.portal-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(49, 192, 230, 0.1), transparent 42%),
    linear-gradient(225deg, rgba(221, 45, 249, 0.12), transparent 34%);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
.button-primary,
.button-secondary,
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 16px;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

button:hover,
.button-primary:hover,
.button-secondary:hover,
.nav-link:hover {
  transform: translateY(-1px);
}

.button-primary,
.nav-link-primary {
  background: linear-gradient(135deg, var(--portal-accent), var(--portal-accent-2));
  color: #05111d;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(49, 192, 230, 0.18);
}

.button-secondary,
.nav-link {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--portal-ink);
}

.impersonation-pill {
  min-height: 36px;
  cursor: default;
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.34);
  background: rgba(251, 191, 36, 0.1);
}

.impersonation-pill:hover {
  transform: none;
}

.button-secondary.is-hidden,
.is-hidden {
  display: none !important;
}

.wide {
  width: 100%;
}

.site-header,
.site-footer,
main {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100vw - 40px));
  margin: 0 auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header {
  padding: 22px 0 14px;
}

.site-header.compact {
  width: min(1080px, calc(100vw - 40px));
}

.site-footer {
  padding: 28px 0 40px;
  color: var(--portal-muted);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--portal-soft-shadow);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  letter-spacing: 0;
}

.brand small,
.muted,
.hero-text,
.footer-copy {
  color: var(--portal-muted);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--portal-accent);
}

.site-nav,
.footer-actions,
.hero-actions,
.action-row,
.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-backdrop {
  margin-top: 10px;
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(10, 16, 34, 0.92), rgba(8, 12, 26, 0.82)),
    url("./brand/solarnova-og.png") right center / cover no-repeat;
  box-shadow: var(--portal-shadow);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
}

.hero-copy {
  max-width: 680px;
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1.02;
}

.hero-text {
  margin: 0;
  max-width: 58ch;
  font-size: 16px;
  line-height: 1.85;
}

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

.hero-metrics div,
.summary-list div,
.metric-grid article,
.hero-panel,
.info-card,
.step-card,
.auth-card,
.content-card,
.summary-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: var(--portal-surface);
  box-shadow: var(--portal-soft-shadow);
  backdrop-filter: blur(18px);
}

.hero-metrics div,
.summary-list div,
.metric-grid article {
  padding: 16px;
}

.hero-metrics dt,
.summary-list dt,
.metric-grid h3 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--portal-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-metrics dd,
.summary-list dd,
.metric-grid p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
}

.hero-rail {
  display: grid;
  gap: 14px;
}

.hero-panel {
  padding: 20px;
  background: rgba(10, 16, 34, 0.78);
}

.hero-panel h2,
.section-heading h1,
.section-heading h2,
.auth-copy h1,
.card-head h2 {
  margin: 0;
}

.hero-panel h2,
.card-head h2 {
  font-size: 24px;
}

.hero-panel p,
.info-card p,
.step-card p,
.content-card p {
  margin: 0;
  color: var(--portal-muted);
  line-height: 1.75;
}

.compact-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--portal-muted);
  line-height: 1.75;
}

.section-block,
.section-shell {
  padding: 22px 0 34px;
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading h1,
.section-heading h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.12;
}

.card-grid,
.step-grid,
.metric-grid,
.two-column {
  display: grid;
  gap: 16px;
}

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

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

.step-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.step-card,
.content-card {
  padding: 22px;
}

.info-card h3,
.step-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.product-landing main {
  width: min(1240px, calc(100vw - 40px));
}

.product-hero {
  position: relative;
  min-height: min(680px, calc(100vh - 132px));
  margin-top: 10px;
  display: grid;
  align-items: end;
  padding: clamp(34px, 6vw, 72px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 8, 22, 0.94), rgba(5, 8, 22, 0.74) 48%, rgba(5, 8, 22, 0.44)),
    linear-gradient(135deg, rgba(49, 192, 230, 0.22), transparent 38%),
    url("./brand/solarnova-og.png") right center / cover no-repeat;
  box-shadow: var(--portal-shadow);
}

.product-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(5, 8, 22, 0.92), transparent);
}

.product-hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.product-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.96;
}

.product-hero-lead {
  max-width: 720px;
  margin: 18px 0 0;
  color: #dce8ff;
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.9;
}

.product-proof-row {
  margin: 34px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
  max-width: 780px;
}

.product-proof-row div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(5, 8, 22, 0.58);
  backdrop-filter: blur(16px);
}

.product-proof-row dt {
  margin: 0 0 8px;
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 800;
}

.product-proof-row dd {
  margin: 0;
  color: var(--portal-ink);
  font-size: 15px;
  line-height: 1.45;
}

.product-section {
  padding: 46px 0;
}

.product-section .section-heading p:not(.eyebrow) {
  max-width: 820px;
  margin: 14px 0 0;
  color: var(--portal-muted);
  font-size: 16px;
  line-height: 1.85;
}

.product-split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  gap: 26px;
  align-items: center;
}

.product-visual-panel {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(10, 16, 34, 0.78);
  box-shadow: var(--portal-shadow);
}

.mock-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.mock-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--portal-accent);
  opacity: 0.75;
}

.mock-toolbar span:nth-child(2) {
  background: var(--portal-accent-2);
}

.mock-toolbar span:nth-child(3) {
  background: var(--portal-warning);
}

.mock-toolbar strong {
  margin-left: 8px;
  color: var(--portal-muted);
  font-size: 13px;
}

.mock-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 14px;
  padding: 14px;
}

.mock-map,
.mock-panel {
  min-width: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.mock-map svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
}

.mock-panel {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 20px;
}

.mock-panel span,
.mock-panel small {
  color: var(--portal-muted);
}

.mock-panel strong {
  color: var(--portal-accent);
  font-size: 34px;
}

.usecase-grid,
.operation-grid,
.pricing-plan-grid,
.addon-grid,
.faq-grid {
  display: grid;
  gap: 16px;
}

.usecase-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.usecase-card,
.operation-card,
.pricing-plan-card,
.addon-card,
.trial-banner,
.product-cta,
.faq-grid details {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: var(--portal-surface);
  box-shadow: var(--portal-soft-shadow);
  backdrop-filter: blur(18px);
}

.usecase-card,
.operation-card,
.pricing-plan-card,
.faq-grid details {
  padding: 22px;
}

.usecase-card span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(49, 192, 230, 0.14);
  color: var(--portal-accent);
  font-size: 12px;
  font-weight: 800;
}

.usecase-card h3,
.operation-card h3,
.pricing-group-head h3,
.addon-card h3,
.product-cta h2 {
  margin: 0 0 10px;
}

.usecase-card p,
.operation-card p,
.pricing-group-head p,
.addon-card p,
.faq-grid p,
.product-cta p {
  margin: 0;
  color: var(--portal-muted);
  line-height: 1.75;
}

.pricing-section {
  scroll-margin-top: 18px;
}

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

.trial-banner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin: 22px 0;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(49, 192, 230, 0.2), rgba(221, 45, 249, 0.12)),
    rgba(10, 16, 34, 0.88);
}

.trial-banner h3 {
  margin: 0 0 8px;
  font-size: 26px;
}

.trial-banner p {
  margin: 0;
  color: var(--portal-muted);
}

.trial-banner strong {
  color: #7be7ff;
  font-size: clamp(36px, 5vw, 56px);
  white-space: nowrap;
}

.pricing-group {
  margin-top: 26px;
}

.pricing-group-head {
  margin-bottom: 14px;
}

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

.pricing-plan-grid.three-plans {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-plan-card {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 18px;
}

.featured-plan {
  border-color: rgba(49, 192, 230, 0.5);
  background:
    linear-gradient(180deg, rgba(49, 192, 230, 0.14), rgba(221, 45, 249, 0.08)),
    var(--portal-surface);
}

.plan-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(49, 192, 230, 0.18);
  color: #7be7ff;
  font-size: 12px;
  font-weight: 800;
}

.plan-head span {
  display: block;
  color: var(--portal-accent);
  font-size: 13px;
  font-weight: 800;
}

.plan-head strong {
  display: block;
  margin-top: 10px;
  color: var(--portal-ink);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.05;
}

.plan-head small {
  color: var(--portal-muted);
  font-size: 14px;
}

.plan-head p {
  margin: 10px 0 0;
  color: var(--portal-muted);
}

.pricing-plan-card ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  color: var(--portal-muted);
  list-style: none;
}

.pricing-plan-card li {
  position: relative;
  padding-left: 20px;
  line-height: 1.55;
}

.pricing-plan-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--portal-accent), var(--portal-accent-2));
}

.pricing-plan-card .button-primary,
.pricing-plan-card .button-secondary {
  margin-top: auto;
}

.addon-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.addon-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 22px;
}

.addon-card strong {
  color: #7be7ff;
  font-size: 24px;
  white-space: nowrap;
}

.comparison-wrap {
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(10, 16, 34, 0.72);
}

.pricing-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
  padding: 15px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  white-space: nowrap;
}

.pricing-table th {
  color: var(--portal-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.pricing-table td:first-child {
  color: var(--portal-ink);
  font-weight: 800;
}

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

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

.faq-grid details {
  min-height: 100%;
}

.faq-grid summary {
  cursor: pointer;
  color: var(--portal-ink);
  font-weight: 800;
}

.faq-grid p {
  margin-top: 12px;
}

.product-cta {
  margin: 28px 0 8px;
  padding: clamp(28px, 5vw, 52px);
  background:
    linear-gradient(135deg, rgba(49, 192, 230, 0.18), rgba(221, 45, 249, 0.14)),
    var(--portal-surface);
}

.product-cta h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.step-card .step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(49, 192, 230, 0.14);
  color: var(--portal-accent);
  font-size: 12px;
  font-weight: 800;
}

.portal-auth main,
.auth-layout {
  width: min(1080px, calc(100vw - 40px));
}

.auth-layout {
  margin: 18px auto 44px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
}

.auth-copy {
  padding: 24px 8px;
}

.auth-copy h1 {
  font-size: clamp(32px, 4vw, 48px);
}

.auth-copy p {
  color: var(--portal-muted);
  line-height: 1.85;
}

.auth-card {
  padding: 26px;
}

.wide-card {
  min-width: 0;
}

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

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

.form-grid.three-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel-builder-form {
  gap: 12px;
}

.panel-builder-step {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.panel-builder-step > strong {
  font-size: 13px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

label.is-muted {
  opacity: 0.58;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--portal-ink);
  padding: 10px 12px;
}

select option,
select optgroup {
  color: #17212b;
  background: #ffffff;
}

textarea {
  resize: vertical;
  min-height: 112px;
}

input::placeholder,
textarea::placeholder {
  color: #8694c1;
}

.form-status {
  min-height: 20px;
  margin: 0;
  font-size: 13px;
}

.form-status.is-error {
  color: var(--portal-danger);
}

.form-status.is-success {
  color: var(--portal-success);
}

.auth-note {
  margin: 18px 0 0;
}

.text-link {
  color: var(--portal-accent);
  font-weight: 700;
}

.portal-auth-gate {
  min-height: min(620px, calc(100vh - 160px));
  display: grid;
  place-items: center;
  padding: 44px 0;
}

.portal-auth-gate > div {
  width: min(560px, 100%);
  padding: 34px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(18px);
}

.portal-auth-gate h1 {
  margin: 0 0 12px;
  color: #101522;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.15;
}

.portal-auth-gate p:not(.eyebrow) {
  margin: 0 0 22px;
  color: #64748b;
  line-height: 1.85;
}

body.popup-auth .site-header {
  width: min(520px, calc(100vw - 28px));
}

body.popup-auth .environment-banner {
  display: none;
}

body.popup-auth .environment-banner + .site-header {
  margin-top: 0 !important;
}

body.popup-auth .site-nav {
  display: none;
}

body.popup-auth .auth-layout {
  width: min(520px, calc(100vw - 28px));
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 10px;
}

body.popup-auth .auth-copy {
  padding: 10px 0 0;
}

body.popup-auth .auth-copy h1 {
  font-size: 30px;
}

body.popup-auth .auth-copy p {
  display: none;
}

.dashboard-layout {
  margin-bottom: 36px;
}

body.portal-dashboard[data-page="admin"] {
  height: 100vh;
  min-height: 100vh;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
}

body.portal-dashboard[data-page="admin"] .site-header {
  width: 100%;
  height: 76px;
  padding: 14px 20px 10px;
}

body.portal-dashboard[data-page="admin"] .dashboard-layout {
  width: 100%;
  max-width: none;
  height: calc(100vh - 76px);
  height: calc(100dvh - 76px);
  margin: 0;
  padding: 18px 20px 20px;
  overflow: hidden;
}

body.portal-dashboard[data-page="organization"] .dashboard-layout {
  width: min(1440px, calc(100% - 36px));
  max-width: none;
}

.organization-console-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.org-side-nav {
  top: 92px;
}

.org-console-content {
  min-width: 0;
}

.org-console-content [data-org-section].is-hidden {
  display: none;
}

.admin-console-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

body.portal-dashboard[data-page="admin"] .admin-console-shell {
  height: 100%;
  min-height: 0;
  align-items: stretch;
}

.admin-side-nav {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(10, 16, 34, 0.82);
  box-shadow: var(--portal-soft-shadow);
  backdrop-filter: blur(18px);
}

body.portal-dashboard[data-page="admin"] .admin-side-nav {
  position: static;
  min-height: 0;
  overflow-y: auto;
}

.admin-nav-button {
  justify-content: flex-start;
  min-height: 42px;
  width: 100%;
  background: transparent;
  border-color: transparent;
  color: var(--portal-muted);
  font-weight: 800;
}

.admin-nav-button.active {
  background: linear-gradient(135deg, rgba(49, 192, 230, 0.18), rgba(221, 45, 249, 0.14));
  border-color: rgba(49, 192, 230, 0.24);
  color: var(--portal-ink);
}

.admin-console-content {
  min-width: 0;
}

body.portal-dashboard[data-page="admin"] .admin-console-content {
  display: grid;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.admin-console-content .section-shell {
  padding-top: 0;
}

body.portal-dashboard[data-page="admin"] .admin-console-content [data-admin-section]:not(.is-hidden) {
  height: 100%;
  min-height: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

body.portal-dashboard[data-page="admin"] .admin-console-content [data-admin-section].two-column:not(.is-hidden) {
  display: grid;
  align-items: start;
}

body.portal-dashboard[data-page="admin"] .admin-console-content [data-admin-section]:not(.two-column):not(.is-hidden) {
  display: flex;
  flex-direction: column;
}

.admin-dashboard-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-height: 0;
  margin-top: 16px;
}

.dashboard-panel-card {
  min-height: 0;
}

.dashboard-mini-table {
  max-height: 340px;
}

body.portal-dashboard[data-page="admin"] .admin-console-content .content-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: visible;
}

body.portal-dashboard[data-page="admin"] .admin-console-content .section-heading,
body.portal-dashboard[data-page="admin"] .admin-console-content .summary-list,
body.portal-dashboard[data-page="admin"] .admin-console-content .metric-grid,
body.portal-dashboard[data-page="admin"] .admin-console-content .action-row,
body.portal-dashboard[data-page="admin"] .admin-console-content .muted {
  flex: 0 0 auto;
}

body.portal-dashboard[data-page="admin"] .admin-console-content .metric-grid {
  overflow: auto;
}

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

.metric-grid article h3,
.metric-grid article p {
  margin: 0;
}

.metric-grid article p {
  font-size: 24px;
  font-weight: 800;
  color: var(--portal-ink);
}

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

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

.sub-card-head {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

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

.summary-card {
  margin-bottom: 18px;
  padding: 18px;
}

.table-wrap {
  max-height: 440px;
  overflow-x: auto;
  overflow-y: auto;
  border-radius: 8px;
}

.panel-tree-wrap {
  min-height: 0;
  overflow: auto;
}

body.portal-dashboard[data-page="admin"] .panel-tree-wrap {
  flex: 1 1 auto;
}

.panel-tree {
  display: grid;
  gap: 14px;
}

.panel-tree-maker,
.panel-tree-series {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

body.portal-dashboard[data-page="admin"] .dashboard-layout {
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(12, 18, 32, 0.72), rgba(8, 12, 24, 0.92)),
    var(--portal-bg);
}

body.portal-dashboard[data-page="admin"] .admin-console-shell {
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 14px;
}

body.portal-dashboard[data-page="admin"] .admin-side-nav {
  align-content: start;
  max-height: calc(100dvh - 108px);
  padding: 10px;
  background: rgba(8, 13, 30, 0.94);
}

body.portal-dashboard[data-page="admin"] .admin-nav-button {
  min-height: 38px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 13px;
}

body.portal-dashboard[data-page="admin"] .admin-console-content [data-admin-section]:not(.is-hidden) {
  gap: 14px;
  padding-right: 4px;
}

body.portal-dashboard[data-page="admin"] .admin-console-content [data-admin-section].two-column:not(.is-hidden),
body.portal-dashboard[data-page="admin"] .admin-dashboard-panels {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  align-content: start;
  gap: 14px;
}

body.portal-dashboard[data-page="admin"] .admin-chat-section:not(.is-hidden) {
  grid-template-columns: minmax(300px, 0.85fr) minmax(460px, 1.45fr);
}

body.portal-dashboard[data-page="admin"] .admin-console-content .content-card {
  overflow: visible;
}

body.portal-dashboard[data-page="admin"] .content-card .table-wrap,
body.portal-dashboard[data-page="admin"] .support-thread-list,
body.portal-dashboard[data-page="admin"] .support-thread-messages,
body.portal-dashboard[data-page="admin"] .panel-tree-wrap {
  min-height: 0;
  overflow: auto;
}

body.portal-dashboard[data-page="admin"] .panel-tree-wrap {
  max-height: min(62dvh, 680px);
}

body.portal-dashboard[data-page="admin"] .admin-side-nav,
body.portal-dashboard[data-page="admin"] .admin-console-content [data-admin-section]:not(.is-hidden),
body.portal-dashboard[data-page="admin"] .content-card .table-wrap,
body.portal-dashboard[data-page="admin"] .support-thread-list,
body.portal-dashboard[data-page="admin"] .support-thread-messages,
body.portal-dashboard[data-page="admin"] .panel-tree-wrap {
  scrollbar-width: thin;
  scrollbar-color: rgba(174, 187, 210, 0.36) transparent;
}

body.portal-dashboard[data-page="admin"] .admin-side-nav::-webkit-scrollbar,
body.portal-dashboard[data-page="admin"] .admin-console-content [data-admin-section]:not(.is-hidden)::-webkit-scrollbar,
body.portal-dashboard[data-page="admin"] .content-card .table-wrap::-webkit-scrollbar,
body.portal-dashboard[data-page="admin"] .support-thread-list::-webkit-scrollbar,
body.portal-dashboard[data-page="admin"] .support-thread-messages::-webkit-scrollbar,
body.portal-dashboard[data-page="admin"] .panel-tree-wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

body.portal-dashboard[data-page="admin"] .admin-side-nav::-webkit-scrollbar-track,
body.portal-dashboard[data-page="admin"] .admin-console-content [data-admin-section]:not(.is-hidden)::-webkit-scrollbar-track,
body.portal-dashboard[data-page="admin"] .content-card .table-wrap::-webkit-scrollbar-track,
body.portal-dashboard[data-page="admin"] .support-thread-list::-webkit-scrollbar-track,
body.portal-dashboard[data-page="admin"] .support-thread-messages::-webkit-scrollbar-track,
body.portal-dashboard[data-page="admin"] .panel-tree-wrap::-webkit-scrollbar-track {
  background: transparent;
}

body.portal-dashboard[data-page="admin"] .admin-side-nav::-webkit-scrollbar-thumb,
body.portal-dashboard[data-page="admin"] .admin-console-content [data-admin-section]:not(.is-hidden)::-webkit-scrollbar-thumb,
body.portal-dashboard[data-page="admin"] .content-card .table-wrap::-webkit-scrollbar-thumb,
body.portal-dashboard[data-page="admin"] .support-thread-list::-webkit-scrollbar-thumb,
body.portal-dashboard[data-page="admin"] .support-thread-messages::-webkit-scrollbar-thumb,
body.portal-dashboard[data-page="admin"] .panel-tree-wrap::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(174, 187, 210, 0.28);
  background-clip: padding-box;
}

body.portal-dashboard[data-page="admin"] .admin-side-nav:hover::-webkit-scrollbar-thumb,
body.portal-dashboard[data-page="admin"] .admin-console-content [data-admin-section]:not(.is-hidden):hover::-webkit-scrollbar-thumb,
body.portal-dashboard[data-page="admin"] .content-card .table-wrap:hover::-webkit-scrollbar-thumb,
body.portal-dashboard[data-page="admin"] .support-thread-list:hover::-webkit-scrollbar-thumb,
body.portal-dashboard[data-page="admin"] .support-thread-messages:hover::-webkit-scrollbar-thumb,
body.portal-dashboard[data-page="admin"] .panel-tree-wrap:hover::-webkit-scrollbar-thumb {
  background: rgba(49, 192, 230, 0.48);
  background-clip: padding-box;
}

body.portal-dashboard[data-page="admin"] .support-thread-messages {
  min-height: min(52dvh, 520px);
}

body.portal-dashboard[data-page="admin"] {
  overflow: hidden;
  background: #091225;
}

body.portal-dashboard[data-page="admin"] .dashboard-layout {
  height: calc(100dvh - 76px);
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
}

body.portal-dashboard[data-page="admin"] .admin-console-content [data-admin-section]:not(.is-hidden) {
  max-height: 100%;
  padding: 0 8px 18px 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.55) transparent;
}

body.portal-dashboard[data-page="admin"] .admin-console-content [data-admin-section].two-column:not(.is-hidden) {
  align-items: start;
  grid-auto-rows: max-content;
}

body.portal-dashboard[data-page="admin"] .admin-side-nav,
body.portal-dashboard[data-page="admin"] .panel-tree-wrap,
body.portal-dashboard[data-page="admin"] .table-wrap,
body.portal-dashboard[data-page="admin"] .support-thread-list,
body.portal-dashboard[data-page="admin"] .support-thread-messages {
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.55) transparent;
}

body.portal-dashboard[data-page="admin"] .admin-console-content [data-admin-section]:not(.is-hidden)::-webkit-scrollbar,
body.portal-dashboard[data-page="admin"] .admin-side-nav::-webkit-scrollbar,
body.portal-dashboard[data-page="admin"] .panel-tree-wrap::-webkit-scrollbar,
body.portal-dashboard[data-page="admin"] .table-wrap::-webkit-scrollbar,
body.portal-dashboard[data-page="admin"] .support-thread-list::-webkit-scrollbar,
body.portal-dashboard[data-page="admin"] .support-thread-messages::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

body.portal-dashboard[data-page="admin"] .admin-console-content [data-admin-section]:not(.is-hidden)::-webkit-scrollbar-track,
body.portal-dashboard[data-page="admin"] .admin-side-nav::-webkit-scrollbar-track,
body.portal-dashboard[data-page="admin"] .panel-tree-wrap::-webkit-scrollbar-track,
body.portal-dashboard[data-page="admin"] .table-wrap::-webkit-scrollbar-track,
body.portal-dashboard[data-page="admin"] .support-thread-list::-webkit-scrollbar-track,
body.portal-dashboard[data-page="admin"] .support-thread-messages::-webkit-scrollbar-track {
  background: transparent;
}

body.portal-dashboard[data-page="admin"] .admin-console-content [data-admin-section]:not(.is-hidden)::-webkit-scrollbar-thumb,
body.portal-dashboard[data-page="admin"] .admin-side-nav::-webkit-scrollbar-thumb,
body.portal-dashboard[data-page="admin"] .panel-tree-wrap::-webkit-scrollbar-thumb,
body.portal-dashboard[data-page="admin"] .table-wrap::-webkit-scrollbar-thumb,
body.portal-dashboard[data-page="admin"] .support-thread-list::-webkit-scrollbar-thumb,
body.portal-dashboard[data-page="admin"] .support-thread-messages::-webkit-scrollbar-thumb {
  min-height: 44px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.42);
  border: 2px solid transparent;
  background-clip: padding-box;
}

body.portal-dashboard[data-page="admin"] .admin-console-content [data-admin-section]:not(.is-hidden)::-webkit-scrollbar-thumb:hover,
body.portal-dashboard[data-page="admin"] .admin-side-nav::-webkit-scrollbar-thumb:hover,
body.portal-dashboard[data-page="admin"] .panel-tree-wrap::-webkit-scrollbar-thumb:hover,
body.portal-dashboard[data-page="admin"] .table-wrap::-webkit-scrollbar-thumb:hover,
body.portal-dashboard[data-page="admin"] .support-thread-list::-webkit-scrollbar-thumb:hover,
body.portal-dashboard[data-page="admin"] .support-thread-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.72);
  background-clip: padding-box;
}

body.portal-dashboard[data-page="admin"] .admin-console-content .content-card {
  min-height: 0;
  height: auto;
  align-self: start;
  overflow: visible;
  background: rgba(15, 31, 55, 0.92);
  border-color: rgba(125, 211, 252, 0.18);
}

body.portal-dashboard[data-page="admin"] #adminPanelSection > .content-card:nth-child(2),
body.portal-dashboard[data-page="admin"] #adminPanelSection > .content-card:nth-child(4),
body.portal-dashboard[data-page="admin"] .content-card.support-chat-card {
  overflow: hidden;
}

body.portal-dashboard[data-page="admin"] .panel-tree-wrap {
  max-height: calc(100dvh - 260px);
  padding-right: 4px;
}

body.portal-dashboard[data-page="admin"] .panel-builder-step,
body.portal-dashboard[data-page="admin"] .summary-card,
body.portal-dashboard[data-page="admin"] .panel-tree-maker,
body.portal-dashboard[data-page="admin"] .panel-tree-series {
  background: rgba(8, 18, 35, 0.46);
  border-color: rgba(148, 163, 184, 0.18);
}

body.portal-dashboard[data-page="admin"] input,
body.portal-dashboard[data-page="admin"] select,
body.portal-dashboard[data-page="admin"] textarea {
  background: rgba(7, 18, 36, 0.94);
  border-color: rgba(125, 211, 252, 0.28);
  color: #eff6ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.portal-dashboard[data-page="admin"] input::placeholder,
body.portal-dashboard[data-page="admin"] textarea::placeholder {
  color: #7f8faa;
}

body.portal-dashboard[data-page="admin"] input:focus,
body.portal-dashboard[data-page="admin"] select:focus,
body.portal-dashboard[data-page="admin"] textarea:focus {
  border-color: rgba(56, 189, 248, 0.78);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
  outline: none;
}

body.portal-dashboard[data-page="admin"] .button-primary {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  color: #04111f;
}

@media (max-width: 1100px) {
  body.portal-dashboard[data-page="admin"] .panel-tree-wrap {
    max-height: 420px;
  }
}

.panel-tree-maker {
  padding: 14px;
}

.panel-tree-series {
  padding: 12px;
  background: rgba(10, 16, 34, 0.46);
}

.panel-tree-head,
.panel-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-tree-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--portal-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.panel-tree-head strong,
.panel-detail-row strong {
  display: block;
}

.panel-tree-series-list,
.panel-detail-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.panel-detail-row {
  min-height: 52px;
  padding: 10px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-detail-row small {
  display: block;
  margin-top: 4px;
  color: var(--portal-muted);
}

.compact-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  margin: 0;
}

.button-secondary.danger {
  border-color: rgba(255, 122, 144, 0.32);
  color: var(--portal-danger);
}

.muted-text {
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 800;
}

body.portal-dashboard[data-page="admin"] .table-wrap {
  flex: 1 1 auto;
  max-height: none;
  min-height: 0;
}

body.portal-dashboard[data-page="admin"] #organizationList table,
body.portal-dashboard[data-page="admin"] #userList table,
body.portal-dashboard[data-page="admin"] #billingAccountList table,
body.portal-dashboard[data-page="admin"] #adminPanelPresetList table,
body.portal-dashboard[data-page="admin"] #releaseList table {
  min-width: 720px;
}

body.portal-dashboard[data-page="admin"] #organizationList th:nth-child(2),
body.portal-dashboard[data-page="admin"] #organizationList td:nth-child(2),
body.portal-dashboard[data-page="admin"] #userList th:nth-child(3),
body.portal-dashboard[data-page="admin"] #userList td:nth-child(3),
body.portal-dashboard[data-page="admin"] #userList th:nth-child(6),
body.portal-dashboard[data-page="admin"] #userList td:nth-child(6),
body.portal-dashboard[data-page="admin"] #billingAccountList th:nth-child(6),
body.portal-dashboard[data-page="admin"] #billingAccountList td:nth-child(6),
body.portal-dashboard[data-page="admin"] #releaseList th:nth-child(4),
body.portal-dashboard[data-page="admin"] #releaseList td:nth-child(4) {
  display: none;
}

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

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  white-space: nowrap;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(10, 16, 34, 0.96);
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.pill.success {
  background: rgba(93, 224, 166, 0.16);
  color: var(--portal-success);
}

.support-root {
  position: fixed;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
}

.support-notice-dock,
.support-chat-dock {
  position: fixed;
  display: grid;
  justify-items: end;
  gap: 10px;
  pointer-events: none;
}

.support-notice-dock {
  top: 18px;
  right: 18px;
}

.support-chat-dock {
  right: 18px;
  bottom: 18px;
  z-index: 2;
}

.support-notice-dock > button,
.support-chat-dock > button {
  pointer-events: auto;
}

.support-notice-inline {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  order: 50;
}

.support-notice-inline .support-notice-dock {
  position: relative;
  top: auto;
  right: auto;
  display: inline-grid;
}

.support-notice-inline .support-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1360;
}

.support-dock-actions {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.support-dock-button {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(13, 20, 40, 0.92);
  color: var(--portal-ink);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.support-chat-dock .support-dock-button {
  width: auto;
  min-width: 52px;
  gap: 8px;
  padding: 0 14px;
  color: #f8fafc;
}

.support-dock-label {
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.support-dock-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-badge {
  position: absolute;
  top: -4px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--portal-accent-2), var(--portal-accent));
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.support-popover {
  width: min(380px, calc(100vw - 28px));
  max-height: min(620px, calc(100dvh - 86px));
  display: none;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(11, 17, 36, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(22px);
  pointer-events: auto;
}

.support-popover.open {
  display: grid;
}

.support-notice-item {
  width: 100%;
  cursor: pointer;
  text-align: left;
}

.support-notice-item.is-unread {
  border-color: rgba(49, 192, 230, 0.34);
  background: rgba(49, 192, 230, 0.08);
}

.support-notice-item strong,
.support-notice-item time {
  display: block;
}

.support-notice-detail {
  display: grid;
  gap: 10px;
  margin: 0 12px 12px;
  padding: 14px;
  border: 1px solid rgba(49, 192, 230, 0.24);
  border-radius: 8px;
  background: rgba(8, 13, 30, 0.94);
}

.support-notice-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.support-notice-detail-head button {
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border-radius: 8px;
}

.support-notice-detail h3,
.support-notice-detail p {
  margin: 0;
}

.support-notice-detail time {
  color: var(--portal-muted);
  font-size: 11px;
}

.support-room-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 12px 0;
}

.support-room-button {
  position: relative;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
  color: var(--portal-ink);
  font-size: 12px;
  font-weight: 800;
}

.support-room-button.active {
  border-color: rgba(49, 192, 230, 0.5);
  background: rgba(49, 192, 230, 0.16);
}

.support-room-button .support-badge {
  top: -6px;
  right: -6px;
}

.support-room-empty {
  padding: 12px 14px 0;
  color: var(--portal-muted);
  font-size: 13px;
}

.support-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.support-popover-head span {
  display: block;
  color: var(--portal-accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.support-popover-head strong {
  display: block;
  margin-top: 2px;
}

.support-popover-head button {
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 8px;
}

.support-notice-list,
.support-chat-messages {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow: auto;
  padding: 12px;
}

.support-notice-item,
.support-chat-message {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.support-notice-item p,
.support-chat-message p {
  margin: 6px 0;
  color: var(--portal-muted);
  line-height: 1.55;
  white-space: pre-wrap;
}

.support-notice-item time,
.support-chat-message small {
  color: var(--portal-muted);
  font-size: 11px;
}

.support-operator {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.support-avatar {
  width: 48px;
  height: 48px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--portal-accent-2), var(--portal-accent));
  color: #fff;
  font-weight: 900;
}

.support-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.support-operator span,
.support-operator p {
  display: block;
  margin: 2px 0 0;
  color: var(--portal-muted);
  font-size: 12px;
}

.support-operator p.online {
  color: var(--portal-success);
}

.support-chat-message.from-admin {
  margin-right: 28px;
  border-color: rgba(49, 192, 230, 0.22);
}

.support-chat-message.from-user {
  margin-left: 28px;
  border-color: rgba(221, 45, 249, 0.2);
  background: rgba(221, 45, 249, 0.08);
}

.support-chat-form {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.support-room-create-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.support-room-create-form p {
  grid-column: 1 / -1;
}

.support-chat-form textarea {
  min-height: 78px;
  resize: vertical;
}

.support-chat-form button {
  min-height: 40px;
}

.support-chat-form p,
.support-empty {
  margin: 0;
  color: var(--portal-muted);
  font-size: 13px;
}

.support-thread-list {
  display: grid;
  gap: 8px;
  min-height: 0;
  overflow: auto;
}

.support-thread-button {
  display: grid;
  gap: 3px;
  width: 100%;
  min-height: 78px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--portal-ink);
  text-align: left;
}

.support-thread-button.active {
  border-color: rgba(49, 192, 230, 0.32);
  background: rgba(49, 192, 230, 0.11);
}

.support-thread-button span,
.support-thread-button small,
.support-thread-button time {
  overflow: hidden;
  color: var(--portal-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-category-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(49, 192, 230, 0.12);
  color: var(--portal-accent);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.support-message div {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-workspace-choice-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 7, 18, 0.68);
  backdrop-filter: blur(14px);
}

.admin-workspace-choice {
  position: relative;
  width: min(440px, 100%);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(13, 20, 40, 0.98);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.admin-workspace-choice h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

.admin-choice-actions {
  display: grid;
  gap: 10px;
}

.admin-choice-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  padding: 0;
}

.support-thread-messages {
  flex: 1 1 auto;
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 240px;
  overflow: auto;
  padding-right: 4px;
}

@media (max-width: 720px) {
  .admin-dashboard-panels {
    grid-template-columns: 1fr;
  }

  .support-chat-dock {
    right: 12px;
    bottom: calc(84px + env(safe-area-inset-bottom));
  }

  .support-notice-dock,
  body.portal-dashboard .support-notice-dock {
    top: 12px;
    right: 12px;
    bottom: auto;
  }
}

.pill.warn {
  background: rgba(255, 180, 84, 0.16);
  color: var(--portal-warning);
}

.pill.muted {
  background: rgba(167, 178, 216, 0.12);
  color: var(--portal-muted);
}

.pill.danger {
  background: rgba(255, 122, 144, 0.16);
  color: var(--portal-danger);
}

.inline-copy,
.code-stack {
  display: grid;
  gap: 8px;
}

.table-wrap .code-stack {
  min-width: 260px;
}

.action-stack {
  display: grid;
  gap: 8px;
  min-width: 120px;
}

.billing-table,
.release-table {
  margin-top: 16px;
}

.system-load-visual {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.load-orb {
  --stress: 30%;
  --memory: 30%;
  position: relative;
  width: 180px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(245, 247, 255, 0.14), rgba(245, 247, 255, 0.02) 42%, transparent 43%),
    conic-gradient(from 180deg, var(--portal-accent) var(--stress), rgba(255, 255, 255, 0.08) 0);
  box-shadow: 0 0 42px rgba(49, 192, 230, 0.16);
  overflow: hidden;
}

.load-orb::before,
.load-orb::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.18);
  animation: loadSpin 7s linear infinite;
}

.load-orb::after {
  inset: 28px;
  border-color: rgba(221, 45, 249, 0.24);
  animation-duration: 4.8s;
  animation-direction: reverse;
}

.load-core {
  width: 92px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(221, 45, 249, 0.92), rgba(49, 192, 230, 0.92)),
    var(--portal-accent);
  transform: scale(calc(0.72 + (var(--memory-value, 0.3) * 0.22)));
  animation: loadPulse 1.8s ease-in-out infinite;
}

.load-core span {
  width: 28px;
  aspect-ratio: 1 / 1;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.82);
}

.load-orb.warn {
  box-shadow: 0 0 46px rgba(255, 180, 84, 0.22);
}

.load-orb.danger {
  box-shadow: 0 0 52px rgba(255, 122, 144, 0.28);
}

.load-caption {
  display: grid;
  gap: 8px;
}

.load-caption strong {
  font-size: 22px;
}

.load-caption small,
.load-caption time {
  color: var(--portal-muted);
  line-height: 1.7;
}

.system-load-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 10px;
}

.load-metric {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(160px, 1fr);
  align-items: center;
  column-gap: 18px;
  row-gap: 8px;
  min-width: 0;
  min-height: 92px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.load-metric-head {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.load-metric-head span {
  color: var(--portal-muted);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.load-metric-head strong {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  white-space: nowrap;
}

.load-metric-bar {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.load-metric small {
  grid-column: 2;
  min-width: 0;
  font-size: 14px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.load-metric-bar span {
  display: block;
  width: var(--value, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--portal-accent-2), var(--portal-accent));
  box-shadow: 0 0 16px rgba(49, 192, 230, 0.28);
  transition: width 260ms ease;
}

.load-metric.warn .load-metric-bar span {
  background: linear-gradient(90deg, #ffca74, #ff9f43);
}

.load-metric.danger .load-metric-bar span {
  background: linear-gradient(90deg, #ff7a90, #ff4f6d);
}

@keyframes loadSpin {
  to { transform: rotate(360deg); }
}

@keyframes loadPulse {
  0%, 100% { filter: brightness(1); transform: scale(calc(0.72 + (var(--memory-value, 0.3) * 0.22))); }
  50% { filter: brightness(1.18); transform: scale(calc(0.78 + (var(--memory-value, 0.3) * 0.24))); }
}

.training-drive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}

.training-tile {
  display: grid;
  gap: 9px;
  min-height: 0;
  padding: 10px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--portal-ink);
  text-align: left;
}

.training-thumb {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.training-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.training-tile-title {
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.training-tile-meta {
  color: var(--portal-muted);
  font-size: 12px;
  line-height: 1.45;
}

.training-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 6, 18, 0.78);
}

.training-preview-dialog {
  position: relative;
  width: min(1040px, 96vw);
  max-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: var(--portal-surface);
  box-shadow: var(--portal-shadow);
}

.training-preview-dialog img {
  max-width: 100%;
  max-height: calc(92vh - 32px);
  object-fit: contain;
  border-radius: 8px;
  background: #050816;
}

.training-preview-close {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  z-index: 1;
}

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

.message-item {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.message-item time {
  color: var(--portal-muted);
  font-size: 12px;
}

.message-item p {
  white-space: pre-wrap;
}

.inline-copy input {
  min-height: 40px;
}

code {
  display: block;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: #d8ecff;
  font-size: 12px;
  white-space: nowrap;
  overflow-wrap: normal;
}

.bootstrap-card {
  max-width: 840px;
}

.empty-state {
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: var(--portal-surface-3);
  color: var(--portal-muted);
}

.consent-card {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check-row input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.environment-banner {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 120;
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 180, 84, 0.28);
  border-radius: 999px;
  background: rgba(46, 26, 5, 0.88);
  color: #ffca74;
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--portal-soft-shadow);
}

.environment-banner.is-production {
  border-color: rgba(49, 192, 230, 0.32);
  background: rgba(5, 23, 31, 0.9);
  color: #7be7ff;
}

.pricing-catalog {
  margin: 18px 0;
}

.pricing-catalog-grid {
  display: grid;
  gap: 14px;
}

.pricing-catalog-grid > section {
  min-width: 0;
}

.pricing-catalog-grid h3 {
  margin: 0 0 10px;
  color: var(--portal-text);
  font-size: 15px;
}

.mini-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(172px, 1fr));
  gap: 10px;
}

.pricing-mini-card {
  display: grid;
  gap: 6px;
  min-height: 128px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.pricing-mini-card strong {
  color: var(--portal-text);
}

.pricing-mini-card span {
  color: #7be7ff;
  font-weight: 800;
}

.pricing-mini-card small,
.pricing-mini-card em,
.fineprint {
  color: var(--portal-muted);
  font-style: normal;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .hero-grid,
  .auth-layout,
  .admin-console-shell,
  .system-load-visual,
  .two-column,
  .card-grid,
  .step-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .product-split,
  .pricing-plan-grid,
  .pricing-plan-grid.three-plans,
  .operation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-proof-row,
  .usecase-grid,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-side-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.portal-dashboard[data-page="admin"] .admin-console-shell {
    grid-template-rows: auto minmax(0, 1fr);
  }

  body.portal-dashboard[data-page="admin"] .admin-side-nav {
    max-height: 148px;
  }

  body.portal-dashboard[data-page="admin"] .admin-console-content [data-admin-section].two-column:not(.is-hidden) {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .system-load-metrics {
    grid-template-columns: 1fr;
  }

  .load-metric {
    grid-template-columns: 1fr;
  }

  .load-metric small {
    grid-column: auto;
  }

  .hero-metrics,
  .form-grid,
  .mock-workspace {
    grid-template-columns: 1fr;
  }

  .mock-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
  }
}

@media (max-width: 720px) {
  .site-header,
  .site-footer,
  main,
  .portal-auth main {
    width: min(100vw - 24px, 100%);
  }

  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-backdrop {
    padding: 22px;
  }

  .hero-copy h1,
  .product-hero h1,
  .section-heading h1,
  .section-heading h2,
  .auth-copy h1 {
    font-size: 30px;
  }

  .product-hero {
    min-height: 560px;
    padding: 26px;
  }

  .product-proof-row,
  .product-split,
  .usecase-grid,
  .pricing-plan-grid,
  .pricing-plan-grid.three-plans,
  .addon-grid,
  .operation-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .pricing-heading,
  .trial-banner,
  .addon-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .trial-banner strong,
  .addon-card strong {
    white-space: normal;
  }

  .mock-panel {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .info-card,
  .step-card,
  .auth-card,
  .content-card {
    padding: 18px;
  }

  .training-preview-dialog {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

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

  .load-orb {
    width: min(180px, 72vw);
  }

  .environment-banner {
    top: 8px;
    left: 8px;
    right: 8px;
    text-align: center;
  }
}

/* Customer-facing product page */
body.portal-body.product-landing {
  color: #101522;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 255, 0.98) 58%, #f8fafc),
    #f8fafc;
}

body.portal-body.product-landing::before {
  background:
    radial-gradient(circle at 88% 12%, rgba(221, 45, 249, 0.12), transparent 28%),
    radial-gradient(circle at 8% 42%, rgba(49, 192, 230, 0.14), transparent 34%);
}

body.portal-body.product-landing .site-header,
body.portal-body.product-landing .site-footer,
body.portal-body.product-landing main {
  width: min(1180px, calc(100vw - 48px));
}

body.portal-body.product-landing .site-header {
  padding: 24px 0 18px;
}

body.portal-body.product-landing .brand {
  color: #101522;
}

body.portal-body.product-landing .brand small,
body.portal-body.product-landing .footer-copy,
body.portal-body.product-landing .site-footer,
body.portal-body.product-landing .muted {
  color: #64748b;
}

body.portal-body.product-landing .brand-mark {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

body.portal-body.product-landing .nav-link {
  min-height: 38px;
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: #1f2937;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

body.portal-body.product-landing .nav-link-primary,
body.portal-body.product-landing .button-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #26c4de, #8d5cf7 54%, #e141c8);
  color: #ffffff;
  box-shadow: 0 18px 44px rgba(68, 93, 220, 0.22);
}

body.portal-body.product-landing .button-secondary {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.82);
  color: #172033;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

body.portal-body.product-landing .eyebrow {
  color: #1688a8;
  letter-spacing: 0.11em;
}

body.portal-body.product-landing .product-hero {
  min-height: min(720px, calc(100vh - 126px));
  align-items: center;
  padding: clamp(46px, 8vw, 96px) clamp(24px, 7vw, 92px);
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(250, 252, 255, 0.96) 0%, rgba(250, 252, 255, 0.87) 48%, rgba(250, 252, 255, 0.44) 100%),
    url("./brand/product-wave-bg.png") center / cover no-repeat,
    linear-gradient(135deg, #ffffff, #eefaff 54%, #fff4fb);
  box-shadow: none;
}

body.portal-body.product-landing .product-hero::after {
  height: 24%;
  background: linear-gradient(0deg, rgba(248, 250, 252, 0.96), transparent);
}

body.portal-body.product-landing .product-hero-content {
  max-width: 760px;
}

body.portal-body.product-landing .product-hero h1 {
  max-width: 930px;
  color: #111827;
  font-size: clamp(42px, 5.8vw, 68px);
  line-height: 1.14;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

body.portal-body.product-landing .product-hero-lead {
  color: #334155;
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 2;
}

body.portal-body.product-landing .product-proof-row {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  max-width: 780px;
  margin-top: 40px;
}

body.portal-body.product-landing .product-proof-row div,
body.portal-body.product-landing .trial-banner,
body.portal-body.product-landing .usecase-card,
body.portal-body.product-landing .operation-card,
body.portal-body.product-landing .pricing-plan-card,
body.portal-body.product-landing .addon-card,
body.portal-body.product-landing .faq-grid details,
body.portal-body.product-landing .product-visual-panel,
body.portal-body.product-landing .screen-card,
body.portal-body.product-landing .capability-grid article,
body.portal-body.product-landing .document-sheet {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

body.portal-body.product-landing .product-proof-row dt,
body.portal-body.product-landing .product-proof-row dd {
  color: #101522;
}

body.portal-body.product-landing .product-proof-row dt {
  color: #64748b;
}

body.portal-body.product-landing .product-section {
  padding: clamp(58px, 8vw, 104px) 0;
}

body.portal-body.product-landing .section-heading h2,
body.portal-body.product-landing .mission-label h2,
body.portal-body.product-landing .insight-copy h2 {
  color: #101522;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.18;
  letter-spacing: 0;
}

body.portal-body.product-landing .product-section .section-heading p:not(.eyebrow),
body.portal-body.product-landing .mission-copy p,
body.portal-body.product-landing .insight-copy p {
  color: #475569;
  font-size: 16px;
  line-height: 2;
}

.mission-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: start;
}

.mission-label {
  position: sticky;
  top: 28px;
}

.mission-copy {
  display: grid;
  gap: 22px;
  max-width: 780px;
}

.screen-section {
  position: relative;
}

.screen-gallery {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 18px;
}

.screen-card {
  overflow: hidden;
  border-radius: 8px;
}

.screen-card.large {
  grid-row: span 2;
}

.screen-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #eaf4fb;
}

.screen-card.large img {
  aspect-ratio: 16 / 11;
}

.screen-card div {
  padding: 22px;
}

.screen-card span,
.flow-line-item strong {
  color: #1688a8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.screen-card h3,
.capability-grid h3,
.flow-line-item span,
.document-sheet strong {
  margin: 8px 0 10px;
  color: #101522;
  font-size: 20px;
  line-height: 1.42;
}

.screen-card p,
.capability-grid p,
.document-sheet p {
  margin: 0;
  color: #64748b;
  line-height: 1.8;
}

body.portal-body.product-landing .product-split {
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(24px, 5vw, 64px);
}

.product-flow-panel {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.flow-line-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(49, 192, 230, 0.12), rgba(255, 255, 255, 0.7));
}

body.portal-body.product-landing .usecase-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.portal-body.product-landing .usecase-card h3,
body.portal-body.product-landing .operation-card h3,
body.portal-body.product-landing .pricing-group-head h3,
body.portal-body.product-landing .addon-card h3,
body.portal-body.product-landing .product-cta h2 {
  color: #101522;
}

body.portal-body.product-landing .usecase-card p,
body.portal-body.product-landing .operation-card p,
body.portal-body.product-landing .pricing-group-head p,
body.portal-body.product-landing .addon-card p,
body.portal-body.product-landing .faq-grid p,
body.portal-body.product-landing .product-cta p {
  color: #64748b;
}

body.portal-body.product-landing .usecase-card span {
  background: rgba(49, 192, 230, 0.13);
  color: #1688a8;
}

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

.capability-grid article {
  min-height: 100%;
  padding: 22px;
  border-radius: 8px;
}

.insight-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(380px, 1.14fr);
  gap: clamp(24px, 5vw, 62px);
  align-items: center;
}

.document-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.document-sheet {
  min-height: 260px;
  padding: 24px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 249, 255, 0.86)),
    #ffffff;
}

.document-sheet::before {
  content: "";
  display: block;
  width: 100%;
  height: 112px;
  margin-bottom: 22px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(49, 192, 230, 0.16) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(0deg, rgba(221, 45, 249, 0.11) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(49, 192, 230, 0.14));
}

.document-sheet span {
  color: #1688a8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.portal-body.product-landing .pricing-section {
  scroll-margin-top: 24px;
}

body.portal-body.product-landing .trial-banner {
  background:
    linear-gradient(135deg, rgba(49, 192, 230, 0.16), rgba(221, 45, 249, 0.08)),
    rgba(255, 255, 255, 0.82);
}

body.portal-body.product-landing .trial-banner h3,
body.portal-body.product-landing .plan-head strong,
body.portal-body.product-landing .pricing-table td:first-child,
body.portal-body.product-landing .faq-grid summary {
  color: #101522;
}

body.portal-body.product-landing .trial-banner p,
body.portal-body.product-landing .plan-head p,
body.portal-body.product-landing .pricing-plan-card ul,
body.portal-body.product-landing .pricing-table th,
body.portal-body.product-landing .pricing-table td {
  color: #64748b;
}

body.portal-body.product-landing .trial-banner strong,
body.portal-body.product-landing .addon-card strong {
  color: #1688a8;
}

body.portal-body.product-landing .featured-plan {
  border-color: rgba(49, 192, 230, 0.3);
  background:
    linear-gradient(180deg, rgba(49, 192, 230, 0.13), rgba(221, 45, 249, 0.06)),
    rgba(255, 255, 255, 0.86);
}

body.portal-body.product-landing .plan-badge {
  background: rgba(49, 192, 230, 0.13);
  color: #1688a8;
}

body.portal-body.product-landing .comparison-wrap {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}

body.portal-body.product-landing .pricing-table th,
body.portal-body.product-landing .pricing-table td {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

body.portal-body.product-landing .operation-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.portal-body.product-landing .faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.portal-body.product-landing .product-cta {
  border: 0;
  color: #101522;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.78)),
    url("./brand/product-wave-bg.png") center / cover no-repeat;
  box-shadow: none;
}

body.portal-body.product-landing .site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.pricing-calculator {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(300px, 1fr) minmax(260px, 0.76fr);
  gap: 18px;
  align-items: stretch;
  margin: 24px 0 32px;
  padding: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(238, 250, 255, 0.72)),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.pricing-calculator-copy h3,
.pricing-calculator-result strong {
  margin: 0 0 10px;
  color: #101522;
  font-size: 24px;
  line-height: 1.35;
}

.pricing-calculator-copy p:not(.eyebrow),
.pricing-calculator-result p {
  margin: 0;
  color: #64748b;
  line-height: 1.8;
}

.pricing-calculator-form {
  display: grid;
  gap: 12px;
}

.pricing-calculator-form label > span {
  color: #334155;
}

.pricing-toggle-row {
  display: grid;
  gap: 8px;
}

.toggle-line {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.toggle-line input {
  width: 18px;
  min-height: 18px;
  accent-color: #26c4de;
}

.pricing-calculator-result {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(38, 196, 222, 0.16), rgba(225, 65, 200, 0.11)),
    rgba(255, 255, 255, 0.9);
}

.pricing-calculator-result span {
  color: #1688a8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-calculator-result b {
  color: #1688a8;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
}

body.portal-body:not(.product-landing) {
  color-scheme: light;
  --portal-bg: #f8fafc;
  --portal-surface: rgba(255, 255, 255, 0.84);
  --portal-surface-2: rgba(246, 250, 255, 0.9);
  --portal-surface-3: rgba(255, 255, 255, 0.72);
  --portal-ink: #101522;
  --portal-muted: #64748b;
  --portal-line: rgba(15, 23, 42, 0.1);
  --portal-accent: #1688a8;
  --portal-accent-2: #8d5cf7;
  --portal-accent-3: #315efb;
  --portal-shadow: 0 24px 70px rgba(15, 23, 42, 0.1);
  --portal-soft-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
  color: #101522;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 255, 0.98) 62%, #f8fafc),
    #f8fafc;
}

body.portal-body:not(.product-landing)::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.52)),
    url("./brand/product-wave-bg.png") center top / cover no-repeat;
  opacity: 0.54;
}

body.portal-body:not(.product-landing) .site-header,
body.portal-body:not(.product-landing) .site-footer,
body.portal-body:not(.product-landing) main {
  width: min(1180px, calc(100vw - 48px));
}

body.portal-body:not(.product-landing) .brand-mark,
body.portal-body:not(.product-landing) .hero-metrics div,
body.portal-body:not(.product-landing) .summary-list div,
body.portal-body:not(.product-landing) .metric-grid article,
body.portal-body:not(.product-landing) .hero-panel,
body.portal-body:not(.product-landing) .info-card,
body.portal-body:not(.product-landing) .step-card,
body.portal-body:not(.product-landing) .auth-card,
body.portal-body:not(.product-landing) .content-card,
body.portal-body:not(.product-landing) .summary-card,
body.portal-body:not(.product-landing) .admin-side-nav,
body.portal-body:not(.product-landing) .org-side-nav {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 56px rgba(15, 23, 42, 0.08);
}

body.portal-body:not(.product-landing) .nav-link,
body.portal-body:not(.product-landing) .button-secondary {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: #172033;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

body.portal-body:not(.product-landing) .nav-link-primary,
body.portal-body:not(.product-landing) .button-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #26c4de, #8d5cf7 54%, #e141c8);
  color: #ffffff;
  box-shadow: 0 18px 44px rgba(68, 93, 220, 0.22);
}

body.portal-body:not(.product-landing) .auth-copy h1,
body.portal-body:not(.product-landing) .section-heading h1,
body.portal-body:not(.product-landing) .section-heading h2,
body.portal-body:not(.product-landing) .card-head h2,
body.portal-body:not(.product-landing) .content-card h2,
body.portal-body:not(.product-landing) .content-card h3,
body.portal-body:not(.product-landing) .metric-grid article p,
body.portal-body:not(.product-landing) .summary-list dd,
body.portal-body:not(.product-landing) .admin-nav-button.active {
  color: #101522;
}

body.portal-body:not(.product-landing) .brand small,
body.portal-body:not(.product-landing) .muted,
body.portal-body:not(.product-landing) .footer-copy,
body.portal-body:not(.product-landing) .hero-text,
body.portal-body:not(.product-landing) .auth-copy p,
body.portal-body:not(.product-landing) .content-card p,
body.portal-body:not(.product-landing) .hero-panel p,
body.portal-body:not(.product-landing) .info-card p,
body.portal-body:not(.product-landing) .step-card p,
body.portal-body:not(.product-landing) .summary-list dt,
body.portal-body:not(.product-landing) .metric-grid h3 {
  color: #64748b;
}

body.portal-body:not(.product-landing) .eyebrow,
body.portal-body:not(.product-landing) .text-link,
body.portal-body:not(.product-landing) .plan-head span {
  color: #1688a8;
}

body.portal-body:not(.product-landing) input,
body.portal-body:not(.product-landing) select,
body.portal-body:not(.product-landing) textarea {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: #101522;
}

body.portal-body:not(.product-landing) input::placeholder,
body.portal-body:not(.product-landing) textarea::placeholder {
  color: #94a3b8;
}

body.portal-body:not(.product-landing) .admin-nav-button {
  color: #526173;
}

body.portal-body:not(.product-landing) .admin-nav-button.active {
  border-color: rgba(38, 196, 222, 0.25);
  background: linear-gradient(135deg, rgba(38, 196, 222, 0.16), rgba(225, 65, 200, 0.08));
}

body.portal-body:not(.product-landing) .panel-tree-maker,
body.portal-body:not(.product-landing) .panel-tree-series {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.62);
}

body.portal-body:not(.product-landing) .table-wrap,
body.portal-body:not(.product-landing) .comparison-wrap {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.76);
}

body.portal-body:not(.product-landing) table th,
body.portal-body:not(.product-landing) table td {
  border-bottom-color: rgba(15, 23, 42, 0.08);
  color: #475569;
}

@media (max-width: 1080px) {
  .screen-gallery,
  .mission-section,
  body.portal-body.product-landing .product-split,
  .insight-section,
  .pricing-calculator {
    grid-template-columns: 1fr;
  }

  .mission-label {
    position: static;
  }

  body.portal-body.product-landing .usecase-grid,
  .capability-grid,
  body.portal-body.product-landing .operation-grid,
  body.portal-body.product-landing .product-proof-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screen-card.large {
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  body.portal-body.product-landing {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body.portal-body.product-landing .site-header,
  body.portal-body.product-landing .site-footer,
  body.portal-body.product-landing main {
    width: min(100vw - 24px, 100%);
    max-width: 100%;
    overflow-x: hidden;
  }

  .environment-banner:not([hidden]) + .site-header {
    margin-top: 42px;
  }

  body.portal-body.product-landing h1,
  body.portal-body.product-landing h2,
  body.portal-body.product-landing h3,
  body.portal-body.product-landing p,
  body.portal-body.product-landing dd,
  body.portal-body.product-landing li {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
  }

  body.portal-body.product-landing .product-section,
  body.portal-body.product-landing .mission-label,
  body.portal-body.product-landing .mission-copy,
  body.portal-body.product-landing .section-heading,
  body.portal-body.product-landing .insight-copy {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
  }

  body.portal-body.product-landing .site-nav {
    width: min(100%, 344px);
    max-width: 100%;
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 0;
  }

  body.portal-body.product-landing .nav-link {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }

  body.portal-body.product-landing .product-hero {
    min-height: 620px;
    padding: 34px 22px;
  }

  body.portal-body.product-landing .product-hero-content,
  body.portal-body.product-landing .product-hero-lead {
    width: min(100%, 344px);
    max-width: 100%;
    min-width: 0;
  }

  body.portal-body.product-landing .product-hero h1,
  body.portal-body.product-landing .section-heading h2,
  body.portal-body.product-landing .mission-label h2,
  body.portal-body.product-landing .insight-copy h2 {
    font-size: 32px;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  body.portal-body.product-landing .product-proof-row,
  body.portal-body.product-landing .usecase-grid,
  .capability-grid,
  .document-preview,
  body.portal-body.product-landing .operation-grid,
  body.portal-body.product-landing .faq-grid,
  body.portal-body.product-landing .pricing-plan-grid,
  body.portal-body.product-landing .pricing-plan-grid.three-plans,
  body.portal-body.product-landing .addon-grid {
    grid-template-columns: 1fr;
  }
}

/* Final dark-mode overrides after legacy light sections. */
body.portal-body.product-landing,
body.portal-body:not(.product-landing) {
  color-scheme: dark;
  --portal-bg: #0b1020;
  --portal-surface: rgba(9, 14, 31, 0.86);
  --portal-surface-2: rgba(14, 21, 44, 0.9);
  --portal-surface-3: rgba(255, 255, 255, 0.055);
  --portal-ink: #f6f8ff;
  --portal-muted: #b0bdd7;
  --portal-line: rgba(255, 255, 255, 0.13);
  --portal-accent: #31c0e6;
  --portal-accent-2: #dd2df9;
  color: var(--portal-ink);
  background:
    radial-gradient(circle at 20% 10%, rgba(155, 92, 246, 0.12), transparent 30%),
    radial-gradient(circle at 86% 14%, rgba(49, 192, 230, 0.1), transparent 32%),
    radial-gradient(circle at 60% 92%, rgba(49, 192, 230, 0.07), transparent 38%),
    linear-gradient(145deg, #0b1020 0%, #111827 48%, #0d1324 100%);
}

body.portal-body.product-landing::before,
body.portal-body:not(.product-landing)::before {
  background:
    linear-gradient(135deg, rgba(49, 192, 230, 0.08), transparent 42%),
    linear-gradient(225deg, rgba(221, 45, 249, 0.1), transparent 34%);
  opacity: 1;
}

body.portal-body.product-landing .brand,
body.portal-body.product-landing .product-hero h1,
body.portal-body.product-landing .section-heading h2,
body.portal-body.product-landing .mission-label h2,
body.portal-body.product-landing .insight-copy h2,
body.portal-body.product-landing .pricing-group-head h3,
body.portal-body.product-landing .addon-card h3,
body.portal-body.product-landing .product-cta h2,
body.portal-body.product-landing .trial-banner h3,
body.portal-body.product-landing .plan-head strong,
body.portal-body.product-landing .pricing-table td:first-child,
body.portal-body.product-landing .faq-grid summary,
body.portal-body.product-landing .product-proof-row dt,
body.portal-body.product-landing .product-proof-row dd,
body.portal-body:not(.product-landing) .auth-copy h1,
body.portal-body:not(.product-landing) .section-heading h1,
body.portal-body:not(.product-landing) .section-heading h2,
body.portal-body:not(.product-landing) .card-head h2,
body.portal-body:not(.product-landing) .content-card h2,
body.portal-body:not(.product-landing) .content-card h3,
body.portal-body:not(.product-landing) .metric-grid article p,
body.portal-body:not(.product-landing) .summary-list dd,
body.portal-body:not(.product-landing) .admin-nav-button.active {
  color: var(--portal-ink);
}

body.portal-body.product-landing .brand small,
body.portal-body.product-landing .footer-copy,
body.portal-body.product-landing .site-footer,
body.portal-body.product-landing .muted,
body.portal-body.product-landing .product-hero-lead,
body.portal-body.product-landing .product-section .section-heading p:not(.eyebrow),
body.portal-body.product-landing .mission-copy p,
body.portal-body.product-landing .insight-copy p,
body.portal-body.product-landing .usecase-card p,
body.portal-body.product-landing .operation-card p,
body.portal-body.product-landing .pricing-group-head p,
body.portal-body.product-landing .addon-card p,
body.portal-body.product-landing .faq-grid p,
body.portal-body.product-landing .product-cta p,
body.portal-body.product-landing .trial-banner p,
body.portal-body.product-landing .plan-head p,
body.portal-body.product-landing .pricing-plan-card ul,
body.portal-body.product-landing .pricing-table th,
body.portal-body.product-landing .pricing-table td,
body.portal-body:not(.product-landing) .brand small,
body.portal-body:not(.product-landing) .muted,
body.portal-body:not(.product-landing) .footer-copy,
body.portal-body:not(.product-landing) .hero-text,
body.portal-body:not(.product-landing) .auth-copy p,
body.portal-body:not(.product-landing) .content-card p,
body.portal-body:not(.product-landing) .hero-panel p,
body.portal-body:not(.product-landing) .info-card p,
body.portal-body:not(.product-landing) .step-card p,
body.portal-body:not(.product-landing) .summary-list dt,
body.portal-body:not(.product-landing) .metric-grid h3 {
  color: var(--portal-muted);
}

body.portal-body.product-landing .nav-link,
body.portal-body.product-landing .button-secondary,
body.portal-body:not(.product-landing) .nav-link,
body.portal-body:not(.product-landing) .button-secondary {
  border-color: var(--portal-line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--portal-ink);
  box-shadow: none;
}

body.portal-body.product-landing .brand-mark,
body.portal-body.product-landing .product-proof-row div,
body.portal-body.product-landing .trial-banner,
body.portal-body.product-landing .usecase-card,
body.portal-body.product-landing .operation-card,
body.portal-body.product-landing .pricing-plan-card,
body.portal-body.product-landing .addon-card,
body.portal-body.product-landing .faq-grid details,
body.portal-body.product-landing .product-visual-panel,
body.portal-body.product-landing .screen-card,
body.portal-body.product-landing .capability-grid article,
body.portal-body.product-landing .document-sheet,
body.portal-body:not(.product-landing) .brand-mark,
body.portal-body:not(.product-landing) .hero-metrics div,
body.portal-body:not(.product-landing) .summary-list div,
body.portal-body:not(.product-landing) .metric-grid article,
body.portal-body:not(.product-landing) .hero-panel,
body.portal-body:not(.product-landing) .info-card,
body.portal-body:not(.product-landing) .step-card,
body.portal-body:not(.product-landing) .auth-card,
body.portal-body:not(.product-landing) .content-card,
body.portal-body:not(.product-landing) .summary-card,
body.portal-body:not(.product-landing) .admin-side-nav,
body.portal-body:not(.product-landing) .org-side-nav {
  border-color: var(--portal-line);
  background: rgba(17, 26, 46, 0.84);
  box-shadow: var(--portal-soft-shadow);
}

body.portal-body.product-landing .product-hero,
body.portal-body.product-landing .product-cta {
  background:
    linear-gradient(90deg, rgba(11, 16, 32, 0.99) 0%, rgba(17, 24, 39, 0.97) 58%, rgba(17, 24, 39, 0.95) 100%),
    url("./brand/product-wave-bg.png") center / cover no-repeat,
    linear-gradient(135deg, #050816, #0b1630 54%, #160a2c);
}

body.portal-body.product-landing .product-hero::after {
  background: linear-gradient(0deg, rgba(5, 8, 22, 0.86), transparent);
}

.pricing-calculator {
  border-color: var(--portal-line);
  background:
    linear-gradient(135deg, rgba(49, 192, 230, 0.1), rgba(221, 45, 249, 0.08)),
    rgba(9, 14, 31, 0.82);
}

.pricing-calculator-copy h3,
.pricing-calculator-result strong,
.pricing-calculator-result b {
  color: var(--portal-ink);
}

.pricing-calculator-copy p:not(.eyebrow),
.pricing-calculator-result p,
.pricing-calculator-form label > span {
  color: var(--portal-muted);
}

.pricing-calculator-result,
.toggle-line {
  border-color: var(--portal-line);
  background: rgba(255, 255, 255, 0.055);
}

/* Final admin-only UI override. Keep this after legacy dark-mode rules. */
body.portal-dashboard[data-page="admin"] {
  color-scheme: light;
  --portal-bg: #f3f8fc;
  --portal-surface: #ffffff;
  --portal-surface-2: #f8fbff;
  --portal-surface-3: #eef6fd;
  --portal-ink: #10213f;
  --portal-muted: #5f728b;
  --portal-line: #cfe0ee;
  --portal-line-strong: #b7d3e9;
  --portal-accent: #0098d8;
  --portal-accent-2: #14b8c9;
  --portal-soft-shadow: 0 18px 44px rgba(27, 63, 103, 0.11);
  height: 100dvh;
  min-height: 100svh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(236, 247, 255, 0.96), rgba(247, 251, 255, 0.98)),
    #f3f8fc;
  color: var(--portal-ink);
}

body.portal-dashboard[data-page="admin"]::before {
  display: none;
}

body.portal-dashboard[data-page="admin"] .site-header {
  height: 76px;
  border-bottom: 1px solid rgba(177, 207, 231, 0.8);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 26px rgba(31, 78, 121, 0.08);
}

body.portal-dashboard[data-page="admin"] .dashboard-layout {
  height: calc(100dvh - 76px);
  min-height: 0;
  overflow: hidden;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(226, 241, 252, 0.92), rgba(247, 251, 255, 0.96)),
    #f3f8fc;
}

body.portal-dashboard[data-page="admin"] .admin-console-shell {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 16px;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

body.portal-dashboard[data-page="admin"] .admin-side-nav {
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px;
  border: 1px solid var(--portal-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--portal-soft-shadow);
}

body.portal-dashboard[data-page="admin"] .admin-nav-button {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #526173;
  font-weight: 700;
  text-align: left;
}

body.portal-dashboard[data-page="admin"] .admin-nav-button:hover {
  border-color: rgba(0, 152, 216, 0.18);
  background: #eef7fd;
  color: #0f2747;
}

body.portal-dashboard[data-page="admin"] .admin-nav-button.active {
  border-color: rgba(0, 152, 216, 0.28);
  background: linear-gradient(135deg, rgba(0, 152, 216, 0.14), rgba(20, 184, 201, 0.08));
  color: #0f2747;
  box-shadow: inset 3px 0 0 var(--portal-accent);
}

body.portal-dashboard[data-page="admin"] .admin-console-content {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

body.portal-dashboard[data-page="admin"] .admin-console-content [data-admin-section]:not(.is-hidden) {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 2px 8px 28px 2px;
  scrollbar-gutter: stable;
}

body.portal-dashboard[data-page="admin"] .admin-console-content [data-admin-section].two-column:not(.is-hidden),
body.portal-dashboard[data-page="admin"] .admin-dashboard-panels {
  display: grid;
  grid-template-columns: minmax(380px, 1.04fr) minmax(340px, 0.96fr);
  align-items: start;
  gap: 16px;
}

body.portal-dashboard[data-page="admin"] .section-heading {
  grid-column: 1 / -1;
}

body.portal-dashboard[data-page="admin"] .brand,
body.portal-dashboard[data-page="admin"] .brand strong,
body.portal-dashboard[data-page="admin"] .section-heading h1,
body.portal-dashboard[data-page="admin"] .card-head h2,
body.portal-dashboard[data-page="admin"] .content-card h2,
body.portal-dashboard[data-page="admin"] .content-card h3,
body.portal-dashboard[data-page="admin"] .panel-tree-head strong,
body.portal-dashboard[data-page="admin"] table td:first-child,
body.portal-dashboard[data-page="admin"] .admin-nav-button.active {
  color: var(--portal-ink);
}

body.portal-dashboard[data-page="admin"] .brand small,
body.portal-dashboard[data-page="admin"] .muted,
body.portal-dashboard[data-page="admin"] .content-card p,
body.portal-dashboard[data-page="admin"] .summary-list dt,
body.portal-dashboard[data-page="admin"] .metric-grid h3,
body.portal-dashboard[data-page="admin"] .panel-tree-kicker,
body.portal-dashboard[data-page="admin"] .panel-tree-item small,
body.portal-dashboard[data-page="admin"] table th,
body.portal-dashboard[data-page="admin"] table td {
  color: var(--portal-muted);
}

body.portal-dashboard[data-page="admin"] .content-card,
body.portal-dashboard[data-page="admin"] .summary-card,
body.portal-dashboard[data-page="admin"] .metric-grid article {
  border: 1px solid var(--portal-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--portal-soft-shadow);
  color: var(--portal-ink);
}

body.portal-dashboard[data-page="admin"] .admin-console-content .content-card {
  overflow: visible;
}

body.portal-dashboard[data-page="admin"] .card-head {
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(207, 224, 238, 0.78);
}

body.portal-dashboard[data-page="admin"] .eyebrow {
  color: #0078b6;
  letter-spacing: 0.12em;
}

body.portal-dashboard[data-page="admin"] .panel-builder-step,
body.portal-dashboard[data-page="admin"] .panel-tree-maker,
body.portal-dashboard[data-page="admin"] .panel-tree-series,
body.portal-dashboard[data-page="admin"] .table-wrap,
body.portal-dashboard[data-page="admin"] .support-thread-list,
body.portal-dashboard[data-page="admin"] .support-thread-messages {
  border: 1px solid var(--portal-line);
  border-radius: 10px;
  background: rgba(248, 251, 255, 0.96);
  color: var(--portal-ink);
}

body.portal-dashboard[data-page="admin"] .panel-builder-step {
  padding: 14px;
}

body.portal-dashboard[data-page="admin"] .stack-form {
  gap: 14px;
}

body.portal-dashboard[data-page="admin"] label > span,
body.portal-dashboard[data-page="admin"] .check-row span,
body.portal-dashboard[data-page="admin"] .panel-builder-step > strong {
  color: #334b68;
  font-weight: 700;
}

body.portal-dashboard[data-page="admin"] input:not([type="checkbox"]),
body.portal-dashboard[data-page="admin"] select,
body.portal-dashboard[data-page="admin"] textarea {
  min-height: 42px;
  border: 1px solid var(--portal-line-strong) !important;
  border-radius: 9px;
  background: #ffffff !important;
  color: #10213f !important;
  box-shadow: inset 0 1px 0 rgba(16, 33, 63, 0.03);
  color-scheme: light;
}

body.portal-dashboard[data-page="admin"] select option,
body.portal-dashboard[data-page="admin"] select optgroup {
  background: #ffffff !important;
  color: #10213f !important;
}

body.portal-dashboard[data-page="admin"] input::placeholder,
body.portal-dashboard[data-page="admin"] textarea::placeholder {
  color: #91a2b8 !important;
}

body.portal-dashboard[data-page="admin"] input:focus,
body.portal-dashboard[data-page="admin"] select:focus,
body.portal-dashboard[data-page="admin"] textarea:focus {
  border-color: rgba(0, 152, 216, 0.76) !important;
  box-shadow: 0 0 0 3px rgba(0, 152, 216, 0.14);
  outline: none;
}

body.portal-dashboard[data-page="admin"] .button-primary {
  min-height: 42px;
  border-color: transparent;
  background: linear-gradient(135deg, #0098d8, #14b8c9);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 152, 216, 0.2);
}

body.portal-dashboard[data-page="admin"] .button-secondary,
body.portal-dashboard[data-page="admin"] .nav-link {
  border-color: var(--portal-line);
  background: #ffffff;
  color: #0f2747;
}

body.portal-dashboard[data-page="admin"] .button-secondary:hover,
body.portal-dashboard[data-page="admin"] .nav-link:hover {
  border-color: rgba(0, 152, 216, 0.36);
  background: #eef7fd;
}

body.portal-dashboard[data-page="admin"] .button-secondary.danger {
  border-color: rgba(220, 38, 38, 0.26);
  color: #dc2626;
}

body.portal-dashboard[data-page="admin"] .panel-tree-wrap,
body.portal-dashboard[data-page="admin"] .table-wrap {
  max-height: min(620px, calc(100dvh - 230px));
  overflow: auto;
}

body.portal-dashboard[data-page="admin"] table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f2f8fd;
  color: #47627d;
}

body.portal-dashboard[data-page="admin"] table th,
body.portal-dashboard[data-page="admin"] table td {
  border-bottom-color: rgba(207, 224, 238, 0.9);
}

body.portal-dashboard[data-page="admin"] .admin-side-nav,
body.portal-dashboard[data-page="admin"] .admin-console-content [data-admin-section]:not(.is-hidden),
body.portal-dashboard[data-page="admin"] .panel-tree-wrap,
body.portal-dashboard[data-page="admin"] .table-wrap,
body.portal-dashboard[data-page="admin"] .support-thread-list,
body.portal-dashboard[data-page="admin"] .support-thread-messages {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 152, 216, 0.42) transparent;
}

body.portal-dashboard[data-page="admin"] .admin-side-nav::-webkit-scrollbar,
body.portal-dashboard[data-page="admin"] .admin-console-content [data-admin-section]:not(.is-hidden)::-webkit-scrollbar,
body.portal-dashboard[data-page="admin"] .panel-tree-wrap::-webkit-scrollbar,
body.portal-dashboard[data-page="admin"] .table-wrap::-webkit-scrollbar,
body.portal-dashboard[data-page="admin"] .support-thread-list::-webkit-scrollbar,
body.portal-dashboard[data-page="admin"] .support-thread-messages::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

body.portal-dashboard[data-page="admin"] .admin-side-nav::-webkit-scrollbar-track,
body.portal-dashboard[data-page="admin"] .admin-console-content [data-admin-section]:not(.is-hidden)::-webkit-scrollbar-track,
body.portal-dashboard[data-page="admin"] .panel-tree-wrap::-webkit-scrollbar-track,
body.portal-dashboard[data-page="admin"] .table-wrap::-webkit-scrollbar-track,
body.portal-dashboard[data-page="admin"] .support-thread-list::-webkit-scrollbar-track,
body.portal-dashboard[data-page="admin"] .support-thread-messages::-webkit-scrollbar-track {
  background: transparent;
}

body.portal-dashboard[data-page="admin"] .admin-side-nav::-webkit-scrollbar-thumb,
body.portal-dashboard[data-page="admin"] .admin-console-content [data-admin-section]:not(.is-hidden)::-webkit-scrollbar-thumb,
body.portal-dashboard[data-page="admin"] .panel-tree-wrap::-webkit-scrollbar-thumb,
body.portal-dashboard[data-page="admin"] .table-wrap::-webkit-scrollbar-thumb,
body.portal-dashboard[data-page="admin"] .support-thread-list::-webkit-scrollbar-thumb,
body.portal-dashboard[data-page="admin"] .support-thread-messages::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(0, 152, 216, 0.36);
  background-clip: padding-box;
}

body.portal-dashboard[data-page="admin"] .admin-side-nav:hover::-webkit-scrollbar-thumb,
body.portal-dashboard[data-page="admin"] .admin-console-content [data-admin-section]:not(.is-hidden):hover::-webkit-scrollbar-thumb,
body.portal-dashboard[data-page="admin"] .panel-tree-wrap:hover::-webkit-scrollbar-thumb,
body.portal-dashboard[data-page="admin"] .table-wrap:hover::-webkit-scrollbar-thumb,
body.portal-dashboard[data-page="admin"] .support-thread-list:hover::-webkit-scrollbar-thumb,
body.portal-dashboard[data-page="admin"] .support-thread-messages:hover::-webkit-scrollbar-thumb {
  background: rgba(0, 152, 216, 0.62);
  background-clip: padding-box;
}

@media (max-width: 1180px) {
  body.portal-dashboard[data-page="admin"] .admin-console-shell {
    grid-template-columns: 196px minmax(0, 1fr);
  }

  body.portal-dashboard[data-page="admin"] .admin-console-content [data-admin-section].two-column:not(.is-hidden),
  body.portal-dashboard[data-page="admin"] .admin-dashboard-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.portal-dashboard[data-page="admin"] .dashboard-layout {
    height: auto;
    min-height: calc(100dvh - 76px);
    overflow: auto;
    padding: 12px;
  }

  body.portal-dashboard[data-page="admin"] .admin-console-shell {
    height: auto;
    overflow: visible;
    grid-template-columns: 1fr;
  }

  body.portal-dashboard[data-page="admin"] .admin-side-nav {
    max-height: 180px;
  }

  body.portal-dashboard[data-page="admin"] .admin-console-content [data-admin-section]:not(.is-hidden) {
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 0 0 24px;
  }
}

/*
 * The legacy admin stylesheet contains a more-specific dark card rule.
 * Keep the Cloudflare admin console on the final light palette so headings,
 * release IDs, and operational status remain readable.
 */
body.portal-dashboard[data-page="admin"] .admin-console-content .content-card {
  border-color: var(--portal-line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--portal-ink);
}

body.portal-dashboard[data-page="admin"] .admin-console-content .summary-list div,
body.portal-dashboard[data-page="admin"] .admin-console-content .metric-grid article,
body.portal-dashboard[data-page="admin"] .admin-console-content .panel-builder-step,
body.portal-dashboard[data-page="admin"] .admin-console-content .summary-card,
body.portal-dashboard[data-page="admin"] .admin-console-content .panel-tree-maker,
body.portal-dashboard[data-page="admin"] .admin-console-content .panel-tree-series {
  border-color: var(--portal-line);
  background: var(--portal-surface-2);
  color: var(--portal-ink);
}

@media (max-width: 760px) {
  body.portal-dashboard[data-page="admin"] {
    height: auto;
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body.portal-dashboard[data-page="admin"] .site-header {
    width: 100%;
    height: 76px;
    min-height: 76px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
  }

  body.portal-dashboard[data-page="admin"] .site-header .brand > span:last-child {
    display: none;
  }

  body.portal-dashboard[data-page="admin"] .site-header .brand-mark {
    width: 42px;
    height: 42px;
  }

  body.portal-dashboard[data-page="admin"] .site-header .site-nav {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 6px;
  }

  body.portal-dashboard[data-page="admin"] .site-header .nav-link {
    min-width: 0;
    min-height: 40px;
    padding: 0 10px;
    font-size: 12px;
    white-space: nowrap;
  }
}

/* Focused authentication experience */
body.portal-body.portal-auth {
  --auth-bg: #f8fafc;
  --auth-surface: #ffffff;
  --auth-surface-subtle: #f1f5f9;
  --auth-ink: #0f172a;
  --auth-muted: #475569;
  --auth-line: #dbe3ed;
  --auth-accent: #0369a1;
  --auth-accent-hover: #075985;
  --auth-focus: rgba(3, 105, 161, 0.22);
  --auth-danger: #b91c1c;
  --auth-success: #047857;
  min-height: 100dvh;
  color-scheme: light;
  color: var(--auth-ink);
  background: var(--auth-bg);
}

body.portal-body.portal-auth::before {
  background:
    linear-gradient(90deg, rgba(3, 105, 161, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(3, 105, 161, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 1;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 68%);
}

body.portal-auth .skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 12px 16px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--auth-accent);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

body.portal-auth .skip-link:focus {
  transform: translateY(0);
}

body.portal-body.portal-auth .site-header.compact,
body.portal-body.portal-auth main {
  width: min(1120px, calc(100vw - 48px));
}

body.portal-body.portal-auth .site-header {
  min-height: 88px;
  padding: 20px 0;
  border-bottom: 1px solid var(--auth-line);
  background: rgba(248, 250, 252, 0.96);
  backdrop-filter: none;
}

body.portal-body.portal-auth .brand {
  color: var(--auth-ink);
}

body.portal-body.portal-auth .brand-mark {
  width: 44px;
  height: 44px;
  border: 1px solid var(--auth-line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  backdrop-filter: none;
}

body.portal-body.portal-auth .brand strong {
  font-size: 16px;
  letter-spacing: -0.01em;
}

body.portal-body.portal-auth .brand small {
  margin-top: 2px;
  color: var(--auth-muted);
  font-size: 12px;
}

body.portal-body.portal-auth .nav-link {
  min-height: 44px;
  border-color: #cbd5e1;
  border-radius: 8px;
  color: var(--auth-ink);
  background: #ffffff;
  box-shadow: none;
  font-weight: 700;
}

body.portal-body.portal-auth .nav-link:hover {
  border-color: #94a3b8;
  background: var(--auth-surface-subtle);
  transform: none;
}

body.portal-body.portal-auth .auth-layout {
  min-height: calc(100dvh - 89px);
  margin: 0 auto;
  padding: 56px 0 72px;
  grid-template-columns: minmax(0, 0.88fr) minmax(500px, 1.12fr);
  gap: clamp(48px, 7vw, 88px);
  align-items: center;
}

body.portal-body.portal-auth .auth-copy {
  max-width: 500px;
  padding: 0;
}

body.portal-body.portal-auth .auth-copy .eyebrow {
  margin-bottom: 14px;
  color: var(--auth-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

body.portal-body.portal-auth .auth-copy h1 {
  max-width: 9em;
  margin: 0;
  color: var(--auth-ink);
  font-size: clamp(38px, 4vw, 52px);
  line-height: 1.18;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

body.portal-body.portal-auth .auth-copy > p:not(.eyebrow) {
  max-width: 46ch;
  margin: 22px 0 0;
  color: var(--auth-muted);
  font-size: 16px;
  line-height: 1.8;
}

body.portal-auth .auth-benefits {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

body.portal-auth .auth-benefits li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: #334155;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.6;
}

body.portal-auth .auth-benefit-index {
  display: inline-flex;
  width: 38px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  color: var(--auth-accent);
  background: #f0f9ff;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

body.portal-auth .auth-security-note {
  display: grid;
  gap: 4px;
  margin-top: 28px;
  padding: 16px 18px;
  border-left: 3px solid var(--auth-accent);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, 0.72);
}

body.portal-auth .auth-security-note strong {
  color: var(--auth-ink);
  font-size: 13px;
}

body.portal-auth .auth-security-note span {
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.6;
}

body.portal-body.portal-auth .auth-card {
  width: 100%;
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid var(--auth-line);
  border-radius: 16px;
  color: var(--auth-ink);
  background: var(--auth-surface);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.09);
  backdrop-filter: none;
}

body.portal-body.portal-auth[data-page="login"] .auth-card {
  max-width: 520px;
  justify-self: end;
}

body.portal-body.portal-auth[data-page="signup"] .auth-card {
  max-width: 660px;
  justify-self: end;
}

body.portal-auth .auth-card-heading {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--auth-line);
}

body.portal-auth .auth-card-heading .auth-step {
  margin: 0 0 8px;
  color: var(--auth-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.portal-auth .auth-card-heading h2 {
  margin: 0;
  color: var(--auth-ink);
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

body.portal-auth .auth-card-heading > p:last-child {
  margin: 10px 0 0;
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 1.7;
}

body.portal-auth .stack-form {
  gap: 20px;
}

body.portal-auth .form-grid {
  gap: 18px;
}

body.portal-auth .form-field {
  display: grid;
  min-width: 0;
  gap: 8px;
}

body.portal-auth .field-label {
  display: flex;
  min-height: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--auth-ink);
  font-size: 14px;
  font-weight: 700;
}

body.portal-auth .field-required,
body.portal-auth .field-optional {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

body.portal-auth .field-required {
  color: #9f1239;
  background: #fff1f2;
}

body.portal-auth .field-optional {
  color: #475569;
  background: #f1f5f9;
}

body.portal-body.portal-auth input:not([type="checkbox"]),
body.portal-body.portal-auth select,
body.portal-body.portal-auth textarea {
  min-height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: var(--auth-ink);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

body.portal-auth textarea {
  min-height: 104px;
}

body.portal-body.portal-auth input:not([type="checkbox"]):hover,
body.portal-body.portal-auth select:hover,
body.portal-body.portal-auth textarea:hover {
  border-color: #94a3b8;
}

body.portal-body.portal-auth input:not([type="checkbox"]):focus-visible,
body.portal-body.portal-auth select:focus-visible,
body.portal-body.portal-auth textarea:focus-visible {
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 4px var(--auth-focus);
}

body.portal-auth .form-field.is-invalid input:not([type="checkbox"]),
body.portal-auth .form-field.is-invalid select,
body.portal-auth .form-field.is-invalid textarea {
  border-color: var(--auth-danger);
  background: #fffafa;
}

body.portal-auth .form-field.is-invalid input:not([type="checkbox"]):focus-visible,
body.portal-auth .form-field.is-invalid select:focus-visible,
body.portal-auth .form-field.is-invalid textarea:focus-visible {
  box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.14);
}

body.portal-auth .field-message {
  color: var(--auth-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
}

body.portal-auth .field-message:empty {
  display: none;
}

body.portal-auth .form-field.is-invalid .field-message {
  color: var(--auth-danger);
  font-weight: 700;
}

body.portal-auth .password-control {
  position: relative;
}

body.portal-auth .password-control input {
  padding-right: 76px;
}

body.portal-auth .password-toggle {
  position: absolute;
  top: 2px;
  right: 2px;
  bottom: 2px;
  min-width: 66px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-left: 1px solid var(--auth-line);
  border-radius: 0 7px 7px 0;
  color: var(--auth-accent);
  background: #ffffff;
  box-shadow: none;
  font-size: 13px;
  font-weight: 800;
}

body.portal-auth .password-toggle:hover {
  color: var(--auth-accent-hover);
  background: #f0f9ff;
  transform: none;
}

body.portal-auth .password-toggle:focus-visible,
body.portal-auth .nav-link:focus-visible,
body.portal-auth .text-link:focus-visible,
body.portal-auth .button-primary:focus-visible,
body.portal-auth .check-row a:focus-visible {
  outline: 3px solid var(--auth-focus);
  outline-offset: 3px;
}

body.portal-auth .auth-assurance {
  margin: -4px 0 0;
  padding: 12px 14px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  color: #334155;
  background: #f8fbff;
  font-size: 12px;
  line-height: 1.6;
}

body.portal-auth [data-turnstile-widget] {
  min-height: 65px;
  overflow: hidden;
}

body.portal-body.portal-auth .button-primary {
  min-height: 50px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--auth-accent);
  box-shadow: 0 8px 20px rgba(3, 105, 161, 0.18);
  font-size: 15px;
  font-weight: 800;
  touch-action: manipulation;
}

body.portal-body.portal-auth .button-primary:hover {
  background: var(--auth-accent-hover);
  box-shadow: 0 10px 24px rgba(3, 105, 161, 0.22);
  transform: none;
}

body.portal-body.portal-auth .button-primary:active {
  background: #0c4a6e;
}

body.portal-body.portal-auth .button-primary:disabled {
  cursor: wait;
  opacity: 0.62;
  box-shadow: none;
}

body.portal-auth .button-primary.is-loading::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-right: 10px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: auth-spinner 700ms linear infinite;
}

body.portal-auth .form-status {
  min-height: 0;
  margin: -4px 0 0;
  padding: 0;
  color: var(--auth-muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.65;
}

body.portal-auth .form-status:empty {
  display: none;
}

body.portal-auth .form-status.is-error,
body.portal-auth .form-status.is-success {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
}

body.portal-auth .form-status.is-error {
  border: 1px solid #fecaca;
  color: var(--auth-danger);
  background: #fef2f2;
}

body.portal-auth .form-status.is-success {
  border: 1px solid #a7f3d0;
  color: var(--auth-success);
  background: #ecfdf5;
}

body.portal-auth .consent-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--auth-line);
  border-radius: 8px;
  background: var(--auth-surface-subtle);
}

body.portal-auth .check-row {
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
}

body.portal-auth .check-row input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 2px 0 0;
  accent-color: var(--auth-accent);
}

body.portal-body.portal-auth .text-link {
  color: var(--auth-accent);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(3, 105, 161, 0.34);
  text-underline-offset: 3px;
}

body.portal-body.portal-auth .text-link:hover {
  color: var(--auth-accent-hover);
  text-decoration-color: currentColor;
}

body.portal-auth .auth-links {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.7;
}

body.portal-auth .auth-links > span {
  height: 1px;
  background: var(--auth-line);
}

body.portal-auth .auth-links p,
body.portal-auth .auth-note {
  margin: 0;
}

body.portal-auth .auth-note {
  margin-top: 20px;
  color: var(--auth-muted);
  font-size: 12px;
  line-height: 1.65;
  text-align: center;
}

@keyframes auth-spinner {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 960px) {
  body.portal-body.portal-auth .auth-layout {
    width: min(680px, calc(100vw - 48px));
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 44px;
  }

  body.portal-body.portal-auth .auth-copy {
    max-width: 680px;
    grid-row: 2;
  }

  body.portal-body.portal-auth .auth-card {
    grid-row: 1;
  }

  body.portal-body.portal-auth .auth-copy h1 {
    max-width: 16ch;
  }

  body.portal-body.portal-auth .auth-copy > p:not(.eyebrow) {
    max-width: 62ch;
  }

  body.portal-auth .auth-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.portal-auth .auth-benefits li {
    grid-template-columns: 1fr;
    align-content: start;
  }

  body.portal-body.portal-auth[data-page="login"] .auth-card {
    max-width: none;
    justify-self: stretch;
  }

  body.portal-body.portal-auth[data-page="signup"] .auth-card {
    max-width: none;
    justify-self: stretch;
  }
}

@media (max-width: 640px) {
  body.portal-body.portal-auth .site-header.compact,
  body.portal-body.portal-auth main {
    width: min(100vw - 32px, 100%);
  }

  body.portal-body.portal-auth .site-header {
    min-height: 76px;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
  }

  body.portal-auth .brand {
    min-width: 0;
    gap: 10px;
  }

  body.portal-auth .brand-mark {
    width: 42px;
    height: 42px;
  }

  body.portal-auth .brand > span:last-child {
    min-width: 0;
  }

  body.portal-auth .brand strong,
  body.portal-auth .brand small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.portal-auth .nav-link {
    min-height: 44px;
    padding: 0 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  body.portal-body.portal-auth .auth-layout {
    width: min(100vw - 32px, 100%);
    min-height: auto;
    gap: 28px;
    padding: 36px 0 48px;
  }

  body.portal-body.portal-auth .auth-copy h1 {
    max-width: 18ch;
    font-size: clamp(30px, 9vw, 38px);
    letter-spacing: -0.025em;
  }

  body.portal-body.portal-auth .auth-copy > p:not(.eyebrow) {
    margin-top: 16px;
    font-size: 15px;
  }

  body.portal-auth .auth-benefits {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 22px;
  }

  body.portal-auth .auth-benefits li {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  body.portal-auth .auth-security-note {
    margin-top: 22px;
  }

  body.portal-body.portal-auth .auth-card {
    padding: 24px 20px;
    border-radius: 12px;
  }

  body.portal-auth .auth-card-heading {
    margin-bottom: 24px;
    padding-bottom: 20px;
  }

  body.portal-auth .form-grid {
    grid-template-columns: 1fr;
  }

  body.portal-body.portal-auth input:not([type="checkbox"]),
  body.portal-body.portal-auth select,
  body.portal-body.portal-auth textarea {
    font-size: 16px;
  }
}

@media (max-width: 420px) {
  body.portal-auth .brand small {
    display: none;
  }

  body.portal-auth .brand strong {
    max-width: 134px;
  }

  body.portal-auth .nav-link {
    padding: 0 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.portal-auth *,
  body.portal-auth *::before,
  body.portal-auth *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
