:root { --ink: #14233e; --muted: #5b687b; --blue: #245ce2; --blue-dark: #1948c3; --paper: #f6f8fc; --line: #dde4ee; --white: #fff; --danger: #a72c39; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid #2459e8; outline-offset: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.16; letter-spacing: -.035em; overflow-wrap: break-word; }
p { margin: 0; }
.skip-link { position: absolute; top: .7rem; left: .7rem; z-index: 99; padding: .65rem 1rem; color: white; background: var(--ink); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.account-header { max-width: 1248px; margin: 0 auto; min-height: 94px; padding: 1.25rem 2rem; display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; gap: .75rem; align-items: center; flex-shrink: 0; }
.brand img { width: 40px; height: 40px; }
.brand > span { font-size: 1.05rem; font-weight: 760; letter-spacing: -.025em; line-height: 1.25; }
.brand small { display: block; font-size: .66rem; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-top: .2rem; }
.header-links { display: flex; gap: 1.4rem; align-items: center; font-size: .84rem; font-weight: 650; }
.header-links > a, .language-switch a { display: inline-flex; min-height: 44px; align-items: center; }
.header-links a:hover { color: var(--blue); }
.language-switch { display: flex; gap: .65rem; }
.language-switch a { color: var(--muted); }
.language-switch a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: .25rem; }
.quiet-button { border: 1px solid var(--line); border-radius: 8px; padding: .6rem .85rem; min-height: 44px; background: var(--white); color: var(--ink); font-size: .83rem; font-weight: 650; }
.auth-layout { width: min(calc(100% - 4rem),1184px); margin: 1rem auto 3rem; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: white; box-shadow: 0 22px 60px #10213909; }
.auth-aside { background: #112743; color: white; padding: clamp(2rem,4vw,3.7rem); display: flex; flex-direction: column; }
.eyebrow { font-size: .73rem; color: var(--blue); font-weight: 740; margin-bottom: .85rem; letter-spacing: .05em; }
.auth-aside .eyebrow { color: #a9c5ff; }
.auth-aside h1 { font-size: clamp(2.4rem,3.5vw,3.6rem); max-width: 390px; }
.aside-lead { max-width: 420px; color: #c7d4e6; line-height: 1.75; margin: 1.4rem 0 0; font-size: 1rem; }
.journey { list-style: none; padding: 0; margin: 2.75rem 0 2rem; display: grid; gap: 1.55rem; }
.journey li { display: flex; gap: .9rem; }
.journey-number { display: inline-flex; flex-shrink: 0; justify-content: center; align-items: center; border-radius: 50%; background: #294565; color: #dbe9ff; width: 32px; height: 32px; font-size: .8rem; font-weight: 700; }
.journey strong { display: block; font-size: .94rem; font-weight: 680; margin-top: .15rem; }
.journey p { color: #b5c7df; font-size: .86rem; margin-top: .25rem; }
.aside-note { border-top: 1px solid #ffffff24; padding-top: 1.35rem; margin-top: auto; color: #b5c7df; font-size: .8rem; line-height: 1.7; }
.auth-card { padding: clamp(1.75rem,3.5vw,3.25rem); }
.auth-card h2 { font-size: clamp(1.85rem,2.5vw,2.5rem); }
.intro { color: var(--muted); margin-top: .85rem; line-height: 1.7; font-size: .94rem; }
.auth-card form { margin-top: 1.75rem; }
.field { display: flex; flex-direction: column; margin-bottom: 1.2rem; gap: .45rem; min-width: 0; }
.field > span { font-size: .84rem; font-weight: 670; }
input:not([type="radio"]):not([type="checkbox"]), textarea { width: 100%; min-width: 0; border: 1px solid #cdd6e4; color: var(--ink); background: white; border-radius: 8px; padding: .72rem .8rem; line-height: 1.5; box-shadow: 0 1px 2px #10213904; }
input:not([type="radio"]):not([type="checkbox"]) { min-height: 48px; }
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #8995a8; }
input:focus, textarea:focus { border-color: var(--blue); outline: 3px solid #2459e816; outline-offset: 0; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--blue); width: 18px; height: 18px; flex-shrink: 0; }
.field small { color: var(--muted); font-size: .75rem; line-height: 1.6; }
.optional { font-weight: 450; color: var(--muted); }
.plan-fieldset { border: 0; padding: 0; margin: 0 0 1.4rem; min-width: 0; }
.plan-fieldset legend { font-size: .84rem; font-weight: 670; margin-bottom: .6rem; }
.plan-options { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.plan-option { display: flex; align-items: flex-start; gap: .4rem; padding: .85rem .7rem; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.plan-option:has(input:checked) { border-color: var(--blue); background: #f0f5ff; }
.plan-option input { margin-top: .16rem; }
.plan-option strong { display: block; font-size: .88rem; }
.plan-option small { display: block; color: var(--muted); font-size: .71rem; margin-top: .15rem; line-height: 1.45; }
.consent { display: flex; gap: .6rem; align-items: flex-start; color: var(--muted); font-size: .74rem; line-height: 1.7; margin: 1.4rem 0; }
.consent input { margin: .16rem 0 0; }
.consent a { color: var(--blue-dark); text-decoration: underline; text-underline-offset: .16rem; }
.primary-button, .secondary-button, .danger-button { display: inline-flex; align-items: center; justify-content: center; gap: .85rem; border-radius: 8px; min-height: 48px; padding: .75rem 1rem; font-size: .85rem; font-weight: 680; border: 1px solid transparent; line-height: 1.5; }
.primary-button { background: var(--blue); color: white; }
.primary-button:hover { background: var(--blue-dark); }
.wide { width: 100%; }
.secondary-button { background: white; color: var(--ink); border-color: #cbd5e4; }
.secondary-button:hover { border-color: var(--blue); color: var(--blue); }
.cost-note { color: var(--muted); text-align: center; font-size: .69rem; line-height: 1.7; margin-top: .65rem; }
.auth-switch { color: var(--muted); font-size: .81rem; text-align: center; margin-top: 1.6rem; }
.auth-switch a { color: var(--blue); font-weight: 650; }
.auth-switch a:hover { text-decoration: underline; }
.internal-access { margin-top: 2.7rem; padding-top: 1.25rem; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .72rem; }
.internal-access a:hover { color: var(--ink); text-decoration: underline; }
.form-message { margin: 0 0 1rem; padding: .8rem .9rem; border-radius: 7px; border: 1px solid #efd0d2; background: #fff4f4; color: #8c2836; font-size: .83rem; line-height: 1.65; overflow-wrap: anywhere; }
.form-message.success { border-color: #c8e5d6; background: #edf8f1; color: #255a3e; }
.account-footer { width: min(calc(100% - 4rem),1184px); margin: 0 auto; display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; padding: 0 0 2rem; color: var(--muted); font-size: .74rem; }
.account-footer > span { margin-right: auto; }
.account-footer a { min-height: 44px; display: inline-flex; align-items: center; }
.account-footer a:hover { color: var(--blue); }
.setup-shell { width: min(calc(100% - 4rem),1184px); margin: 1.25rem auto 3rem; }
.setup-heading { display: flex; gap: 2rem; align-items: flex-start; justify-content: space-between; margin-bottom: 2rem; }
.setup-heading h1 { font-size: clamp(2rem,3.2vw,3rem); max-width: 760px; }
.setup-heading .intro { max-width: 740px; }
.setup-badge { border: 1px solid #cfdcf9; background: #eef3ff; border-radius: 20px; padding: .4rem .7rem; color: var(--blue-dark); font-size: .74rem; white-space: nowrap; margin-top: .3rem; }
.setup-grid { display: grid; grid-template-columns: minmax(0,1fr) 288px; gap: 1.5rem; align-items: start; }
.profile-card { background: white; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 32px #10213905; }
.form-section { padding: 1.65rem 2rem .4rem; border-bottom: 1px solid var(--line); }
.section-label { display: flex; gap: .75rem; align-items: center; margin-bottom: 1.45rem; }
.section-label > span { color: var(--blue); font-size: .73rem; font-weight: 750; }
.section-label h2 { font-size: 1.1rem; letter-spacing: -.02em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-actions { padding: 1.5rem 2rem; }
.next-card { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; position: sticky; top: 1.5rem; }
.next-icon { width: 40px; height: 40px; border-radius: 10px; background: #eaf0ff; color: var(--blue); font-size: 1.6rem; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.next-card h2 { font-size: 1.3rem; }
.next-card > p { color: var(--muted); font-size: .84rem; line-height: 1.8; margin-top: .75rem; }
.next-card .secondary-button { width: 100%; margin-top: 1.35rem; font-size: .8rem; }
.inline-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); font-size: .79rem; font-weight: 650; margin-top: .3rem; }
.inline-link:hover { text-decoration: underline; }
.profile-tools { border-top: 1px solid var(--line); padding-top: 1.35rem; margin-top: 1.2rem; }
.profile-tools h3 { font-size: .88rem; letter-spacing: 0; }
.profile-tools p { color: var(--muted); font-size: .77rem; margin-top: .5rem; line-height: 1.7; }
.reset-button { padding: .65rem 0; min-height: 44px; font-size: .75rem; font-weight: 600; border: 0; background: transparent; color: var(--danger); text-align: left; }
.reset-button:hover { text-decoration: underline; }
.loading-note, .noscript-note { padding: 2rem; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--muted); }
.noscript-note { max-width: 900px; margin: 2rem auto; }
dialog { width: min(calc(100% - 2rem),480px); border: 1px solid var(--line); border-radius: 16px; padding: 2rem; color: var(--ink); box-shadow: 0 30px 100px #10213940; }
dialog::backdrop { background: #10213980; }
dialog h2 { font-size: 1.5rem; }
dialog p:not(.form-message) { color: var(--muted); margin: 1rem 0 1.5rem; font-size: .88rem; line-height: 1.75; }
.dialog-actions { display: flex; gap: .7rem; justify-content: flex-end; flex-wrap: wrap; }
.danger-button { background: var(--danger); color: white; }
.danger-button:hover { background: #88232e; }
@media (max-width: 920px) { .auth-layout { grid-template-columns: .85fr 1.15fr; } .auth-aside { padding: 2rem; } .auth-aside h1 { font-size: 2.6rem; } .auth-card { padding: 2rem; } .setup-grid { grid-template-columns: minmax(0,1fr) 250px; } .form-section, .form-actions { padding-left: 1.5rem; padding-right: 1.5rem; } .field-row { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 700px) { .account-header { padding: 1rem 1.25rem; min-height: 82px; gap: .75rem; } .header-links { gap: .9rem; font-size: .78rem; } .brand img { width: 36px; height: 36px; } .brand > span { font-size: .97rem; } .auth-layout { width: calc(100% - 2.5rem); margin-top: .5rem; grid-template-columns: 1fr; border-radius: 16px; } .auth-aside { padding: 1.8rem; } .auth-aside h1 { max-width: 100%; font-size: 2.3rem; } .aside-lead { font-size: .9rem; margin-top: .8rem; max-width: none; } .journey { display: none; } .aside-note { margin-top: 1.3rem; padding-top: 1rem; font-size: .73rem; } .auth-card { padding: 1.8rem; } .account-footer { width: calc(100% - 2.5rem); gap: .5rem 1.25rem; padding-bottom: 1rem; } .account-footer > span { flex: 0 0 100%; } .setup-shell { width: calc(100% - 2.5rem); margin-top: .75rem; } .setup-grid { grid-template-columns: 1fr; } .setup-heading { gap: 1rem; } .setup-badge { display: none; } .next-card { position: static; } .form-section { padding-top: 1.5rem; } .form-actions .primary-button { width: 100%; } }
@media (max-width: 390px) { .header-links > #offer-link { display: none; } .auth-aside, .auth-card { padding: 1.4rem; } .auth-aside h1 { font-size: 2rem; } .plan-options { gap: .4rem; } .plan-option { padding: .65rem .45rem; gap: .3rem; } .plan-option small { font-size: .68rem; } .form-section, .form-actions { padding-left: 1.1rem; padding-right: 1.1rem; } .quiet-button { padding-inline: .5rem; font-size: .75rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }

.clearable-field { display: flex; gap: .6rem; align-items: stretch; }
.clearable-field input { flex: 1; min-width: 0; }
.clear-field { border: 1px solid var(--line); border-radius: 8px; padding: .5rem .7rem; background: white; font-size: .75rem; color: var(--muted); }
.clear-field:hover { border-color: var(--blue); color: var(--blue); }
#retry-profile { margin-bottom: 1rem; }

.privacy-brief { border-top: 1px solid var(--line); padding-top: 1.15rem; margin-top: 1.6rem; scroll-margin-top: 1.5rem; }
.privacy-brief h3 { font-size: .81rem; letter-spacing: 0; }
.privacy-brief p { color: var(--muted); font-size: .71rem; line-height: 1.75; margin-top: .45rem; }
.reset-section-button { min-height: 44px; padding: .25rem 0 .5rem; border: 0; background: transparent; color: var(--muted); font-size: .75rem; text-decoration: underline; text-underline-offset: .18rem; }
.reset-section-button:hover { color: var(--danger); }
.account-settings { margin-top: 1.5rem; border: 1px solid var(--line); border-radius: 14px; background: white; }
.account-settings summary { cursor: pointer; min-height: 58px; padding: 1rem 1.5rem; font-size: .88rem; font-weight: 650; }
.settings-grid { padding: .25rem 1.5rem 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.settings-card { min-width: 0; }
.settings-card h2 { font-size: 1.1rem; letter-spacing: -.01em; margin-bottom: .75rem; }
.settings-note { color: var(--muted); font-size: .78rem; line-height: 1.7; margin: .75rem 0 1rem; }
@media (max-width: 700px) { .settings-grid { grid-template-columns: 1fr; gap: 1.5rem; } .settings-card + .settings-card { border-top: 1px solid var(--line); padding-top: 1.5rem; } }

/* The personal entry uses the same quiet palette as the radar. */
:root[data-personal-enrollment="true"] {
  --ink: #142c42; --muted: #41596d; --blue: #174e84; --blue-dark: #123e6a;
  --paper: #dfe8ef; --line: #bccbd7; --white: #f2f6f9; --danger: #8a2633;
  color-scheme: light;
}
[data-personal-enrollment="true"] .auth-layout { background: var(--white); border-radius: 14px; }
[data-personal-enrollment="true"] .auth-aside { background: #203b52; }
[data-personal-enrollment="true"] .auth-aside :is(h1, strong) { color: #f2f6f9 !important; }
[data-personal-enrollment="true"] .auth-card :is(h2, h3, label, label > span, .consent span, input) { color: var(--ink) !important; }
[data-personal-enrollment="true"] .auth-card :is(small, .cost-note, .auth-switch, .privacy-brief p) { color: var(--muted); }
[data-personal-enrollment="true"] .auth-card input[type=checkbox] { accent-color: var(--blue); }
[data-personal-enrollment="true"] :is(#offer-link, .internal-access, .cost-note) { display: none; }
[data-personal-enrollment="true"] .auth-layout {
  max-width: 520px; grid-template-columns: minmax(0,1fr);
}
[data-personal-enrollment="true"] .auth-aside { display: none; }
@media (max-width: 700px) {
  [data-personal-enrollment="true"] .auth-layout { width: calc(100% - 1.75rem); }
  [data-personal-enrollment="true"] .auth-card { grid-row: 1; padding: 1.4rem; }
  [data-personal-enrollment="true"] .auth-aside { grid-row: 2; }
  [data-personal-enrollment="true"] .auth-card input:not([type=checkbox]) { font-size: 16px; }
}
[data-personal-enrollment="true"] .auth-aside :is(.journey, .aside-note, .aside-lead),
[data-personal-enrollment="true"] .auth-card .intro { display: none; }
[data-personal-enrollment="true"] .auth-aside { justify-content: center; }
