/* Alexine OS base stylesheet. Layout and parts of every screen: what used to be lifted.css
   (the demo's own rules), the index page rules and calm.css, kept in that order so nothing
   moves. The look (type, colour, radius, pills) is alexine.css, loaded last. Hand-edited
   from 1 Nov 2026; extract_from_prototype.py no longer writes CSS. */

/* ===== from the demo ===== */
  :root{
    --bg:#F7F8FA; --panel:#FFFFFF; --side:#FCFCFD;
    --line:#E7EAEE; --line2:#EDF0F3; --soft:#F2F4F7; --hover:#F8FAFC;
    --ink:#101828; --muted:#667085; --faint:#828B9B;
    --link:#175CD3; --link-bg:#EFF4FF;
    --ok:#067647; --ok-dot:#17B26A;
    --warn:#B54708; --warn-dot:#F79009; --warn-bg:#FFFAEB;
    --risk:#B42318; --risk-dot:#F04438; --risk-bg:#FEF3F2;
    --gray-dot:#98A2B3;
    --demo:#6941C6; --demo-bg:#F4EBFF;
    --ok-bg:#F6FEF9; --ok-line:#ABEFC6;
    --shadow:0 1px 2px rgba(16,24,40,.06);
  }
  *{box-sizing:border-box}
  html,body{margin:0;height:100%}
  body{
    background:var(--bg); color:var(--ink);
    font:13px/1.5 Inter,Assistant,"Segoe UI","Helvetica Neue",Arial,sans-serif;
    -webkit-font-smoothing:antialiased;
  }
  a,button,tr.rowlink td,nav a,.tag,.catcard,td input,.field input,.field select{
    transition:background-color .12s ease,color .12s ease,border-color .12s ease;
  }
  @media (prefers-reduced-motion:reduce){
    a,button,tr.rowlink td,nav a,.tag,.catcard,td input,.field input,.field select{transition:none}
  }
  .num{font-variant-numeric:tabular-nums; unicode-bidi:isolate}
  .ltr{direction:ltr; unicode-bidi:isolate}
  .he{unicode-bidi:plaintext;text-align:start}
  a{color:inherit; text-decoration:none}
  button{font:inherit; cursor:pointer}
  :focus-visible{outline:2px solid var(--link); outline-offset:2px; border-radius:4px}
  [hidden]{display:none!important}
  svg.ic{width:16px;height:16px;flex:none;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

  /* ============ shell ============ */
  .app{display:flex; min-height:100vh}
  aside{
    width:224px; flex:none; background:var(--side);
    border-inline-end:1px solid var(--line);
    display:flex; flex-direction:column; padding:14px 10px;
    position:sticky; top:0; height:100vh;
  }
  .brand{display:flex; align-items:center; gap:9px; padding:4px 8px 14px}
  .brand .mark{
    width:26px;height:26px;border-radius:7px;background:var(--ink);color:#fff;
    display:flex;align-items:center;justify-content:center;
    font-size:12px;font-weight:700;letter-spacing:.02em;
  }
  .brand .t{line-height:1.15}
  .brand .t b{font-size:13px;font-weight:600;display:block}
  .brand .t span{font-size:11px;color:var(--muted)}
  nav a{
    display:flex;align-items:center;gap:9px;position:relative;
    padding:6px 9px 6px 9px;padding-inline-start:12px;border-radius:6px;color:var(--muted);
    font-size:13px;font-weight:500;margin-bottom:1px;
  }
  nav a:hover{background:var(--soft);color:var(--ink)}
  nav a.on{background:#EDF0F3;color:var(--ink);font-weight:600}
  nav a.on::before{
    content:"";position:absolute;inset-inline-start:0;top:7px;bottom:7px;
    width:2.5px;border-radius:2px;background:var(--ink);
  }
  nav a.on svg{color:var(--ink)}
  nav a .cnt{margin-inline-start:auto;font-size:11px;color:var(--faint);font-weight:400}
  .side-sec{font-size:10.5px;font-weight:600;color:var(--faint);letter-spacing:.06em;
    text-transform:uppercase;padding:14px 9px 5px}
  .side-foot{margin-top:auto;padding:10px 8px 2px;border-top:1px solid var(--line2)}
  .side-foot .u{display:flex;align-items:center;gap:8px;padding:4px 0}
  .side-foot .u .av{width:24px;height:24px;border-radius:50%;flex:none}
  .side-foot .u .n{font-size:12.5px;font-weight:500}
  .side-foot .u .r{font-size:11px;color:var(--muted)}
  .mesel{font:inherit;font-size:12.5px;font-weight:500;color:var(--ink);border:none;
    background:none;padding:0;margin:-1px 0 0 -2px;cursor:pointer;max-width:118px}
  .mesel:focus{outline:none;color:var(--link)}
  .demo-chip{
    display:inline-block;font-size:10.5px;font-weight:600;color:var(--demo);
    background:var(--demo-bg);border-radius:5px;padding:2px 7px;margin-bottom:8px;
  }

  .main{flex:1;min-width:0;display:flex;flex-direction:column}
  .topbar{
    background:var(--panel);border-bottom:1px solid var(--line);
    padding:0 24px;height:52px;display:flex;align-items:center;gap:16px;
    position:sticky;top:0;z-index:20;
  }
  .crumbs{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted);min-width:0;flex-wrap:wrap}
  .crumbs a:hover{color:var(--ink);text-decoration:underline}
  .crumbs .cur{color:var(--ink);font-weight:500}
  .crumbs .sep{color:var(--faint)}
  .search{position:relative;margin-inline-start:auto}
  .search input{
    font:inherit;font-size:13px;width:230px;border:1px solid var(--line);
    border-radius:7px;padding:6px 30px;background:var(--bg);color:var(--ink);
  }
  .search input:focus{background:#fff;border-color:var(--faint);outline:none}
  .search .sic{position:absolute;inset-inline-start:9px;top:8px;color:var(--faint)}
  .search kbd{
    position:absolute;inset-inline-end:8px;top:7px;font:11px Inter,Consolas,monospace;
    color:var(--faint);border:1px solid var(--line);border-radius:4px;padding:0 5px;
    background:#fff;line-height:16px;pointer-events:none;
  }
  .search .drop{
    position:absolute;top:38px;inset-inline-end:0;width:320px;background:#fff;
    border:1px solid var(--line);border-radius:9px;box-shadow:0 8px 24px rgba(16,24,40,.12);
    padding:5px;z-index:40;max-height:340px;overflow:auto;
  }
  .search .drop a{display:flex;align-items:center;gap:9px;padding:7px 9px;border-radius:6px;font-size:13px}
  .search .drop a:hover{background:var(--soft)}
  .search .drop .k{font-size:10.5px;color:var(--faint);background:var(--soft);
    border-radius:4px;padding:1px 6px;flex:none;min-width:44px;text-align:center}
  .search .drop .empty{padding:10px;color:var(--muted);font-size:12.5px}

  .content{padding:22px 24px 48px;max-width:1220px;width:100%;margin:0 auto}
  .page-head{display:flex;align-items:flex-start;gap:14px;margin:0 0 18px;flex-wrap:wrap}
  .page-head h1{font-size:20px;font-weight:600;margin:0;line-height:1.25;letter-spacing:-.015em}
  .page-head .sub{color:var(--muted);font-size:12.5px;margin-top:4px;max-width:720px}
  .page-head .desc{color:var(--muted);font-size:13px;margin-top:3px;max-width:760px}
  .page-head .actions{margin-inline-start:auto;display:flex;gap:8px;align-items:center}

  /* ============ atoms ============ */
  /* the name leads; the tracker id follows it, readable but not competing */
  .tid{font-size:11.5px;color:var(--faint);font-weight:400;margin-inline-start:8px;
    direction:ltr;unicode-bidi:isolate}
  h1 .tid{font-size:12.5px}
  button.tid{font:inherit;font-size:12.5px;font-weight:400;color:var(--faint);
    background:none;border:0;border-radius:5px;padding:2px 6px;cursor:pointer;
    margin-inline-start:6px;direction:ltr;unicode-bidi:isolate}
  button.tid:hover,button.tid:focus-visible{background:var(--soft);color:var(--ink)}
  button.tid .cp{margin-inline-start:5px;font-size:11px;opacity:.5}
  button.tid:hover .cp{opacity:1}
  td button.tid{font-size:11px;margin-inline-start:2px}
  .lnk{color:var(--ink);font-weight:500;text-decoration:underline;
    text-decoration-color:var(--line);text-underline-offset:3px;text-decoration-thickness:1px}
  .lnk:hover{color:var(--link);text-decoration-color:currentColor}
  .muted .lnk,.small .lnk{color:inherit;font-weight:500}
  .muted .lnk:hover,.small .lnk:hover{color:var(--ink);text-decoration:underline}
  .panel{background:var(--panel);border:1px solid var(--line);border-radius:9px;box-shadow:var(--shadow)}
  .panel .p-head{padding:13px 16px;border-bottom:1px solid var(--line2);
    display:flex;align-items:center;gap:10px}
  .panel .p-head h2{font-size:14px;font-weight:600;margin:0}
  .panel .p-head .note{font-size:12px;color:var(--muted)}
  .panel .p-body{padding:14px 16px}
  table{border-collapse:collapse;width:100%;font-size:13px}
  th a.thsort{color:inherit}
  th a.thsort:hover,th a.thsort.on{color:var(--ink)}
  /* the same affordance when the th itself is the control rather than a link in it */
  th.thsort{cursor:pointer;user-select:none}
  th.thsort:hover{color:var(--ink)}
  th.thsort.on{color:var(--ink)}
  th.thsort .sa{margin-inline-start:5px;font-size:9px;opacity:.75}
  th{
    text-align:start;font-size:10.5px;font-weight:600;color:var(--faint);
    letter-spacing:.07em;text-transform:uppercase;padding:8px 14px;background:#FBFCFD;
    border-bottom:1px solid var(--line);white-space:nowrap;
  }
  /* `plaintext` takes its paragraph direction from the first strong character, so
     a cell holding a Latin supplier name (or bare digits, which are not strong at
     all) resolved LTR and drifted to the far side from its own Hebrew header.
     `isolate` keeps the page direction for alignment and still lets each run read
     correctly inside the cell. */
  td{padding:9px 14px;border-bottom:1px solid var(--line2);vertical-align:middle;
    unicode-bidi:isolate;text-align:start}
  /* box-shadow offsets are physical, so the client accent needs a logical border */
  td.acc{border-inline-start:3px solid var(--acc);padding-inline-start:11px}
  .lang{display:flex;gap:2px;margin:9px 0 2px}
  .lang button{flex:1;font:inherit;font-size:11.5px;font-weight:500;border:1px solid var(--line);
    background:var(--panel);color:var(--muted);padding:3px 0;cursor:pointer}
  .lang button:first-child{border-start-start-radius:6px;border-end-start-radius:6px}
  .lang button:last-child{border-start-end-radius:6px;border-end-start-radius:0;
    border-end-end-radius:6px;margin-inline-start:-1px}
  .lang button.on{background:var(--ink);border-color:var(--ink);color:#fff}
  html[dir="rtl"] body{font-family:Assistant,Inter,"Segoe UI",Arial,sans-serif}
  tbody tr:last-child td{border-bottom:none}
  tbody tr.rowlink{cursor:pointer}
  tbody tr.rowlink:hover td{background:var(--hover)}
  tbody tr.rowlink.on td{background:var(--soft);font-weight:500}
  .tbl{overflow-x:auto;border-radius:0 0 9px 9px}
  .panel>.tbl:first-child{border-start-start-radius:9px;border-start-end-radius:9px}
  .st{display:inline-flex;align-items:center;gap:6px;font-weight:500;white-space:nowrap}
  .st .d{width:7px;height:7px;border-radius:50%;flex:none}
  .st.sev{color:var(--risk);font-weight:600}
  .st.blank{color:var(--faint);font-weight:400;font-style:italic}
  a.st.sev:hover{color:var(--risk)}
  .tag{
    display:inline-block;font-size:11px;font-weight:500;border:1px solid var(--line);
    border-radius:5px;padding:1px 7px;background:#fff;color:var(--muted);white-space:nowrap;
  }
  a.tag:hover,button.tag:hover{border-color:var(--faint);color:var(--ink)}
  .tag.warn{background:var(--warn-bg);border-color:#FEDF89;color:var(--warn)}
  .tag.risk{background:var(--risk-bg);border-color:#FECDCA;color:var(--risk)}
  .tag.demo{background:var(--demo-bg);border-color:#E9D7FE;color:var(--demo)}
  .tag.live{background:var(--link-bg);border-color:#B2CCFF;color:var(--link)}
  .tag.ok{background:var(--ok-bg);border-color:var(--ok-line);color:var(--ok)}
  .av{
    display:inline-flex;align-items:center;justify-content:center;
    width:22px;height:22px;border-radius:50%;font-size:10px;font-weight:600;flex:none;
  }
  .who{display:inline-flex;align-items:center;gap:7px;font-weight:500}
  a.who:hover .n{text-decoration:underline}
  .btn{
    border:1px solid var(--ink);background:var(--ink);color:#fff;border-radius:7px;
    padding:6px 14px;font-weight:500;font-size:13px;display:inline-flex;align-items:center;gap:7px;
  }
  .btn:hover{background:#000}
  .btn.sec{background:#fff;color:var(--ink);border-color:var(--line)}
  .btn.sec:hover{border-color:var(--faint)}
  .overdue{color:var(--risk);font-weight:600}
  .cdot{display:inline-block;width:7px;height:7px;border-radius:50%;flex:none;
    margin-inline-end:7px;vertical-align:1px}
  .nw{white-space:nowrap}
  .swatches{display:flex;gap:7px;flex-wrap:wrap}
  .swatches label{cursor:pointer;line-height:0}
  .swatches input{position:absolute;opacity:0;width:0;height:0}
  .swatches .sw{display:inline-block;width:22px;height:22px;border-radius:50%;
    box-shadow:0 0 0 1px var(--line) inset}
  .swatches input:checked+.sw{box-shadow:0 0 0 2px var(--panel) inset,0 0 0 2px var(--ink)}
  .swatches input:focus-visible+.sw{outline:2px solid var(--link);outline-offset:2px}
  /* note peek: one line on the board and client pages, but labelled */
  .notepeek{display:flex;align-items:center;gap:6px;margin-top:3px;max-width:300px}
  .notepeek .t{color:var(--muted);font-size:12px;min-width:0;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;unicode-bidi:plaintext;text-align:start}
  .muted{color:var(--muted)} .small{font-size:12px}
  .empty{padding:26px 16px;text-align:center;color:var(--muted);font-size:13px}
  .info{
    display:inline-flex;align-items:center;justify-content:center;
    width:16px;height:16px;border-radius:50%;border:1px solid var(--line);
    color:var(--muted);font-size:10px;font-weight:600;font-style:normal;
    cursor:help;position:relative;vertical-align:2px;flex:none;
  }
  .info:hover,.info:focus{color:var(--ink);border-color:var(--faint)}
  .info .tip{
    display:none;position:absolute;top:21px;inset-inline-start:-10px;
    background:var(--ink);color:#fff;font-size:12px;font-weight:400;line-height:1.55;
    padding:8px 11px;border-radius:7px;width:max-content;max-width:290px;
    z-index:50;text-align:left;box-shadow:0 8px 24px rgba(16,24,40,.25);
    text-transform:none;letter-spacing:0;white-space:normal;
  }
  .info:hover .tip,.info:focus .tip{display:block}
  .info .tip.flip{inset-inline-start:auto;inset-inline-end:-10px}

  #toast{
    position:fixed;bottom:24px;left:50%;transform:translateX(-50%);
    background:var(--ink);color:#fff;border-radius:8px;padding:10px 18px;font-size:13px;
    opacity:0;pointer-events:none;transition:opacity .18s;z-index:80;max-width:80vw;
    box-shadow:0 8px 24px rgba(16,24,40,.25);
  }
  #toast.show{opacity:.97}

  /* supplier contact cards: one supplier can have several sites and several people */
  .ccard{border:1px solid var(--line);border-radius:9px;padding:10px 12px;margin-bottom:10px}
  .ccard:last-child{margin-bottom:0}
  .csite{font-weight:600;margin-bottom:6px}
  .ccard .kv{align-items:flex-start;gap:10px}
  .ccard .kv .l{min-width:110px;flex:none}

  .lateno{color:var(--risk);font-weight:600}

  /* ============ board ============ */
  .prog-top{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:7px}
  .prog{height:6px;border-radius:99px;background:var(--line2);overflow:hidden}
  .prog-fill{height:100%;background:var(--ok);border-radius:99px;transition:width .25s ease}
  .gin{font:inherit;font-size:13px;width:100%;max-width:320px;padding:6px 9px;
    border:1px solid var(--line);border-radius:7px;background:var(--panel);color:var(--ink)}
  .gin:focus{outline:none;border-color:var(--link)}
  .secn{font-size:11px;font-weight:600;color:var(--faint);letter-spacing:.06em;
    text-transform:uppercase;margin:22px 0 9px}
  .stats{display:flex;gap:0;background:var(--panel);border:1px solid var(--line);
    border-radius:9px;box-shadow:var(--shadow);margin:0 0 14px;overflow-x:auto}
  .stat{flex:1;min-width:130px;padding:12px 18px;border-inline-end:1px solid var(--line2)}
  .stat:last-child{border-inline-end:none}
  .stat .v{font-size:20px;font-weight:600;line-height:1.25;letter-spacing:-.01em}
  .stat .l{font-size:11px;color:var(--faint);letter-spacing:.05em;margin-bottom:3px}
  .stat .sub{font-size:11px;color:var(--muted);margin-top:3px;line-height:1.35}
  a.stat:hover{background:var(--hover)}
  .stat.risk .v{color:var(--risk)}
  .alert{
    display:flex;align-items:center;gap:10px;background:var(--panel);
    border:1px solid var(--line);border-inline-start:3px solid var(--risk-dot);
    border-radius:8px;padding:10px 14px;margin:0 0 14px;font-size:13px;box-shadow:var(--shadow);
    flex-wrap:wrap;
  }
  .ftokens{display:flex;gap:8px;align-items:center;margin:0 0 12px;flex-wrap:wrap;min-height:26px}
  .ftok{
    display:inline-flex;align-items:center;gap:7px;font:inherit;font-size:12.5px;
    font-weight:500;border:1px solid transparent;cursor:pointer;
    background:var(--link-bg);color:var(--link);border-radius:999px;padding:5px 13px;
  }
  .ftok:hover,.ftok:focus-visible{border-color:var(--link)}
  .fcount{font-size:12px;color:var(--muted)}
  .fclear{font-size:12px}

  /* ============ project ============ */
  .grid2{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:16px}
  @media(max-width:920px){.grid2{grid-template-columns:1fr}}
  .facts{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:13px 20px}
  .facts .l{font-size:11px;color:var(--muted);letter-spacing:.02em}
  .facts .v{font-weight:500;margin-top:2px;font-size:13px}
  .rail{display:flex;overflow-x:auto;padding:16px 6px 8px;scrollbar-width:thin}
  .rstage{min-width:88px;text-align:center;position:relative;font-size:10.5px;
    unicode-bidi:plaintext;
    color:var(--faint);line-height:1.35}
  .rstage .dot{width:9px;height:9px;border-radius:50%;background:#fff;
    border:2px solid var(--line);margin:0 auto 7px;position:relative;z-index:2}
  .rstage::before{content:"";position:absolute;top:4px;inset-inline-start:-50%;
    width:100%;border-top:2px solid var(--line2);z-index:1}
  .rstage:first-child::before{display:none}
  .rstage.past .dot{background:var(--ink);border-color:var(--ink)}
  .rstage.past{color:var(--muted)}
  .rstage.cur .dot{border-color:var(--ink);box-shadow:0 0 0 4px var(--soft)}
  .rstage.cur{color:var(--ink);font-weight:600}
  .rstage.gate .dot{border-radius:2px;transform:rotate(45deg);border-color:var(--warn-dot)}
  .rstage.gate.past .dot{background:var(--warn-dot)}
  .srcchip{display:inline-flex;align-items:center;gap:4px;font-size:10.5px;font-weight:600;
    border-radius:4px;padding:1px 6px;flex:none;letter-spacing:.02em;
    background:var(--soft);color:var(--muted)}
  .srcchip.wa{background:var(--ok-bg);color:var(--ok)}
  .srcchip.em{background:var(--link-bg);color:var(--link)}
  .srcchip.mn{background:var(--soft);color:var(--muted)}
  .notes .nby{font-size:11.5px;font-weight:600;color:var(--ink)}
  /* the level this card sits at, so the tooltip points at a name that exists */
  .lvl{font-size:10.5px;font-weight:600;color:var(--muted);background:var(--soft);
    border-radius:4px;padding:2px 7px;margin-inline-start:8px;vertical-align:middle;
    white-space:nowrap}
  .notes .nside{font-size:10.5px;color:var(--muted);background:var(--soft);
    border-radius:4px;padding:1px 6px;white-space:nowrap}
  .notes .nside .lnk{font-size:10.5px;color:var(--muted);text-decoration:underline}
  .notes{list-style:none;margin:0;padding:0}
  .notes li{padding:10px 0;border-bottom:1px solid var(--line2)}
  .notes li:first-child{padding-top:0}
  .notes li:last-child{border-bottom:none;padding-bottom:0}
  .notes .nmeta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:5px}
  .notes .nwhen{font-size:11.5px;color:var(--faint)}
  .notes .nstage{font-size:10.5px;color:var(--muted);background:var(--soft);
    unicode-bidi:plaintext;
    border-radius:4px;padding:1px 6px;white-space:nowrap}
  .notes .nstage.gate{background:var(--warn-bg);color:var(--warn)}
  .listbar{display:flex;align-items:center;gap:11px;flex-wrap:wrap;margin:0 0 12px}
  .lsearch{font:inherit;font-size:12.5px;color:var(--ink);background:var(--panel);
    border:1px solid var(--line);border-radius:7px;padding:6px 11px;width:230px;max-width:100%}
  .lsearch:focus{border-color:var(--link);outline:none}
  /* a drawing generated from the record, sized to read at a glance across a table */
  /* the frame their Image column fills. A tint from the item's own name, so twelve
     of them on one page read as a set rather than as twelve identical grey boxes. */
  .pframe{aspect-ratio:4/3;border-radius:8px;border:1px solid var(--line2);
    background:color-mix(in srgb,var(--tint) 9%,var(--panel));
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
    margin:0 0 10px}
  .pframe .pf-ref{font-size:11.5px;font-weight:600;color:var(--tint);opacity:.85;
    letter-spacing:.02em}
  .pframe .pf-note{font-size:10.5px;color:var(--faint)}
  .pframe.big{margin:0;width:150px;flex:none;align-self:flex-start}
  .itemtop{display:flex;gap:16px;align-items:flex-start;flex-wrap:wrap}
  .itemtop .facts{flex:1;min-width:200px}
  .vpair{display:flex;gap:12px;flex-wrap:wrap;margin:0 0 15px}
  .vcard{margin:0;flex:1;min-width:118px}
  .vc-art{background:var(--bg);border:1px solid var(--line2);border-radius:8px;
    aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;padding:8px}
  .schem{height:100%;width:auto;max-height:118px}
  .vcard figcaption{display:flex;align-items:center;gap:6px;margin-top:7px;font-size:11.5px}
  .vc-v{font-weight:600;color:var(--ink);unicode-bidi:isolate}
  .vc-sw{width:11px;height:11px;border-radius:3px;flex:none;border:1px solid rgba(0,0,0,.15)}
  .vc-t{color:var(--muted);unicode-bidi:isolate}
  .qmore{padding:7px 12px;font-size:11.5px;color:var(--faint);border-top:1px solid var(--line2)}
  .notefilter{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0 0 11px}
  .notefilter .seg{display:flex}
  .notefilter .seg button{font:inherit;font-size:11.5px;font-weight:500;
    border:1px solid var(--line);background:var(--panel);color:var(--muted);
    padding:3px 10px;cursor:pointer;margin-inline-start:-1px}
  .notefilter .seg button:first-child{margin-inline-start:0;
    border-start-start-radius:6px;border-end-start-radius:6px}
  .notefilter .seg button:last-child{border-start-end-radius:6px;border-end-end-radius:6px}
  .notefilter .seg button.on{background:var(--ink);border-color:var(--ink);color:#fff}
  .notefilter .seg button[disabled]{color:var(--faint);cursor:default}
  .notefilter .seg button .c{margin-inline-start:5px;font-weight:400;opacity:.65;
    font-variant-numeric:tabular-nums;unicode-bidi:isolate}
  .notefilter select{font:inherit;font-size:11.5px;color:var(--ink);background:var(--panel);
    border:1px solid var(--line);border-radius:6px;padding:3px 7px}
  .notes .ntext{font-size:13px;line-height:1.55;unicode-bidi:isolate;text-align:start}

  .feed{list-style:none;margin:0;padding:0}
  .feed li{display:flex;gap:10px;padding:8px 0;border-bottom:1px solid var(--line2);font-size:12.5px}
  .feed li:last-child{border-bottom:none}
  .feed .when{color:var(--faint);min-width:40px;font-size:11.5px;padding-top:1px}
  .feed li.new{background:var(--link-bg);border-radius:6px;padding-inline:8px}
  .kv{display:flex;gap:10px;padding:7px 0;border-bottom:1px solid var(--line2);font-size:12.5px;align-items:center}
  .kv:last-child{border-bottom:none}
  .kv .l{color:var(--muted);min-width:96px}

  /* ============ pricing ============ */
  .params{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin:0 0 14px}
  .param{background:var(--panel);border:1px solid var(--line);border-radius:8px;
    padding:6px 11px;font-size:12.5px;display:flex;align-items:center;gap:8px;box-shadow:var(--shadow)}
  .param label{color:var(--muted)}
  .param select,.param input{font:inherit;font-size:12.5px;border:1px solid var(--line);
    border-radius:6px;padding:3px 6px;width:72px;background:#fff;color:var(--ink)}
  .param select{width:auto}
  td input.qty,td input.price{font:inherit;font-variant-numeric:tabular-nums;width:62px;
    text-align:center;border:1px solid var(--line2);border-radius:6px;padding:3px 4px;background:#fff}
  tr:hover td input.qty,tr:hover td input.price,tr:hover td input.comm{border-color:var(--line);background:#fff}
  td input:focus{border-color:var(--link);background:#fff;outline:none}
  th.grp{text-align:center;color:var(--ink);background:var(--soft);letter-spacing:0;
    font-size:11px;font-weight:600;border-bottom:1px solid var(--line)}
  /* Each band gets its own tint and a rule that runs the full height of the table,
     so you can see where one group stops. Same device as the client colour bar on
     the board, so it reads as native rather than as decoration. */
  th.grp.g1{background:#EFF4FB}
  th.grp.g2{background:#F4F1FA}
  th.grp.g3{background:#FBF3EC}
  .bands-4-3-3 thead tr:last-child th:nth-child(5),.bands-4-3-3 tbody td:nth-child(5),
  .bands-4-3-3 thead tr:last-child th:nth-child(8),.bands-4-3-3 tbody td:nth-child(8),
  .bands-5-3-1 thead tr:last-child th:nth-child(6),.bands-5-3-1 tbody td:nth-child(6),
  .bands-5-3-1 thead tr:last-child th:nth-child(9),.bands-5-3-1 tbody td:nth-child(9){
    border-inline-start:2px solid var(--line)}
  th.grp+th.grp{border-inline-start:2px solid var(--line)}
  .sumline{display:flex;justify-content:space-between;gap:14px;padding:7px 0;font-size:13px;
    border-bottom:1px solid var(--line2)}
  .sumline:last-child{border-bottom:none}
  .sumline.big{font-size:15px;font-weight:600;padding-top:10px}
  .verify{margin-top:14px;border-radius:9px;padding:11px 15px;font-size:13px;
    display:flex;align-items:center;gap:10px;flex-wrap:wrap;border:1px solid}
  .verify.match{background:#F6FEF9;border-color:#ABEFC6;color:var(--ok)}
  .verify.diff{background:var(--warn-bg);border-color:#FEDF89;color:var(--warn)}

  .seg{display:inline-flex;border:1px solid var(--line);border-radius:8px;background:#fff;
    overflow:hidden;box-shadow:var(--shadow)}
  .seg a,.seg button{padding:6px 15px;font-size:13px;color:var(--muted);font-weight:500;
    background:none;border:none}
  .seg a+a,.seg button+button{border-inline-start:1px solid var(--line)}
  .seg a.on,.seg button.on{background:var(--soft);color:var(--ink);font-weight:600}
  td input.comm{font:inherit;font-variant-numeric:tabular-nums;width:58px;text-align:center;
    border:1px solid var(--line2);border-radius:6px;padding:3px 4px;background:#fff}
  .refdup{color:var(--faint)}
  .refver,.refclash{display:inline-block;margin-inline-start:6px;font-size:10px;font-weight:700;
    letter-spacing:.02em;padding:1px 5px;border-radius:4px;vertical-align:middle;
    font-variant-numeric:normal}
  .refver{background:var(--soft);color:var(--muted)}
  .refclash{background:#FEF0C7;color:#B54708}
  tr.rowclash td{background:#FFFCF5}
  .fclash{margin-top:8px;padding-top:8px;border-top:1px solid var(--line);font-size:12px;
    line-height:1.6;color:var(--muted);font-weight:400}

  /* ============ inbox ============ */
  .inboxgrid{display:grid;grid-template-columns:330px minmax(0,1fr);gap:16px}
  @media(max-width:920px){.inboxgrid{grid-template-columns:1fr}}
  .maillist{list-style:none;margin:0;padding:5px}
  .maillist li{padding:10px 11px;border-radius:7px;cursor:pointer}
  .maillist li:hover{background:var(--hover)}
  .maillist li[aria-selected="true"]{background:var(--soft)}
  .maillist .mrow{display:flex;align-items:baseline;gap:8px;margin-bottom:3px}
  .maillist .who{font-weight:600;font-size:12.5px;flex:1;min-width:0;
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap;unicode-bidi:isolate}
  .maillist .mrow .when{font-size:11.5px;color:var(--faint);flex:none}
  .maillist .subj{font-weight:400;color:var(--muted);font-size:12px;text-align:start;unicode-bidi:isolate;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .maillist .meta{margin-top:4px;display:flex;gap:6px;align-items:center;flex-wrap:wrap}
  .mailsubj{font-size:16px;font-weight:600;margin:0 0 3px;line-height:1.3;
    unicode-bidi:isolate;text-align:start}
  .mailmeta{font-size:11.5px;color:var(--faint);margin:0 0 15px;
    unicode-bidi:plaintext;text-align:start}
  .mailh3{font-size:12px;font-weight:600;color:var(--ink);letter-spacing:0;
    margin:24px 0 4px;display:flex;align-items:center;gap:7px}
  .mailh3::after{content:"";flex:1;height:1px;background:var(--line2)}
  .playread{font-size:13px;line-height:1.6;color:var(--ink);margin:0 0 10px}
  .playlist{list-style:none;margin:0;padding:0}
  .playlist li{display:flex;align-items:baseline;gap:8px;font-size:13px;
    line-height:1.55;padding:5px 0;border-top:1px solid var(--line2)}
  .playlist li:first-child{border-top:none}
  .playlist .tag{flex:none}
  .playwhy{margin-top:11px;font-size:12.5px;color:var(--muted);line-height:1.6;
    border-inline-start:2px solid var(--line);padding-inline-start:11px}
  .mailhead{display:flex;align-items:flex-start;gap:11px;padding:0 0 13px;
    border-bottom:1px solid var(--line2);margin-bottom:14px}
  .mailhead .who2{min-width:0;flex:1}
  .mailhead .nm{font-weight:600;font-size:13px}
  .mailhead .ad{font-size:11.5px;color:var(--faint);unicode-bidi:isolate}
  .mailhead .rcp{font-size:11.5px;color:var(--muted);margin-top:3px;
    display:flex;align-items:center;gap:5px;flex-wrap:wrap}
  .mailhead .when{font-size:11.5px;color:var(--faint);flex:none;padding-top:2px}
  .mailbody{font-size:13.5px;line-height:1.75;color:var(--ink);
    white-space:pre-line;unicode-bidi:plaintext;text-align:start;
    /* full width of the reading column with a quote rule at the inline start, so
       the message sits under its own header instead of floating beside it */
    border-inline-start:2px solid var(--line);padding:2px 0 2px 0;
    padding-inline-start:13px;margin-top:2px}
  .attach{display:inline-flex;align-items:center;gap:8px;margin-top:16px;
    border:1px solid var(--line);border-radius:8px;padding:8px 12px;background:var(--panel)}
  .attach .fn{font-weight:500;font-size:12.5px}
  .attach .sz{font-size:11.5px;color:var(--faint)}
  .readout{list-style:none;margin:0;padding:0}
  /* isolate, not plaintext: these lines can begin with a Latin acronym, and
     plaintext would take the paragraph direction from it and flip the whole line to
     the far edge from its siblings. */
  .readout li{position:relative;padding-block:5px;padding-inline:17px 0;font-size:13px;
    line-height:1.6;unicode-bidi:isolate;text-align:start}
  .readout li::before{content:"";position:absolute;inset-inline-start:0;top:12px;
    width:5px;height:5px;border-radius:50%;background:var(--gray-dot)}
  .policy .ic{margin-top:3px;color:var(--muted)}
  .policy .tag{margin-inline-end:3px}
  .diff .r{unicode-bidi:plaintext;display:flex;align-items:baseline;gap:8px;font-size:12px;padding:3px 0;flex-wrap:wrap}
  .diff .f{color:var(--muted);min-width:150px}
  .diff .b{color:var(--faint);text-decoration:line-through}
  .diff .arw{color:var(--faint)}
  .diff .a{color:var(--ok);font-weight:600}
  .draft{margin-top:9px;border:1px solid var(--line);border-radius:8px;
    overflow:hidden;background:var(--panel);max-width:640px}
  .draft .dh{padding:9px 13px;border-bottom:1px solid var(--line2);background:#FBFCFD}
  .draft .dh .row{font-size:12px;padding:1px 0}
  .draft .dh .l{font-size:11px;color:var(--faint);display:inline-block;min-width:54px}
  .draft .db{padding:13px;font-size:13.5px;line-height:1.7;white-space:pre-line;
    unicode-bidi:plaintext;text-align:start}
  .draft textarea{display:block;width:100%;font:inherit;font-size:13.5px;line-height:1.7;
    border:none;padding:13px;resize:vertical;min-height:172px;outline:none;color:var(--ink);
    background:#FFFDF7}
  .actbar{display:flex;align-items:center;gap:8px;margin-top:11px;flex-wrap:wrap}
  /* the cost of not deciding, which is the question nobody asks out loud */
  .ifnothing{margin-top:10px;padding-top:9px;border-top:1px dashed var(--line);
    font-size:12px;color:var(--muted);line-height:1.5}
  .editgrid{margin-top:9px;display:grid;gap:7px}
  .editgrid .er{display:flex;align-items:center;gap:9px;font-size:12px}
  .editgrid .er .f{color:var(--muted);min-width:150px;flex:none}
  .editgrid .er .u{color:var(--muted);font-size:12px;flex:none}
  .editgrid select{font:inherit;font-size:12.5px;color:var(--ink);background:#FFFDF7;
    border:1px solid var(--link);border-radius:6px;padding:4px 8px;max-width:230px}
  .editgrid input{flex:1;min-width:140px;font:inherit;font-size:12.5px;color:var(--ink);
    border:1px solid var(--link);border-radius:6px;padding:4px 9px;background:#FFFDF7}
  /* The inbox reads as one message with a list under it, not as stacked boxes:
     the green tint and the second border go, the rows become quiet rules, and the
     detail sits behind a disclosure triangle. */
  .action-row{display:block;padding:9px 2px;border:none;border-radius:0;margin:0;
    font-size:13px;border-top:1px solid var(--line2)}
  .action-row:first-of-type{border-top:none}
  .action-row.done{background:none}
  .action-row .desc{unicode-bidi:plaintext;text-align:start;flex:1;min-width:180px}
  .action-row .top{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
  /* .d is scoped to .st, so the bare dot on an action row needs its own size */
  .action-row .top>.d{width:7px;height:7px;border-radius:50%;flex:none}
  .action-row .btn.sec{padding:2px 9px;font-size:11.5px}
  /* the disclosure: a summary line the whole width of the row */
  details.more{margin-top:5px}
  details.more>summary{list-style:none;cursor:pointer;font-size:11.5px;
    color:var(--muted);display:inline-flex;align-items:center;gap:5px;padding:2px 0}
  details.more>summary::-webkit-details-marker{display:none}
  details.more>summary::before{content:"";width:0;height:0;
    border-block:4px solid transparent;border-inline-start:5px solid currentColor;
    transition:transform .12s}
  details.more[open]>summary::before{transform:rotate(90deg)}
  html[dir="rtl"] details.more>summary::before{transform:scaleX(-1)}
  html[dir="rtl"] details.more[open]>summary::before{transform:scaleX(-1) rotate(90deg)}
  details.more>summary:hover{color:var(--ink)}
  .done-line{margin-top:11px}
  .done-line>summary{font-size:12.5px;font-weight:500}
  .diff{margin-top:6px;padding-top:0;border-top:none}

  /* ============ modal ============ */
  .overlay{position:fixed;inset:0;background:rgba(16,24,40,.45);z-index:70;
    display:flex;align-items:flex-start;justify-content:center;overflow:auto;
    padding:12vh 16px 24px}
  /* the card is placed rather than pinned, and the demo footnote sits outside it,
     because a caveat about the prototype is not part of the product surface */
  .mwrap{width:100%;max-width:420px;margin-bottom:40px}
  .mwrap.wide{max-width:520px}
  .modal{background:#fff;border-radius:9px;box-shadow:0 16px 40px rgba(16,24,40,.25);
    padding:20px 22px;max-height:calc(100vh - 20vh - 64px);overflow:auto}
  .modal h2{font-size:14px;font-weight:600;margin:0 0 14px}
  .vh{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;
    clip:rect(0 0 0 0);white-space:nowrap;border:0}
  .hero{margin:0 0 14px}
  .hero input{width:100%;font:inherit;font-size:17px;font-weight:500;color:var(--ink);
    border:1px solid var(--line);border-radius:8px;padding:11px 13px;background:#fff}
  .hero input::placeholder{font-weight:400;color:var(--faint)}
  .hero input:focus{border-color:var(--link);outline:none}
  .prev{margin:16px 0 0;padding-top:14px;border-top:1px solid var(--line2)}
  .prev .pl{font-size:11.5px;color:var(--faint);margin:0 0 8px}
  .prevrow{border-inline-start:3px solid var(--acc);padding-inline-start:11px;
    display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;min-height:26px}
  .prevrow .nm{font-size:13px;font-weight:500;color:var(--ink);unicode-bidi:isolate}
  .prevrow .sub{font-size:11.5px;color:var(--muted);unicode-bidi:isolate}
  .prevrow.ghost .nm{color:var(--faint);font-weight:400}
  .prevmeta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;
    margin:9px 0 0;padding-inline-start:14px}
  .prev .swatches{margin-top:13px}
  .mhair{border-top:1px solid var(--line2);margin:14px 0 13px}
  .field{margin:0 0 12px}
  .field label{display:block;font-size:12px;font-weight:500;color:var(--muted);
    margin-bottom:5px}
  .field input,.field select{width:100%;font:inherit;font-size:13px;border:1px solid var(--line);
    border-radius:7px;padding:7px 10px;background:#fff;color:var(--ink)}
  .field input:focus,.field select:focus{border-color:var(--link);outline:none}
  .modal .mfoot{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}
  .mwrap .mnote{font-size:11.5px;color:#fff;opacity:.72;margin-top:11px;text-align:center}
  .modal .merr{font-size:12px;color:var(--risk);margin-top:8px}

  /* ============ index cards ============ */
  .catgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
  .catcard{background:var(--panel);border:1px solid var(--line);border-radius:9px;
    padding:15px 17px;box-shadow:var(--shadow);display:block}
  .catcard:hover{border-color:var(--faint)}
  .catcard h3{margin:0 0 2px;font-size:14px;font-weight:600}
  .catcard .c{font-size:12px;color:var(--muted)}
  .catcard .refs{margin-top:9px;display:flex;gap:6px;flex-wrap:wrap}

  /* ============ narrow screens ============
     Added 10.9. Before this the whole stylesheet held two media queries, both at 920px,
     and both only collapsed a two column grid. The shell itself never responded: a 224px
     rail with flex:none and height:100vh. On a 400px phone that left 176px of content,
     which is not a layout, it is a failure. Shirly chases suppliers from a phone, so the
     rail becomes a horizontal strip and the content takes the full width. CSS only: no
     markup change, no script, and nothing above 760px is touched. */
  @media(max-width:760px){
    .app{flex-direction:column}
    aside{
      width:auto; height:auto; flex-direction:row; flex-wrap:wrap; align-items:center;
      gap:8px 10px; padding:8px 12px; z-index:30; overflow:visible;
      border-inline-end:0; border-block-end:1px solid var(--line);
    }
    aside > *{flex:none; margin-block:0}
    /* Line one is identity and controls; line two is the nav, scrolling on its own.
       The nav is about 1100px of links, so if it shared a scroll container with the
       language toggle that toggle would sit a thousand pixels off screen. */
    aside .brand{order:0; padding:0}
    aside .brand .t{display:none}          /* the mark alone identifies it at this size */
    aside .side-foot{order:1; margin-inline-start:auto; display:flex; flex-direction:row;
      align-items:center; gap:10px; padding:0; width:auto}
    aside .side-foot > *{margin:0}
    aside .side-foot .demo-chip{display:none}   /* demo chrome, and the widest thing on the line */
    aside .side-foot #me-lbl{display:none}      /* the picker already says who you are */
    aside nav{order:2; flex-basis:100%; display:flex; flex-direction:row; align-items:center;
      gap:4px; overflow-x:auto; overflow-y:hidden}
    aside nav .side-sec{display:none}      /* a section heading costs width and says nothing here */
    aside nav a{white-space:nowrap}

    /* A grid item defaults to min-width:auto, so it refuses to shrink below its content.
       The stage rail is thirteen stages wide, so the column it sits in was dragging the
       whole project card out to 961px and scrolling the page sideways. Letting the items
       shrink is what makes the inner scrollers do their job. */
    .grid2 > *, .inboxgrid > *{min-width:0}
    .facts{grid-template-columns:repeat(auto-fill,minmax(136px,1fr)); gap:11px 14px}
    .maillist li{overflow-wrap:anywhere}
  }

  /* A nine column board is wider than the panel on any laptop: measured at 1234px inside
     1171px on a 1707px screen, so Status was cut off before anyone scrolled. The table
     already scrolls; what was missing is that the name scrolls away with it, so you lose
     which row you are reading. The first cell stays put instead. */
  /* a project sitting on the other process's stage list */
.offlist{display:block; width:fit-content; margin-top:3px; font-size:10.5px;
  color:#B54708; background:#FFFAEB; border:1px solid #FEDF89; border-radius:4px;
  padding:0 5px; white-space:nowrap; cursor:help}
/* rows that cannot be reported on: a count turned into a list */
.gapgroup{margin-block:2px 14px}
.gapgroup:last-child{margin-block-end:0}
.gaphead{font-size:13px; font-weight:600; display:flex; align-items:center; gap:7px}
.gapwhy{font-size:12px; color:var(--muted); margin-block:3px 8px; max-width:640px}
.gaplist{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px}
.gaplist li{display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  padding:7px 10px; border:1px solid var(--line); border-radius:8px; background:var(--panel)}
.gapwho{font-size:12.5px}
.gapwhat{font-size:12.5px; color:var(--ink); min-width:0; overflow-wrap:anywhere}
.gapsup,.gapown{font-size:11.5px; color:var(--muted)}
.gapask{margin-inline-start:auto; font-size:11.5px; color:#B54708; background:#FFFAEB;
  border:1px solid #FEDF89; border-radius:6px; padding:2px 8px; white-space:nowrap}
/* the promised date, read out of a sentence and never asserted as a field */
.promiseline{margin-top:3px; display:flex; flex-direction:column; gap:1px}
.promised{font-size:11.5px; color:var(--ink)}
.promised b{font-weight:600}
.promised.none{color:var(--muted); font-style:italic}
.noyear{font-size:10.5px; color:#B54708; background:#FFFAEB; border:1px solid #FEDF89;
  border-radius:4px; padding:0 4px; margin-inline-start:5px; white-space:nowrap}
.rawnote{font-size:11px; color:var(--muted); opacity:.8; unicode-bidi:isolate}
/* production rows that no project card can see */
.rowproj{font-size:11px; margin-top:2px; line-height:1.4}
.rowproj .lnk{font-weight:400}
.rowproj.none{color:#B42318; opacity:.9; border-block-start:1px dotted #FDA29B;
  display:block; width:fit-content; padding-block-start:1px}
.alert .note{color:var(--muted); font-size:12px; margin-inline-start:6px}
/* six-column board: the type marker and the supplier line that replaced two columns */
.prow2{display:flex; align-items:center; gap:7px; flex-wrap:wrap; margin-top:4px}
.tmark{font-size:10.5px; line-height:1.6; letter-spacing:.03em; text-transform:uppercase;
  padding:0 6px; border-radius:4px; text-decoration:none; white-space:nowrap;
  background:#EFF4FF; color:#3538CD; border:1px solid #D1E0FF}
.tmark.fa{background:#FDF2FA; color:#C11574; border-color:#FCCEEE}
.tmark:hover{filter:brightness(.97)}
.supline{font-size:11.5px; color:var(--muted); min-width:0; overflow-wrap:anywhere}
.supline .lnk{font-weight:400}
.statecell{display:flex; flex-direction:column; align-items:flex-start; gap:3px}
.onwho{font-size:11.5px; color:var(--muted); text-decoration:none; white-space:nowrap;
  border-block-end:1px dotted var(--line)}
.onwho:hover{color:var(--ink)}
.onwho.risk{color:#B42318}
.tbl table th:first-child,
  .tbl table td:first-child{position:sticky; inset-inline-start:0; z-index:2; background:var(--panel)}
  .tbl table thead th:first-child{z-index:3}

/* ===== index page rules ===== */
  /* The only CSS the port added. Four rules, and each one exists because the database
     can say something the JavaScript constant could not. */

  /* A refusal: where a number is not knowable, the sentence that replaces it. Their
     open-balance total prints #REF! and nobody was told; this is the opposite of that. */
  .refuse{color:var(--muted); font-style:italic; font-size:11.5px; line-height:1.35}
  .refuse b{font-style:normal; color:var(--ink)}
  td .refuse{display:block; max-width:210px}

  /* Dates and figures read left to right, so on the Hebrew page they sit on the left of
     their column and stay on one line; 2026-07-25 was right-aligned and broke after the
     second hyphen. */
  [dir="rtl"] td.num, [dir="rtl"] th.num{text-align:left; direction:ltr; white-space:nowrap}

  /* A Windows path or a workbook name has no spaces to break at, and pushed the scanned-
     document and style pages wider than the window. */
  #view{overflow-wrap:break-word}
  .ocr-checks li,.ocr-trail li,.st-where{overflow-wrap:anywhere; min-width:0}

  /* 25 cells in their production file carry embedded newlines and the break carries
     meaning, so cells that hold their prose respect it instead of flattening it. */
  .keeplines{white-space:pre-line}

  /* The unlinked-production panel. Not a style choice: it is the only place the two
     GAGA rows can appear, because they hang off no project. */
  .orphan{border-inline-start:3px solid var(--risk-dot)}
  .orphan .tid{color:var(--risk-dot)}

  /* A table wider than its box. `overflow-x:auto` scrolls but, with overlay scrollbars,
     paints nothing at all: no bar, no fade, no hint. Nine of the fifteen columns on
     Shipments -- every money column -- sat off screen at 1440 with nothing saying so.
     The bar below the table names what is off screen and scrolls to it; the fade marks
     the cut so a half-visible number is not read as a whole one. */
  .tbl.wide{overflow-x:scroll; scrollbar-width:thin}
  .tbl.wide::-webkit-scrollbar{height:10px}
  .tbl.wide::-webkit-scrollbar-thumb{background:var(--line); border-radius:99px}
  .tbl.wide::-webkit-scrollbar-track{background:transparent}
  .wide-note{display:block; width:100%; text-align:start; cursor:pointer;
    background:var(--panel); color:var(--muted); border:0; border-bottom:1px solid var(--line);
    padding:7px 12px; font:inherit; font-size:11.5px}
  .wide-note:hover{color:var(--ink); background:var(--hover, var(--panel))}
  .wide-note:focus-visible{outline:2px solid var(--ink); outline-offset:-2px}
  .wide-note[hidden]{display:none}

  /* "and N more" under the search results. It was a grey div with no handler, so every
     result past the ninth was unreachable for anyone who did not already know they were
     there. It is a button now; these four lines only strip the browser's button chrome so
     it still reads as the quiet line it always was. */
  button.qmore{display:block;width:100%;text-align:inherit;font:inherit;cursor:pointer;
    background:none;color:var(--faint)}
  button.qmore:hover{color:var(--ink)}
  button.qmore:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}

  /* A refusal inside a table cell is one line: the label, or a dot, with the sentence on
     hover. The sentence itself stays on screen everywhere else. */
  td .refuse .rs,.facts .refuse .rs{display:none}
  td .refuse:not(:has(b))::before,.facts .refuse:not(:has(b))::before{content:"·"; font-style:normal}

  /* A folded panel: heading and count on the summary, the body behind it. Same caret the
     styles screen already uses; this one is shared by every screen through fold(). */
  .fold>summary{list-style:none; cursor:pointer}
  .fold>summary::-webkit-details-marker{display:none}
  .fold>summary:hover{background:var(--hover,rgba(0,0,0,.02))}
  .fold>summary:focus-visible{outline:2px solid var(--ink); outline-offset:-2px}
  .fold:not([open])>summary.p-head{border-bottom:0}
  .fold .caret{display:inline-block; color:var(--muted); font-size:10px; line-height:1;
    margin-inline-end:6px; transition:transform .12s ease; transform:rotate(-90deg)}
  [dir="rtl"] .fold .caret{transform:rotate(90deg)}
  .fold[open]>summary .caret,[dir="rtl"] .fold[open]>summary .caret{transform:none}

  /* Labels read as words, not as small capitals: column headers, tile labels, fact labels
     and section labels keep the prototype's size but lose the uppercase and the tracking,
     and sit one step darker. The band headers on the pricing sheets are the sheet's own. */
  th{text-transform:none; letter-spacing:0; font-size:12px; color:var(--muted)}
  .stat .l{letter-spacing:0; font-size:12px; color:var(--muted); font-weight:500}
  .facts .l{letter-spacing:0; font-size:12px}
  .side-sec,.secn,.tmark,.pj-h{text-transform:none; letter-spacing:0}

  /* One line per row on the board: the type chip sits beside the name, and status and
     waiting-for sit side by side instead of stacked. */
  td .prow2{display:inline-flex; margin-top:0; margin-inline-start:8px; vertical-align:middle}
  .statecell{flex-direction:row; align-items:center; gap:8px; flex-wrap:wrap}

  /* The More group on the rail: the six specialist screens, closed until wanted. */
  .nav-more>summary{list-style:none; cursor:pointer; padding:7px 12px; font-size:12.5px;
    color:var(--muted)}
  .nav-more>summary::-webkit-details-marker{display:none}
  .nav-more>summary:hover{color:var(--ink)}

  /* Three rules from a contrast and focus pass, 22 Sep (internal/UIUX-REVIEW-2026-09-22.md).
     Measured, not assumed: #828B9B on white is 3.43:1 and it colours about thirty text
     selectors in lifted.css (row ids, timestamps, mail addresses, nav counts, section
     labels). #667085 reads 4.97:1 on white and 4.51:1 on the soft grey the search
     shortcut sits on, so the faint step now clears 4.5 everywhere it prints text. The
     hierarchy it carried is still there in size and weight. */
  :root{--faint:#667085}

  /* Eight inputs set outline:none on :focus and replaced it with a border colour, which
     for the search box was the faint grey above. Keyboard focus is a ring again; the
     mouse never sees it. Same specificity as the lifted rules, so loading later wins. */
  .search input:focus-visible,.mesel:focus-visible,.gin:focus-visible,.lsearch:focus-visible,
  td input:focus-visible,.hero input:focus-visible,.field input:focus-visible,
  .field select:focus-visible,textarea:focus-visible{outline:2px solid var(--link); outline-offset:1px}

  /* The (i) is 16px on screen, under the 24px web minimum for a target. The hit area
     grows to 24px through a pseudo-element; the mark itself stays the size it was. */
  .info::before{content:""; position:absolute; inset:-4px}
  /* A one-digit count link in a table cell is 7 px wide, and the board's sort header is
   * 16 px tall. Both get a 24 px hit area without moving anything on screen. */
  td>a.lnk.num,a.thsort{display:inline-block; padding:4px 8px; margin:-4px -8px}

/* ===== calm layer ===== */
/* calm.css: the written type and surface layer, loaded after lifted.css and the inline
   block in index.html, so a rule here wins at equal specificity. lifted.css stays generated
   and untouched. Five text sizes, one family for both scripts, fewer boxes. */

/* IBM Plex Sans and IBM Plex Sans Hebrew, SIL Open Font License (fonts/LICENSE-OFL.txt).
   One family name for both, split by unicode-range, so Hebrew and English sit on the same
   rhythm and switching language does not change the look. Self-hosted: works offline. */
@font-face{font-family:"Plex";font-weight:400;font-style:normal;font-display:swap;
  src:url(fonts/plex-latin-400.woff2) format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+20AA,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Plex";font-weight:500;font-style:normal;font-display:swap;
  src:url(fonts/plex-latin-500.woff2) format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+20AA,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Plex";font-weight:600;font-style:normal;font-display:swap;
  src:url(fonts/plex-latin-600.woff2) format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+20AA,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Plex";font-weight:400;font-style:normal;font-display:swap;
  src:url(fonts/plex-hebrew-400.woff2) format("woff2");unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:"Plex";font-weight:500;font-style:normal;font-display:swap;
  src:url(fonts/plex-hebrew-500.woff2) format("woff2");unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:"Plex";font-weight:600;font-style:normal;font-display:swap;
  src:url(fonts/plex-hebrew-600.woff2) format("woff2");unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}

:root{
  /* the scale: marks, meta, body, section, page */
  --fs-0:12px; --fs-1:13px; --fs-2:15px; --fs-3:17px; --fs-4:22px;
  --font:"Plex","Segoe UI",Arial,sans-serif;

  /* one quiet ground, white work surfaces, one accent */
  --bg:#F4F5F7; --side:#F4F5F7; --panel:#FFFFFF;
  --line:#E3E5E9; --line2:#EDEEF1; --soft:#EEF0F3; --hover:#F7F8FA;
  --ink:#16181D; --muted:#5A616D; --faint:#5A616D;
  --link:#1E3A8A; --link-bg:#EDF1FA; --accent:#1E3A8A;
  --shadow:none;
}

body,html[dir="rtl"] body{font:var(--fs-2)/1.55 var(--font); font-feature-settings:"kern"}
.num,td.num{font-variant-numeric:tabular-nums}
.search kbd{font:var(--fs-0)/16px var(--font)}

/* ---------- every size lifted.css sets, mapped onto the scale ---------- */
.demo-chip,
.search .drop .k,
th.thsort .sa,
.av,
.info,
.srcchip,
.lvl,
.notes .nside,
.notes .nside .lnk,
.refver,.refclash,
.offlist,
.noyear,
.tmark{font-size:var(--fs-0)}

.brand .mark,
.brand .t span,
nav a .cnt,
.side-foot .u .r,
.search .drop .empty,
.page-head .sub,
.tid,
h1 .tid,
button.tid,
button.tid .cp,
td button.tid,
.panel .p-head .note,
.lang button,
.tag,
.notepeek .t,
.small,
.info .tip,
.secn,
.stat .l,
.stat .sub,
.ftok,
.fcount,
.fclear,
.facts .l,
.notes .nby,
.notes .nwhen,
.lsearch,
.pframe .pf-ref,
.vcard figcaption,
.qmore,
.notefilter .seg button,
.notefilter select,
.feed li,
.feed .when,
.kv,
.param,
.param select,.param input,
th.grp,
.fclash,
.maillist .who,
.maillist .mrow .when,
.maillist .subj,
.mailmeta,
.mailh3,
.playwhy,
.mailhead .ad,
.mailhead .rcp,
.mailhead .when,
.attach .fn,
.attach .sz,
.diff .r,
.draft .dh .row,
.draft .dh .l,
.ifnothing,
.editgrid .er,
.editgrid .er .u,
.editgrid select,
.editgrid input,
.action-row .btn.sec,
details.more>summary,
.done-line>summary,
.prev .pl,
.prevrow .sub,
.field label,
.mwrap .mnote,
.modal .merr,
.catcard .c,
.gapwhy,
.gapwho,
.gapwhat,
.gapsup,.gapown,
.gapask,
.promised,
.rawnote,
.rowproj,
.alert .note,
.supline,
.onwho,
th,
.side-sec,
.rstage,
.notes .nstage,
.pframe .pf-note{font-size:var(--fs-1)}

.brand .t b,
nav a,
.crumbs,
.search input,
.search .drop a,
.page-head .desc,
table,
.btn,
.empty,
#toast,
.gin,
.alert,
.facts .v,
.notes .ntext,
.sumline,
.verify,
.seg a,.seg button,
.playread,
.playlist li,
.mailhead .nm,
.mailbody,
.readout li,
.draft .db,
.draft textarea,
.action-row,
.prevrow .nm,
.field input,.field select,
.gaphead,
.side-foot .u .n,
.mesel{font-size:var(--fs-2)}

.panel .p-head h2,
.sumline.big,
.mailsubj,
.modal h2,
.hero input,
.catcard h3{font-size:var(--fs-3)}

.page-head h1,
.stat .v{font-size:var(--fs-4)}



/* the inline block in index.html and the fold carets */
.refuse,.wide-note{font-size:var(--fs-1)}
.stat .l,.facts .l{font-size:var(--fs-1)}
.fold .caret{font-size:var(--fs-0)}
.nav-more>summary{font-size:var(--fs-2)}

/* ---------- surface ---------- */
.content{padding:32px 40px 64px; max-width:1240px}
.page-head{margin:0 0 24px; align-items:center}
.page-head h1{font-weight:600; letter-spacing:-.01em; line-height:1.2}

/* a panel is a white surface with a hairline, no drop shadow, and room inside */
.panel{border-radius:12px; border-color:var(--line); box-shadow:none}
.panel .p-head{padding:16px 20px; border-bottom-color:var(--line2)}
.panel .p-head h2{font-weight:600}
.panel .p-body{padding:18px 20px}
.panel+.panel,.panel+details.panel,details.panel+.panel,details.panel+details.panel{margin-top:20px}

/* tables: taller rows, headers that read as words, no tinted header band */
th{background:transparent; font-weight:500; color:var(--muted); padding:10px 16px}
td{padding:12px 16px; line-height:1.4}
/* a date or figure never breaks across lines */
td>span.num,td>.num,td.num{white-space:nowrap}
.tbl{border-radius:0 0 12px 12px}
.panel>.tbl:first-child{border-start-start-radius:12px; border-start-end-radius:12px}

/* tags: a tinted word, no outline */
.tag{border-color:transparent; background:var(--soft); color:var(--muted); border-radius:6px;
  padding:2px 8px; font-weight:500}
.tag.warn{border-color:transparent} .tag.risk{border-color:transparent}
.tag.ok{border-color:transparent}   .tag.live{border-color:transparent}
.tag.demo{border-color:transparent}
a.tag:hover,button.tag:hover{border-color:transparent; background:var(--line)}

/* buttons: the accent is the one primary action; secondary is quiet */
.btn{background:var(--accent); border-color:var(--accent); border-radius:8px;
  padding:8px 16px; min-height:36px; font-weight:500}
.btn:hover{background:#172E6E; border-color:#172E6E}
.btn.sec{background:var(--panel); color:var(--ink); border-color:var(--line)}
.btn.sec:hover{background:var(--hover); border-color:#C9CDD4}
.btn.small,.action-row .btn.sec{padding:4px 12px; min-height:30px; font-size:var(--fs-1)}
.lnk{text-decoration-color:#C9CDD4}

/* shell: the rail shares the page ground, items are full-height targets */
aside{width:236px; background:var(--side); border-inline-end-color:transparent; padding:18px 12px}
.brand{padding:2px 10px 20px}
.brand .mark{background:var(--accent); border-radius:8px; width:28px; height:28px}
nav a{padding:8px 12px; border-radius:8px; margin-bottom:2px; color:var(--muted)}
nav a:hover{background:var(--line2)}
nav a.on{background:var(--panel); color:var(--ink); box-shadow:0 0 0 1px var(--line)}
nav a.on::before{display:none}
.topbar{background:var(--bg); border-bottom-color:transparent; height:60px; padding:0 40px}
.search input{background:var(--panel); border-radius:8px; padding:8px 32px; width:260px}
.search .sic{top:11px}
.search kbd{top:10px}
.side-foot{border-top-color:var(--line)}

/* inputs share one height and radius */
.gin,.lsearch,.field input,.field select{border-radius:8px; padding:8px 12px}
.info{width:18px; height:18px}
.info .tip{max-width:min(290px, calc(100vw - 32px))}

@media(max-width:760px){
  .content{padding:20px 16px 48px}
  .topbar{padding:0 16px}
  .search input{width:170px}
  aside{padding:8px 12px}
}

/* ---------- every box you fill in: one look, the one the Admin status pill has ----------
   Zero specificity, so a box a screen already styles keeps its own size and place; this
   gives the rest a border, a radius and a focus ring instead of the browser's own. */
:where(select, textarea, input:not([type=checkbox],[type=radio],[type=file],[type=hidden],[type=range],[type=color],[type=button],[type=submit],[type=reset],[type=image])){
  font:inherit; font-size:var(--fs-1); color:var(--ink); background-color:var(--panel);
  border:1px solid var(--line); border-radius:8px; padding:7px 11px;
  transition:border-color .15s, box-shadow .15s}
:where(select, textarea, input):hover{border-color:#CDD1D8}
:where(select, textarea, input):focus{outline:none; border-color:var(--link); box-shadow:0 0 0 3px var(--link-bg)}
:where(select, textarea, input)::placeholder{color:var(--faint); opacity:.75}
:where(select, textarea, input):disabled{background-color:var(--soft); color:var(--faint); cursor:not-allowed}
/* a dropdown's chevron is drawn, not the browser's: it wins over a screen's background so
   every list reads the same; the Admin pill draws its own and is left alone */
html select:not([multiple]):not(.ad-pick select){
  appearance:none; -webkit-appearance:none; cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235A616D' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-size:10px 6px; background-position:right 11px center;
  padding-inline-end:30px}
html[dir="rtl"] select:not([multiple]):not(.ad-pick select){background-position:left 11px center}
@media (prefers-reduced-motion:reduce){:where(select, textarea, input){transition:none}}

/* the toast lets clicks through to the page, except on the one action it carries (Undo) */
#toast.show button { pointer-events: auto; cursor: pointer; }

/* a supplier or client named in two scripts ("Denim/תיקים ופאוצים") keeps its own order beside the next name */
a.lnk.nw { unicode-bidi: isolate; }
