/* in5 customer account portal — design system (2026-10-09). Light theme only.
   Rules: every colour, radius and size is a token on :root and nothing else in this file uses a raw hex.
   Type scale 12 · 13 · 14 · 16 · 20 · 24 px only (nothing below 12). 4 px spacing steps. Radii 6 / 8 / 12.
   Scope: everything lives under .ac (the account page container) so the site shell (app.css) is untouched.
   Replaces css/account-fixes-2026-10.css. The legacy section at the end carries only what the pages not yet rebuilt still need. */
:root{
  --brand:#3A5FE6;--brand-strong:#2B4DCC;
  --ink:#242424;--muted:#636363;--faint:#8A8F99;
  --bg:#F3F4F7;--surface:#FFFFFF;--surface-2:#F9F9F9;--tint:#EDF1FF;
  --line:#DCDCDE;--line-soft:#E9EBF0;
  --ok:#1f8a4c;--ok-bg:#E6F4EC;--ok-text:#166534;
  --warn:#b7791f;--warn-bg:#FBF1DC;--warn-text:#7a4f0f;
  --bad:#c62828;--bad-bg:#FBE9E9;--bad-text:#9b1c1c;
  --off:#6b7280;--off-bg:#EEF0F3;--off-text:#4b5563;
  --white:#FFFFFF;
  --shadow:0 1px 2px rgba(16,24,40,.06);
  --font:Jost,-apple-system,"Segoe UI",sans-serif;
  --mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --fs-12:12px;--fs-13:13px;--fs-14:14px;--fs-16:16px;--fs-20:20px;--fs-24:24px;
  --r-6:6px;--r-8:8px;--r-12:12px;
  --s-1:4px;--s-2:8px;--s-3:12px;--s-4:16px;--s-5:20px;--s-6:24px;--s-8:32px;--s-10:40px;
  --ctl-h:40px;--max-w:1040px;
}

/* ---- page container ---- */
.ac-wrap{background:var(--bg);width:100%;}
.ac{font-family:var(--font);font-size:var(--fs-14);line-height:1.5;color:var(--ink);max-width:var(--max-w);margin:0 auto;padding:var(--s-6) var(--s-4) var(--s-10);box-sizing:border-box;}
.ac *,.ac *::before,.ac *::after{box-sizing:border-box;}
.theme-new-b .ac p,.theme-new-b .ac li,.theme-new-b .ac dd,.theme-new-b .ac dt,.theme-new-b .ac td,.theme-new-b .ac th,.theme-new-b .ac label{font-family:var(--font);font-size:var(--fs-14);line-height:1.5;color:var(--ink);margin:0;}
.theme-new-b .ac p+p{margin-top:var(--s-2);}
.theme-new-b .ac a{font-family:var(--font);font-size:inherit;font-weight:500;color:var(--brand-strong);text-decoration:underline;text-underline-offset:2px;outline:none;}
.theme-new-b .ac a:hover{color:var(--brand);}
.theme-new-b .ac a:focus-visible,.theme-new-b .ac button:focus-visible,.theme-new-b .ac input:focus-visible,.theme-new-b .ac select:focus-visible,.theme-new-b .ac textarea:focus-visible,.theme-new-b .ac [tabindex]:focus-visible{outline:2px solid var(--brand);outline-offset:2px;}
.theme-new-b .ac h1,.theme-new-b .ac h2,.theme-new-b .ac h3,.theme-new-b .ac h4{font-family:var(--font);color:var(--ink);text-align:left;text-transform:none;letter-spacing:0;margin:0;padding:0;}
.theme-new-b .ac h1{font-size:var(--fs-20);font-weight:600;line-height:1.3;}
.theme-new-b .ac h2{font-size:var(--fs-16);font-weight:600;line-height:1.4;}
.theme-new-b .ac h3{font-size:var(--fs-14);font-weight:600;line-height:1.4;}
.theme-new-b .ac h4{font-size:var(--fs-13);font-weight:600;line-height:1.4;color:var(--muted);}
.ac hr{border:0;border-top:1px solid var(--line-soft);margin:var(--s-4) 0;}
.ac ul,.ac ol{margin:0;padding:0 0 0 var(--s-5);}
.ac ul.ac-plain,.ac ol.ac-plain{list-style:none;padding:0;}
.ac strong{font-weight:600;}
.ac code,.ac .ac-serial{font-family:var(--mono);font-size:var(--fs-13);letter-spacing:.02em;color:var(--ink);}
.ac .ac-muted{color:var(--muted);}
.ac .ac-cap{font-size:var(--fs-12);color:var(--muted);line-height:1.4;}
.ac .ac-note{font-size:var(--fs-13);color:var(--muted);line-height:1.5;}
.ac .ac-num{font-variant-numeric:tabular-nums;text-align:right;}
.ac .ac-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.ac .ac-hidden{display:none;}

/* ---- head: title + section nav ---- */
.ac-head{display:flex;flex-direction:column;gap:var(--s-3);margin-bottom:var(--s-4);}
.ac-head-row{display:flex;align-items:baseline;justify-content:space-between;gap:var(--s-4);flex-wrap:wrap;}
.ac-who{font-size:var(--fs-13);color:var(--muted);}
.ac-who a{white-space:nowrap;}
.ac-nav{position:sticky;top:0;z-index:5;background:var(--bg);margin:0 calc(-1 * var(--s-4));padding:0 var(--s-4);}
.ac-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:var(--s-1);border-bottom:1px solid var(--line);overflow-x:auto;}
.ac-nav li{flex:0 0 auto;}
.theme-new-b .ac .ac-nav a{display:inline-flex;align-items:center;min-height:var(--ctl-h);padding:0 var(--s-3);font-size:var(--fs-14);font-weight:500;color:var(--muted);text-decoration:none;border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap;border-radius:var(--r-6) var(--r-6) 0 0;}
.theme-new-b .ac .ac-nav a:hover{color:var(--ink);background:var(--surface-2);}
.theme-new-b .ac .ac-nav a[aria-current=page]{color:var(--brand-strong);border-bottom-color:var(--brand);}

/* ---- status strip ---- */
.ac-status{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:var(--s-3);margin-bottom:var(--s-5);}
.ac-tile{background:var(--surface);border:1px solid var(--line-soft);border-radius:var(--r-8);padding:var(--s-3) var(--s-4);box-shadow:var(--shadow);min-width:0;}
.ac-tile-v{font-size:var(--fs-24);font-weight:600;line-height:1.2;color:var(--ink);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;}
.ac-tile-v.ac-tile-s{font-size:var(--fs-16);line-height:1.3;padding-top:var(--s-1);}
.ac-tile-c{font-size:var(--fs-12);color:var(--muted);line-height:1.4;margin-top:var(--s-1);}
.ac-tile-a{margin-top:var(--s-2);}
.ac-tile.is-bad{border-color:var(--bad);background:var(--bad-bg);}
.ac-tile.is-warn{border-color:var(--warn);background:var(--warn-bg);}

/* ---- pills: a word + a colour, never colour alone ---- */
.ac-pill{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 var(--s-2) 0 var(--s-2);border-radius:var(--r-6);font-size:var(--fs-12);font-weight:500;line-height:1;color:var(--ink);background:var(--off-bg);border:1px solid var(--line);white-space:nowrap;vertical-align:middle;}
.ac-pill::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--off);flex:0 0 auto;}
.ac-pill.ok{background:var(--ok-bg);border-color:var(--ok);}.ac-pill.ok::before{background:var(--ok);}
.ac-pill.warn{background:var(--warn-bg);border-color:var(--warn);}.ac-pill.warn::before{background:var(--warn);}
.ac-pill.bad{background:var(--bad-bg);border-color:var(--bad);}.ac-pill.bad::before{background:var(--bad);}
.ac-pill.off{background:var(--off-bg);border-color:var(--off);}.ac-pill.off::before{background:var(--off);}
.ac-pill.brand{background:var(--tint);border-color:var(--brand);}.ac-pill.brand::before{background:var(--brand);}

/* ---- flash messages (SessionManager prints .message.msg / .msg.error) ---- */
.ac .ac-flash{margin-bottom:var(--s-4);}
.ac .ac-flash:empty{display:none;}
.ac .msg,.ac .message{display:block;background:var(--tint);border:1px solid var(--brand);border-left-width:4px;border-radius:var(--r-8);color:var(--ink);font-family:var(--font);font-size:var(--fs-14);font-weight:400;line-height:1.5;padding:var(--s-3) var(--s-4);margin:0 0 var(--s-3);text-align:left;}
.ac .msg.error,.ac .msg.warning,.ac .message.error{background:var(--bad-bg);border-color:var(--bad);}
.ac .msg.warning::before{display:none;}
.ac .msg ul{margin:var(--s-1) 0 0;padding-left:var(--s-5);}
.ac .msg a{color:var(--brand-strong);}
.ac .msg.ok{background:var(--ok-bg);border-color:var(--ok);}

/* ---- cards and grids ---- */
.ac-grid{display:grid;grid-template-columns:1fr;gap:var(--s-4);}
.ac-grid-2{grid-template-columns:repeat(2,minmax(0,1fr));}
.ac-grid-3{grid-template-columns:repeat(3,minmax(0,1fr));}
.ac-card{background:var(--surface);border:1px solid var(--line-soft);border-radius:var(--r-8);padding:var(--s-5);box-shadow:var(--shadow);min-width:0;}
.ac-card+.ac-card{margin-top:var(--s-4);}
.ac-card-h{display:flex;align-items:center;justify-content:space-between;gap:var(--s-3);margin-bottom:var(--s-3);flex-wrap:wrap;}
.ac-card-h h2{flex:1 1 auto;}
.ac-card-h .ac-cap{flex-basis:100%;}
.ac-card.is-tint{background:var(--tint);border-color:var(--line-soft);}
.ac-card.is-soft{background:var(--surface-2);box-shadow:none;}
.ac-card-foot{margin-top:var(--s-4);padding-top:var(--s-3);border-top:1px solid var(--line-soft);display:flex;gap:var(--s-3);align-items:center;flex-wrap:wrap;}
.ac-span-2{grid-column:span 2;}

/* ---- facts: definition list in two columns ---- */
.ac-facts{display:grid;grid-template-columns:minmax(120px,160px) 1fr;gap:var(--s-2) var(--s-4);margin:0;}
.theme-new-b .ac .ac-facts dt{font-size:var(--fs-13);color:var(--muted);}
.theme-new-b .ac .ac-facts dd{margin:0;overflow-wrap:anywhere;}

/* ---- buttons: one primary per view ---- */
.theme-new-b .ac .ac-btn,.theme-new-b .ac button.ac-btn,.theme-new-b .ac a.ac-btn,.theme-new-b .ac input.ac-btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--s-2);min-height:var(--ctl-h);padding:0 var(--s-4);border-radius:var(--r-6);border:1px solid var(--brand);background:var(--brand);color:var(--white);font-family:var(--font);font-size:var(--fs-14);font-weight:500;line-height:1.2;text-decoration:none;cursor:pointer;white-space:nowrap;box-shadow:none;transition:background-color .12s ease;}
.theme-new-b .ac .ac-btn:hover{background:var(--brand-strong);border-color:var(--brand-strong);color:var(--white);}
.theme-new-b .ac .ac-btn:disabled,.theme-new-b .ac .ac-btn[aria-disabled=true]{opacity:.55;cursor:not-allowed;}
.theme-new-b .ac .ac-btn-2,.theme-new-b .ac a.ac-btn-2,.theme-new-b .ac button.ac-btn-2{background:var(--surface);border-color:var(--line);color:var(--ink);}
.theme-new-b .ac .ac-btn-2:hover{background:var(--surface-2);border-color:var(--faint);color:var(--ink);}
.theme-new-b .ac .ac-btn-sm,.theme-new-b .ac a.ac-btn-sm{min-height:32px;padding:0 var(--s-3);font-size:var(--fs-13);}
.theme-new-b .ac .ac-btn-danger,.theme-new-b .ac a.ac-btn-danger,.theme-new-b .ac button.ac-btn-danger{background:var(--surface);border-color:var(--line);color:var(--bad-text);}
.theme-new-b .ac .ac-btn-danger:hover{background:var(--bad-bg);border-color:var(--bad);color:var(--bad-text);}
.theme-new-b .ac .ac-link-danger{color:var(--bad-text);}
.theme-new-b .ac .ac-link-danger:hover{color:var(--bad);}
.ac-actions{display:flex;gap:var(--s-3);align-items:center;flex-wrap:wrap;margin-top:var(--s-4);}
.ac-actions .ac-right{margin-left:auto;}

/* ---- forms ---- */
.ac-form{max-width:480px;}
.ac-field{display:flex;flex-direction:column;gap:var(--s-1);margin-bottom:var(--s-4);}
.theme-new-b .ac .ac-field label,.theme-new-b .ac .ac-label{font-size:var(--fs-13);font-weight:500;color:var(--ink);}
.theme-new-b .ac .ac-field .ac-cap{margin:0;}
.theme-new-b .ac input:not([type=checkbox]):not([type=radio]):not(.ac-btn),.theme-new-b .ac select,.theme-new-b .ac textarea{display:block;width:100%;height:var(--ctl-h);padding:0 var(--s-3);margin:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-6);color:var(--ink);font-family:var(--font);font-size:var(--fs-14);line-height:1.4;box-shadow:none;}
.theme-new-b .ac textarea{height:auto;min-height:96px;padding:var(--s-2) var(--s-3);resize:vertical;}
.theme-new-b .ac input::placeholder,.theme-new-b .ac textarea::placeholder{color:var(--faint);font-size:var(--fs-14);opacity:1;}
.theme-new-b .ac input:focus,.theme-new-b .ac select:focus,.theme-new-b .ac textarea:focus{border-color:var(--brand);outline:2px solid var(--brand);outline-offset:0;}
.theme-new-b .ac input.is-invalid{border-color:var(--bad);}
.theme-new-b .ac .invalid-feedback,.theme-new-b .ac label.error{font-size:var(--fs-12);color:var(--bad-text);font-weight:400;}
.ac-check{display:flex;align-items:flex-start;gap:var(--s-2);margin:var(--s-2) 0;}
.theme-new-b .ac .ac-check input{width:16px;height:16px;margin:2px 0 0;flex:0 0 auto;accent-color:var(--brand);}
.theme-new-b .ac .ac-check label{font-size:var(--fs-14);font-weight:400;}
.ac-choices{display:grid;grid-template-columns:1fr;gap:var(--s-2);}
.theme-new-b .ac .ac-choice{display:flex;align-items:center;gap:var(--s-3);padding:var(--s-3) var(--s-4);border:1px solid var(--line);border-radius:var(--r-6);background:var(--surface);cursor:pointer;font-size:var(--fs-14);font-weight:400;}
.theme-new-b .ac .ac-choice:hover{background:var(--surface-2);}
.theme-new-b .ac .ac-choice input{width:16px;height:16px;margin:0;accent-color:var(--brand);flex:0 0 auto;}
.theme-new-b .ac .ac-choice:has(input:checked){border-color:var(--brand);background:var(--tint);}
.ac .ac-counter{font-size:var(--fs-12);color:var(--muted);text-align:right;}

/* ---- tables ---- */
.ac-table-wrap{overflow-x:auto;margin:0 calc(-1 * var(--s-2));padding:0 var(--s-2);}
.theme-new-b .ac table.ac-table{width:100%;border-collapse:collapse;margin:0;font-size:var(--fs-14);}
.theme-new-b .ac .ac-table th{font-size:var(--fs-12);font-weight:500;color:var(--muted);text-align:left;padding:var(--s-2) var(--s-2);border-bottom:1px solid var(--line);white-space:nowrap;}
.theme-new-b .ac .ac-table td{padding:var(--s-3) var(--s-2);border-bottom:1px solid var(--line-soft);vertical-align:middle;}
.theme-new-b .ac .ac-table tr:last-child td{border-bottom:0;}
.theme-new-b .ac .ac-table .ac-num,.theme-new-b .ac .ac-table th.ac-num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;}
.theme-new-b .ac .ac-table .ac-act{text-align:right;white-space:nowrap;}

/* ---- people list (admins, users, devices) ---- */
.ac-people{list-style:none;margin:0;padding:0;}
.ac-person{display:grid;grid-template-columns:1fr auto;gap:var(--s-1) var(--s-4);padding:var(--s-3) 0;border-top:1px solid var(--line-soft);align-items:start;}
.ac-person:first-child{border-top:0;padding-top:0;}
.ac-person-name{font-weight:500;display:flex;align-items:center;gap:var(--s-2);flex-wrap:wrap;min-width:0;}
.ac-person-meta{font-size:var(--fs-13);color:var(--muted);overflow-wrap:anywhere;}
.ac-person-acts{display:flex;gap:var(--s-2);align-items:center;flex-wrap:wrap;justify-content:flex-end;}
.ac-person-body{grid-column:1 / -1;}
.ac-devices{list-style:none;margin:var(--s-2) 0 0;padding:0;border:1px solid var(--line-soft);border-radius:var(--r-6);background:var(--surface-2);}
.ac-device{display:flex;align-items:center;justify-content:space-between;gap:var(--s-3);padding:var(--s-2) var(--s-3);border-top:1px solid var(--line-soft);font-size:var(--fs-13);}
.ac-device:first-child{border-top:0;}
.ac-device-name{min-width:0;overflow-wrap:anywhere;}
.ac-empty{padding:var(--s-4);border:1px dashed var(--line);border-radius:var(--r-6);color:var(--muted);font-size:var(--fs-13);text-align:center;}
.ac-serial-row{display:flex;align-items:center;gap:var(--s-2);flex-wrap:wrap;}
.theme-new-b .ac .ac-copy{min-height:28px;padding:0 var(--s-2);font-size:var(--fs-12);}

/* ---- seat meter ---- */
.ac progress.ac-meter{display:block;width:100%;height:6px;margin:var(--s-2) 0;border:0;border-radius:var(--r-6);overflow:hidden;background:var(--line-soft);-webkit-appearance:none;appearance:none;}
.ac progress.ac-meter::-webkit-progress-bar{background:var(--line-soft);border-radius:var(--r-6);}
.ac progress.ac-meter::-webkit-progress-value{background:var(--brand);border-radius:var(--r-6);}
.ac progress.ac-meter::-moz-progress-bar{background:var(--brand);border-radius:var(--r-6);}
.ac progress.ac-meter.is-full::-webkit-progress-value{background:var(--warn);}
.ac progress.ac-meter.is-full::-moz-progress-bar{background:var(--warn);}

/* ---- invoice/plan summaries ---- */
.ac-plan{display:flex;align-items:center;gap:var(--s-3);}
.ac-plan img{width:32px;height:32px;flex:0 0 auto;}
.ac-plan-name{font-size:var(--fs-16);font-weight:600;}
.ac-kv{display:flex;justify-content:space-between;gap:var(--s-4);padding:var(--s-2) 0;border-top:1px solid var(--line-soft);}
.ac-kv:first-child{border-top:0;}
.ac-kv .ac-k{color:var(--muted);font-size:var(--fs-13);}

/* ---- auth pages (sign-in, reset) ---- */
.ac-auth{max-width:440px;margin:var(--s-4) auto 0;}
.ac-auth .ac-card{padding:var(--s-6);}
.ac-auth .ac-btn{width:100%;}
.ac-auth-foot{margin-top:var(--s-4);text-align:center;font-size:var(--fs-13);color:var(--muted);}

/* ---- confirm pages ---- */
.ac-confirm{max-width:520px;}

/* ---- responsive ---- */
@media (max-width:767px){
  .ac{padding:var(--s-4) var(--s-4) var(--s-8);}
  .ac-grid-2,.ac-grid-3{grid-template-columns:1fr;}
  .ac-span-2{grid-column:auto;}
  .ac-card{padding:var(--s-4);}
  .ac-nav{position:static;margin:0;padding:0;}
  .ac-nav ul{flex-direction:column;gap:0;border:1px solid var(--line-soft);border-radius:var(--r-8);background:var(--surface);overflow:visible;}
  .ac-nav li+li{border-top:1px solid var(--line-soft);}
  .theme-new-b .ac .ac-nav a{display:flex;width:100%;border-bottom:0;margin:0;border-radius:0;padding:0 var(--s-4);}
  .theme-new-b .ac .ac-nav a[aria-current=page]{background:var(--tint);box-shadow:inset 3px 0 0 var(--brand);}
  .ac-status{grid-template-columns:repeat(2,minmax(0,1fr));}
  .ac-tile-v{font-size:var(--fs-20);}
  .ac-facts{grid-template-columns:1fr;gap:var(--s-1);}
  .theme-new-b .ac .ac-facts dt{margin-top:var(--s-2);}
  .ac-person{grid-template-columns:1fr;}
  .ac-person-acts{justify-content:flex-start;}
}
@media (max-width:420px){
  .ac-status{grid-template-columns:1fr;}
}
@media (prefers-reduced-motion:reduce){
  .ac *,.ac *::before,.ac *::after{transition:none!important;animation:none!important;scroll-behavior:auto!important;}
}

/* ---- legacy: pages not yet rebuilt (upgrade/change plan, pre-payment, referrals, confirm email, first user) ----
   These pages still use app.css + account.two-one.css markup (.cta-btn, .form_box, .in5-section). Only the 2026-10-03 fixes they need are kept here, token-based. */
.ac-legacy .cta-btn,.ac-legacy a.cta-btn,.ac-legacy button.cta-btn,.ac-legacy input[type=submit].cta-btn{font-family:var(--font);font-size:var(--fs-14);font-weight:600;padding:var(--s-2) var(--s-5);min-height:44px;line-height:1.3;color:var(--white);background-color:var(--brand);border:1px solid var(--brand);border-radius:var(--r-6);text-decoration:none;display:inline-flex;align-items:center;justify-content:center;}
.ac-legacy .cta-btn:hover{background-color:var(--brand-strong);border-color:var(--brand-strong);color:var(--white);}
.ac-legacy .cta-btn.cta-lite,.ac-legacy label.cta-btn.cta-lite{background:var(--surface);color:var(--brand-strong);border:1px solid var(--line);cursor:pointer;}
.ac-legacy .cta-btn.cta-lite:hover{background:var(--tint);}
.ac-legacy input[type=radio]:checked+label.cta-btn.cta-lite{background:var(--brand);color:var(--white);border-color:var(--brand);}
.theme-new-b .ac-legacy h2,.theme-new-b .ac-legacy h3{font-size:var(--fs-20);text-align:left;line-height:1.3;margin:var(--s-4) 0 var(--s-2);}
.theme-new-b .ac-legacy h4,.theme-new-b .ac-legacy h5{font-size:var(--fs-16);text-align:left;text-transform:none;color:var(--ink);line-height:1.3;}
.theme-new-b .ac-legacy p,.theme-new-b .ac-legacy li,.theme-new-b .ac-legacy label{font-size:var(--fs-14);line-height:1.5;}
.theme-new-b .ac-legacy a:not(.cta-btn){font-size:inherit;color:var(--brand-strong);}
.ac-legacy .form_box,.ac-legacy .form-box{background:var(--surface);border:1px solid var(--line-soft);border-radius:var(--r-8);padding:var(--s-5);}
.theme-new-b .ac-legacy .checked,.theme-new-b .ac-legacy li.checked{color:var(--off-text);opacity:1;}

/* ---- small behaviours the rebuilt pages rely on (were in account.two-one.css) ---- */
.ac .stepped-sections>section{display:none;}
.ac .stepped-sections>section.active{display:block;}
.ac .hidden{display:none;}
/* admin modals: colorbox moves these nodes out of the page container, so they carry .ac themselves */
.ac.ac-modal{max-width:none;margin:0;padding:0;}
.ac.ac-modal h2{margin-bottom:var(--s-2);}
/* issue 113: the dialog shell carries 40 px side padding that the dialog script does not count, so on a phone the box ran past the right edge. Under 560 px the side padding goes; the form keeps its own. */
@media (max-width:560px){html body #colorbox.new-overlay{padding-left:0;padding-right:0;max-width:100vw;}}
