/*
  GenX - one stylesheet for the whole app.

  Tokens first: the light palette on :root, dark under prefers-color-scheme
  (unless the page says light) and again under an explicit data-theme="dark".
  Then the shell (rail + page), the door, the form pieces, and My Work.

  Two rules from the design that every screen inherits:
    - Colour means workflow state, plus one accent for the things you press.
      The --st-* pairs are the states; --return-* marks work that
      came back; --bad is a refusal, --ok a pass, --due the wait on the client;
      --accent (amber, the Ember look) is for actions only. Nothing else has a hue.
    - Type: IBM Plex Sans for text, IBM Plex Mono for ids, codes, counts and
      anything read character by character. Both fall back to system faces.
  Ported from the approved screen designs in D:\Claude_Apps\genx-screen-*.html.
*/

:root{
  /* Ember (chosen September 2026): charcoal rail, amber-orange accent where you act,
     cool slate page, rounded cards and pills, soft shadows. State pills keep their
     own hues, so state still reads at a glance; the accent is for actions only. */
  --page:#F3F4F7;
  --chrome:#FFFFFF; --rail:#23262E; --rail-ink:#A9AFBA; --rail-ink-hi:#FFFFFF; --rail-line:#2F333C;
  --surface:#FFFFFF; --surface-2:#F6F7F9; --sunk:#EBEDF1; --backdrop:#DDE0E6;
  --ink:#191C22; --ink-2:#464C57; --muted:#737A86;
  --line:#E3E6EC; --line-strong:#CBD0D9;
  --action:#E0731A; --action-ink:#FFFFFF;
  --accent:#E0731A; --accent-ink:#A8500A; --accent-soft:#FDEEDF; --accent-line:#F3C79B;
  --toast:#191C22; --toast-ink:#FFFFFF;
  --focus:#B35A10;
  --bad:#9A4726; --bad-bg:#FBF0EC; --bad-line:#D9A28E;
  --ok:#2C6E4E; --ok-bg:#E2EFE7;
  --due:#8A2E6B; --due-bg:#FBEAF4; --due-line:#E7B3D2;

  --st-open-ink:#5A6270;  --st-open-bg:#EBEDF1;
  --st-prog-ink:#2358A8;  --st-prog-bg:#E1EAFA;
  --st-rev-ink:#8F5F0B;   --st-rev-bg:#FBF0D6;
  --st-ver-ink:#0E6B62;   --st-ver-bg:#DAEDEA;
  --st-sign-ink:#6A43A3;  --st-sign-bg:#EDE5F8;
  --st-hold-ink:#737A86;  --st-hold-bg:#EFF1F4;
  --st-int-ink:#2B333D;   --st-int-bg:#DDE2E8;
  --st-done-ink:#5A6270;  --st-done-bg:#EFF1F4;
  --st-gone-ink:#737A86;  --st-gone-bg:#EFF1F4;

  --return-bg:#FCEDE9; --return-line:#EBA898; --return-ink:#B0452A;
  --shadow:0 1px 2px rgba(25,28,34,.05), 0 1px 8px rgba(25,28,34,.04);
  --cardshadow:0 8px 30px rgba(25,28,34,.12), 0 1px 4px rgba(25,28,34,.06);
  --card-shadow:0 2px 10px rgba(25,28,34,.05);
  --btn-shadow:0 2px 8px rgba(224,115,26,.28);
  /* 6 October 2026 (owner approved the portal look-and-feel v2; spec D:\Claude_Apps\genx-screen-client-v2.html):
     two new tokens, defined in all three token blocks.
     --logo-tile is the tile the GenX logo sits on. The logo was drawn for a white background and its light
     edges read as a halo on the dark theme, so the tile is white in every theme.
     --p-quiet is the grey for the client portal's small secondary text (dates, Age, task codes, "updated ..."
     lines, hints, empty-list notes, the portal footer). The owner chose it on 6 October 2026 from three
     candidates: --muted (#737A86), the middle grey #5A6270, or --ink-2. WCAG AA asks 4.5:1 for small text.
     In light mode --muted is 3.7-4.3:1 against the surfaces this text sits on (white, the page grey and the
     pale fills) and fails; #5A6270 is 5.3-6.2:1 and passes. #5A6270 is the existing --st-open-ink value, so no
     new colour is invented. Dark mode: --muted (#848B96) already passes at 4.6-5.0:1, so both dark blocks
     carry that same value. Only rules under body.portal read --p-quiet; the staff app keeps --muted. */
  --logo-tile:#FFFFFF;
  --p-quiet:#5A6270;

  /* shapes and the display face */
  --r:10px; --r-sm:6px; --r-pill:20px;
  --font-display:"Manrope","IBM Plex Sans",-apple-system,"Segoe UI",Arial,sans-serif;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --page:#101216;
    --chrome:#181B21; --rail:#141619; --rail-ink:#8A919C; --rail-ink-hi:#FFFFFF; --rail-line:#23272E;
    --surface:#181B21; --surface-2:#1F2329; --sunk:#14171B; --backdrop:#0B0D10;
    --ink:#E8EAEE; --ink-2:#B4BAC4; --muted:#848B96;
    --line:#282D35; --line-strong:#3B424C;
    --action:#F08A38; --action-ink:#1A1206;
    --accent:#F08A38; --accent-ink:#F6B27A; --accent-soft:#3A2412; --accent-line:#6B4020;
    --toast:#E8EAEE; --toast-ink:#101216;
    --focus:#F6B27A;
    --bad:#E0906D; --bad-bg:#2C1A14; --bad-line:#8A4A30; --ok:#63C495; --ok-bg:#14281E; --due:#E28BC3; --due-bg:#33162A; --due-line:#6B2E55;
    --st-open-ink:#9AA5B1; --st-open-bg:#242A31;
    --st-prog-ink:#7FB2E6; --st-prog-bg:#18293A;
    --st-rev-ink:#D8A44E;  --st-rev-bg:#332713;
    --st-ver-ink:#5CBCAF;  --st-ver-bg:#12302C;
    --st-sign-ink:#AE8FE0; --st-sign-bg:#251D36;
    --st-hold-ink:#828D99; --st-hold-bg:#20262C;
    --st-int-ink:#AEB8C4;  --st-int-bg:#2A313A;
    --st-done-ink:#9AA5B1; --st-done-bg:#20262C;
    --st-gone-ink:#828D99; --st-gone-bg:#20262C;
    --return-bg:#2C1A14; --return-line:#8A4A30; --return-ink:#E0906D;
    --shadow:0 1px 2px rgba(0,0,0,.5);
    --cardshadow:0 8px 30px rgba(0,0,0,.6), 0 1px 4px rgba(0,0,0,.4);
    --card-shadow:0 2px 10px rgba(0,0,0,.35);
    --btn-shadow:0 2px 8px rgba(240,138,56,.25);
    /* 6 October 2026: see the note in the light block. White tile for the logo; --p-quiet = dark --muted. */
    --logo-tile:#FFFFFF;
    --p-quiet:#848B96;
  }
}
:root[data-theme="dark"]{
  --page:#101216;
  --chrome:#181B21; --rail:#141619; --rail-ink:#8A919C; --rail-ink-hi:#FFFFFF; --rail-line:#23272E;
  --surface:#181B21; --surface-2:#1F2329; --sunk:#14171B; --backdrop:#0B0D10;
  --ink:#E8EAEE; --ink-2:#B4BAC4; --muted:#848B96;
  --line:#282D35; --line-strong:#3B424C;
  --action:#F08A38; --action-ink:#1A1206;
  --accent:#F08A38; --accent-ink:#F6B27A; --accent-soft:#3A2412; --accent-line:#6B4020;
  --toast:#E8EAEE; --toast-ink:#101216;
  --focus:#F6B27A;
  --bad:#E0906D; --bad-bg:#2C1A14; --bad-line:#8A4A30; --ok:#63C495; --ok-bg:#14281E; --due:#E28BC3; --due-bg:#33162A; --due-line:#6B2E55;
  --st-open-ink:#9AA5B1; --st-open-bg:#242A31;
  --st-prog-ink:#7FB2E6; --st-prog-bg:#18293A;
  --st-rev-ink:#D8A44E;  --st-rev-bg:#332713;
  --st-ver-ink:#5CBCAF;  --st-ver-bg:#12302C;
  --st-sign-ink:#AE8FE0; --st-sign-bg:#251D36;
  --st-hold-ink:#828D99; --st-hold-bg:#20262C;
  --st-int-ink:#AEB8C4;  --st-int-bg:#2A313A;
  --st-done-ink:#9AA5B1; --st-done-bg:#20262C;
  --st-gone-ink:#828D99; --st-gone-bg:#20262C;
  --return-bg:#2C1A14; --return-line:#8A4A30; --return-ink:#E0906D;
  --shadow:0 1px 2px rgba(0,0,0,.5);
  --cardshadow:0 8px 30px rgba(0,0,0,.6), 0 1px 4px rgba(0,0,0,.4);
  --card-shadow:0 2px 10px rgba(0,0,0,.35);
  --btn-shadow:0 2px 8px rgba(240,138,56,.25);
  /* 6 October 2026: see the note in the light block. White tile for the logo; --p-quiet = dark --muted. */
  --logo-tile:#FFFFFF;
  --p-quiet:#848B96;
}

/* ---- base ---- */
*{box-sizing:border-box}
html{color-scheme:light dark}
body{margin:0; background:var(--page); color:var(--ink);
  font-family:"IBM Plex Sans",-apple-system,"Segoe UI",Arial,sans-serif;
  font-size:14px; line-height:1.5; -webkit-font-smoothing:antialiased}
p{margin:0}
a{color:inherit}
.mono{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace}
:focus-visible{outline:2px solid var(--focus); outline-offset:2px}
@media (prefers-reduced-motion:reduce){*{animation:none!important; transition:none!important}}

/* ---- the shell: rail + page ---- */
.app{display:grid; grid-template-columns:212px 1fr; min-height:100vh}
.rail{background:var(--rail); padding:16px 0 14px; display:flex; flex-direction:column; gap:2px;
  position:sticky; top:0; height:100vh}
/* 6 October 2026 (owner approved look-and-feel v2, spec genx-screen-client-v2.html, change 14): the rail's
   brand is now the GenX mark image ALONE on a white tile (.lt, background --logo-tile), with no "GenX" word
   beside it. The old "G" square (.mark) and the bold word (b) are gone from the markup in _Layout.cshtml,
   so their rules went too. The mark is drawn for white, hence the tile; 24px tall inside a 4px/7px tile is
   32px, which still fits the one-row rail of the narrow-screen block further down (.rail .brand). */
.rail .brand{display:flex; align-items:center; padding:4px 18px 18px; text-decoration:none}
.rail .brand .lt{display:flex; background:var(--logo-tile); border-radius:8px; padding:4px 7px}
.rail .brand img{display:block; height:24px; width:auto}
.nav{display:flex; flex-direction:column; gap:1px; padding:0 10px}
.nav a{display:flex; align-items:center; gap:9px; padding:7px 10px; border-radius:var(--r-sm);
  color:var(--rail-ink); text-decoration:none; font-size:.86rem}
.nav a.on{background:var(--accent); color:#fff; font-weight:600}
.nav a .ct{margin-left:auto; font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.72rem; opacity:.75}
.railfoot{margin-top:auto; padding:12px 16px 0; border-top:1px solid var(--rail-line);
  display:flex; align-items:center; gap:9px; color:var(--rail-ink); min-width:0}
/* Account card sizing, 16 Sep 2026. Reported: the signed-in name read too small, the role line
   under it was all but invisible, and the two links below were smaller again. The role was dim
   because it inherited --rail-ink (#8A919C on the dark rail) and then had opacity:.8 laid over it,
   which mixes it down to roughly #727A86 - about 4.2:1 against the rail, under the 4.5:1 minimum
   for text this small. Fix is size plus contrast: the opacity is dropped rather than the colour
   lightened, so the role still sits a step below the name in the hierarchy but is legible. The
   avatar grows with the text so the row stays balanced. */
.railfoot .av{width:30px; height:30px; border-radius:50%; color:#fff; display:grid; place-items:center;
  font-size:.78rem; font-weight:600; flex:none}
.railfoot .who{font-size:.92rem; line-height:1.3; min-width:0}
.railfoot .who b{display:block; color:var(--rail-ink-hi); font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
/* Role line. Third pass, same day, and the user's choice: the Ember amber, read as a role BADGE
   rather than a grey caption. Two greys under a white name was the problem - the role kept looking
   like a dimmer copy of the name whatever its contrast, so it is given the one hue on the rail
   instead. Uppercase with tracking is what makes it a label and not a second name; the size drops
   to .76rem but caps stand taller than the lowercase .8rem it replaces, so it reads BIGGER, not
   smaller. Amber is hard-coded at the dark-palette value (#F08A38, ~6:1 on #23262E and ~8:1 on
   #141619) rather than var(--accent), because in the LIGHT palette that token is #E0731A - tuned
   for white surfaces and only ~4.8:1 here. The rail is dark in both palettes, so one value serves
   both. Note the house rule this bends: "the accent is for actions only, nothing else has a hue".
   The role is not an action, so this is the single deliberate exception, made because legibility
   beat the rule; do not read it as licence to colour other labels. */
.railfoot .who span{display:block; font-size:.76rem; color:#F08A38; font-weight:600;
  text-transform:uppercase; letter-spacing:.06em;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
/* Change password / Sign out: was .76rem, the smallest text on the rail. */
.railacts{display:flex; gap:12px; padding:10px 16px 0; font-size:.86rem; flex-wrap:wrap}
.railacts a{color:var(--rail-ink); text-decoration:underline; text-underline-offset:2px}
.railacts form{margin:0}
.railacts .linkbtn{color:var(--rail-ink)}
.linkbtn{background:none; border:0; padding:0; font:inherit; color:var(--ink-2); cursor:pointer;
  text-decoration:underline; text-underline-offset:2px}
.main{min-width:0; display:flex; flex-direction:column}
.page{max-width:1000px; padding:28px 22px 80px}
.h1{font-size:1.35rem; font-weight:600; letter-spacing:-.012em; margin:0 0 8px; text-wrap:balance}
.lede{color:var(--ink-2); max-width:70ch}

/* ---- the door ---- */
body.door{background:var(--backdrop); min-height:100vh; padding:40px 20px 80px}
.door .card{background:var(--surface); border-radius:8px; box-shadow:var(--cardshadow); width:100%;
  max-width:400px; margin:0 auto; padding:30px 32px 26px}
/* 6 October 2026 (owner approved look-and-feel v2, change 14): the sign-in pages show the FULL logo
   (genx-logo.png: the mark plus the words "GenX eSolutions"), about 58px tall, on a white tile (.lt,
   --logo-tile). It replaces the old "G" square and bold word, whose rules (.mark, b) went with them from
   _DoorLayout.cshtml. The negative margins pull the tile's padding back out so the logo's own edge lines up
   with the text below it. */
.door .brand{display:flex; align-items:center; margin-bottom:22px; text-decoration:none; color:inherit}
.door .brand .lt{display:inline-flex; background:var(--logo-tile); border-radius:10px; padding:6px 10px; margin:-6px 0 0 -10px}
.door .brand img{display:block; height:58px; width:auto}
.card h2{font-size:1.15rem; font-weight:600; margin:0 0 4px; letter-spacing:-.012em}
.card .sub{font-size:.86rem; color:var(--muted); margin-bottom:20px}

/* ---- form pieces ---- */
.field{display:flex; flex-direction:column; gap:6px; margin-bottom:14px}
.field label{font-size:.74rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--muted)}
.input{border:1px solid var(--line-strong); border-radius:var(--r); background:var(--surface);
  padding:10px 12px; font-size:.95rem; color:var(--ink); font-family:inherit; width:100%}
.input:focus{border-color:var(--focus); outline:none}
.input.mono{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; letter-spacing:.08em}
.input.input-validation-error{border-color:var(--bad-line); background:var(--bad-bg)}
.hint{font-size:.78rem; color:var(--muted)}
.hint.bad{color:var(--bad)}
.hint.bad:empty{display:none}
.select{border:1px solid var(--line); border-radius:var(--r-sm); background:var(--surface-2); color:var(--ink-2);
  padding:5px 10px; font-family:inherit; font-size:.82rem; min-width:190px}

.btn{display:block; width:100%; background:var(--action); color:var(--action-ink); border:0; border-radius:var(--r);
  padding:11px 16px; margin-top:6px; font-family:inherit; font-size:.92rem; font-weight:600; cursor:pointer; box-shadow:var(--btn-shadow);
  text-align:center; text-decoration:none}
.btn.ghost{background:transparent; color:var(--ink-2); border:1px solid var(--line-strong); margin-top:16px; box-shadow:none}
.links{display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap;
  margin-top:16px; font-size:.82rem}
.links a{color:var(--ink-2); text-decoration:underline; text-underline-offset:2px}
.links form{margin:0}

.msg{display:flex; gap:11px; background:var(--surface-2); border:1px solid var(--line);
  border-radius:var(--r); padding:14px 15px; font-size:.9rem; color:var(--ink-2); line-height:1.55; margin-bottom:16px}
.msg b{color:var(--ink); font-weight:600}
.msg.warn{background:var(--bad-bg); border-color:var(--bad-line); border-left-width:3px}
.msg.warn b{color:var(--bad)}

/* ---- My Work: top bar, chips, body ---- */
.topbar{display:flex; align-items:center; gap:14px; padding:14px 22px; border-bottom:1px solid var(--line);
  flex-wrap:wrap; background:var(--chrome)}
.topbar h2{font-size:1.02rem; font-weight:600; margin:0; letter-spacing:-.01em}
.find{margin-left:auto; display:flex; gap:8px; align-items:center; flex-wrap:wrap}
.find-q{border:1px solid var(--line); border-radius:var(--r-sm); background:var(--surface-2); color:var(--ink);
  padding:5px 10px; font-family:inherit; font-size:.82rem; width:300px; max-width:100%}
.find-q::placeholder{color:var(--muted)}
.find-q:focus{border-color:var(--focus); outline:none; background:var(--surface)}
.finding{font-size:.86rem; color:var(--ink-2)}
.finding a{color:var(--ink-2); text-decoration:underline; text-underline-offset:2px}
.chips{display:flex; gap:6px; padding:11px 22px; border-bottom:1px solid var(--line); flex-wrap:wrap; background:var(--chrome)}
.chip{font-size:.78rem; padding:4px 12px; border-radius:20px; border:1px solid var(--line);
  background:var(--surface); color:var(--ink-2); text-decoration:none}
.chip.on{background:var(--accent-soft); color:var(--accent-ink); border-color:var(--accent-line); font-weight:600}
.body{padding:20px 22px 40px; display:flex; flex-direction:column; gap:26px; overflow-x:auto}
.empty{color:var(--muted); font-size:.92rem}

/* section head */
.sec{display:flex; flex-direction:column; gap:9px; min-width:660px}
.sechd{display:flex; align-items:center; gap:9px}
.sechd h3{font-size:.76rem; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); margin:0}
.sechd .n{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.72rem; color:var(--muted);
  background:var(--sunk); border-radius:9px; padding:1px 7px}
.sechd .rule{flex:1; height:1px; background:var(--line)}

/* task rows */
.rows{display:flex; flex-direction:column; border:1px solid var(--line); border-radius:var(--r); background:var(--surface); overflow:hidden; box-shadow:var(--card-shadow)}
.rowhd,.row{display:grid; grid-template-columns:158px 76px 1fr 128px 88px 78px 62px; gap:12px; padding:11px 14px;
  border-bottom:1px solid var(--line); align-items:center}
.rowhd{padding:7px 14px; background:var(--surface-2)}
.rowhd span{font-size:.67rem; font-weight:600; letter-spacing:.09em; text-transform:uppercase; color:var(--muted); white-space:nowrap}
.rows > :last-child{border-bottom:0}
.row:hover{background:var(--surface-2)}
.id{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.78rem; color:var(--muted)}
.ttl{font-size:.9rem; color:var(--ink); line-height:1.35; display:flex; align-items:center; gap:8px; min-width:0; flex-wrap:wrap}
.ttl > span:first-child{overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:100%}
.proj{font-size:.79rem; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.due{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.76rem; color:var(--ink-2); font-variant-numeric:tabular-nums}
.due.soon{color:var(--return-ink); font-weight:500}
.age{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.76rem; color:var(--muted); font-variant-numeric:tabular-nums}
.people{display:flex}
.people .av{width:22px; height:22px; border-radius:50%; display:grid; place-items:center; font-size:.64rem; font-weight:600;
  color:#fff; border:2px solid var(--surface); margin-left:-6px}
.people .av:first-child{margin-left:0}

/* state pill - the one thing colour means */
.st{display:inline-flex; align-items:center; gap:5px; font-size:.73rem; font-weight:600; padding:3px 9px; border-radius:var(--r-pill); white-space:nowrap}
.st-open{background:var(--st-open-bg); color:var(--st-open-ink)}
.st-prog{background:var(--st-prog-bg); color:var(--st-prog-ink)}
.st-rev{background:var(--st-rev-bg); color:var(--st-rev-ink)}
.st-ver{background:var(--st-ver-bg); color:var(--st-ver-ink)}
.st-sign{background:var(--st-sign-bg); color:var(--st-sign-ink)}
.st-hold{background:var(--st-hold-bg); color:var(--st-hold-ink); border:1px dashed var(--line-strong)}
.st-int{background:var(--st-int-bg); color:var(--st-int-ink)}
.st-done{background:var(--st-done-bg); color:var(--st-done-ink)}
.st-gone{background:var(--st-gone-bg); color:var(--st-gone-ink); text-decoration:line-through}

/* markers on a title: client visibility, the sign-off clock */
.eye{display:inline-flex; align-items:center; gap:4px; font-size:.7rem; color:var(--muted);
  border:1px solid var(--line-strong); border-radius:var(--r-sm); padding:1px 6px; white-space:nowrap}
.eye.hidden{color:var(--st-int-ink); border-color:var(--st-int-ink); background:var(--st-int-bg)}
.clock{display:inline-flex; align-items:center; gap:4px; font-size:.7rem; color:var(--return-ink);
  border:1px solid var(--return-line); border-radius:var(--r-sm); padding:1px 6px; white-space:nowrap}

/* the returned band */
.returned{border:1px solid var(--return-line); border-left-width:3px; border-radius:var(--r); background:var(--return-bg); overflow:hidden; min-width:660px}
.returned .rhd{display:flex; align-items:center; gap:9px; padding:10px 14px; border-bottom:1px solid var(--return-line)}
.returned .rhd h3{font-size:.78rem; font-weight:600; letter-spacing:.09em; text-transform:uppercase; color:var(--return-ink); margin:0}
.returned .rhd .n{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.72rem; color:var(--return-ink);
  border:1px solid var(--return-line); border-radius:9px; padding:1px 7px}
.ret{display:grid; grid-template-columns:112px 1fr 150px; gap:12px; padding:12px 14px; border-bottom:1px solid var(--return-line); align-items:start}
.ret:last-child{border-bottom:0}
.ret .rt{font-size:.9rem; color:var(--ink); margin-bottom:5px}
.ret .rw{font-size:.79rem; color:var(--ink-2); line-height:1.45}
.ret .rw b{font-weight:500; color:var(--ink)}
.ret .rmeta{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.75rem; color:var(--muted); text-align:right}

/* the hold nudge under a row */
.nudge{font-size:.76rem; color:var(--st-hold-ink); padding:8px 14px; background:var(--surface-2); border-top:1px dashed var(--line-strong); border-bottom:1px solid var(--line)}
.row:has(+ .nudge){border-bottom:0}

/* the team lead's load matrix */
.load{border:1px solid var(--line); border-radius:var(--r); background:var(--surface); overflow:hidden; min-width:660px}
.loadhd,.loadrow{display:grid; grid-template-columns:1fr 62px 74px 62px 62px 58px 66px; gap:8px; padding:9px 14px; align-items:center}
.loadhd{background:var(--surface-2); border-bottom:1px solid var(--line)}
.loadhd span{font-size:.66rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); text-align:right; white-space:nowrap}
.loadhd span:first-child{text-align:left}
.loadrow{border-bottom:1px solid var(--line)}
.loadrow:last-child{border-bottom:0}
.loadrow .p{display:flex; align-items:center; gap:8px; font-size:.86rem; color:var(--ink)}
.loadrow .p .av{width:22px; height:22px; border-radius:50%; display:grid; place-items:center; font-size:.63rem; font-weight:600; color:#fff; flex:none}
.loadrow b{text-align:right; font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.85rem; font-weight:400; color:var(--ink-2); font-variant-numeric:tabular-nums}
.loadrow b.zero{color:var(--line-strong)}
.loadrow b.tot{font-weight:600; color:var(--ink)}
.loadrow b.hot{color:var(--return-ink); font-weight:600}
.reassign{font-size:.73rem; color:var(--muted); border:1px solid var(--line-strong); border-radius:var(--r-sm); padding:2px 8px; white-space:nowrap}

@media (max-width:820px){
  .app{grid-template-columns:1fr}
  .rail{position:static; height:auto; flex-direction:row; align-items:center; gap:10px; padding:10px 14px; overflow-x:auto}
  .rail .brand{padding:0 10px 0 0}
  .nav{flex-direction:row; padding:0}
  .railfoot{margin-top:0; margin-left:auto; padding:0; border-top:0}
  .railacts{padding:0}
}
@media (max-width:520px){
  body.door{padding:20px 12px}
  .door .card{padding:24px 20px 20px}
}

/* ---- the work item page (screen 2) ---- */
.crumb{padding:12px 22px 0; font-size:.79rem; color:var(--muted)}
.crumb a{color:var(--muted); text-decoration:none}
.crumb a:hover{text-decoration:underline}
.titlebar{display:flex; align-items:flex-start; gap:16px; padding:8px 22px 16px; border-bottom:1px solid var(--line); flex-wrap:wrap; background:var(--chrome)}
.titlebar .tl{min-width:0; flex:1 1 440px}
.tid{display:flex; align-items:center; gap:10px; margin-bottom:5px; flex-wrap:wrap}
.tid .num{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.82rem; color:var(--muted)}
.titlebar h2{font-size:1.22rem; font-weight:600; margin:0; letter-spacing:-.015em; line-height:1.3; text-wrap:balance}
.acts{display:flex; align-items:center; gap:8px; flex-wrap:wrap}
.acts .act{display:inline-block; width:auto; margin:0; padding:8px 15px; font-size:.85rem; border-radius:var(--r-sm)}
.acts .act.ghost{background:var(--surface); color:var(--ink-2); border:1px solid var(--line-strong); margin:0}
.acts .act[disabled]{cursor:not-allowed; opacity:.55}
.acts .soon{font-size:.72rem; color:var(--muted); flex-basis:100%; text-align:right}

.cols{display:grid; grid-template-columns:minmax(0,1fr) 286px; flex:1; min-width:0}
.maincol{padding:20px 22px 26px; display:flex; flex-direction:column; gap:22px; min-width:0; border-right:1px solid var(--line); background:var(--chrome)}
.side{padding:20px 20px 26px; display:flex; flex-direction:column; gap:16px; background:var(--surface-2)}

.blk{display:flex; flex-direction:column; gap:8px}
.blk h3{font-size:.72rem; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); margin:0}
.desc{font-size:.92rem; color:var(--ink-2); line-height:1.65; max-width:78ch}
.desc p + p{margin-top:9px}
/* Owner decision Q8, 2 October 2026, kept imported single line breaks here with white-space:pre-line. Gone on 14 October 2026 (owner's decision 1A): RichText.FromPlain now writes <br> for a single line break, and pre-line would show the line breaks inside pasted HTML as gaps. */
.desc .none{color:var(--muted); font-style:italic}

.banner{display:flex; align-items:flex-start; gap:10px; background:var(--return-bg); border:1px solid var(--return-line);
  border-left-width:3px; border-radius:var(--r); padding:11px 14px; font-size:.86rem; color:var(--ink-2); line-height:1.5}
.banner b{color:var(--return-ink); font-weight:600}

.filelist{display:flex; flex-direction:column; border:1px solid var(--line); border-radius:var(--r); background:var(--surface); overflow:hidden}
.filerow{display:grid; grid-template-columns:minmax(0,1.4fr) 70px minmax(0,1.5fr) 102px; gap:12px; align-items:center;
  padding:9px 13px; border-bottom:1px solid var(--line); font-size:.84rem}
.filerow:last-child{border-bottom:0}
.filerow .fn{color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.filerow .sz{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.74rem; color:var(--muted); text-align:right}
.filerow .src{font-size:.78rem; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.filerow .audcell{justify-self:end}
.cmfiles{display:flex; gap:7px; flex-wrap:wrap; margin-top:10px; padding-top:10px; border-top:1px dashed var(--line)}
.cmfile{display:inline-flex; align-items:center; gap:7px; border:1px solid var(--line); border-radius:var(--r-sm); background:var(--surface-2);
  padding:5px 10px; font-size:.79rem; color:var(--ink-2)}
.cmfile .sz{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.71rem; color:var(--muted)}

/* activity: the transition log and the comments, interleaved */
.feed{display:flex; flex-direction:column}
.ev{display:grid; grid-template-columns:26px 1fr; gap:11px; padding:9px 0; align-items:start}
.ev .dot{width:26px; display:flex; justify-content:center; padding-top:4px}
.ev .dot i{width:7px; height:7px; border-radius:50%; background:var(--line-strong); display:block}
.ev .txt{font-size:.84rem; color:var(--muted); line-height:1.5}
.ev .txt b{color:var(--ink-2); font-weight:500}
.ev .txt .when{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.73rem; margin-left:6px; white-space:nowrap}
.ev.ret .dot i{background:var(--return-ink); width:9px; height:9px}
.ev.ret .txt b{color:var(--return-ink)}
/* My Work's returned-row rule .ret (line 312) also matches a "returned this"
   entry here (class "ev ret") and left its 1px --return-line border-bottom
   under it: a stray salmon line between that entry and the next (ALB-358,
   10 Oct 2026). .ev already overrides the rest of .ret; this cancels the border. */
.ev.ret{border-bottom:0}
.ev.refused .dot i{background:transparent; border:1px solid var(--bad-line)}
.ev.refused .txt{font-style:italic}
/* 10 Oct 2026 (owner's request): the state a task moved TO, in bold - in the Activity list, the toast
   and the "sent back" banner (Look.BoldState). Its own class, not a bare b: .ev .txt b and .banner b
   style the person's name, which stays as it is. The colour comes from the line it sits in. */
.ev .txt b.tostate, .banner b.tostate, .toast b.tostate{font-weight:700}

.cm{display:grid; grid-template-columns:26px 1fr; gap:11px; padding:10px 0}
.cm .av{width:26px; height:26px; border-radius:50%; display:grid; place-items:center; font-size:.66rem; font-weight:600; color:#fff}
.cmbody{border:1px solid var(--line); border-radius:var(--r); background:var(--surface); padding:11px 13px; box-shadow:var(--card-shadow)}
.cmbody.client{background:var(--surface-2); border-left:3px solid var(--accent)}
.cmhd{display:flex; align-items:center; gap:9px; margin-bottom:6px; flex-wrap:wrap}
.cmhd b{font-size:.85rem; font-weight:600}
.cmhd .when{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.73rem; color:var(--muted)}
/* A comment that has been rewritten says so in its own header, beside the time
   it was posted. Italic rather than a chip: it is a footnote about the comment,
   not a state of it (15 Sep 2026). */
.cmhd .when.edited{font-style:italic}
.cmtx{font-size:.89rem; color:var(--ink-2); line-height:1.6; white-space:pre-line}
.aud{font-size:.69rem; padding:2px 7px; border-radius:var(--r-sm); border:1px solid var(--line-strong); color:var(--muted); white-space:nowrap}
.aud.client{border-color:var(--accent-line); color:var(--accent-ink); background:var(--accent-soft); font-weight:600}
.feed .none{font-size:.84rem; color:var(--muted)}

/* sidebar fields */
.f{display:flex; flex-direction:column; gap:5px}
.f label{font-size:.7rem; font-weight:600; letter-spacing:.09em; text-transform:uppercase; color:var(--muted)}
.f .v{font-size:.87rem; color:var(--ink)}
.f .v.mut{color:var(--ink-2)}
.f .v a{color:inherit}
.persons{display:flex; align-items:center; gap:7px; flex-wrap:wrap}
.person{display:flex; align-items:center; gap:6px; background:var(--surface); border:1px solid var(--line); border-radius:20px;
  padding:3px 10px 3px 3px; font-size:.81rem}
.person .av{width:20px; height:20px; border-radius:50%; display:grid; place-items:center; font-size:.6rem; font-weight:600; color:#fff}
.locked{font-size:.73rem; color:var(--muted); line-height:1.45}
.tags{display:flex; gap:6px; flex-wrap:wrap}
.tag2{font-size:.75rem; padding:2px 8px; border-radius:var(--r-sm); background:var(--sunk); color:var(--ink-2)}
.sidesep{height:1px; background:var(--line); margin:2px 0}
.watch{display:flex; align-items:center; gap:10px}
.watch form{margin:0}
.watch .linkbtn{font-size:.8rem}
.deps{display:flex; flex-direction:column; gap:4px; font-size:.84rem}
.deps a{color:var(--ink); text-decoration:none}
.deps a:hover{text-decoration:underline}
.deps .id{margin-right:6px}

/* rows on My Work are links to the task */
a.row{color:inherit; text-decoration:none}
a.ret{color:inherit; text-decoration:none}
a.ret:hover{background:rgba(0,0,0,.02)}

@media (max-width:900px){ .cols{grid-template-columns:1fr} .maincol{border-right:0} }

/* ---- moving a task (screen 3) ----
   The buttons on the task page are forms (act now) or links (ask first). The
   dialog page shows the task's header strip and one card. Green and red here
   mean only pass and fail - a second colour system, kept apart from the state
   pills, which own every other hue. */
.acts form{margin:0}
.acts a.act{text-decoration:none}

.stage{padding:26px 22px 60px; display:flex; flex-direction:column; align-items:center; gap:18px}
.hdrstrip{display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:12px 16px; border:1px solid var(--line);
  border-radius:var(--r); background:var(--surface); width:100%; max-width:560px}
.hdrstrip .num{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.8rem; color:var(--muted)}
.hdrstrip .t{font-size:.9rem; font-weight:500; flex:1 1 200px; min-width:0}
.hdrstrip .flow{display:flex; align-items:center; gap:7px; font-size:.82rem; color:var(--muted); white-space:nowrap}

.dlg{background:var(--surface); border-radius:var(--r); box-shadow:var(--cardshadow); width:100%; max-width:460px; overflow:hidden}
.dlg form{margin:0}
.dlghd{padding:17px 20px 14px; border-bottom:1px solid var(--line)}
.dlghd h3{font-size:1.02rem; font-weight:600; margin:0 0 5px; letter-spacing:-.01em}
.dlghd p{font-size:.86rem; color:var(--muted)}
.dlgbd{padding:16px 20px; display:flex; flex-direction:column; gap:14px}
.dlgbd .msg{margin:0}
.dlgft{padding:13px 20px; border-top:1px solid var(--line); background:var(--surface-2); display:flex; align-items:center; gap:9px}
.dlgft .sp{flex:1}
.dlgft .btn{display:inline-block; width:auto; margin:0; padding:8px 15px; font-size:.85rem; border-radius:var(--r-sm)}
.dlgft .btn[disabled]{opacity:.42; cursor:not-allowed}

.fld{display:flex; flex-direction:column}
.flabel{font-size:.72rem; font-weight:600; letter-spacing:.09em; text-transform:uppercase; color:var(--muted); margin-bottom:7px; display:block}
.opts{display:flex; flex-direction:column; gap:7px}
.opt{display:grid; grid-template-columns:17px 1fr auto; gap:11px; align-items:center; border:1px solid var(--line); border-radius:var(--r);
  padding:10px 12px; cursor:pointer; background:var(--surface); font-size:.88rem}
.opt:hover{background:var(--surface-2)}
.opt.on{border-color:var(--accent); background:var(--accent-soft)}
.opt input{margin:0; width:15px; height:15px; accent-color:var(--action)}
.opt .optname{display:flex; align-items:center; gap:8px; min-width:0}
.opt .av{width:22px; height:22px; border-radius:50%; display:grid; place-items:center; font-size:.63rem; font-weight:600; color:#fff; flex:none}
.opt .optnote{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.75rem; color:var(--muted); white-space:nowrap}
.opt .optnote.light{color:var(--ok)}
.ta{border:1px solid var(--line-strong); border-radius:var(--r); background:var(--surface); padding:10px 12px; min-height:56px;
  color:var(--ink); font-size:.9rem; font-family:inherit; line-height:1.5; width:100%; resize:vertical}
.ta:focus{border-color:var(--focus); outline:none}

/* the gate checklist: passes shown too, so a person sees how close they are */
.gates{display:flex; flex-direction:column; border:1px solid var(--line); border-radius:var(--r); overflow:hidden}
.gate{display:grid; grid-template-columns:18px 1fr; gap:11px; padding:11px 13px; border-bottom:1px solid var(--line); align-items:start}
.gate:last-child{border-bottom:0}
.gate.fail{background:var(--bad-bg)}
.gate .mk{width:16px; height:16px; border-radius:50%; display:grid; place-items:center; font-size:.62rem; font-weight:700; color:#fff; margin-top:2px}
.gate.pass .mk{background:var(--ok)}
.gate.fail .mk{background:var(--bad)}
.gate .gt{font-size:.87rem; color:var(--ink-2); line-height:1.5; min-width:0}
.gate .gt b{color:var(--ink); font-weight:500}
.gate.fail .gt b{color:var(--bad)}
.gate .why{font-size:.8rem; color:var(--muted); margin-top:3px}
.gate .why a{color:var(--ink); text-decoration:underline; text-underline-offset:2px}

/* the toast: one line at the foot of the page after a move; Undo while it lasts */
.toast{position:fixed; left:calc(50% + 106px); bottom:22px; transform:translateX(-50%); z-index:20; display:flex; align-items:center; gap:13px;
  background:var(--toast); color:var(--toast-ink); border-radius:var(--r); padding:12px 16px; box-shadow:var(--cardshadow); font-weight:500;
  max-width:min(520px, calc(100vw - 252px)); font-size:.88rem}
.toast.warn{background:var(--bad); color:#fff}
.toast form{margin:0; margin-left:auto}
.toast .undo{background:none; border:1px solid color-mix(in srgb, currentColor 40%, transparent); color:inherit; border-radius:var(--r-sm);
  padding:4px 11px; font:inherit; font-size:.8rem; font-weight:500; white-space:nowrap; cursor:pointer}
.toast.gone{display:none}

/* ---- the composer (screen 4) ----
   Client-visible is the default for QA, Managers and Admins, so four things
   flip together when the checkbox changes: the border, the strip, the audience
   sentence and the button text (.comp.client is the client-bound state). */
.comp{border:1px solid var(--line-strong); border-radius:var(--r); background:var(--surface); overflow:hidden; margin:0}
.comp.client{border-color:var(--accent); border-width:1.5px}
.comp .strip{display:flex; align-items:baseline; gap:8px; padding:9px 13px; font-size:.82rem; color:var(--ink-2);
  border-bottom:1px solid var(--line); background:var(--surface-2); flex-wrap:wrap}
.comp .strip b{color:var(--ink); font-weight:600; margin-right:2px}
.comp .strip .going{display:none}
.comp .strip .staying{display:inline}
.comp.client .strip{background:var(--accent-soft); border-left:3px solid var(--accent)}
.comp.client .strip .going{display:inline}
.comp.client .strip .staying{display:none}
.comp .strip.quiet{color:var(--muted)}
.comp .strip.bad{background:var(--bad-bg); color:var(--bad); border-left:3px solid var(--bad-line)}
.comp .ta{border:0; border-radius:0; min-height:74px; padding:12px 13px}
.comp .ta:focus{outline:none; box-shadow:inset 0 0 0 2px var(--focus)}
.comp .bar{display:flex; align-items:center; gap:10px; padding:9px 11px; border-top:1px solid var(--line); background:var(--surface-2); flex-wrap:wrap}
.comp .bar .sp{flex:1}
.comp .attach{font-size:.79rem; color:var(--ink-2); border:1px solid var(--line-strong); border-radius:var(--r-sm); padding:4px 10px; white-space:nowrap; cursor:pointer; background:var(--surface)}
.comp .attach input{display:none}
.comp .picked{font-size:.76rem; color:var(--muted); font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; min-width:0; overflow:hidden; text-overflow:ellipsis}
.comp .tick{display:inline-flex; align-items:center; gap:7px; font-size:.8rem; color:var(--ink-2); cursor:pointer}
.comp .tick input{margin:0; accent-color:var(--action)}
.comp .fixedline{font-size:.76rem; color:var(--muted)}
.comp .post{display:inline-block; width:auto; margin:0; padding:8px 15px; font-size:.85rem; border-radius:var(--r-sm)}
.cmhd .cmacts{margin-left:auto; display:inline-flex; gap:10px; font-size:.76rem}
.cmhd .cmacts a{color:var(--muted); text-decoration:underline; text-underline-offset:2px}
.cmhd .cmacts a:hover{color:var(--ink)}
.aud.hold{border-style:dashed; font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; color:var(--ink-2)}
a.cmfile{text-decoration:none}
a.cmfile:hover{border-color:var(--line-strong)}
.filerow a.fn{text-decoration:none}
.filerow a.fn:hover{text-decoration:underline}

/* the confirmations: the words quoted back */
.quote{margin:0; padding:11px 14px; border-left:3px solid var(--line-strong); background:var(--surface-2); border-radius:0 5px 5px 0;
  font-size:.9rem; color:var(--ink); line-height:1.55; white-space:pre-line; max-height:40vh; overflow:auto}
.dlgbd .note{font-size:.86rem; color:var(--ink-2); line-height:1.55}
.dlgbd .note b{color:var(--bad); display:block; margin-bottom:3px}
.dlgft .btn.danger{background:var(--bad); color:#fff}
.sink{margin:0; height:0; overflow:hidden; outline:none}

/* ---- the client portal (screen 5), look-and-feel v2 ----
   Different chrome on purpose: a header and a page, no rail. "Waiting for
   you" has its own colour (--due), the only place it is used.

   6 October 2026: the owner approved look-and-feel v2 for the whole portal (spec and plan of record:
   D:\Claude_Apps\genx-screen-client-v2.html, notes 1-14; the v1 plan genx-screen-client.html is kept as
   history). This block replaces the old portal rules (.pshell column, .ptop bar, .waiting, .prow's
   seven-column grid, .tbar, .pcols, .callout, .trail, .pcm and the rest). The old rules were removed
   only after every .cshtml was checked for the classes: none of them is used by a staff page, with one
   exception that stays - .btn.pbtn and .btn.pbtn.ghost below, which the staff app's "Add Task" and
   Admin / Project buttons wear.

   SCOPING. site.css is shared with the staff app. Every rule here sits under body.portal, and every class
   that already has an unscoped global rule elsewhere in this file (.st, .crumb, .tid, .dot, .when, .hint,
   .who, .chev, .nm, .ttl, .sechd, .n, .ic, .act, .bar, .tagbar, .tagbtn, .fld, .btn ...) was renamed with a
   p-/n- prefix in the views (.pcrumb, .ptid, .tdot, .pwhen, .phint, .pwho, .pchev, .pnm, .pttl, .psechd,
   .pn, .pic, .pact, .pcbar, .ptagbar, .ptagbtn, .pfld ...), so nothing here can reach a staff page and no
   staff rule reaches the portal by accident. .st and .av are the two shared names kept: .st because
   Look.StateCss supplies the .st-open ... colours the staff app also uses, .av because it has no unscoped
   global rule at all; both are redefined in full under body.portal.

   SMALL SECONDARY TEXT uses ONE token, --p-quiet (dates, Age, task codes, "updated ..." lines, hints,
   empty-list notes, the footer). Its value and why are in the token blocks at the top of this file. Column
   headings use --ink-2, not --p-quiet or --muted (owner's 6 October 2026 contrast decision, kept from the
   5-column heading row: muted grey on the pale heading fill is under 4.5:1). */
body.portal{background:var(--page); min-height:100vh; display:flex; flex-direction:column}
body.portal [hidden]{display:none!important}   /* the filter and its messages are hidden grid/flex blocks */
body.portal .pshell{flex:1; display:flex; flex-direction:column; min-width:0}
/* The Add Task / Admin buttons use these two; they are not portal rules and stay as they were. */
.btn.pbtn{display:inline-block; width:auto; margin:0; padding:7px 14px; font-size:.83rem; border-radius:var(--r-sm); white-space:nowrap}
.btn.pbtn.ghost{margin:0; background:var(--surface)}

/* -- top bar: one row, real controls instead of underlined text links -- */
body.portal .ptb{position:sticky; top:0; z-index:20; background:color-mix(in srgb, var(--chrome) 90%, transparent);
  backdrop-filter:saturate(1.4) blur(10px); -webkit-backdrop-filter:saturate(1.4) blur(10px); border-bottom:1px solid var(--line)}
/* A cloned session has the sticky amber banner above the bar (.clonebar, z-index 40); a sticky bar would slide
   under it, so while the banner is there the bar scrolls away with the page instead. */
body.portal:has(.clonebar) .ptb{position:static}
body.portal .ptb-in{max-width:1040px; margin:0 auto; padding:0 16px; height:62px; display:flex; align-items:center; gap:10px}
/* The GenX mark in place of the old "G" letter; always on a white tile (--logo-tile). */
body.portal .pbrand{text-decoration:none; display:flex; align-items:center; background:var(--logo-tile); padding:4px 7px; border-radius:9px; flex:none}
body.portal .pbrand img{display:block; height:26px; width:auto}
body.portal .pdiv{width:1px; height:22px; background:var(--line-strong); margin:0 4px; flex:none}
body.portal .pproj{position:relative; display:flex; align-items:center; min-width:0}
body.portal .pswitch{margin:0; display:flex; min-width:0}
body.portal .pproj select,body.portal .pproj .pname{appearance:none; -webkit-appearance:none; border:1px solid transparent; background:transparent; color:var(--ink);
  font-family:var(--font-display); font-weight:700; font-size:1rem; letter-spacing:-.01em; padding:5px 8px; border-radius:8px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%}
body.portal .pproj select{padding-right:28px; cursor:pointer; min-width:0}
body.portal .pproj select:hover{background:var(--surface-2); border-color:var(--line)}
body.portal .pproj select option{font-family:"IBM Plex Sans",-apple-system,"Segoe UI",Arial,sans-serif; font-weight:400}
body.portal .pproj .pchev{position:absolute; right:9px; pointer-events:none; color:var(--p-quiet)}
body.portal .pright{margin-left:auto; display:flex; align-items:center; gap:6px; flex:none}
body.portal .pnew{display:inline-flex; align-items:center; gap:7px; height:36px; padding:0 15px 0 12px; border-radius:9px; background:var(--action);
  color:var(--action-ink); font-weight:600; font-size:.84rem; text-decoration:none; white-space:nowrap; box-shadow:var(--btn-shadow); margin-right:4px}
body.portal .pnew:hover{filter:brightness(1.06)}
body.portal .picon{position:relative; width:38px; height:38px; border-radius:9px; display:grid; place-items:center; color:var(--ink-2); text-decoration:none}
body.portal .picon:hover,body.portal .picon.on{background:var(--surface-2); color:var(--ink)}
/* The unread count. The views print it as <span class="pct"> inside the bell link (NotificationPagesTests reads it). */
body.portal .picon .pct{position:absolute; top:3px; right:1px; min-width:18px; height:18px; padding:0 5px; border-radius:9px; background:var(--action);
  color:var(--action-ink); font-size:.64rem; font-weight:700; display:grid; place-items:center; border:2px solid var(--chrome); line-height:1}
body.portal .pme{position:relative}
body.portal .pme summary{list-style:none; display:flex; align-items:center; gap:8px; padding:3px 9px 3px 3px; border-radius:999px; cursor:pointer; border:1px solid transparent}
body.portal .pme summary::-webkit-details-marker{display:none}
body.portal .pme summary:hover,body.portal .pme[open] summary{background:var(--surface-2); border-color:var(--line)}
body.portal .av{width:32px; height:32px; border-radius:50%; color:#fff; display:grid; place-items:center; font-size:.7rem; font-weight:600; flex:none}
body.portal .pwho{font-size:.85rem; font-weight:500; color:var(--ink-2); white-space:nowrap; max-width:180px; overflow:hidden; text-overflow:ellipsis}
body.portal .pme .pchev{color:var(--p-quiet); transition:transform .15s}
body.portal .pme[open] .pchev{transform:rotate(180deg)}
body.portal .pmenu{position:absolute; right:0; top:calc(100% + 8px); width:250px; background:var(--surface); border:1px solid var(--line);
  border-radius:12px; box-shadow:var(--cardshadow); padding:6px; z-index:30}
body.portal .pmhd{display:flex; gap:10px; align-items:center; padding:8px 8px 12px; border-bottom:1px solid var(--line); margin-bottom:6px}
body.portal .pmhd b{display:block; font-size:.88rem; color:var(--ink)}
body.portal .pmhd span:not(.av){font-size:.76rem; color:var(--p-quiet)}
body.portal .pmenu a,body.portal .pmenu button{display:flex; align-items:center; gap:10px; width:100%; padding:8px 10px; border-radius:8px; font:inherit; font-size:.85rem;
  color:var(--ink-2); text-decoration:none; background:none; border:0; cursor:pointer; text-align:left}
body.portal .pmenu a:hover,body.portal .pmenu button:hover{background:var(--surface-2); color:var(--ink)}
body.portal .pmenu svg{color:var(--p-quiet)}
body.portal .pmenu hr{border:0; border-top:1px solid var(--line); margin:6px 0}
body.portal .pmenu form{margin:0}

/* -- shared bits -- */
body.portal .pmain{width:100%; max-width:1040px; margin:0 auto; padding:30px 16px 48px; display:flex; flex-direction:column; gap:24px; flex:1}
body.portal .pcard{background:var(--surface); border:1px solid var(--line); border-radius:12px; box-shadow:var(--card-shadow)}
body.portal .pcard > h2{margin:0; padding:14px 18px 0; font-size:.72rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-2)}
body.portal .pcard > .pbd{padding:10px 18px 18px}
body.portal .pbtn{justify-self:end; position:relative; z-index:1; display:inline-flex; align-items:center; gap:7px; height:32px; padding:0 14px; border-radius:8px; background:var(--action);
  color:var(--action-ink); font:inherit; font-weight:600; font-size:.82rem; text-decoration:none; box-shadow:var(--btn-shadow); white-space:nowrap; border:0; cursor:pointer}
body.portal .pbtn:hover{filter:brightness(1.06)}
body.portal .pbtn.lg{height:38px; padding:0 16px; font-size:.86rem}
body.portal .pghost{display:inline-flex; align-items:center; gap:7px; height:38px; padding:0 16px; border-radius:8px; background:var(--surface); color:var(--ink);
  border:1px solid var(--line-strong); font:inherit; font-weight:500; font-size:.86rem; text-decoration:none; white-space:nowrap; cursor:pointer}
body.portal .pghost:hover{border-color:var(--ink-2)}
body.portal .pcode{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.72rem; font-weight:500; color:var(--accent-ink); background:var(--accent-soft);
  border:1px solid var(--accent-line); border-radius:6px; padding:1px 7px}
body.portal .pcrumb{display:inline-flex; align-items:center; gap:6px; font-size:.82rem; color:var(--p-quiet); text-decoration:none; align-self:flex-start}
body.portal .pcrumb:hover{color:var(--ink)}
body.portal .pnone{padding:28px; text-align:center; color:var(--p-quiet); background:var(--surface); border:1px dashed var(--line-strong); border-radius:12px; font-size:.9rem}
body.portal .pnone a{color:var(--accent-ink)}

/* -- page heading and the four summary tiles -- */
body.portal .phead .eyebrow{display:flex; align-items:center; gap:8px; font-size:.8rem; color:var(--p-quiet); margin-bottom:6px}
body.portal .phead h1{font-family:var(--font-display); font-weight:800; font-size:1.7rem; letter-spacing:-.025em; margin:0; line-height:1.2}
body.portal .phead p{color:var(--p-quiet); font-size:.92rem; margin-top:5px}
body.portal .ptiles{display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:12px}
body.portal .ptile{display:flex; flex-direction:column; gap:1px; padding:14px 16px 13px; min-height:96px; background:var(--surface); border:1px solid var(--line);
  border-radius:12px; text-decoration:none; color:inherit; box-shadow:var(--card-shadow); transition:border-color .15s, transform .15s}
body.portal a.ptile:hover{border-color:var(--line-strong); transform:translateY(-1px)}
body.portal .plb{display:flex; align-items:center; gap:7px; font-size:.8rem; font-weight:500; color:var(--ink-2)}
body.portal .plb i{width:8px; height:8px; border-radius:50%; background:var(--dot)}
body.portal .pnum{font-family:var(--font-display); font-weight:800; font-size:1.8rem; letter-spacing:-.02em; line-height:1.2; color:var(--ink)}
body.portal .psub{font-size:.76rem; color:var(--p-quiet)}
body.portal .ptile.due{background:var(--due-bg); border-color:var(--due-line)}
body.portal .ptile.due .plb,body.portal .ptile.due .pnum,body.portal .ptile.due .psub{color:var(--due)}
body.portal .ptile.zero .pnum{color:var(--p-quiet)}

/* -- filter box (shown by portal.js) -- */
body.portal .ptools{display:flex; align-items:center; gap:12px; flex-wrap:wrap}
body.portal .pfilter{position:relative; flex:1 1 280px; max-width:400px}
body.portal .pfilter input{width:100%; height:40px; padding:0 12px 0 38px; border:1px solid var(--line); border-radius:10px; background:var(--surface);
  color:var(--ink); font:inherit; font-size:.87rem}
body.portal .pfilter input::placeholder{color:var(--p-quiet)}
body.portal .pfilter input:focus{outline:none; border-color:var(--accent-line); box-shadow:0 0 0 3px var(--accent-soft)}
body.portal .pfilter svg{position:absolute; left:12px; top:50%; transform:translateY(-50%); color:var(--p-quiet)}
body.portal .phint{font-size:.8rem; color:var(--p-quiet)}
body.portal .pnomatch{padding:28px; text-align:center; color:var(--p-quiet); background:var(--surface); border:1px dashed var(--line-strong); border-radius:12px}

/* -- state chip: hugs its label (the global .st is the staff pill and stretches in a grid cell) -- */
body.portal .st{display:inline-flex; align-items:center; gap:6px; font-size:.74rem; font-weight:600; padding:3px 10px 3px 8px; border-radius:999px; white-space:nowrap; justify-self:start; border:0}
body.portal .st::before{content:""; width:6px; height:6px; border-radius:50%; background:currentColor}
/* 6 October 2026 (owner's decision, after the v2 build): Rejected and Cancelled keep their line-through in the
   portal too, as the staff pill has it, so a client can see at a glance that the task will not be done. The v2
   mock-up first left it off; the owner asked for it back, and the mock-up was updated to match. */
body.portal .st-gone{text-decoration:line-through}

/* -- sections -- */
body.portal .psec{display:flex; flex-direction:column; gap:10px; scroll-margin-top:80px}
body.portal .psechd{display:flex; align-items:center; gap:10px}
body.portal .psechd h2{font-family:var(--font-display); font-weight:700; font-size:1.03rem; letter-spacing:-.01em; margin:0; color:var(--ink)}
body.portal .pn{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.72rem; color:var(--ink-2); background:var(--sunk); border-radius:999px; padding:1px 8px}
body.portal details.psec > summary{list-style:none; cursor:pointer; border-radius:8px}
body.portal details.psec > summary::-webkit-details-marker{display:none}
body.portal .ptog{margin-left:auto; display:flex; align-items:center; gap:6px; font-size:.8rem; color:var(--p-quiet)}
body.portal .ptog svg{transition:transform .15s}
body.portal details[open] > summary .ptog svg{transform:rotate(180deg)}
body.portal details[open] > summary .ptog .pshow,body.portal details:not([open]) > summary .ptog .phide{display:none}
body.portal details.psec > summary:hover .ptog{color:var(--ink)}

/* -- the list: title gets the room; code and "updated ..." sit under it -- */
body.portal .prows{background:var(--surface); border:1px solid var(--line); border-radius:12px; box-shadow:var(--card-shadow); overflow:clip}
body.portal .prow{position:relative; display:grid; grid-template-columns:120px minmax(0,1fr) 104px 74px 92px; gap:14px; align-items:center;
  padding:12px 16px; border-top:1px solid var(--line)}
body.portal .prow:first-child{border-top:0}
/* Column headings use --ink-2, not a muted grey: the owner's 6 October 2026 contrast decision (muted grey on a pale
   fill is under the 4.5:1 that small text needs). Same for .wrow.whead below. */
body.portal .prow.phd{padding:8px 16px; background:var(--surface-2); font-size:.69rem; font-weight:600; letter-spacing:.07em; text-transform:uppercase; color:var(--ink-2)}
body.portal .prow.phd .r,body.portal .wrow.whead .r{text-align:right}
body.portal .prow:not(.phd):hover{background:var(--surface-2)}
body.portal .ptask{min-width:0}
body.portal .pttl{display:-webkit-box; -webkit-line-clamp:2; line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:.9rem; font-weight:500;
  color:var(--ink); text-decoration:none; line-height:1.42}
body.portal .pttl::after{content:""; position:absolute; inset:0}          /* the whole row opens the task */
body.portal .prow:hover .pttl,body.portal .wrow:hover .pttl{color:var(--accent-ink)}
body.portal .pmeta{display:flex; flex-wrap:wrap; gap:4px 8px; align-items:center; margin-top:3px; font-size:.76rem; color:var(--p-quiet)}
body.portal .mcode{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.72rem; color:var(--p-quiet)}
body.portal .psep{width:3px; height:3px; border-radius:50%; background:var(--line-strong)}
body.portal .psince,body.portal .pdays{font-size:.8rem; text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; color:var(--p-quiet)}
body.portal .pact{justify-self:end; position:relative; z-index:1}
body.portal .pact form{margin:0}
body.portal .preopen{display:inline-flex; align-items:center; height:30px; padding:0 12px; font:inherit; font-size:.78rem; font-weight:500; color:var(--ink);
  background:var(--surface); border:1px solid var(--line-strong); border-radius:8px; cursor:pointer; text-decoration:none; white-space:nowrap}
body.portal .preopen:hover{border-color:var(--ink-2)}

/* -- waiting for you: still its own colour, now explains itself -- */
body.portal .pwaiting{background:var(--due-bg); border:1px solid var(--due-line); border-radius:14px; padding:0 6px 6px; scroll-margin-top:80px}
body.portal .whd{display:flex; align-items:center; gap:12px; padding:14px 10px 12px}
body.portal .whd .pic,body.portal .tcall .pic{width:36px; height:36px; border-radius:10px; background:var(--surface); color:var(--due); display:grid; place-items:center; border:1px solid var(--due-line); flex:none}
body.portal .whd h2{font-family:var(--font-display); font-weight:700; font-size:1.03rem; margin:0; color:var(--due); display:flex; align-items:center; gap:9px}
body.portal .whd h2 .pn{font-weight:500; color:var(--due); border:1px solid var(--due-line); background:var(--surface)}
body.portal .whd p{font-size:.81rem; color:var(--ink-2); margin-top:1px}
body.portal .wlist{background:var(--surface); border:1px solid var(--due-line); border-radius:10px; overflow:clip}
body.portal .wrow{position:relative; display:grid; grid-template-columns:minmax(0,1fr) 104px 74px 118px 92px; gap:14px; align-items:center; padding:12px 14px; border-top:1px solid var(--line)}
body.portal .wrow:first-child{border-top:0}
body.portal .wrow.whead{padding:8px 14px; background:var(--surface-2); font-size:.69rem; font-weight:600; letter-spacing:.07em; text-transform:uppercase; color:var(--ink-2)}
body.portal .wrow:not(.whead):hover{background:var(--surface-2)}
body.portal .wleft{justify-self:end; font-size:.75rem; font-weight:600; padding:3px 10px; border-radius:999px; color:var(--due); background:var(--due-bg); border:1px solid var(--due-line); white-space:nowrap}
body.portal .wleft.hot{background:var(--due); border-color:var(--due); color:var(--chrome)}

/* -- one task (Portal/Task.cshtml): heading, countdown, then a main column and a side column -- */
body.portal .pthead{display:flex; gap:16px 20px; align-items:flex-end; flex-wrap:wrap}
body.portal .ptl{flex:1 1 440px; min-width:0}
body.portal .ptid{display:flex; align-items:center; gap:8px; margin:12px 0 8px}
body.portal .tnum{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.76rem; color:var(--ink-2); background:var(--sunk); border-radius:6px; padding:2px 7px}
body.portal .pthead h1{font-family:var(--font-display); font-weight:800; font-size:1.45rem; letter-spacing:-.02em; line-height:1.28; margin:0; text-wrap:balance}
body.portal .tacts{display:flex; gap:8px; flex-wrap:wrap}
body.portal .tacts form{margin:0}
body.portal .tcall{display:flex; gap:12px; align-items:center; background:var(--due-bg); border:1px solid var(--due-line); border-radius:12px; padding:12px 16px; color:var(--ink-2); font-size:.88rem; line-height:1.55}
body.portal .tgrid{display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:20px; align-items:start}
body.portal .tcol{display:flex; flex-direction:column; gap:20px; min-width:0}
body.portal .tdesc p{margin:0 0 10px; color:var(--ink); line-height:1.65; max-width:68ch}
body.portal .tdesc p:last-child{margin-bottom:0}
body.portal .tnone{color:var(--p-quiet); font-style:italic}
body.portal .pfiles{display:flex; gap:8px; flex-wrap:wrap}
body.portal .pfile{display:inline-flex; align-items:center; gap:8px; border:1px solid var(--line); border-radius:9px; background:var(--surface-2); padding:7px 11px 7px 9px;
  font-size:.82rem; color:var(--ink); text-decoration:none; max-width:100%}
body.portal .pfile:hover{border-color:var(--line-strong)}
body.portal .pfile svg{color:var(--p-quiet)}
body.portal .pnm{overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0}
body.portal .psz{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.7rem; color:var(--p-quiet)}
body.portal .ppeople{display:flex; flex-direction:column; gap:12px}
body.portal .plead{font-size:.86rem; color:var(--ink-2)}
body.portal .pcontact{display:flex; align-items:center; gap:10px}
body.portal .pcontact .av{width:30px; height:30px; font-size:.66rem}
body.portal .pcontact b{display:block; font-size:.86rem; font-weight:600}
body.portal .pcontact div span{font-size:.76rem; color:var(--p-quiet)}
body.portal .ptrail{display:flex; flex-direction:column; position:relative}
/* 6 October 2026 (round-1 screenshot fix): the line ran about 8px past the last dot; it now stops at the last dot's centre. */
body.portal .ptrail::before{content:""; position:absolute; left:24px; top:22px; bottom:36px; width:2px; background:var(--line)}
body.portal .ptr{position:relative; display:grid; grid-template-columns:14px 1fr; gap:12px; padding:6px 0}
body.portal .tdot{width:14px; height:14px; border-radius:50%; background:var(--surface); border:2px solid var(--line-strong); margin-top:3px; z-index:1}
body.portal .ptr.done .tdot{background:var(--line-strong)}
body.portal .ptr.now .tdot{background:var(--st-sign-ink); border-color:var(--st-sign-ink); box-shadow:0 0 0 4px var(--st-sign-bg)}
body.portal .ptx{font-size:.86rem; color:var(--ink-2)}
body.portal .ptr.now .ptx{color:var(--ink); font-weight:600}
body.portal .pwhen{display:block; font-size:.74rem; color:var(--p-quiet); font-weight:400}
body.portal .pfeed{display:flex; flex-direction:column; gap:14px}
body.portal .pcm{display:grid; grid-template-columns:32px minmax(0,1fr); gap:12px}
body.portal .pbub{background:var(--surface-2); border:1px solid var(--line); border-radius:4px 12px 12px 12px; padding:10px 14px}
body.portal .pcm.mine .pbub{background:color-mix(in srgb, var(--accent-soft) 70%, var(--surface)); border-color:var(--accent-line)}
body.portal .pch{display:flex; flex-wrap:wrap; gap:4px 8px; align-items:center; font-size:.8rem; margin-bottom:4px}
body.portal .pch b{color:var(--ink); font-weight:600}
body.portal .porg{font-size:.7rem; color:var(--ink-2); background:var(--sunk); border-radius:999px; padding:0 7px}
body.portal .pch .pwhen{display:inline; margin-left:auto}
body.portal .pctx{font-size:.88rem; color:var(--ink); line-height:1.55}
body.portal .pctx .tagged{color:var(--accent-ink); font-weight:600}
body.portal .pcm .pfiles{margin-top:8px}
body.portal .pcomp{margin-top:16px; border:1px solid var(--line-strong); border-radius:12px; background:var(--surface); overflow:clip}
body.portal .pcomp:focus-within{border-color:var(--accent-line); box-shadow:0 0 0 3px var(--accent-soft)}
body.portal .pcomp textarea{display:block; width:100%; min-height:88px; border:0; border-radius:0; outline:none; resize:vertical; background:transparent; color:var(--ink); font:inherit; font-size:.9rem; padding:12px 14px; box-shadow:none}
body.portal .pcomp .pstrip{padding:9px 14px; font-size:.82rem; background:var(--bad-bg); color:var(--bad); border-bottom:1px solid var(--line)}
body.portal .ptagbar{display:flex; flex-wrap:wrap; gap:6px; align-items:center; padding:0 14px 10px; font-size:.76rem; color:var(--p-quiet)}
body.portal .ptagbtn{font:inherit; font-size:.76rem; color:var(--ink-2); background:var(--surface-2); border:1px solid var(--line); border-radius:999px; padding:2px 9px; cursor:pointer}
body.portal .ptagbtn:hover{border-color:var(--accent-line); background:var(--accent-soft); color:var(--accent-ink)}
body.portal .pcbar{display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:8px 10px; border-top:1px solid var(--line); background:var(--surface-2)}
body.portal .pattach{position:relative; display:inline-flex; align-items:center; gap:6px; height:32px; padding:0 10px; border-radius:8px; color:var(--ink-2); font-size:.82rem; cursor:pointer}
body.portal .pattach:hover{background:var(--sunk); color:var(--ink)}
body.portal .pattach input{position:absolute; inset:0; opacity:0; cursor:pointer; width:100%}
body.portal .pcomp .phint{font-size:.76rem}
body.portal .psp{flex:1}
/* The chosen file names portal.js lists under an invisible file input (drop zone, Attach file). */
body.portal .pchosen{font-size:.78rem; color:var(--ink-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; max-width:100%}
body.portal .pdrop .pchosen{white-space:normal; margin-top:4px; font-weight:500}

/* -- forms: report an issue, reopen / needs more work -- */
body.portal .fwrap{display:grid; grid-template-columns:minmax(0,1fr) 270px; gap:20px; align-items:start}
body.portal .fwrap.solo{grid-template-columns:minmax(0,640px); justify-content:center}
body.portal .fhd{padding:22px 24px 4px}
body.portal .fhd h1{font-family:var(--font-display); font-weight:800; font-size:1.35rem; letter-spacing:-.02em; margin:0}
body.portal .fhd p{color:var(--p-quiet); font-size:.86rem; margin-top:4px}
body.portal .fbd{padding:16px 24px 20px; display:flex; flex-direction:column; gap:18px}
body.portal .fbd .pstrip{padding:10px 14px; font-size:.86rem; background:var(--bad-bg); color:var(--bad); border:1px solid var(--bad-line,var(--line)); border-radius:10px}
body.portal .pfl{display:block; font-weight:600; font-size:.85rem; margin-bottom:6px; letter-spacing:0; text-transform:none; color:var(--ink)}
body.portal .pinp,body.portal .ptarea{display:block; width:100%; border:1px solid var(--line-strong); border-radius:10px; background:var(--surface); color:var(--ink); font:inherit; font-size:.9rem}
body.portal .pinp{height:42px; padding:0 12px}
body.portal .ptarea{min-height:140px; padding:10px 12px; resize:vertical; line-height:1.55}
body.portal .pinp:focus,body.portal .ptarea:focus{outline:none; border-color:var(--accent-line); box-shadow:0 0 0 3px var(--accent-soft)}
body.portal .pinp::placeholder,body.portal .ptarea::placeholder{color:var(--p-quiet)}
body.portal .pdrop{position:relative; display:flex; flex-direction:column; align-items:center; gap:3px; padding:20px 16px; border:1.5px dashed var(--line-strong); border-radius:12px;
  background:var(--surface-2); color:var(--ink-2); text-align:center; font-size:.86rem}
body.portal .pdrop:hover{border-color:var(--accent-line); background:color-mix(in srgb, var(--accent-soft) 40%, var(--surface-2))}
body.portal .pdrop svg{color:var(--p-quiet); margin-bottom:4px}
body.portal .pdrop b{color:var(--accent-ink); font-weight:600}
body.portal .pdrop small{font-size:.74rem; color:var(--p-quiet)}
body.portal .pdrop input{position:absolute; inset:0; opacity:0; cursor:pointer; width:100%; height:100%}   /* the real file input covers the zone, so dropping works natively */
body.portal .ffoot{display:flex; gap:10px; align-items:center; padding:14px 24px; border-top:1px solid var(--line); background:var(--surface-2); border-radius:0 0 12px 12px}
body.portal .ftips{padding:18px 18px 16px}
body.portal .ftips h2{margin:0 0 10px; font-family:var(--font-display); font-size:.95rem; text-transform:none; letter-spacing:0; color:var(--ink); padding:0}
body.portal .ftips ol{margin:0; padding-left:18px; display:flex; flex-direction:column; gap:7px; font-size:.84rem; color:var(--ink-2)}
body.portal .pafter{margin-top:14px; padding-top:12px; border-top:1px solid var(--line); font-size:.8rem; color:var(--p-quiet)}
body.portal .fstrip{display:flex; gap:10px; align-items:center; padding:12px 24px; border-bottom:1px solid var(--line); background:var(--surface-2); border-radius:12px 12px 0 0; min-width:0}
body.portal .fstrip .ft{font-size:.86rem; color:var(--ink-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap}

/* -- notifications (client view only: the .pnots wrapper; the staff view keeps .nothd/.nots/.not) -- */
body.portal .pnots{display:flex; flex-direction:column; gap:16px}
body.portal .nhead{display:flex; align-items:center; gap:10px}
body.portal .nhead h1{font-family:var(--font-display); font-weight:800; font-size:1.45rem; letter-spacing:-.02em; margin:0}
body.portal .pn2{font-size:.74rem; font-weight:600; color:var(--accent-ink); background:var(--accent-soft); border:1px solid var(--accent-line); border-radius:999px; padding:1px 9px}
body.portal .nlist{overflow:clip}
body.portal .nrow{display:grid; grid-template-columns:10px 34px minmax(0,1fr) auto; gap:12px; align-items:start; padding:14px 18px; border-top:1px solid var(--line); text-decoration:none; color:inherit}
body.portal .nrow:first-child{border-top:0}
body.portal a.nrow:hover{background:var(--surface-2)}
body.portal .nrow.new{background:color-mix(in srgb, var(--accent-soft) 45%, var(--surface))}
body.portal .ndot{width:8px; height:8px; border-radius:50%; margin-top:13px}
body.portal .nrow.new .ndot{background:var(--accent)}
body.portal .nic{width:34px; height:34px; border-radius:10px; display:grid; place-items:center; background:var(--sunk); color:var(--ink-2)}
body.portal .nic.due{background:var(--due-bg); color:var(--due)}
body.portal .nrow b{display:block; font-weight:600; font-size:.9rem; color:var(--ink)}
body.portal .nwhy{display:block; color:var(--ink-2); font-size:.84rem; margin-top:1px}
body.portal .nwhen{font-size:.76rem; color:var(--p-quiet); white-space:nowrap; margin-top:2px}
body.portal .nmore{font-size:.8rem; color:var(--p-quiet); text-align:center}

/* -- the two empty pages (NoProject, NotFound) -- */
body.portal .pempty{display:flex; flex-direction:column; align-items:center; text-align:center; gap:8px; padding:44px 24px; max-width:560px; margin:0 auto; width:100%}
body.portal .pempty .pic{width:48px; height:48px; border-radius:14px; background:var(--sunk); color:var(--p-quiet); display:grid; place-items:center; margin-bottom:6px}
body.portal .pempty h1{font-family:var(--font-display); font-weight:800; font-size:1.3rem; margin:0}
body.portal .pempty p{color:var(--ink-2); max-width:44ch}
body.portal .pempty .pghost{margin-top:8px}

/* -- phone (the mock-up's container query, as the real site's max-width:700px media query) -- */
@media (max-width:700px){
  body.portal .ptb-in{height:58px; gap:6px; padding:0 12px}
  body.portal .pdiv,body.portal .pme .pwho,body.portal .pme .pchev{display:none}
  body.portal .pme summary{padding:3px}
  body.portal .pbrand{padding:3px 5px}
  body.portal .pbrand img{height:22px}
  body.portal .pnew{width:38px; padding:0; justify-content:center; margin-right:0}
  body.portal .pnew .plbl{display:none}
  body.portal .pproj select,body.portal .pproj .pname{font-size:.95rem}
  body.portal .pmain{padding:22px 12px 36px; gap:20px}
  body.portal .phead h1{font-size:1.4rem}
  body.portal .ptiles{grid-template-columns:1fr 1fr; gap:10px}
  body.portal .ptile{min-height:0; padding:12px 13px}
  body.portal .pnum{font-size:1.5rem}
  body.portal .prow.phd,body.portal .wrow.whead{display:none}
  body.portal .prow{grid-template-columns:auto minmax(0,1fr) auto; grid-template-areas:"st since days" "task task task" "act act act"; gap:7px 10px; padding:12px 14px}
  body.portal .prow .st{grid-area:st} body.portal .prow .ptask{grid-area:task} body.portal .prow .psince{grid-area:since} body.portal .prow .pdays{grid-area:days}
  body.portal .prow .pact{grid-area:act; justify-self:start}
  body.portal .prow .pact:empty{display:none}
  body.portal .wrow{grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"task task" "since days" "left btn"; gap:8px 10px; padding:12px}
  body.portal .wrow .ptask{grid-area:task} body.portal .wrow .psince{grid-area:since; text-align:left} body.portal .wrow .pdays{grid-area:days}
  body.portal .wrow .wleft{grid-area:left; justify-self:start} body.portal .wrow .pbtn{grid-area:btn}
  body.portal .prow .psince{text-align:left}
  body.portal .psince[data-label]::before{content:attr(data-label) " "; color:var(--p-quiet)}
  body.portal .pthead h1{font-size:1.25rem}
  body.portal .tacts{width:100%} body.portal .tacts > *{flex:1} body.portal .tacts .pbtn,body.portal .tacts .pghost{width:100%; justify-content:center}
  body.portal .tacts form{display:flex} body.portal .tacts form > button{width:100%; justify-content:center}
  body.portal .tgrid,body.portal .fwrap{grid-template-columns:minmax(0,1fr)}
  body.portal .fhd,body.portal .fbd{padding-left:16px; padding-right:16px}
  body.portal .ffoot,body.portal .fstrip{padding-left:16px; padding-right:16px}
  body.portal .nrow{grid-template-columns:8px minmax(0,1fr) auto; padding:12px 14px}
  body.portal .nrow .nic{display:none}
}

/* ---- the footer on every page of the tracker (6 October 2026, owner's decision; spec change 13) ----
   One partial (Views/Shared/_Footer.cshtml), one class (.gfoot, grepped: unused before). Staff pages: the last
   child of .main, a flex column, so margin-top:auto sits it at the foot of a short page. Sign-in pages: centred
   under the card. Portal: the same line in the portal's own column and --p-quiet (below). Staff and sign-in
   pages keep --muted: --p-quiet is read only under body.portal. */
.gfoot{display:flex; flex-wrap:wrap; gap:6px 18px; align-items:center; margin-top:auto; padding:16px 22px 22px; border-top:1px solid var(--line);
  font-size:.78rem; color:var(--muted)}
.gfoot .gsp{flex:1}
.gfoot a{color:var(--ink-2); text-decoration:none}
.gfoot a:hover{color:var(--ink); text-decoration:underline; text-underline-offset:2px}
body.door .gfoot{max-width:400px; margin:18px auto 0; padding:0; border-top:0; justify-content:center; text-align:center}
body.door .gfoot .gsp{display:none}
body.portal .gfoot{width:100%; max-width:1040px; margin:0 auto; padding:18px 16px 28px; color:var(--p-quiet)}

/* the second check: a real <dialog>, modal when the script opens it, inline when the server does */
dialog.check{border:0; padding:0; margin:0 0 0 0; width:100%; max-width:460px}
dialog.check[open]:not(:modal){position:static; margin-top:14px; box-shadow:var(--cardshadow)}
dialog.check:modal{margin:auto; box-shadow:var(--cardshadow)}
dialog.check::backdrop{background:rgba(10,13,16,.45)}

/* ---- the display face (Ember) ---- */
/* 6 October 2026 (portal v2): .tbar h2, .rail .brand b and .ptop .proj left this list - none of those elements exists any more
   (the portal headings are styled under body.portal and the rail brand is now an image). */
.topbar h2,.titlebar h2,.h1,.card h2,.dlghd h3{font-family:var(--font-display); font-weight:700}
.rail{border-right:1px solid var(--rail-line)}

/* ---- the project view (screen 7) ----
   The projects list is a grid of numbers read across a row; a project opens
   with the pulse (one bar of open work in state colours) and milestone cards;
   the list is My Work's table plus a Milestone column; the board is columns
   in workflow order with no drag and drop. Design notes in
   D:\Claude_Apps\genx-screen-project.html. */
/* the projects list */
.plist{border:1px solid var(--line); border-radius:var(--r); background:var(--surface); overflow:hidden; box-shadow:var(--card-shadow); min-width:760px}
.plhd,.plrow{display:grid; grid-template-columns:1fr 118px 64px 84px 70px 92px 66px 96px; gap:10px; padding:11px 14px; align-items:center; border-bottom:1px solid var(--line)}
.plhd{padding:7px 14px; background:var(--surface-2)}
.plhd span{font-size:.67rem; font-weight:600; letter-spacing:.09em; text-transform:uppercase; color:var(--muted); white-space:nowrap; text-align:right}
.plhd span:first-child,.plhd span:nth-child(2){text-align:left}
.plist > :last-child{border-bottom:0}
.plrow:hover{background:var(--surface-2)}
.plrow .pn{display:flex; flex-direction:column; gap:2px; min-width:0}
.plrow .pn b{font-size:.92rem; font-weight:600; color:var(--ink); display:flex; gap:9px; align-items:baseline}
.plrow .pn b .id{font-size:.76rem}
.plrow .pn span{font-size:.78rem; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.plrow .n{text-align:right; font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.85rem; color:var(--ink-2); font-variant-numeric:tabular-nums}
.plrow .n.zero{color:var(--line-strong)}
.plrow .n.tot{font-weight:600; color:var(--ink)}
.plrow .n small{display:block; font-size:.68rem; color:var(--muted); font-family:inherit}
.plrow .n.hot,.plrow .n.hot small{color:var(--due); font-weight:600}
.plrow .when{text-align:right; font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.76rem; color:var(--muted)}

/* the project's title bar */
.ptitle{display:flex; align-items:flex-start; gap:18px; padding:10px 22px 16px; border-bottom:1px solid var(--line); background:var(--chrome); flex-wrap:wrap}
.ptitle .tl{flex:1 1 420px; min-width:0}
.ptitle h2{font-family:var(--font-display); font-size:1.25rem; font-weight:700; margin:0 0 3px; letter-spacing:-.012em; display:flex; gap:10px; align-items:baseline}
.ptitle h2 .id{font-size:.86rem; font-weight:500}
.ptitle .sub{font-size:.86rem; color:var(--muted)}
.ptitle .sub b{color:var(--ink-2); font-weight:500}
.ptitle .roster{display:flex; flex-direction:column; align-items:flex-end; gap:6px}
.ptitle .roster .people .av{width:26px; height:26px; font-size:.68rem}
.ptitle .roster .rl{font-size:.76rem; color:var(--muted)}
.ptitle .roster .rl b{color:var(--ink-2); font-weight:500}
.ptitle .btn{width:auto; margin:0; padding:8px 14px; font-size:.86rem}

/* the pulse: one bar of open work, in state colours, and the three facts */
.pulse{padding:14px 22px 0; display:flex; flex-direction:column; gap:9px}
.pbar{display:flex; height:10px; border-radius:var(--r-pill); overflow:hidden; background:var(--sunk); max-width:760px}
.pbar span{display:block; height:100%}
.pleg{display:flex; gap:4px 16px; flex-wrap:wrap; font-size:.78rem; color:var(--ink-2); max-width:760px}
.pleg a{display:inline-flex; align-items:center; gap:6px; color:var(--ink-2)}
.pleg a i{width:9px; height:9px; border-radius:50%; display:inline-block}
.pleg a b{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-weight:500; color:var(--ink); font-size:.78rem}
.pleg .rest{color:var(--muted); margin-left:auto}
.facts{display:flex; gap:8px 22px; flex-wrap:wrap; font-size:.82rem; color:var(--ink-2); padding-top:2px}
.facts a{color:var(--ink-2)}
.facts a b{font-weight:600; color:var(--ink)}
.facts a.fdue,.facts a.fdue b{color:var(--due)}
.facts a.fback b{color:var(--return-ink)}
.c-open{background:var(--st-open-ink)} .c-prog{background:var(--st-prog-ink)} .c-rev{background:var(--st-rev-ink)}
.c-ver{background:var(--st-ver-ink)} .c-sign{background:var(--st-sign-ink)} .c-hold{background:var(--st-hold-ink); opacity:.55} .c-int{background:var(--st-int-ink)}

/* milestones */
.mstrip{display:flex; gap:10px; padding:14px 22px 0; flex-wrap:wrap}
.ms{border:1px solid var(--line); border-radius:var(--r); background:var(--surface); padding:9px 12px; min-width:200px; flex:0 1 230px; display:flex; flex-direction:column; gap:5px; box-shadow:var(--card-shadow); color:inherit}
.ms .mn{display:flex; align-items:baseline; gap:8px; font-size:.86rem; font-weight:600}
.ms .mn span{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.72rem; color:var(--muted); font-weight:400; margin-left:auto; white-space:nowrap}
.ms .mn span.late{color:var(--return-ink); font-weight:500}
.ms .mbar{height:5px; border-radius:3px; background:var(--sunk); overflow:hidden}
.ms .mbar i{display:block; height:100%; background:var(--ink-2); border-radius:3px}
.ms.reached .mbar i{background:var(--ok)}
.ms .mm{font-size:.74rem; color:var(--muted)}
.ms.reached .mm{color:var(--ok)}
.ms.on{border-color:var(--accent); background:var(--accent-soft)}

/* the tool row under the chips: group by, who, milestone, view */
.tools{display:flex; align-items:center; gap:8px; padding:0 22px 12px; flex-wrap:wrap; background:var(--chrome); border-bottom:1px solid var(--line)}
.tools .lbl{font-size:.74rem; color:var(--muted); margin-left:4px}
.tools .select{min-width:0}
.seg{display:inline-flex; border:1px solid var(--line); border-radius:var(--r-sm); overflow:hidden; margin-left:auto}
.seg a{padding:5px 12px; font-size:.8rem; color:var(--ink-2); background:var(--surface)}
.seg a.on{background:var(--accent-soft); color:var(--accent-ink); font-weight:600}

/* project list rows: one more column than My Work (milestone), and In state stays */
.prj .rowhd,.prj .row{grid-template-columns:150px 66px 1fr 112px 78px 56px 66px 62px}
.row .st{justify-self:start}   /* a pill in a grid cell keeps its own width */
.plrow .n{justify-self:end}
.pri{display:inline-flex; align-items:center; font-size:.7rem; color:var(--muted); border:1px solid var(--line-strong); border-radius:var(--r-sm); padding:1px 6px; white-space:nowrap}
.pri.urgent{color:var(--bad); border-color:var(--bad-line); background:var(--bad-bg); font-weight:600}
.lbl-tag{display:inline-flex; align-items:center; gap:4px; font-size:.7rem; color:var(--muted); white-space:nowrap}
.lbl-tag i{width:7px; height:7px; border-radius:50%; display:inline-block}
.back{display:inline-flex; align-items:center; gap:4px; font-size:.7rem; color:var(--return-ink); border:1px solid var(--return-line); background:var(--return-bg); border-radius:var(--r-sm); padding:1px 6px; white-space:nowrap}
.ms-cell{font-size:.78rem; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.age.stall{color:var(--return-ink); font-weight:600}

/* the board */
.board{display:grid; grid-auto-flow:column; grid-auto-columns:220px; gap:12px; overflow-x:auto; padding:18px 22px 40px; align-items:start}
.col{display:flex; flex-direction:column; gap:8px; min-width:0}
.colhd{display:flex; align-items:center; gap:8px; padding:2px 2px 4px}
.colhd .n{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.72rem; color:var(--muted); margin-left:auto}
.cardt{display:flex; flex-direction:column; gap:7px; border:1px solid var(--line); border-radius:var(--r); background:var(--surface); padding:10px 12px; box-shadow:var(--card-shadow); color:inherit}
.cardt:hover{border-color:var(--line-strong)}
.cardt .ct1{display:flex; align-items:center; gap:8px}
.cardt .ct1 .id{font-size:.74rem}
.cardt .ct1 .age{margin-left:auto}
.cardt .ct2{font-size:.86rem; line-height:1.35; color:var(--ink)}
.cardt .ct3{display:flex; align-items:center; gap:6px; flex-wrap:wrap}
.cardt .ct3 .people{margin-left:auto}
.cardt .ct3 .people .av{width:20px; height:20px; font-size:.58rem}
.col .none{font-size:.78rem; color:var(--muted); border:1px dashed var(--line-strong); border-radius:var(--r); padding:12px; text-align:center}

/* the new-task form */
.nt{max-width:640px; padding:22px 22px 60px; display:flex; flex-direction:column; gap:2px}
.nt .row2{display:grid; grid-template-columns:1fr 1fr; gap:14px}
.nt textarea.input{min-height:96px; resize:vertical; font-family:inherit}
.nt .radio{display:flex; gap:14px}
.nt .radio label{display:inline-flex; gap:6px; align-items:center; font-size:.9rem; font-weight:400; text-transform:none; letter-spacing:0; color:var(--ink)}
.pick{display:flex; flex-wrap:wrap; gap:8px}
.pick label{display:inline-flex; align-items:center; gap:7px; font-size:.84rem; font-weight:400; letter-spacing:0; text-transform:none; color:var(--ink); border:1px solid var(--line); border-radius:var(--r-pill); padding:4px 11px 4px 5px; background:var(--surface)}
/* 5 October 2026: the people picker's search box filtered nothing. picker.js
   hides a name that does not match by setting the hidden attribute, but the
   rule above gives every row display:inline-flex, and any author rule beats the
   browser's own [hidden]{display:none}, so the row stayed on screen. Seen on
   the live New task form (typing "mrunal" left every name listed) and on the
   Edit form and the task page's put-on list, which share this markup. This puts
   the hiding back; nothing else about the rows changes. */
.pick label[hidden]{display:none}
.pick label:has(input:checked){border-color:var(--accent-line); background:var(--accent-soft); color:var(--accent-ink); font-weight:600}
.pick label .av{width:22px; height:22px; border-radius:50%; display:grid; place-items:center; font-size:.62rem; font-weight:600; color:#fff}
.pick label small{color:var(--muted); font-weight:400}
.pick.labels label{padding:3px 10px}
.pick.labels i{width:8px; height:8px; border-radius:50%; display:inline-block}
.nt .field .note{font-size:.78rem; color:var(--muted)}
.nt .actions{display:flex; align-items:center; gap:14px; margin-top:8px}
.nt .actions .btn{width:auto; margin:0; padding:10px 18px}
.nt .actions a{font-size:.84rem; color:var(--ink-2); text-decoration:underline; text-underline-offset:2px}
.nt .lede{font-size:.86rem; margin-bottom:16px}
.pick label input{margin:0 0 0 4px; accent-color:var(--accent)}
.pchips{border-bottom:0; padding-top:16px}
.ms .mn{color:inherit; text-decoration:none}
.ms .mm{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.ms .mm form{margin:0; display:inline}
.ms .mm .linkbtn{font-size:.74rem; color:var(--accent-ink)}
.tools noscript .chip{cursor:pointer; font-family:inherit}
@media (max-width:820px){ .nt .row2{grid-template-columns:1fr} }
/* rows, cards and the small links on the project page are links without the underline */
.plrow,.cardt,.pleg a,.facts a,.seg a,.ms .mn,.pleg .rest{text-decoration:none}
.plrow,.cardt{color:inherit}

/* ---- editing a task (a piece of screen 2) ----
   The new-task form with the task filled in; locked planning fields shown as
   words with who can change them; the edit's line in the activity. */
.nt .tid{margin-bottom:2px}
.lockf .v{font-size:.95rem; color:var(--ink-2); padding:10px 0 2px}
.lockf label{color:var(--muted)}
.lockf .persons{padding:6px 0 2px}
/* A locked field that holds more than a word: a description keeps its line
   breaks, and the labels a task already has sit in a row of their own (15 Sep
   2026, when a Developer stopped being able to change either). The pre-wrap on
   the description went on 14 October 2026 (1A): it is cleaned HTML now, see .rich.read. */
.lbl-row{display:flex; flex-wrap:wrap; gap:4px 12px}
.pick label.locked{opacity:.6; border-style:dashed}
.ev.edit .dot i{background:var(--accent); width:9px; height:9px}
.ev.edit .txt b{color:var(--accent-ink)}

/* ---- the frozen head ----
   The top bar and the chips stay put while the rows scroll under them, so the
   search box and the filters are always in reach (asked for on My Work, 12
   September 2026; the projects list and a project's filter row follow). */
.head{position:sticky; top:0; z-index:20; background:var(--chrome); box-shadow:0 1px 0 var(--line)}
.head .topbar,.head .chips{position:static}

/* ---- the reports (screen 8) ----
   The catalogue in two columns; one page for every report: title with the
   stamp, the exports, the frozen filter row, the summary line, groups of
   rows drawn from the columns, and the rows behind a drilled figure.
   Design notes in D:\Claude_Apps\genx-screen-reports.html. */
.asat{margin-left:auto; font-size:.8rem; color:var(--muted)}
.asat b{color:var(--ink-2); font-weight:500}
.rcat{display:grid; grid-template-columns:1fr 1fr; gap:22px 28px}
.rsec{display:flex; flex-direction:column; gap:6px; min-width:0}
.rsec.mine{grid-column:1/-1}
.rrow{display:grid; grid-template-columns:150px 1fr auto; gap:12px; align-items:center; padding:9px 12px; border:1px solid var(--line); border-radius:var(--r); background:var(--surface); text-decoration:none; color:inherit; box-shadow:var(--card-shadow)}
.rrow:hover{border-color:var(--line-strong)}
.rrow b{font-size:.9rem; font-weight:600}
.rrow span{font-size:.79rem; color:var(--muted); line-height:1.4}
.src{font-style:normal; font-size:.68rem; letter-spacing:.06em; text-transform:uppercase; padding:2px 8px; border-radius:var(--r-pill); white-space:nowrap}
.src.snap{background:var(--st-ver-bg); color:var(--st-ver-ink)}
.src.log{background:var(--st-prog-bg); color:var(--st-prog-ink)}
.soon{font-size:.72rem; color:var(--accent-ink); background:var(--accent-soft); border-radius:var(--r-pill); padding:1px 8px}
.exports{display:flex; gap:6px; align-items:center}
.exports .btn{width:auto; margin:0; padding:7px 12px; font-size:.8rem}
.rtools{padding-top:10px}
.rsum{font-size:.88rem; color:var(--ink-2); display:flex; flex-wrap:wrap; gap:4px 6px; align-items:baseline}
.rsum b{color:var(--ink); font-weight:600}
.rsum .q{color:var(--st-rev-ink)} .rsum .c{color:var(--return-ink)} .rsum .delta{color:var(--muted)}
.rsum .caveat{flex-basis:100%; font-size:.78rem; color:var(--muted); font-style:italic}
.rgrp{display:flex; align-items:center; gap:9px}
.rgrp .av{width:22px; height:22px; border-radius:50%; display:grid; place-items:center; font-size:.63rem; font-weight:600; color:#fff}
.rgrp h3{font-size:.86rem; font-weight:600; margin:0; text-transform:none; letter-spacing:0; color:var(--ink)}
.rgrp .n{font-family:"IBM Plex Mono",monospace; font-size:.72rem; color:var(--muted); background:var(--sunk); border-radius:9px; padding:1px 7px}
.rgrp .stat{font-size:.76rem; color:var(--muted)}
.rgrp .rule{flex:1; height:1px; background:var(--line)}
.rows.rep .rowhd,.rows.rep .row{grid-template-columns:1fr 150px 160px 1fr 70px}
.rows.rep2 .rowhd,.rows.rep2 .row{grid-template-columns:1fr 150px 160px 60px 70px 70px}
.rt{font-size:.88rem; color:var(--ink); display:flex; gap:8px; align-items:baseline; min-width:0}
.rt .id{flex:none}
.who{font-size:.82rem; color:var(--ink-2)} .who small{color:var(--muted); margin-left:4px} .who.c{color:var(--return-ink)}
.reason{font-size:.8rem; color:var(--ink-2); font-style:italic; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.rows.collapsed{padding:10px 14px} .rows .more a{font-size:.8rem; color:var(--ink-2)}
.agegrid{border:1px solid var(--line); border-radius:var(--r); background:var(--surface); overflow:hidden; box-shadow:var(--card-shadow); max-width:760px}
.aghd,.agrow{display:grid; grid-template-columns:1fr 110px 110px 110px 90px; gap:8px; padding:9px 14px; align-items:center; border-bottom:1px solid var(--line)}
.aghd{background:var(--surface-2)}
.aghd span{font-size:.66rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); text-align:right}
.aghd span:first-child{text-align:left}
.agrow > a,.agrow > b,.agrow > .zero{text-align:right; font-family:"IBM Plex Mono",monospace; font-size:.88rem; font-variant-numeric:tabular-nums}
.agrow > a{color:var(--ink-2); text-decoration:underline; text-underline-offset:3px; text-decoration-color:var(--line-strong)}
.agrow > a.hot,.agrow > b.hot{color:var(--return-ink); font-weight:600}
.agrow > a.on{background:var(--accent-soft); color:var(--accent-ink); border-radius:var(--r-sm); padding:2px 6px; text-decoration:none}
.agrow > b{font-weight:600; color:var(--ink)} .agrow .zero{color:var(--line-strong)}
.agrow.tot{background:var(--surface-2)} .agrow.tot span{font-size:.8rem; font-weight:600; color:var(--ink-2)}
.agrow.apart{border-top:1px dashed var(--line-strong)}
.agrow .st{justify-self:start}
.agrow:last-child{border-bottom:0}
.drill .close{margin-left:8px; font-size:.76rem; color:var(--muted)}
/* the report table: tracks come from the columns (Show.cshtml sets --tracks) */
.rows.rep .rowhd,.rows.rep .row{grid-template-columns:var(--tracks)}
.rows.rep .rowhd .r{text-align:right}
.rows.rep .row.tot{background:var(--surface-2); font-weight:600}
.rows.rep .num{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.85rem; text-align:right; color:var(--ink-2); font-variant-numeric:tabular-nums; text-decoration:none}
.rows.rep a.num{text-decoration:underline; text-underline-offset:3px; text-decoration-color:var(--line-strong)}
.rows.rep .num.zero{color:var(--line-strong); text-decoration:none}
.rows.rep .num.hot{color:var(--return-ink); font-weight:600}
.rows.rep .num.good{color:var(--ok)}
.rows.rep .num.tot{font-weight:600; color:var(--ink)}
.rows.rep a.num.on{background:var(--accent-soft); color:var(--accent-ink); border-radius:var(--r-sm); padding:2px 6px; text-decoration:none; justify-self:end}
.rows.rep .txt{font-size:.86rem; color:var(--ink)}
.rows.rep .rt{text-decoration:none}
.rows.rep .row .st{justify-self:start}
.sec.apart .rows{border-style:dashed}
.rsum .b{font-weight:600; color:var(--ink)}
.ptitle .sub form.inline{display:inline}
.ptitle .sub .linkbtn{font-size:inherit; color:var(--accent-ink)}

/* ---- the people picker and the new-label box (task forms) ----
   The search box is shown by picker.js, so without JavaScript there is no
   box that does nothing. Anyone picked stays visible however the list is
   filtered; the list scrolls once a roster is long. */
.picker{display:flex; flex-direction:column; gap:8px}
.picksearch{max-width:280px; padding:7px 11px; font-size:.88rem}
.picker .pick{max-height:230px; overflow-y:auto; padding:1px}
.picker .nomatchnote{display:none}
.picker.nomatch .nomatchnote{display:block}
.picker.nomatch .pick{display:none}
/* 8 October 2026 (owner): a client's project tick-list on People (Admin/Person.cshtml).
   It was pills of every width with ticked ones scattered. Now one row per project in
   columns - code, name, client - scrolling in the .picker box with the search from
   picker.js. The [hidden] line repeats the 5 October fix above for these rows: their
   display:grid would otherwise beat it and the search would hide nothing. */
.pick.projlist{display:grid; grid-template-columns:minmax(0,760px); gap:4px 14px}
.picker .pick.projlist{max-height:380px}
.pick.projlist label{display:grid; grid-template-columns:auto minmax(3.5em,max-content) minmax(0,1fr) auto; gap:8px; border-radius:var(--r-sm); padding:4px 10px 4px 5px}
.pick.projlist label[hidden]{display:none}
.pick.projlist label b{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.78rem; font-weight:500}
.pick.projlist label span{overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.newlabel{max-width:280px; padding:7px 11px; font-size:.88rem; margin-top:2px}
.field label.tick{display:inline-flex; align-items:center; gap:8px; font-size:.9rem; color:var(--ink);
  text-transform:none; letter-spacing:0; font-weight:400}
.tick input{accent-color:var(--accent)}

/* ---- tagging someone in a comment ----
   The buttons are shown by mention.js; typing an @ and a name works without
   them. A tag in a posted comment is marked so it reads as a tag rather than
   as a name that happens to follow an @. */
.tagbar{display:flex; align-items:center; gap:6px; flex-wrap:wrap; padding:8px 12px 0; font-size:.78rem; color:var(--muted)}
.tagbtn{font-family:inherit; font-size:.78rem; padding:2px 10px; border-radius:var(--r-pill); border:1px solid var(--line);
  background:var(--surface); color:var(--ink-2); cursor:pointer}
.tagbtn:hover{border-color:var(--accent-line); background:var(--accent-soft); color:var(--accent-ink)}
.tagged{color:var(--accent-ink); background:var(--accent-soft); border-radius:var(--r-sm); padding:0 3px; font-weight:600}

/* ---- the report builder (screen 8, second unit) ----
   One form for a new report and for changing one of yours. The sources are
   cards; the column set shown follows the source ticked, by CSS, so the page
   needs no script to switch; builder.js only adds the arrows and "Add another". */
.nt.wide{max-width:820px}
.srcpick{display:grid; grid-template-columns:repeat(3,1fr); gap:10px}
.field label.src{display:flex; flex-direction:column; gap:3px; align-items:flex-start; padding:10px 12px; border:1px solid var(--line); border-radius:var(--r);
  background:var(--surface); text-transform:none; letter-spacing:0; font-weight:400; color:var(--ink); cursor:pointer}
.field label.src b{font-size:.92rem; font-weight:600}
.field label.src span{font-size:.78rem; color:var(--muted); line-height:1.4}
.field label.src input{margin:0 0 4px; accent-color:var(--accent)}
.field label.src:has(input:checked){border-color:var(--accent-line); background:var(--accent-soft)}
.srcform:has(input[name=Source][value=Moves]:checked) .cols:not([data-source=Moves]){display:none}
.srcform:has(input[name=Source][value=Tasks]:checked) .cols:not([data-source=Tasks]){display:none}
.srcform:has(input[name=Source][value=Days]:checked) .cols:not([data-source=Days]){display:none}
.pick.cols label{padding:4px 8px 4px 11px}
.colup{font-family:inherit; font-size:.75rem; line-height:1; padding:1px 5px; margin-left:4px; border:1px solid var(--line); border-radius:var(--r-sm);
  background:var(--surface); color:var(--muted); cursor:pointer}
.colup:hover{color:var(--accent-ink); border-color:var(--accent-line)}
.cond{display:grid; grid-template-columns:200px 130px 1fr; gap:8px; align-items:center; margin-bottom:8px}
.cond .narrow{min-width:0}
.addcond{cursor:pointer; font-family:inherit; margin-bottom:6px}
.two{display:grid; grid-template-columns:1fr 190px; gap:8px}
.rsum .mono{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.78rem; color:var(--ink-2)}
.newrep{margin-left:12px; width:auto; padding:7px 13px; font-size:.82rem}
.src.own{background:var(--accent-soft); color:var(--accent-ink)}
.src.shared{background:var(--sunk); color:var(--ink-2)}
@media (max-width:820px){ .srcpick{grid-template-columns:1fr} .cond{grid-template-columns:1fr} .two{grid-template-columns:1fr} }

/* ======================================================================
   Admin (people, teams, projects): the hub's tiles, the lists, the
   panels a settings page is made of, and the two boxes at the foot of
   one. Nothing here appears on a screen anybody outside Admin sees.
   ====================================================================== */

/* the hub's tiles */
.tiles{display:grid; grid-template-columns:repeat(auto-fit,minmax(236px,1fr)); gap:14px}
.tile{display:block; border:1px solid var(--line); border-radius:var(--r); background:var(--surface); padding:15px 16px 14px; box-shadow:var(--card-shadow); color:inherit; text-decoration:none}
.tile:hover{border-color:var(--line-strong); box-shadow:var(--shadow)}
.tile:hover b{color:var(--accent-ink)}
.tile b{display:flex; align-items:baseline; gap:9px; font-family:var(--font-display); font-size:1.02rem; font-weight:700; color:var(--ink)}
.tile b .ct{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.75rem; font-weight:500; color:var(--muted); font-variant-numeric:tabular-nums; background:var(--sunk); border-radius:9px; padding:1px 7px}
.tile span{display:block; margin-top:6px; font-size:.84rem; color:var(--muted); line-height:1.5}

/* a list of people, teams or projects: one grid, its columns set per page */
.alist{border:1px solid var(--line); border-radius:var(--r); background:var(--surface); overflow:hidden; box-shadow:var(--card-shadow)}
.ahd,.arow{display:grid; grid-template-columns:var(--acols); gap:12px; padding:10px 14px; align-items:center; border-bottom:1px solid var(--line)}
.ahd{padding:7px 14px; background:var(--surface-2)}
.ahd span{font-size:.67rem; font-weight:600; letter-spacing:.09em; text-transform:uppercase; color:var(--muted); white-space:nowrap}
.alist > :last-child{border-bottom:0}
.arow:hover{background:var(--surface-2)}
.arow.off .nm b{color:var(--muted)}
.nm{display:flex; align-items:center; gap:9px; min-width:0}
.nm b{font-size:.92rem; font-weight:600; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.nm .uid{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.75rem; color:var(--muted); white-space:nowrap}
.acell{font-size:.84rem; color:var(--ink-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.acell.q{color:var(--muted)}
.go{text-align:right}

/* the role, as a pill: the one place a role gets a colour of its own */
.rolepill{display:inline-block; font-size:.73rem; font-weight:600; padding:2px 9px; border-radius:var(--r-pill); background:var(--sunk); color:var(--ink-2); white-space:nowrap}
.rolepill.adm{background:var(--st-sign-bg); color:var(--st-sign-ink)}
.rolepill.mgr{background:var(--st-prog-bg); color:var(--st-prog-ink)}
.rolepill.tl{background:var(--st-ver-bg); color:var(--st-ver-ink)}
.rolepill.qa{background:var(--st-rev-bg); color:var(--st-rev-ink)}
.rolepill.cli{background:var(--due-bg); color:var(--due)}

/* a yes/no fact: active, archived, never signed in */
.flag{font-size:.72rem; font-weight:600; padding:2px 8px; border-radius:var(--r-pill); white-space:nowrap}
.flag.on{background:var(--ok-bg); color:var(--ok)}
.flag.no{background:var(--sunk); color:var(--muted)}
.flag.new{background:var(--accent-soft); color:var(--accent-ink)}

/* a panel: one set of things you add to and take from, on a settings page */
.panels{display:grid; grid-template-columns:repeat(auto-fit,minmax(318px,1fr)); gap:16px; align-items:start}
.panel{border:1px solid var(--line); border-radius:var(--r); background:var(--surface); box-shadow:var(--card-shadow); overflow:hidden}
.panel > h3{margin:0; padding:11px 14px; background:var(--surface-2); border-bottom:1px solid var(--line); font-size:.8rem; font-weight:600; letter-spacing:.03em; color:var(--ink-2); display:flex; align-items:baseline; gap:8px}
.panel > h3 em{font-style:normal; font-weight:400; font-size:.78rem; color:var(--muted)}
.pnrow{display:flex; align-items:center; gap:10px; padding:9px 14px; border-bottom:1px solid var(--line)}
.pnrow:last-child{border-bottom:0}
.pnrow .nm{flex:1}
.pnrow .sub{font-size:.78rem; color:var(--muted); white-space:nowrap}
.pnrow form{margin:0; display:flex; align-items:center; gap:8px}
.pnrow.add{background:var(--surface-2); flex-wrap:wrap}
.pnrow.add .input,.pnrow.add .select{height:31px; font-size:.84rem; padding:3px 9px}
.pnrow.add .input.grow{flex:1; min-width:70px}
.pnrow.add .btn{padding:5px 13px; font-size:.82rem}
.pnote{padding:9px 14px; font-size:.79rem; color:var(--muted); line-height:1.5; background:var(--surface-2); border-top:1px solid var(--line)}
.x{color:var(--muted); font-size:1.05rem; line-height:1; padding:1px 6px; border-radius:var(--r-sm); background:none; border:0; cursor:pointer}
.x:hover{background:var(--sunk); color:var(--bad)}
.up{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.76rem; color:var(--muted); padding:2px 7px; border-radius:var(--r-sm); border:1px solid var(--line); background:var(--surface); cursor:pointer}
.up:hover{border-color:var(--line-strong); color:var(--ink-2)}
.star{font-size:.71rem; font-weight:600; padding:1px 8px; border-radius:var(--r-pill); background:var(--accent-soft); color:var(--accent-ink); white-space:nowrap}
.swatch{width:13px; height:13px; border-radius:4px; flex:none; border:1px solid rgba(0,0,0,.14)}

/* a password handed over on screen, because email is not on yet */
.once{border:1px solid var(--accent-line); background:var(--accent-soft); border-radius:var(--r); padding:13px 15px; margin-bottom:16px}
.once b{display:block; font-size:.9rem; color:var(--ink); margin-bottom:7px}
.once code{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:1.02rem; font-weight:500; background:var(--surface); border:1px solid var(--accent-line); border-radius:var(--r-sm); padding:5px 11px; display:inline-block; letter-spacing:.05em}
.once span{display:block; margin-top:8px; font-size:.82rem; color:var(--accent-ink); line-height:1.5}

/* the last thing on a settings page: the change that is hard to take back */
.danger{border:1px solid var(--bad-line); background:var(--bad-bg); border-radius:var(--r); padding:14px 16px; margin-top:22px; display:flex; gap:16px; align-items:center; flex-wrap:wrap}
.danger .dt{flex:1; min-width:250px}
.danger b{display:block; font-size:.92rem; color:var(--ink); margin-bottom:4px}
.danger p{margin:0; font-size:.84rem; color:var(--ink-2); line-height:1.55}
.btn.warn{background:var(--bad); color:#fff; box-shadow:none}
.btn.warn:hover{filter:brightness(1.07)}

/* the pieces the admin views add on top of the shared ones */
.panelform{padding:14px 14px 4px}
.panelform .btn{margin-top:2px; margin-bottom:14px}
.probs{margin:6px 0 0; padding-left:18px}
.probs li{margin:2px 0}
.danger.calm{border-color:var(--line-strong); background:var(--surface-2)}
.input.date{max-width:152px}
.arow .uid{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.82rem; color:var(--ink-2)}
.pnrow .x[disabled],.pnrow .up[disabled]{opacity:.45; cursor:not-allowed}
@media (max-width:820px){
  .ahd{display:none}
  .arow{grid-template-columns:1fr; gap:4px}
  .arow .go{text-align:left}
  .panels{grid-template-columns:1fr}
}

/* Panel rows hold long names (a milestone, a list), so they wrap rather than
   truncate - the grid lists above are the place for ellipsis, not these. */
.pnrow .nm{flex-wrap:wrap}
.pnrow .nm b{white-space:normal; overflow:visible; text-overflow:clip}
.up{font-family:inherit}
.input.date{max-width:142px}
.pfind{max-width:264px}

/* A list row that opens. It is a <details>, so the arrow needs no script and
   the browser keeps the open row open while the page is read. */
.acc{border-bottom:1px solid var(--line)}
.acc:last-child{border-bottom:0}
.acc > summary{cursor:pointer; list-style:none; border-bottom:0}
.acc > summary::-webkit-details-marker{display:none}
.acc > summary:hover{background:var(--surface-2)}
.acc[open] > summary{background:var(--surface-2)}
.twist{color:var(--muted); font-size:1.05rem; line-height:1; text-align:center; display:inline-block; transition:transform .12s ease}
.acc[open] .twist{transform:rotate(90deg)}
.apanel{display:flex; flex-wrap:wrap; gap:8px 34px; padding:12px 16px 14px 40px; background:var(--surface-2); border-top:1px solid var(--line)}
.apanel .grp{min-width:230px}
.apanel h4{margin:0 0 8px; font-size:.67rem; font-weight:600; letter-spacing:.09em; text-transform:uppercase; color:var(--muted)}
.apanel .none{margin:0; font-size:.85rem; color:var(--muted)}
.chipline{display:flex; flex-wrap:wrap; gap:7px}
.pill{display:inline-flex; align-items:center; gap:7px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-pill); padding:3px 11px 3px 4px; text-decoration:none; color:inherit}
.pill .av{width:21px; height:21px; font-size:.6rem}
.pill b{font-size:.85rem; font-weight:600; color:var(--ink)}
.pill em{font-style:normal; font-size:.76rem; color:var(--muted)}
.pill .uid{margin-left:7px; font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.74rem; color:var(--muted)}
a.pill:hover{border-color:var(--line-strong)}

/* Avatars on the admin screens. Every screen sizes its own, so these are the
   admin sizes: in a list row, in a panel row, and inside a pill. */
.nm .av,.pnrow .av,.apanel .av{width:24px; height:24px; border-radius:50%; display:grid; place-items:center;
  font-size:.66rem; font-weight:600; color:#fff; flex:none; letter-spacing:.01em}
.pill .av{width:21px; height:21px; font-size:.6rem}

/* A button that is offered but refused: the reason sits beside it, so it has
   to look like it will not move. */
.btn[disabled],.btn.pbtn[disabled]{opacity:.45; cursor:not-allowed; box-shadow:none; filter:none}
.btn[disabled]:hover{filter:none}
.newclient{max-width:320px; padding:7px 11px; font-size:.88rem; margin-top:6px}

/* The person form has two shapes in one page. A client is attached to a
   project and never to a team, and their company comes from that project, so
   the staff fields and the client field swap on the Role radios. Same idiom as
   the report builder's sources: :has() on the form, no script. */
.personform .forclient{display:none}
.personform:has(input[name=Role][value=Client]:checked) .forclient{display:flex}
.personform:has(input[name=Role][value=Client]:checked) .forstaff{display:none}
.hint.bad{color:var(--bad)}
.panels.one{max-width:660px}

/* ======================================================================
   Page headings. Every screen names itself at the top; that name was set
   small enough to read as chrome rather than as the title of the page, so
   the three places one appears are raised together and the trail above it
   is darkened to match. One size for all of them, whichever shell the
   screen uses.
   ====================================================================== */
.topbar h2{font-size:1.5rem; font-weight:700; letter-spacing:-.018em}
.ptitle h2{font-size:1.5rem; letter-spacing:-.018em}
.ptitle h2 .id{font-size:.92rem}
.h1{font-size:1.5rem; font-weight:700; letter-spacing:-.018em}
.crumb{font-size:.86rem; color:var(--ink-2); padding-top:14px}
.crumb a{color:var(--muted)}
.crumb a:hover{color:var(--ink-2)}

/* A whole row that is a link. The chevron is the only thing that says so
   besides the cursor, because a row of underlined text would read as noise. */
a.arow{text-decoration:none; color:inherit}
a.arow:hover{background:var(--surface-2)}
a.arow:focus-visible{outline:2px solid var(--focus); outline-offset:-2px}
.chev{text-align:right; color:var(--line-strong); font-size:1.15rem; line-height:1}
a.arow:hover .chev{color:var(--muted)}

/* The scope editor. The textarea is still the thing that posts; it is moved
   out of sight once scope.js has put an editable area in front of it. */
.richbar{display:flex; gap:4px; margin-bottom:6px; flex-wrap:wrap}
.richbar button{font-family:inherit; font-size:.8rem; height:28px; padding:0 10px; cursor:pointer;
  border:1px solid var(--line-strong); border-radius:var(--r-sm); background:var(--surface); color:var(--ink-2)}
.richbar button.is-b{font-weight:700}
.richbar button.is-i{font-style:italic}
.richbar button:hover{border-color:var(--focus); color:var(--ink)}
.rich{min-height:150px; max-height:420px; overflow-y:auto; border:1px solid var(--line-strong); border-radius:var(--r);
  background:var(--surface); color:var(--ink); padding:11px 13px; font-size:.9rem; line-height:1.6; position:relative}
.rich:focus{outline:none; border-color:var(--focus)}
/* 14 Oct 2026 (1A): the box's placeholder, shown by scope.js while the editor is empty. */
.rich.is-empty::before{content:attr(data-placeholder); position:absolute; color:var(--muted); pointer-events:none}
.rich p{margin:0 0 .6em}
.rich ul,.rich ol{margin:0 0 .6em; padding-left:1.3em}
.rich li{margin:.15em 0}
.rich h1,.rich h2,.rich h3,.rich h4{font-size:1rem; font-weight:600; margin:.8em 0 .3em}
.rich table{border-collapse:collapse} .rich td,.rich th{border:1px solid var(--line); padding:3px 7px}
/* Pasted scope text keeps the colours of wherever it came from: Word writes
   color:black on every list item and background:white behind highlights, and
   RichText (GenX.Infrastructure/Text/RichText.cs) lets color/background-color
   through. On the dark theme that gave black-on-dark text and white boxes (ATR
   scope, reported 5 Oct 2026; the Zoho source has <li style="color:black">
   and <span style="background: white;">), and text pasted from a dark page
   would vanish on the light theme the same way. Inline styles outrank any
   selector, hence !important. Bold, italic, underline and alignment are
   untouched; only colour gives way to the theme. Links keep their own colour. */
.rich [style]:not(a){color:inherit !important; background-color:transparent !important}
textarea.richsource{display:none}
/* 15 Oct 2026 (owner's fix 1A to the 14 Oct description change): the portal's box rule
   (body.portal .ptarea{display:block}, specificity 0,2,1) outranks the line above (0,1,1), so on Report
   an issue the hidden source box stayed on screen under the editor, showing the raw HTML. */
body.portal .ptarea.richsource{display:none}
/* HTML shown on a page: the editor's shapes, none of its box. Was .scopebox .rich.read (16 Sep 2026);
   global since 14 October 2026 (owner's decision 1A) because a task's description is shown the same way. */
.rich.read{border:0; border-radius:0; background:none; max-height:none; min-height:0; padding:0}
/* A description keeps its own size, colour and paragraph gap, which .rich would otherwise override. */
.desc.rich.read{font-size:.92rem; color:var(--ink-2); line-height:1.65}
.desc.rich.read p{margin:0 0 9px} .desc.rich.read p:last-child{margin-bottom:0}
/* 15 Oct 2026 (owner's fix 2A): the portal's description keeps the size the page gives it; .rich would
   set .9rem and 1.6. inherit is right here because .tdesc sets none of the three on the box itself
   (only on its paragraphs, body.portal .tdesc p), unlike .desc above, which sets its own. */
body.portal .tdesc.rich.read{font-size:inherit; color:inherit; line-height:inherit}

/* The scope on a project page (16 September 2026). It was a fold under the
   title bar, which showed nothing at all when no scope had been typed; it is
   now a box that opens over the page from the Scope button, and a Manager or an
   Admin edits it in the same box.

   The <dialog> is real, so the browser gives the dark behind it, Esc and the
   focus trap. Opened without a script it sits in the page under the title bar
   rather than over it - :modal is true only when a script opened it - so the
   scope is readable either way. */
dialog.scopebox{border:0; padding:0; margin:0; width:100%; max-width:760px; background:transparent; color:inherit}
dialog.scopebox[open]:not(:modal){position:static; margin:14px 22px; max-width:none}
dialog.scopebox:modal{margin:auto; max-height:calc(100vh - 80px)}
dialog.scopebox::backdrop{background:rgba(10,13,16,.45)}
.scopebox .dlg{max-width:none; box-shadow:var(--cardshadow); display:flex; flex-direction:column; max-height:inherit}
.scopebox .dlghd{display:flex; align-items:flex-start; gap:12px}
.scopebox .dlghd .tl{flex:1; min-width:0}
.scopebox .dlghd .x{font-size:1.3rem; line-height:1; color:var(--muted); text-decoration:none; padding:0 3px}
.scopebox .dlghd .x:hover{color:var(--ink)}
.scopebox .dlgbd{overflow-y:auto}
.scopebox .none{font-size:.88rem; color:var(--muted); line-height:1.6; margin:0}
.scopebox .hint{font-size:.8rem; color:var(--muted); line-height:1.5}
.scopebox form{display:flex; flex-direction:column; min-height:0}
.scopebox .dlgft .btn{margin:0}
/* The two halves are swapped by the hidden attribute, and hidden is only
   display:none in the browser's own stylesheet - which any class here outranks.
   Without this the reading and the editor showed at once and Cancel looked
   like it did nothing (seen 16 September 2026, the first time it was used). */
.scopebox [hidden]{display:none !important}

/* Scope and New task sit together at the end of the title bar. */
.ptitle .acts{display:flex; align-items:center; gap:8px}
.ptitle .acts .btn.ghost{margin-top:0; background:var(--surface)}

/* Putting somebody on a task from the task itself. */
.persons .person form.inline{display:inline; margin:0}
.persons .person .x{font-size:.9rem; padding:0 4px; vertical-align:middle}
.puton{display:flex; gap:7px; margin-top:8px; align-items:center}
.puton .select{flex:1; min-width:0; height:30px; font-size:.84rem; padding:3px 8px}
.puton .btn{margin:0; padding:5px 11px; font-size:.82rem; white-space:nowrap}

/* 5 October 2026: the put-on control became a searchable tick-list, so several
   people can be put on with one press (Views/Task/Show.cshtml, picker.js). The
   list is the edit form's own picker - .picker and .pick above, and the pill
   rows at .pick label (~line 751) - so only what the narrow sidebar needs is
   added here. The .select rule above is no longer used by this panel.
   Stacked: the list on top and the button under it at its own width, left
   aligned; the picker is told to fill the sidebar because align-items would
   otherwise shrink it to its content. */
.puton.several{flex-direction:column; align-items:flex-start; gap:8px}
.puton.several .picker{align-self:stretch; min-width:0}
/* The list scrolls at 200px (230px on the edit form, which has the room). */
.puton .picker .pick{max-height:200px}
/* The sidebar's field label rule, .f label (~line 403), is small, uppercase and
   spaced out, and it matches every label in the sidebar, these rows included.
   .pick label already beats it today - same weight of selector, later in the
   file - but that is an accident of order, so the two things that would turn
   a name into a heading are cancelled here where the order cannot undo it.
   Colour and size are left to .pick label, which keeps the ticked row's accent. */
.puton .pick label{text-transform:none; letter-spacing:0; cursor:pointer}
/* "Nobody on this project matches that." and "2 people picked": .note has no
   look of its own outside the forms and dialogs, so give it the sidebar's
   small muted one (var(--muted) follows the dark palette). */
.puton .note{font-size:.74rem; color:var(--muted); line-height:1.45}

/* ---------------------------------------------------------------------------
   Inviting somebody in (16 September 2026): the invite list, the box that holds
   a link next to a Copy button, and the handout that shows a new account its ID
   and password once.
   --------------------------------------------------------------------------- */

/* The invite list, on the same .rows component as everything else - only the
   track widths differ, the way .rows.rep does it. The wider variant carries the
   "Invited by" column an Admin sees. */
.rows.inv .rowhd,.rows.inv .row{grid-template-columns:1fr 92px 190px minmax(240px,1.2fr) 64px}
.rows.inv.who .rowhd,.rows.inv.who .row{grid-template-columns:1fr 92px 130px 190px minmax(240px,1.2fr) 64px}

/* Where an invitation stands. Only "Open" is coloured: the other three are
   over, and an ended thing does not need to catch the eye. */
.invstate{font-size:.72rem; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--muted)}
.invstate.open{color:var(--accent)}

/* A link beside its Copy button. The input is readonly rather than plain text
   so that it can be selected with one click, and so Ctrl+C still works where
   the clipboard API is refused (see copy.js). */
.linkbox{display:flex; gap:8px; align-items:center; margin:8px 0 4px; max-width:100%}
.linkbox .input{flex:1 1 auto; min-width:0; font-size:.78rem; padding:6px 9px}
.linkbox .btn{flex:0 0 auto; padding:6px 12px; font-size:.8rem}

/* The ID and the password on the welcome page: large, monospaced and far apart,
   because somebody is copying them onto paper or into a password manager. */
.handout{display:flex; flex-direction:column; gap:14px; margin:18px 0}
.handout .f label{display:block; font-size:.7rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin-bottom:4px}
.handout .v.big{font-size:1.25rem; letter-spacing:.02em; color:var(--ink); user-select:all}

/* The door's buttons run the width of the card. */
.btn.wide{display:block; width:100%; text-align:center; margin-top:14px}

/* ---- Home (screen 9), 17 September 2026 ----
   Ported from the approved design note (D:\Claude_Apps\genx-screen-home.html).
   Colour here means what a figure counts, not decoration: blue is work
   moving, amber is review, green is closed, magenta is late, red is
   returned - every hue below is a token this file already gives that same
   meaning elsewhere (the --st-*, --due, --ok and --return-* pairs), so a
   colour on Home always agrees with the same colour on a task's state pill. */

/* the greeting beside the page title */
.topbar .hi{font-size:.86rem; color:var(--ink-2)}
.topbar .hi small{font-size:.8rem; color:var(--muted); margin-left:8px}

/* the period control: the design's amber "chip" look, with a plain <select>
   (class .select, same as every other dropdown) sitting inside it - the
   rules below strip the select's own border and background so it reads as
   part of the chip rather than a box inside a box. */
.sel{margin-left:auto; font-size:.8rem; font-weight:600; border:1px solid var(--accent-line); border-radius:var(--r-sm);
  padding:4px 10px; background:var(--accent-soft); color:var(--accent-ink); white-space:nowrap; display:inline-flex; align-items:center}
.sel small{font-size:.72rem; font-weight:400; color:var(--accent-ink); opacity:.8; margin-right:6px}
.sel .select{border:0; background:transparent; color:inherit; font:inherit; font-weight:600; padding:0; margin:0; min-width:0}
.sel .select:focus{outline:none}
.periodform{margin-left:auto}

/* stat tiles: the one new component. The number wears the colour of what it
   counts; the icon sits in a chip of the same tint. */
.stats{display:grid; grid-template-columns:repeat(auto-fit,minmax(168px,1fr)); gap:12px}
.stat{display:grid; grid-template-columns:1fr auto; gap:2px 10px; border:1px solid var(--line); border-radius:var(--r); background:var(--surface);
  padding:12px 14px 11px; box-shadow:var(--card-shadow); color:inherit; text-decoration:none; min-width:0}
.stat:hover{border-color:var(--line-strong); box-shadow:var(--shadow)}
.stat .l{grid-column:1; font-size:.8rem; color:var(--muted)}
.stat b{grid-column:1; font-family:var(--font-display); font-size:1.7rem; font-weight:700; line-height:1.1; letter-spacing:-.02em; color:var(--ink)}
.stat b small{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.72rem; font-weight:500; color:var(--muted); letter-spacing:0; margin-left:8px}
.stat .ic{grid-column:2; grid-row:1/3; align-self:start; width:36px; height:36px; border-radius:9px; display:grid; place-items:center; background:var(--sunk); color:var(--ink-2)}
.stat .ic svg{width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round}
.stat .m{grid-column:1/-1; font-size:.76rem; color:var(--muted); margin-top:3px; line-height:1.4}
/* Home's tone modifiers are h-prefixed. site.css already has GLOBAL .due (My Work's due column, mono), .back (the board's bordered "came back" chip) and .ret (My Work's returned row, a padded grid); each of them leaked onto Home's notes or reasons on the live page (17 September 2026). hdue / hback / hok collide with nothing. */
.stat .m.hdue{color:var(--due)} .stat .m.hback{color:var(--return-ink)} .stat .m.hok{color:var(--ok)}
.t-prog b{color:var(--st-prog-ink)} .t-prog .ic{background:var(--st-prog-bg); color:var(--st-prog-ink)}
.t-rev b{color:var(--st-rev-ink)}   .t-rev .ic{background:var(--st-rev-bg); color:var(--st-rev-ink)}
.t-ver b{color:var(--st-ver-ink)}   .t-ver .ic{background:var(--st-ver-bg); color:var(--st-ver-ink)}
.t-sign b{color:var(--st-sign-ink)} .t-sign .ic{background:var(--st-sign-bg); color:var(--st-sign-ink)}
.t-due b{color:var(--due)}          .t-due .ic{background:var(--due-bg); color:var(--due)}
.t-back b{color:var(--return-ink)}  .t-back .ic{background:var(--return-bg); color:var(--return-ink)}
.t-ok b{color:var(--ok)}            .t-ok .ic{background:var(--ok-bg); color:var(--ok)}
.t-hold b{color:var(--ink-2)}       .t-hold .ic{background:var(--st-hold-bg); color:var(--st-hold-ink)}
.t-acc b{color:var(--accent-ink)}   .t-acc .ic{background:var(--accent-soft); color:var(--accent-ink)}

/* the two-up and three-up figure grids, and the figure card itself */
.grid2{display:grid; grid-template-columns:1fr 1fr; gap:14px}
.grid3{display:grid; grid-template-columns:1fr 1fr 1fr; gap:14px}
.fig{border:1px solid var(--line); border-radius:var(--r); background:var(--surface); padding:13px 16px 12px;
  box-shadow:var(--card-shadow); display:flex; flex-direction:column; gap:10px; min-width:0}
.fig .fh{display:flex; align-items:baseline; gap:8px; flex-wrap:wrap}
.fig h4{font-size:.88rem; font-weight:600; margin:0}
.fig .per{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.66rem; letter-spacing:.06em; text-transform:uppercase; color:var(--muted)}
.fig a.more{margin-left:auto; font-size:.76rem; color:var(--ink-2); white-space:nowrap}
.fig .note{font-size:.74rem; color:var(--muted); line-height:1.45}
.leg{display:flex; gap:4px 14px; flex-wrap:wrap; font-size:.76rem; color:var(--ink-2)}
.leg span{display:inline-flex; align-items:center; gap:6px}
.leg i{width:9px; height:9px; border-radius:50%; display:inline-block}
.leg b{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-weight:500; color:var(--ink); font-size:.76rem}
.chart svg{display:block; width:100%; height:auto; overflow:visible}

/* text inside the server-drawn SVGs */
svg text{font-family:"IBM Plex Sans",-apple-system,"Segoe UI",Arial,sans-serif}
svg .lbl{fill:var(--ink-2); font-size:11px}
svg .val{fill:var(--ink); font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:10.5px}
svg .tick{fill:var(--muted); font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:10px}
svg .grid line{stroke:var(--line); stroke-width:1}
svg .axis{stroke:var(--line-strong); stroke-width:1}

/* bar/column fills. The .c-* backgrounds for open/prog/rev/ver/sign/hold/int
   already exist above (the pulse bar); these are the SVG-fill twins, plus
   the tones the pulse bar never needed - ink (a plain note), lite (context,
   e.g. "opened"), back (came back/returned), due (late) and ok (closed). */
.f-open{fill:var(--st-open-ink)}
.f-prog{fill:var(--st-prog-ink)}
.f-rev{fill:var(--st-rev-ink)}
.f-ver{fill:var(--st-ver-ink)}
.f-sign{fill:var(--st-sign-ink)}
.f-hold{fill:var(--st-hold-ink); opacity:.55}
.f-ink,.c-ink{fill:var(--ink-2); background:var(--ink-2)}
.f-lite,.c-lite{fill:var(--line-strong); background:var(--line-strong)}
.f-back,.c-back{fill:var(--return-ink); background:var(--return-ink)}
.f-due,.c-due{fill:var(--due); background:var(--due)}
.f-ok,.c-ok{fill:var(--ok); background:var(--ok)}

/* the dot beside a "Where to start" row, and beside a load bar's name (later units) */
.dot{width:8px; height:8px; border-radius:50%; display:inline-block}

/* "Where to start": My Work's own .rows/.row are a 7-column task grid: this
   list is a different shape (a dot, an id, a title, a reason), so it is
   namespaced .hrows/.hrow rather than reusing those names. */
.hrows{display:flex; flex-direction:column; border-top:1px solid var(--line)}
.hrow{display:grid; grid-template-columns:10px 78px 1fr auto; gap:12px; align-items:center; padding:8px 0;
  border-bottom:1px solid var(--line); font-size:.86rem; text-decoration:none; color:inherit}
.hrow:last-child{border-bottom:0}
.hrow:hover{background:var(--surface-2)}
.hrow .id{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.76rem; color:var(--ink-2)}
.hrow .t{color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.hrow .r{font-size:.78rem; color:var(--muted); white-space:nowrap; text-align:right}
.hrow .r.hdue{color:var(--due)}
.hrow .r.hback{color:var(--return-ink)}

/* the Returned band on Home: My Work's own .returned/.ret are a different grid, and .rrow is
   the reports' bordered row card (its "span" rule turned the band's titles grey on the live page,
   17 September 2026), so the band is .hret and its rows are .rr. Original note:
   grid (three columns, no header link), so this is namespaced .hret. */
.hret{border:1px solid var(--return-line); border-left-width:3px; border-radius:var(--r); background:var(--return-bg); overflow:hidden}
.hret .rhd{display:flex; align-items:center; gap:9px; padding:9px 14px 7px}
.hret .rhd h3{font-size:.76rem; font-weight:600; letter-spacing:.09em; text-transform:uppercase; color:var(--return-ink); margin:0}
.hret .rhd .n{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.72rem; color:var(--return-ink)}
.hret .rhd a{margin-left:auto; font-size:.76rem; color:var(--return-ink)}
.hret .rr{display:grid; grid-template-columns:78px 1fr auto; gap:12px; padding:7px 14px; border-top:1px solid var(--return-line);
  font-size:.86rem; align-items:center; text-decoration:none; color:inherit}
.hret .rr:hover{background:var(--surface)}
.hret .rr .id{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.76rem; color:var(--return-ink)}
.hret .rr .why{display:block; font-size:.78rem; color:var(--ink-2)}
.hret .rr .when{font-size:.76rem; color:var(--muted); white-space:nowrap; text-align:right}

@media (max-width:900px){
  .grid2,.grid3{grid-template-columns:1fr}
}
@media (max-width:820px){
  .stats{grid-template-columns:1fr 1fr}
}

/* ---- Home, unit 2 (the QA's Home), 17 September 2026 ----
   Four rules the second unit's markup needs, kept here under the Home block
   rather than edited into the rules above, so what unit 1 shipped and what
   unit 2 added stay legible apart. All four are ported from the same approved
   design note as the block above (D:\Claude_Apps\genx-screen-home.html). */

/* The age bands under the QA's "Needs my review" count. Tile.Mini has existed
   on the model since unit 1 but nothing printed it and the rule was never
   copied out of the design note, so the view had nothing to style until now.
   One hue (In Review amber) at three opacities: this is one quantity split by
   age, not three different things, so it must not read as three colours. */
.stat .mini{grid-column:1/-1; display:flex; gap:2px; height:6px; border-radius:3px; overflow:hidden; margin-top:8px; background:var(--sunk)}
.stat .mini i{display:block; height:100%; background:var(--st-rev-ink)}
.stat .mini .a1{opacity:.45} .stat .mini .a2{opacity:.75} .stat .mini .a3{opacity:1}

/* The QA's two lists sit side by side in a .grid2. The global .sec above
   carries min-width:660px - My Work's, where a seven-column task grid genuinely
   needs that width - and it would force each half of a two-column grid wider
   than its track, pushing the body into a horizontal scroll. .grid2 is Home's
   own (nothing else in Views uses it), so clearing the minimum inside it
   touches no other screen. */
.grid2 > .sec{min-width:0}

/* The second line under a list row's title ("Meridian Portal · auto-closes
   tomorrow"). The design has it as .row .t small; Home's list is .hrow. */
.hrow .t small{display:block; font-size:.76rem; color:var(--muted)}

/* The "more" link a list heading may carry ("Sign-off expiring", "Triage
   queue"). The .rule before it is flex:1, so the link is already pushed to the
   right; this only gives it the muted look the design's .fig a.more has. */
.sechd a.more{font-size:.76rem; color:var(--ink-2)}

/* ---- Home, unit 3 (the Team Lead's Home), 18 September 2026: the projects strip ----
   Ported from frame 3 of the approved design note (D:\Claude_Apps\genx-screen-home.html),
   renamed and scoped. The design calls these .pstrip/.prow/.pbar/.pn; this file
   already has a GLOBAL .prow (the project page's task row, a five-column grid with
   its own padding and its own .code rule) and a GLOBAL .pbar (that page's pulse,
   10px tall and up to 760px wide), and both would land on the strip's markup and
   break it. So the strip is .hstrip/.hprow, its bar is .hpulse, its name cell is
   .hpn, and every shared part (.code, .n, .cc, .zero, .ago, .hd) is reached only
   through .hprow so nothing here leaks out either. The two number tones are
   h-prefixed like the rest of Home: .hcli is the Client Review Pending purple,
   .hback the returned red, both the same tokens the state pills use. */
.hstrip{display:flex; flex-direction:column; border-top:1px solid var(--line)}
.hprow{display:grid; grid-template-columns:190px 1fr 46px 78px 60px 90px; gap:14px; align-items:center; padding:8px 0; border-bottom:1px solid var(--line); font-size:.84rem; text-decoration:none; color:inherit}
/* 19 September 2026 (QC fix): a.hprow, not a bare .hprow. A strip row is an <a>
   only when the viewer may open that project; a row for a project they are not
   on the roster of is now a plain <div> with the same class (see
   Views/Home/Index.cshtml), and an unscoped rule here would have lit it up under
   the pointer exactly like a link - the row would have stopped being a door and
   gone on looking like one. Scoping it also stops the header row (.hprow.hd,
   a div since unit 3) highlighting, which it should never have done. No cursor
   rule is needed: the hand came from the anchor's href, and a div has none. */
a.hprow:hover{background:var(--surface-2)}
.hprow.hd{font-size:.7rem; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); padding:5px 0}
.hprow .hpn{overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.hprow .hpn .code{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.76rem; color:var(--ink-2); margin-right:8px}
.hprow .hpulse{display:flex; gap:2px; height:8px; border-radius:var(--r-pill); overflow:hidden; background:var(--sunk); max-width:240px}
.hprow .hpulse span{display:block; height:100%}
.hprow .n{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.78rem; text-align:right; font-variant-numeric:tabular-nums; color:var(--ink)}
.hprow .n.zero{color:var(--line-strong)}
.hprow .n.hcli{color:var(--st-sign-ink)} .hprow .n.hback{color:var(--return-ink)}
.hprow .ago{font-size:.78rem; color:var(--muted); text-align:right; white-space:nowrap}

/* The line under the strip. The design only ever styles a note inside a figure
   (.fig .note above) and this one sits in a .sec, so it is matched as the
   strip's own next sibling rather than by adding a global .note - which would
   reach the task page's and the edit form's notes as well. */
.hstrip + .note{font-size:.74rem; color:var(--muted); line-height:1.45; margin:2px 0 0}

/* Narrow: the pulse, the with-client column and the last-moved words go, and
   the row keeps the name, the open count and the stalled count - the three
   things a Team Lead is looking for on a phone. */
@media (max-width:900px){ .hprow{grid-template-columns:1fr 46px 60px} .hprow .hpulse,.hprow .cc,.hprow .ago{display:none} }

/* ---- Home, unit 4 (the Manager's Home), 18 September 2026: the donut and its facts ----
   Ported from frame 4 of the approved design note (D:\Claude_Apps\genx-screen-home.html),
   renamed where a name is already taken. The design calls the facts line .facts;
   this file already has a GLOBAL .facts (the project page's own facts line, with
   a.fdue and a.fback), which carries different padding and no top rule and would
   land straight on this markup - so Home's is .hfacts and its tones are h-prefixed
   like every other tone on this page. .donut and .dleg are free, but they are
   h-prefixed too so the whole of Home reads one way; the svg classes (.gapline,
   .big, .sm) are scoped under svg, where nothing else of that name lives.

   The donut is the one figure on Home drawn as a ring rather than a bar, because
   it answers "how is the open work divided" and the middle is the only place the
   total can sit without a label of its own. */
.hdonut{display:grid; grid-template-columns:150px 1fr; gap:18px; align-items:center}
.hdonut .chart{width:150px}
.hdleg{display:flex; flex-direction:column; gap:5px; font-size:.8rem}
.hdleg a,.hdleg span{display:grid; grid-template-columns:10px 1fr auto; gap:9px; align-items:center; text-decoration:none; color:var(--ink-2)}
.hdleg i{width:9px; height:9px; border-radius:50%; display:inline-block}
.hdleg b{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-weight:500; color:var(--ink); font-size:.8rem}
/* the hairline between two ring segments: the page's own background, so the
   slices are parted by a gap rather than by a line of some third colour */
svg .gapline{stroke:var(--surface); stroke-width:2}
svg .big{font-family:var(--font-display); font-size:26px; font-weight:700; fill:var(--ink)}
svg .sm{font-size:10.5px; fill:var(--muted)}
.hfacts{display:flex; gap:8px 20px; flex-wrap:wrap; font-size:.82rem; color:var(--ink-2); padding-top:6px; border-top:1px solid var(--line)}
.hfacts a,.hfacts span{color:var(--ink-2); text-decoration:none}
.hfacts b{font-weight:600; color:var(--ink)}
.hfacts .hdue,.hfacts .hdue b{color:var(--due)}
.hfacts .hback b{color:var(--return-ink)}
.hfacts .hcli b{color:var(--st-sign-ink)}
/* Narrow: the ring's legend goes under it rather than beside it. */
@media (max-width:820px){ .hdonut{grid-template-columns:1fr} }

/* ---- Home, unit 5 (the Admin's System health), 18 September 2026 ----
   Ported from frame 5 of the approved design note (D:\Claude_Apps\genx-screen-home.html),
   renamed and scoped. The design calls these .health/.hcell/.jobs/.job; nothing
   in this file carries any of those four names today, but .job, .jobs and
   .health are generic enough that one of them would be taken sooner or later,
   and .hcell's own children (.l, .b, .ic, .m, .d, .w) only stay harmless while
   they are reached through it - so the whole block is h-prefixed and scoped
   like the rest of Home.

   A health cell is a quieter, smaller relative of the .stat tile above it: the
   same label / number / tinted icon chip / note, at about two thirds the size,
   because four of them sit under the Manager's five full-size tiles and must
   not compete with them. The .t-* tone rules are global in this file
   (".t-sign b", not ".stat.t-sign b"), so a cell picks up its number and chip
   colour from them with nothing added here. */
.hhealth{display:grid; grid-template-columns:repeat(4,1fr); gap:12px}
.hcell{border:1px solid var(--line); border-radius:var(--r); background:var(--surface); padding:11px 14px; display:grid; grid-template-columns:1fr auto; gap:2px 10px; color:inherit; text-decoration:none}
.hcell:hover{border-color:var(--line-strong)}
.hcell .l{grid-column:1; font-size:.78rem; color:var(--muted)}
.hcell b{grid-column:1; font-size:1.15rem; font-weight:600}
.hcell .ic{grid-column:2; grid-row:1/3; align-self:start; width:30px; height:30px; border-radius:8px; display:grid; place-items:center}
.hcell .ic svg{width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round}
.hcell .m{grid-column:1/-1; font-size:.76rem; color:var(--muted); line-height:1.4}
.hcell .m.hdue{color:var(--due)}

/* The Jobs card: three rows, each a dot, the job's name with what its last run
   did under it, and when it ran. The dot itself is Home's own .dot with the
   .c-ok / .c-back backgrounds, so "late" is the same red as a returned task -
   the design's own rule, and the reason there is no colour of its own here. */
.hjobs{display:flex; flex-direction:column; border-top:1px solid var(--line)}
.hjob{display:grid; grid-template-columns:12px 1fr auto; gap:10px; align-items:center; padding:8px 0; border-bottom:1px solid var(--line); font-size:.84rem}
.hjob .d{font-size:.76rem; color:var(--muted); display:block}
.hjob .w{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.76rem; color:var(--muted); white-space:nowrap}

/* Narrow: four cells across becomes two, as the design has it. */
@media (max-width:900px){ .hhealth{grid-template-columns:1fr 1fr} }

/* ---- Clone Login, 18 September 2026 ----
   Signing in as somebody else for an hour (CloneLoginService). ONE thing needs
   styling and nothing else does: the strip that says whose screen this is.

   Amended the same evening. There were .clonestart and .cloneway rules here for
   a start page in a new tab that offered two ways in; the owner asked for the
   same tab and a return link, so the control signs straight in, the start page
   and its partner Dead page were deleted, and their rules went with them rather
   than being left behind to style nothing. Only .clonebar is still drawn - by
   _Layout and _ClientLayout, on every page of a cloned session.

   Grepped before naming, and again on removal: .clonebar appears nowhere else
   in this file, and .clonestart and .cloneway appear nowhere in the repo now
   except in this note. .linkbtn is reused exactly as it is.

   THE STRIP. The Ember amber (--accent-soft / --accent-ink / --accent-line),
   which is this file's colour for "an action", used here for the one state a
   person must never forget they are in: everything clicked in a cloned session
   is recorded under the name in the strip and not under their own. It is
   sticky, so it survives scrolling, and it sits at the very top of .main in the
   staff shell and outside .pshell in the portal - the portal's own column is
   1040px and centred, and a strip that stopped at its edges would read as part
   of the page rather than as something wrapped around it. */
.clonebar{position:sticky; top:0; z-index:40; display:flex; align-items:center; gap:8px; flex-wrap:wrap;
  background:var(--accent-soft); color:var(--accent-ink); border-bottom:1px solid var(--accent-line);
  padding:9px 22px; font-size:.86rem}
.clonebar b{font-weight:600; color:var(--accent-ink)}
/* form.inline has no global rule in this file - the two that exist are scoped to
   their own pages - so the strip carries its own, and the way back reads as part
   of the sentence rather than as a block under it. */
.clonebar form.inline{display:inline; margin:0}
.clonebar .linkbtn{color:var(--accent-ink); font-weight:600}

/* 13 October 2026 (owner's decision, client issue clock 6C): the strip above the page for the people a
   client-raised task is waiting on (_Layout, ClientClockQuery). Amber like .clonebar by default; .late
   (the oldest has waited the 2-hour target) turns it to the --bad red. Only existing tokens are used
   (--accent-* and --bad-*), so the light theme and both dark-mode mechanisms (prefers-color-scheme and
   data-theme="dark") apply without a rule of their own. Not sticky - it scrolls away, unlike .clonebar -
   and the whole strip is one link to the task. Class names checked against this file: .clientbar appears
   nowhere else. */
.clientbar{display:flex; align-items:center; gap:8px; flex-wrap:wrap; text-decoration:none;
  background:var(--accent-soft); color:var(--accent-ink); border-bottom:1px solid var(--accent-line);
  padding:9px 22px; font-size:.86rem}
.clientbar b{font-weight:600}
/* 14 October 2026 (owner approved): .late is now a solid red bar instead of a pale red tint. The tint
   was --bad-bg (#FBF0EC in light), almost the same as the amber --accent-soft (#FDEEDF) of the on-time
   strip, so in the 14 Oct browser check a late strip did not stand out from an on-time one. The fix
   turns the same token pair round (--bad behind, --bad-bg as the text), so it still uses only existing
   tokens and both dark-mode mechanisms keep working with no rule of their own. Contrast: light #FBF0EC
   on #9A4726 about 5.7:1, dark #2C1A14 on #E0906D about 6.6:1; the .clientbar-hint text at .85 opacity
   stays above 4.5:1 in both (about 4.6 and 5.1). The border takes the background colour, so the strip
   keeps its height. Was: background:var(--bad-bg); color:var(--bad); border-bottom-color:var(--bad-line). */
.clientbar.late{background:var(--bad); color:var(--bad-bg); border-bottom-color:var(--bad)}
.clientbar:hover b{text-decoration:underline}
.clientbar:focus-visible{outline:2px solid currentColor; outline-offset:-3px}
.clientbar-hint{margin-left:auto; opacity:.85}

/* 14 October 2026 (owner's decision, task reminders 2A 3C, choice page Bg47Dgb4jyyhLx8B3FVW3N; colour 10A): the strip
   above the page for a person whose own reminder on a task is due and not yet answered with a comment (_Layout,
   ReminderQuery). In the toast's colours (--toast and --toast-ink: near-black in light, near-white in dark), so it
   never reads as the amber or red client-issue strip that can sit above it, and no new hue is added. Same shape as
   .clientbar: not sticky, cannot be closed, the whole strip one link (to the task's comment box). The task's title
   is cut with an ellipsis so the strip stays one line. Class names checked against this file: .remindbar,
   .remindset and .remind-due appear nowhere else. */
.remindbar{display:flex; align-items:center; gap:8px; text-decoration:none;
  background:var(--toast); color:var(--toast-ink); padding:9px 22px; font-size:.86rem}
.remindbar b{font-weight:600; white-space:nowrap}
.remindbar-what{flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; opacity:.85}
.remindbar-hint{white-space:nowrap; opacity:.85}
.remindbar:hover b{text-decoration:underline}
.remindbar:focus-visible{outline:2px solid currentColor; outline-offset:-3px}
/* The Reminder block in the task page's side panel (Views/Task/Show.cshtml). */
.remindset{display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin-top:4px; font-size:.86rem}
.remindset .input{width:64px}
.remind-due{color:var(--bad)}

/* ---- Notifications (unit 1), 18 September 2026 ----
   The page at /notifications and the two counts that open it: the rail's, in
   the staff shell, and the portal bar's.

   NAMING. Every class below was grepped against this file before it was named
   and none of .nots, .not, .nothd, .pnots or .pct appeared anywhere in it.
   They are namespaced rather than called .rows/.row because those two belong
   to My Work and the board, and Home already had a global class (.returned)
   leak onto its band on 17 September 2026 - one page silently restyling
   another is the failure this file keeps making. .pct is the portal bar's
   count; the rail reuses .ct, which is already the My Work badge (.nav a .ct).

   ONE VIEW, TWO SHELLS. The notifications page is the same page for staff and
   for clients, so it cannot borrow either shell's page furniture: the staff
   .page is 1000px with its own padding, the portal's .pshell is a 1040px
   centred column that already pads, and the staff .head/.topbar is sticky
   chrome a client has never seen. Hence .pnots for the portal wrapper and
   .nothd for a heading of this page's own.

   The parts inside a row (.dot, .tx, .why, .when) are all reached through
   .not, never on their own: .dot in particular has a bare global rule in this
   file (Home's, an 8px circle) and .why, .tx and .when are each scoped to
   three or four other components. Scoping every one of them here is what stops
   this block reaching any of those, and stops any of them reaching this. */
/* 6 October 2026 (portal v2): .pnots, the portal wrapper of this page, is styled in the client portal block above
   (body.portal .pnots). The .nothd / .nots / .not rules below are the staff view's and are unchanged. */
.nothd{display:flex; align-items:center; gap:10px; margin-bottom:14px}
.nothd h3{margin:0; font-size:1.02rem; font-weight:600; letter-spacing:-.01em}
.nothd .n{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.72rem;
          color:var(--muted); background:var(--sunk); border-radius:9px; padding:1px 7px}
.nots{display:flex; flex-direction:column; border-top:1px solid var(--line)}
/* A row is three columns: the unread dot, the words, and when it arrived. It is
   an <a> when the notice has a task to open and a <div> when it has not, and
   both wear .not - so the hover belongs to a.not alone, below, and a row that
   leads nowhere never looks clickable. */
.not{display:grid; grid-template-columns:10px 1fr auto; gap:12px; align-items:start;
     padding:10px 0; border-bottom:1px solid var(--line); text-decoration:none; color:inherit}
.not:last-child{border-bottom:0}
a.not:hover{background:var(--surface-2)}
/* The dot holds its column whether or not it is filled, so the titles of read
   and unread rows line up rather than stepping in and out. */
.not .dot{width:8px; height:8px; border-radius:50%; margin-top:6px; background:transparent}
.not.new .dot{background:var(--accent)}
.not .tx{min-width:0}
.not .tx b{display:block; font-weight:400; color:var(--ink)}
.not.new .tx b{font-weight:600}
.not .why{display:block; font-size:.82rem; color:var(--muted); margin-top:2px}
.not .when{font-size:.78rem; color:var(--muted); white-space:nowrap}
/* 6 October 2026 (portal v2): the portal bar's count rule (.pacts .pct) and its note were removed. The bar is
   rebuilt (see the client portal block above); the count is now `body.portal .picon .pct`, a filled-amber badge
   on the bell. The reason for the amber stays true: a number in the same grey as its neighbours would not be seen. */

/* ---- Add Task (Home and My Work), 5 October 2026 ----
   The button is a <summary> wearing the .btn.pbtn look, inside a native
   <details>, so opening and closing the panel needs no script. The panel
   floats under the button, above the rows that scroll beneath the top bar.
   The browser's own disclosure triangle is hidden because the button is the
   affordance. margin-left:auto pushes the button to the right-hand end of the
   top bar; on My Work the search form already did that, so the button follows
   it directly instead. */
.addtask{position:relative; margin-left:auto}
.find + .addtask{margin-left:0}
/* ---- Export CSV (7 October 2026, owner's decision): the button left of Add Task, and its box ----
   The button takes the right-hand-end push (margin-left:auto) that Add Task had, and Add Task then sits
   directly after it with the bar's normal gap. On My Work the search form already did the pushing, so
   the button follows it with no margin of its own. "~" rather than "+" because the box (a <dialog>) and
   the script tag sit between the button and Add Task in the mark-up; neither takes any room.
   The box reuses the scope box's frame (dialog.scopebox, .dlg, .dlghd, .dlgbd, .dlgft above); only the parts that
   are new are styled here, from the existing tokens, so dark mode follows them.
   7 October 2026, owner's request (choice page https://claude.ai/artifact/4C1ZaT7JiLRLgquhXvoxnR): the box is now a
   Filters panel fixed to the RIGHT edge of the window, full height, 420px wide, like Zoho's. The header, the Match
   row and the footer stay put; only the body (.dlgbd) scrolls. Filters are native <details> rows (.exf) whose closed
   line shows what is set (.exfval) and a chevron; no phone layout, the Tracker is used on laptops. */
.exportbtn{margin-left:auto}
.find + .exportbtn{margin-left:0}
.exportbtn ~ .addtask{margin-left:0}
dialog.scopebox.exportbox{max-width:420px}
dialog.scopebox.exportbox:modal{inset:0 0 0 auto; margin:0; width:420px; max-width:100vw; height:100vh; max-height:100vh}
.exportbox .dlg{height:100%; max-height:none; border-radius:0}
.exportbox .dlg form{flex:1; min-height:0}
.exportbox .dlgbd{flex:1; min-height:0}
.exportbox .dlghd .exreset{align-self:flex-start; margin-top:3px}   /* level with the x beside it (browser check, 7 October 2026: centred, it sat 14px lower) */
.exportbox .dlghd .x{background:none; border:0; cursor:pointer; padding:0 3px; font-family:inherit}
.exportbox .exfld{display:flex; flex-direction:column; gap:5px; font-size:.82rem; color:var(--ink-2)}
.exportbox .exfld .select{width:100%}
.exportbox .exsthd{display:flex; align-items:center; gap:12px; font-size:.82rem; color:var(--ink-2); margin-bottom:6px}
.exportbox .exsthd .sp{flex:1}
.exportbox .exlink{background:none; border:0; padding:0; cursor:pointer; font:inherit; font-size:.8rem; color:var(--ink-2); text-decoration:underline}
.exportbox .exrow{display:flex; align-items:center; gap:9px; padding:4px 0; font-size:.88rem; color:var(--ink); cursor:pointer}
.exportbox .exnm{flex:1}
.exportbox .exn{font-size:.82rem; color:var(--muted); font-variant-numeric:tabular-nums}
/* 7 October 2026: the browser check showed the swatches nearly invisible - .st-* sets background to the pale tint (--st-*-bg).
   Paint with the state's ink colour instead (currentColor = the .st-* ink), as the approved preview did. On Hold gets a dashed
   border in the same ink, matching its dashed pill, so it stays distinguishable. No literal colours. */
.exportbox .xsw{display:inline-block; width:11px; height:11px; border-radius:3px; border:1px solid currentColor; background:currentColor; flex:0 0 auto}
.exportbox .xsw.st-hold{background:transparent; border-style:dashed}
.exportbox .exfoot{font-size:.82rem; color:var(--muted)}
/* The filters (7 October 2026). A heading with how many are set, then groups of rows. */
.exportbox .exfhd{display:flex; align-items:center; gap:8px; font-size:.82rem; color:var(--ink-2); font-weight:600; padding-top:4px; border-top:1px solid var(--line); margin-top:2px}
.exportbox .exset{font-weight:400; font-size:.76rem; color:var(--accent-ink); background:var(--accent-soft); border-radius:var(--r-pill); padding:1px 8px}
.exportbox .exset:empty{display:none}
.exportbox .exgrp{display:flex; flex-direction:column}
.exportbox .exgt{font-size:.7rem; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); padding:4px 0 2px}
.exportbox .exf{border-bottom:1px solid var(--line)}
.exportbox .exf > summary{display:flex; align-items:center; gap:10px; padding:9px 0; cursor:pointer; list-style:none; user-select:none; font-size:.88rem; color:var(--ink)}
.exportbox .exf > summary::-webkit-details-marker{display:none}
.exportbox .exf > summary::marker{content:""}
.exportbox .exfn{flex:0 0 auto}
.exportbox .exfval{flex:1; min-width:0; text-align:right; font-size:.8rem; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.exportbox .exf.exis .exfval{color:var(--accent-ink)}
.exportbox .exf > summary::after{content:""; flex:0 0 auto; width:6px; height:6px; border-right:2px solid var(--muted); border-bottom:2px solid var(--muted); transform:rotate(45deg); margin:-3px 2px 0 0}
.exportbox .exf[open] > summary::after{transform:rotate(-135deg); margin-top:3px}
.exportbox .exf.exoff > summary{cursor:not-allowed; opacity:.55}
.exportbox .exf.exoff > summary::after{visibility:hidden}
.exportbox .exfb{padding:2px 0 12px}
.exportbox .exgrid{display:grid; grid-template-columns:1fr 1fr; gap:4px 12px}
.exportbox .exchk{display:flex; align-items:center; gap:7px; font-size:.84rem; color:var(--ink); cursor:pointer; min-width:0}
.exportbox .exchk span{overflow-wrap:anywhere}
.exportbox .exnone{font-size:.82rem; color:var(--muted); margin:0}
.exportbox .exdates{display:grid; grid-template-columns:1fr 1fr; gap:10px}
.exportbox .exdates label{display:flex; flex-direction:column; gap:4px; font-size:.78rem; color:var(--ink-2)}
.exportbox .exdates .input,.exportbox .exfb > .input{width:100%; padding:6px 8px; font-size:.84rem}
.exportbox .exdays{display:flex; align-items:center; gap:7px; flex-wrap:wrap; font-size:.84rem; color:var(--ink)}
.exportbox .exdays .input{width:70px; padding:5px 8px; font-size:.84rem}
.exportbox .expills{display:flex; flex-wrap:wrap; gap:6px}
.exportbox .expill{display:inline-flex; cursor:pointer; position:relative}   /* holds its hidden radio in place, so focusing it does not scroll the panel */
.exportbox .expill input{position:absolute; opacity:0; pointer-events:none}
.exportbox .expill span{padding:4px 12px; border:1px solid var(--line-strong); border-radius:var(--r-pill); font-size:.82rem; color:var(--ink-2); background:var(--surface)}
.exportbox .expill input:checked + span{background:var(--accent-soft); border-color:var(--accent-line); color:var(--accent-ink)}
.exportbox .expill input:focus-visible + span{outline:2px solid var(--focus); outline-offset:1px}
.exportbox .exmatch{display:flex; align-items:center; gap:8px; padding:10px 20px; border-top:1px solid var(--line); font-size:.84rem; color:var(--ink-2)}
.addtask > summary{list-style:none; cursor:pointer; user-select:none}
.addtask > summary::-webkit-details-marker{display:none}
.addtask > summary::marker{content:""}
.addtask .addpanel{position:absolute; right:0; top:calc(100% + 6px); z-index:20; width:300px; max-width:calc(100vw - 32px);
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-sm); padding:12px; box-shadow:0 6px 18px rgba(0,0,0,.12)}
.addtask .addpanel form{display:flex; flex-direction:column; gap:10px; margin:0}
.addtask .addpanel .select{width:100%}
.addtask .addpanel p{margin:0; font-size:.83rem; color:var(--ink-2)}
/* Phone width (the same 520px break the sign-in card uses): the panel is
   positioned against the screen rather than the button, so it can never hang
   off the side of a narrow screen. */
@media (max-width:520px){
  .addtask{position:static}
  .addtask .addpanel{left:16px; right:16px; width:auto; max-width:none}
}

/* ---- My Work state chips, and Home's clickable state legends, 5 October 2026 ----
   The second row of chips on My Work ("State:  All 64  In Progress 1  In Review 58
   ..."), asked for by the owner. It is the same .chip / .chip.on look as the view
   chips above it - a state is a refinement of the view, not a different kind of
   control - inside its own wrapper (.chips.states) so none of this reaches the other
   pages that use .chips. The two rows sit inside the frozen .head, so they scroll
   as one block. The first row's bottom rule is dropped when a state row follows it
   (:has), so the two read as one band with a single rule underneath. The count
   inside each chip is a <b> in the mono face the rest of the app uses for numbers.
   There is no narrow-screen rule: .chips already wraps (flex-wrap), which is all a
   phone needs; the label stays on the first line and the chips wrap under it. */
.head .chips:has(+ .chips.states){border-bottom:0; padding-bottom:7px}
.chips.states{padding-top:0; align-items:center}
.chips.states .chiplbl{font-size:.74rem; color:var(--muted); margin-right:2px; flex:none}
.chips.states .chip b{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-weight:500; font-size:.72rem; margin-left:4px}
/* Home: a legend entry that is a link (the developer's, the Team Lead's and the
   Manager's state figures now open My Work on that state). The plain .leg span
   lays out as an inline flex row with a gap; the link does the same, and has no
   underline until hovered, as the donut legend's links (.hdleg a) have none. */
.leg a{display:inline-flex; align-items:center; gap:6px; color:inherit; text-decoration:none}
.leg a:hover{text-decoration:underline; text-underline-offset:2px}

/* ---- The picture viewer and the file tray, 6 October 2026 ----
   A user suggestion, approved by the owner the same day. Two new scripts use these rules; both are
   optional (nothing depends on them) and neither is loaded by a layout, only by the staff task page
   and the portal task page.
     lightbox.js  opens a picture link marked data-view="picture" in a full-screen <dialog class="viewer">
                  instead of a new tab (and a composer chip the same way).
     attach.js    keeps every file picked, pasted or dropped in a comment box and shows them as chips in
                  a [data-attach-tray] under the Attach file button, with a total and a refusal note.
   Everything below is new; no existing rule above was changed. The viewer and the tray use only the
   tokens at the top of this file, so the tray follows light and dark like the rest of the page. */

/* The viewer is dark in BOTH themes on purpose: a picture reads best against near-black, and a
   screenshot of a white page would otherwise sit in a white frame with no edge. So its colours are
   fixed values, not tokens. The dialog fills the screen, so "a click on the dark area" is a click
   whose target is the dialog itself or the empty stage. */
dialog.viewer{border:0; padding:0; margin:0; width:100vw; height:100vh; height:100dvh; max-width:none; max-height:none;
  background:rgba(8,10,13,.95); color:#FFFFFF}
dialog.viewer[open]{display:flex; flex-direction:column; animation:vfade .14s ease-out}
dialog.viewer::backdrop{background:rgba(8,10,13,.95)}
dialog.viewer [hidden]{display:none!important}
@keyframes vfade{from{opacity:0} to{opacity:1}}
dialog.viewer .vtop{display:flex; align-items:center; gap:8px 10px; padding:10px 14px; flex-wrap:wrap; flex:none}
dialog.viewer .vname{font-weight:600; font-size:.92rem; min-width:0; flex:1 1 160px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
dialog.viewer .vcount{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.8rem; color:#B4BAC4; flex:none}
dialog.viewer .vbtn{display:inline-block; font:inherit; font-size:.82rem; text-decoration:none; background:rgba(255,255,255,.12); color:#FFFFFF;
  border:1px solid rgba(255,255,255,.3); border-radius:8px; padding:7px 12px; cursor:pointer; white-space:nowrap}
dialog.viewer .vbtn:hover{background:rgba(255,255,255,.22)}
dialog.viewer .vbtn.x{font-size:1.25rem; line-height:1; padding:4px 12px}
dialog.viewer :focus-visible{outline:2px solid #F6B27A; outline-offset:2px}
dialog.viewer .vstage{position:relative; flex:1; min-height:0; display:flex; align-items:center; justify-content:center; touch-action:pan-y}
dialog.viewer .vimg{display:block; width:auto; height:auto; max-width:92vw; max-height:min(82vh, calc(100dvh - 110px)); object-fit:contain;
  border-radius:4px; box-shadow:0 10px 40px rgba(0,0,0,.6)}
dialog.viewer .verr{display:flex; flex-direction:column; align-items:center; gap:14px; max-width:80vw; text-align:center; padding:28px 32px;
  border:1px dashed rgba(255,255,255,.4); border-radius:12px; color:#E8EAEE}
dialog.viewer .vnav{position:absolute; top:50%; transform:translateY(-50%); width:46px; height:46px; border-radius:50%; border:1px solid rgba(255,255,255,.3);
  background:rgba(20,22,26,.65); color:#FFFFFF; font-size:1.5rem; line-height:1; cursor:pointer; display:grid; place-items:center; z-index:2}
dialog.viewer .vnav:hover{background:rgba(255,255,255,.25)}
dialog.viewer .vnav.prev{left:12px}
dialog.viewer .vnav.next{right:12px}
/* Whoever asked the system for less motion gets no fade. */
@media (prefers-reduced-motion: reduce){
  dialog.viewer[open]{animation:none}
}
/* Phone: a smaller arrow tucked to the edge so it does not sit on the picture; swiping steps as well. */
@media (max-width:520px){
  dialog.viewer .vtop{padding:8px 10px}
  dialog.viewer .vnav{width:38px; height:38px; font-size:1.25rem}
  dialog.viewer .vnav.prev{left:6px}
  dialog.viewer .vnav.next{right:6px}
  dialog.viewer .vimg{max-width:100vw}
}

/* The tray: one chip per attached file, a total, and a note. It sits at the end of the composer's
   bar (the staff .bar, the portal .pcbar) on a line of its own (flex-basis 100%), under a dashed
   rule. The `hidden` attribute hides it until there is something to show. */
.attachtray{flex:1 1 100%; order:9; display:flex; flex-direction:column; gap:7px; min-width:0; padding-top:8px; border-top:1px dashed var(--line)}
.attachtray[hidden]{display:none}
.attachtray .achips{display:flex; gap:7px; flex-wrap:wrap; min-width:0}
.attachtray .achip{display:inline-flex; align-items:stretch; max-width:100%; min-width:0; border:1px solid var(--line-strong); border-radius:var(--r-sm); background:var(--surface); overflow:hidden}
.attachtray .achip-main{display:inline-flex; align-items:center; gap:7px; min-width:0; padding:3px 8px 3px 3px; font:inherit; font-size:.79rem; color:var(--ink-2); background:none; border:0}
.attachtray span.achip-main{padding-left:8px}
.attachtray button.achip-open{cursor:pointer}
.attachtray button.achip-open:hover .achip-nm{text-decoration:underline}
.attachtray .achip-th{width:30px; height:30px; object-fit:cover; border-radius:4px; border:1px solid var(--line); flex:none; background:var(--sunk)}
.attachtray .achip-ic{flex:none; color:var(--muted)}
.attachtray .achip-nm{overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; max-width:24ch}
.attachtray .achip-sz{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:.71rem; color:var(--muted); flex:none}
.attachtray .achip-x{border:0; border-left:1px solid var(--line); background:var(--surface-2); color:var(--muted); font-size:1.05rem; line-height:1; padding:0 9px; cursor:pointer}
.attachtray .achip-x:hover{color:var(--bad); background:var(--bad-bg)}
.attachtray .atotal{font-size:.78rem; color:var(--ink-2); font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace}
.attachtray .atotal[hidden], .attachtray .anote[hidden]{display:none}
.attachtray .atotal.over{color:var(--bad); background:var(--bad-bg); border:1px solid var(--bad-line); border-radius:var(--r-sm); padding:4px 9px; font-family:inherit; font-weight:600}
.attachtray .anote{font-size:.78rem; color:var(--bad)}
/* Picture preview cards (8 October 2026, owner request): before a post, a picture in the tray shows
   as a 140px card, picture on top, name and size under it. Documents keep the one-line chip.
   Posted comments use .cmfile / .pfile, which these rules do not touch. */
.attachtray .achips{align-items:flex-start}
.attachtray .achip.achip-pic{position:relative; width:140px}
.attachtray .achip-pic .achip-main{flex-wrap:wrap; width:100%; padding:4px; gap:3px 6px}
.attachtray .achip-pic .achip-th{flex:1 1 100%; width:100%; height:90px; object-fit:contain}
.attachtray .achip-pic .achip-nm{flex:1 1 0; max-width:none}
.attachtray .achip.achip-pic .achip-x{position:absolute; top:6px; right:6px; width:22px; height:22px; padding:0; border:0; border-radius:50%; background:rgba(0,0,0,.55); color:#fff; font-size:.95rem}
.attachtray .achip.achip-pic .achip-x:hover{background:var(--bad); color:#fff}
/* The dashed "Drop files to attach" outline while files are dragged over the form (attach.js adds
   .attachzone to the form and toggles .dropping). It sits over the form and lets the drop through. */
.attachzone{position:relative}
.attachzone.dropping::after{content:"Drop files to attach"; position:absolute; inset:0; z-index:3; display:grid; place-items:center; pointer-events:none;
  font-weight:600; font-size:.95rem; color:var(--accent-ink); background:color-mix(in srgb, var(--accent-soft) 88%, transparent);
  border:2px dashed var(--accent); border-radius:inherit}
/* Portal: small grey text uses --p-quiet (see the portal note above); the rest of the chip is the same. */
body.portal .attachtray{border-top-color:var(--line-strong)}
body.portal .attachtray .achip{border-radius:9px; background:var(--surface)}
body.portal .attachtray .achip-ic, body.portal .attachtray .achip-sz{color:var(--p-quiet)}
body.portal .attachtray .achip-x{color:var(--p-quiet)}
body.portal .attachtray .atotal{color:var(--ink-2)}
body.portal .attachzone.dropping::after{border-radius:12px}
@media (max-width:520px){
  .attachtray .achip-nm{max-width:16ch}
}

/* ---- My Work: paging, board and the Search button, 6 October 2026 ----
   Owner's decision (preview page Parts B, C, D; layout "C" on the paging_choice page). Everything is
   new; no rule above was changed. Only existing tokens are used, so it follows light and dark.
   .pgline   the compact line in the frozen head: Showing 11-20 of 153 . < 2 of 16 > . Per page [10]
   .pgbar    the page numbers under the list; at 480px or narrower .pgfull gives way to .pgmini (<< < 2 / 16 > >>)
   .pgb      one page button: a link, the current page (.cur, aria-current) or a disabled non-link (aria-disabled)
   .layoutpick the List | Board chips at the right end of the view chips
   .mwboard  the project board's .board inside My Work's body: no padding of its own, and it scrolls
             sideways inside the body, never the whole page
   .find-go  the Search button next to the search box (the site's .btn, made inline-sized)
   .pmatches the "Projects matching ..." links on a search page */
.pgline{display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:5px 22px 8px; font-size:.78rem; color:var(--ink-2); background:var(--chrome)}
.pgline .sep{color:var(--line-strong)}
.pgline .perpage{margin:0}
.pgline .perpage label{display:inline-flex; align-items:center; gap:6px}
/* 10 October 2026 (owner's decision, Closed date filter): the When dropdown beside Per page lays out the
   same way; the date boxes reuse .pgsel; .pggo is the compact Go button (the site's .btn, inline-sized). */
.pgline .when{margin:0; display:inline-flex; align-items:center; gap:6px; flex-wrap:wrap}
.pgline .when label{display:inline-flex; align-items:center; gap:6px}
.pgline .pggo{display:inline-block; width:auto; margin:0; padding:2px 12px; font-size:.78rem; border-radius:var(--r-sm)}
.pgsel{border:1px solid var(--line); border-radius:var(--r-sm); background:var(--surface-2); color:var(--ink-2); font:inherit; padding:2px 6px}
.pgnav{display:flex; align-items:center; gap:4px; flex-wrap:wrap}
.pgbar{display:flex; justify-content:center; padding-top:4px; font-size:.78rem; color:var(--ink-2)}
.pgb{min-width:26px; text-align:center; padding:2px 9px; border-radius:20px; border:1px solid var(--line-strong); background:var(--surface); color:var(--ink-2); text-decoration:none; font-size:.78rem}
a.pgb:hover{border-color:var(--accent-line)}
.pgb.cur{background:var(--accent); color:var(--action-ink); border-color:var(--accent); font-weight:600}
.pgb[aria-disabled="true"]{opacity:.4; cursor:not-allowed}
.pgbar .gap{padding:0 2px; color:var(--muted)}
.pgmini{display:none}
@media (max-width:480px){ .pgfull{display:none} .pgmini{display:flex} }
.layoutpick{margin-left:auto; display:flex; gap:6px}
.mwboard{padding:0 0 8px; min-width:0}
.cardt .ct-proj{font-size:.74rem; color:var(--ink-2)}
.find .find-go{display:inline-block; width:auto; margin:0; padding:5px 14px; font-size:.82rem; border-radius:var(--r-sm)}
.pmatches{display:flex; flex-wrap:wrap; gap:8px}
.pmatch{padding:5px 12px; border:1px solid var(--line); border-radius:var(--r-sm); background:var(--surface); color:var(--ink-2); text-decoration:none; font-size:.86rem}
.pmatch:hover{border-color:var(--accent-line)}

/* ---- 10 October 2026 (owner's decision, hold approval): the screens for a developer's hold request ----
   Only what the existing classes cannot do; every colour is an existing token, so light and dark both follow.
   The task page's panel reuses .banner (+ .quote, .fld, .ta, .msg, .btn.pbtn); My Work's tab reuses .rows / .row
   with its own five columns; the Home band is the .hret band and needs nothing here. */

/* The panel inside .banner: the request, the quoted reason, then the comment box and the buttons, stacked. */
.banner .holdpane{display:flex; flex-direction:column; gap:10px; min-width:0; flex:1}
.banner .holdpane b{color:var(--ink); font-weight:600}
.banner .quote{background:var(--surface)}
.banner .msg{margin:0}
.holdbtns{display:flex; gap:8px; flex-wrap:wrap; margin:0}

/* The "Holds to approve" tab: State, ID, Task (with the quoted reason), Asked by, Waiting. */
.rows.holds .rowhd,.rows.holds .row{grid-template-columns:104px 76px minmax(0,1fr) 220px 84px}
.holdtt{min-width:0; display:flex; flex-direction:column; gap:3px}
.holdwhy{font-size:.79rem; color:var(--ink-2); line-height:1.45}
.holdwho{display:flex; flex-direction:column; gap:2px; min-width:0; font-size:.82rem; color:var(--ink-2)}
.holdsub{font-size:.74rem; color:var(--muted); line-height:1.35}

/* The decision line under a row: a sibling of the row (a form cannot sit inside the row's link), full width,
   joined to the row above it like the .nudge line is. */
.holddecide{display:flex; gap:8px; align-items:center; padding:0 14px 11px; border-bottom:1px solid var(--line); background:var(--surface)}
.holddecide .input{flex:1; min-width:0; padding:7px 10px; font-size:.83rem}
.row:has(+ .holddecide){border-bottom:0}

/* A number after a view chip's label (Holds to approve), in the mono face the State chips' counts use. */
.chip .ct{font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-weight:500; font-size:.72rem; margin-left:5px}

/* 12 October 2026 (owner's decision, column sorting 1A 2A 3A, choice page DAbqEKKs5kH8CT6pCn4sRV): clickable column names.
   wwwroot/js/sortcols.js moves the text of a sortable header cell into <button class="sb"> inside the cell, so the cell keeps
   its own styling and grid slot (the button inherits the header's font, case, spacing and colour) and with no JS the label is
   plain text as before. The arrow is hidden until hover/focus, then shows the direction while the column is the active sort.
   The arrow is taken out of the layout (absolute, just after the label) so a header looks and aligns exactly as it did before
   anything is sorted - including the right-aligned number columns. */
.sb{appearance:none; background:none; border:0; padding:0; margin:0; font:inherit; letter-spacing:inherit; text-transform:inherit; color:inherit; text-align:inherit; cursor:pointer; position:relative; display:inline-flex; align-items:center; white-space:nowrap; border-radius:4px}
.sb:hover{color:var(--ink)}
.sb:focus-visible{outline:2px solid var(--focus); outline-offset:2px}
.sb::after{content:"\2195"; position:absolute; left:100%; margin-left:4px; font-size:.9em; letter-spacing:0; opacity:0}
.sb:hover::after,.sb:focus-visible::after{opacity:.55}
.sb[data-dir="asc"]::after{content:"\25B2"; opacity:1}
.sb[data-dir="desc"]::after{content:"\25BC"; opacity:1}
.sb[aria-pressed="true"]{color:var(--accent-ink)}
