/* TKT & Partners PLT client portal */
@font-face{font-family:"Poppins";font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/poppins-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Poppins";font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/poppins-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:"Poppins";font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/poppins-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"Poppins";font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/poppins-latin-700-normal.woff2) format("woff2")}

:root{
  /* brand */
  --navy:#223C78; --navy-2:#2B4B91; --blue:#0095DA; --blue-deep:#006BB0; --blue-soft:#E3F2FB;
  /* surfaces and text */
  --bg:#F3F5F9; --surface:#FFFFFF; --sel:#EAF3FB; --ink:#1A2238; --ink2:#5A6478; --rule:#C4CCD9; --margin:#9CCBEB;
  --green:#176A42; --green-bg:#DCEFE3; --red:#B3322A; --red-bg:#F8E1DE; --amber:#8A5A00; --amber-bg:#F7EAC2;
  --btn:var(--navy); --btn-ink:#FFFFFF; --focus:var(--blue);
  --sc1:#E3F2FB; --sc2:#CBE7F8; --sc3:#ADD9F3; --sc4:#8CC9EE; /* the job schedule: jobs a day, 1 to 4 or more */
  --grp:#F1F7FC; /* a group's line in a dense list (Billing) */
  --field:var(--surface); --field-rule:#7D889C; --ph:#6B7489;
  --net-on-navy:#A9D4FF; /* the still network patterns (menu and top bar on navy) */
  --ghost:color-mix(in srgb,var(--rule) 55%,var(--bg)); /* grey placeholders while a page loads (round 2, 2 December 2026): from the theme's own colours, so dark needs no rule */
  /* the staff frame (2 December 2026): soft brand light behind the pages (option B of the background study, the same day: a wash of
     blue from the top right, the left and the lower right over a pale blue-grey; stronger since 3 December 2026, the study's v6),
     the floating menu and the top strip as frosted glass */
  --page:radial-gradient(110% 107% at 95% -10%,rgba(0,149,218,.42),transparent 65%),radial-gradient(91% 121% at -10% 70%,rgba(110,110,235,.30),transparent 65%),radial-gradient(100% 93% at 100% 110%,rgba(0,149,218,.30),transparent 65%),linear-gradient(160deg,#DCE8F8,#EEF2F9 50%,#E2E8F7);
  --rail:#14254f; --railglass:rgba(18,33,72,.96); --barglass:rgba(243,245,249,.82);
  /* motion (round 2b, 2 December 2026, the mock-ups' curves and times) and the lift of a card under the pointer */
  --ease-out:cubic-bezier(.2,.75,.2,1); --ease-draw:cubic-bezier(.3,.6,.2,1); --t-fast:.15s; --t:.2s; --t-lift:.25s; --t-slow:.35s;
  --badge-red:#E5534B; /* the menu's red counts and their ring */
  /* the solid boxes' soft shadow and faint border over the staff pages' background (option B, 2 December 2026) */
  --shadow-soft:0 1px 2px rgba(20,35,70,.06),0 8px 24px rgba(20,35,70,.09); --card-rule:rgba(30,50,90,.08); --shadow-up:0 2px 4px rgba(16,24,40,.06),0 16px 36px rgba(16,24,40,.12); --glow:rgba(0,149,218,.18);
  /* controls (controls round, 2 December 2026): one height for a toolbar's controls, the corners, the focus halo, a row
     under the pointer (from the theme's own colours, so dark needs nothing), the left accent bar, menus' and pop-overs' shadow */
  --ctl-h:36px; --ctl-h-sm:30px; --r-ctl:8px; --r-card:12px; --r-pill:999px; --ring:0 0 0 3px var(--glow);
  --row-hover:var(--sel); --stripe:color-mix(in srgb,var(--sel) 45%,transparent); --tint:color-mix(in srgb,var(--blue) 8%,transparent); --accent-bar:inset 3px 0 0 var(--blue);
  --shadow-pop:0 12px 32px rgba(16,24,40,.16),0 2px 6px rgba(16,24,40,.08);
  --font:"Poppins",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  color-scheme:light;
  box-sizing:border-box;
}
/* Appearance chosen by the person (Preferences): html[data-theme="light" | "dark"]; none = the device's setting. */
@media (prefers-color-scheme: dark){
:root:not([data-theme="light"]){
    --navy:#182B57; --navy-2:#22396F; --blue:#62C3F2; --blue-deep:#8FD3F7; --blue-soft:#163A57;
    --bg:#0B1220; --surface:#172238; --sel:#1E2B45; --ink:#F1F4FA; --ink2:#B8C2D6; --rule:#3B4C6E; --margin:#2F5E86;
    --field:#0F1829; --field-rule:#6A7DA3; --ph:#8C98B2;
    --page:radial-gradient(110% 107% at 95% -10%,rgba(40,140,230,.48),transparent 65%),radial-gradient(91% 121% at -10% 70%,rgba(100,90,230,.34),transparent 65%),radial-gradient(100% 93% at 100% 110%,rgba(40,140,230,.32),transparent 65%),linear-gradient(160deg,#12244A,#0B1220 50%,#101A36);
    --rail:#0C1426; --railglass:rgba(12,20,40,.94); --barglass:rgba(11,18,32,.82);
    --green:#62CC94; --green-bg:#173829; --red:#F28A80; --red-bg:#3D1F1C; --amber:#EBBF5E; --amber-bg:#3B300F;
    --btn:#3DB2EA; --btn-ink:#0E1424; color-scheme:dark;
    --sc1:#163A57; --sc2:#1D4A6E; --sc3:#245A86; --sc4:#2B6A9E; --grp:#1B2842;
    --shadow-soft:0 1px 2px rgba(0,0,0,.3),0 10px 30px rgba(0,0,0,.38); --card-rule:rgba(120,150,200,.18); --shadow-up:0 2px 6px rgba(0,0,0,.35),0 18px 40px rgba(0,0,0,.4); --glow:rgba(98,195,242,.22);
    --shadow-pop:0 14px 36px rgba(0,0,0,.5),0 2px 8px rgba(0,0,0,.35)
  }
}
:root[data-theme="dark"]{
    --navy:#182B57; --navy-2:#22396F; --blue:#62C3F2; --blue-deep:#8FD3F7; --blue-soft:#163A57;
    --bg:#0B1220; --surface:#172238; --sel:#1E2B45; --ink:#F1F4FA; --ink2:#B8C2D6; --rule:#3B4C6E; --margin:#2F5E86;
    --field:#0F1829; --field-rule:#6A7DA3; --ph:#8C98B2;
    --page:radial-gradient(110% 107% at 95% -10%,rgba(40,140,230,.48),transparent 65%),radial-gradient(91% 121% at -10% 70%,rgba(100,90,230,.34),transparent 65%),radial-gradient(100% 93% at 100% 110%,rgba(40,140,230,.32),transparent 65%),linear-gradient(160deg,#12244A,#0B1220 50%,#101A36);
    --rail:#0C1426; --railglass:rgba(12,20,40,.94); --barglass:rgba(11,18,32,.82);
    --green:#62CC94; --green-bg:#173829; --red:#F28A80; --red-bg:#3D1F1C; --amber:#EBBF5E; --amber-bg:#3B300F;
    --btn:#3DB2EA; --btn-ink:#0E1424; color-scheme:dark;
    --sc1:#163A57; --sc2:#1D4A6E; --sc3:#245A86; --sc4:#2B6A9E; --grp:#1B2842;
    --shadow-soft:0 1px 2px rgba(0,0,0,.3),0 10px 30px rgba(0,0,0,.38); --card-rule:rgba(120,150,200,.18); --shadow-up:0 2px 6px rgba(0,0,0,.35),0 18px 40px rgba(0,0,0,.4); --glow:rgba(98,195,242,.22);
    --shadow-pop:0 14px 36px rgba(0,0,0,.5),0 2px 8px rgba(0,0,0,.35)
  }
html{height:100%}
*,*::before,*::after{box-sizing:inherit}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:15px;line-height:1.55;min-height:100%;display:flex;flex-direction:column}
#app{flex:1;display:flex;flex-direction:column}
.wrap{width:100%;max-width:1180px;margin:0 auto;padding:22px 20px 56px;flex:1}
.muted{color:var(--ink2)} .small{font-size:13px}
h1,h2,h3{font-family:var(--font);margin:0;line-height:1.2;color:var(--navy)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) h1,:root:not([data-theme="light"]) h2,:root:not([data-theme="light"]) h3{color:var(--ink)}}
:root[data-theme="dark"] h1,:root[data-theme="dark"] h2,:root[data-theme="dark"] h3{color:var(--ink)}
h1{font-size:clamp(24px,3.6vw,34px);font-weight:700;letter-spacing:-.01em}
h2{font-size:21px;font-weight:600} h3{font-size:17px;font-weight:600}
button,input,textarea,select{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--focus);outline-offset:2px} /* follows the control's own corners (controls round, 2 December 2026: it set 4 px corners on whatever had focus) */
:root{accent-color:var(--blue)} /* tick-boxes, radios and sliders in the brand blue */
a{color:var(--blue-deep)}

/* ---------- app bar: navy with the profile's diagonal ---------- */
.appbar{background:linear-gradient(115deg,var(--navy) 0 74%,var(--navy-2) 74% 100%);color:#fff;padding-top:env(safe-area-inset-top,0px)}
.appbar-in{max-width:1180px;margin:0 auto;padding:12px 20px;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.brandlink{display:flex;align-items:center;gap:14px;color:#fff;text-decoration:none}
.brandlink img{height:30px;width:auto;display:block}
.portal-name{font-weight:500;font-size:14px;padding-left:14px;border-left:1px solid rgba(255,255,255,.35)}
.who{display:flex;gap:16px;align-items:center;font-size:14px;flex-wrap:wrap}
.who .me{opacity:.85}
.appbar .linkbtn{color:#fff;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.45)}
.appbar .linkbtn:hover{border-bottom-color:#fff}
/* "← Parent" at the top of every inner page (core.js backLink, 25 November 2026): the theme's blue, a little larger than the old grey
   breadcrumb; further links (a quotation's client) small beside it. The arrow is decoration only (empty alternative text). */
.crumbs{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;margin:0 0 8px;font-size:13px}
.crumbs .back{font-size:15px;font-weight:600;color:var(--blue-deep)}
.crumbs .back::before{content:"\2190\00a0";content:"\2190\00a0" / ""}
.px-due.px-gone{background:var(--bg);color:var(--ink2)}
/* An issued, accepted, lost or revised quotation's summary (practice-quote-summary.js, 25 November 2026). */
.px-qsum-next{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin:0 0 12px;font-size:15px}
.px-qsum-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px 18px;margin:0 0 4px}
.px-qsum-facts>div{display:flex;flex-direction:column;gap:2px;min-width:0;overflow-wrap:anywhere}
.px-qsum .px-qsum-files{margin-top:8px;padding-top:10px;border-top:1px solid var(--rule)}
.px-qsum-more>summary{cursor:pointer;color:var(--blue-deep);font-weight:600;padding:6px 0}
.crumbs-more,.crumbs-more a{color:var(--ink2)} .crumbs-more a:hover{color:var(--blue-deep)}
/* One short line on what to do, the rest behind "How this works". */
.howto-line{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin:8px 0 12px;color:var(--ink2);font-size:14px}
.howto-line details.howto>summary{cursor:pointer;color:var(--blue-deep);font-size:13px}
.howto-line details.howto[open]{flex-basis:100%}
.howto-line details.howto>div{margin-top:6px;font-size:13px;line-height:1.5}
.linkbtn{background:none;border:0;padding:0;cursor:pointer;text-decoration:underline;color:var(--ink2)}

/* ---------- footer with firm details ---------- */
.site-foot{background:var(--surface);border-top:4px solid var(--blue);color:var(--ink2);font-size:12.5px;padding-bottom:env(safe-area-inset-bottom,0px)}
.foot-in{max-width:1180px;margin:0 auto;padding:18px 20px;display:flex;justify-content:space-between;gap:16px 40px;flex-wrap:wrap;line-height:1.6}
.foot-in strong{color:var(--ink);font-weight:600}
.foot-in a{color:inherit}

/* ---------- sign-in page (partner's approved sample, 22 November 2026) ----------
   The whole page is dark in light and dark mode alike: the words on the left, the sign-in card on the right (it follows
   the person's light or dark choice through the theme colours), and behind them (.si-bg: no clicks, hidden from screen
   readers) two soft glows and the network of nodes with its moving light (two canvases from public/js/signin-net.js,
   moved into .si-net after each redraw), faded out towards the words (on a phone, towards the top). The page fills the whole window (body and #app are flex columns); the firm's details sit at the foot
   of the words (.si-foot), with no separate footer below (22 November 2026). */
.login-page{flex:1;min-height:100vh;min-height:100dvh;position:relative;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);grid-template-rows:1fr auto;grid-template-areas:'brand card' 'foot card';overflow:hidden;color:#fff;
  background:radial-gradient(60% 70% at 80% 100%,#1d3a7a 0%,transparent 60%),radial-gradient(50% 60% at 75% 40%,#17306a 0%,transparent 70%),linear-gradient(160deg,#0f1d42 0%,#132652 55%,#0b1734 100%)}
.si-bg{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.si-halo{position:absolute;border-radius:50%}
.si-halo.one{width:42vw;aspect-ratio:1;left:-12vw;top:2%;background:radial-gradient(circle,rgba(0,149,218,.40),rgba(0,149,218,.11) 45%,transparent 68%)}
.si-halo.two{width:28vw;aspect-ratio:1;left:10vw;top:-14%;background:radial-gradient(circle,rgba(150,130,255,.16),transparent 65%)}
.si-net{position:absolute;inset:-3%;-webkit-mask-image:linear-gradient(90deg,transparent 18%,#000 50%);mask-image:linear-gradient(90deg,transparent 18%,#000 50%)}
.si-net canvas{position:absolute;inset:0;width:100%;height:100%}
.brand-side,.signin-side,.si-foot{position:relative;z-index:1}
.brand-side{grid-area:brand;padding:44px 64px 32px;display:flex;flex-direction:column;gap:32px}
.brand-side>div{margin:auto 0}
.si-logo{display:block;width:340px;max-width:100%;height:auto} /* TKT ELARA, full logo (26 November 2026) */
.si-eyebrow{font-size:12px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:#5cc8ff;margin:0 0 18px}
.login-page .brand-side h1{font-size:clamp(34px,3.8vw,54px);line-height:1.12;font-weight:600;letter-spacing:-.025em;color:#fff;max-width:12em}
.brand-side h1 .ln{display:block;overflow:hidden;padding-bottom:.06em}
.brand-side h1 .ln>span{display:block}
.si-rule{width:72px;height:3px;background:linear-gradient(90deg,#0095DA,#5ce1ff);margin:26px 0 18px;transform-origin:left}
.si-sub{font-size:16px;line-height:1.65;color:rgba(255,255,255,.72);max-width:30em;margin:0}
.si-foot{grid-area:foot;padding:0 64px 36px;font-size:12.5px;color:rgba(255,255,255,.6);line-height:1.7;padding-bottom:max(36px,env(safe-area-inset-bottom,0px))}
.si-foot a{color:inherit}
.si-foot strong{color:#fff;font-weight:500}
.signin-side{grid-area:card;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;padding:40px;color:var(--ink)}
.si-card{width:100%;max-width:400px;margin:0;border-radius:14px;padding:32px;border-color:rgba(255,255,255,.12);box-shadow:0 40px 90px -24px rgba(0,0,0,.6),0 0 0 1px rgba(255,255,255,.05)}
.si-card h2{font-size:22px;letter-spacing:-.01em}
.si-card .muted{margin:4px 0 10px;font-size:14px}
.si-card input[type=email],.si-card input[type=text]{height:46px;padding:0 14px;border-radius:8px}
.si-card input:focus{box-shadow:0 0 0 4px rgba(0,149,218,.15)}
.si-card .actions{margin-top:16px}
.si-card .actions .btn{flex:1 1 100%;justify-content:center;height:46px;border-radius:8px;font-size:15px}
.si-fine{margin:18px 0 0;font-size:12px;color:var(--ink2);text-align:center}
.si-fine b{color:var(--ink);font-weight:500}
@media (max-width:860px){
  .login-page{grid-template-columns:1fr;grid-template-rows:auto auto auto;grid-template-areas:'brand' 'card' 'foot'}
  .brand-side{padding:32px 24px 8px;gap:28px}
  .login-page .brand-side h1{font-size:clamp(30px,8.4vw,40px)}
  .signin-side{padding:16px 20px 32px}
  .si-foot{padding:0 24px 28px;text-align:center;font-size:12px}
  .si-card{padding:24px}
  /* Phone: the network sits behind the card and fades out towards the words at the top. */
  .si-net{-webkit-mask-image:linear-gradient(180deg,transparent 38%,#000 70%);mask-image:linear-gradient(180deg,transparent 38%,#000 70%)}
}
/* ---------- sign-in movement ----------
   The entrance plays while the page has class intro, which public/app.js (loginHtml) adds once per page load
   (TKT.motion.first('signin')): the eyebrow fades up, the headline's lines rise in turn, the rule draws, the sub line
   fades up, the logo and foot fade in, the card fades up and the network fades in. The glows and the network drift
   slowly; after a redraw they carry on where they were (--since, set by loginHtml: how long the page has been shown,
   negative; the canvases are moved, not made again). Only transform and opacity move here, and nothing at all when the
   device asks for less motion (signin-net.js then draws the still network only: no light). */
@media (prefers-reduced-motion:no-preference){
  .intro .si-eyebrow{animation:si-up .7s cubic-bezier(.16,1,.3,1) .1s both}
  .intro .brand-side h1 .ln>span{animation:si-line 1s cubic-bezier(.16,1,.3,1) both}
  .intro .brand-side h1 .ln:nth-child(1)>span{animation-delay:.2s} .intro .brand-side h1 .ln:nth-child(2)>span{animation-delay:.3s} .intro .brand-side h1 .ln:nth-child(3)>span{animation-delay:.4s}
  .intro .si-rule{animation:si-draw .9s cubic-bezier(.65,0,.35,1) .65s both}
  .intro .si-sub{animation:si-up .8s cubic-bezier(.16,1,.3,1) .75s both}
  .intro .si-foot,.intro .si-logo{animation:si-fade 1s ease .9s both}
  .intro .si-card{animation:si-up .9s cubic-bezier(.16,1,.3,1) .45s both}
  .intro .si-net{animation:si-netin 2.2s ease-out both}
  .si-net canvas{animation:si-drift 40s ease-in-out var(--since,0s) infinite alternate}
  .si-halo.one{animation:si-halo1 12s ease-in-out var(--since,0s) infinite alternate}
  .si-halo.two{animation:si-halo2 15s ease-in-out var(--since,0s) infinite alternate}
}
@keyframes si-up{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes si-fade{from{opacity:0}to{opacity:1}}
@keyframes si-line{from{transform:translateY(105%)}to{transform:none}}
@keyframes si-draw{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes si-netin{from{opacity:0;transform:scale(1.04)}to{opacity:1;transform:none}}
@keyframes si-drift{from{transform:translate(0,0) scale(1)}to{transform:translate(-1.5%,1%) scale(1.03)}}
@keyframes si-halo1{from{transform:translate(0,0) scale(.95);opacity:.8}to{transform:translate(6%,4%) scale(1.08);opacity:1}}
@keyframes si-halo2{from{transform:translate(0,0);opacity:.6}to{transform:translate(-8%,10%);opacity:1}}
.codebox{letter-spacing:.4em;font-size:22px;text-align:center}

/* ---------- common pieces ---------- */
.top{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;margin-top:4px}
.tabs{display:flex;gap:4px;margin-top:20px;border-bottom:2px solid var(--rule)}
.tabs button{background:transparent;border:0;padding:10px 16px;cursor:pointer;font-weight:500;font-size:15px;color:var(--ink2);border-bottom:3px solid transparent;margin-bottom:-2px}
.tabs button[aria-selected="true"]{color:var(--navy);border-bottom-color:var(--blue)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .tabs button[aria-selected="true"]{color:var(--ink)}}
:root[data-theme="dark"] .tabs button[aria-selected="true"]{color:var(--ink)}
.badge{display:inline-block;min-width:20px;padding:0 6px;border-radius:999px;background:var(--blue);color:#fff;font-size:12px;font-weight:600;text-align:center;margin-left:6px}
.summary{margin-top:20px}
.bar{display:flex;gap:3px;height:10px}
.bar span{flex:1;min-width:2px;border-radius:2px;background:var(--rule)}
.bar .s-accepted{background:var(--green)} .bar .s-review{background:var(--amber)} .bar .s-rejected{background:var(--red)}
.sumtext{margin:10px 0 0;font-size:15.5px}
.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}

.btn{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;border-radius:6px;border:1.5px solid var(--btn);background:var(--btn);color:var(--btn-ink);font-weight:500;font-size:14px;cursor:pointer;text-decoration:none}
.btn:hover{filter:brightness(1.08)}
:is(.btn,.card,.row,.filters button){transition:background-color var(--t-fast),color var(--t-fast),border-color var(--t-fast),opacity var(--t-fast),transform .1s ease-out}
.btn.ghost{background:transparent;color:var(--navy);border-color:var(--navy)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .btn.ghost{color:var(--ink);border-color:var(--ink2)}}
:root[data-theme="dark"] .btn.ghost{color:var(--ink);border-color:var(--ink2)}
.btn.accent{background:var(--blue);border-color:var(--blue);color:#fff}
.btn.good{background:var(--green);border-color:var(--green);color:#fff}
.btn.bad,.btn.danger{background:transparent;border-color:var(--red);color:var(--red)}
.btn.bad:hover,.btn.danger:hover{background:var(--red-bg)}
.linkbtn:is(.bad,.danger){color:var(--red)} /* Delete, Remove, Take off: red wherever they are (controls round) */
.btn:disabled,.btn[aria-disabled="true"]{opacity:.45;cursor:not-allowed}
.btn.sm{padding:4px 10px;font-size:13px}
.btn.ghost:hover:not(:disabled){background:var(--tint)}

.layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:24px;margin-top:22px;align-items:start}
@media (max-width:900px){.layout{grid-template-columns:1fr}}
/* On a computer the detail of the selected request or query stays in view while the list is scrolled (partner, 16 November
   2026): a long list no longer leaves it at the top of the page. A detail taller than the window scrolls on its own. */
@media (min-width:901px){.layout>#detail{position:sticky;top:16px;max-height:calc(100vh - 32px);overflow-y:auto;overscroll-behavior:contain}}
.filters{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}
.filters button{padding:4px 12px;border-radius:999px;border:1px solid var(--rule);background:var(--surface);cursor:pointer;font-size:13px}
.filters button[aria-pressed="true"]{background:var(--blue-soft);color:var(--ink);border-color:var(--blue)} /* chosen: the soft blue (navy is for main buttons only; controls round, 2 December 2026) */
.toolbar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}

/* ---------- the request list: a working-paper ledger with tickmarks ---------- */
.ledger{background:var(--surface);border:1px solid var(--rule);border-radius:8px;overflow:hidden}
.grp{display:grid;grid-template-columns:64px minmax(0,1fr);background:var(--bg);border-bottom:1px solid var(--rule);font-weight:600;font-size:13px;color:var(--navy)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .grp{color:var(--ink)}}
:root[data-theme="dark"] .grp{color:var(--ink)}
.grp .gl{border-right:4px double var(--margin)} .grp .gt{padding:6px 14px}
.row{display:grid;grid-template-columns:64px minmax(0,1fr) auto;border-bottom:1px solid var(--rule);cursor:pointer}
.ledger>.row:last-child{border-bottom:0}
.row[aria-current="true"]{background:var(--sel);box-shadow:inset 3px 0 0 var(--blue)}
.row:hover{background:var(--sel)}
.tick{display:flex;align-items:center;justify-content:center;border-right:4px double var(--margin);padding:12px 0}
.tick svg{width:26px;height:26px}
.s-open{color:var(--ink2)} .s-review{color:var(--amber)} .s-accepted{color:var(--green)} .s-rejected{color:var(--red)}
.rmain{padding:12px 14px;min-width:0}
.rtitle{font-weight:600}
.rref{color:var(--blue-deep);font-weight:600;margin-right:8px;font-variant-numeric:tabular-nums}
.rdesc{color:var(--ink2);font-size:13px;margin-top:2px}
.rstate{padding:12px 14px;text-align:right;display:flex;flex-direction:column;gap:2px;font-size:13px;align-items:flex-end}
.slabel{font-weight:600}
.due{color:var(--ink2)} .due.late{color:var(--red);font-weight:600}
.origin{display:inline-block;margin-left:8px;padding:0 8px;border-radius:999px;background:var(--blue-soft);color:var(--blue-deep);font-size:11.5px;font-weight:600;vertical-align:2px}
@media (max-width:560px){
  .row,.grp{grid-template-columns:48px minmax(0,1fr)}
  .row .rstate{grid-column:2;align-items:flex-start;text-align:left;padding-top:0;flex-direction:row;gap:12px;flex-wrap:wrap}
}

.panel{background:var(--surface);border:1px solid var(--rule);border-radius:8px;padding:20px}
.panel p{margin:8px 0 0}
.panel.lead-panel{border-top:4px solid var(--blue)}
.crit{margin:8px 0 0;padding-left:20px} .crit li{margin:3px 0}
.sect{margin-top:20px;padding-top:16px;border-top:1px solid var(--rule)}
.sect h3{font-size:15.5px}
.drop{border:2px dashed var(--rule);border-radius:8px;padding:16px;margin-top:12px;text-align:center}
.drop.over{border-color:var(--blue);background:var(--sel)}
.file{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;border:1px solid var(--rule);border-radius:6px;padding:10px 12px;margin-top:8px}
.file .nm{font-weight:600;overflow-wrap:anywhere}
details>summary{cursor:pointer}
textarea,input[type=text],input[type=email],input[type=tel],input[type=date],input[type=number],select{width:100%;background:var(--field);color:var(--ink);border:1px solid var(--field-rule);border-radius:6px;padding:8px 10px}
/* Search boxes keep their own widths; they take the field colours (dark mode, 21 November 2026). */
input[type=search]{background:var(--field);color:var(--ink);border:1px solid var(--field-rule);border-radius:6px;padding:6px 10px}
textarea:focus,input:focus,select:focus{border-color:var(--blue)}
input::placeholder,textarea::placeholder{color:var(--ph);opacity:1} /* placeholders 4.5:1 or more (21 November 2026) */
textarea{min-height:76px;resize:vertical}
label.f{display:block;font-weight:500;margin-top:12px;font-size:14px}
label.chk,label.radio{display:flex;gap:10px;align-items:flex-start;margin-top:10px}
label.radio input{margin-top:5px}
.err{color:var(--red);font-weight:500;margin-top:6px}
.cmt{border-left:3px solid var(--rule);padding:2px 0 2px 12px;margin-top:12px}
.cmt.sent_back{border-color:var(--red)} .cmt.accepted,.cmt.cleared{border-color:var(--green)}
.cmt.client,.cmt.client_note{border-color:var(--ink2)} .cmt.staff,.cmt.staff_note{border-color:var(--blue)}
.pre{white-space:pre-wrap;overflow-wrap:anywhere}
.fchip{display:inline-flex;gap:6px;align-items:center;border:1px solid var(--rule);border-radius:999px;padding:1px 10px;font-size:13px;margin:6px 6px 0 0;overflow-wrap:anywhere;text-decoration:none;color:var(--ink)}
.spin{display:inline-block;width:12px;height:12px;border:2px solid var(--rule);border-top-color:var(--blue);border-radius:50%;vertical-align:-2px;margin-right:6px;animation:sp .8s linear infinite}
@keyframes sp{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.spin{animation:none}}
.sr{position:absolute;left:-9999px}
.empty{padding:28px 20px;text-align:center;color:var(--ink2)}
.sub{margin-top:24px}
.sub>summary{font-weight:600;color:var(--navy)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .sub>summary{color:var(--ink)}}
:root[data-theme="dark"] .sub>summary{color:var(--ink)}
.sub ul{list-style:none;padding:0;margin:10px 0 0}
.sub li{padding:7px 0;border-bottom:1px solid var(--rule);font-size:14px;display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
#notice{display:none;position:fixed;left:50%;transform:translateX(-50%);bottom:max(16px,env(safe-area-inset-bottom));background:var(--navy);color:#fff;padding:10px 18px;border-radius:8px;max-width:min(560px,90vw);z-index:40;font-weight:500;box-shadow:var(--shadow-pop)}
#notice:not(:empty){display:block}

.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px;margin-top:16px}
.card{display:block;text-decoration:none;color:var(--ink);background:var(--surface);border:1px solid var(--rule);border-top:4px solid var(--navy);border-radius:8px;padding:16px;cursor:pointer}
.card:hover{border-top-color:var(--blue);background:var(--sel)}
.card h3{margin-bottom:4px}
.card.attn{border-top-color:var(--red)} .t-red{color:var(--red)} .t-amber{color:var(--amber)}
.origin.closed{background:var(--amber-bg);color:var(--amber)}
/* staff engagement overview */
.ov-bar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:14px}
/* Segmented controls (.seg, and the label-wrapped .px-seg of Firm reports and Broadcasts): a track with the chosen option as
   a raised pill (controls round, 2 December 2026; it was navy). */
.seg,.px-seg{display:inline-flex;flex-wrap:wrap;gap:2px;padding:3px;border:1px solid var(--rule);border-radius:var(--r-ctl);background:var(--bg)}
.seg button,.px-segopt{display:inline-flex;align-items:center;gap:6px;min-height:calc(var(--ctl-h-sm) - 8px);padding:0 12px;border:0;border-radius:calc(var(--r-ctl) - 2px);background:transparent;color:var(--ink2);font:inherit;font-size:13.5px;cursor:pointer;transition:background-color var(--t-fast),color var(--t-fast),box-shadow var(--t-fast),transform .1s ease-out}
.seg button[aria-pressed="true"],.px-segopt.on{background:var(--surface);color:var(--ink);font-weight:600;box-shadow:0 0 0 1px var(--card-rule),0 1px 2px var(--card-rule)}
.ov-count{margin:14px 0 6px;color:var(--ink2);font-size:13px}
.ov-count .linkbtn{color:var(--blue-deep)}
/* PBC list: requests accepted as a bar, and what needs the team as labels. */
.ovp{height:6px;max-width:140px;background:var(--rule);border-radius:3px;overflow:hidden;margin:4px 0}
.ovp>i{display:block;height:100%;background:var(--green)}
.lv-table .chip{display:inline-flex;align-items:center;gap:4px;margin:0 10px 2px 0;white-space:nowrap}
.lv-table tr.quiet td{color:var(--ink2)}
.pill{display:inline-block;min-width:22px;padding:0 7px;border-radius:999px;font-weight:600;text-align:center}
.pill.red{background:var(--red-bg);color:var(--red)} .pill.amber{background:var(--amber-bg);color:var(--amber)}

/* ---------- library ---------- */
.lib{margin-top:20px}
.libhead{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.libgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:14px;margin-top:14px}
.libgrid fieldset{border:1px solid var(--rule);border-radius:8px;margin:0;padding:6px 12px 10px;min-width:0}
.libgrid legend{font-weight:600;padding:0 6px;color:var(--navy)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .libgrid legend{color:var(--ink)}}
:root[data-theme="dark"] .libgrid legend{color:var(--ink)}
.li{display:grid;grid-template-columns:22px minmax(0,1fr);gap:6px;padding:6px 0;border-top:1px solid var(--rule)}
.li label{cursor:pointer}
.liact{display:flex;gap:14px;margin-top:3px}
.li input{margin-top:4px}
.li[hidden],fieldset[hidden]{display:none}
.li.added{opacity:.55;cursor:default}
.core{display:inline-block;background:var(--green-bg);color:var(--green);border-radius:999px;padding:0 8px;font-size:12px;font-weight:600;margin-left:6px}

/* ---------- screenshots ---------- */
.thumbs{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.thumb{padding:0;border:1px solid var(--rule);border-radius:6px;background:var(--bg);cursor:zoom-in;line-height:0}
.thumb img{display:block;max-width:220px;max-height:150px;border-radius:5px}
.thumb:hover{border-color:var(--blue)}
.pend{display:flex;flex-direction:column;gap:4px;align-items:flex-start}
.pend img{max-width:160px;max-height:110px;border:1px solid var(--rule);border-radius:5px}
.drop:focus{border-color:var(--blue);background:var(--sel)}
.lightbox{position:fixed;inset:0;z-index:50;background:rgba(10,16,32,.9);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:16px;cursor:zoom-out}
.lightbox img{max-width:96vw;max-height:84vh;object-fit:contain;background:#fff;border-radius:4px;cursor:default;box-shadow:0 8px 30px rgba(0,0,0,.5)}
.lbbar{display:flex;justify-content:space-between;align-items:center;gap:12px;width:min(96vw,1200px);color:#fff;margin-bottom:10px;flex-wrap:wrap}
.lbbar .btn.ghost{color:#fff;border-color:#fff}
.lbbar .btn:not(.ghost){background:#fff;color:#223C78;border-color:#fff}
.duebox{display:flex;gap:8px;align-items:end;flex-wrap:wrap;margin-top:10px}
.duebox input{width:auto}

/* administration */
.atable{width:100%;border-collapse:collapse;margin-top:10px;font-size:14px}
.atable th{text-align:left;font-weight:600;color:var(--ink2);font-size:12.5px;padding:6px 10px;border-bottom:2px solid var(--rule)}
.atable td{padding:8px 10px;border-bottom:1px solid var(--rule);vertical-align:top}
.atable tr.warn td{background:var(--red-bg)}
.storage-ok{color:var(--green)}.storage-warn{color:var(--amber)}.storage-bad{color:var(--red)}
.pool-form{display:flex;gap:8px;align-items:flex-end;flex-wrap:wrap;margin-bottom:12px}.pool-form label.f{margin-top:0}
.atable tr.off td{opacity:.6}
.atable .nowrap{white-space:nowrap}
.appbar a.linkbtn{color:#fff;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.45)}
/* activity log */
.act-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin:22px 0 8px} .act-head h3{margin:0}
.act-day{font-size:12.5px;font-weight:600;color:var(--ink2);margin:14px 0 2px;padding-bottom:4px;border-bottom:2px solid var(--rule)}
.act-row{display:flex;gap:12px;padding:7px 0;border-bottom:1px solid var(--rule);font-size:14px;line-height:1.5}
.act-time{color:var(--ink2);min-width:92px;flex:none;font-variant-numeric:tabular-nums}
.act-text{min-width:0;overflow-wrap:anywhere}
.act-tag{display:inline-block;font-size:11px;font-weight:600;padding:1px 8px;border-radius:999px;margin-right:2px;vertical-align:1px;background:var(--blue-soft);color:var(--navy)}
.act-tag.client{background:var(--amber-bg);color:var(--amber)} .act-tag.system{background:var(--rule);color:var(--ink2)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .act-tag{color:var(--blue)}}
:root[data-theme="dark"] .act-tag{color:var(--blue)}
.act-files summary{cursor:pointer;color:var(--blue-deep);font-size:13px;margin-top:2px} .act-files ul{margin:4px 0 0;padding-left:18px;font-size:13px;color:var(--ink2)}
@media (max-width:600px){.act-row{flex-direction:column;gap:2px}.act-time{min-width:0}}
.sub .act-files li{display:list-item;padding:1px 0;border:0;font-size:13px}
/* files from the audit team, kept apart from the client's evidence */
.sect.teamfiles{background:var(--blue-soft);border-radius:8px;padding:10px 12px;margin-top:14px} .sect.teamfiles h3{margin-top:0}
/* MFRS module: trial balance import */
ul.plain{list-style:none;padding:0;margin:8px 0 0}
ul.plain li{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:7px 0;border-bottom:1px solid var(--rule);font-size:14px}
.err ul{margin:6px 0 0;padding-left:18px}
.atable.sheet th,.atable.sheet td{white-space:nowrap;padding:4px 8px;max-width:260px;overflow:hidden;text-overflow:ellipsis}
.atable.sheet thead th{position:sticky;top:0;background:var(--surface)}
.atable.sheet tbody th{color:var(--ink2);font-weight:500;text-align:right}
.atable.sheet .pick{background:var(--blue-bg,#e6f4fb)}
.atable.sheet tr.first td,.atable.sheet tr.first th{border-top:2px solid var(--blue)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .atable.sheet .pick{background:rgba(0,149,218,.18)}}
:root[data-theme="dark"] .atable.sheet .pick{background:rgba(0,149,218,.18)}
/* MFRS module: mapping */
.atable.map td{vertical-align:top}
.atable.map .slabel{display:inline-block;margin-bottom:4px}
/* MFRS module: the Working papers tab as steps */
.wpsteps{list-style:none;padding:0;margin:12px 0 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px}
.wpsteps li button{display:flex;gap:10px;align-items:flex-start;width:100%;text-align:left;padding:10px 12px;border:1px solid var(--rule);border-radius:8px;background:var(--surface);color:var(--ink);font:inherit;cursor:pointer}
.wpsteps li.done button{background:var(--green-bg);border-color:transparent}
.wpsteps .n{flex:none;display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:var(--navy);color:#fff;font-weight:600;font-size:13px}
.wpsteps li.done .n{background:var(--green)}
ul.todo li{align-items:center;flex-wrap:nowrap} ul.todo li>span{flex:1}

/* practice management (public/practice.js) */
.px-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:0 16px}
.px-grid select,.px-grid input{width:100%}
.px-due{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;padding:2px 8px;border-radius:3px;white-space:nowrap}
.px-due::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.px-overdue{background:var(--red-bg);color:var(--red)} .px-soon{background:var(--amber-bg);color:var(--amber)} .px-ok{background:var(--green-bg);color:var(--green)} .px-done{color:var(--ink2)}
.px-filters{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:12px}
.px-filters select{width:auto;max-width:220px}
.px-board{display:grid;grid-template-columns:var(--cols,repeat(3,minmax(0,1fr)));gap:16px;margin-top:16px;align-items:start}
.px-col{display:flex;flex-direction:column;gap:10px;min-width:0}
.px-col h2{font-size:16px;margin:0}
.px-cardtop{display:flex;justify-content:space-between;gap:8px;align-items:center}
.px-two{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:16px;margin-top:16px;align-items:start}
.px-two>.panel{margin:0}
.px-inline{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.px-inline input,.px-inline select{width:auto;flex:1;min-width:160px}
.px-steps li{display:flex;gap:6px;flex-wrap:wrap;align-items:center;padding:4px 0}
.px-checks{display:flex;gap:6px 16px;flex-wrap:wrap}
@media (max-width:800px){.px-board,.px-two{grid-template-columns:minmax(0,1fr)}}
ul.px-steps li{justify-content:flex-start}
.px-timer{display:inline-flex;gap:6px;align-items:center;background:rgba(255,255,255,.15);border-radius:4px;padding:2px 8px;font-size:13px}
.px-timer a{color:inherit}
.px-timer{flex-wrap:wrap;max-width:100%}.px-timer select{max-width:min(220px,60vw);font-size:13px;padding:2px 4px} /* stopping asks for the activity (21 November 2026) */
.px-cell{width:64px;text-align:right;padding:4px 6px}
/* My timesheet (Timesheet round 1, 25 November 2026): the week and its progress on top, one line per job and activity,
   narrow shaded weekends, a note mark per cell, billed time locked; under 600 px one day at a time. Colours from the
   theme's variables only, so light and dark need no rules of their own. */
.px-tstop{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}
.px-tstop h1{margin-right:auto}
.px-tsweek{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.px-tsweek .btn{min-width:32px;padding-left:8px;padding-right:8px}
.px-tsweek input.px-tsjump{width:150px;padding:4px 6px;font-size:13px}
.px-tsprog{display:flex;flex-direction:column;gap:4px;min-width:150px;font-size:13px;color:var(--ink2)}
.px-tsprog b{color:var(--ink)}
.px-tsprog i{display:block;height:8px;background:var(--bg);border:1px solid var(--rule);border-radius:4px;overflow:hidden}
.px-tsprog i b{display:block;height:100%;background:var(--blue)}
.px-tsprog.full i b{background:var(--green)} .px-tsprog.full span{color:var(--green)}
.px-tsshort{background:var(--amber-bg);color:var(--amber);border-radius:6px;padding:6px 12px;margin:8px 0 0;font-size:14px}
.px-tsshort a{color:inherit;font-weight:600}
.px-tsshort a[aria-current]{text-decoration:none}
.px-tspanelwrap{margin-top:12px}
.px-tsscroll{overflow-x:auto}
table.px-ts{table-layout:fixed;width:100%;min-width:760px}
table.px-ts th,table.px-ts td{padding:4px 6px;vertical-align:middle}
table.px-ts .px-tsrowh{width:auto;text-align:left;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
table.px-ts thead .px-tsrowh,table.px-ts tfoot .px-tsrowh{font-weight:600}
table.px-ts .px-dc{width:92px;text-align:right;white-space:nowrap}
table.px-ts .px-dc.px-wkend{width:58px;background:var(--bg);opacity:1}
table.px-ts .px-dc.px-wkend .px-cell{width:40px}
table.px-ts .px-tstot{width:64px;text-align:right}
table.px-ts th.px-hol,table.px-ts td.px-hol{background:var(--amber-bg)}
.px-holtag{display:block;font-size:11px;font-weight:500;color:var(--amber)}
table.px-ts tfoot td,table.px-ts tfoot th{border-top:2px solid var(--rule);font-weight:600}
table.px-ts .px-leaverow th,table.px-ts .px-leaverow td{color:var(--ink2)}
.px-cellw{display:inline-flex;align-items:center;gap:2px}
.px-cellw .px-cell{width:52px}
.px-nm,.px-lvx{border:0;background:none;padding:2px;cursor:pointer;color:var(--ink2);opacity:.35;line-height:0;border-radius:3px}
.px-nm:hover,.px-nm:focus-visible,.px-nm.has,.px-lvx:hover,.px-lvx:focus-visible{opacity:1}
.px-nm.has{color:var(--blue-deep)}
.px-lvx{line-height:1;font-size:14px}
.px-nmi,.px-lock{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vertical-align:-1px}
.px-cellmark{color:var(--ink2);padding:2px;line-height:0}
.px-cell:disabled{background:var(--bg);color:var(--ink2)}
.px-billed{white-space:nowrap;color:var(--ink2);font-size:13px}
.px-tsbox{border:1px solid var(--rule);border-radius:8px;padding:10px 14px;margin-top:12px;background:var(--bg)}
.px-tsbox h3{margin:0 0 8px;font-size:15px}
.px-tsbox.px-tsaddbox .px-grid{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
.px-tsbox select[size]{width:100%;margin-top:6px}
.px-tsfoot{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px}
.px-tshelp{margin:0 0 0 8px;line-height:1.4}
table.px-ts th.px-today{color:inherit;font-weight:700}
.px-tsday{display:none}
@media (max-width:600px){
  .px-tstop h1{flex-basis:100%}
  .px-tsprog{flex-basis:100%}
  .px-tsday{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
  table.px-ts{min-width:0}
  table.px-ts .px-off{display:none}
  table.px-ts .px-dc,table.px-ts .px-dc.px-wkend{width:96px}
  table.px-ts .px-tsrowh{white-space:normal}
  .px-tshelp{margin:0;text-align:left}
  .px-tsbox.px-tsaddbox .px-grid{grid-template-columns:1fr}
}
.px-figs{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.px-figs>div{display:flex;flex-direction:column;gap:4px}
.px-figs b{font-size:20px}
.px-bar{display:block;height:8px;background:var(--bg);border-radius:4px;overflow:hidden}
.px-bar i{display:block;height:100%;background:var(--blue)}
.px-bar i.warn{background:var(--amber)} .px-bar i.over{background:var(--red)}
.px-fbbtn{position:fixed;left:calc(12px + env(safe-area-inset-left,0px));bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:30;border:1px solid var(--rule);background:var(--surface);color:var(--ink2);border-radius:16px;padding:6px 12px;font-size:13px;cursor:pointer}
.px-fbbtn:hover{color:var(--blue);border-color:var(--blue)}
.px-shade{position:fixed;inset:0;background:rgba(10,20,40,.35);z-index:40}
.px-drawer{position:fixed;left:12px;bottom:56px;width:min(380px,calc(100% - 24px));background:var(--surface);border:1px solid var(--rule);border-radius:8px;padding:16px;z-index:41;box-shadow:var(--shadow-pop)}
.px-drawer.px-right{left:auto;right:0;top:0;bottom:0;border-radius:0;width:min(420px,100%);overflow:auto;padding-top:calc(16px + env(safe-area-inset-top,0px))}
.px-drawer textarea{width:100%}
.px-palette{position:fixed;left:50%;top:12vh;transform:translateX(-50%);width:min(620px,calc(100% - 32px));background:var(--surface);border:1px solid var(--rule);border-radius:8px;z-index:41;overflow:hidden;box-shadow:var(--shadow-pop)}
.px-palette input{width:100%;border:0;border-bottom:1px solid var(--rule);padding:14px 16px;font-size:16px;border-radius:0}
.px-palette ul{list-style:none;margin:0;padding:6px;max-height:50vh;overflow:auto}
.px-palette li{padding:9px 10px;border-radius:6px;display:flex;justify-content:space-between;gap:12px;cursor:pointer}
.px-palette li[aria-selected="true"]{background:var(--sel)}
.px-palette li small{color:var(--ink2)}
.px-palfoot{border-top:1px solid var(--rule);padding:8px 12px;font-size:12px;color:var(--ink2)}
ul.px-jobs li a{display:block;color:inherit;text-decoration:none}
ul.px-jobs li a:hover strong{color:var(--blue)}
kbd{font-family:inherit;font-size:12px;border:1px solid var(--rule);border-radius:3px;padding:0 4px;background:var(--bg);color:var(--ink2)}
/* Key labels inside a filled button (Save Enter, and the like) take the button's own text colour on a see-through box (21 November 2026: white on light was unreadable). */
.btn:not(.ghost) kbd{background:rgba(255,255,255,.15);border-color:rgba(255,255,255,.45);color:inherit}

.px-tpl{border-top:1px solid var(--rule);padding-top:12px;margin-top:12px}
.px-tpl textarea{font-family:inherit}
.px-pre{white-space:pre-wrap;font-family:inherit;background:var(--bg);padding:12px;border-radius:8px}

/* Staff layout: the left menu (public/practice.js, shell) */
.px-shell{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100vh;flex:1}
.px-shell.slim{grid-template-columns:80px minmax(0,1fr)}
/* The menu a darker navy, its boxes (Search, Record time, Notifications) and foot lighter (partner, 22 November 2026). */
.px-nav{background:#14254f;color:#fff;position:sticky;top:0;height:100vh;overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.25) transparent;display:flex;flex-direction:column;padding:12px 10px calc(12px + env(safe-area-inset-bottom,0px));gap:2px;z-index:40}
.px-navtop{display:flex;align-items:center;justify-content:space-between;padding:2px 4px 10px}
.px-navbrand img{height:32px;width:auto;display:block} /* TKT ELARA, short logo (26 November 2026); 22 px to 32 px (2 December 2026: the A's two blue dots were too small to see) */
.px-ico{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.px-navbtn{background:none;border:0;color:inherit;cursor:pointer;padding:6px;border-radius:6px;display:inline-flex}
.px-navbtn:hover{background:rgba(255,255,255,.12)}
.px-navsearch{display:flex;align-items:center;gap:10px;width:100%;background:rgba(255,255,255,.14);border:0;border-radius:8px;color:#DCE6FA;padding:8px 10px;font:inherit;font-size:14px;cursor:pointer;margin-bottom:6px;text-align:left}
.px-navsearch:hover{background:rgba(255,255,255,.22)}
.px-navsearch kbd{margin-left:auto;font:inherit;font-size:11px;color:#DCE6FA;background:none;box-shadow:none;border:1px solid rgba(255,255,255,.35);border-radius:4px;padding:0 5px}
/* Group headings fold their group (21 November 2026): a button with an arrow (down while open); a folded group shows its counts added up. */
.px-navgroup{display:flex;align-items:center;gap:8px;width:100%;background:none;border:0;border-radius:6px;cursor:pointer;font-family:inherit;text-align:left;font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:#A9BCE6;padding:14px 10px 4px}
.px-navgroup:hover{color:#fff}
.px-navgroup:focus-visible{outline:2px solid #fff;outline-offset:1px}
.px-navgroup > span:first-child{flex:1}
.px-navgroup .px-ico{width:14px;height:14px;transform:rotate(90deg)}
.px-navfold.shut .px-navgroup .px-ico{transform:none}
.px-navgroup .px-badge{margin-left:0;text-transform:none;letter-spacing:0}
.px-navfold.shut .px-navitem{display:none}
.px-navitem{display:flex;align-items:center;gap:10px;width:100%;color:#fff;text-decoration:none;padding:8px 10px;border-radius:8px;font:inherit;font-size:14px;background:none;border:0;cursor:pointer;text-align:left;line-height:1.3}
.px-navitem:hover{background:rgba(255,255,255,.12)}
.px-navitem.on{background:var(--blue);color:#fff}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .px-navitem.on{background:#0074BE}}
:root[data-theme="dark"] .px-navitem.on{background:#0074BE}
.px-navitem:focus-visible,.px-navbtn:focus-visible,.px-navsearch:focus-visible{outline:2px solid #fff;outline-offset:1px}
.px-badge{margin-left:auto;background:#fff;color:var(--navy);border-radius:10px;font-size:11px;font-weight:600;padding:0 7px;line-height:18px}
.px-badge.alert{background:var(--badge-red);color:#fff}
/* Red only for what is urgent (the bell's unread notices); counts of things to do are calm (partner, 2 December 2026): white on
   the navy menu, TKT blue on a page (Approvals' sections). */
.px-badge.calm{background:var(--blue-soft);color:var(--blue-deep)}
/* The footer: its own darker panel, set apart from the menu items above. */
.px-navfoot{margin-top:auto;margin-bottom:6px;background:rgba(255,255,255,.1);border-radius:10px;padding:10px 8px 8px;display:flex;flex-direction:column;gap:6px}
.px-navfb{display:flex;align-items:center;gap:8px;width:100%;padding:7px 10px;border:1px solid rgba(255,255,255,.35);border-radius:8px;background:transparent;color:#DCE6FA;font:inherit;font-size:13px;cursor:pointer}
.px-navfb:hover{background:rgba(255,255,255,.08);color:#fff}
.px-avatar{flex:none;display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:#3b82f6;color:#fff;font-size:12px;font-weight:700;letter-spacing:.5px}
.px-me{display:flex;align-items:center;gap:10px;padding:2px 4px;font-size:13px;color:#fff;overflow:hidden}
.px-me .px-navlabel{display:flex;flex-direction:column;min-width:0;line-height:1.25}
.px-me .px-navlabel b,.px-me .px-navlabel small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.px-me .px-navlabel small{color:#A9BCE6;font-size:11px}
.px-melinks{display:flex;flex-wrap:wrap;gap:4px 14px;padding:0 4px;font-size:12px;white-space:nowrap}
.px-melinks .linkbtn{color:#DCE6FA;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.35)}
.px-melinks .linkbtn:hover{color:#fff;border-bottom-color:#fff}
.px-nav.slim .px-navlabel,.px-nav.slim .px-navgroup,.px-nav.slim .px-navsearch span,.px-nav.slim .px-navsearch kbd,.px-nav.slim .px-melinks,.px-nav.slim .px-navbrand{display:none}
.px-nav.slim .px-navfold.shut .px-navitem{display:flex} /* icons only: every item shows */
.px-nav.slim .px-navtop{justify-content:center}
.px-nav.slim .px-navitem,.px-nav.slim .px-navsearch,.px-nav.slim .px-me,.px-nav.slim .px-navfb{justify-content:center;padding:9px 0;position:relative}
.px-nav.slim .px-badge{position:absolute;top:2px;right:4px;margin:0;padding:0 5px;font-size:10px;line-height:15px}
.px-main{min-width:0;display:flex;flex-direction:column}
.px-strip{display:flex;align-items:center;gap:12px;padding:10px 20px;border-bottom:1px solid var(--rule);background:var(--surface);position:sticky;top:0;z-index:20;min-height:52px}
.px-strip .px-timer{background:var(--blue-soft);color:var(--ink)}
.px-strip .btn .px-ico{width:16px;height:16px;vertical-align:-3px}
.px-stripfill{flex:1}
.px-navtimer{display:flex;align-items:center;gap:8px;background:rgba(0,149,218,.25);border-radius:8px;color:#fff;padding:6px 10px;font-size:13px;margin-bottom:6px}
.px-navtimer a{color:#fff;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.px-navtimer .linkbtn{color:#DCE6FA}
.px-nav.slim .px-navtimer a,.px-nav.slim .px-navtimer .linkbtn{display:none}
.px-nav.slim .px-navtimer{justify-content:center;padding:6px 0}
@media (min-width:901px){.px-strip.empty{display:none}}
.px-menubtn{display:none;color:var(--ink)}
.px-menubtn:hover{background:var(--sel)}
.px-navshade{display:none}
.px-shell ~ .px-fbbtn{left:auto;right:calc(12px + env(safe-area-inset-right,0px))}
@media (min-width:901px){.px-shell ~ .px-fbbtn{display:none}}
@media (max-width:900px){
  .px-shell,.px-shell.slim{grid-template-columns:minmax(0,1fr)}
  .px-nav,.px-nav.slim{position:fixed;left:0;top:0;bottom:0;width:260px;transform:translateX(-100%);transition:transform .18s ease;box-shadow:none}
  .px-nav.open{transform:none}
  .px-nav.slim .px-navlabel,.px-nav.slim .px-navgroup,.px-nav.slim .px-navsearch span,.px-nav.slim .px-navsearch kbd,.px-nav.slim .px-melinks,.px-nav.slim .px-navbrand{display:revert}
  .px-nav.slim .px-navgroup{display:flex}
  .px-nav.slim .px-navfold.shut .px-navitem{display:none}
  .px-nav.slim .px-navitem,.px-nav.slim .px-navsearch,.px-nav.slim .px-me{justify-content:flex-start;padding:8px 10px}
  .px-slimbtn{display:none}
  .px-navshade{display:block;position:fixed;inset:0;background:rgba(10,16,32,.45);z-index:35}
  .px-menubtn{display:inline-flex}
  .px-strip{padding:8px 12px}
}
@media (prefers-reduced-motion:reduce){.px-nav{transition:none}}
/* The staff frame (partner, 2 December 2026; mock-ups "TKT ELARA redesign"): on a computer the menu floats, rounded, as frosted
   navy, nearly solid (a touch see-through, no blur: nothing scrolls behind it) over a soft brand light (fixed to the window, painted once, so scrolling costs nothing).
   Cards and tables stay solid so figures stay crisp. A device set to reduce transparency gets a solid menu. Phones keep the
   sliding menu as it was. The still network fills the menu's empty space above its foot (.px-navnet grows into the space
   left, so it is never behind a menu item and simply disappears when the menu is full). */
.px-shell::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:var(--page)}
/* The staff pages' background (partner, 2 December 2026, option B, light "Gentle"; public/js/staff-net.js): a clustered network
   on two canvases fixed to the window beside the menu, over the wash and under everything else (drawn once per window size
   and theme, never as the page scrolls), no clicks, not printed. The boxes on top stay solid, with a soft shadow and a
   faint border, so the network shows only in the gaps and margins, never behind words or figures. */
.px-bgnet,.px-bglight{position:fixed;top:0;left:248px;width:calc(100vw - 248px);height:100vh;z-index:-1;pointer-events:none;display:block}
.px-shell.slim>.px-bgnet,.px-shell.slim>.px-bglight{left:80px;width:calc(100vw - 80px)}
@media (max-width:900px){.px-bgnet,.px-bglight,.px-shell.slim>.px-bgnet,.px-shell.slim>.px-bglight{left:0;width:100vw}}
@media print{.px-bgnet,.px-bglight{display:none}}
.px-shell .panel{border-color:var(--card-rule);box-shadow:var(--shadow-soft)}
.px-shell .panel .panel{box-shadow:none}
.px-shell .lv-scroll{background:var(--surface)}
.px-navnet{flex:1 1 0;min-height:0;margin:0 -10px;pointer-events:none;background:var(--net-on-navy);opacity:.28;
  -webkit-mask:url(/img/net-side.svg) center bottom/cover no-repeat;mask:url(/img/net-side.svg) center bottom/cover no-repeat}
@media (min-width:901px){
  .px-nav{top:12px;height:calc(100vh - 24px);margin:12px 0 12px 12px;border-radius:22px;border:1px solid rgba(255,255,255,.12);box-shadow:0 10px 30px rgba(10,20,45,.25);
    background:var(--railglass);overflow:hidden}
  /* Only the links scroll (partner, 2 December 2026: the menu's own scrollbar sat on its rounded edge): search, Record time and
     the bell stay at the top, the foot at the bottom; the thin scrollbar sits beside the links and shows only while the
     pointer is over the menu or a link has the keyboard. */
  .px-nav>nav{flex:0 1 auto;min-height:0;overflow-y:auto;margin-right:-6px;padding-right:6px;scrollbar-width:thin;scrollbar-color:transparent transparent}
  .px-nav:hover>nav,.px-nav>nav:focus-within{scrollbar-color:rgba(255,255,255,.28) transparent}
  .px-navitem,.px-navsearch{border-radius:12px}
}
@media (prefers-reduced-transparency:reduce){.px-nav{background:var(--rail)}.px-jumps{background:var(--bg)}}
/* Acceptance form questions (stage P2a) */
.px-q{border-left:3px solid var(--rule);padding:6px 0 8px 12px;margin:10px 0}
.px-q.risky{border-left-color:var(--amber)}
.px-q textarea,.px-q input[type=text]{width:100%}
.px-inline input[type=radio],.px-inline input[type=checkbox]{flex:none;min-width:0;width:auto;margin:0}
.px-q label.radio{display:inline-flex;align-items:center;gap:6px}
/* The KYC form (partner, 24 November 2026): a thin, subtle line between its numbered questions and between its
   sub-sections; --rule switches with the theme, so light and dark need no rule of their own. A link-looking button
   (Open beside PDF, "How to identify them") in the theme's blue. */
.px-kycform .px-q+.px-q{border-top:1px solid var(--rule);padding-top:10px}
.px-alink{background:none;border:0;padding:0;cursor:pointer;font-family:inherit;color:var(--blue);text-decoration:underline}
a.px-alink{color:var(--blue)}
.atable td>a.px-alink:not(.btn){text-decoration:underline} /* PDF beside Open looks like a link too */
/* KYC tab polish (partner, 24 November 2026): one heading size per level, answers sized to their content, the people
   tables with the same columns in every section, and action links that wrap whole instead of being cut off. Colours
   come from the theme's tokens, so light and dark need no rules of their own. */
.px-qt{margin:0 0 6px;font-size:15px;font-weight:600;line-height:1.35}
.px-q .px-q .px-qt{font-size:14px}
.px-kycform>h3,.px-kycform .px-q h3{font-size:15px;margin:14px 0 8px}
.px-kycform>h3{padding-top:12px;border-top:1px solid var(--rule)}
.px-ext>h3{font-size:17px;margin:0 0 8px}
.px-ext{border-top:2px solid var(--blue);padding-top:12px;margin-top:14px}
.px-kycform select{width:auto;min-width:200px;max-width:100%}
.px-kycform .px-grid select{width:100%;min-width:0}
.px-kycform .px-inline select{flex:0 1 auto}
.px-grid-end{align-items:end}
.px-ppwrap{overflow-x:auto;max-width:100%}
.px-pptable{table-layout:fixed;min-width:640px}
.px-pptable .c-name{width:26%} .px-pptable .c-role{width:15%} .px-pptable .c-pep{width:18%} .px-pptable .c-sx{width:15%} .px-pptable .c-act{width:26%}
.px-pptable.ro .c-name{width:37%} .px-pptable.ro .c-sx{width:30%}
.px-pptable td{overflow-wrap:anywhere}
.px-pptable .linkbtn{white-space:nowrap}
/* A long PEP type wraps inside its column instead of running over the sanctions check (fifth round, 24 November 2026). */
.px-pptable .px-due{white-space:normal;display:inline-block;max-width:100%;line-height:1.3}
.px-acts .linkbtn{margin:0 8px 2px 0}
.px-pptable ul.plain{margin:0}
.px-pptable ul.plain li{justify-content:flex-start;gap:6px;padding:0 0 4px;border:0}
ul.px-rflist li{display:block}
.px-q>h3:first-child{margin-top:0}
.px-kycform .px-tip{margin:6px 0 10px}
/* KYC tab, fourth round (partner, 24 November 2026): fewer lines. Each numbered question is a plain block with one light
   divider between questions; a sub-section inside a question (Senior management, Owners...) gets a small heading and no
   box or border of its own. Every clickable link on the tab is the theme's blue (Take off and Delete stay red). Open, PDF
   and Delete in the assessments list are small buttons. Colours come from the theme's tokens (--rule, --blue, --red),
   which switch with light and dark, so no dark rule of its own is needed. */
.px-kycform .px-q{border-left:0;padding:10px 0 12px;margin:0}
.px-kycform .px-q+.px-q{border-top:1px solid var(--rule);padding-top:12px}
.px-kycform .px-q .px-q{padding:6px 0 4px;margin:4px 0 0}
.px-kycform .px-q .px-q+.px-q{border-top:0;padding-top:6px}
.px-kycform .px-q .px-q>.px-qt{font-size:13px;text-transform:uppercase;letter-spacing:.03em;color:var(--ink2);margin:6px 0 4px}
.px-kycform .px-sub{border:0;background:none;padding:8px 0 0}
.px-kyctab a:not(.btn),.px-kyctab .px-alink{color:var(--blue)}
.px-kycfacts{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px 16px;margin:10px 0 6px} /* the KYC card (24 November 2026) */
.px-kycfacts dt{font-size:12px;color:var(--ink2)}
.px-kycfacts dd{margin:2px 0 0}
.px-kycsub{margin-top:0}
.px-kycsubbody{padding-top:10px}
.px-kabtns{white-space:nowrap}
.px-kabtns .btn{margin:0 6px 0 0}
ul.px-aisearch{margin:4px 0 0}
ul.px-aisearch li{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:2px 10px;padding:3px 0;border:0}
ul.px-aisearch li>b{min-width:180px}
/* The KYC tab, fifth round (24 November 2026): short help lines as bullets, even spacing, the black-list banner. Colours
   are the theme's tokens, so light and dark need no rules of their own. */
ul.px-help{margin:2px 0 8px;padding-left:18px}
ul.px-help li{margin:1px 0;padding:0;border:0;display:list-item}
.px-tight{margin:0 0 4px}
.px-gap{margin:6px 0 0}
.px-kpart{margin:10px 0 0}
.px-record{margin-top:12px;padding-top:10px;border-top:1px dashed var(--rule)}
.px-record .px-inline{flex-wrap:wrap;align-items:center;gap:6px 10px}
.px-record input[type=date],.px-endrole input[type=date]{width:auto;max-width:170px}
.px-ainote{margin:2px 0 4px;padding:4px 8px;border-left:3px solid var(--amber);background:var(--amber-bg);color:var(--ink);border-radius:0 4px 4px 0;display:inline-block}
.px-banner-bad{margin:8px 0 12px;padding:10px 12px;border-left:4px solid var(--red);background:var(--red-bg);color:var(--red);border-radius:0 6px 6px 0;font-size:14px}
.px-banner-bad b{color:var(--red)}
.px-endrole{display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px 6px;margin:2px 0}
.px-tally{flex-wrap:wrap;align-items:center;gap:6px 12px;margin:0 0 6px}
.px-pepline{margin:8px 0 0}
.px-rfacts{display:inline-flex;gap:10px;margin-left:8px}
.px-signtable{min-width:480px}
.px-signtable td:first-child{width:28%;font-weight:600;white-space:nowrap}
.px-kycform .px-head h3{margin:0}
/* Polish (7 November 2026): short page introductions, client section links, calmer tables */
/* Short help (UI round, 27 November 2026): TKT.intro(): one line, then the details as short points in a fold. */
.px-lede{margin:4px 0 10px;max-width:860px;line-height:1.45}
.px-more{margin:-4px 0 12px;max-width:860px}
.px-more>summary{cursor:pointer;color:var(--blue-deep);font-size:13px;width:max-content}
.px-points{margin:6px 0 0;padding-left:18px;color:var(--ink2);font-size:13.5px}
.px-points li{margin:3px 0;line-height:1.45}
/* UI round B (27 November 2026) */
.px-tsbar{display:flex;align-items:center;gap:8px 18px;flex-wrap:wrap;padding:6px 12px;border:1px solid var(--rule);border-radius:8px;background:var(--surface)}
.px-tsbar .px-tsprog{padding-left:16px;border-left:1px solid var(--rule)}
.px-tspanelwrap > .px-tshelp{margin:10px 0 0}
.panel .px-lede{font-size:13.5px;margin-top:2px}
.panel .px-points{font-size:13px}
.px-thsub{display:block;font-weight:400;font-size:12px;color:var(--ink2)}
@media (max-width:600px){.px-tsbar{width:100%}.px-tsbar .px-tsprog{padding-left:0;border-left:0}}
.px-intro{display:-webkit-box;-webkit-line-clamp:1;line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;cursor:pointer;max-width:860px}
.px-intro::after{content:''}
.px-intro:not(.open):hover{color:var(--ink)}
.px-intro.open{display:block;cursor:default}
.px-jumps{display:flex;flex-wrap:wrap;gap:6px;margin:16px 0 0;position:sticky;top:0;z-index:5;background:var(--barglass);padding:8px 0} /* see-through a little over the frame's soft light (2 December 2026) */
.px-jump{border:1px solid var(--rule);background:var(--surface);color:var(--ink);border-radius:16px;padding:4px 12px;font:inherit;font-size:13px;cursor:pointer}
.px-jump:hover{border-color:var(--blue);color:var(--blue)}
.px-main section[id^=px-s-]{scroll-margin-top:64px}
.atable td.r,.atable th.r{font-variant-numeric:tabular-nums}
.top h1{margin-bottom:4px}
.px-rf summary{cursor:pointer;padding:4px 0}
.px-rf{border-bottom:1px solid var(--rule);padding:4px 0}
/* Approvals and Settings (8 November 2026) */
.px-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px;margin-top:12px}
.px-card{display:flex;flex-direction:column;gap:2px;background:var(--surface);border:1px solid var(--rule);border-radius:10px;padding:12px 14px;text-decoration:none;color:var(--ink)}
.px-card:hover{border-color:var(--blue)}
.px-card-n{font-size:26px;font-weight:600;color:var(--navy);line-height:1.1}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .px-card-n{color:var(--blue)}}
:root[data-theme="dark"] .px-card-n{color:var(--blue)}
.px-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.px-mslist li{display:flex;align-items:center;gap:10px;padding:7px 0;border-bottom:1px solid var(--rule)}
.px-mslist li:last-child{border-bottom:0}
.px-mslist .px-ms{flex:0 0 auto;width:26px;height:26px;padding:0;display:inline-flex;align-items:center;justify-content:center}
.px-mstext{flex:1;min-width:0;display:flex;flex-direction:column}
.px-due-line{padding:8px 0}
.px-waittiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px}
.px-waittile{display:flex;align-items:center;gap:10px;border:1px solid var(--rule);border-radius:8px;padding:10px 12px;text-decoration:none;color:var(--ink);background:var(--surface)}
.px-waittile:hover{border-color:var(--blue)}
.px-waittile b{font-size:22px;color:var(--blue-deep);line-height:1}
.px-waittile span{font-size:13px;line-height:1.3}
.px-jobgroup{font-size:14px;margin:14px 0 4px;color:var(--muted)}
.px-jobs .px-jobline{display:flex;flex-direction:column;min-width:0;flex:1}
ul.px-jobs li a{display:flex;align-items:center;gap:10px}
.px-jobs li a .px-due{flex:0 0 auto}
.px-figs-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.px-glance{margin:-6px 0 14px;line-height:1.7}
.px-line{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px}
.px-line .btn{margin-left:auto}
/* Names in lists: underlined only on hover (12 November 2026); on staff pages never underlined: under the pointer the row
   tints and the name deepens (controls round, 2 December 2026). */
.atable td > a:not(.btn){text-decoration:none;transition:color var(--t-fast)}
.atable td > a:not(.btn):not(.px-shell *):is(:hover,:focus-visible){text-decoration:underline}
.px-head h2{margin:0}
.px-tabs{display:flex;flex-wrap:wrap;gap:4px;border-bottom:1px solid var(--rule);margin-top:12px} /* wrap rather than scroll sideways (21 November 2026) */
.px-tab{background:none;border:0;border-bottom:3px solid transparent;padding:8px 14px;font:inherit;font-size:14px;font-weight:600;color:var(--ink2);cursor:pointer;white-space:nowrap}
.px-tab.on{color:var(--navy);border-bottom-color:var(--blue)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .px-tab.on{color:var(--ink)}}
:root[data-theme="dark"] .px-tab.on{color:var(--ink)}
.px-settab > .crumbs,.px-settab > .top{display:none}
/* Interface pass 2 (8 November 2026): summary cards, calmer tables, one clear main action */
.px-figs>div{background:var(--surface);border:1px solid var(--rule);border-radius:10px;padding:12px 14px}
.px-figs b{color:var(--navy)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .px-figs b{color:var(--ink)}}
:root[data-theme="dark"] .px-figs b{color:var(--ink)}
.atable tbody tr:nth-child(even){background:var(--stripe)}
.atable thead th{position:sticky;top:0;background:var(--surface);z-index:1;box-shadow:inset 0 -1px 0 var(--rule)}
.btn:not(.ghost){box-shadow:0 1px 0 rgba(0,0,0,.08)}
.btn.ghost{background:transparent}
.px-tip{background:var(--blue-soft);border-left:3px solid var(--blue);padding:8px 12px;border-radius:0 6px 6px 0;font-size:14px}
/* The KYC form's definitions (23 November 2026): an "i" beside a term opens the form's definition below the question. */
.px-i{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;margin-left:6px;padding:0;border:1px solid var(--blue);border-radius:50%;background:transparent;color:var(--blue);font-family:inherit;font-style:italic;font-weight:600;font-size:11px;line-height:1;cursor:pointer;vertical-align:middle}
.px-i.on,button.px-i:hover{background:var(--blue);color:#fff}
.px-defbox{margin:4px 0 8px;padding:8px 12px;border-left:3px solid var(--blue);background:var(--blue-soft);border-radius:0 6px 6px 0}
.px-defbox p{margin:4px 0 0}
.px-fold>summary{cursor:pointer;list-style:none}
.px-fold>summary::-webkit-details-marker{display:none}
.px-fold>summary::before{content:'▸';display:inline-block;width:18px;color:var(--ink2)}
.px-fold[open]>summary::before{content:'▾'}
.px-first{border-left:4px solid var(--blue)}
.px-steps{margin:8px 0 0;padding-left:20px}
.px-steps li{margin:6px 0}
.px-steps li.done{color:var(--ink2);text-decoration:line-through}

.px-grid>div{min-width:0}
.px-grid input,.px-grid select,.px-grid textarea{max-width:100%}
details input,details select,details textarea{box-sizing:border-box}
/* Staff scorecard (8 November 2026) */
.px-bar{position:relative}
.px-bar-lg{height:10px;margin:6px 0 4px}
.px-mark{position:absolute;top:0;bottom:0;width:2px;background:var(--ink);opacity:.7}
.px-score>div{display:flex;flex-direction:column;gap:2px}
.px-warn{color:var(--amber)}
/* Staff scorecards round 1 (26 November 2026): guest / left marks, the closed line, corrections under their month, the total row */
.px-sctag{display:inline-block;margin-left:4px;padding:0 7px;border-radius:999px;border:1px solid var(--rule);color:var(--ink2);font-size:11px;font-weight:600;line-height:17px;vertical-align:middle;white-space:nowrap}
.px-closed{color:var(--ink2);margin:4px 0 0}
.px-adjrow td{color:var(--ink2);border-top:0}
/* Suggested fee shares and leave by month (27 November 2026); theme variables, so no dark rules */
.px-sctag.px-sugtag{border-color:var(--amber);color:var(--amber);background:var(--amber-bg)}
.px-leavetable .px-leavemonth th{padding-top:14px;border-bottom:1px solid var(--rule);font-weight:600}
.px-leavetable tfoot th{border-top:2px solid var(--rule);font-weight:700}
.px-sctable tfoot th{border-top:2px solid var(--rule);text-align:left}
.px-sctable tfoot th.r{text-align:right}
.px-sctable td.r{white-space:nowrap}
@media (max-width:600px){.px-sctable td,.px-sctable th{padding-left:6px;padding-right:6px}}
/* Quotation referral fee (8 November 2026) */
.px-chip{border:1px solid var(--rule);background:transparent;border-radius:6px;padding:3px 8px;font:inherit;font-size:13px;cursor:pointer;color:var(--ink)}
.px-chip:hover{border-color:var(--blue)}
a.px-chip{text-decoration:none;display:inline-block}
.px-chip-bad{border-color:var(--red);color:var(--red)}
.px-chip-warn{border-color:var(--amber);color:var(--amber)}
.px-chip.on{background:var(--blue-soft);border-color:var(--blue);color:var(--navy);font-weight:600}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .px-chip.on{color:var(--ink)}}
:root[data-theme="dark"] .px-chip.on{color:var(--ink)}
/* Feedback screenshots (8 November 2026) */
.px-fbshots{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
/* Feedback reply box, My feedback (27 November 2026); colours from the theme variables, so no dark rules */
.pill.green{background:var(--green-bg);color:var(--green)}
.px-fbreply{display:flex;flex-direction:column;gap:6px;min-width:220px;white-space:normal}
.px-fbreply textarea{width:100%;min-height:60px}
.px-myfb li{padding:10px 0;border-bottom:1px solid var(--rule)}
.px-myfb li:last-child{border-bottom:0}
.px-fbans{background:var(--green-bg);border-radius:6px;padding:6px 10px;margin:6px 0 0}
.px-fbshot{display:flex;flex-direction:column;gap:2px;max-width:140px;text-decoration:none;color:var(--ink)}
.px-fbshot img{max-width:140px;max-height:100px;border:1px solid var(--rule);border-radius:6px;object-fit:cover}


/* Broadcasts (practice.js) */
.px-starters{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px}
.px-starter{display:flex;flex-direction:column;gap:4px;text-align:left;padding:14px;border:1px solid var(--rule);border-radius:10px;background:var(--surface);color:var(--ink);font:inherit;cursor:pointer}
.px-starter:hover{border-color:var(--blue)}
.px-step{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:var(--navy);color:#fff;font-size:13px;margin-right:6px;vertical-align:2px}
.px-seg{margin:8px 0}
.px-segopt input{position:absolute;opacity:0;pointer-events:none}
.px-picklist{max-height:260px;overflow:auto;border:1px solid var(--rule);border-radius:8px;padding:8px;margin-top:8px;columns:2 240px}
.px-picklist .chk{display:flex;margin:0 0 4px;break-inside:avoid}
.px-bcfiles{display:flex;flex-wrap:wrap;gap:12px}
.px-bcfile{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--rule);border-radius:8px;padding:8px;max-width:340px}
.px-bcfile img{width:96px;height:96px;object-fit:cover;border-radius:6px}
.px-bcdoc{width:64px;height:80px;border-radius:6px;background:var(--blue-soft);display:flex;align-items:center;justify-content:center;font-weight:600;color:var(--navy)}
.px-mailprev{border:1px solid var(--rule);border-radius:10px;overflow:hidden;max-width:640px;background:var(--surface)}
.px-mailhead{display:flex;flex-direction:column;gap:2px;padding:10px 14px;border-bottom:1px solid var(--rule)}
.px-mailbody{padding:14px;font-family:'Trebuchet MS',Arial,sans-serif;font-size:15px;line-height:1.55}
.px-mailbody img{max-width:100%;height:auto;display:block;margin-bottom:14px;border-radius:4px}
.px-mailatt{display:flex;flex-wrap:wrap;gap:8px;padding:0 14px 10px}
.px-mailatt span{border:1px solid var(--rule);border-radius:6px;padding:4px 8px;font-size:13px}
.px-mailfoot{padding:8px 14px;border-top:1px solid var(--rule)}
.px-wabubble{background:#dcf8c6;color:#1d2433;border-radius:10px;padding:10px 12px;max-width:420px;margin:8px 0;font-size:14px;line-height:1.5}
.px-todo{margin:0 0 10px;padding-left:18px;color:var(--warn,#9a5b00)}
/* Broadcasts in four steps, the Who list and the template library (25 November 2026); colours from the variables, so light and dark alike */
.px-bcsteps{display:flex;flex-direction:column;gap:16px;margin-top:16px}
.px-bcstep h2{margin-bottom:8px}
.px-bcstep+.px-bcstep,.px-bcfigs+.px-bcstep{margin-top:16px}
.px-bcstep h3{margin:18px 0 8px}
.px-bcstep>.px-head{margin-bottom:8px}
.px-bcfilters{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:10px 0 4px}
.px-bcfilters>.small{margin-right:4px}
.px-bcopts{border:1px solid var(--rule);border-radius:8px;padding:10px 12px;margin:6px 0 4px;background:var(--bg);columns:3 200px;column-gap:16px}
.px-bcopts .chk{display:flex;margin:0 0 4px;break-inside:avoid}
.px-bcopts-foot{column-span:all;display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:6px}
.px-bcsum{margin:14px 0 4px;font-size:16px;color:var(--navy)}
.px-bcnobody{margin:0 0 6px}
.px-bcnobody summary{cursor:pointer;color:var(--amber)}
.px-bclist{list-style:none;margin:6px 0 0;padding:4px;border:1px solid var(--rule);border-radius:8px;max-height:300px;overflow:auto;columns:2 280px;column-gap:4px}
.px-bclist li{display:flex;align-items:center;gap:8px;padding:3px 4px 3px 8px;border-radius:6px;break-inside:avoid}
.px-bclist li:hover{background:var(--sel)}
.px-bcname{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.px-bcx{border:0;background:none;color:var(--ink2);cursor:pointer;font:inherit;font-size:13px;width:24px;height:24px;border-radius:50%;flex:none}
.px-bcx:hover,.px-bcx:focus-visible{background:var(--red-bg);color:var(--red)}
.px-bcadd{margin-top:12px;max-width:520px}
.px-bcadd input{width:100%}
.px-bchits{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.px-bcwhen{align-items:flex-start;max-width:420px}
.px-bcwhen>div{flex:1}
.px-bcchoose{margin-top:16px;border-color:var(--blue)}
.px-bctpl{display:flex;flex-direction:column;gap:4px}
.px-bctpl>.px-starter{flex:1}
.px-bctpl-acts{display:flex;gap:10px;padding:0 4px}
.px-bctpl-acts .danger{color:var(--red)}
.px-bcsaveas{max-width:520px}
.px-bcfigs{margin:14px 0 16px}
.px-bcfigs b.px-bcbad{color:var(--red)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .px-bcsum{color:var(--ink)} :root:not([data-theme="light"]) .px-bcfigs b.px-bcbad{color:var(--red)}}
:root[data-theme="dark"] .px-bcsum{color:var(--ink)} :root[data-theme="dark"] .px-bcfigs b.px-bcbad{color:var(--red)}
.px-st{display:inline-block;padding:1px 9px;border-radius:999px;font-size:12.5px;font-weight:600;background:var(--blue-soft);color:var(--ink)}
.px-st.done{background:var(--green-bg);color:var(--green)} .px-st.soon{background:var(--amber-bg);color:var(--amber)}
.px-st.overdue{background:var(--red-bg);color:var(--red)} .px-st.off{background:var(--bg);color:var(--ink2)}
.top .px-st{margin-left:10px;align-self:center}
.px-ncbtns{display:flex;gap:8px;flex-wrap:wrap} /* New prospect and New client (21 November 2026) */

/* Interface, third pass (8 November 2026) */
.px-dl{display:grid;grid-template-columns:1fr 1fr;gap:0 32px;margin:6px 0 4px}
@media (max-width:900px){.px-dl{grid-template-columns:1fr}}
.px-dlrow{display:grid;grid-template-columns:minmax(120px,40%) 1fr;gap:12px;padding:9px 0;border-bottom:1px solid var(--rule)}
.px-dl dt{color:var(--ink2);font-size:13.5px}
.px-dl dd{margin:0;min-width:0;overflow-wrap:anywhere}
.px-none{color:var(--ink2);opacity:.7;font-size:13.5px}
.px-daychips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.px-daychip{display:inline-flex;flex-direction:column;align-items:center;min-width:54px;padding:5px 8px;border:1px solid var(--rule);border-radius:8px;background:var(--surface);color:var(--ink);font:inherit;font-size:12.5px;cursor:pointer}
.px-daychip b{font-size:13px}.px-daychip span{color:var(--red)}
.px-daychip:hover,.px-daychip:focus-visible{border-color:var(--blue)}
.px-waitlist li{padding:5px 0}
th.px-today,td.px-today{background:var(--blue-soft)}
th.px-today{color:var(--navy)}
th.px-wkend,td.px-wkend{opacity:.72}
.px-grouprow td{background:var(--bg);border-top:1px solid var(--rule)}
.nowrap{white-space:nowrap}
.cl-svc{display:inline-block;padding:1px 8px;border-radius:999px;background:var(--blue-soft);color:var(--ink);font-size:12px;margin:1px 0}
.atable th.r{text-align:right}

/* Portfolio (practice.js) */
.px-pfdue{position:relative}
.px-ms{display:inline-flex;align-items:center;justify-content:center;min-width:46px;height:26px;padding:0 5px;border-radius:6px;border:1px solid transparent;font:inherit;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap}
.px-ms.none{background:var(--bg);border-color:var(--rule);color:var(--ink2)}
.px-ms.ok{background:var(--green-bg);color:var(--green);border-color:var(--green)}
.px-ms.started{background:var(--blue-soft);color:var(--ink)}
.px-pfmenu{position:absolute;z-index:30;top:100%;left:50%;transform:translateX(-50%);min-width:230px;display:flex;flex-direction:column;gap:6px;padding:10px;background:var(--surface);border:1px solid var(--rule);border-radius:10px;box-shadow:var(--shadow-pop);text-align:left}
.px-pfdue .px-pfmenu{left:0;transform:none}
.px-pfstatus{position:relative;min-width:170px}
.px-pfstatus .px-bar{margin:4px 0 2px;max-width:160px}
.px-pfstatus .px-pfmenu{left:auto;right:0;transform:none;min-width:min(300px,86vw)}
.px-pfopt{text-align:left;padding:7px 10px;border-radius:6px;border:0;background:transparent;color:var(--ink);font:inherit;font-size:13.5px;cursor:pointer}
.px-pfopt:hover,.px-pfopt:focus-visible{background:var(--sel)}
.px-pfmenu input{width:100%}
.px-eot{display:inline-block;font-size:12px;font-weight:600;color:var(--amber)}

.px-compose{border:1px solid var(--rule);border-radius:10px;padding:14px;margin-top:12px;background:var(--bg)}
.px-compose textarea{font-family:'Trebuchet MS',Arial,sans-serif}
/* What a client contact receives (Receives, 20 November 2026): one box per area, its items under it. */
.px-receives{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px;margin:6px 0}
.px-rcv-area{border:1px solid var(--rule);border-radius:8px;margin:0;padding:4px 10px 8px;min-width:0}
.px-rcv-area legend{padding:0 4px}
.px-rcv-area .chk{display:flex;margin:2px 0}

/* ---------- job schedule ---------- */
/* Job schedule (tidied, Kiang Peng, 21 November 2026): a toolbar in one row, the grid scrolling sideways on its own with the
   names in place, jobs a day on a blue that deepens a little (--sc1 to --sc4, set for light and dark), leave amber, a
   booking on a full day of leave red. */
.px-scpanel{min-width:0;max-width:100%}
.px-sctools{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px}
.px-sctools select{width:auto}
.px-sctools input[type=search]{width:auto;flex:0 1 220px;min-width:140px}
/* "Chosen people": the staff to tick, on a row of their own under the tools (22 November 2026). */
.px-scpickw{position:relative;display:inline-block}
.px-scpicks{position:absolute;top:calc(100% + 4px);left:0;z-index:20;width:280px;max-width:90vw;padding:8px;background:var(--surface);border:1px solid var(--rule);border-radius:8px;box-shadow:var(--shadow-pop)}
.px-scpicks input[type=search]{width:100%;margin:0 0 6px}
.px-scpickl{max-height:260px;overflow-y:auto}
.px-scpickl .chk{display:flex;align-items:baseline;gap:6px;margin:0;padding:4px 2px}
.px-scpickl .chk[hidden]{display:none}
.px-scpickf{display:flex;justify-content:space-between;align-items:center;margin-top:6px;padding-top:6px;border-top:1px solid var(--rule)}
.px-scper{display:inline-flex;align-items:center;gap:4px}
.px-scnm{min-width:150px;text-align:center}
.px-scwrap{overflow:auto;margin-top:12px;max-height:72vh;max-width:100%;border:1px solid var(--rule);border-radius:8px}
.px-sc{border-collapse:separate;border-spacing:0;font-size:12px;user-select:none}
.px-sc th,.px-sc td{border-right:1px solid var(--rule);border-bottom:1px solid var(--rule);padding:0}
.px-sc thead th{position:sticky;background:var(--surface);z-index:2}
.px-sc thead tr:first-child th{top:0;height:26px}
.px-sc thead tr:nth-child(2) th{top:26px}
.px-sc th.px-scm{text-align:left;padding:4px 8px;background:var(--sel);color:var(--ink);font-weight:600;letter-spacing:.02em;border-left:2px solid var(--blue)}
.px-sc th.px-scd{width:var(--scw);min-width:var(--scw);max-width:var(--scw);text-align:center;font-weight:600;line-height:1.2;padding:3px 0}
.px-sc th.px-scd span{display:block;font-weight:400;color:var(--ink2);font-size:11px}
.px-sc th.px-scd.off{background:var(--bg);color:var(--ink2);font-weight:400}
.px-sc th.px-scd.plan{background:var(--blue-soft);color:var(--ink)} /* the planned dates of the job the schedule is focused on */
.px-sc th.today{box-shadow:inset 0 -3px 0 var(--blue);color:var(--blue-deep)}
.px-sc .m1{border-left:2px solid var(--blue)} /* the first day of a month after the first */
.px-sc .px-scn{position:sticky;left:0;z-index:1;background:var(--surface);min-width:230px;max-width:230px;text-align:left;font-weight:400;padding:3px 8px;box-shadow:2px 0 0 var(--rule)}
.px-sc thead .px-scn{z-index:3;vertical-align:bottom}
.px-scwho{display:flex;gap:6px;align-items:baseline;background:none;border:0;padding:0;text-align:left;cursor:pointer;width:100%;line-height:1.3}
/* One line per person and per booking (Kiang Peng, 22 November 2026): name and grade, free days at the end; the details in the tooltip. */
.px-scnm1{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.px-scfreen{white-space:nowrap}
.px-scar{color:var(--ink2);width:10px}
.px-scwarn{color:var(--red);font-weight:600}
td.px-scc{width:var(--scw);min-width:var(--scw);height:28px;text-align:center;font-weight:600;color:var(--ink);white-space:nowrap;font-size:11.5px}
.px-scrow.can td.px-scc{cursor:cell}
.px-scc.off{background:var(--bg);color:var(--ink2);font-weight:400;font-size:11px}
.px-scc.n1{background-color:var(--sc1)} .px-scc.n2{background-color:var(--sc2)} .px-scc.n3{background-color:var(--sc3)} .px-scc.n4{background-color:var(--sc4)}
.px-scc.leave{background:var(--amber-bg);color:var(--amber)}
.px-scc.half{background-image:linear-gradient(135deg,var(--amber-bg) 0 50%,transparent 50%);color:var(--ink);font-size:10.5px;letter-spacing:-.02em}
.px-scc.clash{background:var(--red);color:var(--surface)}
td.px-scc.today{box-shadow:inset 1px 0 0 var(--blue),inset -1px 0 0 var(--blue)}
td.px-scc.pick{background:var(--blue);color:#fff}
.px-scsub th.px-scn{background:var(--bg);padding-left:24px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.px-scsub td{background:var(--bg)}
td.px-sclane{position:relative;height:28px}
.px-scbar{position:absolute;top:3px;height:22px;border-radius:5px;background:var(--navy);color:#fff;font-size:11px;line-height:22px;overflow:hidden;white-space:nowrap;display:flex;align-items:center}
.px-scbar.can{cursor:grab;background:var(--blue-deep)}
.px-scbar.drag{cursor:grabbing;opacity:.85;box-shadow:0 2px 8px rgba(0,0,0,.25)}
.px-sctext{flex:1;overflow:hidden;text-overflow:ellipsis;padding:0 6px}
/* A person's bookings on the job page's Team panel (22 November 2026). */
.px-tbline{margin-top:4px;display:flex;flex-wrap:wrap;gap:4px 6px;align-items:center}
.px-tbk{display:inline-flex;align-items:center;gap:2px;padding:1px 6px;border-radius:10px;background:var(--blue-soft);color:var(--ink);white-space:nowrap}
.px-tbk .linkbtn{font-size:14px;line-height:1;padding:0 2px}
.px-scgrip{width:7px;align-self:stretch;cursor:ew-resize;background:rgba(255,255,255,.25)}
.px-sclegend{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:10px;color:var(--ink2)}
.px-sclegend span{display:inline-flex;align-items:center;gap:4px}
.px-sclegend i.px-scc{display:inline-block;min-width:30px;height:20px;line-height:20px;padding:0 3px;text-align:center;font-style:normal;font-weight:600;border:1px solid var(--rule);border-radius:3px;font-size:11px;color:var(--ink)}
.px-sclegend i.px-scc.leave{color:var(--amber)} .px-sclegend i.px-scc.clash{color:var(--surface)} .px-sclegend i.px-scc.off{color:var(--ink2)}
/* The booking form: a card in three steps. */
.px-scform{border:1px solid var(--rule);border-radius:10px;padding:14px 16px;margin-top:12px;background:var(--surface);box-shadow:0 1px 3px rgba(0,0,0,.06)}
.px-scsteps{list-style:none;padding:0;margin:10px 0 0;display:flex;flex-direction:column;gap:14px}
.px-scsteps>li{display:flex;gap:12px;align-items:flex-start}
.px-scstep{flex:none;width:24px;height:24px;border-radius:50%;background:var(--navy);color:#fff;font-weight:600;font-size:13px;line-height:24px;text-align:center}
.px-scstepb{flex:1;min-width:0}
.px-scstepl{font-weight:600;margin:1px 0 6px}
.px-scro{margin:0}
.px-scstepb>select{max-width:420px}
input.px-scjq{width:100%;max-width:760px}
.px-scj-hits{list-style:none;padding:0;max-width:760px;border:1px solid var(--rule);border-radius:8px;overflow:hidden;margin:4px 0}
.px-scj-hits li + li{border-top:1px solid var(--rule)}
.px-scj-hits button{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:var(--surface);color:var(--ink);border:0;padding:8px 12px;cursor:pointer;font:inherit}
.px-scj-hits button:hover,.px-scj-hits li[aria-selected="true"] button{background:var(--sel)}
.px-scj-who{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.35;overflow-wrap:anywhere}
.px-scj-code{font-size:12px;font-weight:600;color:var(--ink2);border:1px solid var(--rule);border-radius:6px;padding:0 5px;margin-left:4px;background:var(--bg)}
.px-scj-due{flex:none;font-size:12px;color:var(--ink2);border:1px solid var(--rule);border-radius:999px;padding:1px 8px;white-space:nowrap}
.px-scj-due.late{color:var(--red);border-color:var(--red)}
.px-scjcard{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;max-width:760px;border:1px solid var(--rule);border-left:3px solid var(--blue);border-radius:8px;padding:8px 12px;background:var(--sel)}
.px-scjcard>span{flex:1;min-width:0;overflow-wrap:anywhere}
.px-scfreeh{margin:10px 0 4px}
.px-scfree{display:flex;flex-wrap:wrap;gap:6px}
.px-scpick{text-align:left;border:1px solid var(--rule);background:var(--surface);color:var(--ink);border-radius:999px;padding:3px 12px;cursor:pointer;font-size:13px;line-height:1.4}
.px-scpick.free{border-color:var(--green)}
.px-scpick.on{box-shadow:inset 0 0 0 2px var(--blue);background:var(--sel)}
.wrap:has(.px-sc){max-width:none}
/* Job schedule round 1 (26 November 2026): bookings on done jobs greyed (variables only, so light and dark need no
   rules of their own); the job's due date: a red line in the booking's row, a red corner on the person's day and the
   focused job's date; the filters; the job page's booked days. */
.px-scbar.done{background:var(--rule);color:var(--ink2)}
.px-scdue{position:absolute;top:0;bottom:0;width:2px;background:var(--red);pointer-events:auto;z-index:1}
.px-scdue::before{content:'';position:absolute;top:0;left:-4px;border-style:solid;border-width:6px 5px 0 5px;border-color:var(--red) transparent transparent transparent}
td.px-scc.due,.px-sclegend i.px-scc.due{position:relative}
td.px-scc.due::after,.px-sclegend i.px-scc.due::after{content:'';position:absolute;top:0;right:0;border-style:solid;border-width:0 8px 8px 0;border-color:transparent var(--red) transparent transparent}
.px-sc th.px-scd.due{box-shadow:inset 0 3px 0 var(--red);color:var(--red)}
.px-sclegend i.px-sclg{position:static;display:inline-block;width:30px;height:14px}
.px-sctools select[data-scflt]{max-width:200px}
.px-bdays{margin:2px 0 0}
/* Print (Job schedule round 1, 26 November 2026; the app had no print styles before): TKT.print (core.js) puts the
   pages in #print-box, sets the page light, and these show that box alone, landscape, a page per .print-page. */
#print-box{display:none}
@media print{
  @page{size:A4 landscape;margin:8mm}
  body.printing>*:not(#print-box){display:none !important}
  body.printing{display:block;background:#fff}
  body.printing #print-box{display:block;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  #print-box .print-page{break-after:page}
  #print-box .print-page:last-child{break-after:auto}
  #print-box h2{font-size:15px;margin:0 0 4px}
  /* The Job schedule: the grid across the page's width, no sticky parts. */
  #print-box table.px-scprt{width:100%;table-layout:fixed;font-size:9px;border-left:1px solid var(--rule);border-top:1px solid var(--rule)}
  #print-box .px-scprt th.px-scn{position:static;width:120px;min-width:0;max-width:none;box-shadow:none;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #print-box .px-scprt th.px-scn .small{font-size:8px}
  #print-box .px-scprt thead th{position:static}
  #print-box .px-scprt th.px-scd,#print-box .px-scprt td.px-scc{width:auto;min-width:0;max-width:none;height:16px;font-size:9px}
  #print-box .px-scprt tr{break-inside:avoid}
}
@media (max-width:700px){.px-sc .px-scn{min-width:150px;max-width:150px}.px-scj-hits button{flex-wrap:wrap}.px-sctools input[type=search]{flex-basis:100%}.px-sctools select{max-width:100%;min-width:0}.px-sctools select[data-scflt]{flex:1 1 100%;max-width:100%}}

/* ---------- ISQM module (public/isqm.js) ---------- */
.iq-title{margin:2px 0 14px}
.iq-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;margin:0 0 18px;padding-bottom:14px;border-bottom:1px solid var(--rule)}
.iq-tabs,.iq-years{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.iq-years .lbl{font-size:13px;color:var(--ink2);margin-right:2px}
.atable th.num,.atable td.num{text-align:center;white-space:nowrap;width:1%;padding-left:14px;padding-right:14px}
.atable td.num{font-variant-numeric:tabular-nums}
.atable.iq-counts td{vertical-align:middle}
.atable.iq-counts td:first-child{width:auto}
.iq-steps td{vertical-align:middle}
.iq-steps .no{width:36px;color:var(--ink2);font-variant-numeric:tabular-nums}
.iq-steps .st{width:1%;white-space:nowrap}
@media (max-width:700px){.iq-bar{flex-direction:column;align-items:flex-start}}
/* Risk tables under each objective: the same column widths in every table, so columns line up down the page. */
.atable.iq-risks{table-layout:fixed}
.atable.iq-risks th:nth-child(2),.atable.iq-risks td:nth-child(2){width:110px}
.atable.iq-risks th:nth-child(3),.atable.iq-risks td:nth-child(3){width:90px}
.atable.iq-risks th:nth-child(4),.atable.iq-risks td:nth-child(4){width:120px}
.atable.iq-risks th:nth-child(5),.atable.iq-risks td:nth-child(5){width:120px}
.atable.iq-risks th:not(:first-child),.atable.iq-risks td:not(:first-child){text-align:center;white-space:nowrap}
.iq-toggle{text-decoration:none;color:inherit;font:inherit;padding:0}
.iq-toggle:hover{color:var(--blue)}
/* The policy index: narrow columns for version, date, status and the Open button. */
.atable.iq-pols td,.atable.iq-pols th{vertical-align:middle}
.atable.iq-pols th:nth-child(2),.atable.iq-pols td:nth-child(2){width:80px;text-align:center}
.atable.iq-pols th:nth-child(3),.atable.iq-pols td:nth-child(3){width:130px;white-space:nowrap}
.atable.iq-pols th:nth-child(5),.atable.iq-pols td:nth-child(5){width:120px;white-space:nowrap}
.atable.iq-pols th:nth-child(6),.atable.iq-pols td:nth-child(6){width:80px;text-align:right}
/* Register sections as cards: chevron, name and summary chips on one bar that opens the section. */
.iq-sec{padding:0;overflow:hidden}
.iq-sec-head{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:12px;width:100%;padding:16px 20px;cursor:pointer;font-family:var(--font);font-size:17px;font-weight:600;color:var(--navy)}
.iq-sec-head:hover{background:var(--sel)}
.iq-sec-head:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
.iq-chev{flex:none;color:var(--ink2)}
.iq-sec.open .iq-chev{transform:rotate(90deg)}
.iq-sec-name{flex:1}
.iq-chips{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.iq-chip{font-size:12px;font-weight:500;color:var(--ink2);background:var(--sel);border-radius:999px;padding:3px 10px;white-space:nowrap}
.iq-chip.bad{color:var(--red);background:var(--red-bg)}
.iq-sec.open > :not(.iq-sec-head){margin-left:20px;margin-right:20px}
.iq-sec.open{padding-bottom:16px}
.iq-sec.open .iq-sec-head{border-bottom:1px solid var(--rule)}
.atable.iq-sign td{vertical-align:middle}
.atable.iq-sign .lbl{width:110px;color:var(--ink2)}
.atable.iq-sign .act{width:1%;white-space:nowrap;text-align:right}
@media (max-width:700px){.iq-sec-head{flex-wrap:wrap}.iq-chips{width:100%;justify-content:flex-start}}
.atable.iq-sign .act .linkbtn{margin-left:10px}
.iq-form2{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:0 16px}
.iq-form2 input,.iq-form2 select{width:100%;box-sizing:border-box}
.iq-form3{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:0 16px}
.iq-inline{display:flex;gap:8px;align-items:center;margin-top:8px;flex-wrap:wrap}.iq-inline select{width:auto;min-width:160px}
.iq-action-new{display:grid;grid-template-columns:minmax(220px,2fr) minmax(160px,1fr) 170px auto;gap:0 12px;align-items:end}
.iq-action-new input,.iq-action-new select{width:100%;box-sizing:border-box}
@media (max-width:760px){.iq-action-new{grid-template-columns:1fr}}
.iq-form2 .wide{grid-column:1/-1}
.iq-form2 textarea{width:100%;box-sizing:border-box}
.iq-add{background:var(--blue-soft);border-radius:8px;padding:10px 14px;border-top:0}
.iq-picker{margin-top:10px}.iq-picker summary{cursor:pointer}
.iq-picks{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:4px 16px;margin-top:8px;padding:8px 10px;border:1px solid var(--rule);border-radius:6px;background:var(--surface)}
.iq-pick{display:flex;gap:6px;align-items:baseline;font-size:13px;font-weight:400;cursor:pointer}.iq-pick input{width:auto}
.iq-reclinks{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.iq-reclinks a{text-decoration:none}
.iq-reclinks button.iq-chip{cursor:pointer;border:0}
.iq-pick strong{white-space:nowrap}

/* quotations: accepting company by company, sending */
.px-parts{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px}
.px-part{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--rule);border-radius:8px;padding:8px 10px;background:var(--surface);cursor:pointer}
.px-part.on{border-color:var(--blue);background:var(--sel)}
.px-part input{margin-top:4px}
.px-part span{display:flex;flex-direction:column;line-height:1.35}
.px-steps{margin:8px 0 4px 18px;padding:0}
.px-steps li{margin:2px 0}
.px-ok-dot{color:var(--green);font-weight:700}
.px-secbox{border:1px solid var(--rule);border-radius:8px;padding:8px 12px;background:var(--surface);max-width:520px;line-height:1.45}

/* Acceptance and letters as steps (11 November 2026) */
.px-progress{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0 4px}
.px-prog{display:flex;gap:8px;align-items:flex-start;text-align:left;border:1px solid var(--rule);border-radius:10px;background:var(--surface);padding:8px 10px;cursor:pointer;line-height:1.3}
.px-prog > span:last-child{display:flex;flex-direction:column;gap:2px;min-width:0}
.px-prog .small{color:var(--ink2)}
.px-prog-n,.px-step-n{flex:none;width:24px;height:24px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;background:var(--bg);border:1px solid var(--rule);color:var(--ink2)}
.px-prog.done .px-prog-n,.px-apstep.done .px-step-n{background:var(--green);border-color:var(--green);color:#fff}
.px-prog.doing .px-prog-n,.px-apstep.doing .px-step-n{background:var(--blue);border-color:var(--blue);color:#fff}
.px-prog.skip .px-prog-n,.px-apstep.skip .px-step-n{background:var(--bg);color:var(--ink2)}
.px-prog.doing{border-color:var(--blue)}
.px-apstep{border:1px solid var(--rule);border-radius:10px;background:var(--surface);margin-top:10px;overflow:hidden}
.px-apstep.open{border-color:var(--blue)}
.px-step-head{all:unset;box-sizing:border-box;display:flex;gap:12px;align-items:center;width:100%;padding:12px 16px;cursor:pointer;font-family:var(--font)}
.px-step-head:hover{background:var(--sel)}
.px-step-head:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
.px-step-t{flex:1;display:flex;flex-direction:column;gap:2px;line-height:1.35}
.px-step-t b{color:var(--navy);font-size:16px}
/* Navy is dark in dark mode: the step titles take the ink colour there (the appointment steps, 23 November 2026). */
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .px-step-t b{color:var(--ink)}}
:root[data-theme="dark"] .px-step-t b{color:var(--ink)}
.px-step-t .small{color:var(--ink2)}
.px-apstep.done .px-step-t .small{color:var(--green)}
.px-step-chev{color:var(--ink2);font-size:13px}
.px-apstep.open:not(.details) .px-step-chev{transform:rotate(90deg)}
.px-step-body{padding:4px 16px 16px;border-top:1px solid var(--rule)}
.px-apstep.details .px-step-n{font-size:14px}
.px-daterow,.px-letterrow{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid var(--rule)}
.px-daterow input{max-width:190px}
.px-letterrow > span:last-child{flex:none}
.px-kyc summary{cursor:pointer;margin:12px 0 6px}
.px-kchip{border:1px solid var(--rule);border-radius:999px;padding:2px 10px;font-size:12px;cursor:pointer;background:var(--surface)}
.px-kchip.st-to_get{background:var(--red-bg);color:var(--red);border-color:var(--red-bg)}
.px-kchip.st-received,.px-kchip.st-seen{background:var(--green-bg);color:var(--green);border-color:var(--green-bg)}
.px-kchip.st-not_needed{background:var(--bg);color:var(--ink2)}
@media (max-width:760px){.px-progress{grid-template-columns:1fr 1fr}.px-daterow,.px-letterrow{flex-wrap:wrap}}
.px-step-body h3{margin:18px 0 6px}
.atable td.r{text-align:right}
.px-tobill td{vertical-align:top}
.px-billform td{background:var(--bg)}

/* A small drop-down menu of less frequent actions (downloads and the like). */
details.menu{position:relative;display:inline-block}
details.menu>summary{list-style:none;cursor:pointer}
details.menu>summary::-webkit-details-marker{display:none}
details.menu .menu-list{position:absolute;z-index:20;margin-top:4px;min-width:260px;background:var(--surface);border:1px solid var(--rule);border-radius:8px;padding:6px;box-shadow:var(--shadow-pop)}
details.menu .menu-list a{display:block;padding:7px 10px;border-radius:6px;text-decoration:none;color:var(--ink)}
details.menu .menu-list a:hover,details.menu .menu-list a:focus-visible{background:var(--sel)}

/* A warning box: something the next step will lack (AWP Setup items the client's records do not hold). Colours from the theme tokens, so light and dark need no extra rules. */
.warn-box{background:var(--amber-bg);border-left:3px solid var(--amber);padding:8px 12px;border-radius:6px;margin:8px 0}
.warn-box ul{margin:4px 0 4px 18px;padding:0}
/* The list engine (public/js/list-view.js, practice Stage 1; table and toolbar, Clients review PR A, 20 November 2026). Colours come from the theme variables, so light and dark need no rules of their own. */
/* Scopes: the page tabs (.tabs) a little smaller, with their counts as badges. */
.lv-tabs{flex-wrap:wrap;margin-top:4px}
.lv-tabs button{padding:8px 14px;font:inherit;font-weight:500;font-size:14px}
.lv-bar{display:flex;flex-wrap:wrap;gap:8px 10px;align-items:center;margin-top:10px}
.lv-bar input[type=search]{flex:1 1 320px;min-width:200px;max-width:640px}
.lv-lab{display:inline-flex;gap:6px;align-items:center;font-size:13px;color:var(--ink2)}
.lv-lab select{width:auto}
.lv-fill{flex:1}
.lv-count{margin:8px 0 0}
.lv-menu{min-width:220px;max-height:60vh;overflow-y:auto;overflow-x:hidden}
.lv-right .menu-list{right:0}
.lv-menu hr{border:0;border-top:1px solid var(--rule);margin:6px 0}
.lv-mi{display:block;box-sizing:border-box;width:100%;text-align:left;background:none;border:0;padding:7px 10px;border-radius:6px;font:inherit;font-size:13.5px;color:var(--ink);cursor:pointer}
.lv-mi:hover,.lv-mi:focus-visible{background:var(--sel)}
.lv-mnote{margin:6px 10px}
.lv-colrow{display:flex;align-items:center;gap:2px}
.lv-cols label{flex:1;display:flex;gap:8px;align-items:center;padding:4px 8px;font-size:13.5px;cursor:pointer}
.lv-arr{background:none;border:1px solid transparent;border-radius:4px;padding:0 6px;cursor:pointer;color:var(--ink2);font:inherit}
.lv-arr:hover:not(:disabled){border-color:var(--rule);color:var(--ink)}
.lv-arr:disabled{opacity:.3;cursor:default}
/* The table scrolls inside its own box, both ways: the headings stay at the top and the first columns on the left. */
.lv-scroll{overflow:auto;max-height:calc(100vh - 220px);min-height:160px;margin-top:6px;border:1px solid var(--rule);border-radius:6px}
/* Separate borders: each cell draws its own row line, so the frozen (sticky) cells show the same single line as the rest (20 November 2026). */
.lv-table{--lv-tick:34px;margin-top:0;width:max-content;min-width:100%;border-collapse:separate;border-spacing:0} /* columns take the room they need; the box scrolls sideways */
.lv-table th,.lv-table td{box-sizing:border-box;border-right:1px solid color-mix(in srgb,var(--rule) 55%,transparent)}
.lv-table th:last-child,.lv-table td:last-child{border-right:0}
.lv-table td.lv-w{overflow-wrap:anywhere}
.lv-table td:not(.lv-w){max-width:420px} /* long text (addresses, remarks) wraps until a width is set */
.lv-table thead{position:sticky;top:0;z-index:3}
.lv-table thead th{background:var(--surface)}
.lv-table .lv-fz{position:sticky;z-index:1;background:var(--surface)}
.lv-table thead .lv-fz{z-index:4}
.lv-table .lv-fz-end{border-right-color:var(--rule)} /* the frozen columns' edge: the same one-pixel line, a shade stronger */
.lv-table tbody tr:nth-child(even) td.lv-fz{background:linear-gradient(var(--stripe),var(--stripe)) var(--surface)} /* the stripe, over a solid cell */
.lv-table tr.lv-grp td.lv-fz{background:var(--sel)}
.lv-table td.lv-tick,.lv-table th.lv-tick{left:0;min-width:var(--lv-tick);width:var(--lv-tick);max-width:var(--lv-tick);padding-left:8px;padding-right:8px}
.lv-table tr.lv-head th{position:relative;user-select:none;cursor:grab}
.lv-table tr.lv-head th.lv-fz{position:sticky}
.lv-table tr.lv-head th.lv-moving{opacity:.5}
.lv-table tr.lv-head th.lv-drop{box-shadow:inset 3px 0 0 var(--blue)}
.lv-rs{position:absolute;top:0;right:-3px;width:7px;height:100%;cursor:col-resize;z-index:2}
.lv-rs:hover,.lv-rs:focus-visible{background:var(--blue);opacity:.5;outline:0}
.lv-bulk{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;margin:8px 0;padding:8px 12px;border:1px solid var(--rule);border-radius:8px}
.lv-bulk select,.lv-bulk input[type=text],.lv-bulk input[type=date]{width:auto;max-width:280px}
.px-range input,.px-range select{flex:0 1 180px;min-width:0} /* a statement's year or dates (Referrals round 1) */
.lv-table th .lv-sort{background:none;border:0;padding:0;font:inherit;color:inherit;cursor:pointer;text-align:inherit}
.lv-table th .lv-sort{transition:color var(--t-fast)}
.lv-table th .lv-sort:hover,.lv-table th .lv-sort:focus-visible{color:var(--blue-deep)}
.lv-table tr.lv-filter th{padding:4px 6px;font-weight:400}
.lv-table tr.lv-filter input,.lv-table tr.lv-filter select{width:70px;min-width:100%;padding:3px 6px;font-size:12.5px}
/* One line per column (partner, 20 November 2026): the box, a second box for "Between", and the funnel with its menu of conditions. */
.lv-f{display:flex;align-items:center;gap:3px;position:relative}
.lv-table tr.lv-filter .lv-f input{flex:1 1 0;width:40px;min-width:0}
.lv-table tr.lv-filter .lv-f input:disabled{background:var(--bg);opacity:1}
.lv-fbtn{flex:none;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:1px solid transparent;border-radius:4px;background:none;color:var(--ink2);opacity:.6;cursor:pointer}
.lv-fbtn:hover,.lv-fbtn:focus-visible,.lv-fbtn[aria-expanded=true]{opacity:1;border-color:var(--rule)}
.lv-fbtn.on{opacity:1;color:#fff;background:var(--blue);border-color:var(--blue)}
.lv-fpop{position:absolute;top:100%;right:0;z-index:30;width:180px;box-sizing:border-box;background:var(--surface);border:1px solid var(--rule);border-radius:8px;padding:4px;box-shadow:var(--shadow-pop)}
.lv-fpop .lv-mi[aria-checked=true]{font-weight:600;color:var(--blue)}
.lv-fbar.on{border-color:var(--blue);color:var(--blue)}
.lv-table tr.lv-grp td{background:var(--sel);font-weight:600;border-top:1px solid var(--rule)} /* with the row line above: two pixels */
.lv-table tr.lv-total td{font-weight:600;border-top:1px solid var(--rule);background:var(--surface)}
.lv-pager{display:flex;gap:10px;align-items:center;justify-content:flex-end;margin-top:10px}
/* On a phone the table scrolls as a whole: nothing stays frozen on the left. */
@media (max-width:600px){.lv-table .lv-fz,.lv-table tr.lv-head th.lv-fz{position:static}.lv-scroll{max-height:none}}
/* The client's details in sections, and its code line (practice Stage 2). */
.px-dlh{font-size:14px;font-weight:600;color:var(--ink2);margin:22px 0 2px;padding-top:16px;border-top:1px solid var(--rule)}
.px-dlh:first-of-type{border-top:0;padding-top:0;margin-top:18px} /* a light line between the client details' sections (22 November 2026) */
/* Adding someone to a job's team: the person and role lists full width, one under the other (22 November 2026). */
.px-teamadd{display:grid;grid-template-columns:1fr;gap:8px;margin-top:12px;justify-items:start}
.px-teamadd select{width:100%}
.px-tmpick{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.px-tmpick select{width:auto;min-width:200px}
.px-tmchip{display:inline-flex;align-items:center;gap:4px;padding:4px 4px 4px 12px;border:1px solid var(--rule);border-radius:999px;background:var(--sel);color:var(--ink)}
.px-tmchip .linkbtn{font-size:16px;line-height:1;padding:0 6px;color:var(--ink2)}
.px-codeline{margin:4px 0 0}
.px-codeline .linkbtn{margin-left:6px} /* 12 px to the words with the button's own 6 px, its hit area kept */
/* The client's status beside its code: green active, amber prospect, grey inactive (theme tokens, so dark mode follows). */
.px-stpill{display:inline-block;margin-left:12px;padding:1px 10px;border-radius:12px;font-size:13px;font-weight:500;line-height:20px;max-width:100%;vertical-align:middle;overflow-wrap:anywhere;background:var(--green-bg);color:var(--green)}
.px-stpill.st-prospect{background:var(--amber-bg);color:var(--amber)}
.px-stpill.st-inactive{background:var(--sel);color:var(--ink2);border:1px solid var(--rule)}
.px-dl dd{white-space:pre-line} /* addresses and remarks keep their lines */

/* Notes and reminders (practice Stage 3 part 3) */
.px-note{border-top:1px solid var(--rule);padding:10px 0}
.px-note:first-of-type{border-top:0}
.px-note h3{margin:0;font-size:15px}
.px-notebody{white-space:pre-wrap;margin:6px 0}
.px-remlist li{display:flex;flex-wrap:wrap;gap:6px 12px;justify-content:space-between;align-items:center;padding:6px 0;border-bottom:1px solid var(--rule)}
.px-jobid{margin:-6px 0 8px}

/* Firm reports, Dashboard (practice Stage 7): the reports' own bar (scoreBar) and a ring, in the theme's colours, so light and dark need no rules of their own. */
.px-dashgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(340px,100%),1fr));gap:16px;margin-top:16px}
.px-bars,.px-keys{list-style:none;margin:0;padding:0}
.px-bars li{display:grid;grid-template-columns:minmax(0,40%) 1fr auto;gap:8px;align-items:center;padding:3px 0}
.px-bars .px-bar+.px-bar{margin-top:3px}
.px-barlabel{overflow-wrap:anywhere;font-size:13px;line-height:1.3} /* full names wrap (25 November 2026) */
.px-barval{font-size:12px;white-space:nowrap}
.px-bar i.px-closed,.px-key.px-closed{background:var(--ink2)}
.px-ringwrap{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.px-keys li{padding:2px 0}
.px-key{display:inline-block;width:10px;height:10px;border-radius:2px;background:var(--blue);vertical-align:middle}
.px-key.px-ring0{background:var(--ink2)} .px-key.px-ring2{background:var(--amber)} .px-key.px-ring3{background:var(--green)}
circle.px-ring0{stroke:var(--ink2)} circle.px-ring1{stroke:var(--blue)} circle.px-ring2{stroke:var(--amber)} circle.px-ring3{stroke:var(--green)}

/* Firm reports rebuilt (25 November 2026): one period and filter bar, six cards of even height, panels on the theme's
   16px spacing, month columns, WIP as one bar in parts and utilisation on one line. Theme tokens; the two dark rules are written twice. */
.px-repbar{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;justify-content:space-between;margin-top:8px}
.px-repbar .px-seg{margin:0}
.px-segsel{display:inline-flex;align-items:center;gap:6px;padding:2px 4px 2px 12px}
.px-segsel select{width:auto;border:0;background:transparent;color:inherit;font:inherit;padding:2px;min-width:0}
.px-segopt.on.px-segsel select option{color:var(--ink);background:var(--surface)}
.px-repfilters{display:flex;flex-wrap:wrap;gap:8px}
.px-repfilters select{width:auto;max-width:190px;padding:6px 28px 6px 10px;font-size:14px}
.px-repown{margin-top:8px;flex-wrap:wrap;align-items:flex-end}
.px-repown label{display:flex;flex-direction:column;gap:2px;font-size:13px;color:var(--ink2)}
.px-repperiod{margin:8px 0 0}
.px-repbody{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin-top:16px}
.px-repbody>.panel,.px-repbody .px-grid2>.panel,.px-repbody .px-two>.panel{margin:0}
.px-repbody .px-two{margin:0}
.px-repcards{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.px-repcard{display:flex;flex-direction:column;gap:4px;text-align:left;font:inherit;color:var(--ink);background:var(--surface);border:1px solid var(--rule);border-radius:10px;padding:12px 14px;cursor:pointer;min-width:0}
.px-repcard:hover{border-color:var(--blue)}
.px-repcard b{font-size:20px;line-height:1.2;color:var(--navy)}
.px-chg{font-size:12px}
.px-up{color:var(--green)} .px-down{color:var(--red)}
.px-grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.px-feesgrid{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}
.px-stackcol{display:grid;gap:16px;align-content:start}
.px-stackcol>.panel{margin:0}
.px-reptable th.r{white-space:nowrap}
.px-grid2>.panel{display:flex;flex-direction:column}
.px-grid2 .px-ringwrap{flex:1;justify-content:center}
.px-two-even{grid-template-columns:repeat(2,minmax(0,1fr))}
.px-figs-3{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:1100px){.px-repcards{grid-template-columns:repeat(3,minmax(0,1fr))} .px-feesgrid{grid-template-columns:minmax(0,1fr)}}
@media (max-width:800px){.px-grid2,.px-two-even{grid-template-columns:minmax(0,1fr)}}
@media (max-width:560px){.px-repcards,.px-figs-3{grid-template-columns:repeat(2,minmax(0,1fr))}}
.px-headfig{font-size:18px;color:var(--navy)}
.px-repsub{font-size:15px;margin:14px 0 2px}
.px-reptotal{margin:4px 0 0}
.px-repnarrow{max-width:520px}
.px-reptable td{overflow-wrap:anywhere}
.px-cols{display:flex;align-items:stretch;gap:4px;height:190px;margin-top:8px}
.px-colgrp{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;gap:4px}
.px-colbars{flex:1;width:100%;display:flex;align-items:flex-end;justify-content:center;gap:2px;border-bottom:1px solid var(--rule)}
.px-colbars i{display:block;width:min(16px,42%);background:var(--blue);border-radius:2px 2px 0 0}
.px-colbars i.px-prev,.px-key.px-prev{background:var(--ink2);opacity:.55}
.px-collabel{font-size:11px;color:var(--ink2);white-space:nowrap}
.px-stack{display:flex;height:20px;border-radius:5px;overflow:hidden;background:var(--bg);margin-top:8px}
.px-stack i{display:block;height:100%}
.px-age0{background:var(--blue)} .px-age1{background:var(--green)} .px-age2{background:var(--amber)} .px-age3{background:var(--red)}
.px-stackkeys{display:flex;flex-wrap:wrap;gap:4px 18px;margin-top:8px}
.px-util{display:grid;grid-template-columns:minmax(90px,1fr) auto;gap:10px;align-items:center;min-width:220px}
.px-util .px-bar-lg{margin:0}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .px-repcard b,:root:not([data-theme="light"]) .px-headfig{color:var(--ink)}}
:root[data-theme="dark"] .px-repcard b,:root[data-theme="dark"] .px-headfig{color:var(--ink)}

/* MSIC codes (CRM review, 21 November 2026): one row per code with the code in a tag and "Main" on the main one;
   the search shows up to 10 matches, each with the industry it maps to. Colours come from the theme variables, so dark needs no rules. */
.px-msic-view{margin:10px 0 4px}
.px-msic-lbl{color:var(--ink2);font-size:13.5px;margin-bottom:2px}
.px-msic-rows,.px-msic-hits{list-style:none;padding:0;--msic-w:5.4em}
.px-msic-rows{margin:2px 0 10px}
.px-msic-rows.edit,input.px-msic-q,.px-msic-hits{max-width:760px}
.px-msic-rows li{display:flex;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid var(--rule)}
.px-msic-code{flex:none;box-sizing:border-box;width:var(--msic-w);text-align:center;font-variant-numeric:tabular-nums;font-weight:600;font-size:13.5px;background:var(--bg);border:1px solid var(--rule);border-radius:6px;padding:1px 4px}
.px-msic-desc{flex:1;min-width:0;overflow-wrap:anywhere}
.px-msic-rows li.other .px-msic-desc{color:var(--ink2)}
.px-msic-end{flex:none;display:flex;align-items:center;gap:12px}
.px-msic-end .origin{margin-left:0;vertical-align:0}
.px-msic-x{background:none;border:0;cursor:pointer;color:var(--ink2);font-size:20px;line-height:1;padding:0 4px;border-radius:6px}
.px-msic-x:hover{color:var(--red);background:var(--red-bg)}
input.px-msic-q{width:100%}
.px-msic-hits{border:1px solid var(--rule);border-radius:8px;overflow:hidden;margin:2px 0 4px}
.px-msic-hits li + li{border-top:1px solid var(--rule)}
.px-msic-hits button{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:var(--surface);color:var(--ink);border:0;padding:8px 12px;cursor:pointer;font:inherit}
.px-msic-hits button:hover,.px-msic-hits li[aria-selected="true"] button{background:var(--sel)}
.px-msic-ind{flex:none;font-size:12px;color:var(--ink2);border:1px solid var(--rule);border-radius:999px;padding:1px 8px;white-space:nowrap}
/* On a phone the description takes the rest of the first line; the badge, buttons and industry go below it, lined up with the description. */
@media (max-width:600px){.px-msic-hits button,.px-msic-rows li{flex-wrap:wrap}.px-msic-desc{flex-basis:calc(100% - var(--msic-w) - 12px)}.px-msic-end,.px-msic-ind{margin-left:calc(var(--msic-w) + 12px)}}
/* Recurring jobs (21 November 2026): the rule's law and good practice folded behind a small ⓘ beside the job's name. */
.px-rinfo{display:inline;margin-left:6px}
.px-rinfo>summary{display:inline;color:var(--ink2);font-size:13px}
.px-rinfo>summary::marker{content:""}
.px-rinfo>summary::-webkit-details-marker{display:none}
.px-fold.px-rinfo>summary::before{content:none}
.px-rinfo[open]{display:block;max-width:420px}
.px-rtable td{vertical-align:top}
/* The job page as InfinityOne's (21 November 2026): an action bar, and Details in three columns (one on a phone). Theme variables only, so no dark rules are needed. */
.px-actbar{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 8px}
.px-actbar+.px-sub,.px-actbar~.px-sub{border:1px solid var(--rule);border-radius:8px;background:var(--surface);padding:12px;margin:0 0 8px}
.px-jcols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:16px;align-items:start}
.px-jcol{min-width:0}
.px-jcol>.panel:first-child{margin-top:0}
.px-jcols .px-grid{grid-template-columns:minmax(0,1fr)}
.px-figs-1{grid-template-columns:minmax(0,1fr)}
@media (max-width:1100px){.px-jcols{grid-template-columns:repeat(2,minmax(0,1fr))}.px-jcols>.px-jcol:first-child{grid-row:span 2}}
@media (max-width:800px){.px-jcols{grid-template-columns:minmax(0,1fr)}.px-jcols>.px-jcol:first-child{grid-row:auto}}
/* The rule behind ⓘ: short lines under "The law" and "Good practice" (21 November 2026). */
.px-rnote-h{font-size:12px;font-weight:600;color:var(--ink2);margin:6px 0 2px}
.px-rnote{margin:0 0 4px;padding-left:18px;font-size:13px}
.px-rnote li{margin:2px 0}

/* ---------- movement inside the portal (partner, 21 November 2026) ----------
   public/js/motion.js marks, after each redraw, only what is really new (fx-page, fx-up, fx-draw, fx-in, fx-open, fx-new);
   these rules move just that, quickly, with transform and opacity only, and not at all when the device asks for less
   motion. Redraws (typing included) never move anything: only what motion.js marks new. */
@media (prefers-reduced-motion:no-preference){
  /* Page change (motion.js: fx-page when the address changes): the content eases in, but not on the timesheet, the job schedule or a page holding a long table or list (motion.js leaves fx-page off there). */
  main.fx-page{animation:fx-rise .25s ease-out}
  /* Round 2 (partner, 2 December 2026), on the same "newly opened" rule. A page's panels, tiles and figures
     (motion.js: fx-up, --i their order, the first eight in turn) rise 14 px in turn, 70 ms apart, at the mock-ups' pace. */
  /* Round 2b (partner, 2 December 2026: "far from the mock-ups"), the delay (--d) set by motion.js: cards 70 ms apart,
     the rows of short lists and tables (fx-row) 50 ms apart just after their card, 8 px and quicker. The first 24 cards
     of a page (fx-blur) also come into focus from a soft blur, the mock-ups' entry: a second animation that runs once
     and ends, so nothing stays blurred or costs once it is in. */
  .fx-up{--rise:14px;animation:fx-rise .65s var(--ease-out) var(--d,0ms) backwards}
  .fx-up.fx-blur{animation-name:fx-rise,fx-unblur}
  .fx-up.fx-row{--rise:8px;animation-duration:.45s}
  /* Smoother tables (3 December 2026, motion.js rise and fadeGhost): a long page's cards, and a page crossfading with its placeholders. */
  .fx-up.fx-calm{--rise:8px;animation-duration:.45s}
  .fx-up.fx-xfade{--rise:0px;animation-duration:.3s}
  .fx-gh-out{animation:fx-fade .3s var(--ease-out) reverse forwards}
  /* Chips pop in (fx-pop), the menu's links slide in on the first page (fx-navin), a tab's panels ease in (fx-swap on its bar). */
  .fx-pop{animation:fx-pop .45s var(--ease-out) var(--d,0ms) backwards}
  .px-navitem.fx-navin{--shift:-12px;animation:fx-slide .5s var(--ease-out) var(--d,0ms) backwards}
  .px-tabs.fx-swap~*{--rise:8px;animation:fx-rise var(--t-slow) var(--ease-out)}
  /* Overdue and attention marks pulse softly: the overdue chip's dot grows and fades (transform and opacity); the menu's
     red counts send out a ring that only fades (a shadow, so it never reaches past the menu's edge or adds a scroll bar). */
  .px-chip-bad::after,.px-badge.alert::after{animation:fx-pulse 1.8s var(--ease-out) infinite}
  .px-chip-bad::after{--pulse:2.6}
  /* Grey placeholders pulse softly while the page loads (with less motion: plain grey), at the mock-ups' 1.1 s. */
  .fx-gh{animation:fx-ghost 1.1s ease-in-out infinite}
  .fx-gh:nth-child(2n){animation-delay:.15s}
  /* The typed greeting: the letters still to come are painted invisible (a highlight of the text, so nothing is laid
     out again), the caret floats at the last letter and blinks once a second until it goes. */
  ::highlight(fx-rest){color:transparent}
  .fx-caret{animation:fx-blink 1s steps(1) infinite}
  /* The tabs' underline slides to the chosen tab (motion.js tabBars: its own line, so only it moves). */
  .fx-tabbar.fx-slide{transition:var(--t-slow) var(--ease-out);transition-property:left,width}
  /* Charts draw themselves (fx-draw, a page or its tab just opened): bars grow from their start, columns from their
     base, a stacked bar wipes in, the ring sweeps round (its mask, practice-dashboard.js). */
  main.fx-draw :where(.px-bar>i,.px-colbars>i,.px-stack,.fx-ringmask,.fx-line){animation:none 1.2s var(--ease-draw) .15s backwards}
  main.fx-draw .px-bar>i{transform-origin:left;animation-name:si-draw}
  main.fx-draw .px-colbars>i{transform-origin:bottom;animation-name:fx-grow-y}
  main.fx-draw .px-stack{animation-name:fx-wipe}
  /* The ring fills from empty in 1.1 s, as the mock-ups' ring; a line chart (none yet: an SVG path with pathLength="1"
     and class fx-line) would draw along its length in 1.2 s. */
  main.fx-draw .fx-ringmask{animation-name:fx-ring;animation-duration:1.1s}
  main.fx-draw .fx-line{stroke-dasharray:1 1;animation-name:fx-ring}
  /* Folding parts: a menu group just unfolded (fx-open), a details opened from its summary, a drawer or search box just opened (fx-in). */
  .px-navfold.fx-open>.px-navitem{animation:fx-drop .16s ease-out}
  details.fx-open[open]>:not(summary){animation:fx-drop .18s ease-out}
  .px-drawer.fx-in{animation:fx-rise .18s ease-out}
  .px-drawer.px-right.fx-in{--shift:24px;animation-name:fx-slide}
  .px-palette.fx-in{animation:fx-pal .16s ease-out}
  .px-shade.fx-in{animation:fx-fade .18s ease-out}
  /* Buttons, chips, segments and tabs: a small press (on staff pages buttons press as in "hover and press" below). */
  :is(.px-navsearch,.px-navbtn){transition:transform .1s ease-out}
  :is(.btn,.px-chip,.px-segopt,.px-tab,.px-navsearch,.px-navbtn):active:not(:disabled){transform:scale(.97)}
  /* The notice ("Saved", "Sent"...) slides up as it appears. */
  #notice:not(:empty){animation:fx-toast .2s ease-out}
  /* A row just added (fx-new, PBC requests and queries) flashes softly once. */
  .row.fx-new{position:relative}
  .row.fx-new::after{content:"";position:absolute;inset:0;background:var(--blue);opacity:0;pointer-events:none;animation:fx-flash 1.2s ease-out}
  /* A table row just added (the KYC tab's people; 24 November 2026, fifth round) shows a soft highlight that fades. */
  tr.fx-new>td{position:relative}
  tr.fx-new>td::after{content:"";position:absolute;inset:0;background:var(--blue);opacity:0;pointer-events:none;animation:fx-flash 1.2s ease-out}
}
@keyframes fx-rise{from{opacity:0;transform:translateY(var(--rise,5px))}}
@keyframes fx-drop{from{opacity:0;transform:translateY(-4px)}}
@keyframes fx-slide{from{opacity:0;transform:translateX(var(--shift,24px))}}
@keyframes fx-pal{from{opacity:0;transform:translate(-50%,-6px)}}
@keyframes fx-fade{from{opacity:0}}
@keyframes fx-toast{from{opacity:0;transform:translate(-50%,12px)}}
@keyframes fx-flash{25%{opacity:.16}}
@keyframes fx-ghost{50%{opacity:.55}}
@keyframes fx-blink{50%{opacity:0}}
@keyframes fx-unblur{from{filter:blur(6px)}}
@keyframes fx-pop{0%{opacity:0;transform:scale(.6)}70%{transform:scale(1.06)}}
@keyframes fx-pulse{from{opacity:.55;transform:none}to{opacity:0;transform:scale(var(--pulse,1))}}
@keyframes fx-grow-y{from{transform:scaleY(0)}}
@keyframes fx-wipe{from{clip-path:inset(0 100% 0 0)}}
@keyframes fx-ring{from{stroke-dashoffset:1}}
/* Grey placeholders (motion.js ghost): about the size of what is coming, so nothing jumps when it arrives. */
.fx-gh{display:block;background:var(--ghost);border-radius:8px}
/* The header: the title, the lede and the "more" line, in the boxes of .top, .px-lede and .px-more (3 December 2026),
   so a list page's figures or list start where the page's own will and the hand-over does not jump. */
.fx-gh-header{display:grid;margin-top:4px} /* a grid: its bars' margins add up as the page's do */
.fx-gh-header>.fx-gh{height:32px;width:min(320px,50%);margin:7px 0 6px}
.fx-gh-header>.fx-gh:nth-child(2){height:14px;width:min(560px,80%);margin:8px 0 4px}
.fx-gh-header>.fx-gh:nth-child(3){height:12px;width:140px;margin:16px 0 4px}
.fx-gh-tiles{margin-top:12px} /* laid out as .px-figs */
.fx-gh-tiles>.fx-gh{height:98px;border-radius:14px}
/* The placeholders just replaced, fading out over the page (motion.js fadeGhost; with less motion they simply go). */
.fx-gh-out{position:absolute;pointer-events:none}
.fx-gh-cards>.fx-gh{height:280px;border-radius:14px} /* laid out as .px-two */
.fx-gh-panel{margin-top:16px}
.fx-gh-lines{display:grid;gap:14px;padding:4px 0}
.fx-gh-lines>.fx-gh{height:14px}
.fx-gh-lines>.fx-gh:nth-child(3n+2){width:84%}
.fx-gh-lines>.fx-gh:nth-child(3n){width:66%}
/* The typed greeting's caret: a 2 px line floating over the heading (out of the flow, placed by motion.js at the last
   letter shown), so the words are never laid out again (round 2b: an inline caret made the heading wrap at some zooms). */
.fx-caret{position:absolute;left:0;top:0;width:2px;height:1.2em;background:currentColor;pointer-events:none}
/* The tabs' sliding underline (motion.js tabBars): only while it slides from the tab left to the tab chosen, the chosen
   tab's own underline gives way to one line of the bar, which then goes. */
.fx-tabbed{position:relative}
.fx-tabbed>.px-tab.on,.fx-tabbed>button[aria-selected="true"]{border-bottom-color:transparent}
.fx-tabbar{position:absolute;bottom:0;height:3px;background:var(--blue);border-radius:2px;pointer-events:none}
/* Overdue and attention marks: a red dot on the overdue chip (its copy behind pulses where motion is welcome, above);
   the menu's red counts carry a ring (a shadow, faded in and out where motion is welcome). */
.px-chip-bad{position:relative;padding-left:22px}
.px-chip-bad::before,.px-chip-bad::after{content:"";position:absolute;left:8px;top:calc(50% - 3.5px);width:7px;height:7px;border-radius:50%;background:currentColor;pointer-events:none}
.px-badge.alert{position:relative}
.px-badge.alert::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:0 0 0 3px var(--badge-red);opacity:0;pointer-events:none}

/* ---------- hover and press (round 2b, partner, 2 December 2026: smooth and interactive like the mock-ups) ----------
   Colours, borders and shadows fade; what moves (lifts, presses, nudges, the arrow's slide) is set only where motion is
   welcome (its transitions are listed here once: with less motion nothing changes its transform, so nothing moves).
   Hover effects only on a device whose pointer hovers. Staff pages only (.px-shell). Never width, height or position
   for layout. */
.px-shell .btn{transition:background-color var(--t),color var(--t),border-color var(--t),box-shadow var(--t),filter var(--t),transform var(--t-fast) var(--ease-out),opacity var(--t)}
.px-shell :is(.row,.atable tbody tr,.px-navitem){transition:background-color var(--t),color var(--t)}
.px-shell :is(input,select,textarea){transition:border-color var(--t),box-shadow var(--t)}
.px-shell :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea):focus{box-shadow:0 0 0 4px var(--glow)}
.px-shell :is(.px-card,.px-waittile,.px-figcard,.px-repcard,a.card){transition:border-color var(--t),background-color var(--t),box-shadow var(--t-lift) var(--ease-out),transform var(--t-lift) var(--ease-out)}
.px-shell .px-navitem .px-ico{transition:transform var(--t-lift) var(--ease-out)}
/* A job on My work is a link: a small arrow at its end fades (and slides) in under the pointer. */
.px-shell ul.px-jobs li a{position:relative;padding-right:18px}
.px-shell ul.px-jobs li a::after{content:"\203A";position:absolute;right:2px;top:50%;margin-top:-.7em;line-height:1.4;color:var(--ink2);opacity:0;transition:opacity var(--t),transform var(--t)}
.px-shell ul.px-jobs li a:focus-visible::after{opacity:1}
/* The client page's jobs: the job's name nudges right under the pointer. */
.atable.px-nudge td:first-child>strong{display:inline-block}
.px-shell :is(ul.px-jobs li a .px-jobline,.atable.px-nudge td:first-child>strong){transition:transform var(--t) var(--ease-out)}
@media (hover:hover){
  .px-shell :is(.px-card,.px-waittile,.px-figcard,.px-repcard,a.card):hover{box-shadow:var(--shadow-up),0 0 0 4px var(--glow)}
  .px-shell ul.px-jobs li a:hover::after{opacity:1}
}
@media (prefers-reduced-motion:no-preference){
  .px-shell .btn:active:not(:disabled):not([aria-disabled="true"]){transform:translateY(1px) scale(.98)}
  .px-shell :is(.px-card,.px-waittile,.px-figcard,.px-repcard,a.card):active{transform:translateY(-1px)}
  .px-shell ul.px-jobs li a::after{transform:translateX(-4px)}
  .px-shell ul.px-jobs li a:focus-visible::after{transform:none}
  @media (hover:hover){
    .px-shell .btn:hover:not(:disabled):not([aria-disabled="true"]){transform:translateY(-1px);box-shadow:var(--shadow-soft)}
    .px-shell .btn:active:not(:disabled):not([aria-disabled="true"]){transform:translateY(1px) scale(.98)} /* after hover, so a press wins */
    .px-shell :is(.px-card,.px-waittile,.px-figcard,.px-repcard,a.card):hover{transform:translateY(-4px)}
    .px-shell :is(.px-card,.px-waittile,.px-figcard,.px-repcard,a.card):active{transform:translateY(-1px)}
    .px-shell .px-navitem:hover .px-ico{transform:scale(1.08)}
    .px-shell ul.px-jobs li a:hover::after{transform:none}
    .px-shell :is(ul.px-jobs li a:hover .px-jobline,.atable.px-nudge tr:hover td:first-child>strong){transform:translateX(4px)}
  }
}
/* Backlog tag (job automation, 22 November 2026): a job set up after its deadline had passed. Theme variables, so light and dark need no rules of their own. */
.px-backlog{display:inline-block;font-size:11px;font-weight:600;padding:1px 8px;border-radius:999px;background:var(--amber-bg);color:var(--amber);vertical-align:1px;white-space:nowrap}

/* ---------- buttons, links and tables (controls round, partner, 2 December 2026; docs/platform/shared-core.md) ----------
   From the audit of every clickable control: one focus ring, rows that answer the pointer, links that do not snap an
   underline, one look each for tabs, chips, segments, menus and icon buttons, toolbars of one height. As round 2b:
   colours, borders and shadows fade always; anything that moves only where motion is welcome; hover effects only where
   the pointer hovers; staff pages (.px-shell) unless said. The clients' app gets only the focus ring, the brand
   tick-boxes, the danger colours, the colour fades and the ghost buttons' tint (set with the rules they change). */

/* Focus: the outline (following the control's corners) and on staff pages a soft halo with it. Fields keep their blue
   border and glow (round 2b) instead of a third ring; on the navy menu the ring stays white. */
.px-shell :is(button,a,summary,[tabindex]:not(.row)):focus-visible{box-shadow:var(--ring)}
.px-shell :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea):focus-visible{outline:none}
.px-shell .btn:not(.ghost){box-shadow:none} /* the old hard 1 px shadow; buttons lift with the soft one under the pointer */

/* Table rows: under the pointer (or holding the focus) a tint over the cells, frozen ones too, and on staff pages a light
   blue tint, a fainter stripe and a 3 px blue bar at the row's start (--bar, set on the first cell); never on the
   timesheet, the trial balance, the schedule, group or total rows. One rule, so those are written once. Rows never move. */
.px-shell{--row-hover:color-mix(in srgb,var(--blue) 7%,var(--surface));--stripe:color-mix(in srgb,var(--sel) 30%,transparent)}
.px-shell .atable tbody td{transition:background-color var(--t-fast),box-shadow var(--t-fast)}
.px-shell .atable tbody td:first-child{--bar:var(--accent-bar)}
@media (hover:hover){
  .atable:not(.sheet):not(.px-ts):not(.px-sctable) tbody tr:not(.lv-grp):not(.lv-total):not(.px-grouprow):is(:hover,:focus-within)>td{background:var(--row-hover);box-shadow:var(--bar,none)}
  .px-shell .atable tbody tr:hover td>a:not(.btn){color:var(--navy)}
}
.px-shell .lv-table tbody tr[data-row]:has(a[href]){cursor:pointer} /* the whole row opens its record (list-view.js) */
@media (prefers-color-scheme: dark) and (hover:hover){:root:not([data-theme="light"]) .px-shell .atable tbody tr:hover td>a:not(.btn){color:var(--ink)}}
@media (hover:hover){:root[data-theme="dark"] .px-shell .atable tbody tr:hover td>a:not(.btn){color:var(--ink)}}

/* Action buttons that looked like old links (.linkbtn: Edit, Remove, Clear the ticks...): a text button in the theme's
   blue with no underline, tinted under the pointer over a hit area larger than the words (the negative margin keeps
   the layout). Low specificity, so the areas' own .linkbtn rules still win. The menu's foot keeps its own. */
:where(.px-main) .linkbtn{color:var(--blue-deep);text-decoration:none;border-radius:calc(var(--r-ctl) - 2px);padding:2px 6px;margin:-2px -6px;transition:background-color var(--t-fast),color var(--t-fast)}
@media (hover:hover){
  :where(.px-main) .linkbtn:hover:not(:disabled){background:var(--tint)}
  :where(.px-main) .linkbtn:is(.bad,.danger):hover:not(:disabled){background:var(--red-bg)}
}

/* Links in running text and "see all" links (class ul-fade): the underline fades in (no snap). Everywhere. */
.ul-fade{text-decoration:underline;text-decoration-color:transparent;text-underline-offset:3px;transition:text-decoration-color var(--t-fast),color var(--t-fast)}
.ul-fade:focus-visible{text-decoration-color:currentColor}
@media (hover:hover){.ul-fade:hover{text-decoration-color:currentColor}}

/* Tabs: one look (the PBC and audit tabs as the portal's own), the weight fixed so a chosen tab's label never widens;
   colour and underline fade; the line slides between them (motion.js, every .tabs bar). */
.px-shell .tabs{gap:4px;margin-top:12px;border-bottom-width:1px}
.px-shell .tabs button{padding:8px 14px;font-size:14px;font-weight:600;margin-bottom:0}
:is(.px-tab,.tabs button){transition:color var(--t-fast),border-color var(--t-fast),transform .1s ease-out}
@media (hover:hover){
  :is(.px-tab:not(.on),.px-shell .tabs button:not([aria-selected="true"])):hover{color:var(--ink);border-bottom-color:color-mix(in srgb,var(--blue) 35%,transparent)}
}
/* ISQM's parts as tabs (isqm.js): the bar's own line is the tabs' line. */
.iq-bar{align-items:flex-end;padding-bottom:0}
.iq-bar>.px-tabs{margin-top:0;border-bottom:0}
.iq-bar>.iq-years{padding-bottom:6px}

/* Chips and filters: one pill, 30 px, a blue border and faint tint under the pointer; chosen is the soft blue (navy is
   for main buttons only). The PBC lists' filters (.filters) change colour only in the clients' app. */
.px-shell :is(.filters button,.px-chip,.px-jump,.px-scpick){display:inline-flex;align-items:center;min-height:var(--ctl-h-sm);border-radius:var(--r-pill);padding-top:2px;padding-bottom:2px}
.px-shell .px-kchip{min-height:calc(var(--ctl-h-sm) - 4px)}
.px-shell :is(.px-chip,.px-jump,.px-kchip,.px-scpick,.px-daychip){transition:background-color var(--t-fast),color var(--t-fast),border-color var(--t-fast),box-shadow var(--t-fast),transform .1s ease-out}
@media (hover:hover){
  .px-shell :is(.filters button:not([aria-pressed="true"]),.px-chip:not(.on),.px-jump,.px-scpick:not(.on)):hover{border-color:var(--blue);background:linear-gradient(var(--tint),var(--tint)) var(--surface)}
  .px-shell .px-kchip:hover{border-color:var(--blue)}
}

/* Segmented controls: under the pointer the label darkens (the look is with the old .seg rules). The select inside one
   has no border of its own: its focus outlines the option. */
@media (hover:hover){:is(.seg button:not([aria-pressed="true"]),.px-segopt:not(.on)):hover{color:var(--ink)}}
.px-shell .px-segsel:has(select:focus-visible){outline:2px solid var(--focus);outline-offset:2px}

/* Menus: one item look (the lists' View, Columns and Excel, the funnel's conditions, the download menus, Portfolio's
   pop-overs), a fade under the pointer, a destructive item in red, the pop-over's corners and shadow from the tokens. */
:is(.lv-mi,details.menu .menu-list a,.px-pfopt){transition:background-color var(--t-fast),color var(--t-fast)}
.lv-mi[data-act="lv-del"]{color:var(--red)}
.px-shell :is(details.menu .menu-list,.lv-fpop,.px-pfmenu,.px-scpicks){border-radius:var(--r-card)}

/* Ctrl+K: the result under the pointer tints; the chosen one also has the bar. The search box's focus is a solid ring
   inside it (the box clips anything outside). */
.px-palette{border-radius:var(--r-card)}
#px-palq:focus{outline:none;box-shadow:inset 0 0 0 2px var(--focus)}
.px-palette li{transition:background-color var(--t-fast),box-shadow var(--t-fast)}
.px-palette li[aria-selected="true"]{box-shadow:var(--accent-bar)}
@media (hover:hover){.px-palette li:not([aria-selected="true"]):hover{background:color-mix(in srgb,var(--sel) 60%,transparent)}}

/* Icon, close and small buttons (class px-ib): a tint and a fade, and a hit area of at least 28 px (36 on touch) drawn
   round the small mark (::before), so nothing on the page moves; never sideways over a field beside it (a timesheet
   day's note, a column's filter). */
.px-shell .px-ib{position:relative;border-radius:var(--r-ctl);transition:background-color var(--t-fast),color var(--t-fast),opacity var(--t-fast),border-color var(--t-fast),transform .1s ease-out}
.px-shell .px-ib::before{content:"";position:absolute;inset:var(--hit-y,-5px) var(--hit-x,-5px)}
.px-shell :is(.lv-fbtn,.px-bcx,.px-msic-x){--hit-y:-3px;--hit-x:-3px}
@media (pointer:coarse){.px-shell .px-ib{--hit-y:-9px;--hit-x:-9px}}
.px-shell :is(.px-nm,.lv-fbtn){--hit-x:-2px}
.px-shell .px-i{border-radius:50%}
.px-shell .px-ib.linkbtn{margin:0}
.lv-rs::before{content:"";position:absolute;inset:0 -4px} /* the column's edge: 15 px to catch */
@media (hover:hover){
  .px-shell :is(.px-nm,.px-lvx,.lv-arr:not(:disabled),.px-ib.linkbtn):hover{background:var(--sel)}
}

/* Tiles that open something lift like the cards (round 2b); accordion heads fade their tint. */
.px-shell :is(.px-starter,.px-prog,.wpsteps li button,.px-daychip,.px-part){transition:border-color var(--t),background-color var(--t),box-shadow var(--t-lift) var(--ease-out),transform var(--t-lift) var(--ease-out)}
.px-shell :is(.px-step-head,.iq-sec-head,.thumb,.drop){transition:background-color var(--t-fast),border-color var(--t-fast)}
@media (hover:hover){
  .px-shell :is(.px-starter,.px-prog,.wpsteps li button,.px-daychip,.px-part):hover{border-color:var(--blue);box-shadow:var(--shadow-up),0 0 0 4px var(--glow)}
}

/* Toolbars: one height for search, selects and buttons on a line (lists, Jobs, the schedule, Firm reports, ISQM, the
   pager); the lists' Clear a ghost button with the rest. */
.px-shell :is(.lv-bar,.lv-pager,.px-filters,.px-sctools,.px-repfilters,.iq-bar) :is(input[type=search],input[type=text],input[type=date],select,.btn,summary.btn){box-sizing:border-box;min-height:var(--ctl-h-sm);padding-top:3px;padding-bottom:3px;font-size:13.5px}
.px-shell .lv-bar{gap:8px}
.px-shell .lv-tabs{margin-top:12px}
.lv-pager .muted{font-variant-numeric:tabular-nums}

@media (prefers-reduced-motion:no-preference){
  /* The disclosure arrows turn (they no longer turn with less motion). */
  .px-navgroup .px-ico,.iq-chev,.px-step-chev{transition:transform var(--t-fast) var(--ease-out)}
  /* The small press (transform is in each control's own transition list). */
  .filters button:active{transform:scale(.97)}
  .px-shell :is(.px-jump,.px-kchip,.px-scpick,.seg button,.tabs button):active{transform:scale(.97)}
  .px-shell .px-ib:not(:disabled):active{transform:scale(.92)}
  @media (hover:hover){
    .px-shell :is(.px-starter,.px-prog,.wpsteps li button,.px-daychip,.px-part):hover{transform:translateY(-2px)}
  }
}

/* ---------- network patterns inside the portal (partner, 22 November 2026) ----------
   Still and faint, like the sign-in page's network but with no moving light, and only where there is nothing to read:
   the right end of the clients' top bar (and the staff menu's leftover space, in "the staff frame"). The staff pages' side
   margins and the space beside My work's greeting had their own until 2 December 2026, when the background network
   across the whole staff page ("the staff pages' background") replaced them.
   Each is a pseudo-element coloured by a theme variable and cut out by a small SVG made by scripts/make-net-svg.mjs
   (public/img/net-*.svg, its fade built in), painted under the content (first in order, the content positioned after
   it), no clicks. No new stacking layers, so menus still overlap. */
.px-main>main{position:relative}
.appbar{position:relative}
.appbar-in{position:relative}
.appbar::before{content:"";position:absolute;top:0;right:0;bottom:0;width:min(720px,60%);pointer-events:none;background:var(--net-on-navy);opacity:.3;
  -webkit-mask:url(/img/net-bar.svg) right center/auto 100% no-repeat;mask:url(/img/net-bar.svg) right center/auto 100% no-repeat}
.px-hello{position:relative}
.px-hello>h1{position:relative}
/* What the job still waits for from the client, beside the status (22 November 2026). */
.px-waittag{margin:2px 0 6px;padding:4px 8px;border-radius:6px;background:var(--amber-bg);color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.px-waittag a{color:inherit}
/* My work and Portfolio polish (23 November 2026): headings clear of their tiles, Today's figures label-over-value like the
   other figure tiles, a job's due pill and tags kept together, and on a phone the Portfolio table becomes one card per job. */
.px-head+:is(.px-waittiles,.px-figs){margin-top:12px}
.px-waittiles{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
.px-daytiles{grid-template-columns:repeat(4,minmax(0,1fr))}
.px-daytiles .px-waittile{flex-direction:column-reverse;justify-content:flex-end;align-items:flex-start;gap:4px}
.px-daytiles .px-waittile span{color:var(--ink2)}
.px-daytiles .px-waittile b{font-size:20px}
.lead-panel .px-two{margin-top:14px}
.lead-panel .px-two h3{font-size:15px;margin:0 0 4px}
.px-jobgroup{display:flex;align-items:baseline;gap:6px;padding-top:10px;border-top:1px solid var(--rule)}
.px-jobgroup:first-of-type{border-top:0;padding-top:0}
ul.px-jobs{margin-top:0}
ul.px-jobs li:last-child{border-bottom:0}
ul.px-jobs li a{flex-wrap:wrap;row-gap:6px}
.px-jobs .px-jobline{flex:1 1 240px}
.px-jobmeta{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}
.px-jobmeta .px-backlog{vertical-align:0}
#px-d-myjobs>h2,.px-two .panel>h2{margin-bottom:4px}
.px-figs>div>b{line-height:1.2}
.px-filters input[type=search]{flex:1 1 240px;max-width:340px}
.panel>.px-filters:first-child{margin-top:0}
.px-pfdue .linkbtn{text-align:left}
.px-pfdue .linkbtn:hover .muted,.px-pfdue .linkbtn:focus-visible .muted{text-decoration:underline}
@media (max-width:600px){
  .px-figs:not(.px-figs-1){grid-template-columns:repeat(2,minmax(0,1fr))}
  .px-daytiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .px-filters>*{flex:1 1 100%;max-width:none}
  .px-filters select,.px-filters input[type=search]{max-width:none;width:100%}
  .px-jobmeta{justify-content:flex-start}
  .px-pflist .px-pfmenu{position:static;transform:none;min-width:0;margin-top:8px;box-shadow:none}
}
/* The notification bell as cards (23 November 2026): icon, title and count, client over job, "See all"; urgent groups
   (overdue, red flags) red, those needing someone (nobody on the job, KYC, acceptance) amber, the rest blue. Tokens only. */
.px-bell>h2{margin-bottom:12px}
/* The drawer's close button beside its heading (the Notifications panel, 24 November 2026): theme tokens, so light and
   dark alike; at least 32px to tap on a phone. */
.px-drawerhead{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
.px-drawerhead h2{margin:0}
.px-drawer-x{flex:0 0 auto;width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--ink2);font-size:22px;line-height:1;cursor:pointer}
.px-drawer-x:hover{background:var(--blue-soft);color:var(--ink)}
.px-bellcards{display:flex;flex-direction:column;gap:10px}
.px-bellcard{--acc:var(--blue);--acc-bg:var(--blue-soft);border:1px solid var(--rule);border-left:4px solid var(--acc);border-radius:8px;padding:10px 12px;background:var(--surface)}
.px-bell-bad{--acc:var(--red);--acc-bg:var(--red-bg)}
.px-bell-warn{--acc:var(--amber);--acc-bg:var(--amber-bg)}
.px-bellcard h3{display:flex;align-items:center;gap:8px;margin:0;font-size:14.5px;line-height:1.3}
.px-bellcard h3 .px-ico{width:18px;height:18px;color:var(--acc)}
.px-belltitle{flex:1;min-width:0}
.px-belltitle a{color:inherit;text-decoration:none}
.px-belltitle a:hover,.px-belltitle a:focus-visible{text-decoration:underline}
.px-bellcount{flex:none;min-width:24px;text-align:center;font-size:12px;font-weight:700;line-height:20px;padding:0 7px;border-radius:999px;background:var(--acc-bg);color:var(--acc)}
.px-bellitems{list-style:none;margin:8px 0 0;padding:0}
.px-bellitems li+li{border-top:1px solid var(--rule)}
.px-bellitems a{display:flex;flex-direction:column;gap:1px;padding:6px 0;color:var(--ink);text-decoration:none;font-size:13.5px;line-height:1.35;min-width:0}
.px-bellitems a b{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.px-bellitems a:hover b,.px-bellitems a:focus-visible b,.px-bellitems a:hover>span:only-child{color:var(--blue-deep);text-decoration:underline}
.px-bellall{display:inline-block;margin:6px 0 0;font-weight:600;color:var(--blue-deep)}
a.px-bellall::after{content:" \2192"}
/* "See all" opens the list in the card, "Show fewer" closes it; "Open list" goes to the group's page (23 November 2026). */
.px-bellall[aria-expanded=false]::after{content:" \25BE"}
.px-bellall[aria-expanded=true]::after{content:" \25B4"}
button.px-bellall{background:none;border:0;padding:0;cursor:pointer;font:inherit;font-size:13px;font-weight:600}
.px-bellfoot{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;margin-top:6px}
.px-bellfoot .px-bellall{margin:0}
.px-bellgo{margin-left:auto}
.px-bellgo::after{content:" \2192"}
/* Notices read and unread (partner, 2 December 2026): unread = a blue dot at the left, bold, a soft blue tint; read = no dot,
   normal weight, muted. Theme colours only, so dark follows. To-dos say they clear when done. */
.px-bellitems li{display:flex;align-items:center;gap:6px;border-radius:8px;transition:background-color var(--t-fast)}
.px-bellitems li>a{flex:1}
.px-bellitems li.px-bell-unread{background:color-mix(in srgb,var(--blue) 10%,var(--surface));margin:2px -8px;padding:0 4px 0 24px;position:relative}
.px-bellitems li.px-bell-unread::before{content:"";position:absolute;left:9px;top:50%;width:8px;height:8px;margin-top:-4px;border-radius:50%;background:var(--blue)}
.px-bellitems li.px-bell-unread a :is(b,span),.px-bellitems li.px-bell-unread a{font-weight:700;color:var(--ink)}
.px-bellitems li.px-bell-read a :is(b,span),.px-bellitems li.px-bell-read a{font-weight:400;color:var(--ink2)}
.px-bellitems li:is(.px-bell-unread,.px-bell-read) a:is(:hover,:focus-visible) :is(b,span:only-child){color:var(--blue-deep)} /* the hover colour kept on notices */
.px-bellitems li.px-bell-unread+li,.px-bellitems li+li.px-bell-unread{border-top-color:transparent}
.px-bell-mark{flex:none;display:inline-flex;align-items:center;justify-content:center;width:var(--ctl-h-sm);height:var(--ctl-h-sm);border:0;border-radius:var(--r-ctl);background:transparent;color:var(--ink2);cursor:pointer;transition:background-color var(--t-fast),color var(--t-fast)}
.px-bell-mark .px-ico{width:16px;height:16px}
.px-bell-mark:hover,.px-bell-mark:focus-visible{background:var(--surface);color:var(--blue-deep)}
.px-bellcount.new{background:var(--blue-deep);color:var(--btn-ink)} /* "n new": white on the deep blue in light (4.5:1 and more), dark text on light blue in dark */
.px-bellbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px}
.px-bellhint{margin:6px 0 0;font-size:12px;color:var(--ink2)}
/* Portfolio's extension of time as a compact pop-over (23 November 2026): label over a normal-width date, the help
   line, then Save (primary) with Close beside it; text wraps although the Due cell does not. */
.px-pfdue .px-eotmenu{width:270px;white-space:normal;gap:8px;padding:12px 14px}
.px-eotmenu label{display:flex;flex-direction:column;gap:4px;margin:0;font-weight:600;color:var(--ink2)}
.px-eotmenu input[type=date]{width:100%;max-width:190px}
.px-eotmenu>.muted{line-height:1.4}
.px-eotbtns{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-top:2px}
@media (max-width:600px){.px-pfdue .px-eotmenu{width:auto}}
/* Client reminders (23 November 2026): a form with the email's preview on the right (one column on a phone). */
.px-remform{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
.px-remform .px-mailbody{white-space:pre-wrap}
@media (max-width:900px){.px-remform{grid-template-columns:minmax(0,1fr)}}
/* The client page's Client reminders tab, layout polish (partner, 24 November 2026: "make sure it looks polished"; look
   only). Sections under one heading size with a thin line between them, as on the KYC tab; the two settings sized to
   their choices; the reminder emails table with fixed column widths (scrolling sideways when narrow, one card per
   reminder on a phone); the form and "Copy reminders from…" in a box; recent reminders one under the other. Colours
   come from the theme's tokens, so light and dark need no rules of their own. */
.px-remtab h3{font-size:15px;margin:0 0 8px}
.px-remtab .px-remsec{margin-top:18px;padding-top:14px;border-top:1px solid var(--rule)}
.px-remtab .px-head.px-remsec{margin-bottom:6px}
.px-remtab .px-head h3{margin:0}
.px-remtab .px-remnote{margin:6px 0 0}
.px-remtab .px-remfoot{margin:16px 0 0}
.px-remset{display:flex;flex-wrap:wrap;gap:0 24px}
.px-remset>div{min-width:0;max-width:100%}
.px-remset select{width:auto;max-width:100%}
.px-btnrow{display:flex;gap:8px;flex-wrap:wrap}
.px-crmwrap{max-width:100%;margin-top:4px}
.px-crmtable{table-layout:fixed;min-width:860px}
.px-crmtable .c-desc{width:14%} .px-crmtable .c-when{width:13%} .px-crmtable .c-next{width:11%} .px-crmtable .c-tpl{width:10%}
.px-crmtable .c-to{width:13%} .px-crmtable .c-st{width:10%} .px-crmtable .c-sends{width:21%} .px-crmtable .c-act{width:76px}
.px-crmtable.ro .c-sends{width:29%}
.px-crmtable th,.px-crmtable td{padding-left:8px;padding-right:8px}
.px-crmtable td{overflow-wrap:break-word}
.px-crmtable .px-crmdesc{font-weight:500}
.px-crmsends>div{margin:0 0 4px}
.px-crmsends .nowrap{white-space:normal}
.px-crmacts{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.px-crmacts .linkbtn{text-align:left}
.px-remsub{border:1px solid var(--rule);border-radius:8px;background:var(--surface);padding:14px 16px;margin:10px 0 12px}
.px-remsub h3{margin:0 0 2px}
.px-remsub .actions{margin-top:14px}
.px-remform{margin-top:4px}
@media (min-width:901px){.px-remform{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}}
.px-remform .px-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}
.px-remform .px-inline input[type=number]{flex:0 0 90px;min-width:0}
.px-remform .px-inline select{flex:1 1 110px;min-width:0}
.px-remform .px-grid>div:has([data-form=px_crm_desc]),.px-remform .px-grid>div:has([data-form=px_crm_when]),.px-remform .px-grid>div:has([data-form=px_crm_mode]){grid-column:1/-1}
.px-remform .px-checks{gap:4px 18px;margin-top:6px}
.px-remform .px-checks .chk,.px-crmclist .chk{margin:0;gap:8px;align-items:baseline}
.px-crmstaff{margin-top:12px}
.px-crmstaff .px-checks{max-height:220px}
.px-remprev>p{margin:12px 0 6px}
.px-crmclist{flex-direction:column;margin-top:10px}
.px-remsub select[data-form=px_crmc_mode]{width:auto;max-width:100%}
.px-remsub .px-inline select[data-form=px_crmc_from]{flex:0 1 420px}
.px-remwho td{overflow-wrap:break-word}
ul.px-remrecent li{display:block;padding:8px 0}
@media (max-width:600px){
  .px-crmwrap{overflow:visible}
  .px-crmtable{min-width:0}
  .px-crmtable colgroup,.px-crmtable thead{display:none}
  .px-crmtable,.px-crmtable tbody{display:block}
  .px-crmtable tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;padding:12px 4px;border-bottom:1px solid var(--rule)}
  .px-crmtable td{display:block;padding:0;border:0;min-width:0}
  .px-crmtable td.px-crmdesc,.px-crmtable td.px-crmsends,.px-crmtable td.px-crmact{grid-column:1/-1}
  .px-crmtable td[data-label]::before{content:attr(data-label);display:block;font-size:12px;font-weight:600;color:var(--ink2);margin-bottom:2px}
  .px-crmacts{flex-direction:row;gap:18px}
  .px-crmtable tr:last-child{border-bottom:0}
  .px-remsub{padding:12px}
}

/* Billing (billing review, 25 November 2026): the figure cards open the tabs, the one To bill list and its Bill box,
   the next-step card on a bill, money columns aligned. Colours come from the theme's variables only, so the dark
   theme needs no rules of its own here. */
.px-figs>.px-figcard{display:flex;flex-direction:column;gap:4px;text-align:left;font:inherit;color:inherit;background:var(--surface);border:1px solid var(--rule);border-radius:10px;padding:12px 14px;cursor:pointer}
.px-figs>.px-figcard:hover,.px-figs>.px-figcard:focus-visible{border-color:var(--blue)}
.px-figs>.px-figcard b{font-size:20px}
.px-money{font-variant-numeric:tabular-nums;white-space:nowrap}
.px-tobill th:nth-child(3),.px-tobill td:nth-child(3){width:130px}
.px-tobill>tbody>tr:not(.px-billform)>td:last-child,.px-bills>tbody>tr>td:last-child{width:1%;white-space:nowrap}
.px-tobill tr.px-billopen td{border-bottom:0}
.px-billbox{margin:0}
.px-billbox label.radio{margin:4px 0}
.px-billbox .actions{align-items:center}
.px-ope{margin-top:10px;padding-top:10px;border-top:1px solid var(--rule)}
.px-opelist{margin:6px 0 8px;width:auto;max-width:100%}
.px-opelist td{padding:3px 8px}
.px-opelist td:first-child{white-space:nowrap}
.px-opebill{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px}
.px-opebill input{width:130px;max-width:100%}
.px-markup{color:var(--green);font-weight:600}
.px-writeoff{color:var(--amber);font-weight:600}
.px-tick{width:28px}
.px-bulk{align-items:center;margin:8px 0}
.px-bulk .chk{margin:0}
.px-next{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;margin-top:12px;padding:12px 16px;border-radius:10px;border:1px solid var(--rule);border-left:4px solid var(--blue);background:var(--surface)}
.px-next p{margin:4px 0 0;color:var(--ink2)}
.px-next-btns{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.px-next-btns .btn{text-decoration:none}
.px-next-wait{border-left-color:var(--amber)}
.px-next-act{border-left-color:var(--blue)}
.px-next-problem{border-left-color:var(--red);background:var(--red-bg)}
.px-next-ok{border-left-color:var(--green)}
.px-next-done{border-left-color:var(--green);background:var(--green-bg)}
.px-blines th.r,.px-blines td.r{width:150px}
.px-blines input.px-amount{max-width:130px;text-align:right}
.px-blines tr.px-total td{border-top:2px solid var(--rule)}
.px-more{margin-top:12px}
.px-more>summary{color:var(--ink2)}
/* On a phone the billing tables become cards: no sideways scrolling (only their own rows: a table inside the Bill box stays a table). */
@media (max-width:600px){
  .px-tobill>thead,.px-bills>thead,.px-blines>thead{display:none}
  .px-tobill,.px-tobill>tbody,.px-bills,.px-bills>tbody,.px-blines,.px-blines>tbody{display:block}
  .px-tobill>tbody>tr,.px-bills>tbody>tr,.px-blines>tbody>tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:10px 6px;border-bottom:1px solid var(--rule)}
  .px-tobill>tbody>tr>td,.px-bills>tbody>tr>td,.px-blines>tbody>tr>td{display:block;padding:0;border:0;min-width:0;width:auto}
  .px-tobill>tbody>tr>td:nth-child(1),.px-tobill>tbody>tr>td:nth-child(2),.px-tobill>tbody>tr.px-billform>td{grid-column:1/-1}
  .px-tobill>tbody>tr>td:nth-child(3){align-self:center;text-align:left}
  .px-tobill>tbody>tr.px-grouprow>td:first-child{grid-column:1}
  .px-tobill>tbody>tr.px-billform{padding:0 0 10px}
  .px-bills>tbody>tr{grid-template-columns:auto minmax(0,1fr) auto}
  .px-bills>tbody>tr>td{grid-column:2}
  .px-bills>tbody>tr>td.px-tick{grid-column:1;grid-row:1}
  .px-bills>tbody>tr>td.px-bamt{grid-column:3;grid-row:1}
  .px-bills>tbody>tr>td.px-bact{grid-column:3;grid-row:2}
  .px-bills>tbody>tr>td.px-bact:empty{display:none}
  .px-blines>tbody>tr.px-bline>td:first-child{grid-column:1/-1}
  .px-blines>tbody>tr>td:empty{display:none}
  .px-blines>tbody>tr.px-total{border-top:2px solid var(--rule)}
}
/* Lists round 1 (partner, 26 November 2026): one short job label; in lists of several clients the client in bold with the label
   under it; long one-line cells cut with "…" (full text on hover); medium tables scroll in their own box with the headings kept
   at the top (the px-scroll wrappers: Firm reports' tables and the MIA lists). Colours come from the variables, so dark needs no rules. */
.px-jobcell{display:flex;flex-direction:column;min-width:0;max-width:260px;line-height:1.3;text-decoration:none;color:inherit}
.px-jobcell .px-jcclient,.px-jobcell .px-jclabel{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.px-jobcell .px-jcclient{color:var(--blue-deep)}
.px-jobcell .px-jclabel{font-size:12.5px;color:var(--ink2)}
a.px-jobcell:hover .px-jcclient{text-decoration:underline}
.px-clip{display:inline-block;max-width:100%;vertical-align:bottom;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.px-scroll{max-height:min(70vh,720px);overflow:auto}
.px-scroll>table>thead th{position:sticky;top:0;z-index:2;background:var(--surface)}
.lv-table td .px-clip,.lv-table td .px-jobcell{max-width:100%}
.lv-table tr.lv-grp td:first-child{white-space:nowrap;overflow:visible}
.lv-act{width:1%;white-space:nowrap}
@media (max-width:600px){.px-scroll{max-height:none}}

/* Settings, one page with seven tabs (Settings round 1, 26 November 2026). Colours come from the theme tokens, so
   light and dark need no rules of their own. */
.set-people td,.set-people th,.set-codes td{vertical-align:middle}
.set-people .set-name{font-weight:600;text-align:left;padding:0}
.set-norate{display:inline-block;padding:1px 8px;border-radius:10px;background:var(--amber-bg);color:var(--amber);font-size:12px;font-weight:600;white-space:nowrap}
p.set-norate{display:block;border-radius:6px;padding:6px 10px}
.set-person h3{margin:18px 0 6px;font-size:15px}
.set-person .set-grid{grid-template-columns:1fr 1fr}
.set-person .set-grid input,.set-person .set-grid select{width:100%;max-width:none}
.set-btns{display:flex;flex-wrap:wrap;gap:4px 12px}
.set-role{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.set-steps{list-style:none;margin:10px 0 0;padding:0;counter-reset:step}
.set-step{display:flex;gap:10px;align-items:flex-start;padding:8px 0;border-top:1px solid var(--rule)}
.set-step:first-child{border-top:0}
.set-mark{flex:0 0 52px;text-align:center;padding:1px 0;border-radius:10px;font-size:12px;font-weight:600;background:var(--amber-bg);color:var(--amber)}
.set-step.done .set-mark{background:var(--green-bg);color:var(--green)}
@media (max-width:600px){
  /* The tab bar keeps one row and scrolls sideways; the People table shows name, role and rate only. */
  .set-tabs{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
  .set-tabs .px-tab{flex:0 0 auto;padding:8px 10px}
  .set-people .set-wide{display:none}
  .set-people td,.set-people th{padding-left:6px;padding-right:6px}
  .set-person .set-grid{grid-template-columns:1fr}
}

/* "A new version of the portal is ready" (public/js/version-check.js, 27 November 2026): a slim bar over the top of every page. */
.version-banner{position:sticky;top:0;z-index:1000;display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;padding:8px 16px;background:var(--amber-bg);color:var(--ink);border-bottom:1px solid var(--amber);font-size:14px}
.version-banner .linkbtn{color:var(--ink)}
/* Settings, System, Modules (27 November 2026): one row a module, its switch on the right. */
.mod-list{list-style:none;margin:8px 0 0;padding:0}
.mod-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:10px 0;border-top:1px solid var(--rule)}
.mod-row:first-child{border-top:0}
.mod-row .mod-name{font-weight:600}
.mod-row .btn{white-space:nowrap;flex:none}
.mod-state{font-size:12px;font-weight:600;padding:2px 8px;border-radius:10px;background:var(--red-bg);color:var(--red);white-space:nowrap}
.mod-state.on{background:var(--green-bg);color:var(--green)}
/* Dense lists (def.dense; Billing, partner, 27 November 2026): even, tighter rows; headings on one line; buttons on the
   row's first line; a group's line compact on its own tint (--grp, light and dark), its total under the money column. */
.lv-dense .lv-table td{padding:6px 10px;vertical-align:top;line-height:1.35}
.lv-dense .lv-table thead th{white-space:nowrap}
.lv-dense .lv-table td.lv-act .btn.sm{margin-top:-2px;white-space:nowrap}
.lv-dense .lv-table tr.lv-grp td{padding-top:4px;padding-bottom:4px;font-weight:400;vertical-align:middle;background:var(--grp)}
.lv-dense .lv-table tr.lv-grp td strong,.lv-dense .lv-table tr.lv-grp td.r{font-weight:600}
/* Each group a clear block (partner, 27 November 2026): the group's line one band (its name spans to the first total,
   no column lines), a firmer line and a blue mark above each group, its rows indented and parted by fainter lines. */
.lv-dense .lv-table tr.lv-grp td{padding-top:8px;padding-bottom:8px;border-top:2px solid var(--rule);border-right-color:transparent}
.lv-dense .lv-table tbody tr.lv-grp:first-child td{border-top:0}
.lv-dense .lv-table tr.lv-grp td.lv-gname{box-shadow:inset 3px 0 0 var(--blue);white-space:nowrap}
.lv-dense .lv-table tbody tr[data-row] td{border-bottom-color:color-mix(in srgb,var(--rule) 45%,transparent)}
.lv-dense .lv-table tr.lv-grp ~ tr[data-row]{background:var(--surface)} /* no stripes under groups: the tinted band is the group */
.lv-dense .lv-table tr.lv-grp ~ tr[data-row] > td:first-child:not(.lv-tick),.lv-dense .lv-table tr.lv-grp ~ tr[data-row] > td.lv-tick + td{padding-left:24px}
.lv-dense .lv-table tfoot tr.lv-total td{border-top:2px solid var(--rule);border-right-color:transparent}
.lv-gcount{margin-left:6px;font-weight:400}
.px-basis{display:block}
.px-basis2{display:block;margin-top:1px}
.px-cnlist{margin:6px 0 4px;padding-left:18px}
.px-cnlist li{margin:2px 0}
.px-cnmatch .px-cnact,.px-cnmatch td:first-child{white-space:nowrap}
.px-cnmatch .px-cnact select{max-width:280px}
@media (max-width:600px){
  .lv-dense .lv-table td{padding:5px 8px}
  .px-cnmatch .px-cnact{white-space:normal}
  .px-cnmatch .px-cnact select{max-width:100%;margin-bottom:4px}
}

/* Client import preview and the Client groups picker (27 November 2026): colours from the theme tokens, so no dark rules are needed. */
.px-stpill.px-stmini{margin-left:6px;padding:0 6px;font-size:12px;line-height:16px}
.lv-table tr.px-imp-ask td{background:var(--amber-bg)}
.px-gpick .px-gp-hits{max-height:280px;overflow-y:auto}
.px-gpick .px-gp-hits li{padding:3px 0}
.px-gpick .px-gp-hits li[aria-selected="true"]{background:var(--sel);border-radius:4px}
/* UI round A (27 November 2026): short text and even spacing on the work pages (partner: "make sure alignments and spacing are ok").
   Colours come from the variables, so dark needs no rules of its own. */
/* My work: "Waiting for you" as an even grid of equal tiles, each label on one line; slow moving jobs one line each */
.px-waittiles:not(.px-daytiles){grid-template-columns:repeat(auto-fill,minmax(min(250px,100%),1fr))}
.px-waittiles:not(.px-daytiles) .px-waittile{min-width:0;min-height:48px}
.px-waittiles:not(.px-daytiles) .px-waittile span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.px-slow li{display:flex;flex-wrap:nowrap;gap:10px;align-items:baseline;justify-content:space-between;padding:3px 0;border-bottom:1px solid color-mix(in srgb,var(--rule) 50%,transparent)}
.px-slow li:last-child{border-bottom:0}
.px-slow li a{flex:0 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.px-slow li span{flex:none;white-space:nowrap}
/* Approvals: the same three columns in every section, amounts on the right */
.px-dtable{table-layout:fixed;width:100%}
.px-dtable col.px-dt-what{width:46%}
.px-dtable col.px-dt-rm{width:130px}
.px-dtable td{overflow-wrap:anywhere}
.px-dtable td.px-dt-amt{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
@media (max-width:600px){.px-dtable col.px-dt-what{width:50%}.px-dtable col.px-dt-rm{width:96px}}
/* Client page: who leads it on one line, its work as chips on the next; one label width in the details */
.px-glance{margin:-4px 0 14px;line-height:1.5}
.px-glance p{margin:0}
.px-gl-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px!important}
.px-gl-chip{display:inline-flex;align-items:center;gap:4px;padding:2px 10px;border:1px solid var(--rule);border-radius:999px;background:var(--surface);white-space:nowrap}
.px-gl-chip .linkbtn{padding:0}
.px-dl-client .px-dlrow{grid-template-columns:minmax(0,215px) minmax(0,1fr)}
@media (max-width:520px){.px-dl-client .px-dlrow{grid-template-columns:minmax(0,42%) minmax(0,1fr)}}
@media (max-width:600px){.px-gl-chip{white-space:normal}.px-waittiles:not(.px-daytiles) .px-waittile span{white-space:normal;overflow:visible}}
/* Lists: a client's name wraps to a second line instead of being cut */
.lv-table .px-jobcell .px-jcclient{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical}
.lv-table .px-jobcell{max-width:300px}
/* Job schedule: the grade under the name, so long names are not squeezed */
.px-sc .px-scn{min-width:280px;max-width:280px}
.px-scwho{align-items:center}
.px-scnm1{display:flex;flex-direction:column;line-height:1.25}
.px-scnm1>*{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.px-scnm1>.small{font-size:12px}
@media (max-width:700px){.px-sc .px-scn{min-width:160px;max-width:160px}}
/* Lists: long names and statuses wrap to a second line instead of being cut (the full text stays on hover); one button a row is as wide as the column's widest */
.lv-table td .px-clip{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}
.lv-table td.lv-act>.btn.px-btnfill:only-child{display:block;width:100%;text-align:center;box-sizing:border-box}
/* Portfolio: the status words may wrap; the bar and "1 of 13" share one line */
.px-pfstatus{display:flex;flex-wrap:wrap;align-items:center;column-gap:8px;min-width:0}
.px-pfstatus>.linkbtn{flex-basis:100%;white-space:normal;text-align:left}
.px-pfstatus>.px-bar{flex:0 0 110px;margin:3px 0}

/* Settings, People, Roles and access (28 November 2026; public/js/settings-roles.js): theme colours only, so no dark rules
   of its own; on a phone the table scrolls inside its box. */
.ra-scroll{overflow-x:auto;max-width:100%}
.ra-table{min-width:860px}
.ra-table td,.ra-table th{vertical-align:top}
.ra-table select{min-width:150px;max-width:190px}
.ra-area th{background:var(--grp);font-weight:600;text-align:left}
.ra-act{font-weight:500;text-align:left;min-width:220px}
.ra-own{display:block;font-weight:400;max-width:320px}
.ra-wait{color:var(--amber);margin-top:4px;max-width:200px}
.ra-locked th,.ra-locked td{color:var(--ink2)}
.ra-locked{background:var(--bg)}
/* View as a real person (2 December 2026; public/js/view-as.js): the banner on every page and the Settings panel; theme colours
   only, so no dark rules of their own. */
.viewas-bar{position:sticky;top:0;z-index:60;display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;padding:8px 16px;background:var(--navy);color:#fff;border-bottom:3px solid var(--amber);font-size:14px}
.viewas-bar .viewas-end{opacity:.85}
.viewas-bar .btn{margin-left:auto;background:#fff;color:var(--navy)}
.viewas-form{display:flex;flex-wrap:wrap;gap:12px 20px;align-items:flex-start}
.viewas-pick{flex:1 1 320px;min-width:0}
.viewas-pick input{display:block;width:100%;margin:4px 0}
.viewas-pick select{width:100%}
.viewas-form .actions{flex-basis:100%}
.px-tswho{max-width:220px;margin:0 8px}
