/* 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;overflow-y:hidden;}   /* CB.32: the tabs' -1px margin made the strip 1 px taller than itself → a scrollbar on a four-tab strip (issue 189 VIS-03) */
.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);}   /* CB.32 rule 47: one card surface per grid — the soft tone read as a disabled state (Tim 2026-10-22, issue 230 #1 / issue 189 VIS-02) */
.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:minmax(0,1fr);}   /* CB.28: 1fr = minmax(auto,1fr) let the invoices table widen the page to 430 px at 375 */
  .ac-span-2{grid-column:auto;}
  .ac-card{padding:var(--s-4);}
  /* BZ 2026-10-18: on a phone the four sections stay one horizontal, scrollable tab row (one shape per job: the partner portal's nav), never four stacked rows */
  .ac-nav{position:sticky;top:0;margin:0 calc(-1 * var(--s-4));padding:0 var(--s-4);}
  .ac-nav ul{flex-direction:row;gap:var(--s-1);border-bottom:1px solid var(--line);overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;}
  .ac-nav ul::-webkit-scrollbar{display:none;}
  .theme-new-b .ac .ac-nav a{white-space:nowrap;}
  .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:repeat(2,minmax(0,1fr));}   /* BZ: 2×2 on a phone, never 4 stacked */
  .ac-status-1{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;}}

/* 2026-10-17: utilities for the sign-in door (the rebuilt pages carry no inline style) */
.ac .ac-mt4{margin:4px 0 0}.ac .ac-mt6{margin:6px 0 0}.ac .ac-mt8{margin:8px 0 0}.ac .ac-mt10{margin-top:10px}.ac .ac-mt14{margin-top:14px}.ac .ac-mb16{margin-bottom:16px}.ac .ac-pointer{cursor:pointer}.ac .ac-inline{display:inline}.ac .ac-h3-tight{font-size:16px;margin:0 0 6px}.ac .ac-linkbtn{background:none;border:0;padding:0;color:inherit;text-decoration:underline;cursor:pointer;font:inherit}
.ac-status-1{grid-template-columns:minmax(0,420px);}
.ac-section-h{font-size:var(--fs-20);margin:var(--s-5) 0 var(--s-3);padding-top:var(--s-4);border-top:1px solid var(--line-soft);}
/* BZ.1 2026-10-18: the slim band inside the signed-in account (the partner portal's shape) */
.ac-band{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;padding:10px 16px;border-bottom:1px solid var(--line-soft);background:var(--surface);}
.ac-band-logo{font-weight:700;font-size:18px;color:var(--brand);text-decoration:none;letter-spacing:-.01em;}
.ac-band-title{flex:1 1 auto;color:var(--muted);font-size:14px;}
.theme-new-b .ac-band-out{font-size:14px;color:var(--ink);}
body.has-submenu #content{padding-top:0;}
/* BZ.1 2026-10-18: the one-line footer inside the signed-in account (the checkout/partner shape; rules copied from partners.css lines 196-199) */
.theme-new-b footer.footer-minimal{background:transparent;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;gap:8px 24px;padding:24px;border-top:1px solid var(--line-soft);margin-top:24px}
.theme-new-b footer.footer-minimal span,.theme-new-b footer.footer-minimal a{color:var(--muted);font-size:13px;line-height:1.5;text-decoration:none}
.theme-new-b footer.footer-minimal a:hover,.theme-new-b footer.footer-minimal a:focus{color:var(--ink);text-decoration:underline}

/* BZ.5 2026-10-18 (in5-docs 230, screens): the legacy section wrapper carried 64px of top padding inside an already-padded card — 24px on desktop, 12px on a phone */
.theme-new-b .ac-legacy .auth-section,.theme-new-b .ac-legacy .in5-section{padding-top:var(--s-6)}
@media (max-width:600px){.theme-new-b .ac-legacy .auth-section,.theme-new-b .ac-legacy .in5-section{padding-top:var(--s-3)}}
.ac-band-via{font-weight:400;color:var(--muted);}   /* CB.28: the management state in the identity line */
@media (max-width:767px){.theme-new-b .ac .ac-table th,.theme-new-b .ac .ac-table td,.theme-new-b .ac .ac-table .ac-num,.theme-new-b .ac .ac-table .ac-act{white-space:normal;}.theme-new-b .ac .ac-table .ac-act .ac-btn{white-space:nowrap;}.theme-new-b .ac .ac-table-wrap{overflow-x:auto;max-width:100%;}}   /* CB.28 (issue 176): the invoices table wraps its words on a phone; 405 px of nowrap cells had widened the page to 430 at 375 */
/* CB.30 (Tim 2026-10-22 19:38, D1): the renewal status stays on the tile; its control is muted — smaller, quieter, never at the weight of the facts */
.theme-new-b .ac .ac-tile-a a:not(.ac-btn){font-size:var(--fs-12);color:var(--muted);text-decoration:none;border-bottom:1px solid var(--line);}
.theme-new-b .ac .ac-tile-a a:not(.ac-btn):hover,.theme-new-b .ac .ac-tile-a a:not(.ac-btn):focus{color:var(--ink);border-bottom-color:var(--ink);}

/* ===== CB.32 2026-10-23 — the rendered-defects train (in5-docs issue 230 F1–F4 + bundle, issue 189 VIS-01…06, rules 36/47/48) ===== */
/* F1 / VIS-04: the public pages' sizing sheet sets `.theme-new-b h2 {23px !important}` above 744 px and out-sized the card headings; the in-app scale is page title 24 › section head 20 › card heading 16 › sub-heading 14 */
.theme-new-b .ac h1{font-size:var(--fs-24) !important;}
.theme-new-b .ac h2{font-size:var(--fs-16) !important;}
.theme-new-b .ac h3{font-size:var(--fs-14) !important;}
.theme-new-b .ac .ac-section-h,.theme-new-b .ac h2.ac-section-h{font-size:var(--fs-20) !important;}
/* VIS-01: `.ac-card + .ac-card` spacing was meant for stacked cards and leaked into the grid, pushing every second card down 16 px */
.ac-grid > .ac-card + .ac-card{margin-top:0;}
/* F4 / rule 36: standalone action links are 21 px tall at 14 px — padding carries them to 25; the muted renewal control (12 px) to 24. Mute by colour and weight, never by hit area. */
.theme-new-b .ac .ac-card-foot a:not(.ac-btn),.theme-new-b .ac .ac-actions a:not(.ac-btn),.theme-new-b .ac .ac-plain li > a,.theme-new-b .ac .ac-head-row a,.theme-new-b .ac .ac-facts dd a,.theme-new-b .ac .ac-note a,.theme-new-b .ac .ac-cap a{display:inline-block;padding:2px 0;}
.theme-new-b .ac .ac-tile-a a:not(.ac-btn){display:inline-block;padding:3px 0;line-height:1.5;}
/* VIS-05: the dialog script fixed the content height before the webfont and the note had wrapped, clipping the button's bottom edge */
#cboxLoadedContent,#cboxContent{height:auto !important;overflow:visible !important;}
#cboxLoadedContent .ac.ac-modal{padding-bottom:4px;}
/* rule 48: one button grammar — a primary is sized to its label; the legacy first-user button was the card's whole measure */
.theme-new-b .ac-legacy .cta-btn,.theme-new-b .ac-legacy input[type=submit].cta-btn{width:auto;min-width:0;}
/* phone (≤ 767): 44 px controls (the account nav was 40 and hid its fourth tab behind a scroll; buttons and fields follow the token), the nav wraps instead of scrolling (mandate 4) */
@media (max-width:767px){
  .theme-new-b .ac{--ctl-h:44px;}
  .ac-nav ul{flex-wrap:wrap;overflow:visible;}
  .ac-nav li{flex:1 1 40%;}   /* two tabs per row at phone width */
  .theme-new-b .ac .ac-actions a:not(.ac-btn),.theme-new-b .ac .ac-card-foot a:not(.ac-btn),.theme-new-b .ac .ac-plain li > a{display:inline-flex;align-items:center;min-height:44px;padding:0;}
  .theme-new-b .ac .ac-nav a{width:100%;justify-content:center;min-height:44px;}
  .theme-new-b .ac .ac-btn-sm,.theme-new-b .ac a.ac-btn-sm{min-height:44px;}
  /* F3: the prepay page's legacy summary table widened the page at 390 */
  .theme-new-b .ac table.narrow,.theme-new-b .ac #account_info{width:100%;max-width:100%;table-layout:fixed;}
  .theme-new-b .ac #account_info td,.theme-new-b .ac #account_info th,.theme-new-b .ac table.narrow td{white-space:normal;overflow-wrap:anywhere;}
  html body #colorbox.new-overlay{left:8px !important;max-width:calc(100vw - 16px) !important;}
}
/* CB.32 F3 (issue 230): the prepay page's account box is a 112px + 1fr grid whose 1fr track grew to the e-mail's width and pushed the page to 403 px at 375 */
.theme-new-b .auth-section .inner-container .account-info{grid-template-columns:112px minmax(0,1fr) !important;}
.theme-new-b .auth-section .inner-container .account-info .account-info-row,.theme-new-b .auth-section .inner-container .account-info .account-info-row > div{min-width:0;max-width:100%;overflow-wrap:anywhere;}
@media (max-width:767px){.theme-new-b .auth-section .inner-container .account-info{grid-template-columns:88px minmax(0,1fr) !important;}}

/* CB.32c 2026-10-23 07:4x — the new census guard (standalone-targets-24px) found the last sub-24 actions: table row actions (invoices "View" 20 px, people "Deactivate" 21 px).
   Rule 36: operator-table rows run >= 28 px so the row action clears the floor without a visible density change (the partner tables got the same in BY.9). */
.theme-new-b .ac .ac-table tbody td{height:28px;vertical-align:middle;}
.theme-new-b .ac .ac-table td a:not(.ac-btn){display:inline-block;padding:3px 0;line-height:1.5;}
.theme-new-b .ac .ac-device > a,.theme-new-b .ac .ac-person-body .ac-link-danger{display:inline-block;padding:3px 0;line-height:1.5;}   /* CB.32c: the device row Deactivate link measured 21 px */

/* ===== CB.33 2026-10-23 — the build session's own browser walk ===== */
.theme-new-b .ac h2.ac-section-h,.theme-new-b .ac .ac-section-h{margin:var(--s-6,24px) 0 var(--s-3,12px) !important;}   /* "Billing" sat flush against the cards above and below */
.theme-new-b .ac .ac-facts .ac-serial-row{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;}
.theme-new-b .ac .ac-facts .ac-serial-row .ac-btn-sm{min-height:28px;padding:2px 10px;}
.theme-new-b .ac footer a,.theme-new-b .ac .footer-minimal a{display:inline-block;padding:3px 0;line-height:1.5;}   /* footer legal links were 19.5 px tall */

/* CB.38 2026-10-23 (reviewer harness class on in5-docs 230: "out-of-view-after-scroll" on the Pre-payment page): the public site's app.css sets html{scroll-behavior:smooth}, so a programmatic scroll finishes after the call returns and a control measured at once is still below the fold. A work app scrolls at once; reduced-motion users already had this. */
html{scroll-behavior:auto}
