/* Agentic Pentest: the Clarity design system.
   Visual reference: docs/design/mockups/ (B2-*, B-Space). Light theme only; fonts and images are
   self-hosted under /static/ (strict CSP, no third-party requests).
   Sections: 1 fonts, 2 tokens, 3 base, 4 layout primitives, 5 components, 6 page layouts,
   7 responsive, 8 page styles (staff, public, order flow, client space, reports). */

/* ======== 1. fonts ======== */
/* Inter, latin and latin-ext subsets (SIL OFL 1.1, /static/fonts/OFL.txt): one variable font file
   per subset covers every weight used (400-700). latin-ext carries the Central European letters
   (ș, ț, ă, ł, ő). Headings ask for Inter Tight first, so it is used as soon as its files are
   added here. */
@font-face{font-family:"Inter";font-style:normal;font-weight:400 700;font-display:swap;src:url(/static/fonts/inter-latin.woff2?v=3100e775e8) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Inter";font-style:normal;font-weight:400 700;font-display:swap;src:url(/static/fonts/inter-latin-ext.woff2?v=34b9c504ca) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* ======== 2. tokens ======== */
:root{
  --ink:#101828; --text:#344054; --muted:#475467; --subtle:#667085;
  --line:#eaecf0; --line-strong:#d0d5dd; --field-line:#667085;
  --page:#ffffff; --wash:#f9fafb; --sunk:#f2f4f7;
  --navy:#1c2431; --navy-2:#2e3849; --on-navy-muted:#b9c2d0; --navy-text:#c5ccd6; --navy-rule:#3a4658;
  --action:#c8352a; --action-hover:#b02e24;
  --link:#0b5d8a; --link-hover:#08466a;
  --run:#0b7f73; --run-tint:#e6f4f1; --run-ink:#0b6b61;
  --slate:#3538cd; --slate-tint:#eef4ff;
  --warn:#b54708; --warn-tint:#fffaeb; --warn-bar:#d9a36f;
  --ok:#067647; --ok-tint:#ecfdf3;
  --crit:#b42318; --crit-tint:#fef3f2; --crit-hover:#912018; --crit-line:#fecdca;
  --radius-card:16px; --radius-field:12px; --radius-pill:999px;
  --font-body:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --font-display:"Inter Tight", "Inter", system-ui, sans-serif;
  --font-mono:ui-monospace,"SFMono-Regular",Consolas,monospace;
  --focus-ring:0 0 0 4px #eaf1fb;
  --shadow:0 1px 2px rgb(16 24 40/.05),0 12px 32px -16px rgb(16 24 40/.18);
  --shadow-lift:0 2px 4px rgb(16 24 40/.06),0 24px 48px -20px rgb(16 24 40/.28);
  --action-tint:#fdf0ee; --on-navy:#e7ebf2; --purple:#5b34b5; --purple-tint:#f3eefe;
}

/* ======== 3. base ======== */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;color-scheme:light}
body{margin:0;min-height:100vh;display:flex;flex-direction:column;background:var(--page);color:var(--ink);font-family:var(--font-body);font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased;overflow-wrap:break-word}
body.body-app{font-size:15px;line-height:1.55;background:var(--wash)}
body.body-system{background:var(--sunk)}
main{flex:1}
main[tabindex="-1"]:focus{outline:none}
h1,h2,h3,h4,p{margin:0}
h1,h2,h3,h4{color:var(--navy);line-height:1.2;text-wrap:balance}
h1,.display{font-family:var(--font-display);font-weight:700;letter-spacing:-.02em}
h2,h3,h4{font-weight:600}
img{max-width:100%}
a{color:var(--link);text-decoration:none}
a:hover{color:var(--link-hover);text-decoration:underline}
:focus-visible{outline:2px solid var(--link);outline-offset:2px;box-shadow:var(--focus-ring)}
input,select,textarea,button{font:inherit}
input[type=checkbox],input[type=radio]{accent-color:var(--navy)}
/* above the sticky bars (public header 30, space top bar 20) and the phone drawer (40) */
.skip{position:absolute;left:-9999px;top:8px;z-index:60;background:var(--page);color:var(--navy);padding:10px 14px;border-radius:10px;font-weight:600}
.skip:focus{left:8px}
.truncate{display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.muted{color:var(--subtle)}
/* safety net for elements ui.js toggles with the hidden attribute: a component's display rule must not show them */
[hidden]{display:none !important}

/* ======== 4. layout primitives ======== */
.container{max-width:1200px;margin:0 auto;padding:0 24px;width:100%}
.section{padding:72px 0}
.section-wash{background:var(--wash);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.section-title{font-family:var(--font-display);font-weight:700;font-size:40px;letter-spacing:-.02em;text-align:center;margin-bottom:40px}
.stack{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;align-content:start}
/* a wide table or a long name scrolls inside its card instead of widening the page */
.stack>*,.grid-2>*{min-width:0}
.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.grid-auto{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px}
.split{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:24px;align-items:start}

/* ======== 5. components ======== */
/* brand: logo, 1 px rule, product name */
.brand{display:inline-flex;align-items:center;gap:14px;color:var(--navy);flex:none}
.brand:hover{text-decoration:none;color:var(--navy)}
.brand-logo{display:block;height:34px;width:auto}
.brand-name{border-left:1px solid var(--line-strong);padding-left:14px;font-family:var(--font-display);font-weight:700;font-size:15px;letter-spacing:-.01em;color:var(--navy);white-space:nowrap}
.brand-white,.brand-white:hover{color:#fff}
.brand-white .brand-name{border-left-color:var(--navy-rule);color:#fff}

/* buttons: pill-shaped, 44 px touch target */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 20px;border:1px solid transparent;border-radius:var(--radius-pill);font-family:inherit;font-size:15px;font-weight:600;line-height:1.2;text-align:center;white-space:nowrap;cursor:pointer;text-decoration:none}
.btn:hover{text-decoration:none}
.btn[aria-disabled="true"]{cursor:progress;opacity:.75}
.btn.is-busy::after{content:"";width:14px;height:14px;box-sizing:border-box;border:2px solid currentColor;border-right-color:transparent;border-radius:50%}
@media (prefers-reduced-motion:no-preference){.btn.is-busy::after{animation:rot .8s linear infinite}}
@media (prefers-reduced-motion:reduce){.btn.is-busy::after{animation:none}}
.confirm>summary{list-style:none}
.confirm>summary::-webkit-details-marker{display:none}
.confirm[open]>summary{margin-bottom:10px}
.confirm-body{display:grid;gap:10px}
.btn-primary{background:var(--action);color:#fff}
.btn-primary:hover{background:var(--action-hover);color:#fff}
.btn-secondary{background:var(--page);border-color:var(--field-line);color:var(--navy)}
.btn-secondary:hover{background:var(--wash);border-color:var(--subtle);color:var(--navy)}
.btn-navy{background:var(--navy);color:#fff}
.btn-navy:hover{background:var(--navy-2);color:#fff}
.btn-danger{background:var(--crit);color:#fff}
.btn-danger:hover{background:var(--crit-hover);color:#fff}
.btn-ghost{background:transparent;color:var(--link);padding:0 10px}
.btn-ghost:hover{background:var(--sunk);color:var(--link-hover)}
.btn-on-navy{background:transparent;border-color:var(--navy-rule);color:#fff}
.btn-on-navy:hover{background:var(--navy-2);color:#fff}
.btn-sm{min-height:36px;padding:0 14px;font-size:14px}
.btn-lg{min-height:50px;padding:0 24px;font-size:16px}
.btn-block{display:flex;width:100%}
.btn[disabled],.btn[aria-disabled="true"]{opacity:.5;cursor:not-allowed}
.btn:focus-visible{outline:2px solid var(--link);outline-offset:2px;box-shadow:var(--focus-ring)}

/* cards */
.card{min-width:0;background:var(--page);border:1px solid var(--line);border-radius:var(--radius-card);padding:24px}
.card-flush{padding:0;overflow:hidden}
.card-title{font-size:18px;font-weight:600;color:var(--navy);margin:0 0 12px}
.card-danger{border-color:var(--crit-line)}

/* pills: status and channel */
.pill{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:var(--radius-pill);font-size:13px;font-weight:600;line-height:1.4;white-space:nowrap}
.pill-run{background:var(--run-tint);color:var(--run-ink)}
.pill-slate{background:var(--slate-tint);color:var(--slate)}
.pill-warn{background:var(--warn-tint);color:var(--warn)}
.pill-ok{background:var(--ok-tint);color:var(--ok)}
.pill-crit{background:var(--crit-tint);color:var(--crit)}
.pill-neutral{background:var(--sunk);color:var(--text)}

/* form fields */
.field{display:flex;flex-direction:column;gap:6px}
.field-label{font-size:15px;font-weight:500;color:var(--ink)}
.field-hint{font-size:13px;font-weight:400;color:var(--subtle)}
.field-error{font-size:13px;font-weight:500;color:var(--crit)}
.input{width:100%;min-height:44px;padding:0 14px;border:1px solid var(--field-line);border-radius:var(--radius-field);background:var(--page);color:var(--ink);font-family:inherit;font-size:16px;line-height:1.4}
textarea.input{min-height:96px;padding:10px 14px;line-height:1.5;resize:vertical}
select.input{padding-right:10px}
.input:focus{outline:2px solid var(--link);outline-offset:0;border-color:var(--link);box-shadow:var(--focus-ring)}
.input[aria-invalid="true"]{border-color:var(--crit)}
.input[readonly]{background:var(--sunk)}
.code-input{min-height:64px;padding:0 18px;font-family:var(--font-mono);font-size:30px;letter-spacing:.5em;font-variant-numeric:tabular-nums;color:var(--navy)}

/* tables: scroll inside their box on a phone. Positioned, so absolutely positioned
   (visually hidden) header text is clipped by it instead of widening the page */
.table-wrap{position:relative;overflow-x:auto;-webkit-overflow-scrolling:touch;background:var(--page);border:1px solid var(--line);border-radius:14px}
.table{width:100%;border-collapse:collapse;font-size:14px}
.table th{text-align:left;padding:12px 16px;border-bottom:1px solid var(--line);color:var(--subtle);font-size:13px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap}
.table td{padding:14px 16px;border-bottom:1px solid var(--sunk);vertical-align:middle}
.table tr:last-child td{border-bottom:0}
.num{font-variant-numeric:tabular-nums;text-align:right}

/* order steps (mockup B2-Order); .bar is the old connector, no longer drawn */
.stepper{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:10px;font-size:14px}
.stepper .s{display:flex;align-items:center;gap:8px;padding:6px 14px 6px 6px;border:1px solid var(--line);border-radius:var(--radius-pill);background:var(--page);color:var(--muted)}
.stepper .s i{font-style:normal;width:24px;height:24px;border-radius:50%;background:var(--sunk);display:grid;place-items:center;font-size:12px;font-weight:700}
.stepper .s.on{background:var(--navy);border-color:var(--navy);color:#fff}
.stepper .s.on i{background:#fff;color:var(--navy)}
.stepper .s.done i{background:var(--run-tint);color:var(--run-ink)}
.stepper .bar{display:none}

/* client space menu (menus spec, client space A): New order, then the groups "Your work" and
   "Your company"; the current page is tinted, with a red marker on its left edge */
.side-nav{display:flex;flex-direction:column;gap:18px;font-size:14.5px;font-weight:500}
.side-grp{display:flex;flex-direction:column;gap:2px;min-width:0}
.side-grp-h{padding:6px 12px 4px;font-size:11.5px;font-weight:700;color:var(--subtle);white-space:nowrap}
.side-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.side-nav a{position:relative;display:flex;align-items:center;gap:11px;min-height:44px;padding:0 12px;border-radius:10px;color:var(--text);white-space:nowrap}
.side-nav a:hover{background:var(--wash);color:var(--navy);text-decoration:none}
.side-nav a[aria-current="page"]{background:var(--sunk);color:var(--ink);font-weight:600;box-shadow:inset 3px 0 0 var(--action)}
.side-label{min-width:0;overflow:hidden;text-overflow:ellipsis}
/* the number of "Needs your attention" entries, next to Services */
.side-count{margin-left:auto;padding:1px 7px;border-radius:var(--radius-pill);background:var(--action-tint);color:var(--action);font-size:11.5px;font-weight:700;line-height:1.5;font-variant-numeric:tabular-nums}

/* admin tabs on the navy bar */
/* the tabs wrap onto a second line on a narrow screen rather than scroll inside themselves */
.admin-tabs{display:flex;flex-wrap:wrap;gap:4px;font-size:14px;min-width:0}
.admin-tabs a{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 12px;border-radius:8px;color:var(--navy-text);white-space:nowrap}
.admin-tabs a:hover{background:var(--navy-2);color:#fff;text-decoration:none}
.admin-tabs a[aria-current="page"]{background:var(--navy-2);color:#fff}
.count-badge{display:inline-block;min-width:20px;padding:1px 7px;border-radius:var(--radius-pill);background:var(--action);color:#fff;font-size:12px;font-weight:600;line-height:1.4;text-align:center}
.count-badge-crit{background:var(--crit)}
.badge-staff{padding:3px 8px;border-radius:6px;background:var(--navy-2);color:var(--navy-text);font-size:12px;font-weight:700;letter-spacing:.08em}

/* navy panel (sign-in screens, "Larger scopes" card) */
.panel-navy{background:var(--navy);color:#fff}
.panel-navy h1,.panel-navy h2,.panel-navy h3{color:#fff}
.panel-navy p{color:var(--navy-text)}
.panel-navy a:not(.btn){color:#fff}

/* alerts and empty states */
.alert{display:flex;gap:10px;padding:12px 16px;border-radius:12px;font-size:14px;background:var(--wash);border:1px solid var(--line);color:var(--muted)}
.alert-slate{background:var(--slate-tint);border-color:transparent;color:var(--slate)}
.alert-warn{background:var(--warn-tint);border-color:transparent;color:var(--warn)}
.alert-ok{background:var(--ok-tint);border-color:transparent;color:var(--ok)}
.alert-crit{background:var(--crit-tint);border-color:transparent;color:var(--crit)}
.alert a{color:inherit;font-weight:600;text-decoration:underline}
.empty-state{display:grid;gap:4px;justify-items:center;text-align:center;padding:32px 16px}
.empty-state-title{font-weight:600;color:var(--navy)}
.empty-state-text{color:var(--subtle);font-size:14px;max-width:46ch}

/* ======== 6. page layouts ======== */
/* public (mockup B2-Public; menus spec, landing A): the header stays at the top while the page
   scrolls, white with a light blur. Past 40 px ui.js adds .scrolled: shorter, a hairline and a
   soft shadow. The link of the landing section in view has aria-current="true" (red underline) */
.site-header{position:sticky;top:0;z-index:30;background:rgb(255 255 255/.96);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid transparent}
.site-header.scrolled{border-bottom-color:var(--line);box-shadow:0 8px 24px -18px rgb(16 24 40/.35)}
.site-header-in{display:flex;flex-wrap:wrap;align-items:center;gap:0 18px;min-height:76px}
.site-header.scrolled .site-header-in{min-height:60px}
.site-nav{display:flex;align-items:center;gap:4px;margin-left:auto;font-size:14.5px}
.site-nav-link{position:relative;padding:8px 12px;border-radius:var(--radius-pill);color:var(--text);font-weight:500}
.site-nav-link:hover{background:var(--sunk);color:var(--ink);text-decoration:none}
.site-nav-link[aria-current="true"]{color:var(--ink);font-weight:600}
.site-nav-link[aria-current="true"]::after{content:"";position:absolute;left:12px;right:12px;bottom:2px;height:2px;border-radius:2px;background:var(--action)}
.site-cta{display:flex;align-items:center;gap:8px}
.site-burger{display:none;align-items:center;justify-content:center;flex:none;width:44px;height:44px;padding:0;border:1px solid var(--line-strong);border-radius:12px;background:var(--page);color:var(--ink);cursor:pointer}
.site-burger:hover{background:var(--wash)}
/* without JS (no drawer): the links as a plain row under the bar, on phones only */
.site-header-in>noscript{flex:0 0 100%}
.site-nav-plain{display:none}
.site-nav-plain a{padding:6px 0;color:var(--text);font-weight:500}
.site-nav-plain a:hover{color:var(--ink);text-decoration:none}
/* an open drawer (the landing one, the client space's phone menu): the page under it stays put */
html.menu-locked{overflow:hidden}
/* the phone drawer: a panel from the top over a dimmed page */
.site-drawer{position:fixed;inset:0;z-index:40}
.site-drawer-backdrop{position:absolute;inset:0;background:rgb(16 24 40/.45)}
.site-drawer-panel{position:relative;max-height:100%;overflow-y:auto;display:flex;flex-direction:column;padding:14px 16px 20px;background:var(--page);border-radius:0 0 18px 18px;box-shadow:var(--shadow-lift)}
.site-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;margin-bottom:6px}
.site-drawer-head .site-burger{display:inline-flex}
.site-drawer-nav{display:flex;flex-direction:column}
.site-drawer-nav a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:50px;padding:0 6px;border-bottom:1px solid var(--line);color:var(--ink);font-size:16px;font-weight:600}
.site-drawer-nav a:hover{background:var(--wash);color:var(--navy);text-decoration:none}
.site-drawer-nav a[aria-current="true"]{color:var(--action)}
.site-drawer-nav .icon{color:var(--subtle)}
.site-drawer-ctas{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px}
/* a jump to a section lands below the bar (76 px, 60 px once scrolled) */
.body-public main [id]{scroll-margin-top:76px}
.site-footer{border-top:1px solid var(--line);background:var(--page)}
.site-footer-in{display:flex;flex-wrap:wrap;align-items:center;gap:16px 20px;padding-top:28px;padding-bottom:28px;font-size:14px;color:var(--subtle)}
.site-footer-logo{height:24px;width:auto}
.site-footer-nav{display:flex;flex-wrap:wrap;gap:8px 20px;margin-left:auto}
.site-footer-nav a{color:var(--muted)}

/* sign-in split screen (mockups B2-SignIn, B2-Code) */
.auth{flex:1;display:flex;flex-wrap:wrap;min-height:100vh}
.auth-panel{flex:1 1 520px;display:flex;flex-direction:column;gap:40px;padding:40px 56px;background-image:radial-gradient(circle at 85% 15%,rgb(200 53 42/.18),transparent 40%)}
.auth-panel-body{margin:auto 0;max-width:460px;display:grid;gap:14px;font-size:16px}
.auth-panel-foot{font-size:13px;color:#8d98a8}
.panel-navy .auth-panel-foot{color:#8d98a8}
.auth-side{flex:1 1 520px;display:flex;flex-direction:column;gap:24px;padding:40px 56px}
.auth-top{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:6px;font-size:14px;color:var(--muted)}
.auth-top a{font-weight:600}
.auth-main{flex:none;margin:auto 0;width:100%;max-width:400px;align-self:center;display:grid;gap:18px}
.auth-foot{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 18px;font-size:13px}
.auth-foot a{color:var(--subtle)}
.auth-title{font-size:34px;line-height:1.15;letter-spacing:-.02em;font-family:var(--font-display)}
.auth-lead{font-size:16px}
.auth-bullets{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:14px;color:var(--navy-text)}
.auth-bullets li{display:flex;gap:12px}
.auth-tick{flex:none;margin-top:2px;color:#7fd8c9}
.auth-icon{width:56px;height:56px;border-radius:16px;background:var(--navy-2);color:#fff;display:grid;place-items:center;margin-bottom:8px}
.auth-form{display:grid;gap:18px}
.auth-heading{font-size:32px}
.auth-sub{color:var(--muted);margin-top:8px}
.auth-sub b{color:var(--navy);font-weight:600}
.auth-top:has(.auth-back){justify-content:flex-start}
.auth-top .auth-back{color:var(--muted);font-weight:400}
.auth-note{font-size:13px;color:var(--subtle)}
.auth-note a{font-weight:600}
.turnstile{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;font-size:13px;color:var(--muted)}
.turnstile svg{flex:none;color:var(--run)}
.or-rule{display:flex;align-items:center;gap:12px;color:var(--subtle);font-size:13px}
.or-rule::before,.or-rule::after{content:"";flex:1;height:1px;background:var(--line)}
.resend{display:grid;gap:10px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:var(--wash);font-size:14px;color:var(--muted)}
.resend b,.resend-left{color:var(--navy);font-weight:600}
.resend-left{font-variant-numeric:tabular-nums}

/* client space (mockups B-Space, B2-Order) */
.space{flex:1;display:flex;min-height:100vh}
/* the column stretches with the page (its white background and rule run the full height);
   its content sticks under the top of the window */
.space-menu{flex:0 0 260px;background:var(--page);border-right:1px solid var(--line)}
.space-menu-in{position:sticky;top:0;height:100vh;overflow-x:hidden;overflow-y:auto;display:flex;flex-direction:column;gap:20px;padding:22px 16px}
.space-menu .brand,.space-topbar .brand{flex-direction:column;align-items:flex-start;gap:6px}
.space-menu .brand-logo,.space-topbar .brand-logo{height:30px}
.space-menu .brand-name,.space-topbar .brand-name{border-left:0;padding-left:0;font-size:14px}
.space-body{flex:1;min-width:0;display:flex;flex-direction:column}
.space-topbar{display:none}
.app-bar-out{flex:none}
.app-bar-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.side-nav .icon{width:20px;height:20px}
.acct-head .truncate{display:block}
.space-main{flex:1;min-width:0;padding:32px 40px 56px}
/* anchor targets clear the sticky top bar (64 px) */
.space-main [id]{scroll-margin-top:80px}
/* Collapse menu, at the foot of the column: the icon rail (72 px, class is-rail, see
   layouts/space.html). Labels and group headings are visually hidden, not removed, so the links
   keep their names; title gives the tooltip. The count moves to the icon's corner */
.side-collapse{margin-top:auto;display:flex;align-items:center;gap:10px;min-height:40px;padding:0 12px;border:0;border-radius:10px;background:transparent;color:var(--subtle);font-size:13.5px;font-weight:500;text-align:left;white-space:nowrap;cursor:pointer}
.side-collapse:hover{background:var(--wash);color:var(--navy)}
.brand-mark{display:none}
.space-menu.is-rail{flex-basis:72px}
.space-menu.is-rail .space-menu-in{padding:22px 12px}
.is-rail .side-label,.is-rail .side-grp-h,.is-rail .brand-name{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.is-rail .brand{align-items:center}
.is-rail .brand-logo{display:none}
.is-rail .brand-mark{display:block;width:auto;height:30px}
.is-rail .side-new{width:44px;min-height:44px;padding:0;align-self:center}
.is-rail .side-nav a,.is-rail .side-collapse{justify-content:center;padding:0}
.is-rail .side-grp+.side-grp{padding-top:16px;border-top:1px solid var(--line)}
.is-rail .side-count{position:absolute;top:3px;right:3px;margin:0;min-width:18px;padding:0 5px;font-size:10.5px;line-height:16px;text-align:center}
.is-rail .side-collapse .icon{transform:rotate(180deg)}

/* staff (mockup B2-Admin) */
.admin-bar{background:var(--navy);color:#fff}
.admin-bar-in{max-width:1360px;margin:0 auto;padding:14px 24px;display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px}
.admin-bar .brand-logo{height:28px}
.admin-who{flex:1 1 160px;margin-left:auto;display:flex;justify-content:flex-end;align-items:center;gap:12px;min-width:0;color:var(--navy-text);font-size:13px}
.admin-main{width:100%;max-width:1360px;margin:0 auto;padding:28px 24px 56px}

/* errors and confirmations (mockup B2-States) */
.system{flex:1;display:grid;place-items:center;padding:40px 16px}
.system-card{width:100%;max-width:560px;display:flex;flex-direction:column;gap:16px;padding:36px;background:var(--page);border-radius:18px;box-shadow:var(--shadow)}
.system-card .brand-logo{height:26px}
.sys-code{margin-top:18px;font-family:var(--font-display);font-size:64px;font-weight:700;line-height:1;color:var(--line)}
.sys-title{font-size:24px}
.sys-text{color:var(--muted)}
.sys-ref{font-size:13px;color:var(--subtle)}
.sys-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}
.sys-icon{width:48px;height:48px;margin-top:18px;display:grid;place-items:center;border-radius:14px}
.sys-icon-warn{background:var(--warn-tint);color:var(--warn)}

/* staff sign-in (mockup B2-Staff) */
body.body-staff{background:#141b26;background-image:linear-gradient(rgb(255 255 255/.035) 1px,transparent 1px),linear-gradient(90deg,rgb(255 255 255/.035) 1px,transparent 1px);background-size:40px 40px}
.staff{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:28px;padding:40px 16px}
.staff-top{display:flex;align-items:center;gap:12px}
.staff-card{width:100%;max-width:440px;display:grid;gap:18px;padding:32px;background:var(--page);border-radius:20px;box-shadow:0 30px 70px -30px rgb(0 0 0/.6)}
.staff-form{display:grid;gap:18px}
.staff-heading{font-size:26px}
.staff-ident{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:12px;background:var(--sunk)}
.staff-avatar{flex:none;width:36px;height:36px;border-radius:50%;background:var(--navy);color:#fff;display:grid;place-items:center;font-weight:600;font-size:13px}
.staff-ident-text{min-width:0}
.staff-email{font-weight:600;color:var(--navy);overflow-wrap:anywhere}
.staff-foot{font-size:13px;color:#8d98a8}
.staff-foot a{color:#9ec5ff}

.inline-form{margin:0}

/* ======== 7. responsive ======== */
@media (prefers-reduced-motion:no-preference){.btn,.side-nav a,.admin-tabs a{transition:background-color .12s,border-color .12s,color .12s}}
@media (prefers-reduced-motion:no-preference){
  html:has(> body.body-public){scroll-behavior:smooth}
  .site-header{transition:box-shadow .2s,border-color .2s}
  .site-header-in{transition:min-height .2s}
  .space-menu{transition:flex-basis .2s}
}
@media (max-width:900px){
  .space{flex-direction:column}
  .space-menu{display:none}
  .space-topbar{display:flex;align-items:center;gap:12px;flex:none}
  .space-topbar .brand{flex-direction:row;align-items:center;gap:12px}
  .space-topbar .brand-name{display:none}
  .space-menu-mobile{position:static}
  .space-menu-mobile summary{list-style:none}
  .space-menu-mobile summary::-webkit-details-marker{display:none}
  .space-menu-drop{position:absolute;z-index:2;left:16px;right:16px;top:calc(100% + 8px);max-height:calc(100vh - 88px);max-height:calc(100dvh - 88px);overflow-y:auto;display:flex;flex-direction:column;gap:12px;padding:16px;background:var(--page);border:1px solid var(--line);border-radius:var(--radius-card);box-shadow:var(--shadow)}
  /* the open menu dims the page; a tap on the dimmed page lands on the summary and closes it */
  .space-menu-mobile[open]>summary::before{content:"";position:fixed;inset:0;z-index:1;background:rgb(16 24 40/.45);cursor:default}
  .space-main{padding:24px 16px 48px}
  .auth-panel,.auth-side{padding:32px 24px}
  .auth-panel{gap:24px}
}
/* the public header: under 820 px the links fold into the drawer (menus spec) */
@media (max-width:819px){
  .site-nav,.site-signin{display:none}
  .site-cta{margin-left:auto}
  .site-burger{display:inline-flex}
  .site-nav-plain{display:flex;flex-wrap:wrap;gap:4px 18px;padding-bottom:12px;font-size:15px}
}
@media (min-width:820px){.site-drawer{display:none}}
/* where the bar is tight (beside the four links on a narrow desktop, beside Request access and
   the menu button on a phone) the product name goes under a smaller logo */
@media (min-width:820px) and (max-width:1040px){
  .site-header .brand{flex-direction:column;align-items:flex-start;gap:2px}
  .site-header .brand-logo{height:28px}
  .site-header .brand-name{border-left:0;padding-left:0;font-size:13px;line-height:1.2}
}
@media (max-width:520px){
  .site-header .brand{flex-direction:column;align-items:flex-start;gap:2px}
  .site-header .brand-logo{height:28px}
  .site-header .brand-name{border-left:0;padding-left:0;font-size:13px;line-height:1.2}
}
@media (max-width:720px){
  .section{padding:48px 0}
  .section-title{font-size:30px;margin-bottom:28px}
}
@media (max-width:600px){
  .grid-2,.grid-auto,.split{grid-template-columns:1fr}
  .container{padding:0 16px}
  .card{padding:20px}
  .card-flush{padding:0}
  .system-card{padding:28px 20px}
  .admin-bar-in,.admin-main{padding-left:16px;padding-right:16px}
  .admin-who{margin-left:0;justify-content:flex-start}
  .site-footer-nav{margin-left:0}
}
@media print{
  .site-header,.site-footer,.space-menu,.space-topbar,.app-bar,.admin-bar,.no-print,.btn{display:none !important}
  body,body.body-app{background:#fff}
  .space-main{padding:0}
  .card{border:0}
}

/* ======== 8. page styles: staff, public, order flow, client space, reports ======== */
/* Shared bits first, then one block per area. */
.card:has(> .card-head){padding:0;overflow:hidden}
.kv{display:grid;grid-template-columns:auto 1fr;gap:4px 16px;font-size:14px}.kv dt{color:var(--subtle)}.kv dd{margin:0}
.sev{display:inline-flex;gap:4px;white-space:nowrap}
.sev span{font-size:12px;font-weight:600;border-radius:6px;padding:1px 6px;font-variant-numeric:tabular-nums;white-space:nowrap}
.sev .c{background:var(--crit-tint);color:var(--crit)}.sev .h{background:var(--crit-tint);color:#c4320a}.sev .md{background:var(--warn-tint);color:var(--warn)}.sev .l{background:var(--slate-tint);color:var(--link)}
.chk{display:inline-flex;gap:9px;align-items:flex-start;font-size:14px}
.chk .bx{flex:none;width:16px;height:16px;border-radius:4px;border:1.5px solid var(--field-line);margin-top:2px;display:grid;place-items:center}
.chk .bx.on{background:var(--navy);border-color:var(--navy);color:#fff}
.divider{height:1px;background:var(--line)}
/* scope */
.scope{display:grid;grid-template-columns:220px minmax(0,1fr);gap:24px}
.stabs{display:grid;gap:6px;align-content:start}
.stab{display:flex;justify-content:space-between;align-items:center;gap:8px;border:1px solid var(--line);background:var(--page);border-radius:10px;padding:10px 12px;font-size:14px}
.stab.on{border-color:var(--navy);box-shadow:inset 3px 0 0 var(--navy)}
.counter{font-family:var(--font-mono);font-size:13px;font-variant-numeric:tabular-nums}
.meter{height:6px;border-radius:3px;background:var(--sunk);overflow:hidden}
.meter i{display:block;height:100%;background:var(--run);width:0}
.meter i.p0{width:0%} .meter i.p5{width:5%} .meter i.p10{width:10%} .meter i.p15{width:15%} .meter i.p20{width:20%} .meter i.p25{width:25%} .meter i.p30{width:30%} .meter i.p35{width:35%} .meter i.p40{width:40%} .meter i.p45{width:45%} .meter i.p50{width:50%} .meter i.p55{width:55%} .meter i.p60{width:60%} .meter i.p65{width:65%} .meter i.p70{width:70%} .meter i.p75{width:75%} .meter i.p80{width:80%} .meter i.p85{width:85%} .meter i.p90{width:90%} .meter i.p95{width:95%} .meter i.p100{width:100%}
.seg{display:inline-flex;border:1px solid var(--line-strong);border-radius:10px;overflow:hidden;font-size:14px}
.seg span{display:block;padding:8px 12px}.seg span.on{background:var(--navy);color:#fff}
.seg label{display:block;cursor:pointer;position:relative}
.seg input{position:absolute;opacity:0;pointer-events:none}
.seg input:checked+span{background:var(--navy);color:#fff}
.seg input:focus-visible+span{outline:2px solid var(--link);outline-offset:-2px}
.drop{border:1.5px dashed var(--line-strong);border-radius:10px;padding:12px;font-size:14px;color:var(--subtle);text-align:center}
.center{display:grid;place-items:center;padding:56px 24px;min-height:520px}
/* staff pages (mockup B2-Admin) */
.filter-bar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 12px}
.filter-bar .field{flex:1 1 220px;max-width:320px}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{display:inline-flex;align-items:center;min-height:34px;border:1px solid var(--line-strong);border-radius:var(--radius-pill);padding:0 12px;font-size:13px;background:var(--page);color:var(--text);text-decoration:none}
.chip:hover{text-decoration:none;color:var(--navy)}
.chip.on{background:var(--navy);color:#fff;border-color:var(--navy)}
.chip b{font-variant-numeric:tabular-nums;margin-left:4px}
.chip-select select{border:0;background:transparent;color:inherit;font:inherit;margin-left:4px}
.chip-select select:focus-visible{outline:2px solid var(--link);outline-offset:2px;border-radius:4px;box-shadow:var(--focus-ring)}
.table-wrap .table{min-width:640px}
.table-wrap .table-wide{min-width:820px}
.table .meta{display:block}
.table .late,.work-card .late{color:var(--crit);font-weight:600}
.cell-clip{max-width:28ch}
.row-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.inline-edit{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px}
.inline-edit .field{flex:1 1 200px}
.input-num{width:120px;text-align:right}
.input-short{width:90px}
.table .input{min-height:40px}
.row-text td{background:var(--wash)}
.row-text .field{margin-bottom:10px}
.order-item{display:grid;gap:8px;padding:12px 0;border-top:1px solid var(--line)}
.order-item-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.price-form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px}
.price-form .field{flex:0 0 auto}
.history{display:grid;gap:8px;font-size:13px}
.history div{display:grid;grid-template-columns:150px minmax(0,1fr);gap:10px}
.history time{color:var(--subtle);font-family:var(--font-mono);font-size:12px}
.count-grid{display:flex;flex-wrap:wrap;gap:12px}
.count-grid .field{width:100px}
.work-cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}
.work-col{background:var(--sunk);border:1px solid var(--line);border-radius:14px;padding:12px;display:grid;gap:10px}
.work-col-head{display:flex;align-items:baseline;gap:8px}
.work-col-head b{font-size:15px;color:var(--navy)}
.work-count{font-variant-numeric:tabular-nums;font-weight:700;font-size:13px;background:var(--navy);color:#fff;border-radius:var(--radius-pill);padding:0 8px}
.work-card{background:var(--page);border:1px solid var(--line);border-radius:10px;padding:12px;display:grid;gap:4px;font-size:13px;color:var(--subtle)}
.work-card.is-hot{box-shadow:inset 3px 0 0 var(--crit)}
.work-card a:not(.btn){color:inherit}
.work-card-top{display:flex;justify-content:space-between;align-items:center;gap:8px;color:var(--ink)}
.work-card-top b{font-weight:600;font-size:14px;overflow-wrap:anywhere}
.work-card-foot{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;margin-top:3px}
.work-card-foot>:first-child{margin-right:auto}
.work-card-foot .row-confirm[open]{flex-basis:100%}
.row-confirm[open]{display:grid;gap:8px;justify-items:start}
.row-confirm[open] .meta{margin:0}
.row-confirm form .btn{white-space:normal;text-align:left;padding-top:8px;padding-bottom:8px}
.work-sub{border-top:1px dashed var(--line-strong);padding-top:9px;display:grid;gap:6px;font-size:13px}
.work-line{display:flex;justify-content:space-between;gap:8px;align-items:center}
.work-line a{color:inherit;overflow-wrap:anywhere}
.stop-block{display:grid;gap:8px;padding:12px;border:1px solid var(--crit);border-radius:14px;background:var(--crit-tint)}
/* public pages: landing, legal, request access (mockups B2-Public, B2-States) */
.hero-tag{display:inline-block;margin:0 0 22px;padding:6px 14px;border:1px solid var(--line);border-radius:var(--radius-pill);background:var(--page);font-size:13px;font-weight:500;color:var(--muted)}
.hero-title{max-width:900px;margin:0 auto 22px;font-size:60px;line-height:1.05;letter-spacing:-.025em}
.hero-lead{max-width:660px;margin:0 auto 34px;font-size:19px;color:var(--muted)}
.hero-ctas{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}
/* the animated hero on the home page (study D): navy stage, canvas behind the copy */
.hero-anim{position:relative;overflow:hidden;isolation:isolate}
.hero-anim--d{background:radial-gradient(120% 90% at 78% 45%,#27334a 0%,#1c2431 48%,#141b26 100%)}
.hero-anim--e{background:linear-gradient(180deg,#f4f6f9 0%,#ffffff 100%)}
.hero-anim canvas{position:absolute;inset:0;width:100%;height:100%;display:block;z-index:-1}
.hero-anim-in{min-height:640px;display:flex;align-items:center;padding-top:112px;padding-bottom:120px}
.hero-anim-copy{max-width:640px;text-align:left}
.hero-anim .hero-tag{display:inline-flex;align-items:center;gap:8px;margin:0 0 24px;padding:6px 14px 6px 10px}
.hero-anim--d .hero-tag{color:#d6dce6;background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.14)}
.hero-anim--e .hero-tag{color:var(--muted);background:var(--page);border-color:var(--line)}
.hero-anim .hero-tag::before{content:"";width:8px;height:8px;border-radius:50%;background:#3fd1b5;box-shadow:0 0 0 4px rgba(63,209,181,.18)}
.hero-anim .hero-title{max-width:none;margin:0 0 22px;color:var(--navy);font-weight:700;font-size:clamp(38px,4.8vw,62px);line-height:1.02;letter-spacing:-.04em}
.hero-anim .hero-lead{max-width:34em;margin:0 0 36px;font-size:clamp(17px,1.6vw,20px);line-height:1.55;color:var(--muted)}
.hero-anim--d .hero-title{color:#fff}
.hero-anim--d .hero-lead{color:var(--on-navy-muted)}
.hero-anim .hero-ctas{justify-content:flex-start}
.btn-ghost-dark{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.3);color:#fff}
.btn-ghost-dark:hover{background:rgba(255,255,255,.1);color:#fff}
@media (max-width:900px){
  .hero-anim-in{min-height:0;align-items:flex-start;padding-top:64px;padding-bottom:420px}
}
.section-lead{max-width:600px;margin:-24px auto 40px;text-align:center;color:var(--muted)}
.ways-note{margin-top:16px;font-size:13px;color:var(--subtle);text-align:center}
.faq{max-width:820px;margin:0 auto}
.faq details{background:var(--page);border:1px solid var(--line);border-radius:12px;margin-bottom:12px}
.faq summary{min-height:44px;padding:12px 22px;cursor:pointer;font-weight:600;color:var(--ink)}
.faq details p{padding:0 22px 18px;color:var(--muted)}
.legal{padding-top:48px;padding-bottom:40px}
.legal-head,.legal-body,.legal-banner,.legal-toc{max-width:72ch}
.legal-head h1{font-size:36px;margin-bottom:16px}
.legal-banner{margin-bottom:20px}
.legal-toc{margin-bottom:32px;padding:20px 24px;background:var(--wash);border:1px solid var(--line);border-radius:var(--radius-card)}
.legal-toc-title{font-size:14px;font-weight:600;margin-bottom:8px;color:var(--navy)}
.legal-toc ol{margin:0;padding-left:20px;display:grid;gap:2px;font-size:15px}
.legal-toc a{display:inline-block;padding:4px 0}
.legal-body{font-size:16px;line-height:1.7;color:var(--text)}
.legal-body h2{font-size:21px;margin:32px 0 10px}
.legal-body p,.legal-body ul,.legal-body ol{margin:0 0 14px}
.legal-body a{text-decoration:underline}
.legal-version{max-width:72ch;margin-top:32px;font-size:13px}
.form-page{padding-top:56px;padding-bottom:72px}
.form-card{max-width:560px;margin:0 auto;display:grid;gap:18px;padding:32px;box-shadow:var(--shadow)}
.form-card h1{font-size:30px}
.state-icon{width:48px;height:48px;margin-top:18px;display:grid;place-items:center;border-radius:14px;background:var(--ok-tint);color:var(--ok)}
.state-steps{margin:4px 0 0;padding-left:20px;font-size:14px;color:var(--muted)}
/* order flow (mockup B2-Order): services, scope, permission, review */
.order-page{max-width:1120px;width:100%}
.order-top{margin-bottom:26px}
.order-h{font-size:30px;letter-spacing:-.02em;margin:0 0 6px}
.order-hint{margin:0 0 24px;color:var(--muted)}
.order-note{margin:0;font-size:13px;color:var(--subtle)}
.order-note a{font-weight:600}
.billing-card form{display:grid;gap:16px;margin-top:16px}
.billing-card form>.btn{justify-self:start}
.order-company{display:inline-block;max-width:100%;vertical-align:bottom;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
dd.order-company{display:block;font-weight:400}
.order-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;align-items:start}
.service-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px}
.service-card{display:flex;flex-direction:column;gap:8px;background:var(--page);border:1px solid var(--line);border-radius:14px;padding:21px;cursor:pointer}
.service-card:hover{border-color:var(--line-strong)}
.service-card:has(.service-card-pick input:checked){border:2px solid var(--navy);padding:20px}
.service-card:has(input:focus-visible){outline:2px solid var(--link);outline-offset:2px}
.service-card-pick{display:flex;flex-direction:column;gap:8px;flex:1;cursor:pointer}
.service-card-extra{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:14px;color:var(--ink);padding-top:8px;border-top:1px solid var(--line)}
.service-card-extra small{flex-basis:100%;color:var(--muted)}
.service-card-extra select{margin-left:auto}
.buy-kinds{border:0;padding:0;margin:0 0 16px;display:flex;flex-wrap:wrap;gap:8px 20px}
.buy-kinds legend{padding:0;margin-bottom:6px}
.buy-kind{display:flex;align-items:center;gap:8px;font-size:16px;color:var(--ink)}
.service-card:has(.service-card-pick input:disabled){opacity:.6}
.service-card-head{display:flex;align-items:center;gap:10px;font-size:16px;color:var(--ink)}
.service-card-head input{flex:none;width:18px;height:18px;margin:0;accent-color:var(--navy)}
.service-card-text{font-size:14px;color:var(--muted)}
.service-card-limit{font-size:14px;color:var(--ink);margin-top:auto;padding-top:4px}
.service-card-price{font-size:22px;font-weight:700;color:var(--navy);font-variant-numeric:tabular-nums}
.service-card-price small{font-size:14px;font-weight:500;color:var(--subtle)}
.order-summary{position:sticky;top:16px;min-width:0;display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:22px;font-size:14px}
.order-summary-title,.panel-title{font-size:17px;font-weight:600;color:var(--navy);margin:0}
.order-lines{display:grid;gap:4px}
.order-line{display:flex;justify-content:space-between;gap:12px;padding:6px 0}
.order-line .num{flex:none}
.order-empty{color:var(--subtle)}
.order-lines [hidden]{display:none}
.order-total{display:flex;justify-content:space-between;gap:12px;padding-top:12px;border-top:1px solid var(--line);font-size:17px;font-weight:700;color:var(--ink)}
.perm{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}
.assets{display:grid;gap:6px}
.asset-list{margin:0;padding-left:18px;font-family:var(--font-mono);font-size:13px;display:grid;gap:2px;overflow-wrap:anywhere}
.check{display:flex;gap:10px;align-items:flex-start;min-height:44px;padding:10px 0;font-size:14px;cursor:pointer}
.check input{flex:none;width:18px;height:18px;margin:2px 0 0;accent-color:var(--navy)}
.sign-input{font-size:18px}
.scope-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:20px}
.pay{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:24px;align-items:start}
.pay-methods{display:grid;gap:16px}
.pay-sum{font-size:14px}
.method{display:grid;gap:10px;padding:20px}
.method-on{border:2px solid var(--navy);padding:19px}
.method-head{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}
.method-head .order-note{margin-left:auto}
.method .btn{justify-self:start}
@media (max-width:900px){
  .order-layout,.perm,.pay{grid-template-columns:minmax(0,1fr)}
  .order-summary{position:static}
}
@media (max-width:600px){
  .order-h{font-size:26px}
  .method .btn,.scope-foot .btn{width:100%}
}
.stab{color:inherit}
a.stab:hover{text-decoration:none;border-color:var(--line-strong)}
.stab.todo{border-color:var(--crit)}
.stab .tick{color:var(--ok)}
.stop-card{border-color:var(--crit);padding:16px 18px}
.pre-wrap{white-space:pre-wrap}
.stop-sum{color:var(--crit);border-color:var(--crit);list-style:none}
.stop-sum::-webkit-details-marker{display:none}
.stop-details[open] .stop-sum{margin-bottom:10px}
.panel{padding:24px;display:grid;gap:16px;align-content:start}
.panel-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap}
.panel-form{display:grid;gap:16px}
.usage{display:grid;gap:6px}
.usage-line{display:flex;justify-content:space-between;font-size:13px}
.rows{display:grid;gap:10px}
.row-grid{display:grid;gap:10px;align-items:end}
.row-grid.g-app{grid-template-columns:2fr 1fr}
.app-row{display:grid;gap:10px}
.app-row+.app-row{border-top:1px solid var(--line);padding-top:10px}
.row-grid.g-grey{grid-template-columns:1fr 1fr;align-items:start}
.row-grid.g-grey[hidden]{display:none}
.app-row [data-grey-only][hidden]{display:none}
.row-grid.g-api,.row-grid.g-mob{grid-template-columns:2fr 1fr 1fr}
.row-grid.g-fw{grid-template-columns:1fr 1fr 1fr 1fr}
.repo{border:1px solid var(--line);border-radius:12px;padding:14px;display:grid;gap:12px;margin:0}
/* chunked upload widget */
.upload{display:grid;gap:6px;max-width:520px}
.upload-label{font-size:14px;font-weight:500}
.upload-input{font-size:14px}
.upload-bar{width:100%;height:8px;accent-color:var(--navy)}
.upload [hidden]{display:none}
/* client space pages */
.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap}
.page-head>div:first-child{min-width:0;max-width:100%}
.page-title{min-width:0;font-size:30px;letter-spacing:-.02em}
.page-actions{display:flex;gap:8px;flex-wrap:wrap}
.crumb{font-size:13px;color:var(--subtle);overflow-wrap:anywhere}
.meta{font-size:13px;color:var(--subtle)}
.card-title-flat{margin:0}
.card-flush .table-wrap{border:0;border-radius:0}
.group-h{font-size:14px;font-weight:600;color:var(--subtle)}
.svc-actions{display:inline-flex;align-items:center;gap:4px;flex-wrap:wrap}
/* client Overview (redesign A): services table, the reports and orders lists */
.dash-table .svc-actions{justify-content:flex-end}
.dash-table .svc-cell a{color:var(--ink);text-decoration:none}
.dash-table .svc-cell a:hover{color:var(--link);text-decoration:underline}
.dash-table .pill{white-space:nowrap}
.dash-table td .meta{display:block;margin-top:4px}
.dash-group-row th{background:var(--wash);color:var(--subtle);font-size:13px;text-transform:none;letter-spacing:0}
.dash-count{font-variant-numeric:tabular-nums;white-space:nowrap}
.dash-empty-cta{margin:0;padding:0 20px 28px;text-align:center}
.dash-lists{align-items:start}
.dash-lists .card-head a,.dash-perm-all{font-size:14px}
.dash-lists .list-row{flex-wrap:wrap}
.dash-list-main{flex:1 1 12rem;min-width:0}
.dash-note{margin:0;padding:12px 22px;border-top:1px solid var(--line)}
.dash-invoices{display:grid;gap:4px;justify-items:end;min-width:0;font-size:14px}
.dash-invoices>span{display:flex;gap:6px;align-items:baseline;min-width:0;max-width:100%}
@media (max-width:900px){.dash-lists{grid-template-columns:minmax(0,1fr)}}
.card-head{padding:16px 20px;display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap;border-bottom:1px solid var(--line)}
.card-empty{margin:0;padding:16px 20px}
.svc-cols{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:20px;align-items:start}
.svc-stack{display:grid;gap:20px;align-content:start}
.state-card{display:grid;gap:12px;justify-items:start}
.state-card .big{font-size:20px;font-weight:700;color:var(--navy)}
.state-card .meta{max-width:60ch;font-size:14px;color:var(--muted)}
.svc-state-icon{width:54px;height:54px;border-radius:50%;background:var(--run-tint);display:grid;place-items:center;color:var(--run-ink);font-size:22px}
.checks{display:grid;gap:6px;width:100%;max-width:420px;margin:0;padding:0;list-style:none}
.checks .chk{align-items:center}
.reasons{margin:0;padding-left:18px;font-size:14px;color:var(--subtle)}
.mat{padding:20px;display:grid;gap:14px;align-content:start}
.mat h3{font-size:15px}
.mat-list{margin:0;padding:0;list-style:none;display:grid;gap:8px}
.mat-row{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;border:1px solid var(--line);border-radius:10px;padding:10px 12px;font-size:14px}
.mat-row form{margin:0}
.mat-what{margin-right:auto}
.mat-row>.mat-form,.mat-row>details[open]{flex-basis:100%}
.mat-pick{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.mat-pick .input{width:auto;min-width:200px;max-width:100%}
.mat-form{display:grid;gap:10px;border-top:1px solid var(--line);padding-top:12px}
.ident{font-family:var(--font-mono);font-size:13px;overflow-wrap:anywhere;background:var(--sunk);border-radius:8px;padding:6px 9px;white-space:pre-wrap}
.tl{list-style:none;margin:0;padding:0 20px 10px;display:grid}
.tl li{display:grid;gap:2px;padding:10px 0 10px 16px;border-left:2px solid var(--line);position:relative;font-size:14px}
.tl li::before{content:"";position:absolute;left:-5px;top:15px;width:8px;height:8px;border-radius:50%;background:var(--run)}
.tl time,.tl .who{color:var(--subtle);font-size:13px}
.tl .note{background:var(--sunk);border-radius:8px;padding:5px 8px;margin-top:3px}
.mat .card-title{margin:0}
.mat-block{display:grid;gap:10px;align-content:start}
.mat-block + .mat-block{border-top:1px solid var(--line);padding-top:14px}
/* reports and permission records */
.report-view{display:grid;grid-template-columns:minmax(0,1fr) 300px;min-height:calc(100vh - 120px)}
.pdfv{background:var(--sunk);display:flex}
.pdf-frame{flex:1;width:100%;min-height:70vh;border:0}
.report-side{padding:20px;display:grid;gap:12px;align-content:start;border-left:1px solid var(--line);background:var(--page)}
.report-title{font-size:16px}
.mono{font-family:var(--font-mono);word-break:break-all}
.bare-msg{display:grid;gap:8px;padding:24px;max-width:480px;margin:0 auto}
.addr-text{white-space:pre-line}
@media (max-width:900px){
  .scope,.work-cols,.svc-cols,.report-view{grid-template-columns:1fr}
  .report-side{border-left:0;border-top:1px solid var(--line)}
  /* touch widths: placed last so it wins over .btn-sm and .chip above */
  .btn-sm,.chip,.admin-tabs a,.space-menu-mobile summary{min-height:44px}
}
@media (max-width:720px){.row-grid.g-grey,.row-grid.g-app,.row-grid.g-api,.row-grid.g-mob,.row-grid.g-fw{grid-template-columns:1fr}}
@media (max-width:600px){
  .hero-title{font-size:38px}
  .hero-lead{font-size:17px}
  .form-card{padding:24px 20px}
}
/* kept off screen: the username field password managers fill on the code pages */
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ==== ui pieces (redesign): shared by the landing sections and the client space overview ==== */
.icon{width:22px;height:22px;flex:none;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.icon-sm{width:18px;height:18px}
.icon-lg{width:28px;height:28px}
.icon-sprite{position:absolute;width:0;height:0;overflow:hidden}
.tag{display:inline-flex;align-items:center;padding:2px 9px;border-radius:6px;font-size:12px;font-weight:600;background:var(--sunk);color:var(--muted)}
.tag-hybrid{background:var(--purple-tint);color:var(--purple)}
/* filter chips (buttons; the server markup shows every card) */
.filter-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:28px}
.filter-chip{border:1px solid var(--line-strong);background:var(--page);color:var(--text);border-radius:var(--radius-pill);padding:7px 15px;min-height:36px;font-size:14px;font-weight:600;cursor:pointer}
.filter-chip:hover{border-color:var(--navy);color:var(--navy)}
.filter-chip[aria-pressed="true"]{background:var(--navy);border-color:var(--navy);color:#fff}
/* buying options strip */
.buy-strip{display:flex;flex-wrap:wrap;gap:10px 22px;align-items:center;margin-bottom:28px;padding:14px 18px;border-radius:14px;background:var(--page);border:1px solid var(--line);font-size:14.5px;color:var(--muted)}
.buy-strip b{color:var(--ink)}
/* service catalogue cards */
.svc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:18px}
.svc-tile{position:relative;display:flex;flex-direction:column;gap:14px;padding:24px;background:var(--page);border:1px solid var(--line);border-radius:var(--radius-card)}
.svc-tile[hidden]{display:none}
.svc-tile-ico{width:46px;height:46px;border-radius:12px;display:grid;place-items:center;background:var(--sunk);color:var(--navy)}
.svc-tile h3{font-size:19px;line-height:1.25}
.svc-tile p{font-size:14.5px;color:var(--muted)}
.svc-tile-scope{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:var(--ink)}
.svc-tile-scope .icon{width:18px;height:18px;color:var(--run)}
.svc-tile-foot{margin-top:auto;display:flex;flex-direction:column;gap:10px;padding-top:14px;border-top:1px solid var(--line)}
.svc-tile-opts{display:flex;flex-wrap:wrap;gap:6px}
.svc-tile-opts .tag{background:var(--wash);border:1px solid var(--line)}
.svc-tile-area{position:absolute;top:24px;right:24px;font-size:12px;font-weight:600;color:var(--subtle)}
.svc-tile-more{background:var(--navy);border-color:var(--navy);color:var(--on-navy)}
.svc-tile-more h3,.svc-tile-more a{color:#fff}
.svc-tile-more p{color:var(--on-navy-muted)}
.svc-tile-more .svc-tile-ico{background:var(--navy-2);color:#fff}
.svc-tile-more .svc-tile-foot{border-top-color:rgba(255,255,255,.2)}
@media (prefers-reduced-motion:no-preference){.svc-tile{transition:transform .18s ease,box-shadow .18s ease,border-color .18s}.svc-tile:hover{transform:translateY(-3px);box-shadow:var(--shadow-lift);border-color:var(--line-strong)}}
@media (prefers-reduced-motion:reduce){.svc-tile:hover{box-shadow:var(--shadow-lift);border-color:var(--line-strong)}}
/* steps rail ("how it works") and who tags */
.steps-rail{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.steps-rail::before{content:"";position:absolute;left:12%;right:12%;top:31px;height:2px;background:repeating-linear-gradient(90deg,var(--line-strong) 0 8px,transparent 8px 14px)}
.steps-step{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px}
.steps-icon{width:64px;height:64px;border-radius:50%;background:var(--page);border:2px solid var(--navy);display:grid;place-items:center;color:var(--navy);box-shadow:0 0 0 8px var(--wash)}
.steps-icon .icon{width:28px;height:28px}
.steps-step h3{font-size:19px}
.steps-step p{font-size:15px;color:var(--muted);max-width:30ch}
.steps-who{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.steps-foot{margin-top:44px;display:flex;flex-wrap:wrap;justify-content:center;gap:10px 28px;font-size:14px;color:var(--muted)}
.steps-foot span{display:inline-flex;align-items:center;gap:8px}
.steps-foot span::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--run)}
.who-tag{font-size:12px;font-weight:700;padding:3px 9px;border-radius:6px}
.who-you{background:var(--sunk);color:var(--navy)}
.who-we{background:var(--action-tint);color:var(--action)}
/* segmented switch (buttons) with its panels, and the timeline */
.seg-switch{display:inline-flex;padding:4px;border-radius:var(--radius-pill);background:var(--sunk);margin-bottom:28px}
.seg-switch button{border:0;background:transparent;padding:10px 22px;min-height:40px;border-radius:var(--radius-pill);font-weight:600;font-size:15px;color:var(--muted);cursor:pointer}
.seg-switch button[aria-pressed="true"]{background:var(--page);color:var(--ink);box-shadow:var(--shadow)}
.ways-panel{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:40px;align-items:center;padding:36px;border-radius:20px;background:var(--page);border:1px solid var(--line);box-shadow:var(--shadow)}
.ways-panel[hidden]{display:none}
.ways-panel+.ways-panel{margin-top:20px}
.ways-panel h3{font-size:28px;margin-bottom:10px}
.timeline{display:flex;flex-direction:column;border-left:2px solid var(--line);margin-left:10px}
.timeline>div{position:relative;padding:0 0 22px 24px;font-size:15px}
.timeline>div:last-child{padding-bottom:0}
.timeline>div::before{content:"";position:absolute;left:-7px;top:6px;width:12px;height:12px;border-radius:50%;background:var(--page);border:2px solid var(--navy)}
.timeline b{display:block;color:var(--ink)}
.timeline span{color:var(--muted);font-size:14px}
/* client space: top bar, who block, account menu */
.app-bar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:14px;min-height:64px;padding:0 28px;background:rgb(255 255 255/.94);border-bottom:1px solid var(--line)}
.app-bar-title{font-family:var(--font-display);font-weight:700;font-size:16px;min-width:0}
.app-bar-sp{flex:1}
.app-bar-rule{width:1px;height:26px;background:var(--line)}
.who-block{display:flex;align-items:center;gap:10px;border:1px solid transparent;background:transparent;border-radius:12px;padding:4px 6px 4px 10px;cursor:pointer;text-align:right;color:inherit;min-width:0}
.who-block:hover,.who-block[aria-expanded="true"]{background:var(--wash);border-color:var(--line)}
/* without JS the button is disabled (Company details and Team are in the left menu too) */
.who-block:disabled{cursor:default}
.who-block:disabled:hover{background:transparent;border-color:transparent}
.who-text{display:flex;flex-direction:column;line-height:1.2;min-width:0}
.who-text b{font-size:14px;font-weight:600;max-width:15rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.who-text span{font-size:12px;color:var(--subtle);max-width:15rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--navy);color:#fff;font-weight:700;font-size:13.5px;flex:none}
.acct-anchor{position:relative;min-width:0}
.acct-menu{display:none;position:absolute;right:0;top:calc(100% + 8px);width:280px;max-width:calc(100vw - 32px);background:var(--page);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow-lift);padding:8px;z-index:30}
.acct-menu[hidden]{display:none}
.who-block[aria-expanded="true"]+.acct-menu{display:block}
.acct-head{padding:10px 12px 12px;border-bottom:1px solid var(--line);margin-bottom:6px;display:flex;flex-direction:column;gap:2px;min-width:0}
.acct-head b{font-size:14.5px}
.acct-head span{font-size:13px;color:var(--subtle)}
.acct-menu a,.acct-menu button.acct-item{display:flex;align-items:center;gap:12px;width:100%;padding:9px 12px;border-radius:9px;color:var(--text);text-decoration:none;font-size:14.5px;border:0;background:transparent;cursor:pointer;text-align:left}
.acct-menu a:hover,.acct-menu button.acct-item:hover{background:var(--wash);text-decoration:none}
.acct-menu .icon{width:18px;height:18px;color:var(--subtle)}
.acct-menu hr{border:0;border-top:1px solid var(--line);margin:6px 0}
/* overview: summary strip, attention list, table service cell, list rows */
.sum-strip{display:flex;flex-wrap:wrap;background:var(--page);border:1px solid var(--line);border-radius:var(--radius-card);overflow:hidden}
.sum-strip>div{flex:1 1 180px;padding:16px 20px;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:2px;min-width:0}
.sum-strip>div:last-child{border-right:0}
.sum-strip small{font-size:12.5px;color:var(--subtle);font-weight:600}
.sum-strip b{font-size:15.5px;font-weight:600}
.attn-list{display:flex;flex-direction:column}
.attn-item{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:14px;align-items:center;padding:16px 22px;border-top:1px solid var(--line)}
.attn-item:first-child{border-top:0}
.attn-ico{width:40px;height:40px;border-radius:11px;display:grid;place-items:center}
.attn-ico.warn{background:var(--warn-tint);color:var(--warn)}
.attn-ico.ok{background:var(--ok-tint);color:var(--ok)}
.attn-ico.run{background:var(--run-tint);color:var(--run)}
.attn-item b{display:block;font-size:15px}
.attn-item span{font-size:14px;color:var(--muted)}
.svc-cell{display:flex;align-items:center;gap:12px;min-width:0}
.svc-cell-ico{width:36px;height:36px;border-radius:10px;background:var(--sunk);display:grid;place-items:center;color:var(--navy);flex:none}
.svc-cell-ico .icon{width:19px;height:19px}
.svc-cell b{display:block;font-weight:600}
.svc-cell small{font-size:12.5px;color:var(--subtle)}
.list-rows{display:flex;flex-direction:column}
.list-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 22px;border-top:1px solid var(--line);font-size:14.5px}
.list-row:first-child{border-top:0}
.list-row b{font-weight:600;display:block}
.list-row small{color:var(--subtle);font-size:12.5px}
.list-row-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.ways-switch{display:flex;justify-content:center}
.ways-lead{color:var(--muted)}
.ways-cta{margin-top:22px}
/* the Slate link must stay a bare anchor (copy guard), so it takes the secondary button look here */
.ways-cta-link a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 20px;border:1px solid var(--line-strong);border-radius:var(--radius-pill);background:var(--page);color:var(--navy);font-size:15px;font-weight:600;text-decoration:none}
.ways-cta-link a:hover{background:var(--wash);border-color:var(--subtle);color:var(--navy);text-decoration:none}

/* admin Visits: figures, bar chart (SVG attributes, no inline style), funnel */
.visit-figures{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:16px}
.visit-figure{background:var(--page);border:1px solid var(--line);border-radius:var(--radius-card);padding:16px 20px}
.visit-figure b{display:block;font-size:28px;color:var(--navy);font-variant-numeric:tabular-nums}
.visit-figure span{font-size:13px;color:var(--subtle)}
.visit-chart{display:block;width:100%;height:160px;background:var(--wash);border-radius:12px}
.visit-chart rect{fill:var(--run)}
.visit-chart-scale{display:flex;justify-content:space-between;gap:12px;margin-top:6px}
.visit-tables{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(340px,100%),1fr));gap:20px}
.visit-table-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:8px}
.visit-table-head .card-title{margin:0}
.visit-num{text-align:right;font-variant-numeric:tabular-nums}
.visit-path{overflow-wrap:anywhere}
.table-wrap .table.visit-small{min-width:0}
.visit-range{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px}
.visit-range .field{flex:0 1 170px}
/* admin People: filters, facts and the timeline (no inline style) */
.people-filters .field{flex:1 1 170px;max-width:240px}
.people-facts{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:8px 20px;margin:0}
.people-facts dt{color:var(--subtle);font-size:14px}
.people-facts dd{margin:0;overflow-wrap:anywhere}
.people-timeline{list-style:none;margin:0;padding:0}
.people-tl-item{display:grid;grid-template-columns:200px minmax(0,1fr);gap:16px;padding:12px 0;border-top:1px solid var(--line)}
.people-tl-item:first-child{border-top:0}
.people-tl-item b{display:block;font-weight:600}
.people-tl-time{color:var(--subtle);font-size:13.5px;font-variant-numeric:tabular-nums}
.people-pages{margin:8px 0 0;padding-left:20px;font-size:14px}
.people-tl-clock{color:var(--subtle);font-variant-numeric:tabular-nums}
/* admin Visit log: filters and the table of raw rows (no inline style) */
.log-filters .field{flex:1 1 150px;max-width:220px}
.log-filters .log-wide{flex:1 1 230px;max-width:280px}
.log-exact{align-self:center}
.log-table td{vertical-align:top;font-size:14px}
.log-table td a.meta{display:block}
.log-time{white-space:nowrap;font-variant-numeric:tabular-nums}
/* one line per row: long pages, referrers and names are cut (the whole value is the title) and
   the table scrolls sideways inside its card */
.log-rows th,.log-rows td{white-space:nowrap}
.log-url{max-width:26ch}
.log-name{max-width:20ch}

/* ==== small screens for the redesign ui pieces. Last in the file: these rules override the
   components above with the same specificity, so they must come after them. ==== */
/* admin Emails */
.em-group{padding:0}
.em-row,.em-head{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1.6fr) 100px 90px 70px 290px;gap:16px;align-items:center;padding:14px 20px;border-bottom:1px solid var(--line);font-size:14px}
.em-row:last-child{border-bottom:0}
.em-head{padding:10px 20px;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--subtle);background:var(--wash)}
.em-sending{text-align:right}
.em-row.off .em-name b,.em-row.off .em-subj{color:var(--subtle)}
.em-name b{display:block;color:var(--ink);font-weight:600}
.em-name small{font-size:12.5px;color:var(--subtle)}
.em-subj{font-family:var(--font-mono);font-size:12.5px;color:var(--text);overflow-wrap:anywhere}
.aud{display:inline-flex;padding:2px 8px;border-radius:6px;font-size:12px;font-weight:600;background:var(--sunk);color:var(--navy)}
.aud.staff{background:var(--action-tint);color:var(--action)}
.tg{display:flex;align-items:center;gap:10px;justify-content:flex-end}
.tg-ui{position:relative;flex:none;width:40px;height:24px;border-radius:999px;background:var(--run);cursor:pointer;border:0;padding:0}
.tg-ui::after{content:"";position:absolute;right:3px;top:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgb(0 0 0/.2);transition:right .15s}
.tg-ui[aria-checked=false]{background:var(--line-strong)}
.tg-ui[aria-checked=false]::after{right:19px}
.tg-ui:disabled{opacity:.45;cursor:not-allowed}
summary.tg-ui{display:block;list-style:none}
summary.tg-ui::-webkit-details-marker{display:none}
.tg small{font-size:12.5px;color:var(--subtle);text-align:right}
.em-lock{font-size:12px;color:var(--subtle);text-align:right;white-space:nowrap}
.mail{max-width:660px;width:100%;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.mail-meta{padding:14px 20px;border-bottom:1px solid var(--line);font-size:13.5px;display:grid;gap:4px;background:var(--wash)}
.mail-frame{display:block;width:100%;height:640px;border:0}
.mail-text{max-width:660px;width:100%;margin:0 auto;font-size:14px}
.mail-text pre{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--wash);border:1px solid var(--line);border-radius:12px;padding:16px}
.em-count{text-align:right}
@media (max-width:900px){.em-row,.em-head{grid-template-columns:1fr}.em-head{display:none}.em-count{text-align:left}.em-row .em-count::before{content:attr(data-label) ": ";color:var(--subtle)}.tg{justify-content:flex-start}.em-sending{text-align:left}}
@media (prefers-reduced-motion:reduce){.tg-ui::after{transition:none}}

@media (max-width:900px){
  .steps-rail{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .steps-rail::before{display:none}
  .ways-panel{grid-template-columns:minmax(0,1fr);gap:24px;padding:24px}
  /* the bar holds brand, Menu, title, Add a service, the account button and Sign out:
     the title truncates, the name narrows and Sign out keeps its icon (and its name) */
  .app-bar{gap:12px;padding:0 16px}
  .who-text b,.who-text span{max-width:10rem}
  /* no room for a readable title beside Menu, Add a service and the account button */
  .app-bar-title{display:none}
  .app-bar-out-text{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
@media (max-width:620px){
  .steps-rail{grid-template-columns:minmax(0,1fr)}
  .people-tl-item{grid-template-columns:minmax(0,1fr);gap:4px}
  .people-facts{grid-template-columns:minmax(0,1fr);gap:2px}
  .people-facts dd{margin-bottom:8px}
  .log-filters .field{max-width:none}
  .ways-panel h3{font-size:22px}
  .seg-switch button{padding:10px 14px}
  .attn-item{grid-template-columns:40px minmax(0,1fr)}
  .attn-item .btn{grid-column:2;justify-self:start}
  .app-bar{gap:8px}
  .app-bar-rule,.app-bar>a.btn{display:none}
  /* the name stays the account button's accessible name, only the avatar shows */
  .who-text{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .who-block{padding:4px}
}

.welcome{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:22px;align-items:center;padding:26px 28px;margin-bottom:26px;border-radius:var(--radius-card);background:var(--navy);color:var(--on-navy);background-image:radial-gradient(circle at 92% 0%,rgb(200 53 42/.28),transparent 45%),radial-gradient(circle at 0% 120%,rgb(11 127 115/.25),transparent 40%)}
.welcome h1{color:#fff;font-size:28px;margin:0 0 6px}
.welcome p{margin:0;color:var(--on-navy-muted);max-width:60ch}
.welcome-steps{list-style:none;margin:18px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:10px 26px;font-size:14px;color:#fff}
.welcome-steps li{display:flex;align-items:center;gap:10px}
.welcome-steps i{font-style:normal;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:rgb(255 255 255/.12);font-weight:700;font-size:12.5px}
.welcome-badge{display:grid;gap:4px;justify-items:center;text-align:center;padding:16px 20px;border-radius:14px;background:rgb(255 255 255/.06);border:1px solid rgb(255 255 255/.12);font-size:12.5px;color:var(--on-navy-muted)}
.welcome-badge b{font-size:26px;color:#fff;font-family:var(--font-display)}
@media (max-width:760px){.welcome{grid-template-columns:1fr}.welcome-badge{justify-items:start;text-align:left}}

/* ---------- Live test card (service page): preparing, testing, final review, paused ---------- */
.lv{padding:0;overflow:hidden}
.lv-head{display:flex;flex-wrap:wrap;align-items:center;gap:16px;padding:20px 24px;border-bottom:1px solid var(--line)}
.lv-title{flex:1 1 260px;min-width:0}
.lv-title h2{font-size:18px;font-weight:600;margin:0 0 3px}
.lv-title p{margin:0;font-size:13.5px;color:var(--subtle)}
.st-label{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;font-weight:600;color:var(--run-ink);margin-bottom:4px;letter-spacing:.01em}
.st-label::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;animation:breathe 2.4s ease-in-out infinite}
.st-label.warn{color:var(--warn)}
.st-label.warn::before{animation:none}
@keyframes breathe{0%,100%{opacity:1}50%{opacity:.35}}
.lv-eta{display:grid;gap:1px;text-align:right}
.lv-eta small{font-size:12px;color:var(--subtle)}
.lv-eta b{font-size:15px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
.lv-body{padding:20px 24px 8px;display:grid;gap:16px}
.lv-sum{display:flex;flex-wrap:wrap;gap:6px 28px;align-items:baseline;font-size:13.5px;color:var(--subtle)}
.lv-sum b{color:var(--ink);font-weight:600;font-variant-numeric:tabular-nums}
.lv-sum .big{font-size:20px;font-weight:600;color:var(--navy);letter-spacing:-.01em;margin-right:2px}
.lv-seg{display:flex;gap:3px;height:8px}
.lv-seg span{flex:1;position:relative;height:100%;border-radius:2px;background:var(--sunk);overflow:hidden}
.lv-seg span.d{background:var(--run)}
.lv-seg span i{position:absolute;inset:0 auto 0 0;background:var(--run);transition:width .8s ease}
.lv-seg.warn span.d,.lv-seg.warn span i{background:var(--warn-bar)}
.steps{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.steps li{display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:2px 14px;align-items:start;padding:12px 0;border-bottom:1px solid var(--line);font-size:14px}
.steps li:last-child{border-bottom:0}
.steps .mk{width:20px;height:20px;margin-top:1px;display:grid;place-items:center}
.steps .mk svg{width:20px;height:20px;display:none}
.steps li.done .m-done,.steps li.now .m-now,.steps li.next .m-next,.steps li.paused .m-paused{display:block}
.steps .nm{color:var(--ink);font-weight:500}
.steps li.next .nm{color:var(--subtle);font-weight:400}
.steps li.now .nm,.steps li.paused .nm{font-weight:600}
.steps .tm{font-size:12.5px;color:var(--subtle);font-variant-numeric:tabular-nums;white-space:nowrap;padding-top:1px}
.steps .ac{grid-column:2/4;font-size:13px;color:var(--muted);transition:opacity .4s}
.steps li:not(.now) .ac{display:none}
.steps li.now .tm{color:var(--run-ink);font-weight:600}
.steps li.paused .tm{color:var(--warn);font-weight:600}
.spin{animation:rot 1.4s linear infinite;transform-origin:50% 50%}
@keyframes rot{to{transform:rotate(360deg)}}
.lv-foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;padding:12px 24px;border-top:1px solid var(--line);background:var(--wash);font-size:13px;color:var(--subtle)}
.swarm{flex:none;display:block;width:60px;height:60px;border-radius:14px;background:var(--wash);border:1px solid var(--line)}
.side-facts{display:grid;gap:10px;font-size:14px}
.side-facts div{display:flex;justify-content:space-between;gap:10px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.side-facts div:last-child{border:0;padding:0}
.side-facts span{color:var(--subtle)}
.side-facts b{font-weight:600;text-align:right}
.run-row{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(160px,240px) auto;gap:16px;align-items:center;padding:14px 20px;border-bottom:1px solid var(--line);color:inherit}
.run-row:last-child{border-bottom:0}
.run-row:hover{background:var(--wash);text-decoration:none;color:inherit}
.run-row .swarm{width:44px;height:44px;border-radius:11px}
.run-row b{display:block;color:var(--ink);font-weight:600}
.run-row small{font-size:12.5px;color:var(--subtle)}
.run-prog{display:grid;gap:5px}
.run-prog small{display:flex;justify-content:space-between;gap:8px;font-variant-numeric:tabular-nums}
@media (prefers-reduced-motion:reduce){.st-label::before,.spin{animation:none}.lv-seg span i,.steps .ac{transition:none}}
@media (max-width:760px){.lv-eta{text-align:left}.run-row{grid-template-columns:auto minmax(0,1fr)}.run-prog,.run-row .btn{grid-column:1/-1}}

/* a wide table fades at the edge that has more columns behind it (no JS): the white covers
   scroll with the content, the grey shadows stay put, so a shadow shows only where there is more */
@media (max-width:599px){.table-wrap{background:linear-gradient(to right,var(--page) 30%,transparent) left center/40px 100% no-repeat local,linear-gradient(to left,var(--page) 30%,transparent) right center/40px 100% no-repeat local,linear-gradient(to right,rgba(0,0,0,.14),transparent) left center/14px 100% no-repeat scroll,linear-gradient(to left,rgba(0,0,0,.14),transparent) right center/14px 100% no-repeat scroll var(--page)}}

.em-failed-row{grid-template-columns:minmax(0,1fr) auto}
.em-count-bad{color:var(--crit);font-weight:600}
.em-none{padding:14px 20px;margin:0}
