/* The portal's one stylesheet: tokens, layout, components.
   Served by the application from /static/portal.css — no CDN, no external font, no
   build step. The offline viewer inlines the same tokens rather than linking this,
   because it has to render with no server at all (design §5). */

:root{
  /* --- ink and ground ---------------------------------------------------- */
  --ink:#16232B;
  --muted:#5C6B73;
  --surface:#FFFFFF;
  --ground:#F5F7F6;
  --rule:#C9D2D6;
  --rule-soft:#E3E9EA;

  /* --- status: a colour per word, and the word is never printed without it - */
  --green:#2E7D4F;   --green-bg:#EAF3EE;
  --amber:#C77800;   --amber-bg:#FCF3E4;
  --red:#B3261E;     --red-bg:#FBEDEC;
  --blue:#2B5FA5;    --blue-bg:#EBF0F8;

  /* --- bands S/M/L/XL: one four-step blue scale, light to dark ------------ */
  --band-s:#BFD3EC;
  --band-m:#8CB0DC;
  --band-l:#5487C4;
  --band-xl:#2B5FA5;

  /* --- type: system stacks only ------------------------------------------- */
  --sans:ui-sans-serif,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --serif:ui-serif,Georgia,"Times New Roman",Times,serif;
  --mono:ui-monospace,"SF Mono","Cascadia Mono",Menlo,Consolas,monospace;

  /* --- kept for the screens the scanner's own palette still dresses ------- */
  --cut:var(--red);      --cut-bg:var(--red-bg);
  --keep:var(--green);   --keep-bg:var(--green-bg);
  --cloud:var(--blue);   --cloud-bg:var(--blue-bg);
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--ground);color:var(--ink);font-family:var(--sans);
  font-size:15px;line-height:1.55;-webkit-font-smoothing:antialiased;overflow-x:hidden}
.wrap{max-width:1600px;margin:0 auto;padding:0 24px 80px}

/* ------------------------------------------------------------ the masthead */

/* One row of about 40 px: the product's name and the person's role words on one line, their menu at the right. */
.mast{display:flex;align-items:center;justify-content:space-between;gap:4px 24px;
  padding:5px 0 4px;border-bottom:1px solid var(--rule);flex-wrap:wrap}
.mast>div:first-child{display:flex;align-items:baseline;flex-wrap:wrap;gap:0 14px}
.mast h1{margin:0;font-size:19px;line-height:1.3;font-weight:650;letter-spacing:-.01em}
.mast h1 a{color:inherit;text-decoration:none}
.mast .sub{font-size:13.5px;color:var(--muted)}
.mastside{display:flex;align-items:center;gap:10px;flex-wrap:wrap}

/* The person's own menu, top right: who you are, view as, sign out. A details
   element rather than a script, because a menu is a disclosure. */
.me{position:relative}
.me>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:8px;
  border:1px solid var(--rule);background:var(--surface);padding:3px 12px;border-radius:3px;
  font-size:13.5px}
.me>summary::-webkit-details-marker{display:none}
.me>summary::after{content:"\25BE";color:var(--muted);font-size:11px}
.me[open]>summary{border-color:var(--ink)}
.mecard{position:absolute;right:0;top:calc(100% + 6px);z-index:40;min-width:320px;max-width:min(92vw,460px);
  background:var(--surface);border:1px solid var(--ink);border-radius:3px;padding:14px 16px;
  box-shadow:0 8px 24px rgba(22,35,43,.14)}
.mecard h5{margin:0 0 6px;font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);
  font-weight:600}
.mecard h5+h5{margin-top:16px}
.mecard ul{list-style:none;margin:0;padding:0;max-height:44vh;overflow:auto}
.mecard li{margin:0 0 4px}
.mecard button.asrole{font:inherit;font-size:13.5px;text-align:left;width:100%;background:none;
  border:0;border-radius:3px;padding:5px 8px;cursor:pointer;color:var(--ink)}
.mecard button.asrole:hover{background:var(--ground)}
.mecard .who{font-size:13.5px;margin:0 0 4px}
.mecard .whokind{font-size:12.5px;color:var(--muted);margin:0}

/* --------------------------------------------------- the view-as banner */

.viewing{display:flex;align-items:center;justify-content:space-between;gap:10px 18px;flex-wrap:wrap;
  background:var(--amber-bg);border:1px solid var(--amber);border-left-width:4px;
  padding:9px 14px;margin:14px 0 0}
.viewing p{margin:0;font-size:14px;font-weight:600;color:#7A4A00}
.viewing form{margin:0}

/* ------------------------------------------------------------ rail + stage */

.grid{display:grid;grid-template-columns:232px 1fr;gap:0;align-items:start}
.rail{border-right:1px solid var(--rule);padding:22px 20px 22px 0;position:sticky;top:0}
.railhead{font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);
  font-weight:600;margin:0 0 8px}
.railhead+.railhead{margin-top:20px}
.steps{list-style:none;margin:0 0 4px;padding:0}
.steps a{display:block;text-decoration:none;font-size:13.5px;color:var(--muted);
  padding:6px 10px;border-left:2px solid transparent;border-radius:0 3px 3px 0}
.steps a:hover{color:var(--ink);background:#EDF1F0}
.steps a.here{color:var(--ink);font-weight:600;border-left-color:var(--ink);background:#E8EDEC}

.stage{padding-left:28px;min-width:0}
.onlystage{max-width:74ch;margin:0 auto}
.onlystage .stage{padding-left:0}

.stagehead{margin:22px 0 16px}
.stagehead .idx{font-size:12px;color:var(--muted);letter-spacing:.04em}
.stagehead h2{margin:4px 0 0;font-size:26px;font-weight:640;line-height:1.16;letter-spacing:-.018em}
.stagehead p{margin:8px 0 0;font-size:14.5px;color:var(--muted);max-width:72ch}
.stage>p{max-width:72ch}
h3{font-size:15px;font-weight:640;margin:26px 0 8px}
.muted{color:var(--muted)}
[hidden]{display:none !important}

/* ------------------------------------------------------------ breadcrumbs */

.crumbrow{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:8px 20px}
.mast.merged .switchers{flex:0 0 auto;display:flex;gap:6px;align-items:center}
.mast.merged .enghead.compact .parties{display:none}
.mast.merged .enghead.compact .stagebar{flex-wrap:nowrap}
.mast.merged .enghead.compact .nextact.waits{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12.5px}
.mast.merged .switcher div{display:flex}
.mast.merged .switcher label{display:none}
.mast.merged .switcher select,.mast.merged .switcher input{max-width:26ch;padding:2px 6px;font-size:12.5px;height:28px}
.mast.merged .switcher .act.sm{padding:2px 10px;font-size:12.5px;height:26px}
@media (max-width:700px){.mast.merged .switchers{order:4;max-width:100%}
  .mast.merged .switcher select{min-width:0;max-width:calc(100vw - 120px)}}

.crumbs{margin:10px 0 0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:0 6px;
  font-size:12.5px;color:var(--muted)}
.crumbs li+li::before{content:"/";margin-right:6px;color:var(--rule)}
.crumbs a{color:var(--muted)}
.crumbs li:last-child{color:var(--ink)}

/* ------------------------------------------------------- the way back up */

/* One link, top left, under the breadcrumbs. Deliberately a link and not a button: a
   button at the top of a page reads as something that acts on the page (UI review G8). */
.backup{margin:10px 0 0;font-size:13.5px}
.backup a{color:var(--muted);text-decoration:none}
.backup a:hover{color:var(--ink);text-decoration:underline}

/* ------------------------------------------- two presentations of one thing */

/* A segmented control, at the right of a heading, for *the same set shown differently*
   — cards or a table. Not two buttons, because neither one is an action. */
.headrow{display:flex;align-items:flex-end;justify-content:space-between;gap:12px 20px;flex-wrap:wrap}
.segmented{display:inline-flex;border:1px solid var(--rule);border-radius:999px;overflow:hidden;
  background:var(--surface)}
.segmented a{font-size:12.5px;padding:4px 14px;text-decoration:none;color:var(--muted);
  border-right:1px solid var(--rule)}
.segmented a:last-child{border-right:0}
.segmented a:hover{background:var(--ground);color:var(--ink)}
.segmented a.here{background:var(--ink);color:#fff}

/* ---------------------------------------------- the engagement header */

.enghead{margin:16px 0 0}
.enghead .line{display:flex;align-items:baseline;gap:6px 12px;flex-wrap:wrap}
.enghead .line.two{align-items:center;margin:8px 0 0}
.enghead h2{margin:0;font-size:22px;font-weight:640;letter-spacing:-.015em}
.enghead .facts{margin:0;font-size:13.5px;color:var(--muted)}
.enghead .nextact{margin:0 0 0 auto}
.enghead .nextact.waits{font-size:13.5px;color:var(--muted)}
.stagebar{list-style:none;display:flex;flex-wrap:wrap;gap:4px;margin:0;padding:0}
.stagebar li{font-size:12.5px;border:1px solid var(--rule);border-radius:999px;background:var(--ground)}
.stagebar li a,.stagebar li span{display:block;padding:3px 11px;text-decoration:none;color:inherit}
.stagebar li.done{color:var(--green);border-color:var(--green);background:var(--green-bg)}
.stagebar li.now{color:var(--ink);border-color:var(--ink);background:var(--surface);font-weight:650}
.stagebar li.later{color:var(--muted);opacity:.6}

/* The engagement switcher: a plain form with a select and a button, so it works
   with no script at all, plus a search box once the list is long. */
.switcher{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap;margin:0}
.switcher label{font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);
  font-weight:600;display:block;margin:0 0 3px}
.switcher select{max-width:min(46ch,70vw)}

/* --------------------------------------------------------- the stage stepper */

.stepper{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin:14px 0 0;padding:0}
.stepper li{display:flex;align-items:center;gap:7px;font-size:12.5px;color:var(--muted);
  border:1px solid var(--rule);background:var(--ground);border-radius:999px;padding:4px 12px}
.stepper li .dot{width:8px;height:8px;border-radius:50%;background:var(--rule);flex:0 0 auto}
.stepper li.done{color:var(--green);border-color:var(--green);background:var(--green-bg)}
.stepper li.done .dot{background:var(--green)}
.stepper li.now{color:var(--ink);border-color:var(--ink);background:var(--surface);font-weight:650}
.stepper li.now .dot{background:var(--blue)}

/* -------------------------------------------------------------------- tabs */

.tabs{display:flex;flex-wrap:wrap;gap:2px;margin:18px 0 0;padding:0 0 0;list-style:none;
  border-bottom:1px solid var(--rule)}
.tabs a{display:block;text-decoration:none;color:var(--muted);font-size:14px;padding:8px 14px;
  border:1px solid transparent;border-bottom:0;border-radius:3px 3px 0 0;margin-bottom:-1px}
.tabs a:hover{color:var(--ink);background:#EDF1F0}
.tabs a.here{color:var(--ink);font-weight:650;background:var(--surface);
  border-color:var(--rule);border-bottom:1px solid var(--surface)}
.tabs li.current a::after{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;
  background:var(--blue);margin:0 0 2px 6px}
.card dl{display:grid;grid-template-columns:auto 1fr;gap:4px 14px;margin:8px 0 0;font-size:13.5px}
.card dl dt.now,.card dl dd.now{font-weight:650}
.card table{margin:8px 0 0;font-size:13.5px}
.waiting-download{margin:12px 0;font-weight:600}
.tabs li.inert span{display:block;color:var(--muted);opacity:.5;font-size:14px;padding:8px 14px;cursor:default}
.tabs.compact li.inert span{padding:2px 12px;font-size:13px;line-height:1.4}

/* ------------------------------------------------------ next action, notes */

.nextup{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;background:var(--surface);
  border:1px solid var(--ink);border-left-width:4px;padding:12px 16px;margin:18px 0}
.nextup p{margin:0;font-size:15px;font-weight:600}

.note{border-left:3px solid var(--ink);padding:2px 0 2px 14px;margin:18px 0;max-width:72ch}
.note p{margin:0 0 8px}
.note p:last-child{margin-bottom:0}
.note.warn{border-left-color:var(--amber)}
.note.keepn{border-left-color:var(--green)}
.note.stop{border-left-color:var(--red)}

/* ------------------------------------------------------------------- cards */

.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:14px;margin:18px 0}
.card{background:var(--surface);border:1px solid var(--rule);border-radius:3px;padding:16px 18px;
  display:flex;flex-direction:column;gap:8px}
.card h4{margin:0;font-size:16px;font-weight:640}
.card h4 a{color:inherit;text-decoration:none}
.card h4 a:hover{text-decoration:underline}
.card .facts{margin:0;font-size:13.5px;color:var(--muted)}
.card .next{margin:0;font-size:13.5px}
.card .foot{margin:auto 0 0;font-size:12.5px;color:var(--muted);border:0;padding:0}

.control{border:1px solid var(--rule);background:var(--surface);border-radius:3px;
  padding:15px 17px;margin:18px 0}
.control h4{margin:0 0 4px;font-size:15px;font-weight:640}
.control>p{margin:0 0 12px;color:var(--muted);font-size:13.5px;max-width:72ch}
.row{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}

/* A verdict as a coloured card, per §5. */
.verdict{border:1px solid var(--rule);border-left-width:5px;border-radius:3px;background:var(--surface);
  padding:14px 16px;margin:18px 0}
.verdict h4{margin:0 0 4px;font-size:16px;font-weight:650}
.verdict p{margin:0;font-size:14px}
.verdict.good{border-left-color:var(--green);background:var(--green-bg)}
.verdict.wait{border-left-color:var(--amber);background:var(--amber-bg)}
.verdict.bad{border-left-color:var(--red);background:var(--red-bg)}

/* A publication under way, or the one that stopped, as one row inside its card: what it is doing, a slim bar, how far. */
.verdict.publication-job{padding:9px 14px;margin:12px 0}
.jobrow{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;min-width:0}
.jobrow h4{margin:0;font-size:14px;font-weight:650;white-space:nowrap}
.publication-job .stage{padding-left:0;font-size:13.5px;color:var(--muted);min-width:0}
.publication-job .why{font-size:13.5px;min-width:0;overflow-wrap:anywhere}
.publication-job progress{flex:1 1 160px;min-width:120px;max-width:420px;height:6px;border:0;border-radius:999px;
  background:rgba(22,35,43,.12);overflow:hidden;-webkit-appearance:none;appearance:none}
.publication-job progress::-webkit-progress-bar{background:rgba(22,35,43,.12);border-radius:999px}
.publication-job progress::-webkit-progress-value{background:var(--amber);border-radius:999px;transition:width .4s}
.publication-job progress::-moz-progress-bar{background:var(--amber);border-radius:999px}
.publication-job .percent{font-size:13px;font-weight:650;font-variant-numeric:tabular-nums;min-width:4ch;text-align:right}
.verdict.publication-job>p{margin:3px 0 0;font-size:12.5px}

/* A secondary action: its button, and its one-line note beside it. */
form.sideact{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;margin:12px 0}
form.sideact .muted{flex:1 1 40ch;min-width:0;font-size:13px;line-height:1.45}

/* --------------------------------------------------------------- the three numbers */

.figures{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:18px 0}
.figure{background:var(--surface);border:1px solid var(--rule);border-radius:3px;padding:14px 16px}
.figure .n{display:block;font-size:28px;font-weight:650;letter-spacing:-.02em;
  font-variant-numeric:tabular-nums;line-height:1.1}
.figure .what{display:block;font-size:12.5px;color:var(--muted);margin-top:4px}

/* ------------------------------------------------------------------ buttons */

button.act,a.act{font:inherit;font-size:13.5px;padding:7px 15px;border:1px solid var(--ink);
  background:var(--ink);color:#fff;cursor:pointer;border-radius:3px;text-decoration:none;
  display:inline-block;line-height:1.5}
button.act.ghost,a.act.ghost{background:transparent;color:var(--ink)}
button.act.sm,a.act.sm{padding:5px 12px;font-size:12.5px}
button.act:hover,a.act:hover{opacity:.86}
button.act:focus-visible,a.act:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
a.plain{color:var(--ink)}

/* ------------------------------------------------------------------- forms */

input[type=text],input[type=email],input[type=number],input[type=search],input[type=date],
select,textarea{font:inherit;font-size:13.5px;padding:6px 9px;border:1px solid var(--rule);
  border-radius:3px;background:var(--surface);color:var(--ink);min-width:0}
input.wide,textarea.wide{width:100%;max-width:52ch}
.unit-mapping h5{margin:14px 0 6px}
.unit-mapping p.counts{margin:2px 0}
.unit-mapping table.mapping-units{margin:10px 0;table-layout:fixed}
.unit-mapping .mapping-units td:first-child,.unit-mapping .mapping-units th:first-child{width:38%}
.unit-mapping .mapping-units td:nth-child(2),.unit-mapping .mapping-units th:nth-child(2){width:9%}
.unit-mapping .mapping-units input[type=text]{width:100%;max-width:36ch}
.unit-mapping summary{cursor:pointer;margin:6px 0}
textarea{line-height:1.5}
label.field{display:block;font-size:11.5px;letter-spacing:.04em;text-transform:uppercase;
  color:var(--muted);font-weight:600;margin:10px 0 4px}
fieldset.choice{border:1px solid var(--rule);border-radius:3px;padding:10px 14px;margin:0 0 12px}
fieldset.choice legend{font-size:11.5px;color:var(--muted);padding:0 6px}

/* -------------------------------------------------------------------- tables */

table{border-collapse:collapse;width:100%;margin:16px 0;background:var(--surface);
  border:1px solid var(--rule);border-radius:3px;font-size:13.5px}
th,td{text-align:left;padding:8px 12px;border-bottom:1px solid var(--rule-soft);vertical-align:top}
th{font-size:11.5px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);font-weight:600;
  border-bottom:1px solid var(--rule);white-space:nowrap}
tr:last-child td{border-bottom:0}
td.m,th.m{font-family:var(--mono);font-size:12px;overflow-wrap:anywhere}
pre.command{font-family:var(--mono);font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;
  border:1px solid var(--rule);padding:10px 12px;margin:8px 0}
td.num,th.num{text-align:right;font-variant-numeric:tabular-nums}
td.ver{white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--muted);font-size:12.5px}
th.num{text-transform:uppercase}

/* ---------------------------------------------------------- pills and tags */

/* A status word always sits inside its own colour. "Amber" is never printed
   without an amber pill (design §5). */
.pill{display:inline-block;font-size:11.5px;font-weight:600;letter-spacing:.02em;
  padding:2px 9px;border-radius:999px;border:1px solid var(--rule);white-space:nowrap}
.pill.green{color:#1D5C39;border-color:var(--green);background:var(--green-bg)}
.pill.amber{color:#7A4A00;border-color:var(--amber);background:var(--amber-bg)}
.pill.red{color:#8C1D17;border-color:var(--red);background:var(--red-bg)}
.pill.blue{color:#1F477C;border-color:var(--blue);background:var(--blue-bg)}
.pill.grey{color:var(--muted)}

.band{display:inline-block;font-size:11.5px;font-weight:600;padding:2px 9px;border-radius:999px;
  border:1px solid transparent;color:#0F2237}
.band.s{background:var(--band-s)}
.band.m{background:var(--band-m)}
.band.l{background:var(--band-l);color:#fff}
.band.xl{background:var(--band-xl);color:#fff}

.tag{font-family:var(--mono);font-size:11px;padding:1px 6px;border:1px solid var(--rule);
  border-radius:3px;white-space:nowrap;display:inline-block}
.tag.cloud{color:var(--blue);border-color:var(--blue);background:var(--blue-bg)}
.tag.keep{color:var(--green);border-color:var(--green);background:var(--green-bg)}
.tag.cut{color:var(--red);border-color:var(--red);background:var(--red-bg)}

/* --------------------------------------- Details: where every identifier lives */

details.detail{margin:12px 0;border:1px solid var(--rule-soft);border-radius:3px;
  background:var(--surface);padding:0}
details.detail>summary{cursor:pointer;font-size:12.5px;color:var(--muted);padding:8px 12px}
details.detail[open]>summary{border-bottom:1px solid var(--rule-soft)}
details.detail>.inner{padding:2px 12px 10px}
details.detail table{margin:10px 0;border:0}
details.detail dl{margin:8px 0;display:grid;grid-template-columns:auto 1fr;gap:4px 14px;font-size:12.5px}
details.detail dt{color:var(--muted)}
details.detail dd{margin:0;font-family:var(--mono);overflow-wrap:anywhere}

.onceonly{font-family:var(--mono);font-size:12.5px;border:1px solid var(--red);
  background:var(--red-bg);border-radius:3px;padding:10px 12px;margin:12px 0;overflow-wrap:anywhere}

/* ----------------------------------------------------------- the refusal page */

.boundary{border:1px solid var(--red);border-left-width:5px;background:var(--red-bg);
  border-radius:3px;padding:20px 22px}
.boundary h4{margin:0 0 8px;font-size:15px;font-weight:650}
.boundary ul{margin:0;padding-left:20px}
.boundary li{margin:0 0 7px}
.boundary li:last-child{margin-bottom:0}
.boundary p{margin:0 0 12px}
.boundary p:last-child{margin-bottom:0}
.boundary .what{font-weight:650}

/* ------------------------------------------------------------------ footer */

.foot{margin:40px 0 0;padding-top:12px;border-top:1px solid var(--rule-soft);
  font-size:11.5px;color:var(--muted);overflow-wrap:anywhere}

/* An example of what to type, and unmistakably not an answer. */
::placeholder{color:#AEB9BF;opacity:1;font-style:italic}

/* ------------------------------------------------------------------ narrow */

@media (max-width:1200px){.grid{grid-template-columns:196px 1fr}.stage{padding-left:20px}}
@media (max-width:900px){
  .grid{grid-template-columns:minmax(0,1fr)}
  .rail{position:static;border-right:0;border-bottom:1px solid var(--rule);padding:14px 0}
  .stage{padding-left:0}
  .steps{display:flex;flex-wrap:wrap;gap:2px}
  .mecard{position:static;min-width:0;box-shadow:none;margin-top:8px}
}

/* ------------------------------------------------------------------ the form as a wizard */

.wizard .progress{flex-wrap:nowrap}
.wizard .progress p{white-space:nowrap}
.wizard progress{flex:1 1 auto;height:8px;accent-color:var(--ink)}
.wizard section.step,.wizard section>.step{animation:slide-in .28s ease-out}
@keyframes slide-in{from{opacity:0;transform:translateX(24px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.wizard section>.step{animation:none}}
.wizard-nav{display:flex;gap:12px;align-items:center;margin:14px 0 0}
.wizard .given-line{display:flex;gap:16px;align-items:baseline;justify-content:space-between}
.wizard .given-line p{margin:0}
.wizard .given{color:var(--muted);margin-left:8px}
.wizard .control.line{padding-top:8px;padding-bottom:8px;border-bottom:1px solid var(--rule-soft)}
.typeahead{position:relative;max-width:46ch}
.typeahead .chosen{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin:0 0 6px;padding:0}
.typeahead .chosen:empty{display:none}
.typeahead .chip label{display:inline-flex;gap:6px;align-items:center;margin:0;padding:3px 9px;cursor:pointer;
  border:1px solid var(--rule);border-radius:12px;background:var(--surface);font-size:13px;position:relative}
.typeahead .chip input{position:absolute;opacity:0;width:1px;height:1px}
.typeahead .chip input:focus-visible + span{outline:2px solid var(--blue);outline-offset:3px}
.typeahead .chip input:not(:checked) ~ span{text-decoration:line-through;opacity:.55}
.typeahead .chip .x{color:var(--muted)}
.typeahead .options{list-style:none;margin:2px 0 0;padding:0;position:absolute;z-index:5;left:0;right:0;
  background:var(--surface);border:1px solid var(--rule);border-radius:3px;box-shadow:0 4px 12px rgba(0,0,0,.12)}
.typeahead .options li{padding:6px 10px;cursor:pointer;font-size:13.5px}
.typeahead .options li[aria-selected="true"]{background:#EDF1F0;font-weight:600}
.typeahead .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skill-suggest .suggestions{list-style:none;margin:4px 0 0;padding:0;max-width:72ch;background:var(--surface);
  border:1px solid var(--rule);border-radius:3px;box-shadow:0 4px 12px rgba(0,0,0,.12)}
.skill-suggest .suggestions li{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;padding:6px 10px;cursor:pointer}
.skill-suggest .suggestions li[aria-selected="true"]{background:#EDF1F0}
.skill-suggest .suggestions .label{font-weight:600;font-size:13.5px}
.skill-suggest .suggestions .library,.skill-suggest .suggestions .description{display:block;color:var(--muted);font-size:12.5px}
.skill-suggest .suggestions form{margin:0;flex:none}
.skill-suggest [data-suggest-status]{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;margin:0}
section.fold{margin:0;border-bottom:1px solid var(--rule-soft)}
section.fold:focus{outline:none}
section.fold section.fold{border-bottom:0;border-top:1px solid var(--rule-soft)}
section.fold>.note{margin:6px 0}
section.fold>details>summary{display:flex;gap:6px 18px;align-items:baseline;flex-wrap:wrap;cursor:pointer;
  padding:10px 4px;list-style:none}
section.fold>details>summary::-webkit-details-marker{display:none}
section.fold>details>summary::before{content:"\25B8";color:var(--muted);width:12px;flex:none}
section.fold>details[open]>summary::before{content:"\25BE"}
section.fold>details>summary:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
section.fold>details>summary:hover{background:var(--surface)}
.fold-name{font-weight:620;min-width:22ch}
.fold-line{color:var(--muted);flex:1 1 40ch}
.fold-body{padding:4px 4px 16px 22px}
.fold-body label.field{display:block;margin:10px 0 2px}
.fold-body .setting{display:flex;gap:6px 18px;align-items:center;flex-wrap:wrap;margin:6px 0}
.fold-body .setting>label{min-width:30ch}
.signoff{margin:24px 0 8px;display:flex;gap:6px 18px;align-items:center;flex-wrap:wrap}

@media print{
  .rail,.tabs,.mecard,.me,.viewing,.switcher,.crumbs{display:none}
  body{background:#fff}
  .grid{grid-template-columns:1fr}
}
.invite-row{display:flex;gap:6px 18px;align-items:baseline;flex-wrap:wrap;justify-content:space-between;
  padding:8px 0;border-bottom:1px solid var(--rule-soft)}
.invite-row>details{flex:1 1 100%}
.invite-row>details>summary{cursor:pointer;font-size:13.5px}
.invite-row>details>form{padding:6px 0 4px}
form.inline { display: inline; margin: 0; }

.createbox{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.cards.rows{display:block}
.cards.rows .card{margin:0 0 10px}
.mini{display:inline-flex;gap:2px;vertical-align:middle;margin-right:6px}
.mini i{display:block;width:14px;height:6px;border-radius:2px;background:var(--rule)}
.mini i.done{background:var(--green)}
.mini i.now{background:var(--ink)}
