:root {
  color-scheme: light;
  --font-sans: "Segoe UI Variable", "Segoe UI", "Microsoft YaHei UI", "Noto Sans SC", sans-serif;
  --font-mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #edf2f8;
  --ink: #101828;
  --muted: #5d687a;
  --line: #d9e0ea;
  --accent: #2764e7;
  --accent-strong: #1d4fc0;
  --accent-soft: #e8efff;
  --success: #16845b;
  --warning: #b25b13;
  --danger: #c6414b;
  --dark-bg: #0b1019;
  --dark-surface: #111827;
  --dark-soft: #172132;
  --dark-line: #293449;
  --dark-ink: #f3f6fb;
  --dark-muted: #9eabbd;
  --radius-card: 18px;
  --radius-control: 10px;
  --shadow: 0 24px 70px rgba(25, 47, 89, 0.12);
  --shadow-soft: 0 14px 40px rgba(25, 47, 89, 0.08);
  --toolbar-height: 44px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

button,
a,
select,
label[for] {
  cursor: pointer;
}

button {
  color: inherit;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

body[data-variant="FINAL"] .prototype-switcher {
  display: none;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: -0.035em;
  line-height: 1.08;
}

button,
.button {
  min-height: 44px;
  border-radius: var(--radius-control);
}

:focus-visible {
  outline: 3px solid rgba(39, 100, 231, 0.45);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  transform: translateY(-160%);
}

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

.prototype-toolbar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--toolbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 18px;
  border-bottom: 1px solid #344054;
  background: #121826;
  color: #eef3fb;
  font-size: 13px;
}

.prototype-toolbar__label {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.prototype-toolbar__mark {
  padding: 3px 7px;
  border: 1px solid #59719d;
  border-radius: 6px;
  color: #a9c0f4;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.prototype-toolbar__views {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.prototype-toolbar__views::-webkit-scrollbar {
  display: none;
}

.prototype-view-button,
.prototype-lang-button {
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #c9d3e2;
  font-size: 13px;
  white-space: nowrap;
}

.prototype-view-button:hover,
.prototype-lang-button:hover,
.prototype-view-button[aria-current="page"] {
  border-color: #3c4a60;
  background: #202a3b;
  color: #ffffff;
}

.page-root {
  min-height: calc(100dvh - var(--toolbar-height));
}

.public-page {
  background:
    radial-gradient(circle at 88% 2%, rgba(39, 100, 231, 0.08), transparent 24rem),
    var(--bg);
}

.dashboard-page {
  color-scheme: dark;
  background: var(--dark-bg);
  color: var(--dark-ink);
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.container-wide {
  width: min(1380px, calc(100% - 36px));
  margin-inline: auto;
}

.site-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  font-weight: 720;
  letter-spacing: -0.03em;
}

.brand-logo {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  background: #000000;
  object-fit: contain;
}

.brand-sub {
  display: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 560;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav__links,
.site-nav__actions,
.button-row,
.inline-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav__links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: #475467;
  font-size: 14px;
  font-weight: 560;
}

.site-nav__links a:hover {
  color: var(--ink);
}

.site-nav__links a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.button,
.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:active,
.primary-button:active,
.secondary-button:active,
.ghost-button:active,
.danger-button:active {
  transform: translateY(1px);
}

.primary-button {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(39, 100, 231, 0.2);
}

.primary-button:hover {
  background: var(--accent-strong);
}

.secondary-button {
  border-color: #c7d0df;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.secondary-button:hover {
  border-color: #9eaabe;
  background: #ffffff;
}

.ghost-button {
  border-color: transparent;
  background: transparent;
  color: var(--accent);
}

.ghost-button:hover {
  background: var(--accent-soft);
}

.danger-button {
  border-color: rgba(198, 65, 75, 0.3);
  background: rgba(198, 65, 75, 0.12);
  color: #f18d95;
}

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

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero {
  min-height: calc(100dvh - 116px);
  display: grid;
  align-items: center;
  padding: 52px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
}

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

.eyebrow {
  margin-bottom: 16px;
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 12ch;
  margin-bottom: 22px;
  font-size: clamp(46px, 6vw, 78px);
  font-weight: 760;
  letter-spacing: -0.065em;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 52ch;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
}

.hero-visual {
  position: relative;
  border: 1px solid #cfd7e3;
  border-radius: var(--radius-card);
  background: #080c12;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-visual figcaption {
  display: none;
}

.fact-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.fact-band__item {
  min-height: 82px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 20px 28px;
  border-right: 1px solid var(--line);
}

.fact-band__item:last-child {
  border-right: 0;
}

.fact-band strong {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.fact-band span {
  display: none;
}

.section {
  padding: 92px 0;
}

.section-compact {
  padding: 60px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin-bottom: 14px;
  font-size: clamp(34px, 4vw, 52px);
}

.section-heading p {
  display: none;
}

.flow-list {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.flow-step {
  position: relative;
  min-height: 112px;
  display: flex;
  align-items: center;
  padding: 24px 26px 24px 0;
  border-bottom: 1px solid var(--line);
}

.flow-step + .flow-step {
  padding-left: 26px;
  border-left: 1px solid var(--line);
}

.flow-step__index {
  display: block;
  margin-bottom: 34px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.flow-step h3 {
  margin-bottom: 0;
  font-size: 21px;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.plan-board {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.plan-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(220px, 1fr) 92px;
  align-items: center;
  gap: 18px;
  min-height: 82px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

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

.plan-row:hover,
.plan-row.is-selected {
  background: #f4f7ff;
}

.plan-row h3,
.plan-row p {
  margin: 0;
}

.plan-row p,
.plan-note {
  display: none;
}

.plan-price {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
}

.plan-row > button {
  width: 92px;
  justify-self: end;
}

.legal-note {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 38px;
  padding: 34px;
  border-radius: var(--radius-card);
  background: #e9eef6;
}

.legal-note h2 {
  margin-bottom: 10px;
  font-size: 30px;
}

.legal-note p {
  margin: 0;
  color: #4a5668;
}

.site-footer {
  padding: 34px 0 100px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

/* Public detail pages */
.public-subpage .site-nav {
  border-bottom: 1px solid var(--line);
}

.public-subpage__header {
  padding: clamp(52px, 7vw, 88px) 0 30px;
  border-bottom: 1px solid var(--line);
}

.public-subpage__header h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(48px, 7vw, 78px);
}

.public-subpage__section {
  padding: 38px 0 56px;
}

.product-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 22px;
  align-items: stretch;
}

.product-page__grid .hero-visual img {
  height: 100%;
  min-height: 460px;
  aspect-ratio: auto;
  object-position: 62% center;
}

.capability-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.capability-list article {
  min-height: 220px;
  display: flex;
  align-items: center;
  padding: 30px;
  border-bottom: 1px solid var(--line);
}

.capability-list h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
}

.plans-page .plan-board {
  width: min(900px, 100%);
}

.public-subpage__action {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 72px;
}

/* Variant B: product-led public layout */
.home-b .site-nav {
  border-bottom: 1px solid var(--line);
}

.home-b .hero {
  min-height: auto;
  padding-top: 32px;
}

.home-b .hero-grid {
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  align-items: stretch;
  gap: 22px;
}

.home-b .hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px;
  border-radius: var(--radius-card);
  background: #e8eef8;
}

.home-b .hero h1 {
  max-width: 8ch;
  font-size: clamp(48px, 6vw, 74px);
}

.home-b .hero-visual img {
  height: 100%;
  min-height: 560px;
  aspect-ratio: auto;
  object-position: 62% center;
}

.purchase-rail {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 28px;
  align-items: start;
}

.purchase-rail__story {
  display: grid;
  gap: 0;
}

.story-row {
  display: block;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.story-row strong {
  font-size: 18px;
}

.story-row p {
  margin: 0;
  color: var(--muted);
}

.purchase-rail__panel {
  position: sticky;
  top: 72px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.purchase-rail__panel h3 {
  margin-bottom: 8px;
  font-size: 26px;
}

.purchase-rail__panel .primary-button {
  width: 100%;
  margin-top: 18px;
}

/* Variant C: compact decision layout */
.home-c .site-nav {
  width: min(1380px, calc(100% - 36px));
  margin-inline: auto;
}

.decision-shell {
  width: min(1380px, calc(100% - 36px));
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  min-height: 690px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.decision-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(32px, 5vw, 68px);
  border-right: 1px solid var(--line);
}

.decision-copy h1 {
  max-width: 9ch;
  margin-bottom: 20px;
  font-size: clamp(46px, 6vw, 76px);
}

.decision-copy p {
  max-width: 44ch;
  color: var(--muted);
}

.decision-console {
  display: grid;
  grid-template-rows: 1fr auto;
  background: #eef3f9;
}

.decision-console__image {
  padding: 24px;
}

.decision-console__image img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
}

.decision-console__actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.decision-option {
  min-height: 116px;
  padding: 18px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.decision-option:last-child {
  border-right: 0;
}

.decision-option:hover,
.decision-option.is-selected {
  background: var(--accent-soft);
}

.decision-option strong,
.decision-option span {
  display: block;
}

.decision-option span {
  display: none;
}

/* Checkout */
.checkout-shell {
  padding-bottom: 110px;
}

.checkout-header {
  padding: 28px 0 24px;
}

.checkout-header h1 {
  margin-bottom: 0;
  font-size: clamp(36px, 5vw, 56px);
}

.checkout-header p {
  color: var(--muted);
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 30px;
  align-items: start;
}

.checkout-form,
.order-summary,
.auth-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.checkout-form {
  padding: 30px;
}

.checkout-form > div + div {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.order-summary {
  position: sticky;
  top: 72px;
  padding: 24px;
}

.form-section + .form-section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.form-section h2 {
  margin-bottom: 18px;
  font-size: 23px;
}

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

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

.field-full {
  grid-column: 1 / -1;
}

.field label,
.field-label {
  color: #344054;
  font-size: 14px;
  font-weight: 650;
}

.field input,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #bfc9d8;
  border-radius: var(--radius-control);
  background: #ffffff;
  color: var(--ink);
}

.field input::placeholder {
  color: #737f91;
}

.field input:focus,
.field select:focus {
  border-color: var(--accent);
}

.field-help,
.field-error {
  min-height: 20px;
  margin: 0;
  font-size: 13px;
}

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

.form-section > .field-help {
  margin-top: 10px;
}

.field-error {
  color: var(--danger);
}

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

.choice-button {
  min-height: 70px;
  padding: 12px;
  border: 1px solid #c9d2df;
  border-radius: var(--radius-control);
  background: #ffffff;
  text-align: left;
}

.choice-button:hover,
.choice-button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.choice-grid-plans .choice-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
}

.choice-grid-plans .choice-button span {
  display: block;
  color: #526176;
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  text-align: right;
  white-space: nowrap;
}

.choice-button strong,
.choice-button span {
  display: block;
}

.choice-button span {
  display: none;
}

.checkout-update-policy {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #bfd0f4;
  border-radius: 12px;
  background: var(--accent-soft);
}

.checkout-update-policy > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.checkout-update-policy span {
  color: #344054;
  font-weight: 650;
}

.checkout-update-policy strong {
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 20px;
}

.checkout-update-policy p {
  margin: 0;
  color: #44516a;
  font-size: 14px;
  line-height: 1.6;
}

.public-page .eyebrow,
.checkout-shell .field-help,
.purchase-rail__panel > .muted {
  display: none;
}

.consent-box {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 11px;
  align-items: start;
  padding: 16px;
  border-radius: 12px;
  background: #eef2f7;
  color: #344054;
  font-size: 13px;
}

.consent-box input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.error-summary {
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid rgba(198, 65, 75, 0.36);
  border-radius: 12px;
  background: #fff1f2;
  color: #9e2933;
}

.error-summary h2 {
  margin-bottom: 7px;
  font-size: 18px;
}

.error-summary p {
  margin: 0;
  font-size: 14px;
}

.summary-list {
  display: grid;
  gap: 14px;
  margin: 20px 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.summary-row strong {
  color: var(--ink);
  text-align: right;
}

.summary-total {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 18px;
}

.order-summary .primary-button {
  width: 100%;
}

.checkout-b .checkout-layout {
  grid-template-columns: 330px minmax(0, 1fr);
}

.checkout-b .order-summary {
  grid-column: 1;
  grid-row: 1;
}

.checkout-b .checkout-form {
  grid-column: 2;
}

.checkout-c .checkout-layout {
  grid-template-columns: 1fr;
}

.checkout-c .checkout-form {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
}

.checkout-c .checkout-form > div + div {
  margin: 0;
  padding: 0 0 0 34px;
  border-top: 0;
  border-left: 1px solid var(--line);
}

.checkout-c .order-summary {
  position: static;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
}

.checkout-c .order-summary .summary-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Authentication */
.auth-page {
  min-height: calc(100dvh - var(--toolbar-height));
  display: grid;
  place-items: center;
  padding: 46px 20px 100px;
  background:
    radial-gradient(circle at 20% 20%, rgba(39, 100, 231, 0.1), transparent 26rem),
    var(--bg);
}

.auth-card {
  width: min(480px, 100%);
  padding: 34px;
}

.auth-card .brand {
  margin-bottom: 36px;
}

.auth-card h1 {
  margin-bottom: 10px;
  font-size: 34px;
}

.auth-card > p {
  margin-bottom: 26px;
  color: var(--muted);
}

.auth-card .primary-button {
  width: 100%;
  margin-top: 8px;
}

.auth-card form {
  display: grid;
  gap: 16px;
}

.form-error {
  margin: 0;
  padding: 11px 13px;
  border: 1px solid rgba(198, 65, 75, 0.3);
  border-radius: var(--radius-control);
  background: rgba(198, 65, 75, 0.08);
  color: #a52d38;
  font-size: 14px;
}

.auth-b {
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 46px 20px 100px;
}

.auth-b__visual {
  min-height: calc(100dvh - var(--toolbar-height));
  display: flex;
  align-items: flex-end;
  padding: 56px;
  background: #0c111a;
  color: #f3f6fb;
}

.auth-b__visual h2 {
  max-width: 10ch;
  font-size: clamp(40px, 5vw, 64px);
}

.auth-b .auth-card {
  align-self: center;
  justify-self: center;
}

.auth-c .auth-card {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 34px;
}

.auth-c__aside {
  padding-right: 30px;
  border-right: 1px solid var(--line);
}

/* Customer and admin dashboards */
.app-shell {
  min-height: calc(100dvh - var(--toolbar-height));
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}

.app-sidebar {
  position: sticky;
  top: var(--toolbar-height);
  height: calc(100dvh - var(--toolbar-height));
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  border-right: 1px solid var(--dark-line);
  background: #0e1521;
}

.app-sidebar .brand {
  padding: 0 8px 20px;
  border-bottom: 1px solid var(--dark-line);
}

.app-sidebar .brand-sub {
  color: var(--dark-muted);
}

.sidebar-nav {
  display: grid;
  gap: 5px;
  margin-top: 22px;
}

.sidebar-button {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--dark-muted);
  text-align: left;
  font-size: 14px;
}

.sidebar-button:hover,
.sidebar-button[aria-current="page"] {
  border-color: #34415a;
  background: #182235;
  color: var(--dark-ink);
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px 10px 4px;
  border-top: 1px solid var(--dark-line);
  color: var(--dark-muted);
  font-size: 12px;
}

.app-main {
  min-width: 0;
  padding: 28px 30px 110px;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.app-topbar h1 {
  margin-bottom: 5px;
  font-size: 30px;
}

.app-topbar p {
  margin: 0;
  color: var(--dark-muted);
  font-size: 14px;
}

.app-topbar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.compact-select {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dark-muted);
  font-size: 13px;
}

.compact-select select {
  min-height: 40px;
  padding: 7px 34px 7px 10px;
  border: 1px solid #39465d;
  border-radius: var(--radius-control);
  background: #101a29;
  color: var(--dark-ink);
}

.dashboard-page .app-topbar .eyebrow,
.dashboard-page .app-topbar > div > p:last-child,
.dashboard-page .panel-header p,
.sidebar-footer {
  display: none;
}

.app-topbar .secondary-button,
.dashboard-page .secondary-button {
  border-color: #39465d;
  background: #172132;
  color: var(--dark-ink);
}

.dashboard-page .primary-button {
  box-shadow: none;
}

.metric-strip {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  margin-bottom: 24px;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-card);
  background: var(--dark-surface);
  overflow: hidden;
}

.metric {
  min-height: 96px;
  padding: 20px;
  border-right: 1px solid var(--dark-line);
}

.metric:last-child {
  border-right: 0;
}

.metric span {
  display: block;
  margin-bottom: 12px;
  color: var(--dark-muted);
  font-size: 13px;
}

.metric strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 25px;
  letter-spacing: -0.03em;
}

.metric small {
  display: none;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 24px;
}

.dashboard-grid > * {
  min-width: 0;
}

.dark-panel {
  min-width: 0;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-card);
  background: var(--dark-surface);
  overflow: hidden;
}

.dark-panel + .dark-panel {
  margin-top: 20px;
}

.panel-header {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--dark-line);
}

.panel-header h2,
.panel-header h3,
.panel-header p {
  margin: 0;
}

.panel-header h2,
.panel-header h3 {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.panel-header p {
  color: var(--dark-muted);
  font-size: 13px;
}

.panel-body {
  padding: 20px;
}

.table-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th,
.data-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--dark-line);
  text-align: left;
  white-space: nowrap;
}

.data-table th {
  color: var(--dark-muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.data-table tbody tr:hover {
  background: #141e2e;
}

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

.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
}

.status-online,
.status-active {
  background: rgba(22, 132, 91, 0.18);
  color: #67dbad;
}

.status-warning {
  background: rgba(178, 91, 19, 0.18);
  color: #f0ad69;
}

.status-offline,
.status-revoked {
  background: rgba(198, 65, 75, 0.18);
  color: #f18d95;
}

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

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

.dashboard-page .muted {
  color: var(--dark-muted);
}

.dashboard-page .summary-row {
  color: var(--dark-muted);
}

.dashboard-page .summary-row strong {
  color: var(--dark-ink);
}

.account-list,
.activity-list,
.version-list {
  display: grid;
}

.account-row,
.activity-row,
.version-row {
  display: grid;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--dark-line);
}

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

.account-row {
  grid-template-columns: 1fr 1fr auto;
}

.activity-row {
  grid-template-columns: 110px 1fr;
}

.activity-row time {
  color: var(--dark-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.activity-row p {
  margin: 0;
  font-size: 13px;
}

.version-row {
  grid-template-columns: 1fr auto;
}

.version-row h3,
.version-row p {
  margin: 0;
}

.version-row p {
  margin-top: 5px;
  color: var(--dark-muted);
  font-size: 12px;
}

.dashboard-section-stack {
  display: grid;
  gap: 20px;
}

.app-main--license-detail {
  padding-inline: clamp(22px, 3vw, 44px);
}

.app-main--license-detail > .app-topbar,
.app-main--license-detail > .license-detail-stack {
  width: min(1280px, 100%);
  margin-inline: auto;
}

.license-detail-stack {
  gap: 18px;
}

.license-detail-back {
  justify-self: start;
  margin: -8px 0 0;
  cursor: pointer;
}

.license-overview-panel > .panel-body {
  padding-block: 18px 20px;
}

.license-overview-panel .compact-summary-grid > div {
  min-height: 88px;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.license-overview-actions {
  justify-content: flex-end;
  margin-top: 0;
  padding: 16px 20px;
  border-top: 1px solid var(--dark-line);
}

.dashboard-section-stack > .dark-panel + .dark-panel,
.license-detail-grid > .dark-panel + .dark-panel {
  margin-top: 0;
}

.entitlement-banner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
  padding: 20px 24px;
  border-color: rgba(57, 167, 122, 0.42);
  background:
    radial-gradient(circle at 0% 0%, rgba(22, 132, 91, 0.22), transparent 38%),
    var(--dark-surface);
}

.dashboard-section-stack > .entitlement-banner {
  margin-bottom: 0;
}

.entitlement-banner h2,
.entitlement-banner p {
  margin: 0;
}

.entitlement-banner h2 {
  margin-bottom: 0;
  color: var(--dark-ink);
  font-size: 22px;
}

.entitlement-banner > div > p:last-child {
  max-width: 78ch;
  color: var(--dark-muted);
  font-size: 13px;
  line-height: 1.6;
}

.entitlement-banner > .status {
  flex: 0 0 auto;
}

.metric-status-active,
.is-positive {
  color: #67dbad !important;
}

.is-negative {
  color: #f18d95 !important;
}

.performance-scope {
  color: var(--dark-muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

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

.performance-metric {
  min-width: 0;
  padding: 24px 20px;
  border-right: 1px solid var(--dark-line);
}

.performance-metric:last-child {
  border-right: 0;
}

.performance-metric span {
  display: block;
  margin-bottom: 12px;
  color: var(--dark-muted);
  font-size: 13px;
}

.performance-metric strong {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(20px, 2.1vw, 28px);
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.performance-updated {
  padding: 11px 20px;
  border-top: 1px solid var(--dark-line);
  color: var(--dark-muted);
  font-size: 12px;
  text-align: right;
}

.money-cell {
  font-family: var(--font-mono);
  font-weight: 700;
}

.portal-quick-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding: 18px 20px;
}

.portal-quick-actions h2 {
  margin: 0;
  font-size: 18px;
}

.portal-quick-actions .button-row {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.ea-download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.ea-download-row > .button-row {
  flex-wrap: wrap;
}

.ea-download-file {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.ea-file-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #355785;
  border-radius: 10px;
  background: #17294a;
  color: #8bb5ff;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
}

.ea-download-file > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.ea-download-file strong {
  color: var(--dark-ink);
  font-size: 20px;
  overflow-wrap: anywhere;
}

.ea-download-file > div > span {
  color: var(--dark-muted);
  font-size: 13px;
}

.ea-admin-current {
  display: flex;
  align-items: center;
  min-height: 96px;
}

.ea-upload-form .panel-actions {
  margin-top: 20px;
}

.ea-file-picker {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 12px;
  border: 1px solid #39465d;
  border-radius: 8px;
  background: #101a29;
  color: var(--dark-ink);
  cursor: pointer;
}

.ea-file-picker:hover,
.ea-file-picker:focus-within {
  border-color: var(--accent);
}

.ea-file-picker span {
  flex: 0 0 auto;
  color: #8fb4ff;
  font-weight: 700;
}

.ea-file-picker strong {
  min-width: 0;
  overflow: hidden;
  color: var(--dark-muted);
  font-size: 14px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field input.ea-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.portal-install-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.portal-install-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 62px;
  padding: 12px 0;
  border-bottom: 1px solid var(--dark-line);
}

.portal-install-list li:first-child {
  padding-top: 0;
}

.portal-install-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.portal-install-list li > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #355785;
  border-radius: 8px;
  background: #172946;
  color: #8fb4ff;
  font-weight: 800;
}

.portal-install-list p {
  margin: 0;
  color: var(--dark-ink);
  font-size: 16px;
  line-height: 1.65;
}

.empty-portal-access {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 20px;
  text-align: center;
}

.empty-portal-access h2 {
  margin: 0;
  color: var(--dark-ink);
}

.entitlement-banner-admin {
  margin-bottom: 0;
}

.license-command__body {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
}

.license-key-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-width: 0;
  padding: 28px;
  border-right: 1px solid var(--dark-line);
  background: linear-gradient(145deg, rgba(45, 100, 220, 0.13), rgba(13, 20, 32, 0));
}

.license-key-card > span,
.info-tile span,
.compact-summary-grid span {
  color: var(--dark-muted);
  font-size: 12px;
}

.license-key-card code {
  color: var(--dark-ink);
  font-family: var(--font-mono);
  font-size: clamp(22px, 3vw, 31px);
  font-weight: 750;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.activation-steps {
  display: grid;
  padding: 12px 20px;
}

.activation-step {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 13px;
  padding: 13px 0;
}

.activation-step:not(:last-child)::after {
  position: absolute;
  top: 47px;
  bottom: -1px;
  left: 17px;
  width: 1px;
  background: var(--dark-line);
  content: "";
}

.activation-step > span {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #41516d;
  border-radius: 50%;
  background: #172236;
  color: var(--dark-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.activation-step.is-complete > span,
.activation-step.is-current > span {
  border-color: rgba(60, 182, 134, 0.55);
  background: rgba(22, 132, 91, 0.2);
  color: #82e3bd;
}

.activation-step strong,
.activation-step small {
  display: block;
}

.activation-step strong {
  margin: 2px 0 4px;
  color: var(--dark-ink);
  font-size: 14px;
}

.activation-step small {
  display: none;
}

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

.license-detail-grid > * {
  min-width: 0;
}

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

.info-tile {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--dark-line);
  border-radius: 9px;
  background: #101a29;
}

.info-tile strong,
.info-tile small {
  display: block;
  overflow-wrap: anywhere;
}

.info-tile strong {
  margin-top: 7px;
  color: var(--dark-ink);
  font-size: 14px;
}

.info-tile small {
  display: none;
}

.panel-actions {
  margin-top: 16px;
}

.boundary-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.boundary-list li {
  display: grid;
  gap: 5px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--dark-line);
}

.boundary-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.boundary-list strong {
  color: var(--dark-ink);
  font-size: 13px;
}

.boundary-list span {
  color: var(--dark-muted);
  font-size: 12px;
  line-height: 1.6;
}

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

.compact-summary-grid > div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--dark-line);
  border-radius: 9px;
  background: #101a29;
}

.compact-summary-grid strong,
.compact-summary-grid small {
  display: block;
}

.compact-summary-grid strong {
  margin-top: 8px;
  color: var(--dark-ink);
  font-size: 16px;
}

.compact-summary-grid small {
  display: none;
}

.dashboard-page .version-row p {
  display: none;
}

.dashboard-page .build-queue-panel .version-row p {
  display: block;
}

.build-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.build-progress progress {
  width: 100%;
  height: 8px;
  border: 0;
  accent-color: #39a77a;
}

.build-progress span {
  flex: 0 0 auto;
  color: var(--dark-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

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

.build-stage {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--dark-line);
  border-radius: 9px;
  background: #101a29;
}

.build-stage > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #41516d;
  border-radius: 50%;
  color: var(--dark-muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.build-stage.is-complete > span,
.build-stage.is-current > span {
  border-color: rgba(60, 182, 134, 0.55);
  background: rgba(22, 132, 91, 0.2);
  color: #82e3bd;
}

.build-stage strong,
.build-stage small {
  display: block;
}

.build-stage strong {
  margin-bottom: 4px;
  color: var(--dark-ink);
  font-size: 13px;
}

.build-stage small {
  color: var(--dark-muted);
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.notice-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.notice-card > strong {
  color: var(--dark-ink);
  white-space: nowrap;
}

.notice-card > p {
  flex: 1;
  margin: 0;
  color: var(--dark-muted);
  font-size: 13px;
  line-height: 1.55;
}

.license-filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 0.4fr) auto;
  align-items: end;
  gap: 14px;
}

.license-issuer {
  border-color: #344a72;
}

.license-issuer > .panel-header {
  background: #111d30;
}

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

.license-issue-grid__wide {
  grid-column: 1 / -1;
}

.license-issue-actions {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--dark-line);
}

.license-issue-result {
  display: grid;
  gap: 22px;
}

.license-issue-result__lead h3,
.license-issue-result__lead p {
  margin: 0;
}

.license-issue-result__lead h3 {
  margin-bottom: 6px;
  color: var(--dark-ink);
  font-size: 20px;
}

.license-issue-result__lead p {
  color: var(--dark-muted);
  font-size: 14px;
}

.activation-key-output {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #405375;
  border-radius: var(--radius-control);
  background: #0c1625;
}

.activation-key-output code {
  min-width: 0;
  flex: 1;
  color: #eef4ff;
  font-family: var(--font-mono);
  font-size: clamp(15px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.license-issue-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-control);
  overflow: hidden;
}

.license-issue-summary > div {
  min-width: 0;
  padding: 15px 16px;
  border-right: 1px solid var(--dark-line);
}

.license-issue-summary > div:last-child {
  border-right: 0;
}

.license-issue-summary dt,
.license-issue-summary dd {
  margin: 0;
}

.license-issue-summary dt {
  margin-bottom: 7px;
  color: var(--dark-muted);
  font-size: 12px;
}

.license-issue-summary dd {
  color: var(--dark-ink);
  font-size: 14px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.dashboard-page .field label {
  color: var(--dark-muted);
}

.dashboard-page .field input,
.dashboard-page .field select,
.dashboard-page .field textarea {
  border-color: #39465d;
  background: #101a29;
  color: var(--dark-ink);
}

.dashboard-page .field textarea {
  width: 100%;
  padding: 10px 12px;
  border-style: solid;
  border-width: 1px;
  border-radius: var(--radius-control);
  resize: vertical;
}

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

.settings-grid__wide {
  grid-column: 1 / -1;
}

.switch-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dark-ink);
  font-size: 14px;
  font-weight: 650;
}

.switch-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.form-actions,
.panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-page .form-error {
  border-color: rgba(241, 141, 149, 0.35);
  background: rgba(198, 65, 75, 0.13);
  color: #ffb0b6;
}

.empty-cell {
  padding: 28px 20px;
  color: var(--dark-muted);
  text-align: center;
}

.session-table {
  min-width: 1180px;
}

.license-detail-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  background: radial-gradient(circle at 10% 0%, rgba(54, 113, 238, 0.18), transparent 38%), var(--dark-surface);
}

.license-detail-hero h2,
.license-detail-hero p {
  margin: 0;
}

.license-detail-hero h2 {
  margin-bottom: 5px;
  color: var(--dark-ink);
  font-size: 28px;
}

.license-detail-hero > div:first-child > p:last-child {
  color: var(--dark-muted);
  font-size: 13px;
}

.license-detail-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.section-back {
  min-height: 36px;
  margin: -8px 0 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #91b3ff;
  font-size: 13px;
}

.section-back:hover {
  color: #bfd1ff;
}

.license-detail-page .account-row p {
  margin: 4px 0 0;
  font-size: 11px;
}

.license-detail-page .account-row code {
  color: var(--dark-ink);
  font-family: var(--font-mono);
  font-size: 12px;
}

.portal-b .app-shell,
.admin-b .app-shell {
  grid-template-columns: 1fr;
}

.portal-b .app-sidebar,
.admin-b .app-sidebar {
  position: static;
  width: 100%;
  height: auto;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 12px 24px;
  border-right: 0;
  border-bottom: 1px solid var(--dark-line);
}

.portal-b .app-sidebar .brand,
.admin-b .app-sidebar .brand {
  padding: 0 20px 0 0;
  border-bottom: 0;
  border-right: 1px solid var(--dark-line);
}

.portal-b .sidebar-nav,
.admin-b .sidebar-nav {
  display: flex;
  margin: 0;
  overflow-x: auto;
}

.portal-b .sidebar-footer,
.admin-b .sidebar-footer {
  margin: 0 0 0 auto;
  padding: 0;
  border-top: 0;
}

.portal-b .dashboard-grid {
  grid-template-columns: 0.7fr 1.3fr;
}

.portal-c .app-shell,
.admin-c .app-shell {
  grid-template-columns: 88px minmax(0, 1fr);
}

.portal-c .app-sidebar,
.admin-c .app-sidebar {
  padding-inline: 10px;
}

.portal-c .app-sidebar .brand,
.admin-c .app-sidebar .brand {
  justify-content: center;
  padding-inline: 0;
}

.portal-c .app-sidebar .brand > span:not(.brand-mark),
.admin-c .app-sidebar .brand > span:not(.brand-mark),
.portal-c .sidebar-button span,
.admin-c .sidebar-button span,
.portal-c .sidebar-footer,
.admin-c .sidebar-footer {
  display: none;
}

.portal-c .sidebar-button,
.admin-c .sidebar-button {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
}

.portal-c .metric-strip,
.admin-c .metric-strip {
  grid-template-columns: repeat(2, 1fr);
}

.portal-c .metric:nth-child(2),
.admin-c .metric:nth-child(2) {
  border-right: 0;
}

.portal-c .metric:nth-child(-n+2),
.admin-c .metric:nth-child(-n+2) {
  border-bottom: 1px solid var(--dark-line);
}

/* Dialog, toast and prototype switcher */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 12, 20, 0.68);
}

.modal {
  width: min(520px, 100%);
  padding: 28px;
  border: 1px solid #c9d3e0;
  border-radius: var(--radius-card);
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.26);
}

.modal h2 {
  margin-bottom: 10px;
  font-size: 28px;
}

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

.account-addon-modal {
  width: min(640px, 100%);
  padding: 0;
  overflow: hidden;
}

.account-addon-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px 22px;
  border-bottom: 1px solid var(--line);
}

.account-addon-heading span,
.account-addon-facts span,
.account-addon-calculation span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.account-addon-heading h2 {
  margin: 5px 0 0;
  font-size: 26px;
}

.account-addon-heading > strong {
  font-family: var(--font-mono);
  font-size: 16px;
  white-space: nowrap;
}

.account-addon-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--line);
}

.account-addon-facts > div {
  display: grid;
  gap: 7px;
  padding: 18px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.account-addon-facts > div:nth-child(2n) {
  border-right: 0;
}

.account-addon-facts > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.account-addon-facts strong {
  font-size: 19px;
}

.account-addon-calculation {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 5px 20px;
  margin: 20px 28px;
  padding: 18px 20px;
  border-radius: 12px;
  background: #edf3ff;
}

.account-addon-calculation strong {
  color: var(--blue);
  font-size: 32px;
  letter-spacing: -0.04em;
}

.account-addon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 28px 28px;
}

.account-addon-actions .ghost-button {
  margin-left: auto;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 92px;
  z-index: 80;
  max-width: min(380px, calc(100% - 40px));
  padding: 13px 16px;
  border: 1px solid #4c5e7d;
  border-radius: 10px;
  background: #162136;
  color: #f3f6fb;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.prototype-switcher {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 54px;
  padding: 7px;
  border: 1px solid #3c4c68;
  border-radius: 14px;
  background: rgba(16, 24, 40, 0.94);
  color: #ffffff;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
}

.prototype-switcher button {
  min-width: 42px;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: #253149;
  color: #ffffff;
  font-size: 18px;
}

.prototype-switcher button:hover {
  background: #334361;
}

.prototype-switcher__label {
  min-width: 190px;
  padding: 0 8px;
  text-align: center;
  font-size: 13px;
}

.prototype-switcher__label strong {
  display: block;
  font-size: 14px;
}

.prototype-state {
  position: relative;
}

.prototype-state summary {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  background: #253149;
  color: #cbd7eb;
  cursor: pointer;
  font-size: 12px;
  list-style: none;
}

.prototype-state summary::-webkit-details-marker {
  display: none;
}

.prototype-state pre {
  position: absolute;
  right: 0;
  bottom: 52px;
  width: 300px;
  max-height: 320px;
  margin: 0;
  padding: 14px;
  border: 1px solid #3c4c68;
  border-radius: 10px;
  background: #101828;
  color: #dbe6f7;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.55;
  overflow: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .page-root {
    animation: page-enter 340ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .hero-copy,
  .hero-visual,
  .metric,
  .dark-panel {
    animation: lift-enter 430ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .hero-visual,
  .dark-panel:nth-child(2) {
    animation-delay: 70ms;
  }
}

@keyframes page-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes lift-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1080px) {
  .site-nav {
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-block: 10px;
  }

  .site-nav__links {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: center;
    overflow-x: auto;
    border-top: 1px solid var(--line);
    scrollbar-width: none;
  }

  .site-nav__links::-webkit-scrollbar {
    display: none;
  }

  .site-nav__links a {
    flex: 0 0 auto;
  }

  .hero-grid,
  .home-b .hero-grid,
  .decision-shell,
  .purchase-rail,
  .product-page__grid,
  .checkout-layout,
  .checkout-b .checkout-layout,
  .checkout-c .checkout-form,
  .dashboard-grid,
  .portal-b .dashboard-grid,
  .license-detail-grid,
  .license-command__body {
    grid-template-columns: 1fr;
  }

  .license-key-card {
    border-right: 0;
    border-bottom: 1px solid var(--dark-line);
  }

  .decision-copy {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .purchase-rail__panel,
  .order-summary {
    position: static;
  }

  .product-page__grid .hero-visual img {
    min-height: 360px;
  }

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

  .capability-list article {
    min-height: 150px;
  }

  .checkout-b .order-summary,
  .checkout-b .checkout-form {
    grid-column: 1;
    grid-row: auto;
  }

  .metric-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:nth-child(-n+2) {
    border-bottom: 1px solid var(--dark-line);
  }
}

@media (max-width: 820px) {
  .app-main--license-detail {
    padding: 22px 16px 96px;
  }

  .license-detail-stack {
    gap: 14px;
  }

  .license-overview-panel .compact-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .license-overview-actions > button {
    flex: 1 1 0;
  }

  .app-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-topbar__actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .settings-grid__wide {
    grid-column: auto;
  }

  .prototype-toolbar {
    align-items: flex-start;
    padding-inline: 10px;
  }

  .prototype-toolbar__label span:last-child {
    display: none;
  }

  .prototype-toolbar__views {
    justify-content: flex-start;
  }

  .container,
  .container-wide,
  .home-c .site-nav,
  .decision-shell {
    width: min(100% - 28px, 680px);
  }

  .site-nav {
    min-height: 64px;
  }

  .site-nav__actions .secondary-button {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 38px 0 56px;
  }

  .hero h1,
  .home-b .hero h1,
  .decision-copy h1 {
    max-width: 11ch;
    font-size: clamp(42px, 13vw, 62px);
  }

  .home-b .hero-copy,
  .decision-copy {
    padding: 30px;
  }

  .home-b .hero-visual img {
    min-height: 340px;
  }

  .fact-band,
  .flow-list,
  .decision-console__actions {
    grid-template-columns: repeat(2, 1fr);
  }

  .fact-band__item:nth-child(2),
  .decision-option:nth-child(2) {
    border-right: 0;
  }

  .decision-option:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .flow-step,
  .flow-step + .flow-step {
    padding: 22px;
    border-left: 0;
  }

  .flow-step:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .flow-step__index {
    margin-bottom: 18px;
  }

  .legal-note,
  .field-grid,
  .auth-c .auth-card {
    grid-template-columns: 1fr;
  }

  .auth-c__aside {
    padding: 0 0 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .checkout-c .order-summary,
  .checkout-c .order-summary .summary-list {
    grid-template-columns: 1fr;
  }

  .checkout-c .checkout-form > div + div {
    margin-top: 30px;
    padding: 30px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .auth-b {
    grid-template-columns: 1fr;
  }

  .auth-b__visual {
    display: none;
  }

  .app-shell,
  .portal-c .app-shell,
  .admin-c .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar,
  .portal-c .app-sidebar,
  .admin-c .app-sidebar {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--dark-line);
    overflow-x: auto;
  }

  .app-sidebar .brand {
    padding: 0 14px 0 0;
    border-bottom: 0;
    border-right: 1px solid var(--dark-line);
  }

  .app-sidebar .brand > span:not(.brand-mark) {
    display: none;
  }

  .sidebar-nav {
    display: flex;
    margin: 0;
  }

  .sidebar-button span {
    display: inline !important;
  }

  .sidebar-footer {
    display: none;
  }

  .app-main {
    padding: 24px 16px 104px;
  }

  .license-filter-bar {
    grid-template-columns: 1fr 1fr;
  }

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

  .license-issue-summary > div:nth-child(2) {
    border-right: 0;
  }

  .license-issue-summary > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--dark-line);
  }

  .license-filter-bar .primary-button {
    grid-column: 1 / -1;
  }

  .license-detail-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .license-detail-actions {
    justify-content: flex-start;
  }

  .account-row {
    grid-template-columns: 1fr auto;
  }

  .account-row > :nth-child(2) {
    display: none;
  }
}

@media (max-width: 560px) {
  .license-overview-panel .compact-summary-grid {
    grid-template-columns: 1fr;
  }

  .license-overview-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .license-overview-actions > button {
    width: 100%;
  }

  .prototype-toolbar__label {
    display: none;
  }

  .prototype-toolbar {
    justify-content: space-between;
  }

  .prototype-view-button,
  .prototype-lang-button {
    padding-inline: 8px;
    font-size: 12px;
  }

  .site-nav__actions .primary-button {
    padding-inline: 12px;
  }

  .site-nav__links {
    justify-content: flex-start;
  }

  .site-nav__links a {
    padding-inline: 8px;
  }

  .brand-sub {
    display: none;
  }

  .hero h1,
  .home-b .hero h1,
  .decision-copy h1 {
    font-size: clamp(38px, 14vw, 52px);
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button-row .primary-button,
  .button-row .secondary-button {
    width: 100%;
  }

  .fact-band,
  .flow-list,
  .decision-console__actions,
  .choice-grid,
  .metric-strip,
  .portal-c .metric-strip,
  .admin-c .metric-strip {
    grid-template-columns: 1fr;
  }

  .capability-list {
    grid-template-columns: 1fr;
  }

  .capability-list article {
    min-height: 112px;
    padding: 22px;
  }

  .public-subpage__header {
    padding: 44px 0 24px;
  }

  .public-subpage__header h1 {
    font-size: 42px;
  }

  .public-subpage__section {
    padding: 26px 0 40px;
  }

  .public-subpage__action {
    padding-bottom: 48px;
  }

  .public-subpage__action .primary-button {
    width: 100%;
  }

  .fact-band__item,
  .fact-band__item:nth-child(2),
  .flow-step:nth-child(odd),
  .decision-option,
  .decision-option:nth-child(2),
  .metric,
  .metric:nth-child(2) {
    border-right: 0;
  }

  .fact-band__item,
  .decision-option,
  .metric {
    border-bottom: 1px solid var(--line);
  }

  .fact-band__item:last-child {
    border-bottom: 0;
  }

  .metric {
    border-bottom-color: var(--dark-line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .info-grid,
  .compact-summary-grid,
  .license-filter-bar,
  .license-issue-grid,
  .license-issue-summary {
    grid-template-columns: 1fr;
  }

  .license-issue-grid__wide {
    grid-column: auto;
  }

  .license-issue-summary > div,
  .license-issue-summary > div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--dark-line);
  }

  .license-issue-summary > div:last-child {
    border-bottom: 0;
  }

  .activation-key-output {
    align-items: stretch;
    flex-direction: column;
  }

  .activation-key-output .primary-button {
    width: 100%;
  }

  .build-pipeline {
    grid-template-columns: 1fr;
  }

  .license-filter-bar .primary-button {
    grid-column: auto;
  }

  .notice-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .entitlement-banner {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .notice-card > strong {
    white-space: normal;
  }

  .license-detail-actions {
    width: 100%;
  }

  .license-detail-actions .primary-button,
  .license-detail-actions .secondary-button,
  .license-detail-actions .danger-button {
    flex: 1 1 130px;
  }

  .plan-row,
  .story-row {
    grid-template-columns: 1fr;
  }

  .plan-row .primary-button,
  .plan-row .secondary-button {
    width: 100%;
  }

  .legal-note,
  .checkout-form,
  .auth-card,
  .modal {
    padding: 22px;
  }

  .section {
    padding: 66px 0;
  }

  .section-heading h2 {
    font-size: 36px;
  }

  .site-footer__inner,
  .app-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .prototype-switcher {
    width: calc(100% - 20px);
    bottom: 10px;
  }

  .prototype-switcher__label {
    min-width: 0;
    flex: 1;
  }

  .prototype-state {
    display: none;
  }
}

/* Public storefront: compact task flow with HedgeMatrix's own light-blue palette. */
.public-page {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #edf3fb;
  --ink: #101828;
  --muted: #526176;
  --line: #d7e0ec;
  --accent: #2764e7;
  --accent-strong: #1d4fc0;
  --accent-soft: #e9f0ff;
  --radius-card: 6px;
  --radius-control: 4px;
  --shadow: 0 28px 72px rgba(38, 72, 124, 0.14);
  --shadow-soft: 0 14px 40px rgba(38, 72, 124, 0.08);
  background: var(--bg);
  color: var(--ink);
}

.public-page .container,
.public-page .container-wide {
  width: min(980px, calc(100% - 48px));
}

.public-page :focus-visible,
.auth-b :focus-visible {
  outline-color: rgba(39, 100, 231, 0.78);
}

.public-page .site-nav {
  min-height: 78px;
  border-bottom: 1px solid var(--line);
}

.public-wordmark {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  white-space: nowrap;
}

.public-wordmark__logo {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 1px solid #d7e0ec;
  border-radius: 10px;
  background: #000000;
  object-fit: contain;
}

.public-wordmark__copy {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
}

.public-wordmark strong {
  font-size: 27px;
  font-weight: 820;
  letter-spacing: -0.045em;
}

.public-wordmark span {
  color: #68778c;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.public-menu-button {
  display: none;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid #bcc8d8;
  border-radius: 4px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 700;
}

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

.public-page .brand-mark,
.auth-b .brand-mark {
  border-radius: 3px;
  background: var(--accent);
  box-shadow: none;
}

.public-page .site-nav__links {
  margin-left: auto;
  gap: 4px;
}

.public-page .site-nav__links a,
.public-page .site-nav__links > button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #526176;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}

.public-page .site-nav__links a:hover,
.public-page .site-nav__links > button:hover,
.public-page .site-nav__links a[aria-current="page"] {
  color: var(--ink);
  background: #eef3f9;
}

.public-page .site-nav__links a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--accent);
}

.public-page .site-nav__links .public-nav__item.is-primary {
  margin-right: 4px;
  background: var(--accent);
  color: #ffffff;
  box-shadow: none;
}

.public-page .site-nav__links .public-nav__item.is-primary:hover,
.public-page .site-nav__links .public-nav__item.is-primary[aria-current="page"] {
  background: var(--accent-strong);
  color: #ffffff;
  box-shadow: none;
}

.public-language {
  min-height: 42px;
  display: inline-flex;
  align-items: stretch;
  margin-left: 6px;
  border: 1px solid #bcc8d8;
  border-radius: 3px;
  overflow: hidden;
}

.public-language button {
  min-width: 50px;
  padding: 0 12px;
  border: 0;
  background: #ffffff;
  color: #526176;
  font-weight: 700;
  cursor: pointer;
}

.public-language button + button {
  border-left: 1px solid #d7e0ec;
}

.public-language button[aria-pressed="true"] {
  background: var(--accent);
  color: #ffffff;
}

.public-page .primary-button,
.auth-b .primary-button {
  min-height: 50px;
  padding-inline: 20px;
  border-color: var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: #ffffff;
  box-shadow: none;
}

.public-page .primary-button:hover,
.auth-b .primary-button:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

.public-page .secondary-button,
.public-page .ghost-button,
.auth-b .secondary-button,
.auth-b .ghost-button {
  min-height: 50px;
  padding-inline: 20px;
  border-color: #bcc8d8;
  border-radius: 4px;
  background: #ffffff;
  color: #172033;
}

.public-page .secondary-button:hover,
.public-page .ghost-button:hover,
.auth-b .secondary-button:hover,
.auth-b .ghost-button:hover {
  border-color: #8fa0b7;
  background: #f7f9fc;
}

.home-b .container {
  width: min(1180px, calc(100% - 64px));
}

.license-home-hero {
  min-height: calc(100dvh - 170px);
  display: flex;
  align-items: center;
  padding: 52px 0 60px;
}

.license-home-hero__inner {
  display: block;
}

.license-home-copy {
  min-width: 0;
  max-width: 940px;
}

.license-home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.14em;
}

.license-home-eyebrow::before {
  width: 18px;
  height: 2px;
  background: var(--accent);
  content: "";
}

.license-home-hero h1 {
  max-width: none;
  margin: 0;
  color: var(--ink);
  font-size: clamp(68px, 6.4vw, 92px);
  font-weight: 790;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.license-home-lead,
.license-home-product {
  display: block;
}

.license-home-product strong {
  color: var(--accent);
  font: inherit;
}

.license-home-summary {
  max-width: 36ch;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.license-home-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.license-home-actions .primary-button,
.license-home-actions .secondary-button {
  min-width: 146px;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms ease;
}

.license-home-actions .primary-button:active,
.license-home-actions .secondary-button:active {
  transform: translateY(1px);
}

.home-license-order {
  padding: 16px 0 82px;
  scroll-margin-top: 24px;
}

.home-license-start {
  width: min(850px, 100%);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.home-license-start header {
  margin-bottom: 22px;
}

.home-license-start h2 {
  margin: 0;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.2;
}

.home-license-start header p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.home-license-start .choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-license-start__actions {
  margin-top: 22px;
}

.home-license-start__actions .primary-button {
  width: 100%;
}

.public-page .hero-visual {
  border-color: var(--line);
  border-radius: 6px;
  background: #0a0d13;
  box-shadow: var(--shadow);
}

.home-b .hero-visual img {
  min-height: 0;
  aspect-ratio: 7 / 5;
  object-position: 100% center;
}

.public-page .site-footer {
  padding: 28px 0 36px;
  border-color: var(--line);
  color: #69778a;
}

.public-subpage__header {
  padding: 68px 0 28px;
  border-color: var(--line);
}

.public-subpage__header h1 {
  max-width: 14ch;
  color: var(--ink);
  font-size: clamp(42px, 6vw, 58px);
  text-wrap: balance;
}

.public-subpage__section {
  padding: 32px 0 48px;
}

.product-page__grid {
  grid-template-columns: minmax(0, 1.28fr) minmax(240px, 0.72fr);
  gap: 16px;
}

.product-page__grid .hero-visual img {
  min-height: 400px;
}

.capability-list {
  border-color: var(--line);
}

.capability-list article {
  min-height: 192px;
  padding: 26px;
  border-color: var(--line);
  background: #ffffff;
}

.capability-list h2 {
  color: var(--ink);
  font-size: clamp(26px, 3.5vw, 36px);
}

.flow-list {
  border-color: var(--line);
}

.flow-step,
.flow-step + .flow-step {
  border-color: var(--line);
}

.flow-step h3 {
  color: var(--ink);
  font-size: 18px;
}

.plan-board {
  border-color: var(--line);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.plan-row {
  border-color: var(--line);
}

.plan-row:hover,
.plan-row.is-selected {
  background: var(--accent-soft);
}

.public-subpage__action {
  padding-bottom: 64px;
}

.install-card {
  width: min(860px, 100%);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.install-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.install-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.install-list li:first-child {
  padding-top: 0;
}

.install-list li > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 800;
}

.install-list p {
  margin: 2px 0 0;
  color: #344054;
  font-size: 17px;
  line-height: 1.7;
}

.install-license-note {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
  border: 1px solid #bfd0f4;
  border-radius: 4px;
  background: var(--accent-soft);
}

.install-license-note strong {
  padding: 17px 18px;
  color: #1f3f78;
  font-size: 15px;
}

.install-license-note strong + strong {
  border-left: 1px solid #bfd0f4;
}

.install-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.checkout-shell {
  min-height: 100dvh;
  padding-bottom: 72px;
}

.checkout-header {
  width: min(720px, 100%);
  margin-inline: auto;
  padding: 46px 0 22px;
}

.checkout-header h1 {
  max-width: 18ch;
  margin: 12px 0 0;
  color: var(--ink);
  font-size: clamp(34px, 4.6vw, 46px);
  line-height: 1.08;
  text-wrap: balance;
}

.checkout-layout {
  width: min(720px, 100%);
  margin-inline: auto;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.checkout-form,
.order-summary {
  border-color: var(--line);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.checkout-form {
  padding: 30px;
}

.checkout-form > div + div {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.checkout-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.checkout-progress__count {
  flex: 0 0 auto;
}

.checkout-progress__segments {
  width: min(280px, 60vw);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.checkout-progress__segments i {
  height: 3px;
  border-radius: 2px;
  background: #d8e1ee;
}

.checkout-progress__segments i.is-active {
  background: var(--accent);
}

.checkout-step-panel {
  min-height: 190px;
}

.renewal-timeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  padding: 18px 20px;
  border: 1px solid #c9d9f6;
  border-radius: 6px;
  background: var(--accent-soft);
}

.renewal-timeline > div {
  display: grid;
  gap: 5px;
}

.renewal-timeline > div:last-child {
  text-align: right;
}

.renewal-timeline span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.renewal-timeline strong {
  font-family: var(--font-mono);
  font-size: 19px;
}

.renewal-timeline i {
  color: var(--accent-strong);
  font-style: normal;
  font-size: 24px;
  font-weight: 800;
}

.checkout-step-panel .choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-section + .form-section {
  margin-top: 26px;
  padding-top: 26px;
  border-color: var(--line);
}

.form-section h2 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 18px;
}

.public-page .field label {
  color: #344054;
}

.public-page .field input,
.public-page .field select {
  min-height: 50px;
  border-color: #b9c6d7;
  border-radius: 4px;
  background: #ffffff;
  color: var(--ink);
}

.public-page .field input::placeholder {
  color: #6c798c;
}

.public-page .field input:focus,
.public-page .field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(39, 100, 231, 0.14);
}

.choice-button {
  min-height: 74px;
  padding: 15px 16px;
  border-color: #bcc8d8;
  border-radius: 4px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
}

.choice-button:hover,
.choice-button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.checkout-build-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #bfd0f4;
  border-radius: 4px;
  background: var(--accent-soft);
}

.checkout-build-row span {
  color: #344054;
  font-weight: 650;
}

.checkout-build-row strong {
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 20px;
}

.consent-box {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f5f8fc;
  color: #435168;
  font-size: 14px;
  line-height: 1.65;
}

.order-summary {
  position: static;
  margin-top: 22px;
  padding: 20px;
  box-shadow: none;
}

.order-summary h2,
.summary-row strong {
  color: var(--ink);
}

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

.summary-total {
  border-color: var(--line);
}

.public-page .error-summary {
  border-color: #e6a5ac;
  border-radius: 4px;
  background: #fff4f5;
  color: #9d2531;
}

.checkout-step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.checkout-step-actions .primary-button {
  min-width: 150px;
}

.auth-b.auth-page {
  color-scheme: light;
  --accent: #2764e7;
  --accent-strong: #1d4fc0;
  --ink: #101828;
  --muted: #526176;
  --line: #d7e0ec;
  --radius-card: 6px;
  --radius-control: 4px;
  background: #f4f7fb;
  color: var(--ink);
}

.auth-b__visual {
  min-height: 100dvh;
  align-items: center;
  padding: clamp(34px, 6vw, 72px);
  border-right: 1px solid var(--line);
  background: #eaf0fb;
}

.auth-b__visual > div {
  width: min(620px, 100%);
  margin-inline: auto;
}

.auth-b__visual h2 {
  max-width: 11ch;
  margin-bottom: 30px;
  color: var(--ink);
  font-size: clamp(38px, 5vw, 58px);
  text-wrap: balance;
}

.auth-b__visual img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 24px 64px rgba(38, 72, 124, 0.16);
}

.auth-b .auth-card {
  border-color: var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 18px 48px rgba(38, 72, 124, 0.1);
}

.auth-b .auth-card h1 {
  color: var(--ink);
}

.auth-b .field label {
  color: #344054;
}

.auth-b .field input {
  min-height: 50px;
  border-color: #b9c6d7;
  border-radius: 4px;
  background: #ffffff;
  color: var(--ink);
}

.auth-b .field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(39, 100, 231, 0.14);
}

.auth-b .form-error {
  border-color: #e6a5ac;
  background: #fff4f5;
  color: #9d2531;
}

.dashboard-page,
.dashboard-page .dark-panel,
.checkout-shell,
.auth-page {
  animation: none;
}

/* Payment settings use a list-first flow with one provider editor at a time. */
.payment-channel-panel .panel-header {
  align-items: center;
}

.payment-site-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 20px;
  border-top: 1px solid var(--dark-line);
  color: var(--dark-muted);
}

.payment-site-row strong {
  min-width: 0;
  color: var(--dark-ink);
  font-family: var(--font-mono);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.payment-channel-list {
  border-top: 1px solid var(--dark-line);
}

.payment-channel-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.2fr) minmax(170px, 0.8fr) 120px auto;
  align-items: center;
  gap: 18px;
  min-height: 78px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--dark-line);
}

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

.payment-channel-name,
.payment-channel-protocol {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.payment-channel-name strong,
.payment-channel-protocol strong {
  color: var(--dark-ink);
  font-size: 15px;
}

.payment-channel-name span,
.payment-channel-protocol span {
  color: var(--dark-muted);
  font-size: 12px;
}

.payment-channel-row > .status {
  justify-self: start;
  white-space: nowrap;
}

.payment-channel-row > .secondary-button {
  min-height: 38px;
}

.payment-editor-shell {
  width: min(880px, 100%);
}

.payment-editor-header {
  align-items: flex-start;
}

.payment-editor-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: var(--dark-muted);
  font-size: 13px;
  flex-wrap: wrap;
}

.payment-editor-tags > span + span:not(.status)::before {
  content: "·";
  margin-right: 10px;
  color: #536078;
}

.payment-editor-card .field input[readonly] {
  color: #aebbd0;
  font-family: var(--font-mono);
  font-size: 12px;
}

@media (min-width: 960px) {
  .license-home-lead,
  .license-home-product {
    white-space: nowrap;
  }

  .home-b .hero-grid {
    grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  }

  .checkout-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 959px) {
  .public-page .container,
  .public-page .container-wide {
    width: min(100% - 30px, 680px);
  }

  .public-page .site-nav {
    min-height: 70px;
    flex-wrap: wrap;
    align-content: center;
    padding: 10px 0;
  }

  .public-wordmark {
    min-height: 46px;
  }

  .public-wordmark__logo {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .public-wordmark strong {
    font-size: 23px;
  }

  .public-wordmark__copy > span {
    display: none;
  }

  .public-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .public-page .site-nav__links {
    width: 100%;
    display: none;
    grid-template-columns: 1fr;
    gap: 4px;
    margin: 8px 0 0;
    padding: 10px 0 4px;
    border-top: 1px solid var(--line);
    border-color: var(--line);
  }

  .public-page .site-nav__links.is-open,
  .checkout-shell .site-nav__links.is-open {
    display: grid;
  }

  .public-page .site-nav__links a,
  .public-page .site-nav__links > button {
    width: 100%;
    min-height: 48px;
  }

  .public-language {
    width: 100%;
    margin: 4px 0 0;
  }

  .public-language button {
    flex: 1;
    min-height: 46px;
  }

  .checkout-shell .site-nav__links,
  .checkout-shell .site-nav__actions {
    display: none;
  }

  .license-home-hero {
    padding: 48px 0 32px;
  }

  .product-page__grid,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .license-home-hero h1 {
    font-size: clamp(42px, 10vw, 60px);
  }

  .order-summary {
    position: static;
  }

  .auth-b .auth-card {
    margin: 36px auto 80px;
  }

  .payment-channel-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 18px;
  }

  .payment-channel-protocol {
    grid-column: 1;
  }

  .payment-channel-row > .status {
    grid-column: 2;
    grid-row: 1;
  }

  .payment-channel-row > .secondary-button {
    grid-column: 2;
    grid-row: 2;
  }

  .app-sidebar .sidebar-nav {
    flex: 0 0 auto;
  }

  .app-sidebar .sidebar-button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .app-sidebar .sidebar-button b {
    display: none;
  }
}

@media (max-width: 560px) {
  .public-page .container,
  .public-page .container-wide {
    width: calc(100% - 30px);
  }

  .license-home-hero h1 {
    font-size: clamp(36px, 11vw, 44px);
    line-height: 1.02;
    letter-spacing: -0.045em;
  }

  .license-home-eyebrow {
    margin-bottom: 18px;
  }

  .license-home-summary {
    margin-top: 22px;
    font-size: 16px;
  }

  .license-home-actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
  }

  .license-home-actions .primary-button,
  .license-home-actions .secondary-button {
    width: 100%;
  }

  .home-license-start {
    padding: 20px;
  }

  .home-license-start .choice-grid {
    grid-template-columns: 1fr;
  }

  .checkout-header {
    padding-top: 38px;
  }

  .checkout-form,
  .order-summary,
  .auth-b .auth-card {
    padding: 20px;
  }

  .checkout-step-panel {
    min-height: 0;
  }

  .renewal-timeline {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .renewal-timeline > div:last-child {
    text-align: left;
  }

  .renewal-timeline i {
    transform: rotate(90deg);
  }

  .checkout-step-panel .choice-grid {
    grid-template-columns: 1fr;
  }

  .checkout-step-actions .primary-button,
  .checkout-step-actions .secondary-button {
    min-width: 0;
    flex: 1;
  }

  .payment-site-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .payment-channel-row {
    grid-template-columns: 1fr;
  }

  .payment-channel-protocol,
  .payment-channel-row > .status,
  .payment-channel-row > .secondary-button {
    grid-column: 1;
    grid-row: auto;
  }

  .payment-channel-row > .secondary-button {
    width: 100%;
  }

  .payment-editor-header {
    gap: 18px;
  }
}

@media (max-width: 959px) and (max-height: 520px) and (orientation: landscape) {
  .license-home-hero {
    min-height: auto;
    align-items: flex-start;
    padding: 28px 0 36px;
  }

  .license-home-eyebrow {
    margin-bottom: 14px;
  }

  .license-home-hero h1 {
    font-size: clamp(48px, 7vw, 56px);
  }

  .license-home-summary {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.5;
  }

  .license-home-actions {
    margin-top: 18px;
  }
}
