:root {
  color-scheme: light;
  --navy-950: #07172d;
  --navy-900: #0b1b33;
  --navy-800: #112640;
  --navy-700: #183859;
  --blue-600: #0d6ee8;
  --blue-500: #2589ff;
  --cyan-400: #13b8e7;
  --green-600: #188445;
  --green-100: #eaf8ef;
  --amber-700: #8a5700;
  --red-700: #b42318;
  --red-100: #fff0ef;
  --ink: #0b1e3a;
  --muted: #5d6e86;
  --line: #d8e0ea;
  --surface: #ffffff;
  --surface-soft: #f5f8fc;
  --shadow: 0 18px 48px rgba(7, 23, 45, .09);
  --radius: 10px;
  --sidebar: 244px;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--surface); }
body { margin: 0; color: var(--ink); background: var(--surface); font-size: 15px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid rgba(37,137,255,.42); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.button:hover { text-decoration: none; transform: translateY(-1px); }
.button.primary { background: var(--blue-600); color: white; }
.button.primary:hover { background: #075fc8; }
.button.secondary { background: white; border-color: #8eb5ed; color: var(--blue-600); }
.button.secondary:hover { border-color: var(--blue-600); background: #f4f8ff; }
.button.danger { background: var(--red-700); color: white; }
.button.disabled { color: var(--muted); border-color: var(--line); background: var(--surface-soft); pointer-events: none; }
.text-button, .danger-link { border: 0; background: transparent; padding: 4px; color: var(--blue-600); cursor: pointer; font-weight: 650; }
.danger-link { color: var(--red-700); }

.alert { border: 1px solid; border-radius: 8px; margin-bottom: 20px; padding: 12px 15px; font-weight: 600; }
.alert.error { background: var(--red-100); border-color: #ffb4ad; color: #8d2018; }
.alert.success { background: var(--green-100); border-color: #93d7aa; color: #136c38; }

.form-stack { display: grid; gap: 18px; }
.form-stack.small { gap: 13px; }
label { color: var(--ink); display: grid; font-size: 14px; font-weight: 700; gap: 7px; }
input, select, textarea {
  background: white;
  border: 1px solid #adbacb;
  border-radius: 7px;
  color: var(--ink);
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
}
textarea { min-height: 120px; resize: vertical; }
input:disabled { background: #edf2f7; color: var(--muted); }
label > span, .field-help { color: var(--muted); font-size: 13px; font-weight: 500; }

.brand-lockup { align-items: center; color: white; display: inline-flex; gap: 14px; text-decoration: none; }
.brand-lockup:hover { text-decoration: none; }
.brand-lockup img { border-radius: 9px; }
.brand-lockup span { display: grid; }
.brand-lockup strong { font-size: 22px; line-height: 1.1; }
.brand-lockup small { color: var(--cyan-400); font-size: 14px; margin-top: 5px; }
.brand-lockup.dark { color: var(--ink); }

.auth-page { min-height: 100vh; background: var(--navy-950); }
.auth-shell { background: white; display: grid; grid-template-columns: minmax(300px, 420px) 1fr; min-height: calc(100vh - 64px); }
.auth-brand { background: var(--navy-900); color: white; padding: 48px 44px; }
.auth-trust { border-block: 1px solid rgba(255,255,255,.18); display: grid; gap: 34px; margin: 56px 0 34px; padding: 42px 0; }
.auth-trust section { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.trust-icon { align-items: center; color: var(--cyan-400); display: flex; font-size: 34px; justify-content: center; }
.auth-trust h2 { font-size: 17px; margin: 0 0 5px; }
.auth-trust p { color: #c6d3e4; margin: 0; }
.brand-help { color: var(--cyan-400); font-weight: 700; }
.auth-content { margin: 0 auto; max-width: 1080px; padding: 26px 56px 48px; width: 100%; }
.auth-tabs { border-bottom: 1px solid var(--line); display: flex; gap: 36px; margin-bottom: 42px; }
.auth-tabs a { color: var(--ink); font-size: 15px; padding: 11px 6px 14px; }
.auth-tabs a.active, .auth-tabs a[aria-current="page"] { border-bottom: 3px solid var(--blue-600); color: var(--blue-600); font-weight: 750; }
.auth-columns { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(300px, .85fr); gap: 50px; }
.auth-primary { border-right: 1px solid var(--line); padding-right: 50px; }
.auth-primary h1, .auth-form-wrap h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -.035em; line-height: 1.1; margin: 0 0 30px; }
.auth-primary .inline-link { display: inline-block; margin-top: 20px; font-weight: 650; }
.new-account { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 24px; }
.security-note { background: #edf6ff; border: 1px solid #9fcbff; border-radius: 8px; color: #075fc8; font-weight: 700; margin-top: 28px; padding: 15px; }
.auth-secondary { display: grid; gap: 30px; }
.auth-secondary section + section { border-top: 1px solid var(--line); padding-top: 28px; }
.auth-secondary h2 { font-size: 19px; margin: 0 0 5px; }
.auth-secondary p { color: var(--muted); margin: 0 0 15px; }
.auth-tabs-ready .auth-columns { display: block; max-width: 620px; }
.auth-tabs-ready .auth-primary { border-right: 0; padding-right: 0; }
.auth-tabs-ready .auth-secondary { border-top: 0; padding-top: 0; }
.auth-tabs-ready [data-auth-panel][hidden] { display: none; }
.auth-tabs-ready [data-auth-panel] > h2 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -.035em; line-height: 1.1; margin: 0 0 12px; }
.auth-tabs-ready [data-auth-panel] > h2:focus { outline: none; }
.auth-form-wrap.compact { max-width: 520px; margin: 70px auto; }
.auth-footer { align-items: center; background: var(--navy-950); color: #c3d0e1; display: flex; justify-content: space-between; min-height: 64px; padding: 14px 40px; }
.auth-footer nav { display: flex; gap: 28px; }
.single-form-page { align-items: center; background: var(--surface-soft); display: flex; min-height: 100vh; justify-content: center; padding: 24px; }
.single-form { background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); max-width: 560px; padding: 38px; width: 100%; }
.single-form h1 { font-size: 30px; margin: 36px 0 8px; }
.single-form > p { color: var(--muted); margin-bottom: 24px; }

.portal-page { min-height: 100vh; background: var(--surface); }
.portal-header {
  align-items: center;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  height: 72px;
  justify-content: space-between;
  left: 0;
  padding: 0 28px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 30;
}
.portal-brand { align-items: center; color: var(--ink); display: flex; gap: 12px; font-size: 17px; }
.portal-brand:hover { text-decoration: none; }
.portal-brand img { border-radius: 8px; }
.header-actions { align-items: center; display: flex; gap: 22px; }
.header-actions form { display: inline; }
.mobile-menu { display: none; }
.portal-sidebar {
  background: var(--navy-900);
  bottom: 0;
  color: white;
  left: 0;
  padding: 24px 0;
  position: fixed;
  top: 72px;
  width: var(--sidebar);
  z-index: 20;
}
.portal-sidebar nav { display: grid; gap: 4px; }
.portal-sidebar nav a {
  align-items: center;
  border-left: 4px solid transparent;
  color: #eaf1fb;
  display: flex;
  font-size: 15px;
  font-weight: 650;
  gap: 14px;
  min-height: 52px;
  padding: 10px 24px 10px 20px;
}
.portal-sidebar nav a:hover { background: var(--navy-800); text-decoration: none; }
.portal-sidebar nav a[aria-current="page"] { background: var(--navy-700); border-left-color: var(--cyan-400); color: white; }
.portal-sidebar svg { fill: none; height: 23px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; width: 23px; }
.portal-sidebar > p { bottom: 24px; color: #9fb0c6; font-size: 12px; left: 22px; line-height: 1.5; margin: 0; position: absolute; right: 22px; }
.portal-main { margin-left: var(--sidebar); min-height: calc(100vh - 116px); padding: 104px 36px 54px; }
.portal-main > h1, .page-heading h1 { font-size: 30px; letter-spacing: -.025em; line-height: 1.2; margin: 0 0 22px; }
.page-heading { align-items: flex-end; display: flex; justify-content: space-between; margin-bottom: 24px; gap: 24px; }
.page-heading h1 { margin-bottom: 5px; }
.page-heading p { color: var(--muted); margin: 0; }
.license-hero {
  align-items: center;
  background: var(--navy-900);
  border-radius: var(--radius);
  color: white;
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 26px 30px;
}
.license-hero > div { align-items: center; display: flex; gap: 20px; }
.license-hero h2 { font-size: 22px; margin: 0; }
.license-hero p { color: #c8d6e8; margin: 4px 0 0; }
.license-hero strong { color: white; }
.hero-symbol { align-items: center; border: 2px solid var(--cyan-400); border-radius: 50%; color: var(--cyan-400); display: inline-flex; font-size: 26px; height: 64px; justify-content: center; width: 64px; }
.status { font-weight: 700; }
.status.active { color: #59cf7b; }
.maintenance-label { color: #c8d6e8; font-weight: 700; }
.maintenance-reminder {
  align-items: center;
  border: 1px solid;
  border-left-width: 5px;
  border-radius: var(--radius);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 20px 22px;
}
.maintenance-reminder.expiring { background: #fff8e8; border-color: #e8b84f; }
.maintenance-reminder.expired { background: var(--red-100); border-color: #df746c; }
.maintenance-reminder h2 { font-size: 18px; margin: 0 0 4px; }
.maintenance-reminder p { color: #40536c; margin: 0; max-width: 900px; }
.maintenance-reminder .button { flex: 0 0 auto; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; }
.main-column, .side-column, .settings-stack { display: grid; align-content: start; gap: 20px; }
.data-section, .side-panel, .form-panel, .info-band, .reauth-panel, .download-panel, .danger-zone {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.data-section > header, .side-panel > h2 { border-bottom: 1px solid var(--line); }
.data-section > header { align-items: center; display: flex; justify-content: space-between; padding: 12px 16px; }
.data-section h2, .side-panel h2, .form-panel h2, .info-band h2, .reauth-panel h2, .download-panel h2, .danger-zone h2 { font-size: 17px; margin: 0; }
.side-panel > h2 { padding: 13px 14px; }
.side-panel > p, .side-panel > a { margin: 14px; }
.side-panel.security { padding-bottom: 14px; }
.side-panel.security h2 { border: 0; padding-bottom: 0; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; min-width: 720px; width: 100%; }
th, td { border-bottom: 1px solid var(--line); font-size: 13px; padding: 11px 14px; text-align: left; vertical-align: middle; }
th { color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: .01em; }
tbody tr:last-child td { border-bottom: 0; }
td small.block { color: var(--muted); display: block; margin-top: 3px; }
.status-dot { background: #2fac58; border-radius: 50%; display: inline-block; height: 8px; margin-right: 7px; width: 8px; }
.summary-row { align-items: start; border-bottom: 1px solid var(--line); display: flex; gap: 12px; justify-content: space-between; padding: 12px 14px; }
.summary-row small { color: var(--muted); display: block; margin-top: 3px; }
.summary-row strong { font-size: 13px; white-space: nowrap; }
.side-panel-link { display: inline-block; font-weight: 700; margin: 13px 14px 15px; }
.billing-summary { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 20px; }
.billing-summary article { background: var(--navy-900); border-radius: var(--radius); color: white; min-height: 104px; padding: 18px 20px; }
.billing-summary span { color: #bcd0e8; display: block; font-size: 13px; font-weight: 650; }
.billing-summary strong { display: block; font-size: 28px; margin-top: 8px; }
.billing-history > header > div { display: grid; gap: 3px; }
.billing-history > header p { color: var(--muted); font-size: 13px; margin: 0; }
.billing-history td { vertical-align: middle; }
.billing-history code { font-size: 12px; white-space: nowrap; }
.payment-status { background: var(--surface-soft); border: 1px solid var(--line); border-radius: 999px; display: inline-block; font-size: 12px; font-weight: 750; padding: 4px 9px; }
.payment-status.paid { background: var(--green-100); border-color: #93d7aa; color: #136c38; }
.payment-status.refunded, .payment-status.canceled { background: #fff8e8; border-color: #e8b84f; color: var(--amber-700); }
.payment-status.failed { background: var(--red-100); border-color: #ffb4ad; color: #8d2018; }
.billing-empty { padding: 42px 24px; text-align: center; }
.billing-empty h3 { margin: 0 0 6px; }
.billing-empty p { color: var(--muted); margin: 0 auto 20px; max-width: 560px; }
.info-band, .reauth-panel, .form-panel, .download-panel, .danger-zone { padding: 22px; }
.info-band { background: #f5f9ff; border-color: #bcd7f8; }
.info-band p, .reauth-panel p, .form-panel > p, .danger-zone > p { color: var(--muted); margin-bottom: 0; }
.inline-form { align-items: end; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.inline-form label { min-width: 260px; }
.device-action { align-items: center; display: flex; gap: 8px; min-width: 270px; }
.device-action input { min-height: 38px; padding-block: 7px; }
.download-panel { align-items: center; display: flex; gap: 20px; justify-content: space-between; }
.download-panel h2 { font-size: 22px; }
.download-panel p { color: var(--muted); margin: 4px 0 0; }
.release-notification {
  background: white;
  border: 1px solid var(--line);
  border-left-width: 6px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
  padding: 24px;
}
.release-notification.update-available { background: linear-gradient(135deg, #fffaf0, #ffffff 62%); border-color: #e5a72d; }
.release-notification.up-to-date { background: linear-gradient(135deg, #effbf3, #ffffff 62%); border-color: #58b878; }
.release-notification.unavailable { background: var(--surface-soft); border-color: #9aabc0; }
.release-notification-heading { align-items: center; display: flex; gap: 16px; }
.release-notification h2 { font-size: 23px; margin: 0; }
.release-notification p { color: #40536c; margin: 4px 0 0; }
.release-icon {
  align-items: center;
  background: var(--navy-900);
  border-radius: 50%;
  color: white;
  display: inline-flex;
  flex: 0 0 48px;
  font-size: 24px;
  font-weight: 800;
  height: 48px;
  justify-content: center;
}
.update-available .release-icon { background: #b56a00; }
.up-to-date .release-icon { background: var(--green-600); }
.release-kicker { color: var(--blue-600) !important; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.release-version-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.release-version-grid > div { background: rgba(255,255,255,.8); border: 1px solid var(--line); border-radius: 8px; padding: 13px 15px; }
.release-version-grid dt { color: var(--muted); font-size: 12px; font-weight: 700; }
.release-version-grid dd { font-size: 18px; font-weight: 800; margin: 3px 0 0; }
.release-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 16px; }
.button.update-download { background: #b85d00; color: white; box-shadow: 0 8px 20px rgba(184,93,0,.22); }
.button.update-download:hover { background: #934a00; }
.button.renewal { background: var(--amber-700); color: white; }
.button.renewal:hover { background: #6e4500; }
.release-notes-link { font-weight: 750; }
.release-eligibility-note { border-top: 1px solid #e6c98a; font-size: 13px; padding-top: 14px; }
.overview-release { align-items: center; grid-template-columns: minmax(0, 1fr) auto; }
.release-current-summary {
  align-items: center;
  background: var(--green-100);
  border: 1px solid #8fd0a6;
  border-radius: var(--radius);
  color: #136c38;
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  padding: 13px 16px;
}
.release-current-summary span:last-child { margin-left: auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-actions { align-items: center; display: flex; gap: 18px; justify-content: space-between; }
.form-actions p { color: var(--muted); font-size: 13px; margin: 0; }
.support-item { border-bottom: 1px solid var(--line); }
.support-item summary { align-items: center; cursor: pointer; display: flex; justify-content: space-between; padding: 14px 16px; }
.support-item summary span:first-child { display: grid; gap: 3px; }
.support-item summary span:last-child { color: var(--muted); font-size: 13px; }
.support-reply { background: var(--surface-soft); border-top: 1px solid var(--line); display: grid; gap: 12px; padding: 16px; }
.support-retry { align-items: center; background: #fff8e8; border-top: 1px solid #e8c16d; display: flex; gap: 16px; justify-content: space-between; padding: 14px 16px; }
.support-retry p { color: var(--amber-700); margin: 0; }
.conversation { display: grid; gap: 10px; padding: 16px; }
.conversation article { background: var(--surface-soft); border-left: 3px solid var(--line); border-radius: 5px; padding: 10px 12px; }
.conversation article.support { border-left-color: var(--blue-500); }
.conversation article.customer { border-left-color: var(--green-600); }
.conversation article header { color: var(--muted); font-size: 12px; font-weight: 700; }
.conversation article p { margin: 4px 0 0; }
.support-reply textarea { min-height: 90px; }
.support-reply .button { justify-self: start; }
.empty-state { color: var(--muted); padding: 28px; text-align: center; }
.choice-form { display: grid; gap: 16px; margin-top: 18px; }
.choice-form label { align-items: start; display: grid; grid-template-columns: 20px 1fr; }
.choice-form input { height: 19px; min-height: 0; margin-top: 3px; width: 19px; }
.choice-form span { display: grid; }
.choice-form small { color: var(--muted); font-weight: 500; }
.choice-form .button { justify-self: start; }
.setup-key { background: var(--navy-900); border-radius: 6px; color: white; display: inline-block; font-size: 16px; letter-spacing: .08em; margin: 12px 0; padding: 10px 14px; }
.mfa-setup-grid { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: 28px; margin-top: 20px; }
.mfa-setup-grid h3 { font-size: 15px; margin: 0 0 10px; }
.mfa-qr-card { background: var(--surface-soft); border: 1px solid var(--line); border-radius: 9px; padding: 18px; text-align: center; }
.mfa-qr-card > p { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.mfa-qr-code { align-items: center; background: white; border: 1px solid var(--line); border-radius: 8px; display: flex; justify-content: center; margin: 0 auto; min-height: 222px; padding: 10px; width: 222px; }
.mfa-qr-code canvas, .mfa-qr-code img { display: block; height: 200px; max-width: 100%; width: 200px; }
.mfa-manual-setup > p { color: var(--muted); margin-bottom: 0; }
.mfa-confirm-form { align-items: end; display: flex; flex-wrap: wrap; gap: 20px; margin-top: 18px; }
.mfa-confirm-form label { min-width: 230px; }
.mfa-qr-error { color: var(--red-700) !important; font-weight: 650; }
.mfa-disable-panel { border: 1px solid #efb0aa; border-radius: 9px; margin-top: 18px; }
.mfa-disable-panel summary { color: var(--red-700); cursor: pointer; font-weight: 750; padding: 14px 16px; }
.mfa-disable-panel > div { border-top: 1px solid #efb0aa; padding: 16px; }
.mfa-disable-form { display: grid; gap: 16px; max-width: 620px; }
.mfa-disable-form .button { justify-self: start; }
.security-warning { background: var(--red-100); border-left: 4px solid var(--red-700); color: #7b241d; margin: 0 0 16px; padding: 12px 14px; }
.recovery-codes { background: #fff8e8; border: 1px solid #e8c16d; border-radius: 8px; margin-top: 18px; padding: 16px; }
.recovery-codes h3 { margin-top: 0; }
.recovery-codes ul { columns: 2; padding-left: 20px; }
.danger-zone { border-color: #efb0aa; }
.danger-zone form { margin-top: 16px; max-width: 520px; }
.danger-zone .close-account-form { display: grid; gap: 20px; }
.close-account-form .button { justify-self: start; }
.portal-footer { align-items: center; border-top: 1px solid var(--line); color: var(--muted); display: flex; justify-content: space-between; margin-left: var(--sidebar); min-height: 44px; padding: 8px 36px; }
.portal-footer nav { display: flex; gap: 20px; }

.commerce-reauth { margin-bottom: 18px; }
.plan-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.plan-card, .maintenance-panel, .promotion-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(7,23,45,.06);
}
.plan-card { display: grid; gap: 18px; padding: 24px; }
.plan-card.featured { border-color: #63a7ff; box-shadow: 0 16px 38px rgba(13,110,232,.12); }
.plan-card.current-license { background: linear-gradient(145deg, #f7fbff 0%, #eef6ff 100%); border: 2px solid var(--blue-600); box-shadow: 0 18px 42px rgba(13,110,232,.18); }
.plan-card.current-license .plan-kicker { color: var(--blue-600); }
.plan-card.current-license .current-plan { background: var(--blue-600); color: white; }
.plan-card.selected-purchase { border: 2px solid var(--cyan-500, #08bde5); box-shadow: 0 18px 42px rgba(8,189,229,.2); }
.purchase-selection { align-items: center; background: #eaf9fd; border: 1px solid #8fdff0; border-radius: 14px; color: #16435a; display: flex; gap: 12px; margin-bottom: 18px; padding: 14px 18px; }
.purchase-selection strong { color: #006c8b; white-space: nowrap; }
.plan-card h2, .maintenance-panel h2, .promotion-panel h2 { font-size: 24px; margin: 4px 0; }
.plan-card p, .maintenance-panel p, .promotion-panel p { color: var(--muted); margin: 0; }
.plan-card ul { color: #40536c; display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.plan-card li::before { color: var(--green-600); content: "✓"; font-weight: 800; margin-right: 8px; }
.plan-card form { align-self: end; }
.plan-card .button { width: 100%; }
.button.compact { padding: 9px 12px; white-space: nowrap; }
.license-delivery-cell { min-width: 270px; }
.license-delivery-cell form { margin: 0; }
.license-delivery-cell small { color: var(--muted); margin-top: 7px; }
.maintenance-required { display: grid; gap: 6px; margin-top: 10px; max-width: 330px; }
.maintenance-required strong { color: #9b2c22; }
.maintenance-required span { color: var(--muted); font-size: .85rem; line-height: 1.45; }
.maintenance-required a { color: var(--blue-600); font-size: .86rem; font-weight: 800; }
.plan-kicker { color: var(--blue-600); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.current-plan { align-self: end; background: var(--green-100); border-radius: 7px; color: var(--green-600); display: block; font-weight: 750; padding: 11px; text-align: center; }
.maintenance-panel, .promotion-panel { align-items: center; display: flex; gap: 28px; justify-content: space-between; margin-top: 18px; padding: 24px; }
.maintenance-panel > div:first-child, .promotion-panel > div:first-child { max-width: 650px; }
.maintenance-action { display: grid; gap: 12px; min-width: 240px; }
.maintenance-action span { color: var(--muted); }
.promotion-delivery {
  background: #effcf6;
  border: 1px solid #8ed8bb;
  border-radius: var(--radius);
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 24px;
}
.promotion-delivery textarea {
  background: white;
  border: 1px solid #a7c8bb;
  border-radius: 8px;
  color: #123b2c;
  font: 600 12px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
  min-height: 110px;
  overflow-wrap: anywhere;
  padding: 12px;
  resize: vertical;
  width: 100%;
}
.promotion-delivery .button { justify-self: start; }
.computer-link-panel { display: grid; gap: 18px; }
.computer-link-panel header { margin-bottom: 0; }
.computer-code-form { align-items: end; }
.computer-code-form label { min-width: min(100%, 280px); }
.computer-code-form input {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.computer-link-summary {
  background: #f7fbff;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
}
.computer-link-summary > div {
  background: white;
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 15px;
}
.computer-link-summary span { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.computer-link-summary strong { overflow-wrap: anywhere; }
.computer-link-summary .link-code {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .08em;
}
.computer-link-approval {
  align-items: end;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(240px, 420px) auto;
}
.computer-link-approval .form-help { grid-column: 1 / -1; margin: 0; }
.computer-link-approval select { width: 100%; }

@media (max-width: 1050px) {
  .billing-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-grid { grid-template-columns: 1fr; }
  .side-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side-column .security { grid-column: 1 / -1; }
  .auth-content { padding-inline: 34px; }
  .auth-columns { gap: 30px; }
  .auth-primary { padding-right: 30px; }
  .plan-grid { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { padding: 22px 24px; }
  .auth-trust, .brand-help { display: none; }
  .auth-content { padding: 24px; }
  .auth-tabs { gap: 18px; overflow-x: auto; }
  .auth-columns { grid-template-columns: 1fr; }
  .auth-primary { border: 0; padding: 0; }
  .auth-secondary { border-top: 1px solid var(--line); padding-top: 30px; }
  .auth-footer { align-items: flex-start; gap: 12px; padding: 18px 24px; }
  .portal-header { padding-inline: 16px; }
  .portal-brand strong { display: none; }
  .mobile-menu { background: transparent; border: 0; display: grid; gap: 4px; padding: 8px; }
  .mobile-menu span:not(.sr-only) { background: var(--ink); height: 2px; width: 22px; }
  .portal-sidebar { transform: translateX(-100%); transition: transform .18s ease; }
  .portal-sidebar.open { transform: translateX(0); }
  .portal-main { margin-left: 0; padding: 96px 18px 40px; }
  .portal-footer { margin-left: 0; padding-inline: 18px; }
  .page-heading, .license-hero, .download-panel, .maintenance-reminder { align-items: stretch; flex-direction: column; }
  .maintenance-reminder .button { align-self: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .side-column { grid-template-columns: 1fr; }
  .side-column .security { grid-column: auto; }
  .maintenance-panel, .promotion-panel { align-items: stretch; flex-direction: column; }
  .mfa-setup-grid { grid-template-columns: 1fr; }
  .mfa-qr-card { justify-self: stretch; }
  .release-version-grid { grid-template-columns: 1fr; }
  .overview-release { align-items: stretch; grid-template-columns: 1fr; }
  .computer-link-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .billing-summary { grid-template-columns: 1fr; }
  .billing-summary article { min-height: 88px; }
  .header-actions > a, .header-actions > span { display: none; }
  .auth-footer { display: grid; }
  .auth-footer nav { flex-wrap: wrap; gap: 14px; }
  .auth-primary h1, .auth-form-wrap h1 { font-size: 31px; }
  .auth-tabs { font-size: 13px; }
  .license-hero { padding: 22px; }
  .license-hero > div { align-items: start; }
  .hero-symbol { height: 48px; min-width: 48px; width: 48px; }
  .portal-main > h1, .page-heading h1 { font-size: 26px; }
  .form-actions, .support-item summary, .support-retry, .download-panel { align-items: stretch; flex-direction: column; }
  .inline-form, .device-action { align-items: stretch; display: grid; }
  .inline-form label { min-width: 0; }
  .mfa-confirm-form { align-items: stretch; display: grid; }
  .mfa-confirm-form label { min-width: 0; }
  .mfa-confirm-form .button { justify-self: start; }
  .recovery-codes ul { columns: 1; }
  .portal-footer { align-items: flex-start; gap: 8px; }
  .computer-link-summary, .computer-link-approval { grid-template-columns: 1fr; }
  .computer-link-approval .form-help { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
