/* 0XCON customer account page (prelaunch). Scoped to account.html only. */
:root{color-scheme:dark;font-family:Inter,ui-sans-serif,system-ui,sans-serif;background:#0b0f17;color:#eef3ff}
*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(ellipse 650px 420px at 50% 115px,rgba(33,114,140,.12),transparent 78%),#0b0f17}a{color:#79e6fa}
[hidden]{display:none!important}
header{display:flex;align-items:center;gap:1rem;padding:1rem max(1rem,calc((100vw - 1100px)/2));border-bottom:1px solid #34415b;background:#141b27}
.brand{display:flex;align-items:center;min-height:52px}.brand img{display:block;width:154px;height:52px;max-width:42vw;object-fit:contain;object-position:left center}
main{max-width:1100px;margin:clamp(2rem,5vw,4.4rem) auto;padding:0 clamp(1rem,3vw,1.5rem)}
.eyebrow{color:#69d6c4;letter-spacing:.15em;font-size:.72rem;font-weight:750}
h1{font-size:clamp(2rem,4vw,3.4rem);line-height:1.08;letter-spacing:-.04em;margin:.45rem 0 0;font-weight:760}h2{font-size:1.25rem;margin-top:0}h3{font-size:1rem;margin:1.2rem 0 .5rem}
.status{border:1px solid #31576a;background:#10202c;padding:.9rem 1.15rem;border-radius:12px;margin:1.8rem 0 1.4rem;color:#dcecf4;line-height:1.55}
.panel{background:#151d29;border:1px solid #2c3a4e;border-radius:16px;padding:1.4rem;margin:1.2rem 0}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:1.2rem}
.auth-form{display:grid;gap:.75rem;align-content:start}
.auth-form label,.inline-form label{display:grid;gap:.3rem;color:#d5e2f3}
.inline-form{display:flex;flex-wrap:wrap;gap:.75rem;align-items:end;margin:.6rem 0}.inline-form label{flex:1 1 220px}
input{font:inherit;min-height:48px;padding:.72rem .85rem;border-radius:10px;border:1px solid #40536d;background:#0c1420;color:#f0f7ff;width:100%;min-width:0}input:hover{border-color:#647b93}
input:focus-visible,button:focus-visible{outline:3px solid #79e6fa;outline-offset:2px}
button{font:inherit;font-weight:650;border-radius:10px;min-height:46px;padding:.7rem 1rem;border:1px solid #277f75;background:#17564d;color:#f0f7ff;cursor:pointer;transition:background-color .16s ease,border-color .16s ease}button:hover:not(:disabled){background:#1d695e;border-color:#39b8a6}
button.secondary{border-color:#547486;background:#233249}button.danger{border-color:#c4546a;background:#4a1a25}
button.small{padding:.35rem .7rem;font-size:.85rem}button:disabled{cursor:not-allowed;opacity:.5}
.list{list-style:none;padding:0;margin:.4rem 0;display:grid;gap:.4rem}
.list li{display:flex;justify-content:space-between;align-items:center;gap:.8rem;border-top:1px solid #2b364a;padding:.5rem 0;overflow-wrap:anywhere}
.list li.empty{color:#a4b2c8}
.hint{color:#a4b2c8;font-size:.9rem}
.secret{display:block;padding:.7rem;background:#0f1520;border:1px dashed #47556f;border-radius:9px;overflow-wrap:anywhere;user-select:all}
.codes{columns:2;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.message{min-height:1.5em;color:#ffcf9e}
footer{text-align:center;padding:2rem 1rem;color:#a4b2c8}
@media(max-width:560px){.panel{padding:1rem}.codes{columns:1}}
/* Cloudflare Turnstile security check inside credential forms. */
.captcha{display:grid;gap:.45rem;min-width:0}
.captcha-widget{min-height:65px;max-width:100%;overflow:hidden}
.captcha-status{margin:0;font-size:.88rem;color:#c9d6e6}
.captcha[data-state=expired] .captcha-status,.captcha[data-state=failed] .captcha-status,.captcha[data-state=unavailable] .captcha-status,.captcha[data-state=unknown] .captcha-status{color:#ffd28a}
.captcha-retry{justify-self:start}
/* Published customer portal: plan links and keyboard focus for in-page links. */
.links{margin:.8rem 0 0;line-height:1.7}main a:focus-visible{outline:3px solid #79e6fa;outline-offset:2px;border-radius:3px}

/* Honest SaaS onboarding: no clickable GitHub action until live capability is confirmed. */
.workspace-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:1rem}
.workspace-tile{padding:1rem;border:1px solid #354861;border-radius:12px;background:#101823;min-width:0}
.workspace-tile h3{margin:0 0 .7rem}
.workspace-tile p{overflow-wrap:anywhere;line-height:1.55}
.workspace-tile a{display:inline-flex;align-items:center;min-height:44px;margin:.25rem 0 .5rem;padding:.6rem .85rem;border:1px solid #28ad84;border-radius:9px;color:#eefaff;background:#134d43;text-decoration:none}
.workspace-tile a:focus-visible{outline:3px solid #79e6fa;outline-offset:3px}

/* Customer-owned read-only domain overview; names and states are rendered as text only. */
.workspace-domain-list{list-style:none;padding:0;margin:.5rem 0 .8rem;display:grid;gap:.55rem}
.workspace-domain-list li{display:grid;gap:.25rem;padding:.65rem .75rem;border:1px solid #354861;border-radius:9px;background:#0b1420;overflow-wrap:anywhere}
.workspace-domain-list strong{color:#f0f7ff;font-weight:650}
.workspace-domain-list span{color:#b9c9da;font-size:.88rem;line-height:1.4}

/* Account onboarding — primary signup with a secondary sign-in/recovery rail.
   Keep existing form IDs and fail-closed hidden states for account.js and Turnstile. */
.account-heading{max-width:780px}
.account-heading .eyebrow{margin:0 0 .65rem}
.account-subtitle{max-width:690px;margin:1rem 0 0;color:#aebed0;font-size:clamp(.98rem,1.7vw,1.08rem);line-height:1.65}
.auth-shell{margin:0 0 2.5rem}
.auth-layout{display:grid;gap:22px;width:min(100%,590px);margin-inline:auto;align-items:start}
#signedOut.signup-available .auth-layout{width:100%;grid-template-columns:minmax(0,1.14fr) minmax(0,.86fr)}
.auth-sidebar{display:grid;gap:20px;min-width:0;align-content:start}
.auth-card{min-width:0;background:#151e2b;border:1px solid #304157;border-radius:18px;padding:clamp(1.35rem,2.5vw,2.3rem);box-shadow:0 18px 46px rgba(0,0,0,.15)}
.auth-signup{background:linear-gradient(150deg,rgba(23,77,83,.23),transparent 38%),#151e2b;border-color:#356375;box-shadow:0 24px 64px rgba(0,0,0,.20),inset 0 3px #43cec0}
.auth-card-heading{margin:0 0 1.65rem}
.auth-overline{font-size:.72rem;color:#70decf;font-weight:750;letter-spacing:.15em;margin:0 0 .72rem}
.auth-card h2{font-size:clamp(1.4rem,2.35vw,1.85rem);line-height:1.16;letter-spacing:-.025em;margin:0 0 .65rem}
.auth-description{margin:0;max-width:40ch;color:#acbfd0;font-size:.92rem;line-height:1.6}
.auth-card .auth-form{display:grid;gap:1rem}
.auth-card .auth-form label{display:grid;gap:.45rem;font-size:.875rem;font-weight:630;color:#dbe6f1}
.auth-card .auth-form input{font-weight:450;font-size:1rem}
.auth-card .auth-form input:focus-visible{outline:2px solid #64ddec;outline-offset:2px;border-color:#64ddec}
.auth-card .auth-form button[type=submit]{width:100%;margin-top:.25rem}
.auth-card .auth-form button.secondary{background:#1c2a3a;border-color:#3d5269;color:#e0ebf5}
.auth-card .auth-form button.secondary:hover:not(:disabled){background:#25364a;border-color:#6c89a2}
.auth-signup .auth-primary-action{background:#5bd9cc;border-color:#5bd9cc;color:#061a22}
.auth-signup .auth-primary-action:hover:not(:disabled){background:#78ecdd;border-color:#78ecdd}
.auth-card .auth-form .captcha-retry{width:auto;justify-self:start;margin:0}
.auth-card .auth-form .captcha{min-width:0}
.field-help{font-size:.8rem;color:#9db0c4;line-height:1.4;margin:-.8rem 0 0}
.auth-note{margin:1.35rem 0 0;padding-top:1.1rem;border-top:1px solid #304157;color:#9eb2c4;font-size:.8rem;line-height:1.5}
.auth-recovery{padding-block:1.5rem}
.auth-recovery .auth-card-heading{margin-bottom:1rem}
.auth-recovery h2{font-size:1.18rem}
.auth-recovery .auth-description{font-size:.85rem}
@media(max-width:850px){
  #signedOut.signup-available .auth-layout{max-width:620px;grid-template-columns:minmax(0,1fr);margin-inline:auto}
}
@media(max-width:560px){
  main{margin:2rem auto;padding:0 1rem}
  .account-subtitle{font-size:.96rem}
  .status{margin:1.5rem 0 1.25rem}
  .auth-layout,.auth-sidebar{gap:16px}
  .auth-card{padding:1.35rem;border-radius:15px}
  .auth-card-heading{margin-bottom:1.25rem}
  .auth-card .auth-form button{min-height:48px}
}
@media(prefers-reduced-motion:reduce){.auth-card button{transition:none}}
