/* Blank HQ — app styles. Tokens from 01_Master/Blank Space Design — System/colors_and_type.css
   Redesign (28 Sep 2026): one sidebar instead of the stacked bars, each dashboard section its own page,
   calmer cards, and a few charts where they help. Muted text and small labels are darker than before so they
   read at 4.5:1 or better on the paper colour. */
:root {
  --bsd-espresso: #584F46;
  --bsd-espresso-deep: #3F3833;
  --bsd-espresso-warm: #6E6356;
  --bsd-sage: #918D75;
  --bsd-taupe: #B4957E;
  --bsd-paper: #F9F6F0;
  --bsd-paper-2: #FBF9F5;
  --bsd-paper-cool: #ECEBE6;
  --side: #F1EDE5;
  --line: rgba(88, 79, 70, 0.16);
  --line-strong: rgba(88, 79, 70, 0.28);
  --line-soft: #EEE8E0;
  --track: #ECE6DD;
  --fg-1: var(--bsd-espresso);
  --fg-2: var(--bsd-espresso-deep);
  --fg-3: #6E6356;
  --label: #6B6752;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --pos: #4F6B49;
  --neg: #94472F;
  --warn: #7A5324;
  --ok-bg: #E7EAE0;
  --warn-bg: #F3EADC;
  --bad-bg: #F4E6DF;
  --radius: 12px;
  /* contractor colours of the Daily plan (10 Nov 2026, asked for by Jeffrey: one colour per contractor). Seven colours
     picked to be told apart at a glance, also by a colour-blind reader, and away from the red / green of the marks. */
  --lane-1: #0072B2;
  --lane-2: #E69F00;
  --lane-3: #009E73;
  --lane-4: #CC79A7;
  --lane-5: #6A35D9;
  --lane-6: #56B4E9;
  --lane-7: #9B2D86;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bsd-paper); color: var(--fg-2); font-family: var(--sans); font-weight: 400; font-size: 15px; line-height: 1.45; }
/* (15 Nov 2026) an iPhone may enlarge text by itself ("text autosizing", for example after turning the phone), which can push
   a line wider than the screen; the text keeps the sizes set here */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a { color: var(--fg-1); text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
a:hover { color: var(--fg-2); text-decoration-color: currentColor; }
button { font-family: var(--sans); }
:focus-visible { outline: 2px solid var(--bsd-sage); outline-offset: 2px; }
.ic { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic.sm { width: 13px; height: 13px; }
.ic.lg { width: 22px; height: 22px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--fg-1); cursor: pointer; font-size: 13px; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.icbtn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--fg-1); cursor: pointer; }
.icbtn:hover { background: rgba(88, 79, 70, 0.07); }
.icbtn.line { width: 40px; height: 40px; border: 1px solid var(--line-strong); background: var(--bsd-paper-2); }
.brand { font-family: var(--serif); font-size: 27px; font-weight: 500; line-height: 1; color: var(--fg-2); text-decoration: none; white-space: nowrap; }
.brand span { color: var(--label); font-style: italic; }

.dot { width: 8px; height: 8px; border-radius: 50%; background: #B8AFA3; }
.dot.ok { background: #5E7A57; } .dot.warn { background: #B27B3E; } .dot.bad { background: #A3563E; }

/* ===== the frame (redesign "0 · The menu, for every page", 19 Nov 2026): the left menu, a project's header and tabs;
   on a phone the top bar, the bottom bar and the sheets. Sizes and colours as the design draws them. ===== */
.lbl { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--label); }
.mi { flex: none; }
.icb { font: inherit; width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: 10px;
       border: 1px solid rgba(88, 79, 70, 0.2); background: var(--bsd-paper-2); color: var(--fg-2); cursor: pointer; }
.icb.flat { border-color: transparent; background: none; }
.shell { display: flex; min-height: 100vh; background: var(--bsd-paper); }
.topbar { display: none; }
.side { position: sticky; top: 0; flex: none; width: 256px; height: 100vh; height: 100dvh; display: flex; flex-direction: column; box-sizing: border-box;
        border-right: 1px solid var(--line); background: var(--bsd-paper-2); }
.side-top { display: flex; align-items: center; gap: 8px; padding: 14px 12px 10px 16px; min-height: 44px; }
.side-top .brand { flex: 1; font-size: 24px; }
.side-x { display: none; }
.side-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 4px 10px; display: flex; flex-direction: column; gap: 2px; }
.side-body > .side-h { padding: 8px 12px 4px; }
.side-ph { display: flex; align-items: baseline; padding: 14px 12px 4px; }
.side-ph .lbl { flex: 1; }
.side-n { font-size: 12px; color: var(--fg-3); }
.side-div { height: 1px; background: var(--line); margin: 12px 8px; flex: none; }
.side-pd { display: none; }
.nav-i, .nav-p { position: relative; font-size: 14px; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; box-sizing: border-box;
                 border-radius: 10px; color: var(--fg-1); text-decoration: none; flex: none; }
.nav-i:hover, .nav-p:hover { background: var(--side); color: var(--fg-1); }
.nav-i.on, .nav-p.on { background: var(--track); color: var(--fg-2); font-weight: 500; }
.nav-i .nv-t { min-width: 0; }
.nb { margin-left: auto; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 9px; white-space: nowrap; background: var(--track); color: var(--fg-1); }
.nb.bad { background: var(--bad-bg); color: var(--neg); }
.nb-dot { display: none; position: absolute; top: 9px; left: 30px; width: 8px; height: 8px; border-radius: 4px; background: var(--neg); }
.nav-p { min-height: 52px; }
.pdot { width: 10px; height: 10px; border-radius: 5px; flex: none; background: #B8AFA3; }
.nav-p .pdot { margin: 0 5px; }
.pdot.ok { background: var(--pos); } .pdot.warn { background: var(--bsd-taupe); } .pdot.bad { background: var(--neg); }
.pdot.sm { width: 8px; height: 8px; border-radius: 4px; }
.np-t { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.np-t b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-t small { font-size: 12px; font-weight: 400; color: var(--fg-3); }
.np-s { display: none; font-size: 11px; color: var(--fg-3); margin-left: -6px; }
.side-foot { padding: 12px 16px; border-top: 1px solid var(--line); }
.me { display: flex; align-items: center; gap: 10px; min-width: 0; }
.av { width: 32px; height: 32px; flex: none; border-radius: 16px; background: var(--track); color: var(--fg-2); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.me-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.me-t b { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-t small { font-size: 12px; color: var(--fg-3); }
.me-out { font-size: 13px; min-height: 44px; color: var(--fg-1); text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 4px; }
/* the menu shrunk to icons (a computer only) */
@media (min-width: 961px) {
  .shell.icons .side { width: 72px; }
  .shell.icons .side-top .brand, .shell.icons .side-body > .side-h, .shell.icons .side-ph, .shell.icons .nv-t, .shell.icons .nb, .shell.icons .np-t, .shell.icons .me-t, .shell.icons .me-out { display: none; }
  .shell.icons .side-pd, .shell.icons .nb-dot, .shell.icons .np-s { display: block; }
  .shell.icons .side-foot { padding: 12px 16px; }
}
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.main-in { flex: 1; min-width: 0; }
.scrim, .sh-scrim { position: fixed; inset: 0; z-index: 30; background: rgba(63, 56, 51, 0.28); }
.scrim[hidden], .sh-scrim[hidden], .sheet[hidden], .ph-menu[hidden] { display: none; }
/* a project: its header, the tabs, Financials' second row */
.ph { position: sticky; top: 0; z-index: 20; background: var(--bsd-paper-2); border-bottom: 1px solid var(--line); }
.ph-top { padding: 18px 28px 6px; display: flex; align-items: flex-end; gap: 16px; position: relative; }
.ph-id { min-width: 0; flex: 1; }
.ph-sw { font: inherit; display: inline-flex; align-items: baseline; gap: 10px; max-width: 100%; min-height: 44px; padding: 0 10px 0 0; border: 0; background: none; color: var(--fg-2); cursor: pointer; text-align: left; }
.ph-code { font-size: 14px; color: var(--fg-3); font-variant-numeric: tabular-nums; flex: none; }
.ph-name { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-caret { font-size: 12px; color: var(--fg-3); flex: none; }
.ph-st { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; margin-bottom: 8px; border-radius: 14px; font-size: 13px; border: 1px solid var(--line); background: var(--bsd-paper-2); white-space: nowrap; flex: none; }
.ph-menu { position: absolute; left: 20px; top: 84px; z-index: 25; width: 340px; max-width: calc(100% - 40px); padding: 6px; box-sizing: border-box; border-radius: 12px; background: #fff;
           border: 1px solid rgba(88, 79, 70, 0.2); box-shadow: 0 10px 28px rgba(63, 56, 51, 0.16); }
.ph-menu > .lbl { padding: 8px 12px 4px; }
.row56 { font: inherit; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 0 14px; box-sizing: border-box; border: 0; border-radius: 12px; background: none;
         color: var(--fg-2); text-align: left; text-decoration: none; cursor: pointer; }
.row56:hover { background: var(--side); color: var(--fg-2); }
.ph-menu .row56.on { background: var(--side); }
.r-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.r-t b { font-weight: 500; }
.r-t small { font-size: 12px; color: var(--fg-3); }
.r-t small.r-d { font-size: 13px; }
.r-tick { color: var(--pos); }
.ptabs { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px; padding: 0 28px; }
.ptab { font-size: 16px; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border-bottom: 2px solid transparent; margin-bottom: -1px;
        color: var(--fg-3); text-decoration: none; white-space: nowrap; box-sizing: border-box; }
.ptab:hover { color: var(--fg-2); }
.ptab.on { color: var(--fg-2); font-weight: 500; border-bottom-color: var(--fg-2); }
.ptab-gap { width: 1px; height: 20px; background: rgba(88, 79, 70, 0.2); margin: 0 8px 12px; }
.pbadge { min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.pbadge.late { background: var(--bad-bg); color: var(--neg); }
.pbadge.wait { background: var(--track); color: var(--fg-1); }
.ph-fin, .fin-m { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ph-fin { padding: 10px 28px 12px; border-top: 1px solid var(--line); }
.fin-m { display: none; }
.seg { display: inline-flex; flex-wrap: wrap; padding: 4px; gap: 4px; background: var(--track); border-radius: 12px; }
.seg-b { font-size: 13px; height: 32px; padding: 0 12px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: var(--fg-1); text-decoration: none; }
.seg-b:hover { color: var(--fg-2); }
.seg-b.on { background: var(--bsd-paper-2); color: var(--fg-2); font-weight: 500; box-shadow: 0 1px 2px rgba(63, 56, 51, 0.12); }
.fin-note { font-size: 13px; color: var(--fg-3); }
.bbar, .sheet { display: none; }
.side[tabindex="-1"]:focus, .sheet[tabindex="-1"]:focus, .ph-menu[tabindex="-1"]:focus { outline: none; }

/* ===== a phone (and a narrow window): no left menu; the top bar, the bottom bar in a project, the sheets ===== */
@media (max-width: 960px) {
  .shell { display: block; }
  .topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; height: 64px; box-sizing: border-box; padding: 10px 16px;
            border-bottom: 1px solid var(--line); background: var(--bsd-paper-2); }
  .tb-proj { font: inherit; flex: 1; min-width: 0; min-height: 44px; display: flex; flex-direction: column; justify-content: center; padding: 0 6px; border: 0; background: none; color: var(--fg-2); text-align: left; cursor: pointer; }
  .tb-proj small { font-size: 12px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tb-proj > span { display: flex; align-items: center; gap: 6px; min-width: 0; }
  .tb-proj b { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tb-proj i { font-style: normal; font-size: 11px; color: var(--fg-3); flex: none; }
  .tb-proj b .tb-sub { font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--fg-3); margin-left: 6px; }
  .topbar:has(.tb-sub) ~ * .jx-phsum, .shell:has(.tb-sub) .jx-phsum { display: none; }
  .tb-title { flex: 1; min-width: 0; padding: 0 6px; font-family: var(--serif); font-size: 22px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* (15 Nov 2026) the closed menu is not drawn at all (display: none): a box waiting outside the screen may let an iPhone
     move the page sideways. It opens as a panel from the left. */
  .side { position: fixed; z-index: 40; top: 0; left: 0; bottom: 0; width: min(312px, 86vw); height: auto; display: none; box-shadow: 8px 0 24px rgba(63, 56, 51, 0.16); }
  .shell.nav-open .side { display: flex; animation: side-in 0.22s ease; }
  .side-top { padding: 10px 12px 6px 18px; }
  .side-col { display: none; }
  .side-x { display: inline-flex; }
  .side-foot { padding: 10px 16px 14px; }
  .me-out { font-size: 14px; }
  .main { display: block; }
  .ph { display: none; }
  .fin-m { display: flex; margin: 16px 16px 0; }
  .fin-m .seg { display: flex; width: 100%; box-sizing: border-box; }
  .fin-m .seg-b { flex: 1 1 auto; min-height: 44px; padding: 0 10px; }
  .fin-m .fin-note { display: none; }
  .shell.in-proj .main { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .bbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; height: calc(76px + env(safe-area-inset-bottom, 0px)); box-sizing: border-box;
          padding: 4px 4px calc(12px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
          border-top: 1px solid var(--line); background: var(--bsd-paper-2); }
  .bb { position: relative; min-width: 0; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 12px;
        color: var(--fg-3); text-decoration: none; }
  .bb.on { color: var(--fg-2); font-weight: 500; background: var(--track); }
  .bb-t { font-size: 11px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pbadge.bb-b { position: absolute; top: 2px; left: 50%; margin-left: 6px; background: var(--neg); color: #fff; }
  .sheet { position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; max-height: min(640px, 85vh); overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box;
           background: var(--bsd-paper-2); border-radius: 20px 20px 0 0; padding: 10px 12px calc(22px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 4px;
           box-shadow: 0 -8px 24px rgba(63, 56, 51, 0.16); }
  .sh-scrim { z-index: 40; }
  .sh-grip { width: 40px; height: 4px; border-radius: 2px; background: #D9D4CB; margin: 0 auto 6px; flex: none; }
  .sh-h { display: flex; align-items: center; gap: 8px; padding: 0 4px 4px 14px; }
  .sh-t { flex: 1; min-width: 0; font-family: var(--serif); font-size: 24px; font-weight: 600; }
  .sheet .row56.on { background: var(--track); }
}
@keyframes side-in { from { transform: translateX(-104%); } }
@media (prefers-reduced-motion: reduce) { .shell.nav-open .side { animation: none; } }

/* ===== pages ===== */
/* every page uses the full width of the window, as the header and tabs above it do (Jeffrey, 21 Nov 2026: pages were held
   to 1200 px and looked cramped); its sides line up with the header's 28 px */
.page { max-width: none; margin: 0; padding: 36px 28px 72px; }
.page .page { max-width: none; margin: 0; padding: 0; }
.eyebrow { font-size: 11.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--label); }
h1 { font-family: var(--serif); font-weight: 500; font-size: 44px; line-height: 1.05; color: var(--fg-2); margin: 4px 0 4px; }
h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.15; color: var(--fg-2); margin: 32px 0 12px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
h2 .cnt, .cnt, .muted { color: var(--fg-3); font-family: var(--sans); font-size: 13px; font-weight: 400; letter-spacing: 0; }
h3 { font-family: var(--sans); font-size: 11.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--label); margin: 22px 0 8px; }
.meta { color: var(--fg-3); font-size: 14px; }
.note { color: var(--fg-3); font-size: 12.5px; margin-top: 10px; }
.lead { color: var(--fg-3); font-size: 14px; margin: -8px 0 20px; max-width: 80ch; }
.phead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.phead h1 { margin-bottom: 0; }
.phead-r { color: var(--fg-3); font-size: 14px; padding-bottom: 6px; }
/* company Financials: the period picker (30 Sep 2026) */
.period { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.period label { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--label); }
.per-c { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.per-l { margin-top: 8px; text-align: right; }
.period select, .fbox input { min-height: 40px; font: inherit; font-size: 15px; color: var(--fg-2); background: var(--bsd-paper-2); border: 1px solid var(--line-strong); border-radius: 8px; }
.period select { max-width: 100%; padding: 0 10px; cursor: pointer; }
.period select:focus, .fbox input:focus { outline: none; border-color: var(--bsd-sage); box-shadow: 0 0 0 3px rgba(145, 141, 117, 0.22); }
.sec-h { margin-bottom: 24px; }
.sec-h h1 { font-size: 40px; }
.proj-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; }
.proj-t { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.proj-t h1 { margin: 4px 0; }
.flinks { display: flex; flex-wrap: wrap; gap: 8px; }
.flinks a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bsd-paper-2);
            color: var(--fg-2); text-decoration: none; font-size: 13px; white-space: nowrap; }
.flinks a:hover { border-color: var(--bsd-sage); }
.flinks .ic { color: var(--label); }
.empty { color: var(--fg-3); padding: 14px 0; font-size: 14px; }
.alert { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 20px; border-radius: 10px; background: #F4E8E1; border: 1px solid #E9D4C8; font-size: 14px; }
.alert .ic { color: var(--neg); }
.ok-box { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 10px; background: var(--ok-bg); color: #3F5A3A; font-size: 14px; }
.ok-box .ic { color: var(--pos); }
.ok { color: var(--pos); } .warn { color: var(--warn); } .bad { color: var(--neg); }
.pos { color: var(--pos); } .neg { color: var(--neg); }
.trunc { display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
small { font-size: 12.5px; }

/* cards and grids */
.card { background: var(--bsd-paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px 22px; min-width: 0; margin-bottom: 24px; }
.card.flush { padding: 20px 0 0; overflow: hidden; }
.card.flush > .card-h { padding: 0 24px; }
.card-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 14px; }
.card-h h2 { margin: 0; }
.card-h > a { font-size: 13.5px; }
.block { margin-bottom: 24px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; align-items: start; }
.grid2.wide-l { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.grid2 > .card { height: calc(100% - 24px); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--fg-3); }
.legend.center { justify-content: center; margin-top: 14px; }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.legend i.tick { width: 2px; height: 13px; border-radius: 0; }
.legend i.line { width: 16px; height: 2px; border-radius: 0; }
.legend i.today { width: 0; height: 13px; border-left: 2px dashed #A3563E; border-radius: 0; background: none !important; }
.pill { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 500; padding: 3px 10px; border-radius: 999px; white-space: nowrap; background: #EDE8E0; color: var(--fg-1); }
.pill.ok { background: var(--ok-bg); color: var(--pos); } .pill.warn { background: var(--warn-bg); color: var(--warn); } .pill.bad { background: var(--bad-bg); color: var(--neg); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: #EDE8E0; color: var(--fg-1); white-space: nowrap; }
.chip.lg { font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 400; padding: 5px 11px; background: var(--bsd-paper); border: 1px solid var(--line); }
.chip.lg b { font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* key figures */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border-radius: var(--radius); background: var(--bsd-paper-2); border: 1px solid var(--line); color: var(--fg-2); text-decoration: none; min-width: 0; }
a.kpi:hover { border-color: var(--line-strong); color: var(--fg-2); }
.kpi-l { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); }
.kpi-l i { width: 10px; height: 10px; border-radius: 2px; }
.kpi-v, .duo b, .money-top .kpi-v { font-family: var(--serif); font-size: 36px; font-weight: 500; line-height: 1; color: var(--fg-2); white-space: nowrap; }
.kpi-n { font-size: 13px; color: var(--fg-3); }
.cur { font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--fg-3); margin-right: 6px; vertical-align: 0.35em; }

/* thin progress bars: filled = done, tick = planned by today */
.pb { position: relative; display: block; height: 6px; border-radius: 3px; background: var(--track); }
.pb i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; }
.pb u { position: absolute; top: -3px; width: 2px; height: 12px; margin-left: -1px; background: var(--fg-2); }
.pb.wide { height: 8px; margin: 8px 0 4px; }

/* company: projects list */
.plist { display: flex; flex-direction: column; }
.plist-h, .plist-r { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1.2fr) minmax(0, 1.05fr) minmax(0, 1.4fr) 128px; gap: 28px; align-items: center; padding: 0 24px; }
.plist-h { padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); }
.plist-h > span:last-child, .pl-sched { text-align: right; justify-self: end; }
.plist-r { min-height: 78px; padding-top: 12px; padding-bottom: 12px; border-top: 1px solid var(--line-soft); color: var(--fg-2); text-decoration: none; }
.plist-h + .plist-r { border-top: 0; }
.plist-r:hover { background: rgba(88, 79, 70, 0.035); color: var(--fg-2); }
.plist-r small { display: block; color: var(--fg-3); }
.pl-name { min-width: 0; }
.pl-name b { display: block; font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-name small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-prog { display: flex; flex-direction: column; gap: 8px; }
.pl-bar { display: grid; grid-template-columns: 46px minmax(0, 1fr) 38px; gap: 10px; align-items: center; font-size: 12.5px; color: var(--fg-3); }
.pl-bar b { text-align: right; font-weight: 400; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.pl-coll { display: flex; flex-direction: column; gap: 5px; min-width: 0; font-size: 13px; }
.pl-cn { display: flex; justify-content: space-between; gap: 8px; }
.pl-cn b { font-weight: 400; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-next { min-width: 0; font-size: 14px; }

/* attention (21 Nov 2026: the date column 84 px wide, for a full date DD/MM/YYYY; it was sized for DD/MM and the date ran
   into the words; the same for the billing and variation rows, row3) */
.att-g { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 4px; border-top: 1px solid var(--line); }
.att-g:first-of-type { border-top: 0; padding-top: 0; }
.att-p { font-size: 11.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--label); text-decoration: none; }
.att-r { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 7px 0; font-size: 14px; }
.att-r .d, .up-d, .row3 .d { color: var(--fg-3); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* timelines */
.tl { display: flex; flex-direction: column; gap: 12px; }
.tl-axis { position: relative; height: 18px; font-size: 11.5px; color: var(--fg-3); border-bottom: 1px solid var(--line); }
.tl-axis span { position: absolute; top: 0; white-space: nowrap; }
.tl-body { position: relative; display: flex; flex-direction: column; gap: 16px; }
.tl-row { display: flex; flex-direction: column; gap: 7px; text-decoration: none; color: var(--fg-2); }
.tl-lab { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tl-lab b { font-weight: 500; font-size: 14.5px; }
.tl-lab small { color: var(--fg-3); white-space: nowrap; }
.tl-bars { position: relative; display: flex; flex-direction: column; gap: 4px; }
.tl-bar { position: relative; display: block; height: 10px; border-radius: 5px; background: var(--track); overflow: hidden; }
.tl-bars .tl-bar { position: relative; }
.tl-bar i { position: absolute; left: 0; top: 0; bottom: 0; }
.tl-end { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--fg-2); }
.tl-today { position: absolute; top: -4px; bottom: -4px; width: 0; border-left: 1.5px dashed #A3563E; pointer-events: none; }

/* charts */
.chart { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; }
.ch-y { position: relative; font-size: 11px; color: var(--fg-3); text-align: right; }
.ch-y span { position: absolute; right: 0; transform: translateY(50%); }
.ch-main { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ch-plot { position: relative; }
.ch-grid { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed #E6E0D7; }
.ch-grid.zero { border-top: 1px solid #BDB3A6; }
.ch-cols { position: absolute; inset: 0; display: grid; }
.ch-col { position: relative; }
.ch-col i { position: absolute; width: min(20px, 34%); border-radius: 3px 3px 0 0; }
.ch-col b { position: absolute; left: 50%; width: 8px; height: 8px; margin: 0 0 -4px -4px; border-radius: 50%; background: var(--bsd-paper-2); box-shadow: inset 0 0 0 2px var(--fg-2); z-index: 2; }
.ch-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ch-line polyline { fill: none; stroke: var(--fg-2); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ch-x { display: grid; font-size: 11.5px; color: var(--fg-3); text-align: center; }
/* chart cards (10 Nov 2026): pointing at a column lights it and shows its figures at once */
[data-tips] { position: relative; }
[data-tip] { outline-offset: -2px; }
.ch-col.on { background: rgba(88, 79, 70, 0.07); }
.ch-col.on::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: rgba(88, 79, 70, 0.4); }
.ch-col.on b { width: 12px; height: 12px; margin: 0 0 -6px -6px; }
.b6.on .b6-plot { background: rgba(88, 79, 70, 0.07); }
.b6.on .b6-m { color: var(--fg-2); font-weight: 500; }
.tip { position: absolute; z-index: 5; display: flex; flex-direction: column; gap: 4px; min-width: 196px; max-width: 260px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px;
       background: var(--bsd-paper-2); box-shadow: 0 6px 18px rgba(63, 56, 51, 0.14); font-size: 13px; line-height: 1.35; color: var(--fg-2); pointer-events: none; }
.tip[hidden] { display: none; }
.tip b { font-weight: 500; margin-bottom: 2px; }
.tip-r { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.tip-r > span:first-child { display: inline-flex; align-items: center; gap: 7px; color: var(--fg-3); }
.tip-r > span:last-child { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tip-r i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
.tip-r i.ln { height: 2px; border-radius: 0; }
.tip-r.tot { margin-top: 3px; padding-top: 6px; border-top: 1px solid var(--line); }
.tip .pos { color: var(--pos); } .tip .neg { color: var(--neg); }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.duo.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.duo > div { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 10px; background: #F4F0E9; min-width: 0; }
.duo span, .trio span { font-size: 12.5px; color: var(--fg-3); }
.duo b { font-size: 26px; }
.duo small { color: var(--fg-3); }
.bars6 { display: grid; gap: 6px; border-bottom: 0; }
.b6 { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.b6-plot { position: relative; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; border-bottom: 1px solid #BDB3A6; }
.b6-in, .b6-out { display: flex; flex-direction: column; justify-content: flex-end; width: min(24px, 40%); }
.b6-in i, .b6-out i { display: block; width: 100%; }
.b6-in i:first-child, .b6-out i { border-radius: 3px 3px 0 0; }
.b6-m { font-size: 11.5px; color: var(--fg-3); }
.b6-n { font-size: 12.5px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.bars6 + .legend { margin-top: 12px; }
.hbars { display: flex; flex-direction: column; gap: 14px; }
.hb { display: flex; flex-direction: column; gap: 6px; color: var(--fg-2); text-decoration: none; min-width: 0; }
.hb.row { display: grid; grid-template-columns: minmax(120px, 1.1fr) minmax(0, 1.4fr) 84px; gap: 12px; align-items: center; font-size: 14px; }
.hb.row b { font-weight: 400; text-align: right; font-variant-numeric: tabular-nums; }
.hb-t { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; min-width: 0; }
.hb-t small { color: var(--fg-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hb-track { position: relative; display: block; height: 10px; border-radius: 5px; background: var(--track); overflow: hidden; }
.hb-track i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--bsd-espresso); }
.hb-track.full { width: 100%; }
a.hb:hover .hb-t { text-decoration: underline; text-decoration-color: var(--line-strong); }

/* project overview */
.rings { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.ring-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.ring-cell b { font-weight: 500; font-size: 15px; margin-top: 6px; }
.ring-cell small { color: var(--fg-3); }
.ring { position: relative; }
.ring svg { display: block; }
.ring-track { fill: none; stroke: var(--track); stroke-width: 10; }
.ring-fill { fill: none; stroke-width: 10; stroke-linecap: round; }
.ring-tick { stroke: var(--fg-2); stroke-width: 2.5; }
.ring-v { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 32px; font-weight: 500; color: var(--fg-2); }
.money-top { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.money-top small { color: var(--fg-3); }
.mstack { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--track); margin-bottom: 12px; }
.mstack i { display: block; height: 100%; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.trio > div { display: flex; flex-direction: column; gap: 2px; }
.trio span { display: flex; align-items: center; gap: 6px; }
.trio span i { width: 10px; height: 10px; border-radius: 2px; }
.trio span i.hollow { background: var(--track); box-shadow: inset 0 0 0 1px #D9D1C6; }
.trio b { font-weight: 400; font-size: 16px; font-variant-numeric: tabular-nums; }
.card .duo { margin-bottom: 0; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--radius); background: var(--bsd-paper-2);
        border: 1px solid var(--line); color: var(--fg-2); text-decoration: none; }
.tile:hover { border-color: var(--line-strong); color: var(--fg-2); }
.tile > b { font-family: var(--serif); font-size: 48px; font-weight: 500; line-height: 1; }
.tile strong { display: block; font-weight: 500; font-size: 15px; }
.tile small { display: block; color: var(--fg-3); }
.tile .ic { color: var(--label); }
.up { display: flex; flex-direction: column; }
.up-r { display: grid; grid-template-columns: 56px 12px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.up-r:first-child { border-top: 0; padding-top: 0; }
.up-d { font-family: var(--serif); font-size: 19px; color: var(--fg-2); line-height: 1.2; }
.up-t { font-size: 14px; }
.up-t small { display: block; color: var(--fg-3); }
.up-r > i { margin-top: 6px; }
i.dot { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--bsd-sage); }
i.dot.end { background: #9A785F; }
i.dia { display: inline-flex; align-items: center; justify-content: center; width: 10px; height: 10px; transform: rotate(45deg) scale(0.9); background: var(--fg-2); border-radius: 1px; flex-shrink: 0; }
i.dia.hollow { background: transparent; box-shadow: inset 0 0 0 1.5px var(--fg-2); }
.gate { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 10px; background: #F4F0E9; margin-bottom: 10px; font-size: 14px; }
.gate small { display: block; color: var(--fg-3); }
.gate b { font-weight: 500; font-size: 13.5px; white-space: nowrap; }
.gate.over b { color: var(--neg); }
.gates .gate { background: transparent; border-bottom: 1px solid var(--line-soft); border-radius: 0; margin: 0; padding: 11px 0; }
.gates .gate.done { color: var(--fg-3); }
.gates i.ok { display: flex; width: 16px; height: 16px; color: var(--pos); }
.gates i.ok .ic { width: 16px; height: 16px; }
.so-sum { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-top: 6px; }
.so-sum span:last-child { color: var(--fg-3); }
.so-sum b { color: var(--fg-2); font-weight: 500; }
.so-sum.big { font-size: 15px; }
.so-sum.big b { font-family: var(--serif); font-size: 26px; }
.so-r { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0 7px 2px; font-size: 14px; border-top: 1px solid var(--line-soft); }
.so-r small { display: block; color: var(--fg-3); }
.so-r .chips { margin: 0; flex-shrink: 0; align-items: center; gap: 6px; }

/* grouped lists (sign-offs) */
details.grp { border-top: 1px solid var(--line-soft); }
details.grp > summary { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 0; cursor: pointer; list-style: none; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--label); }
details.grp > summary::-webkit-details-marker { display: none; }
details.grp > summary::before { content: '▸'; margin-right: 6px; font-size: 10px; color: var(--bsd-sage); }
details.grp[open] > summary::before { content: '▾'; }
details.grp > summary > span:first-child { flex: 1; }
details.grp > summary .cnt { font-size: 12px; text-transform: none; letter-spacing: 0; }
.subh { margin: 14px 0 2px; font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--neg); }
.card .subh { color: var(--label); }

/* rows of figures (project financials) */
.rows { display: flex; flex-direction: column; }
.row2 { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.row2 > span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.row2 small { display: block; color: var(--fg-3); font-size: 12px; }
.row2.tot { font-weight: 500; border-top-color: var(--line-strong); }
.row2.grand { font-size: 15.5px; }
.row3 { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto auto; gap: 12px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.row3 .n { white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.row3.tot { font-weight: 500; border-top-color: var(--line-strong); }
.row3.tot small { display: block; font-weight: 400; font-size: 12px; color: var(--fg-3); }
.rows:first-child > :first-child { border-top: 0; }

/* programme: planned vs actual */
.pv .pv-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; align-items: start; margin-bottom: 14px; }
.pv h2 { margin: 0 0 4px; }
.pv-n { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.pv-n b { font-family: var(--serif); font-size: 40px; font-weight: 500; line-height: 1; }
.pv-n span { color: var(--fg-3); font-size: 13px; }
.pv-bars { display: flex; flex-direction: column; gap: 8px; }
.pv-r { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 70px; gap: 12px; align-items: center; font-size: 13.5px; }
.pv-r b { font-weight: 400; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pv-r small { color: var(--fg-3); }
.curve { width: 100%; height: auto; max-height: 130px; }
.cv-g { stroke: #E6E0D7; stroke-width: 1; }
.cv-t { font-size: 9px; fill: var(--fg-3); font-family: var(--sans); }
.cv-today { stroke: #A3563E; stroke-width: 1; stroke-dasharray: 3 3; }
.cv-plan { fill: none; stroke: var(--fg-2); stroke-width: 1.6; stroke-dasharray: 4 3; }
.cv-act { fill: none; stroke: #9A785F; stroke-width: 2.2; }
.pv + .legend, .grid2 + .legend { margin: -8px 0 8px; }

details.fold { margin: 8px 0 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bsd-paper-2); }
details.fold > summary { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 20px; cursor: pointer; list-style: none; font-size: 15px; color: var(--fg-1); }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: '＋'; margin-left: auto; color: var(--label); }
details.fold[open] > summary::after { content: '－'; }
details.fold[open] > summary { border-bottom: 1px solid var(--line); }
details.fold > .fold-in { padding: 14px 20px 16px; }
.flinks-t { margin: -4px 0 10px; font-size: 14px; }

/* figures inside the older pages (Billing, Scope & cost, Procurement) */
.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0 0 12px; }
.fig { padding: 14px 16px; border-radius: 10px; background: var(--bsd-paper-2); border: 1px solid var(--line); min-width: 0; }
.fig .k { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); }
.fig .v { font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--fg-2); margin-top: 4px; white-space: nowrap; }
.fig .s { font-size: 12.5px; color: var(--fg-3); margin-top: 2px; }

/* tables */
.tw { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-weight: 500; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3);
     padding: 8px 10px 7px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
td.n, th.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.c { white-space: nowrap; }
.meta + .tw { margin-top: 20px; }
tr.sec td { font-family: var(--serif); font-size: 17px; color: var(--fg-1); padding-top: 18px; border-bottom-color: var(--line-strong); }
tr.sub td { color: var(--fg-3); }
tr.tot td { font-weight: 500; color: var(--fg-1); border-top: 1px solid var(--line-strong); }
/* Financials: the projects of the period (11 Nov 2026) */
.pp-t td small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--fg-3); }
.pp-t td a { color: inherit; text-decoration: none; }
.pp-t td a:hover b { text-decoration: underline; text-underline-offset: 3px; }
tr.omit td { color: var(--fg-3); text-decoration: line-through; text-decoration-color: var(--bsd-taupe); }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--bsd-paper-2); }
tr.detail > td { background: var(--bsd-paper-2); padding: 4px 10px 12px 26px; }
.tag { display: inline-block; font-size: 10.5px; letter-spacing: 0.08em; padding: 1px 7px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--fg-2); white-space: nowrap; }
.tag.ok { border-color: rgba(94, 122, 87, 0.5); color: var(--pos); }
.tag.warn { border-color: rgba(180, 149, 126, 0.8); color: #8A6A52; }
.tag.bad { border-color: rgba(163, 86, 62, 0.6); color: var(--neg); }
.pos { color: var(--pos); } .neg { color: var(--neg); }

/* mini programme bars */
.gb { position: relative; height: 10px; min-width: 160px; background: transparent; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.gb i { position: absolute; top: 2px; height: 6px; background: rgba(145, 141, 117, 0.35); border-radius: 1px; }
.gb i b { position: absolute; left: 0; top: 0; bottom: 0; background: var(--bsd-sage); border-radius: 1px; }
.gb u { position: absolute; top: -2px; bottom: -2px; width: 1px; background: var(--bsd-taupe); }
/* the working programme beside the client programme (12 Nov 2026): two bars per task, the working one above */
.wb { position: relative; height: 16px; min-width: 120px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.wb i { position: absolute; height: 5px; border-radius: 1px; }
.wb i.w, .wp-key i.w { top: 2px; background: var(--bsd-espresso-warm); }
.wb i.c, .wp-key i.c { top: 9px; background: var(--bsd-taupe); }
.wb u { position: absolute; top: -2px; bottom: -2px; width: 1px; background: var(--bsd-espresso); opacity: 0.55; }
.wp-key { display: inline-flex; align-items: center; gap: 6px; margin-right: 14px; white-space: nowrap; }
.wp-key i { display: inline-block; width: 22px; height: 5px; border-radius: 1px; }
.wp-t td small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--fg-3); }
.wp-t .wp-left { white-space: nowrap; }
.wp-t .wp-left small { white-space: normal; }
.wp-figs .fig .v.neg { color: var(--neg); }
/* a task's short title in bold with its longer description under it (12 Nov 2026): programme tables and the Daily plan */
.tk-t { display: block; }
.tk-d { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: var(--fg-3); }
/* the rooms a Daily plan line is for, moved after its words (15 Nov 2026, linetitle.js) */
.tk-rooms { display: block; margin-top: 2px; font-size: 12px; line-height: 1.35; color: var(--fg-3); }
.lvl1 td { font-weight: 400; color: var(--fg-1); }
.lvl1 td:first-child { padding-left: 14px; }
.lvl2 td:first-child { padding-left: 26px; color: var(--fg-3); }
.lvl2 td:nth-child(2) { padding-left: 24px; }

/* lists */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.feed .d { color: var(--fg-3); font-size: 12.5px; }
.files { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); }
.files li { padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; overflow-wrap: anywhere; }

/* filter boxes on long lists (30 Sep 2026): rows that do not match are hidden while there is text */
.fbox { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 14px; }
.fbox .ic { position: absolute; left: 12px; top: 11px; color: var(--label); pointer-events: none; }
.fbox input { width: min(100%, 380px); padding: 0 12px 0 38px; }
.fcount { font-size: 13px; color: var(--fg-3); }
.fx-out { display: none !important; }

/* the two legal entities (3 Oct 2026): a small chip on every money row — BSD in the sage accent, BSA in the taupe one;
   an Entity filter (All / BSD / BSA) in the filter-box pattern; the cards and the Entities table on the Financials pages */
.chip.ent { gap: 0; padding: 1px 7px; letter-spacing: 0.1em; vertical-align: 1px; border: 1px solid var(--line-strong); background: var(--bsd-paper); color: var(--fg-2); }
.chip.ent-bsd { border-color: var(--bsd-sage); background: rgba(145, 141, 117, 0.16); background: color-mix(in srgb, var(--bsd-sage) 16%, transparent); }
.chip.ent-bsa { border-color: var(--bsd-taupe); background: rgba(180, 149, 126, 0.18); background: color-mix(in srgb, var(--bsd-taupe) 18%, transparent); }
td .chip.ent, .row2 .chip.ent, h2 .chip.ent { margin-right: 2px; }
h2 .chip.ent { vertical-align: 4px; }
.fbox.ent-f label { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--label); }
.fbox select { min-height: 40px; padding: 0 10px; font: inherit; font-size: 15px; color: var(--fg-2); background: var(--bsd-paper-2); border: 1px solid var(--line-strong); border-radius: 8px; cursor: pointer; max-width: 100%; }
.fbox select:focus { outline: none; border-color: var(--bsd-sage); box-shadow: 0 0 0 3px rgba(145, 141, 117, 0.22); }
/* Procurement overview (11 Nov 2026) */
.pc-f { gap: 8px 12px; }
.pc-f input[type="search"] { width: min(100%, 260px); }
.pc-f select { max-width: 220px; }
.fbox.ent-f label.pc-chk { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; font-size: 14.5px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--fg-2); }
.fbox .pc-chk input { flex: 0 0 auto; width: 18px; height: 18px; min-height: 0; padding: 0; accent-color: var(--bsd-espresso); }
.pc-t { table-layout: fixed; width: 100%; min-width: 940px; }
.pc-t td { overflow-wrap: break-word; }
.pc-figs .v.bad { color: var(--neg); }
.pc-g { margin-top: 16px; }
.pc-g .card-h h2 .cnt { margin-left: 6px; }
.pc-g.ps { margin-top: 16px; }
.pc-t td small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--fg-3); }
.pc-t td small.bad { color: var(--neg); } .pc-t td small.warn { color: var(--warn); }
@media (max-width: 720px) {
  .pc-f input[type="search"], .pc-f select { width: 100%; max-width: none; min-height: 44px; }
  .pc-f label:not(.pc-chk) { flex: 0 0 100%; margin-bottom: -4px; }
  .fbox.ent-f label.pc-chk { min-height: 44px; }
  .fbox .pc-chk input { width: 22px; height: 22px; }
  .pc-t { min-width: 0; }
}
.ent-out { display: none !important; }
/* the stages of each procurement item (part P0, 15 Nov 2026): a row per item on a computer, a card with chips on a phone */
.ps-hd, .ps-r { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1.5fr) repeat(5, minmax(0, 1fr)) minmax(0, 0.55fr); gap: 8px; align-items: center; }
.ps-st { min-width: 0; overflow-wrap: anywhere; font-size: 13.5px; color: var(--fg-2); }
.ps-i .tag { margin-left: 4px; vertical-align: 1px; }
.tag.byc { border-color: var(--line-strong); background: var(--bsd-paper-cool); color: var(--fg-3); }
.ps-hd { padding: 0 0 8px; border-bottom: 1px solid var(--line-strong); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--label); }
.ps-hd span:nth-child(n+8), .ps-p { text-align: right; }
.ps-r { padding: 8px 0; border-bottom: 1px solid var(--line); }
.ps-sec { padding: 14px 0 4px; font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); border-bottom: 1px solid var(--line); }
.ps-i { min-width: 0; overflow-wrap: anywhere; }
.ps-i small, .ps-st small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--fg-3); }
.ps-st small.bad { color: var(--neg); } .ps-st small.warn { color: var(--warn); }
.ps-c { position: relative; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; padding: 4px 8px; min-height: 32px; border-radius: 8px; border: 1px solid var(--line); font-size: 13px; color: var(--fg-2); }
.ps-c.done { background: var(--ok-bg); border-color: transparent; color: var(--pos); }
.ps-c.late { background: var(--bad-bg); border-color: transparent; color: var(--neg); }
.ps-c.na { border-style: dashed; color: var(--fg-3); justify-content: center; }
.ps-c .late-m { margin-left: 0; }
.ps-w { white-space: nowrap; }
.ps-c .ps-w { white-space: normal; }       /* (17 Nov 2026) dates are DD/MM/YYYY: "due" and the date may wrap in a narrow column */
.ps-p { position: relative; font-family: var(--serif); font-size: 19px; color: var(--fg-2); }
.ps-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ps { margin-top: 16px; }
.ps .note { margin: 12px 0 0; }
@media (max-width: 720px) {
  .ps-hd { display: none; }
  .ps-r { display: flex; flex-wrap: wrap; align-items: stretch; gap: 6px; padding: 12px 0; }
  .ps-i { flex: 0 0 100%; font-size: 14.5px; }
  .ps-st { flex: 0 0 100%; margin-bottom: 2px; }
  .ps-c, .ps-p { position: relative; flex: 1 1 calc(33.333% - 6px); min-width: 96px; min-height: 44px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding: 4px 8px; text-align: left; }
  .ps-p { display: flex; border: 1px solid var(--line); border-radius: 8px; font-size: 17px; }
  .ps-c.na { align-items: flex-start; }
  .ps-l { position: static; width: auto; height: auto; overflow: visible; clip: auto; font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); white-space: normal; }
  .ps-c .ps-w { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; white-space: normal; }
}

.ent-cards .card-h h2 { display: flex; align-items: center; gap: 10px; }
.ent-cards .duo { margin-bottom: 0; }
.ent-cards .duo small { font-size: 11.5px; }
.ent-t td small, .con-t td small { display: block; color: var(--fg-3); font-size: 12px; }
.ent-t b { font-weight: 500; }
.row3 .d { white-space: normal; overflow-wrap: anywhere; }      /* a VO code of the new form (BSA-VO-01) breaks at a hyphen instead of running into the title */
.ent-split { color: var(--fg-3); font-size: 13px; }
.ent-split > span:last-child { white-space: normal; }
.ent-rows .row2 > span:first-child { display: inline-flex; align-items: center; gap: 6px; }

/* groups that open and close (Scope & cost, Variations): the header row carries the group's totals */
tr.grp { cursor: pointer; }
tr.grp.flat { cursor: default; }
tr.grp:hover td { background: var(--bsd-paper-2); }
tr.grp.flat:hover td { background: none; }
.gbtn, .gname { display: inline-flex; align-items: baseline; gap: 8px; padding: 0; border: 0; background: none; font-family: var(--serif); font-size: 17px; line-height: 1.25;
                color: var(--fg-1); text-align: left; cursor: pointer; }
.gname { cursor: default; padding-left: 18px; }
.gbtn::before { content: '▸'; flex-shrink: 0; width: 10px; font-family: var(--sans); font-size: 10px; color: var(--bsd-sage); }
.gbtn[aria-expanded="true"]::before { content: '▾'; }
tr.grp small { display: block; margin: 2px 0 0 18px; color: var(--fg-3); }
tbody.gl > tr:last-child > td { border-bottom-color: var(--line-strong); }
tr.omv td, tr.vl.om td { color: var(--fg-3); }
tr.vl small { display: block; color: var(--fg-3); }
tr.est .est-m { font-size: 11.5px; color: var(--fg-3); }
.inv-t .chip, .bs-t .chip { font-size: 10px; }
.inv-t td small.bto, .bs-t td small.bto { display: block; margin-top: 2px; font-size: 12px; color: var(--fg-3); }   /* "Billed to …" under a third-party row (19 Oct 2026) */

/* the yearly profit and loss (G12, 14 Oct 2026): years across, a line opens to its entries */
.pnl-t td:first-child { min-width: 180px; }
.pnl-t tr.key td { font-size: 14.5px; }
.pnl-t tr.fin td { border-bottom: 3px double var(--line-strong); }
.pnl-t tr.sub td { font-size: 12.5px; border-bottom-color: var(--line-soft); }
.pnl-t tr.pl-tax td { color: var(--fg-3); }
.pnl-t .tag { font-size: 10px; margin-left: 4px; }
.pl-b { font-family: var(--sans); font-size: 13.5px; line-height: 1.35; }
.pl-e { font-size: 12.5px; }
.pl-e td small { display: block; color: var(--fg-3); font-size: 12px; }
.pl-e small.pl-n { font-style: italic; }
.pl-e tr.pl-y td { padding-top: 12px; font-weight: 500; color: var(--fg-1); border-bottom-color: var(--line-strong); }
.card > h3:first-of-type { margin-top: 0; }
.pl-intro { margin: 0 0 4px; }
.pl-rc { margin-top: 18px; }
.pl-yr { display: none; }
@media (max-width: 720px) {        /* a phone: the statement shows one year, picked above it */
  .pl-yr { display: flex; justify-content: flex-start; margin-bottom: 10px; }
  .pnl-t .yo { display: none; }
  .pnl-t td:first-child { min-width: 0; }
  .pnl-t tr.detail > td { padding: 4px 0 10px 0; }
}

/* login */
.login { max-width: 380px; margin: 12vh auto 0; padding: 0 22px; }
.login h1 { font-size: 44px; }
.login-logo { display: block; width: auto; height: 40px; margin: 0 0 22px; }
.login p { color: var(--fg-3); }
/* sign-in page: "Client portal" label above the heading and the short explanation under it */
.login-tag { font-size: 11.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--label); margin: 0 0 2px; }
.login p.login-intro { color: var(--fg-2); line-height: 1.55; margin: 14px 0 0; }
.login label { display: block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-3); margin: 18px 0 6px; }
.login input { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line-strong); background: var(--bsd-paper-2); color: var(--fg-2); border-radius: 2px; }
.login input:focus { outline: none; border-color: var(--bsd-sage); }
.btn { margin-top: 22px; width: 100%; padding: 11px 14px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; background: var(--bsd-espresso); color: var(--bsd-paper); border: 0; border-radius: 2px; cursor: pointer; }
.btn:disabled { opacity: 0.5; }
.msg { margin-top: 14px; font-size: 13px; color: var(--neg); min-height: 18px; }
.msg.ok { color: var(--pos); }
.boot { font-family: var(--serif); font-size: 26px; color: var(--fg-3); text-align: center; margin-top: 30vh; }
/* the demo for potential buyers (21 Nov 2026, js/demo.js): its first page, who to sign in as, and the band saying it is a demo */
.login.demo-in { max-width: 460px; margin-top: 9vh; padding-bottom: 96px; }
.login.demo-in .login-logo { max-width: 100%; max-height: 56px; height: auto; }
.login.demo-in h1 { margin: 2px 0 0; overflow-wrap: anywhere; }
.demo-note { font-size: 13.5px; margin: 14px 0 0; }
.demo-roles { display: grid; gap: 10px; margin-top: 22px; }
.demo-role { display: block; width: 100%; text-align: left; font: inherit; padding: 14px 16px; min-height: 44px; background: var(--bsd-paper-2);
  color: var(--fg-2); border: 1px solid var(--line-strong); border-left: 4px solid var(--bsd-espresso); border-radius: 2px; cursor: pointer; }
.demo-role:hover, .demo-role:focus-visible { border-color: var(--bsd-espresso); outline: none; }
.demo-role b { display: block; font-weight: 500; font-size: 15px; color: var(--bsd-espresso); }
.demo-role small { display: block; margin-top: 3px; font-size: 13px; color: var(--fg-3); line-height: 1.4; }
.demo-band { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px);
  padding: 6px 6px 6px 14px; font-size: 12.5px; background: var(--bsd-espresso-deep); color: var(--bsd-paper); border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); }
.demo-band button { font: inherit; font-size: 12px; padding: 6px 12px; min-height: 32px; border: 0; border-radius: 999px; background: var(--bsd-paper);
  color: var(--bsd-espresso-deep); cursor: pointer; }
.brand img { display: inline-block; height: 26px; width: auto; max-width: 150px; vertical-align: -4px; margin-right: 6px; }
@media (max-width: 960px) {
  /* above the phone's bottom bar */
  .demo-band { right: 10px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); font-size: 12px; }
  .demo-band button { min-height: 36px; }
}


/* ===== narrower windows and phones: the sidebar slides in from the left under the menu button ===== */
@media (max-width: 1180px) {
  .page { padding: 32px 28px 64px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plist-h { display: none; }
  .plist-r { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 24px; align-items: start; padding-top: 16px; padding-bottom: 16px; }
  .plist-r:first-of-type { border-top: 1px solid var(--line-soft); }
  .pl-name { grid-column: 1; }
  .pl-sched { grid-column: 2; grid-row: 1; }
  .pl-next small { white-space: normal; }
}
@media (max-width: 960px) {
  .grid2, .grid2.wide-l { grid-template-columns: minmax(0, 1fr); }
  .grid2 > .card { height: auto; }
  .tiles { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
@media (max-width: 720px) {
  .page { padding: 20px 16px 56px; }
  h1 { font-size: 34px; }
  .sec-h h1 { font-size: 32px; }
  h2 { font-size: 23px; }
  .phead { margin-bottom: 20px; }
  .card { padding: 16px; margin-bottom: 16px; }
  .card.flush { padding: 16px 0 0; }
  .card.flush > .card-h { padding: 0 16px; }
  .kpis { gap: 10px; margin-bottom: 16px; }
  .kpis.three { grid-template-columns: minmax(0, 1fr); }
  .kpi { padding: 14px; gap: 6px; }
  .kpi-v, .money-top .kpi-v { font-size: 27px; }
  .duo b { font-size: 21px; }
  .cur { font-size: 11.5px; margin-right: 4px; }
  .plist-r { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; gap: 10px; }
  .pl-sched { grid-column: 1; grid-row: auto; justify-self: start; text-align: left; order: -1; }
  .pl-name { order: -2; }
  .proj-h { margin-bottom: 20px; }
  .flinks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .flinks a { justify-content: space-between; min-height: 44px; }
  .rings { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .ring { width: 92px !important; height: 92px !important; }
  .ring svg { width: 92px; height: 92px; }
  .ring-v { font-size: 25px; }
  .ring-cell b { font-size: 13.5px; }
  .ring-cell small { font-size: 11.5px; }
  .trio b { font-size: 14.5px; }
  .tile { padding: 14px 16px; }
  .tile > b { font-size: 38px; }
  .up-r { grid-template-columns: 52px 10px minmax(0, 1fr); }
  .up-r .chip { display: none; }
  .att-r { grid-template-columns: 84px minmax(0, 1fr); }
  .att-r .chip { grid-column: 2; justify-self: start; }
  .pv .pv-top { grid-template-columns: minmax(0, 1fr); }
  .hb.row { grid-template-columns: minmax(0, 1fr) 72px; }
  .hb.row .hb-track { grid-column: 1 / -1; grid-row: 2; }
  .row3 { grid-template-columns: 84px minmax(0, 1fr) auto; }
  .row3 > :nth-child(4) { grid-column: 2; justify-self: start; }
  .duo.three { grid-template-columns: minmax(0, 1fr); }
  .chart { grid-template-columns: 34px minmax(0, 1fr); gap: 4px; }
  .ch-x span:nth-child(even) { visibility: hidden; }
  .tl-lab { flex-direction: column; gap: 0; }
  .tl-axis span:nth-child(even) { visibility: hidden; }
  .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .fig { padding: 12px; }
  .fig .v { font-size: 21px; white-space: normal; }
  .feed li { grid-template-columns: 80px 1fr; }
  .feed li .n { grid-column: 2; }
  .gb { min-width: 0; }
  .wb { min-width: 0; }
  .period { justify-content: flex-start; }
  .per-l { text-align: left; }
  .period select, .fbox input { font-size: 16px; }
  .fbox input { width: 100%; }
  .tw { overflow-x: visible; }
}
@media (min-width: 721px) { tbody.gl:not(.pg) > tr:not(.detail) > td:first-child { padding-left: 28px; } }

/* tables on a phone (stackTable in portal.js marks them): each row a block, its title first, then label / value lines */
@media (max-width: 720px) {
  table.stack, table.stack > tbody, table.stack > tbody > tr, table.stack > tbody > tr > td { display: block; width: auto !important; }
  table.stack > tbody > tr.hd, table.stack > tbody > tr[hidden], table.stack > tbody[hidden] { display: none; }
  table.stack > tbody.gl > tr, table.stack > tbody.pt-lines > tr { margin-left: 4px; padding-left: 12px; border-left: 2px solid var(--line-strong); }
  table.stack > tbody > tr.grp > td.t { padding-bottom: 2px; }
  table.stack > tbody > tr { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid var(--line); }
  table.stack > tbody > tr > td { display: grid; grid-template-columns: minmax(84px, 38%) minmax(0, 1fr); gap: 12px; padding: 2px 0; border: 0; text-align: left; white-space: normal; overflow-wrap: anywhere; }
  table.stack .tag { display: inline-block; }
  table.stack > tbody > tr > td::before { content: attr(data-label); padding-top: 2px; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); }
  table.stack > tbody > tr > td.n > .v { text-align: right; }
  table.stack > tbody > tr > td.t { display: block; order: -1; padding-bottom: 4px; font-size: 14.5px; color: var(--fg-1); }
  table.stack > tbody > tr > td.t::before, table.stack > tbody > tr.full > td::before { content: none; }
  table.stack > tbody > tr > td.blank { display: none; }
  table.stack > tbody > tr.full { display: block; }
  table.stack > tbody > tr.full[hidden] { display: none; }            /* a closed detail row stays closed */
  table.stack > tbody > tr.full > td { display: inline; padding: 0 8px 0 0; }
  table.stack > tbody > tr.sec { padding-top: 18px; }
  table.stack > tbody > tr.detail > td { display: block; padding: 4px 0 4px 12px; border-left: 2px solid var(--line-strong); }
  table.stack > tbody > tr.tot > td.t { font-weight: 500; }
  table.stack tr.click:hover td { background: none; }
}

/* ===== client portal (G7; redesign 28 Sep 2026) — calm cards in the staff app's style; on a phone the page links
   become a tab bar at the bottom of the screen ===== */
.pt { --gut: clamp(16px, 4vw, 48px); max-width: none; margin: 0; padding-inline: var(--gut); padding-block: 0 56px; }
.pt-preview { margin-inline: calc(-1 * var(--gut)); padding: 9px var(--gut); background: var(--bsd-espresso); color: var(--bsd-paper); font-size: 13px; letter-spacing: 0.02em; }
.pt-preview a { color: var(--bsd-paper); margin-left: 8px; }
.pt-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; border-bottom: 1px solid var(--line); }
.pt-logo { display: block; width: auto; height: 36px; }
.pt-who { font-size: 13px; color: var(--fg-3); display: flex; gap: 16px; align-items: center; min-width: 0; }
.pt-who .em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-hero { padding: 40px 0 22px; }
.pt-hero h1 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 500; margin: 8px 0 0; }
.pt-sub { margin: 8px 0 0; font-size: 15px; color: var(--fg-3); }
.pt-switch { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 40px); color: var(--fg-2); background: transparent; border: 0; border-bottom: 1px solid var(--line-strong);
             padding: 4px 0; margin: 6px 0 0; max-width: 100%; }
.pt-ic { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* the page links: underlined tabs on a computer */
.pt-tabs { position: sticky; top: 0; z-index: 10; display: flex; gap: 32px; margin-bottom: 28px; background: var(--bsd-paper); border-bottom: 1px solid var(--line); }
.pt-tabs a { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; margin-bottom: -1px; color: var(--fg-3); font-size: 15px; text-decoration: none;
             border-bottom: 2px solid transparent; white-space: nowrap; transition: color 0.2s ease, border-color 0.2s ease; }
.pt-tabs a .pt-ic { width: 18px; height: 18px; opacity: 0.8; }
.pt-tabs a:hover { color: var(--fg-2); }
.pt-tabs a.on { color: var(--fg-2); font-weight: 500; border-bottom-color: var(--fg-2); }
.pt-tabs .s { display: none; }

/* sections */
.pt-page { padding-top: 0; }
.pt-card { padding: 22px 26px 24px; margin-bottom: 24px; background: var(--bsd-paper-2); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.pt-card > h2, .pt-ph2 h2 { margin: 0 0 16px; font-size: 28px; }
.pt-card h3 { margin: 22px 0 10px; }
.pt-card .note { margin-top: 12px; max-width: 80ch; }
.pt-foot { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--fg-3); line-height: 1.5; }
.pt small { display: block; color: var(--fg-3); font-size: 12.5px; margin-top: 2px; }
.pt-file { display: inline-flex; align-items: center; min-height: 30px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: var(--fg-1);
           border: 1px solid var(--line-strong); border-radius: 6px; padding: 3px 10px; white-space: nowrap; background: var(--bsd-paper); }
.pt-file:hover { border-color: var(--bsd-sage); }
.pt-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; align-items: start; }
.pt-two > .pt-card { height: calc(100% - 24px); }

/* next from you */
.pt-callout { display: flex; align-items: center; gap: 16px; padding: 18px 22px; margin-bottom: 24px; border-radius: var(--radius); background: var(--bsd-paper-2); border: 1px solid var(--line-strong); }
.pt-cic { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; background: var(--bsd-espresso); color: var(--bsd-paper); }
.pt-cic .pt-ic { width: 18px; height: 18px; }
.pt-cwhat { flex: 1; min-width: 0; font-size: 17px; }
.pt-cwhat small { font-size: 11.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); margin: 0 0 2px; }
.pt-callout > b { font-family: var(--serif); font-size: 24px; font-weight: 500; white-space: nowrap; }

/* progress: two rings */
.pt-prog { display: grid; grid-template-columns: minmax(200px, 0.8fr) minmax(0, 2fr); gap: 16px 32px; align-items: center; }
.pt-ph2 .note { margin: 0; }
.pt-rings { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 32px; }
.pt-rcell { display: flex; align-items: center; gap: 20px; }
.pt-ring { position: relative; width: 132px; height: 132px; flex-shrink: 0; }
.pt-ring svg { width: 100%; height: 100%; display: block; }
.pt-ring > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 36px; font-weight: 500; color: var(--fg-2); }
.pt-rtrack { fill: none; stroke: var(--track); stroke-width: 9; }
.pt-rfill { fill: none; stroke-width: 9; stroke-linecap: round; }
.pt-rtick { stroke: var(--fg-2); stroke-width: 2.4; }
.pt-rtxt b { display: block; font-size: 18px; font-weight: 500; }
.pt-rtxt small { font-size: 14px; }

/* coming up: a short timeline */
.pt-next { list-style: none; margin: 0; padding: 0; position: relative; }
.pt-next::before { content: ''; position: absolute; left: 91px; top: 14px; bottom: 14px; width: 1px; background: var(--line-strong); }
.pt-next li { position: relative; display: grid; grid-template-columns: 70px 12px minmax(0, 1fr); gap: 16px; align-items: start; padding: 11px 0; font-size: 15px; }
.pt-next li > i { position: relative; z-index: 1; width: 11px; height: 11px; margin-top: 7px; border-radius: 50%; background: var(--bsd-sage); box-shadow: 0 0 0 4px var(--bsd-paper-2); }
.pt-next li.mine > i { border-radius: 1px; transform: rotate(45deg) scale(0.9); background: var(--fg-2); }
.pt-ndate { font-family: var(--serif); font-size: 21px; color: var(--fg-2); line-height: 1.2; white-space: nowrap; }
.pt-nwhat { color: var(--fg-2); }
.pt-hint { margin: -8px 0 6px !important; }

/* programme stages: one line each on a wide screen */
.pt-folds { display: flex; flex-direction: column; gap: 28px; margin-top: 20px; }
.pt-stages { list-style: none; margin: 0; padding: 0; }
.pt-band { font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--label); padding: 16px 0 4px; }
.pt-stage { border-bottom: 1px solid var(--line-soft); }
.pt-stage:last-child { border-bottom: 0; }
.pt-srow { width: 100%; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name pct" "when when" "strip strip"; gap: 3px 10px;
           background: none; border: 0; padding: 11px 0; text-align: left; font: inherit; color: inherit; cursor: pointer; min-height: 44px; }
.pt-srow:disabled { cursor: default; }
.pt-sname { grid-area: name; font-size: 15px; color: var(--fg-2); }
.pt-spct { grid-area: pct; font-size: 14px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.pt-swhen { grid-area: when; font-size: 12.5px; color: var(--fg-3); }
.pt-strip { grid-area: strip; position: relative; height: 6px; margin-top: 4px; }
.pt-strip i { position: absolute; top: 0; height: 6px; background: var(--track); border-radius: 3px; overflow: hidden; }
.pt-strip i b { position: absolute; left: 0; top: 0; bottom: 0; background: #9A785F; }
.pt-strip u { position: absolute; top: -3px; bottom: -3px; width: 0; border-left: 1.5px dashed #A3563E; }
.pt-srow[aria-expanded="true"] .pt-sname { font-weight: 500; }
.pt-tasks { list-style: none; margin: 0 0 10px; padding: 0 0 0 12px; border-left: 1px solid var(--line-strong); }
.pt-tasks li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name pct" "when when"; gap: 1px 10px; padding: 6px 0; font-size: 13.5px; }
.pt-tname { grid-area: name; }
.pt-twhen { grid-area: when; color: var(--fg-3); font-size: 12px; }
.pt-tpct { grid-area: pct; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.pt-gate { color: var(--fg-2); }
/* a task's short title (12 Nov 2026): the ◆ of a sign-off stays on the title's line, the description goes under it */
.pt-tname .tk-t { display: inline; }
@media (min-width: 760px) {
  .pt-srow { grid-template-columns: minmax(180px, 1.4fr) minmax(150px, 0.9fr) minmax(160px, 2.2fr) 56px; grid-template-areas: "name when strip pct"; align-items: center; gap: 0 24px; padding: 11px 0; }
  .pt-two .pt-srow { grid-template-columns: minmax(0, 1fr) minmax(90px, 0.8fr) 48px; grid-template-areas: "name strip pct" "when when when"; gap: 2px 16px; }
  .pt-strip { margin-top: 0; }
  .pt-spct { text-align: right; }
  .pt-tasks li { grid-template-columns: minmax(168px, 1.4fr) minmax(150px, 0.9fr) minmax(0, 2.2fr) 56px; grid-template-areas: "name when . pct"; gap: 0 24px; align-items: baseline; }
  .pt-two .pt-tasks li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name pct" "when when"; gap: 1px 10px; }
  .pt-tpct { text-align: right; }
}

/* tables and figures */
.pt-t td, .pt-t th { padding: 9px 8px; }
.pt-t td:first-child, .pt-t th:first-child { padding-left: 0; }
.pt-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 20px; }
.pt-figs div { padding: 12px 14px; border-radius: 10px; background: #F4F0E9; min-width: 0; }
.pt-figs span { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); }
.pt-figs b { display: block; font-family: var(--serif); font-weight: 500; font-size: 24px; color: var(--fg-2); margin-top: 4px; white-space: nowrap; }
/* Payments (11 Oct 2026): the figures above the invoices, on the page itself; the fourth is the balance still to invoice */
.pt-figs-top { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 24px; }
.pt-figs-top div { background: var(--bsd-paper-2); border: 1px solid var(--line); }
.pt-figs-top .pt-bal { border-color: var(--line-strong); }
/* the payment schedule's expected valuation amounts (11 Oct 2026): marked, and explained above the list */
.pt-expnote { margin: -4px 0 14px; padding: 12px 14px; border-radius: 10px; background: var(--warn-bg); color: var(--fg-2); font-size: 14px; max-width: 80ch; }
.pt-expnote b { font-weight: 500; }
.pt-exp { color: var(--fg-3); font-style: italic; }
.pt .pt-exp small { font-style: normal; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0; }

/* lists (30 Sep 2026): invoices, valuations, variation orders and weekly reports, one line each */
.pt-t .chip { font-size: 10px; }
.pt-t td .pt-file { min-height: 28px; }
.pt-vo-t .pt-gsub { margin-left: 18px; }
.pt-lines td { color: var(--fg-2); }
.pt-lines tr.om td { color: var(--fg-3); }
.pt-lines td small { margin-top: 1px; }
.pt-lines > tr:last-child > td { border-bottom-color: var(--line-strong); }
@media (min-width: 721px) { .pt-lines > tr > td:nth-child(2) { padding-left: 18px; } }
/* the two companies (3 Oct 2026): which one issued an invoice, valuation or variation, and where to pay */
.pt small.pt-ent { font-size: 11.5px; white-space: normal; }
.pt-pays { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 18px; }
.pt-pay { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: 10px; background: #F4F0E9; min-width: 0; font-size: 14px; }
.pt-pay-h { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); }
.pt-pay b { font-weight: 500; font-size: 15px; }
.pt-iban { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pt-pay .muted { font-size: 14px; }
.pt-con-t td .tag { margin-left: 4px; }
/* a contract's bill of quantities (11 Oct 2026): opens under the contract, by section, as a variation shows its lines */
.pt-con-t .pt-gsub { margin-left: 18px; }
.pt-boq tr.pt-bpkg td { padding-top: 16px; font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--label); }
.pt-boq tr.pt-bsec td { padding-top: 14px; color: var(--fg-1); }
.pt-boq tr.pt-bsec td.n { font-family: var(--sans); font-size: 14px; }
.pt-boq .pt-bsr { display: inline-block; min-width: 1.6em; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.pt-boq tr.om td.n .v { text-decoration: line-through; }
.pt-boq tr.pt-bl td .tag { margin-left: 4px; }
.pt-boq tr.pt-badj td { color: var(--fg-2); }
@media (min-width: 721px) { .pt-boq > tr > td:first-child { padding-left: 18px; } .pt-boq > tr.pt-bl > td:first-child { padding-left: 28px; } }
/* the monthly fee (4 Oct 2026): shown per month, not as a total */
.pt small.pt-pm { display: inline; margin: 0; font-size: 12px; color: var(--fg-3); }
.pt-repnotes { margin-top: 8px; font-size: 14px; color: var(--fg-2); }
.pt-repnotes p { margin: 4px 0 10px; }
/* the Programme card's two lists, each under a small heading (3 Oct 2026) */
.pt-card h3.pt-plh { display: flex; align-items: baseline; gap: 10px; margin: 0 0 2px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 18px; color: var(--fg-1); }
.pt-plh span { font-family: var(--sans); font-size: 13px; color: var(--fg-3); }

/* photos and documents */
.pt-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
@media (min-width: 760px) { .pt-photos { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; } }
.pt-ph { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--bsd-paper-cool); border-radius: 6px; }
.pt-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-box { position: fixed; inset: 0; z-index: 50; background: rgba(40, 35, 31, 0.92); display: flex; align-items: center; justify-content: center; padding: 16px; }
.pt-box[hidden] { display: none; }
.pt-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pt-boxx { position: absolute; top: 10px; right: 14px; background: none; border: 0; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; min-width: 44px; min-height: 44px; }
.pt-docs { list-style: none; margin: 0; padding: 0; }
.pt-docs li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }

@media (max-width: 900px) {
  .pt-two { grid-template-columns: minmax(0, 1fr); }
  .pt-two > .pt-card { height: auto; }
  .pt-prog { grid-template-columns: minmax(0, 1fr); }
}
/* a phone: the page links become a tab bar at the bottom of the screen */
@media (max-width: 600px) {
  .pt { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .pt-top { min-height: 60px; }
  .pt-logo { height: 28px; }
  .pt-who .em { display: none; }
  .pt-hero { padding: 24px 0 16px; }
  .pt-tabs { position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; gap: 4px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
             padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); background: var(--bsd-paper-2); border-top: 1px solid var(--line); border-bottom: 0;
             box-shadow: 0 -4px 16px rgba(63, 56, 51, 0.06); }
  .pt-tabs a { flex-direction: column; justify-content: center; gap: 3px; min-height: 54px; margin: 0; border: 0; border-radius: 10px; font-size: 11.5px; letter-spacing: 0.02em; }
  .pt-tabs a .pt-ic { width: 22px; height: 22px; opacity: 1; }
  .pt-tabs a.on { background: #EFEAE2; border: 0; }
  .pt-tabs .l { display: none; }
  .pt-tabs .s { display: inline; }
  .pt-card { padding: 16px; margin-bottom: 16px; }
  .pt-card > h2, .pt-ph2 h2 { font-size: 24px; }
  .pt-callout { padding: 14px; gap: 12px; margin-bottom: 16px; }
  .pt-callout > b { font-size: 18px; }
  .pt-cwhat { font-size: 15.5px; }
  .pt-rings { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pt-rcell { flex-direction: column; align-items: flex-start; gap: 8px; }
  .pt-ring { width: 88px; height: 88px; }
  .pt-ring > span { font-size: 25px; }
  .pt-rtxt b { font-size: 15px; }
  .pt-rtxt small { font-size: 12.5px; }
  .pt-next::before { left: 75px; }
  .pt-next li { grid-template-columns: 58px 12px minmax(0, 1fr); gap: 12px; font-size: 14.5px; }
  .pt-ndate { font-size: 18px; }
  .pt-figs { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .pt-figs-top { margin-bottom: 16px; }
  .pt-figs b { font-size: 20px; }
  .pt-file { white-space: normal; }
}

/* the welcome guide (10 Oct 2026): a card next to the lit page button; the page behind is dimmed and still */
.pt-gbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; background: none; border: 0; font: inherit; font-size: 13px;
           color: var(--fg-2); cursor: pointer; white-space: nowrap; }
.pt-gbtn .pt-ic { width: 20px; height: 20px; }
.pt-gbtn:hover { color: var(--fg-1); }
html.pt-guiding { overflow: hidden; }
.pt-gwall { position: fixed; inset: 0; z-index: 60; touch-action: none; }
.pt-gwall.dim { background: rgba(40, 35, 31, 0.55); }
.pt-gspot { position: fixed; z-index: 61; border-radius: var(--radius); pointer-events: none;
            box-shadow: 0 0 0 9999px rgba(40, 35, 31, 0.55), 0 0 0 3px var(--bsd-paper); }
.pt-guide { position: fixed; z-index: 62; width: min(380px, calc(100vw - 32px)); overflow-y: auto; padding: 20px 22px 18px;
            background: var(--bsd-paper-2); border-radius: 14px; box-shadow: 0 18px 50px rgba(40, 35, 31, 0.28); color: var(--fg-2); }
.pt-guide.mid { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(420px, calc(100vw - 32px)); max-height: calc(100% - 32px); padding: 26px 26px 22px; }
.pt-garrow { position: fixed; z-index: 63; width: 14px; height: 14px; background: var(--bsd-paper-2); transform: rotate(45deg); pointer-events: none; }
.pt-gtop { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; }
.pt-geye { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--label); }
.pt-gskip { font-size: 13px; color: var(--fg-3); min-height: 32px; }
.pt-guide h2 { display: flex; align-items: center; gap: 10px; margin: 2px 0 8px; font-size: 28px; line-height: 1.1; }
.pt-guide h2 .pt-ic { width: 22px; height: 22px; }
.pt-gtext p { margin: 0 0 12px; font-size: 15px; line-height: 1.5; }
.pt-gfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.pt-gdots { display: flex; gap: 6px; }
.pt-gdots i { width: 7px; height: 7px; border-radius: 50%; background: var(--track); }
.pt-gdots i.on { background: var(--fg-2); }
.pt-gbtns { display: flex; align-items: center; gap: 6px; }
.pt-gback, .pt-gnext { min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; font: inherit; font-size: 14.5px; cursor: pointer; }
.pt-gback { background: none; color: var(--fg-3); }
.pt-gnext { padding: 0 18px; background: var(--bsd-espresso); color: var(--bsd-paper); letter-spacing: 0.02em; }
.pt-gback:hover { color: var(--fg-1); }
.pt-gnext:hover { background: var(--bsd-espresso-deep); }
.pt-guide:focus { outline: none; }
.pt-guide button:focus-visible, .pt-gbtn:focus-visible { outline: 2px solid var(--bsd-sage); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .pt-guide { animation: pt-gin 0.18s ease-out; }
  @keyframes pt-gin { from { opacity: 0; } to { opacity: 1; } }
}

/* Admin's client-portal tab */
.btn.inline { display: inline-block; width: auto; margin-top: 8px; padding: 10px 18px; text-decoration: none; }
.inv { max-width: 460px; margin-top: 18px; padding: 16px 18px 12px; border: 1px solid var(--line); background: var(--bsd-paper-2); }
.inv h3 { margin-top: 0; }
.inv label { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); margin: 10px 0 0; }
.inv input { display: block; width: 100%; margin-top: 5px; font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid var(--line-strong); background: var(--bsd-paper); color: var(--fg-2); }
.adm-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.adm-ph { position: relative; aspect-ratio: 1 / 1; padding: 0; border: 0; background: var(--bsd-paper-cool); cursor: pointer; overflow: hidden; }
.adm-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adm-ph.off img { opacity: 0.25; }
.adm-ph em { position: absolute; left: 4px; bottom: 4px; font-style: normal; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; background: var(--bsd-paper); padding: 1px 5px; }
.adm-ph span { font-size: 11px; color: var(--fg-3); }
.adm-files { table-layout: fixed; }
.adm-files td:first-child { width: auto; overflow-wrap: anywhere; }
.adm-files td:nth-child(2) { width: 230px; }
.adm-files td:nth-child(3) { width: 120px; }


/* Health check (IDEA-037, 31 Oct 2026): Admin's check of the app against Excel */
.btn.hc-run { width: auto; margin-top: 0; padding: 9px 16px; }
.hc-intro { color: var(--fg-2); max-width: 72ch; margin: -14px 0 24px; font-size: 14px; }
.hc-saved, .hc-from { margin: -12px 0 20px; }
@media (min-width: 900px) { .hc-t td:nth-child(3) { min-width: 240px; } }
/* "Not an issue" (1 Nov 2026) */
.hc-a { white-space: nowrap; }
.hc-clr, .hc-undo, .hc-ok, .hc-no { min-height: 36px; padding: 0 12px; font: inherit; font-size: 13px; border-radius: 8px; cursor: pointer; }
.hc-clr, .hc-undo, .hc-no { background: none; border: 1px solid var(--line-strong); color: var(--fg-2); }
.hc-clr:hover, .hc-undo:hover, .hc-no:hover { border-color: var(--fg-3); color: var(--fg-1); }
.hc-ok { background: var(--bsd-espresso); border: 0; color: var(--bsd-paper); }
.hc-clr:disabled, .hc-undo:disabled, .hc-ok:disabled { opacity: 0.5; cursor: default; }
.hc-box { display: flex; flex-direction: column; gap: 6px; min-width: 200px; white-space: normal; }
.hc-why { width: 100%; min-height: 36px; font: inherit; font-size: 14px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bsd-paper-2); color: var(--fg-2); }
.hc-why:focus { outline: none; border-color: var(--bsd-sage); box-shadow: 0 0 0 3px rgba(145, 141, 117, 0.22); }
.hc-bb { display: flex; gap: 6px; }
@media (max-width: 720px) { .hc-why { font-size: 16px; } .hc-box { min-width: 0; } }

/* ---------- Daily plan (daily.js; redesigned 19 Nov 2026, "option 1"): one day in full, chosen on the week's day strip;
   each contractor a section; each line one segmented control, its %, Take off, By room, remarks and Move…;
   on a phone each line is a card that opens as a sheet ---------- */
.dp-top { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 24px; margin-bottom: 14px; }
.dp-title { display: flex; align-items: flex-end; gap: 6px; min-width: 0; }
.dp-title .sec-h { margin-bottom: 0; min-width: 0; }
.dp-i { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: 4px; border-radius: 8px; color: var(--fg-3); cursor: help; }
.dp-i .ic { width: 21px; height: 21px; }
.dp-i:hover, .dp-i:focus { color: var(--fg-2); }
.dp-i:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(145, 141, 117, 0.22); }
.dp-about { position: absolute; left: 0; top: 100%; z-index: 5; box-sizing: border-box; width: 440px; max-width: 100%; margin-top: 6px; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bsd-paper-2); box-shadow: 0 8px 24px rgba(88, 79, 70, 0.16); font-size: 14px; line-height: 1.5; color: var(--fg-2); text-align: left; visibility: hidden; opacity: 0; transition: opacity 0.12s; cursor: default; }
.dp-i:hover .dp-about, .dp-i:focus .dp-about { visibility: visible; opacity: 1; }
/* the week: previous / next, its label and phase, "This week", the day strip and the next closed days */
.dp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px; }
.dp-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dp-nav .icbtn { width: 44px; height: 44px; }
.dp-nav .icbtn:disabled { opacity: 0.35; cursor: default; }
#dp-prev .ic { transform: rotate(180deg); }
.dp-week { min-width: 170px; }
.dp-week b { display: block; font-weight: 500; }
.dp-week small { display: block; font-size: 12.5px; color: var(--fg-3); }
.dp-nav .linkbtn { min-height: 44px; font-size: 14px; }
.dp-strip { display: flex; flex-wrap: wrap; gap: 6px; }
.dp-sd { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 52px; min-height: 48px; padding: 2px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--bsd-paper-2); color: var(--fg-2); font: inherit; font-size: 12px; cursor: pointer; }
.dp-sd b { font-size: 16px; font-weight: 600; line-height: 1.1; }
.dp-sd.is-past { background: var(--track); color: var(--fg-3); }
.dp-sd.is-today { border-color: var(--bsd-espresso); }
.dp-sd.is-closed { background: repeating-linear-gradient(45deg, var(--track) 0 6px, var(--bsd-paper-cool) 6px 12px); color: var(--fg-3); }
.dp-sd[aria-pressed="true"] { border-color: var(--bsd-espresso-deep); background: var(--bsd-espresso-deep); color: var(--bsd-paper); }
.dp-sd:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(145, 141, 117, 0.35); }
.dp-soon { margin-left: auto; padding: 6px 12px; border-radius: 10px; background: var(--track); font-size: 13px; font-weight: 500; color: var(--neg); }
.lc-1 { --lane: var(--lane-1); } .lc-2 { --lane: var(--lane-2); } .lc-3 { --lane: var(--lane-3); } .lc-4 { --lane: var(--lane-4); }
.lc-5 { --lane: var(--lane-5); } .lc-6 { --lane: var(--lane-6); } .lc-7 { --lane: var(--lane-7); }
.lc-own { --lane: var(--bsd-espresso); }
.lc-tbc { --lane: var(--line-strong); }
.dp-dot { display: inline-block; flex-shrink: 0; width: 10px; height: 10px; margin-right: 7px; border-radius: 50%; background: var(--lane, var(--line-strong)); }
.dp-lanes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.dp-lanes button { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bsd-paper-2); color: var(--fg-2); font: inherit; font-size: 13px; cursor: pointer; }
.dp-lanes button[aria-pressed="true"] { background: var(--bsd-espresso); border-color: var(--bsd-espresso); color: var(--bsd-paper); }
.dp-lanes button[aria-pressed="true"] .dp-dot { box-shadow: 0 0 0 1.5px var(--bsd-paper); }
.dp-lanes button[aria-pressed="true"] .tag { color: var(--bsd-paper); border-color: var(--bsd-paper); }
.dp-lanes button.idle { opacity: 0.45; }
/* the week's figures, on one line */
.dp-weekline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; margin: 0 0 12px; padding: 10px 16px; border-radius: var(--radius); background: var(--side); font-size: 14px; }
.dp-weekline .lbl, .dp-move .lbl, .dp-oldr .lbl, .dp-shh .lbl { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--label); }
.dp-figs { display: flex; flex-wrap: wrap; gap: 6px 22px; min-width: 0; }
.dp-fig { white-space: nowrap; }
.dp-fig .k { color: var(--fg-3); }
.dp-fig .v { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--fg-2); }
.dp-hint { margin: 0 0 12px; font-size: 12px; color: var(--fg-3); }
/* the day */
.dp-card { border: 0; background: none; display: grid; gap: 14px; min-width: 0; }
.dp-day { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 4px 0 0; }
.dp-dt { margin: 0; font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1.15; color: var(--fg-2); }
.dp-day .dp-today { display: none; }
.dp-day .dp-add { margin-left: auto; min-height: 44px; }
.dp-day .dp-dstep { display: none; width: 44px; min-height: 44px; padding: 0; font-size: 20px; }
.dp-day .dp-ds { flex: 1 1 160px; min-width: 0; margin: 0; font-weight: 400; overflow-wrap: anywhere; }      /* an added task not saved: why */
.dp-today { padding: 2px 9px; border-radius: 999px; background: var(--bsd-espresso); color: var(--bsd-paper); font-size: 12px; }
.dp-day:focus { outline: none; box-shadow: 0 0 0 2px var(--bsd-sage); border-radius: 8px; }
.dp-pad { padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bsd-paper-2); margin: 0; }
/* another week: one summary per day */
.dp-wsum { display: grid; gap: 8px; }
.dp-wd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; width: 100%; min-height: 48px; padding: 12px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bsd-paper-2); color: var(--fg-2); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.dp-wd b { min-width: 120px; font-weight: 600; }
.dp-wd span { flex: 1 1 260px; min-width: 0; }
.dp-wd small { font-size: 13px; color: var(--fg-3); }
.dp-wd.is-closed { background: repeating-linear-gradient(45deg, var(--track) 0 8px, var(--bsd-paper-cool) 8px 16px); }
.dp-wd:hover { border-color: var(--fg-3); }
/* a contractor's section of the day */
.dp-row { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bsd-paper-2); overflow: hidden; box-shadow: inset 4px 0 0 var(--lane, transparent); }
.dp-lh { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 18px; background: var(--side); }
.dp-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; flex: 1 1 220px; min-width: 0; }
.dp-who b { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.dp-who .dp-dot { margin-right: 8px; vertical-align: 1px; }
.dp-who small { font-size: 13px; color: var(--fg-3); }
.dp-lhc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.dp-f { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: var(--fg-3); }
.dp-fw .dp-in { width: 72px; }
.dp-fr { flex: 1 1 220px; }
.dp-fr .dp-in { min-width: 0; }
.dp-lhc .rp-btn { min-height: 44px; }
.dp-oldr { margin: 0; padding: 8px 18px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--fg-3); overflow-wrap: anywhere; }
.dp-oldr.dp-none { font-style: italic; }
.dp-work { margin: 0; padding: 0; list-style: none; overflow-wrap: anywhere; }
.dp-work li + li { margin-top: 6px; }
.dp-work small { display: block; font-size: 12.5px; color: var(--fg-3); }
.dp-none { color: var(--fg-3); }
.dp-what { padding: 12px 18px 0; min-width: 0; }
.dp-done { padding: 10px 18px 14px; min-width: 0; }
.dp-tasks { display: grid; min-width: 0; }
/* a line */
.dp-line { min-width: 0; padding: 12px 18px; border-top: 1px solid var(--line-soft); }
.dp-task { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 18px; align-items: center; min-width: 0; }
.dp-task > .dp-ttext { grid-column: 1; min-width: 0; }
.dp-task > .dp-tctl { grid-column: 2; }
.dp-task > .rmk, .dp-task > .dp-ask, .dp-task > .dp-askdone, .dp-task > .dp-move, .dp-task > .dp-offbox { grid-column: 1 / -1; }
.dp-task.dp-early, .dp-task.dp-split { grid-template-columns: minmax(0, 1fr); }
.dp-early { opacity: 0.75; }
.dp-ttext { overflow-wrap: anywhere; }
.dp-ttext .tk-t { font-size: 15px; font-weight: 600; }
.dp-ttext small { display: block; margin-top: 2px; font-size: 13px; color: var(--fg-3); }
.dp-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 7px; background: var(--warn-bg); color: var(--warn); font-size: 12px; }
.dp-tag.is-over { background: var(--bad-bg); color: var(--neg); }
.dp-task.is-over .dp-ttext small { color: var(--warn); }
.dp-task.dp-early .dp-ttext small.dp-early-m { color: var(--pos); font-weight: 600; font-size: 14px; }
.dp-differ { color: var(--warn); }
.dp-tctl { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 10px; min-width: 0; }
.dp-pct { display: inline-flex; align-items: center; gap: 4px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.dp-pct .dp-in { width: 70px; text-align: right; font-size: 16px; }
.dp-tctl .dp-state { flex-basis: 100%; margin-top: 0; text-align: right; }
.dp-rm, .dp-off, .dp-mvb, .dp-byroom { min-height: 44px; padding: 0 4px; color: var(--fg-2); font-size: 14px; }
.dp-rm { color: var(--fg-3); }
.dp-rm:hover { color: var(--fg-1); }
.dp-rm:disabled { opacity: 0.5; cursor: default; }
.dp-open, .dp-shh, .dp-shint { display: none; }
.dp-task > .dp-shint { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--fg-3); }
.dp-seg { display: inline-flex; flex-wrap: nowrap; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: var(--bsd-paper-2); }
.dp-seg button { min-height: 44px; padding: 0 12px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--fg-2); font: inherit; font-size: 14px; white-space: nowrap; cursor: pointer; }
.dp-seg button:first-child { border-left: 0; }
.dp-seg button[aria-pressed="true"] { background: var(--bsd-espresso-deep); color: var(--bsd-paper); font-weight: 500; }
.dp-seg button[data-t="finished"][aria-pressed="true"], .dp-seg button[data-s="done"][aria-pressed="true"], .dp-seg button[data-t="as_planned"][aria-pressed="true"] { background: var(--pos); color: var(--bsd-paper); }
.dp-seg button[data-s="part"][aria-pressed="true"], .dp-seg button[data-t="behind"][aria-pressed="true"] { background: var(--warn); color: var(--bsd-paper); }
.dp-seg button[data-s="not_done"][aria-pressed="true"], .dp-seg button[data-t="not_worked"][aria-pressed="true"] { background: var(--neg); color: var(--bsd-paper); }
.dp-seg2 { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: var(--bsd-paper-2); }
.dp-seg2 button { min-height: 44px; padding: 0 14px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--fg-2); font: inherit; font-size: 14px; cursor: pointer; }
.dp-seg2 button:first-child { border-left: 0; }
.dp-seg2 button[aria-pressed="true"] { background: var(--bsd-espresso-deep); color: var(--bsd-paper); }
/* a note: its words, and a tick on the right */
.dp-note .dp-seg { border-radius: 10px; }
/* By room: one sub-line per room; a note of orders or deliveries as one tick per item */
.dp-byroom::after { content: " \25BE"; color: var(--fg-3); }
.dp-byroom[aria-expanded="true"]::after { content: " \25B4"; }
.dp-byn { color: var(--fg-3); }
.dp-rooms, .dp-parts { display: grid; gap: 8px; min-width: 0; margin-top: 10px; padding-left: 16px; border-left: 2px solid var(--line-soft); }
.dp-rooms .dp-task + .dp-task, .dp-parts .dp-task + .dp-task { padding-top: 8px; border-top: 1px dashed var(--line); }
.dp-rname, .dp-nh { font-weight: 600; }
.dp-row > .dp-rs { padding: 0 18px 10px; }
.dp-row > .dp-rs:empty { display: none; }
.dp-in { width: 100%; min-height: 44px; box-sizing: border-box; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 9px; background: #FFFFFF; color: var(--fg-2); font: inherit; font-size: 16px; }
.dp-in:focus, .dp-seg button:focus-visible, .dp-seg2 button:focus-visible, .dp-lanes button:focus-visible, .dp-wd:focus-visible { outline: none; border-color: var(--bsd-sage); box-shadow: 0 0 0 3px rgba(145, 141, 117, 0.35); }
.dp-state { margin-top: 6px; font-size: 12.5px; color: var(--fg-3); }
.dp-state:empty { display: none; }
.dp-state.bad { color: var(--neg); }
.dp-closed { padding: 13px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: repeating-linear-gradient(45deg, var(--track) 0 8px, var(--bsd-paper-cool) 8px 16px); color: var(--fg-1); }
.dp-closed b { font-weight: 600; color: var(--fg-2); }
.dp-closed span { display: block; font-size: 13px; }
/* the running-late prompt, and the line after it */
.dp-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 14px; border-radius: 10px; background: var(--bad-bg); border-left: 3px solid var(--neg); }
.dp-ask-t { flex: 1 1 320px; min-width: 0; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.dp-ask-t b { font-weight: 600; color: var(--neg); }
.dp-ask .rp-btn, .dp-askdone .rp-btn, .dp-move .rp-btn { min-height: 44px; }
.dp-pm { display: inline-flex; align-items: center; gap: 6px; }
.dp-pm .dp-ask-less, .dp-pm .dp-ask-more, .dp-pm .dp-mv-less, .dp-pm .dp-mv-more { width: 44px; padding: 0; font-size: 18px; }
.dp-mv-n { min-width: 24px; font-size: 18px; font-weight: 600; text-align: center; }
.dp-askdone { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 14px; border-radius: 10px; background: var(--ok-bg); color: var(--pos); font-size: 14px; }
.dp-askdone > span { flex: 1 1 320px; min-width: 0; overflow-wrap: anywhere; }
.dp-ask .dp-state, .dp-askdone .dp-state, .dp-move .dp-state { flex-basis: 100%; margin: 0; }
/* Move… */
.dp-move { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--warn-bg); }
.dp-effect { flex: 1 1 240px; min-width: 0; font-size: 14px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.dp-mvb2 { display: inline-flex; flex-wrap: wrap; gap: 8px; }
/* "+ Add a task": a white card of its own, with two tabs */
.dp-addcard { display: grid; gap: 12px; margin: 12px 14px 14px; padding: 16px 18px; border: 2px solid var(--bsd-espresso); border-radius: 14px; background: #FFFFFF; box-shadow: 0 10px 28px rgba(63, 56, 51, 0.16); min-width: 0; }
.dp-card > .dp-addcard { margin: 0; }
.dp-ac-h { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dp-ac-t { margin-right: auto; font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--fg-2); overflow-wrap: anywhere; }
.dp-ac-h .rp-btn { min-height: 44px; }
.dp-ac-q { max-width: 360px; }
.dp-ac-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dp-ac-g { margin-top: 4px; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--label); }
.dp-ac-i { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--bsd-paper); }
.dp-ac-i[hidden] { display: none; }
.dp-ac-tx { flex: 1 1 240px; min-width: 0; overflow-wrap: anywhere; }
.dp-ac-tx b { font-weight: 600; }
.dp-ac-r, .dp-ac-tx small { font-size: 13px; color: var(--fg-3); }
.dp-ac-tx small { display: block; }
.dp-ac-i .rp-btn { min-height: 44px; }
.dp-addcard .note { margin: 0; }
.dp-nw { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: end; }
.dp-nw > label, .dp-nw-k { display: grid; gap: 4px; min-width: 0; font-size: 13px; color: var(--fg-3); }
.dp-nw-w { grid-column: span 2; }
.dp-nw-k { grid-column: span 2; }
.dp-nw-pm { grid-column: span 2; margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--side); font-size: 14px; }
.dp-nw-said, .dp-nw-msg, .dp-nw-b { grid-column: 1 / -1; margin: 0; }
.dp-nw-said { font-size: 14px; }
.dp-nw-b .rp-btn { min-height: 44px; }
.dp-scrim { display: none; }
@media (max-width: 1100px) {
  .dp-task { grid-template-columns: minmax(0, 1fr); }
  .dp-task > .dp-tctl { grid-column: 1; justify-content: flex-start; }
  .dp-tctl .dp-state { text-align: left; }
  .dp-nw { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {                        /* a phone: cards; a tap opens the line as a sheet */
  .dp-week { min-width: 0; flex: 1; }
  .dp-nav { width: 100%; }
  .dp-strip { display: none; }
  .dp-soon { margin-left: 0; }
  .dp-lanes button { min-height: 44px; }
  .dp-weekline { gap: 4px 14px; padding: 10px 12px; }
  .dp-figs { gap: 4px 14px; }
  .dp-dt { font-size: 26px; flex: 1 1 auto; min-width: 0; }
  .dp-day .dp-dstep { display: inline-flex; align-items: center; justify-content: center; }
  .dp-day .dp-add { margin-left: 0; flex: 1 1 100%; }
  .dp-lh { padding: 10px 12px; }
  .dp-lhc { width: 100%; }
  .dp-lhc .rp-btn { flex: 1 1 auto; }
  .dp-fr { flex: 1 1 100%; }
  .dp-fr > span { display: none; }
  .dp-line { padding: 10px 12px; }
  .dp-line:not(.is-sheet) .dp-task:not(.dp-note):not(.dp-early) > .dp-tctl,
  .dp-line:not(.is-sheet) .dp-task > .rmk, .dp-line:not(.is-sheet) .dp-task > .dp-move,
  .dp-line:not(.is-sheet) .dp-task > .dp-offbox, .dp-line:not(.is-sheet) > .dp-rooms { display: none; }
  .dp-open { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bsd-paper); color: var(--fg-2); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
  .dp-msum { color: var(--pos); }
  .dp-line.is-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; box-sizing: border-box; max-height: 86vh; overflow-y: auto; padding: 10px 16px 22px; border: 0; border-radius: 20px 20px 0 0; background: var(--bsd-paper-2); box-shadow: 0 -8px 24px rgba(63, 56, 51, 0.16); }
  .dp-line.is-sheet .dp-open { display: none; }
  .dp-line.is-sheet .dp-shint { display: block; }
  .dp-line.is-sheet .dp-shh { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
  .dp-line .dp-shx { width: 44px; min-height: 44px; padding: 0; }
  .dp-line.is-sheet .dp-ttext .tk-t, .dp-line.is-sheet .dp-ttext > b { font-family: var(--serif); font-size: 24px; }
  .dp-line.is-sheet .dp-tctl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .dp-line.is-sheet .dp-tctl > * { grid-column: 1 / -1; }
  .dp-line.is-sheet .dp-tctl > .dp-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; border: 0; background: none; overflow: visible; }
  .dp-line.is-sheet .dp-tctl > .dp-seg button { min-height: 48px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bsd-paper); }
  .dp-line.is-sheet .dp-tctl > .dp-seg button[aria-pressed="true"] { background: var(--bsd-espresso-deep); color: var(--bsd-paper); }
  .dp-line.is-sheet .dp-pct { justify-content: flex-end; }
  .dp-line.is-sheet .dp-pct .dp-in { width: 96px; }
  .dp-line.is-sheet .dp-tctl .dp-state { text-align: left; }
  .dp-tctl { justify-content: flex-start; }
  .dp-seg { max-width: 100%; }
  .dp-note .dp-seg button { min-width: 88px; }
  .dp-rooms { padding-left: 10px; }
  .dp-rooms .dp-tctl { display: grid; grid-template-columns: minmax(0, 1fr); }
  .dp-rooms .dp-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dp-scrim:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(63, 56, 51, 0.28); }
  .dp-addcard { margin: 10px 8px 12px; padding: 12px; }
  .dp-ac-t { font-size: 20px; }
  .dp-ac-q { max-width: none; }
  .dp-ac-i .rp-btn { flex: 1 1 100%; }
  .dp-tabs { width: 100%; }
  .dp-tabs button, .dp-nw-k .dp-seg2 button { flex: 1 1 0; padding: 0 8px; }
  .dp-nw { grid-template-columns: minmax(0, 1fr); }
  .dp-nw-w, .dp-nw-k, .dp-nw-pm { grid-column: 1; }
  .dp-move, .dp-ask { padding: 10px; }
  .dp-wd { padding: 10px 12px; }
  .dp-wd b { min-width: 0; }
}

/* ===== re-planning, step 2 (12 Nov 2026): the working programme kept in the app (replan.js) =====
   Each task's row holds its controls (name, days with − / +, the dates, a drag grip); on a phone the row is a small
   block with ⋯ and up / down arrows instead. The preview box is a dialog; the change log and "What changed" are cards. */
.rp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bsd-paper-2); color: var(--fg-2); font: inherit; font-size: 14px; cursor: pointer; }
.rp-btn:hover { border-color: var(--fg-3); }
.rp-btn:disabled { opacity: 0.45; cursor: default; }
.rp-btn.p { background: var(--bsd-espresso); border-color: var(--bsd-espresso); color: var(--bsd-paper); }
.rp-step { width: 32px; min-height: 32px; padding: 0; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bsd-paper); color: var(--fg-2); font: inherit; font-size: 16px; line-height: 1; cursor: pointer; }
.rp-step:disabled { opacity: 0.35; cursor: default; }
.rp-said { margin: 0 0 12px; padding: 8px 12px; border-radius: 8px; background: var(--ok-bg); color: var(--pos); font-size: 14px; }
.rp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 4px 0 14px; }
.rp-bar .rp-undo-what { min-width: 0; color: var(--fg-3); font-size: 13px; overflow-wrap: anywhere; }
.rp-bar .rp-excel-b { margin-left: auto; }
.rp-form { margin: 0 0 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bsd-paper-2); }
.rp-form h4 { margin: 14px 0 6px; font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--label); }
.rp-form p { margin: 0 0 10px; max-width: 80ch; }
.rp-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 14px; }
.rp-fields label, .rp-reason { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); }
.rp-fields label small, .rp-reason small { font-size: 11px; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--fg-3); }
.rp-fields .dp-in, .rp-reason .dp-in { font-size: 15px; letter-spacing: 0; text-transform: none; font-weight: 400; }
.rp-reason textarea.dp-in { min-height: 64px; padding: 8px 10px; resize: vertical; }
.rp-btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.rp-closed { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.rp-closed li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 6px 0; border-top: 1px solid var(--line); }
.rp-confirm { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; }
.rp-confirm label { flex: 1 1 100%; font-size: 13.5px; color: var(--fg-2); }
.rp-confirm .dp-in { flex: 0 1 220px; text-transform: uppercase; letter-spacing: 0.1em; }
.rp-movecard h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--fg-2); }
.rp-movecard p { max-width: 80ch; }
.rp-ul { margin: 0 0 14px; padding-left: 18px; max-width: 80ch; display: grid; gap: 5px; }
/* the list */
.rp-list { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bsd-paper-2); overflow: hidden; }
.rp-hrow, .rp-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 118px 212px 84px 92px 52px 104px; gap: 0 12px; align-items: center; padding: 8px 14px; }
.rp-hrow { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); border-bottom: 1px solid var(--line-strong); }
.rp-band { padding: 10px 14px 6px; border-top: 1px solid var(--line-strong); background: var(--side); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--label); }
.rp-head { border-top: 1px solid var(--line); }
.rp-hbtn { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 0 12px; align-items: baseline; width: 100%; padding: 10px 14px; border: 0; background: none; color: var(--fg-2); font: inherit; font-weight: 500; text-align: left; cursor: pointer; }
.rp-hbtn small { font-weight: 400; color: var(--fg-3); font-size: 13px; white-space: nowrap; }
.rp-hbtn .rp-sr { color: var(--fg-3); font-weight: 400; }
.rp-hbtn[aria-expanded="true"] { background: rgba(88, 79, 70, 0.04); }
.rp-row { border-top: 1px solid var(--line); background: var(--bsd-paper); }
.rp-row.rp-tight .rp-left { color: var(--neg); }
.rp-row.rp-over { box-shadow: inset 0 -3px 0 var(--bsd-taupe); }
.rp-head.rp-over { box-shadow: inset 0 -3px 0 var(--bsd-taupe); }
.rp-row.rp-dragging { opacity: 0.5; }
.rp-sr { font-size: 13px; color: var(--fg-3); }
.rp-task { min-width: 0; }
.rp-name { display: block; max-width: 100%; padding: 2px 0; border: 0; background: none; color: var(--fg-2); font: inherit; text-align: left; cursor: text; overflow-wrap: anywhere; }
.rp-name:hover { text-decoration: underline dotted; text-underline-offset: 4px; }
.rp-why { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; margin-top: 2px; font-size: 12.5px; color: var(--fg-3); }
.rp-pin { color: var(--bsd-taupe); }
.rp-days { display: inline-flex; align-items: center; gap: 4px; }
.rp-dv { min-width: 40px; min-height: 32px; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bsd-paper-2); color: var(--fg-2); font: inherit; font-variant-numeric: tabular-nums; cursor: text; }
.rp-when { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; min-height: 32px; padding: 0 6px; border: 0; border-radius: 8px; background: none; color: var(--fg-2); font: inherit; font-size: 14px; font-variant-numeric: tabular-nums; text-align: left; text-decoration: underline dotted; text-decoration-color: var(--line-strong); text-underline-offset: 4px; cursor: pointer; }
.rp-when:hover { background: rgba(88, 79, 70, 0.06); }
.rp-cl, .rp-left { font-size: 14px; font-variant-numeric: tabular-nums; }
.rp-cl small { font-size: 12px; color: var(--fg-3); }
.rp-left .neg { color: var(--neg); }
.rp-act { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.rp-act .icbtn { width: 34px; height: 34px; }
.rp-act .icbtn:disabled { opacity: 0.3; cursor: default; }
.rp-grip { display: inline-flex; padding: 6px; color: var(--fg-3); cursor: grab; }
.rp-act .rp-more { display: none; }
.rp-pop { padding: 14px 16px 16px; border-top: 1px dashed var(--line-strong); background: var(--bsd-paper-2); }
.rp-pop .note { margin: 8px 0 0; }
.rp-seg { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.rp-mode { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bsd-paper); color: var(--fg-2); font: inherit; font-size: 14px; cursor: pointer; }
.rp-mode[aria-pressed="true"] { background: var(--bsd-espresso); border-color: var(--bsd-espresso); color: var(--bsd-paper); }
.rp-mode[aria-pressed="true"] .rp-pin { color: var(--bsd-paper); }
.rp-wait { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rp-wsel { display: flex; flex-direction: column; gap: 4px; flex: 1 1 280px; min-width: 0; font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); }
.rp-wsel .dp-in { font-size: 14.5px; letter-spacing: 0; text-transform: none; font-weight: 400; }
.rp-lag { display: flex; align-items: center; gap: 6px; min-height: 44px; font-size: 13.5px; color: var(--fg-3); }
.rp-lag b { min-width: 28px; text-align: center; font-weight: 500; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.rp-w-add { margin-top: 10px; }
.rp-own { display: flex; align-items: center; gap: 8px; max-width: 320px; }
.rp-own .rp-step { width: 44px; min-height: 44px; flex: 0 0 auto; }
.rp-menu { display: grid; gap: 8px; }
.rp-menu .rp-btn { justify-content: flex-start; min-height: 44px; }
.rp-help { max-width: 90ch; margin: 10px 0 24px; }
/* "Also change in:" — the same task in other rooms (13 Nov 2026) */
.rp-rooms { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 16px; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); min-width: 0; }
.rp-rooms-k { flex: 0 0 auto; font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); }
.rp-room { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; min-width: 0; font-size: 14px; color: var(--fg-2); cursor: pointer; overflow-wrap: anywhere; }
.rp-room input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--bsd-espresso); }
.rp-room.off { color: var(--fg-3); cursor: default; }
.rp-room small { font-size: 12.5px; color: var(--fg-3); }
.rp-pv-rooms { margin: -6px 0 14px; font-size: 14px; color: var(--fg-3); overflow-wrap: anywhere; }
.rp-mv li b .rp-mv-room { font-weight: 400; color: var(--fg-3); }
.rp-said.bad { background: var(--warn-bg); color: var(--warn); }
/* the preview box */
.rp-dlg { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bsd-paper); color: var(--fg-2); box-shadow: 0 18px 48px rgba(63, 56, 51, 0.24); }
.rp-dlg { overflow: auto; overscroll-behavior: contain; }
.rp-pv .rp-btns { position: sticky; bottom: -20px; margin: 12px -22px -20px; padding: 12px 22px 20px; background: var(--bsd-paper); border-top: 1px solid var(--line); }
.rp-dlg::backdrop { background: rgba(63, 56, 51, 0.32); }
.rp-pv { padding: 20px 22px; }
.rp-pv h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--fg-2); }
.rp-pv-what { margin: 0 0 14px; overflow-wrap: anywhere; }
.rp-pv-fin { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bsd-paper-2); }
.rp-pv-fin > span { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); }
.rp-pv-fin b { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.rp-pv-fin small { color: var(--fg-3); }
.rp-pv-n { margin: 14px 0 6px; font-size: 13.5px; color: var(--fg-3); }
.rp-mv { margin: 0 0 14px; padding: 0; list-style: none; max-height: 40vh; overflow-y: auto; border-top: 1px solid var(--line); }
.rp-mv li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.rp-mv li b { flex: 1 1 100%; font-weight: 500; overflow-wrap: anywhere; }
.rp-mv li span { color: var(--fg-3); }
.rp-pv .msg { min-height: 0; }
/* the change log and "What changed" */
.rp-loglist { margin: 0; padding: 0; list-style: none; }
.rp-li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; overflow-wrap: anywhere; }
.rp-li.undone > div:not(.rp-li-h) { color: var(--fg-3); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.rp-li-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 2px; }
.rp-li-h time { font-size: 12.5px; color: var(--fg-3); }
.rp-li-h b { font-weight: 500; }
.rp-li-d { color: var(--fg-1); font-size: 13.5px; }
.rp-li-r { color: var(--fg-3); font-style: italic; }
.rp-li details { margin-top: 4px; font-size: 13px; color: var(--fg-3); }
.rp-li details ul { margin: 4px 0 0; padding-left: 18px; }
.rp-wc { margin-bottom: 14px; max-width: 520px; }
.rp-wc-t td small { display: block; font-size: 12.5px; color: var(--fg-3); }
.rp-wc-t .rp-wc-fin td { border-top: 1px solid var(--line-strong); }
.rp-wc-why { font-size: 13px; color: var(--fg-3); max-width: 40ch; }
@media (max-width: 1100px) {                       /* a narrow screen: the client end and time left go under the dates */
  .rp-hrow { display: none; }
  .rp-row { grid-template-columns: 36px minmax(0, 1fr) auto auto auto; grid-template-areas: "sr task task days act" "sr dates cl left done"; gap: 4px 12px; }
  .rp-sr { grid-area: sr; align-self: start; padding-top: 4px; } .rp-task { grid-area: task; } .rp-days { grid-area: days; } .rp-act { grid-area: act; }
  .rp-dates { grid-area: dates; } .rp-cl { grid-area: cl; } .rp-left { grid-area: left; } .rp-done { grid-area: done; }
  .rp-cl::before, .rp-left::before, .rp-done:not(:empty)::before { content: attr(data-label) " "; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--label); }
}
@media (max-width: 720px) {                        /* a phone: ⋯ and the arrows; no inline − / +, no dragging */
  .rp-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "task act" "dates done" "cl left"; padding: 10px 12px; }
  .rp-sr, .rp-grip, .rp-days .rp-step { display: none; }
  .rp-days { grid-area: act; display: none; }
  .rp-act .rp-more { display: inline-flex; }
  .rp-act .icbtn { width: 40px; height: 40px; }
  .rp-hbtn { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .rp-hbtn .rp-sr { display: none; }
  .rp-hbtn small { white-space: normal; }
  .rp-left { text-align: right; }
  .rp-pop { padding: 12px; }
  .rp-pv { padding: 16px; }
  .rp-pv .rp-btns { bottom: -16px; margin: 12px -16px -16px; padding: 12px 16px 16px; }
  .rp-mv { max-height: 30vh; }
  .rp-bar .rp-excel-b { margin-left: 0; }
  .rp-form { padding: 14px 12px; }
}
@media (max-width: 720px) {                        /* a phone: "Also change in:" one room a line, big enough to tap */
  .rp-rooms { flex-direction: column; align-items: stretch; gap: 0; }
  .rp-room { min-height: 44px; }
  .rp-rooms .rp-rooms-all { align-self: flex-start; min-height: 44px; }
}
/* the Daily plan made by the app (stage b, 13 Nov 2026): the line on the Daily plan page, under the change log and in the preview */
.dp-made { margin: 0 0 12px; padding: 8px 12px; border-radius: 8px; background: var(--ok-bg); color: var(--pos); font-size: 14px; overflow-wrap: anywhere; }
.dp-made.bad { background: var(--warn-bg); color: var(--warn); }
.rp-plan { margin: -8px 0 18px; padding: 8px 12px; border-radius: 8px; background: var(--ok-bg); color: var(--pos); font-size: 14px; overflow-wrap: anywhere; }
.rp-plan.bad { background: var(--warn-bg); color: var(--warn); }
.rp-plan.note { padding: 0 2px; background: none; color: var(--fg-3); }
.rp-pv-plan { margin: 0 0 14px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bsd-paper-2); font-size: 14px; color: var(--fg-2); overflow-wrap: anywhere; }
.hc-dp { margin: 6px 0 0; }

/* ===== the Users page (13 Nov 2026, users.js): Admin's list of everyone who can sign in =====
   Staff, Inactive (switched off), the morning sync and the clients, each a table that becomes small blocks on a phone; a
   person's change opens in a panel under their row; the typed word ADMIN uses the move card's box (.rp-confirm). */
.us-intro { max-width: 80ch; margin: -12px 0 18px; }
.us-off { max-width: 70ch; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bsd-paper-2); color: var(--fg-2); font-size: 15px; }
.us-sec { margin-top: 16px; }
.us-sec .card-h h2 .cnt { margin-left: 6px; }
.us-note { margin: 8px 0; max-width: 80ch; color: var(--fg-3); font-size: 13px; }
.us-t td small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--fg-3); }
.us-t td small.us-why { max-width: 32ch; }
.us-t .us-act { min-height: 34px; margin: 2px 6px 2px 0; padding: 0 10px; font-size: 13px; }
.us-t .us-act[aria-expanded="true"] { border-color: var(--bsd-espresso); }
.us-offrow > td { color: var(--fg-3); }
.us-edit > td { padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.us-panel { margin: 4px 0 0; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bsd-paper); }
.us-panel p { margin: 0 0 10px; max-width: 80ch; font-size: 14px; color: var(--fg-2); }
.us-panel .us-note { color: var(--fg-3); font-size: 13px; }
.us-panel > .dp-in { max-width: 420px; }
.us-l { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); }
.us-word { margin-top: 10px; }
.us-projs { min-width: 0; margin: 10px 0 4px; padding: 0; border: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 0 16px; }
.us-projs legend { margin-bottom: 4px; padding: 0; font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); }
.us-chk { display: flex; align-items: center; gap: 10px; min-height: 36px; min-width: 0; font-size: 14px; color: var(--fg-2); cursor: pointer; overflow-wrap: anywhere; }
.us-chk input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--bsd-espresso); }
.us-chk small { color: var(--fg-3); }
.us-auto { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 4px; }
.us-add { max-width: 860px; }
.us-add h3 { margin-top: 0; }
@media (max-width: 720px) {                        /* a phone: each person a small block, the panel full width, everything big enough to tap */
  table.stack > tbody > tr.full.us-edit { padding: 0 0 10px; }
  table.stack > tbody > tr.full.us-edit > td { display: block; padding: 0; }
  table.stack > tbody > tr > td.us-acts { display: block; padding-top: 6px; }
  table.stack > tbody > tr > td.us-acts::before { content: none; }
  .us-panel { padding: 12px; }
  .us-panel > .dp-in { max-width: none; }
  .us-page .rp-btn, .us-t .us-act { min-height: 44px; }
  .us-t .us-act { margin: 3px 6px 3px 0; }
  .us-chk { min-height: 44px; }
  .us-chk input { width: 22px; height: 22px; }
  .us-page .rp-btns { justify-content: stretch; }
  .us-page .rp-btns .rp-btn { flex: 1 1 auto; }
}

/* (13 Nov 2026) the page moving a little sideways on an iPhone. Last in the file, so that it comes after each page's own
   sizes.
   1 · An iPhone zooms the page in when a box whose text is under 16px is tapped, and it stays zoomed on every page after
       (the app is one page): the page then moves sideways. On a phone every box has 16px text, as the sign-in boxes and
       the filters already had: the Daily plan, the Programme page, the company and project filters (Procurement,
       Billing, Variations) and the Client portal page's invitation.
   2 · Admin's Client portal page: the file list's two fixed columns (230px + 120px) were wider than a 360px screen
       (6px past the edge); on a phone they take a share of the width instead, and a long state wraps.
   3 · The page itself only moves up and down on a phone: no sideways bounce of the whole page (iPhone 16 and later
       Safari, and other browsers). Nothing inside the page scrolls sideways on a phone (the wide tables become cards), so
       nothing else is touched.
   4 · (15 Nov 2026) Still moving on an iPhone after 1 to 3. Besides the closed menu no longer being drawn (see the
       sidebar above), a second safeguard: on a phone the page cuts off anything past the right edge instead of letting
       the page move to it (clip, which keeps the sticky top bar working). The phone test still measures every box
       without it, so anything too wide is still found. */
@media (max-width: 720px) {
  html { overscroll-behavior-x: none; overflow-x: hidden; overflow-x: clip; }
  .dp-in, .dp-addsel, .rp-fields .dp-in, .rp-reason .dp-in, .rp-wsel .dp-in, .rp-confirm .dp-in, .fbox select, .pc-f select, .inv input { font-size: 16px; }
  .adm-files td:nth-child(2) { width: 38%; }
  .adm-files td:nth-child(3) { width: 24%; }
  .adm-files .tag { white-space: normal; }
}

/* the Project Manager's projects (14 Nov 2026): one card per project with its three pages */
.pm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.pm-p h2 { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.pm-p .meta { color: var(--fg-3); font-size: 14px; margin: 0 0 14px; overflow-wrap: anywhere; }
.pm-links { display: flex; flex-wrap: wrap; gap: 8px; }

/* ===== "late", the red mark (15 Nov 2026): one rule for every page (programme.js isLate) =====
   A late task carries a small red "late" tag and a red line on its left; a heading counts its late tasks. */
.late-m { margin-left: 4px; vertical-align: 1px; }
tr.is-late > td:first-child { box-shadow: inset 3px 0 0 var(--neg); }
.rp-row.is-late { box-shadow: inset 3px 0 0 var(--neg); }
.rp-hbtn .late-m { margin-left: 8px; }
.dp-task:not(.is-late) .dp-latem { display: none; }
.dp-line:has(> .dp-task.is-late) { box-shadow: inset 3px 0 0 var(--neg); }
.dp-rooms .dp-task.is-late, .dp-parts .dp-task.is-late { padding-left: 9px; border-left: 3px solid var(--neg); }
.dp-lateline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; padding: 10px 18px; border-radius: var(--radius); background: var(--bad-bg); color: var(--neg); font-size: 14px; overflow-wrap: anywhere; }
.dp-lt-w { flex: 1 1 260px; min-width: 0; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.dp-lt-n { font-weight: 600; }
.dp-lt-o { display: inline-flex; align-items: center; min-height: 44px; color: var(--neg); font-weight: 600; }
.dp-lt-sep { color: var(--neg); }
.dp-lt, .dp-lt-all { min-height: 44px; }
.dp-lateline.is-ok, .dp-lateline:has(.dp-lt-ok) { background: var(--ok-bg); color: var(--pos); }

/* ===== the Weekly plan (15 Nov 2026, weekly.js): one column per working day; on a phone the days one under another ===== */
.wk-grid { display: grid; grid-template-columns: repeat(var(--wk-n, 6), minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.wk-day { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bsd-paper-2); overflow: hidden; }
.wk-day.today { border-color: var(--bsd-espresso); }
.wk-dh { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 0; padding: 9px 12px; background: var(--side); font-family: var(--sans); font-size: 14px; font-weight: 500; }
.wk-dh .dp-today { font-size: 11px; }
.wk-chips { display: flex; flex-direction: column; gap: 6px; padding: 8px; }
.wk-chip { display: flex; align-items: flex-start; gap: 0; width: 100%; min-height: 40px; padding: 7px 9px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bsd-paper); color: var(--fg-2); box-shadow: inset 4px 0 0 var(--lane, var(--line-strong)); font: inherit; font-size: 13px; line-height: 1.35; text-align: left; cursor: pointer; }
.wk-chip .dp-dot { margin: 4px 7px 0 2px; }
.wk-chip:hover { border-color: var(--fg-3); }
.wk-chip:focus-visible { outline: none; border-color: var(--bsd-sage); box-shadow: inset 4px 0 0 var(--lane, var(--line-strong)), 0 0 0 3px rgba(145, 141, 117, 0.22); }
.wk-chip.is-late { border: 2px solid var(--neg); padding: 6px 8px; }
.wk-tx { flex: 1 1 auto; min-width: 0; }
.wk-t { display: block; min-width: 0; overflow-wrap: anywhere; }
.wk-rooms { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.3; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* one line; in full in the task's box */
.wk-pv-t .wk-pv-rooms { font-size: 13px; color: var(--fg-3); }
.wk-chip .late-m { flex-shrink: 0; margin: 1px 0 0 6px; }
.wk-none { padding: 4px; font-size: 13px; color: var(--fg-3); }
.wk-day.closed { background: var(--bsd-paper-cool); }
.wk-closed { padding: 12px; color: var(--fg-3); font-size: 13px; }
.wk-closed b { display: block; font-weight: 500; color: var(--fg-2); }
.wk-closed span, .wk-closed small { display: block; }
.wk-pv { padding: 20px 22px; }
.wk-pv h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 24px; font-weight: 500; overflow-wrap: anywhere; }
.wk-pv-t p { margin: 0 0 4px; overflow-wrap: anywhere; }
.wk-pv-t small { display: block; color: var(--fg-3); }
.wk-pv-who { margin: 12px 0; overflow-wrap: anywhere; }
.wk-pv-who b { font-weight: 500; }
.wk-facts { display: grid; gap: 6px; margin: 0 0 16px; }
.wk-facts div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; }
.wk-facts dt { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--label); }
.wk-facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 1100px) { .wk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .wk-grid { grid-template-columns: minmax(0, 1fr); }
  .wk-chip { min-height: 44px; font-size: 14px; }
  .wk-facts div { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
.wk-dh, .wk-pv h3 { text-transform: none; letter-spacing: normal; color: var(--fg-2); }

/* ===== Programme page views (15 Nov 2026, part 2b) =====
   Green: a row at 100% (programme.js isDone, from 99.95%) on the client, working and design programmes, re-planning's
   rows and the client's programme, in the design system's own green (--ok-bg, --pos). A green row is never late. */
tr.is-done { background: var(--ok-bg); }
tr.is-done > td:first-child { box-shadow: inset 3px 0 0 var(--pos); }
tr.is-done > td.pg-done, tr.is-done > td.wp-done { color: var(--pos); font-weight: 500; }
tr.grp.is-done:hover td { background: none; }
.rp-row.is-done { background: var(--ok-bg); box-shadow: inset 3px 0 0 var(--pos); }
.rp-row.is-done .rp-done { color: var(--pos); font-weight: 500; }
.rp-head.is-done { background: var(--ok-bg); box-shadow: inset 3px 0 0 var(--pos); }
.rp-head.is-done .rp-hdone { color: var(--pos); font-weight: 500; }
.rp-done { font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.rp-hrow > div:nth-child(7) { text-align: right; }
/* the green band reaches 10px past the text on each side, so the columns stay in line with the rows that are not green */
.pt-stage.is-done > .pt-srow, .pt-tasks li.is-done { background: var(--ok-bg); box-shadow: inset 3px 0 0 var(--pos); margin-inline: -10px; padding-inline: 10px; border-radius: 0 6px 6px 0; }
.pt-stage.is-done > .pt-srow { width: calc(100% + 20px); }
.pt-stage.is-done .pt-spct, .pt-tasks li.is-done .pt-tpct { color: var(--pos); font-weight: 500; }
/* the client programme's rooms / sections (band → room → tasks): a heavier header row and space above each, so the
   sections read as separate blocks; the tasks under a room are set in a little further */
tr.pband > td { padding-top: 14px; padding-bottom: 10px; }
tr.pband .pg-n { display: inline; margin: 0 0 0 10px; font-size: 12.5px; color: var(--fg-3); }
tbody.prm-h > tr.prm:not(.is-done) { background: var(--bsd-paper-2); }
tr.prm .gbtn { font-size: 16px; font-weight: 500; }
@media (min-width: 721px) {
  tbody.prm-h > tr.prm > td { padding-top: 12px; padding-bottom: 10px; border-top: 1px solid var(--line-strong); border-bottom-color: var(--line-strong); }
  tr.prm > td:nth-child(2) { padding-left: 24px; }
  tbody.prm-l > tr > td:nth-child(2) { padding-left: 44px; }
  tbody.prm-l > tr:last-child > td { padding-bottom: 14px; }
}
@media (max-width: 720px) {
  table.stack > tbody.prm-l > tr { margin-left: 18px; }
  table.stack > tbody.prm-h > tr.prm { padding-top: 12px; border-top: 1px solid var(--line-strong); }
  table.stack > tbody > tr.is-done > td:first-child { box-shadow: none; }
  table.stack > tbody > tr.is-done { box-shadow: inset 3px 0 0 var(--pos); padding-left: 10px; }
  table.stack > tbody.gl > tr.is-done { box-shadow: none; border-left-color: var(--pos); border-left-width: 3px; }
  tr.pband .pg-n { display: block; margin: 2px 0 0 18px; }
}
/* the change log and "What changed": closed to start, the summary line with the count opens it */
details.rp-fold > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-height: 44px; padding: 4px 0; cursor: pointer; list-style: none; }
details.rp-fold > summary::-webkit-details-marker { display: none; }
details.rp-fold > summary::before { content: '▸'; align-self: center; width: 12px; font-size: 12px; color: var(--bsd-sage); }
details.rp-fold[open] > summary::before { content: '▾'; }
details.rp-fold > summary h2 { margin: 0; }
details.rp-fold[open] > summary { margin-bottom: 12px; }
.rp-sum-n { font-size: 14px; color: var(--fg-3); overflow-wrap: anywhere; }

/* ---------- the Joinery page (part J0, 15 Nov 2026; joinery.js): rooms, one row per item (a card on a phone) ---------- */
.jn .card-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.jn-hd, .jn-r { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(4, minmax(0, 1fr)) minmax(0, 0.6fr); gap: 8px; align-items: center; }
.jn-hd { padding: 0 0 8px; border-bottom: 1px solid var(--line-strong); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--label); }
.jn-hd span:last-child, .jn-p { text-align: right; }
.jn-r { padding: 8px 0; border-bottom: 1px solid var(--line); }
.jn-r.is-late { box-shadow: inset 3px 0 0 var(--neg); padding-left: 10px; }
.jn-r.is-done { background: var(--ok-bg); box-shadow: inset 3px 0 0 var(--pos); padding-left: 10px; }
.jn-rb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; width: 100%; min-height: 44px; padding: 10px 0 6px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; color: var(--fg-1); font: inherit; }
.jn-rb::before { content: '▾'; width: 10px; font-size: 10px; color: var(--bsd-sage); }
.jn-rb[aria-expanded="false"]::before { content: '▸'; }
.jn-rb:focus-visible { outline: 2px solid var(--bsd-sage); outline-offset: 2px; }
.jn-rn { font-family: var(--serif); font-size: 17px; }
.jn-n { color: var(--fg-3); font-size: 13px; }
.jn-i { min-width: 0; overflow-wrap: anywhere; }
.jn-who { display: flex; align-items: center; margin-top: 3px; font-size: 12.5px; color: var(--fg-3); }
.jn-who .dp-dot { margin-right: 6px; }
.jn-c { position: relative; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; padding: 4px 8px; min-height: 32px; border-radius: 8px; border: 1px solid var(--line); font-size: 13px; color: var(--fg-2); }
.jn-c.done { background: var(--ok-bg); border-color: transparent; color: var(--pos); }
.jn-c.late { background: var(--bad-bg); border-color: transparent; color: var(--neg); }
.jn-c.na { border-style: dashed; color: var(--fg-3); justify-content: center; }
.jn-c .late-m { margin-left: 0; }
.jn-act { flex-basis: 100%; font-size: 11.5px; color: var(--fg-3); }
.jn-p { position: relative; font-family: var(--serif); font-size: 19px; color: var(--fg-2); }
.jn-r.is-done .jn-p { color: var(--pos); }
.jn-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 720px) {
  .jn-hd { display: none; }
  .jn-r { display: flex; flex-wrap: wrap; align-items: stretch; gap: 6px; padding: 12px 0; min-height: 44px; }
  .jn-r.is-late, .jn-r.is-done { padding-left: 10px; padding-right: 6px; }
  .jn-i { flex: 0 0 100%; font-size: 14.5px; }
  .jn-c, .jn-p { position: relative; flex: 1 1 calc(33.333% - 6px); min-width: 96px; min-height: 44px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding: 4px 8px; text-align: left; }
  .jn-p { display: flex; border: 1px solid var(--line); border-radius: 8px; font-size: 17px; }
  .jn-c.na { align-items: flex-start; }
  .jn-c { flex-wrap: nowrap; }
  .jn-act { flex-basis: auto; }
  .jn-l { position: static; width: auto; height: auto; overflow: visible; clip: auto; font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); white-space: normal; }
}
/* "Hide finished" (15 Nov 2026): the Joinery page and the Programme page; remembered per viewer */
.hd-bar { display: flex; justify-content: flex-end; margin: 4px 0 8px; }
.hd-tog { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bsd-paper-2); color: var(--fg-2); font: inherit; font-size: 13px; cursor: pointer; }
.hd-tog[aria-pressed="true"] { background: var(--bsd-espresso); border-color: var(--bsd-espresso); color: var(--bsd-paper); }
.hd-tog:focus-visible { outline: none; border-color: var(--bsd-sage); box-shadow: 0 0 0 3px rgba(145, 141, 117, 0.22); }
@media (max-width: 720px) { .hd-tog { min-height: 44px; } }
.hide-done .jn-r.is-done, .hide-done .jn-room.is-done, .hide-done tr.is-done, .hide-done .rp-row.is-done, .hide-done .rp-head.is-done { display: none !important; }
/* ---------- marks go straight into the task (part 3b, 15 Nov 2026) ---------- */
/* "Take off": a wrong mark taken off with a reason (Admin and the Project Manager), on a Daily plan line and in the Weekly plan's task box */
.dp-off { min-height: 44px; padding: 0 4px; color: var(--fg-3); }
.dp-off:hover { color: var(--neg); }
.dp-off[hidden] { display: none; }
.dp-offbox { flex-basis: 100%; width: 100%; box-sizing: border-box; margin: 8px 0 4px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bad-bg); }
.dp-offbox[hidden] { display: none; }
.dp-offl { display: grid; gap: 6px; font-size: 13px; color: var(--fg-2); }
.dp-offl-n { margin: 0 0 6px; font-size: 13px; color: var(--fg-2); }
.dp-offr { width: 100%; min-height: 64px; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bsd-paper); color: var(--fg-2); font: inherit; font-size: 16px; resize: vertical; }
.dp-offr:focus { outline: none; border-color: var(--bsd-sage); box-shadow: 0 0 0 3px rgba(145, 141, 117, 0.22); }
.dp-offb { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dp-offb .rp-btn { min-height: 44px; }
.dp-offsay { margin: 6px 0 0; font-size: 13px; color: var(--fg-3); overflow-wrap: anywhere; }
.dp-offsay.bad { color: var(--neg); }
.wk-off { margin: 0 0 14px; }
.wk-said { margin: 0 0 10px; color: var(--pos); font-size: 13px; }
/* a task's history (the log task_progress_log): a small fold, newest first */
.tl-hist { margin-top: 4px; font-size: 12.5px; color: var(--fg-3); max-width: 100%; }
.tl-hist > summary { cursor: pointer; min-height: 28px; display: inline-flex; align-items: center; color: var(--fg-3); }
.tl-hist > summary:focus-visible { outline: 2px solid var(--bsd-sage); outline-offset: 2px; }
.tl-list { list-style: none; margin: 4px 0 0; padding: 0 0 0 10px; border-left: 2px solid var(--line-soft); display: grid; gap: 6px; }
.tl-li { display: grid; gap: 1px; overflow-wrap: anywhere; }
.tl-h { color: var(--fg-3); }
.tl-h b { color: var(--fg-2); font-weight: 500; }
.tl-w { color: var(--fg-2); }
.tl-li.off .tl-w { color: var(--neg); }
.tl-li.low .tl-w { color: var(--warn); }
.wk-pv .tl-hist { margin: 0 0 14px; font-size: 13px; }
@media (max-width: 760px) {
  .tl-hist > summary { min-height: 44px; }
}
.tl-li.sys .tl-w { color: var(--fg-3); font-style: italic; }

/* ---------- a procurement register kept in the app (part P-b, 16 Nov 2026; procedit.js) ---------- */
.ps-open { display: flex; width: fit-content; min-height: 32px; margin-top: 6px; padding: 0 12px; font-size: 13px; }
.pe-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.pe { padding: 20px 22px; }
.pe h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--fg-2); overflow-wrap: anywhere; }
.pe h4 { margin: 18px 0 8px; font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); }
.pe-sub { margin: 0 0 8px; font-size: 14px; color: var(--fg-3); overflow-wrap: anywhere; }
.pe-stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pe-st { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 44px; padding: 4px 4px 4px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; color: var(--fg-2); }
.pe-st.done { background: var(--ok-bg); border-color: transparent; color: var(--pos); }
.pe-st.late { background: var(--bad-bg); border-color: transparent; color: var(--neg); }
.pe-st.na { border-style: dashed; color: var(--fg-3); }
.pe-st small { color: var(--fg-3); font-size: 12px; }
.pe-st .rp-btn { min-height: 36px; }
.pe-sw { overflow-wrap: anywhere; }
.pe-st .late-m { margin-left: 4px; }
.pe-l { display: grid; gap: 4px; min-width: 0; font-size: 13px; color: var(--fg-2); }
.pe-l > span { color: var(--fg-3); }
.pe-l input, .pe-l select, .pe-l textarea { width: 100%; min-width: 0; box-sizing: border-box; min-height: 40px; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bsd-paper); color: var(--fg-2); font: inherit; font-size: 15px; }
.pe-l textarea { resize: vertical; }
.pe-day { max-width: 240px; margin: 0 0 10px; }
.pe-chk { display: flex; align-items: center; gap: 8px; min-height: 40px; font-size: 14px; color: var(--fg-2); }
.pe-chk input { width: 20px; height: 20px; }
.pe-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin: 4px 0 12px; }
.pe-grid > .pe-l:has(select), .pe-grid > .pe-l:has(textarea), .pe-grid > .pe-l:first-child { grid-column: 1 / -1; }
.pe-nums { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.pe-nums > .pe-l:first-child { grid-column: auto; }
.pe-fold { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 4px; }
.pe-say { margin: 8px 0 0; min-height: 0; font-size: 14px; color: var(--fg-2); overflow-wrap: anywhere; }
.pe-say:empty { display: none; }
.pe-say.bad, .pe-sum.bad { color: var(--neg); }
.pe-sum { margin: 0 0 6px; font-size: 13.5px; color: var(--fg-3); }
.pe-offbox { margin-top: 10px; }
.pe .rp-btns { position: sticky; bottom: -20px; margin: 14px -22px -20px; padding: 12px 22px 20px; background: var(--bsd-paper); border-top: 1px solid var(--line); }
.pe-fold .rp-btns { position: static; margin: 10px 0 0; padding: 0; border: 0; background: none; }
.pe-move p { max-width: 70ch; }
.pe-move .pe-l { max-width: 320px; margin-top: 10px; }
.pe-loose { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }
.pe-loose small { color: var(--fg-3); }
.pe-figs { margin-top: 12px; }
.pe-done { margin: 12px 0; }
@media (max-width: 720px) {
  .pe { padding: 16px; }
  .pe .rp-btns { bottom: -16px; margin: 14px -16px -16px; padding: 12px 16px 16px; }
  .pe-grid { grid-template-columns: minmax(0, 1fr); }
  .pe-st { grid-template-columns: minmax(0, 1fr) auto; }
  .pe-st .pe-sw { grid-column: 1; grid-row: 2; }
  .pe-st .rp-btn { grid-column: 2; grid-row: 1 / span 2; min-height: 44px; }
  .pe-l input, .pe-l select, .pe-l textarea, .pe-move input { font-size: 16px; min-height: 44px; }
  .ps-open, .pe-tools .rp-btn, .pe .rp-btn, .pe-move .rp-btn { min-height: 44px; }
  .pe-chk { min-height: 44px; }
  .pe-day { max-width: none; }
}
/* ---------- joinery in stages (part J1, 16 Nov 2026): the stages that fall on a day, and "Change" on the Joinery page ---------- */
.jm-day { border-top: 1px solid var(--line); padding: 10px 22px 12px; display: grid; gap: 8px; }
.jm-h { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--label); }
.jm-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-width: 0; padding: 6px 0 6px 12px; box-shadow: inset 4px 0 0 var(--lane, var(--line-strong)); }
.jm-line + .jm-line { border-top: 1px dashed var(--line-strong); }
.jm-tx { display: flex; align-items: flex-start; flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
.jm-tx .dp-dot { margin-top: 5px; }
.jm-tx b { font-weight: 500; }
.jm-tx small { display: block; font-size: 12.5px; color: var(--fg-3); }
.jm-line.is-over .jm-tx small { color: var(--warn); }
.jm-line .late-m { margin-left: 4px; }
.jm-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.jm-ctl .dp-state { margin-top: 0; }
.jm-tick, .pd-tick { min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bsd-paper); color: var(--fg-2); font: inherit; font-size: 13.5px; cursor: pointer; }
.jm-tick[aria-pressed="true"] { border-color: var(--pos); background: var(--ok-bg); color: var(--pos); font-weight: 500; }
.jm-tick:focus-visible, .pd-tick:focus-visible, .jm-in:focus { outline: none; border-color: var(--bsd-sage); box-shadow: 0 0 0 3px rgba(145, 141, 117, 0.22); }
.jm-in { width: 70px; min-height: 44px; box-sizing: border-box; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bsd-paper); color: var(--fg-2); font: inherit; font-size: 16px; text-align: right; }
.wk-chip.jm-chip, .wk-chip.pd-chip { border-style: dashed; }
.wk-chip.jm-chip.is-late, .wk-chip.pd-chip.is-late { border-style: solid; }
.pd-done { font-size: 13.5px; color: var(--pos); font-weight: 500; }
.pd-tick:disabled { opacity: 0.6; cursor: default; }
/* (part 4b) a day drawn from the programme's midnight snapshot (no record of it) */
.dp-snap, .wk-snap { font-size: 12px; color: var(--fg-3); font-style: italic; }
.wk-snap { display: block; font-weight: 400; }
.jn-edit { display: inline-flex; align-items: center; min-height: 32px; margin-top: 2px; }
.jn-ed { display: grid; gap: 12px; padding: 12px 14px 14px; margin: 0 0 8px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bsd-paper); min-width: 0; }
.jn-ef { min-width: 0; margin: 0; padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 10px; }
.jn-ef legend { padding: 0 6px; font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); }
.jn-es { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 14px; min-width: 0; }
.jn-on { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 150px; cursor: pointer; }
.jn-on input { width: 20px; height: 20px; margin: 0; accent-color: var(--bsd-espresso); }
.jn-on b { font-weight: 500; }
.jn-on small { color: var(--fg-3); }
.jn-ds { display: flex; flex-wrap: wrap; gap: 6px 10px; min-width: 0; }
.jn-d { display: grid; gap: 3px; min-width: 0; font-size: 12px; color: var(--fg-3); }
.jn-d input, .jn-d select { min-height: 44px; box-sizing: border-box; max-width: 100%; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bsd-paper-2); color: var(--fg-2); font: inherit; font-size: 16px; }
.jn-d.jn-wide, .jn-d.jn-wide select { width: 100%; }
.jn-mr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-width: 0; padding-top: 6px; border-top: 1px dashed var(--line); }
.jn-mr > b { min-width: 90px; font-weight: 500; }
.jn-ok { color: var(--pos); font-size: 13.5px; }
.jn-mr .dp-pct .dp-in { width: 80px; font-size: 16px; }
.jn-off { min-height: 44px; color: var(--fg-3); }
.jn-off:hover { color: var(--neg); }
.jn-rs { display: grid; gap: 4px; font-size: 13px; color: var(--fg-2); min-width: 0; }
.jn-rs textarea { min-height: 60px; padding: 8px 10px; font-size: 16px; resize: vertical; }
.jn-p2 { margin: 0; font-size: 13px; color: var(--fg-3); }
.jn-ed .rp-btns, .jn-add .rp-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.jn-ed .rp-btn, .jn-add .rp-btn { min-height: 44px; }
.jn-add { display: grid; gap: 10px; margin-top: 18px; }
@media (max-width: 1240px) { .jm-day { padding-left: 16px; padding-right: 16px; } }
@media (max-width: 720px) {
  .jn-edit { min-height: 44px; }
  .jn-ed { padding: 10px; }
  .jn-ef { padding: 8px 10px 10px; }
  .jn-d input { width: 100%; }
  .jn-ds { flex: 1 1 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jn-ds .jn-d:only-child { grid-column: 1 / -1; }
  .jm-tick, .pd-tick { flex: 1 1 auto; }
}
.jn-ef > .rp-btn, .jn-day { justify-self: start; }
.jn-inst { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; min-height: 44px; font-size: 13.5px; }
.jn-inst small { color: var(--fg-3); font-size: 12.5px; }
.jn-inst a { display: inline-flex; align-items: center; min-height: 44px; }
/* installation's start and days changed on the Joinery page (17 Nov 2026) */
.jn-ds .jn-idays { width: 96px; }
.jn-ds > .jn-inst, .jn-ds > .jn-ibtns { flex: 1 1 100%; grid-column: 1 / -1; }
.jn-ed .jn-ibtns { align-items: center; justify-content: flex-start; }
.jn-ibtns a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 720px) { .jn-ds .jn-idays { width: 100%; } }

/* ---------- procurement (16 Nov 2026): "Hide finished", a stage ticked on its box, Edit's dates, Remove for good ---------- */
.hide-done .ps-r.is-done, .hide-done .ps-sec.is-done, .hide-done .pc-g.is-done { display: none !important; }
#proc-stages .card-h .hd-tog { margin-left: auto; }
.pc-f .hd-tog { flex: 0 0 auto; }
button.ps-tk { font: inherit; font-size: 13px; text-align: left; background: transparent; cursor: pointer; }
button.ps-tk.late { background: var(--bad-bg); }
.ps-tk .ps-ok { display: none; margin-left: auto; font-weight: 600; color: var(--pos); }
.ps-tk:hover, .ps-tk:focus-visible { border-color: var(--pos); background: var(--ok-bg); color: var(--pos); outline: none; }
.ps-tk:hover .ps-ok, .ps-tk:focus-visible .ps-ok { display: inline; }
.ps-tk:hover .tag, .ps-tk:focus-visible .tag { opacity: 0.6; }
.ps-tk[aria-busy="true"] { opacity: 0.6; cursor: progress; }
/* (17 Nov 2026) the latest ticked stage: a click takes its tick off; the mouse over it turns the tick into a red cross */
.ps-c .ps-x { display: none; }
button.ps-un { font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.ps-un:hover, .ps-un:focus-visible { border-color: var(--neg); background: var(--bad-bg); color: var(--neg); outline: none; }
.ps-un:hover .ps-v, .ps-un:focus-visible .ps-v { display: none; }
.ps-un:hover .ps-x, .ps-un:focus-visible .ps-x { display: inline; font-weight: 600; }
.ps-un[aria-busy="true"] { opacity: 0.6; cursor: progress; }
.ps-say { display: block; margin-top: 4px; font-size: 12.5px; color: var(--neg); overflow-wrap: anywhere; }
.ps-say.ok { color: var(--pos); }
.pe-dd { display: inline; padding: 0; border: 0; border-bottom: 1px dashed currentColor; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.pe-dd:hover, .pe-dd:focus-visible { border-bottom-style: solid; outline: none; }
.pe-ddbox { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: end; gap: 8px; padding: 6px 0 2px; }
.pe-ddbox .pe-l { flex: 1 1 160px; }
.pe-ddbox .rp-btn { min-height: 40px; }
.pe-ddbox small { flex: 0 0 100%; }
.pe-rmbox { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--neg); border-radius: 8px; background: var(--bad-bg); }
.pe-rmbox h4 { margin-top: 0; color: var(--neg); }
.pe-rmbox ul { margin: 6px 0 10px; padding-left: 18px; font-size: 14px; }
.pe-rmbox .rp-btns { position: static; margin: 10px 0 0; padding: 0; border: 0; background: none; }
.pe-rmlog { margin: 0 0 14px; }
.pe-rmlog .tl-list { margin: 8px 0 0; }
@media (max-width: 720px) {
  button.ps-tk, button.ps-un { min-height: 44px; }
  .pe-dd { display: inline-flex; align-items: center; min-height: 44px; }
  .pe-ddbox .rp-btn { min-height: 44px; }
  .pc-f .hd-tog, #proc-stages .card-h .hd-tog { min-height: 44px; }
  .ps-tk .ps-ok { position: absolute; top: 6px; right: 8px; }
}
/* a touch screen has no mouse-over: a faint tick says the box can be tapped */
@media (hover: none) { .ps-tk .ps-ok { display: inline; opacity: 0.35; } .ps-tk:focus-visible .ps-ok { opacity: 1; } }

/* ===== the search box of the Daily plan and the Weekly plan (17 Nov 2026, plansearch.js) ===== */
.qs-bar { margin: -6px 0 16px; }
.qs-w { position: relative; display: inline-flex; width: min(100%, 380px); }
.qs-w .ic { left: 12px; top: 11px; }
.fbox .qs-w input { width: 100%; padding-right: 44px; }
.qs-in::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.qs-x { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 8px; background: none; color: var(--fg-3); font: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.qs-x:hover { color: var(--fg-1); }
.qs-x:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(145, 141, 117, 0.22); }
.qs-x[hidden] { display: none; }
.qs-out { display: none !important; }
.qs-none { padding: 6px 4px 10px; font-size: 13px; color: var(--fg-3); }
.dp-card .qs-none { padding: 8px 16px 12px; }
/* (r16, 18 Nov 2026) a task on hold: grey, "On hold" and its reason, no dates; the contractor chosen with its colour */
.tag.hold-m { border-color: var(--line-strong); background: var(--bsd-paper-cool); color: var(--fg-3); }
.rp-row.is-held { background: var(--bsd-paper-cool); box-shadow: inset 3px 0 0 var(--line-strong); }
.rp-row.is-held .rp-name, .rp-row.is-held .rp-done, .rp-row.is-held .rp-cl { color: var(--fg-3); }
.rp-held { font-size: 13.5px; color: var(--fg-3); }
.rp-hold-r { display: block; margin-top: 2px; font-size: 12.5px; color: var(--fg-3); font-style: italic; overflow-wrap: anywhere; }
.rp-why .linkbtn { font-size: 12.5px; color: var(--fg-3); }
.rp-lanebtn { display: inline-flex; align-items: center; }
.rp-lanebtn .dp-dot { width: 8px; height: 8px; margin-right: 5px; }
.rp-fs { margin: 0 0 12px; padding: 0; border: 0; min-width: 0; }
.rp-fs legend { margin-bottom: 6px; padding: 0; font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); }
.rp-fs legend small { letter-spacing: 0; text-transform: none; font-weight: 400; }
.rp-fs select { display: block; width: 100%; max-width: 420px; margin: 2px 0 8px 26px; max-width: calc(100% - 26px); }
.rp-picks { display: flex; flex-wrap: wrap; gap: 2px 18px; }
.rp-pick { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; min-width: 0; font-size: 14px; color: var(--fg-2); cursor: pointer; overflow-wrap: anywhere; }
.rp-pick input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--bsd-espresso); }
.rp-pick .dp-dot { margin-right: 0; }
.rp-pv-lanes .dp-dot { width: 8px; height: 8px; margin: 0 4px 0 0; }
.rp-back-held { margin: 0 0 10px; }
tr.is-held { background: var(--bsd-paper-cool); }
tr.is-held > td:first-child { box-shadow: inset 3px 0 0 var(--line-strong); }
tr.is-held > td { color: var(--fg-3); }
.wp-held { color: var(--fg-3); }
.hold-why { display: block; font-style: italic; }
/* (r17, 18 Nov 2026) tasks added in the app, split parts, the "Added work to decide" card, the add / split / kind forms */
.rp-kt, .rp-pt { margin-left: 6px; }
.rp-vo-in { font-size: 12.5px; color: var(--fg-3); }
.rp-note-l { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; min-width: 0; font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); }
.rp-note-l small { letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--fg-3); }
.rp-note-l .dp-in { font-size: 15px; letter-spacing: 0; text-transform: none; font-weight: 400; max-width: 100%; box-sizing: border-box; }
.rp-pick span small { display: block; font-size: 12.5px; color: var(--fg-3); }
.rp-parts { display: grid; gap: 8px; margin: 10px 0; }
.rp-part { display: grid; grid-template-columns: 70px repeat(2, minmax(0, 160px)); gap: 6px 12px; align-items: end; min-width: 0; }
.rp-part b { align-self: center; font-size: 14px; }
.rp-part label { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); }
.rp-part .dp-in { font-size: 15px; letter-spacing: 0; text-transform: none; font-weight: 400; min-width: 0; width: 100%; box-sizing: border-box; }
.rp-s-dep { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 6px; font-size: 14px; color: var(--fg-2); overflow-wrap: anywhere; }
.rp-s-dep select { display: inline-block; width: auto; margin: 0; max-width: 100%; }
.rp-decide h3 { margin: 0 0 8px; }
.rp-dc { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.rp-dc-i { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; }
.rp-dc-note { display: block; margin-top: 2px; font-size: 12.5px; color: var(--fg-3); font-style: italic; }
.rp-dc-bar { align-items: center; flex-wrap: wrap; justify-content: flex-start; }
.rp-dc-bar small { color: var(--fg-3); }
.rp-back-added { margin: 0 0 10px; }
@media (max-width: 720px) {
  .rp-part { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rp-part b { grid-column: 1 / -1; }
  .rp-part .dp-in, .rp-note-l .dp-in, .rp-s-dep select { font-size: 16px; min-height: 44px; }
  .rp-dc-b .linkbtn { display: inline-flex; align-items: center; min-height: 44px; }
  .rp-s-dep select { width: 100%; }
}
@media (max-width: 720px) {
  .rp-why .linkbtn, .rp-pick { min-height: 44px; }
  .rp-why .linkbtn { display: inline-flex; align-items: center; }
  .rp-fs select { margin-left: 0; max-width: 100%; }
}
@media (max-width: 720px) {
  .qs-w { width: 100%; }
  .fbox .qs-w input { min-height: 44px; font-size: 16px; }
  .qs-w .ic { top: 13px; }
  .qs-x { width: 44px; height: 44px; right: 0; }
}
/* ---- procurement, Jeffrey's requests of 17 Nov 2026 ---- */
.ps-q { color: var(--fg-2); }
.ps-cm { display: inline-block; margin-left: 6px; vertical-align: -2px; }
.ps-cm > summary { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; min-height: 22px; border-radius: 6px; color: var(--fg-3); cursor: pointer; list-style: none; }
.ps-cm > summary::-webkit-details-marker { display: none; }
.ps-cm > summary:hover, .ps-cm > summary:focus-visible, .ps-cm[open] > summary { color: var(--fg-1); background: var(--bsd-paper); outline: none; }
.ps-cmw { display: block; margin-top: 4px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bsd-paper); font-size: 13px; color: var(--fg-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.ps-cm[open] { display: block; margin-left: 0; }
.pe-name { display: inline; padding: 0; border: 0; border-bottom: 1px dashed transparent; background: none; color: inherit; font: inherit; text-align: left; cursor: text; overflow-wrap: anywhere; }
.pe-name:hover, .pe-name:focus-visible { border-bottom-color: currentColor; outline: none; }
.pe-name-in { width: 100%; box-sizing: border-box; min-height: 40px; padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bsd-paper); color: var(--fg-1); font: inherit; font-size: 18px; }
.pe-dp { min-height: 36px; margin-left: 6px; padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bsd-paper); color: var(--fg-2); font: inherit; font-size: 15px; max-width: 100%; box-sizing: border-box; }
.pe-ddx { padding: 0; border: 0; border-bottom: 1px dashed currentColor; background: none; color: var(--fg-3); font: inherit; font-size: 12.5px; cursor: pointer; }
.pe-l select + input[type="text"] { margin-top: 6px; }
.so-sts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.so-st { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; color: var(--fg-2); white-space: nowrap; }
.so-st svg { width: 12px; height: 12px; }
.so-st.ok { background: var(--ok-bg); border-color: transparent; color: var(--pos); }
.so-st.bad { background: var(--bad-bg); border-color: transparent; color: var(--neg); }
.so-st.na { border-style: dashed; color: var(--fg-3); }
@media (max-width: 720px) {
  .ps-cm > summary { min-width: 44px; min-height: 44px; }
  .pe-name-in, .pe-dp { font-size: 16px; min-height: 44px; }
  .pe-ddx { display: inline-flex; align-items: center; min-height: 44px; }
  .so-r { flex-wrap: wrap; }
  .so-sts { justify-content: flex-start; }
  .so-st { white-space: normal; }
}

/* ---------- client sign-offs (part S1, 18 Nov 2026): the Sign-offs page's cards and box, the client's card ---------- */
.so-page { display: grid; gap: 16px; min-width: 0; }
.so-page > .figs { margin: 0; }
.so-chip { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; background: #EDE8E0; color: var(--fg-1); font-size: 12px; font-weight: 500; white-space: nowrap; }
.so-chip.ok { background: var(--ok-bg); color: var(--pos); }
.so-chip.warn { background: var(--warn-bg); color: var(--warn); }
.so-chip.bad { background: var(--bad-bg); color: var(--neg); }
.so-tag { display: inline-block; margin: 2px 0 0 6px; padding: 1px 7px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); font-size: 11.5px; }
.so-send { display: grid; gap: 8px; justify-items: start; }
.so-send .rp-btn, .so-btns .rp-btn, .so-filebtn { min-height: 44px; }
.so-confirm { padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bsd-paper); max-width: 100%; box-sizing: border-box; overflow-wrap: anywhere; }
.so-confirm ul { margin: 6px 0 10px; padding-left: 18px; }
.so-last { margin: 0; font-size: 13px; color: var(--fg-3); }
.so-said { margin: 8px 0 0; font-size: 14px; color: var(--fg-2); overflow-wrap: anywhere; }
.so-said:empty { display: none; }
.so-said.bad, .so-psaid.bad { color: var(--neg); }
.so-btns { position: static; margin: 10px 0 0; padding: 0; border: 0; background: none; display: flex; flex-wrap: wrap; gap: 8px; }
/* the box: the procurement box's classes (.pe, .pe-stages, .pe-l, .pe-fold, .pe-rmbox, .dp-offb); only what it lacks here */
.so-box .pe-l input, .so-box .pe-l textarea, .so-box .pe-dp { font-size: 16px; min-height: 44px; }
.so-box .rp-btn, .so-box .so-filebtn { min-height: 44px; }
.so-box .pe-st { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr) minmax(170px, auto); }
.so-box .pe-st > .rp-btn { justify-self: end; }
.so-box .pe-st small { display: block; }
.so-box .so-wide { grid-column: 1 / -1; }
.so-sub { margin: 8px 0 4px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bsd-paper-2); display: grid; gap: 6px; }
.so-sub[hidden] { display: none; }
.so-sub .dp-offl-n, .so-sub .pe-sw { margin: 0; }
.so-ro { margin: 0; }
.so-files { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.so-f { display: grid; gap: 6px; min-width: 0; align-content: start; }
.so-th { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--bsd-paper-2); color: var(--fg-2); font-size: 11px; flex-direction: column; text-decoration: none; }
.so-th img { width: 100%; height: 100%; object-fit: cover; }
.so-pdf { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.so-fc { display: grid; justify-items: start; min-width: 0; font-size: 13.5px; color: var(--fg-2); overflow-wrap: anywhere; }
.so-fc small { color: var(--fg-3); font-size: 12px; }
.so-add { display: grid; gap: 6px; margin-top: 10px; }
.so-add .note { margin: 0; }
.so-filebtn { position: relative; overflow: hidden; }
.so-filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 16px; }
.so-cam { display: none; }
@media (hover: none) and (pointer: coarse) { .so-cam { display: inline-flex; } }
.so-radio { display: flex; flex-wrap: wrap; gap: 14px; }
.so-radio label { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.so-radio input { width: 20px; height: 20px; accent-color: var(--bsd-espresso); }
.so-hv ul { margin: 4px 0 8px; padding-left: 18px; font-size: 13.5px; }
.so-hv li span { color: var(--fg-3); }
.so-wait b { color: var(--warn); }
/* the client's card */
.so-pc .cnt { font-size: 15px; color: var(--fg-3); }
.so-pl { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.so-pi { display: grid; gap: 4px; padding: 14px 0 0; border-top: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; }
.so-pi:first-child { border-top: 0; padding-top: 0; }
.so-kind { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.so-pt { font-size: 17px; }
.so-pr { color: var(--fg-3); }
.so-pn { margin: 4px 0; }
.so-pics { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.so-pp { display: grid; gap: 2px; width: 120px; max-width: 45%; text-decoration: none; color: var(--fg-3); font-size: 12px; }
.so-pp img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.so-pb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.so-pb .btn, .so-pb .linkbtn { min-height: 44px; }
.so-pb .so-ch { background: transparent; color: var(--bsd-espresso); box-shadow: inset 0 0 0 1px var(--bsd-espresso); }
.so-pbox { margin-top: 6px; }
.so-plabel { display: grid; gap: 4px; font-size: 14px; }
.so-pbox textarea { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bsd-paper); color: var(--fg-2); font: inherit; font-size: 16px; resize: vertical; }
.so-psaid { margin: 4px 0 0; font-size: 14px; }
.so-psaid:empty { display: none; }
.so-thanks { margin: 0 0 12px; padding: 10px 14px; border-radius: 8px; background: var(--ok-bg); color: var(--pos); }
@media (max-width: 720px) {
  .so-box.pe { padding: 16px; }
  .so-box .pe-st { grid-template-columns: minmax(0, 1fr) auto; }
  .so-box .pe-st .pe-sw { grid-column: 1 / -1; grid-row: 2; }
  .so-files { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Remarks per task (18 Nov 2026, rT0; js/remarks.js): the newest remark under the task's line, "n earlier" folded, "Add a
   remark" with a small form; the same on a room's sub-line, the Weekly plan's task box and the Programme page's task */
.rmk { flex-basis: 100%; width: 100%; box-sizing: border-box; min-width: 0; margin-top: 6px; font-size: 13px; color: var(--fg-2); overflow-wrap: anywhere; }
.rmk-r { margin: 0; white-space: pre-line; }
.rmk-h { color: var(--fg-3); }
.rmk-h b { color: var(--fg-2); font-weight: 500; }
.rmk-more { margin-top: 2px; color: var(--fg-3); }
.rmk-more > summary { cursor: pointer; min-height: 28px; display: inline-flex; align-items: center; }
.rmk-more > summary:focus-visible { outline: 2px solid var(--bsd-sage); outline-offset: 2px; }
.rmk-list { list-style: none; margin: 4px 0 0; padding: 0 0 0 10px; border-left: 2px solid var(--line-soft); display: grid; gap: 6px; color: var(--fg-2); }
.rmk-add, .rmk-off { min-height: 28px; padding: 0 4px; color: var(--fg-3); }
.rmk-add:hover, .rmk-off:hover { color: var(--fg-1); }
.rmk-form { margin: 6px 0 2px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--side); }
.rmk-form[hidden], .rmk-off[hidden] { display: none; }
.rmk-l { display: grid; gap: 6px; font-size: 13px; color: var(--fg-2); }
.rmk-in { width: 100%; min-height: 64px; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bsd-paper); color: var(--fg-2); font: inherit; font-size: 16px; resize: vertical; }
.rmk-in:focus { outline: none; border-color: var(--bsd-sage); box-shadow: 0 0 0 3px rgba(145, 141, 117, 0.22); }
.rmk-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 6px; white-space: normal; }
.rmk-ask > span { flex: 1 1 100%; color: var(--fg-3); }
.rmk-ask .rp-btn { min-height: 44px; }
.rmk-say { margin: 4px 0 0; font-size: 12.5px; color: var(--fg-3); }
.rmk-say:empty { display: none; }
.rmk-say.bad { color: var(--neg); }
.wk-pv .rmk { margin: 0 0 14px; }
.rmk-prog { margin-top: 4px; font-size: 12.5px; }
@media (max-width: 1240px) {
  .rmk-add, .rmk-off, .rmk-more > summary { min-height: 44px; }
}
.rmk-rm { color: var(--fg-3); }
/* (r18, 19 Nov 2026) "Days off" on the Programme page: the weekly days off and the public holidays to untick; a task held
   because of a task on hold it waits for (grey as a held task, its words under it) */
.rp-hols .rp-hol-off span { color: var(--fg-3); }
.rp-held.rp-when { color: var(--fg-3); }
@media (max-width: 720px) {
  .rp-hols .linkbtn { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ===== redesign: weekly ===== */
/* (19 Nov 2026) the Weekly plan as Jeffrey's approved boards "Weekly plan — drag a bar or its ends" and "Phone — Weekly
   plan" draw it (weekly.js). Every class starts with wkp-. */
.wkp-vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

.page.proj:has(.wkp), .page.proj:has(.wkp) .page { padding: 0; max-width: none; margin: 0; }
.wkp { font-family: var(--sans); color: var(--fg-2); }
.wkp-lbl { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--label); }
.wkp-btn { font-family: var(--sans); font-size: 14px; min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bsd-paper-2); color: var(--fg-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; box-sizing: border-box; }
.wkp-btn:disabled, .wkp-big:disabled { opacity: .45; cursor: default; }
.wkp-btn.wkp-sq { width: 40px; padding: 0; }
.wkp-dark { background: var(--fg-2); color: var(--bsd-paper); border-color: var(--fg-2); }
a.wkp-dark, a.wkp-dark:hover { color: var(--bsd-paper); }
.wkp-grow { flex: 1; min-width: 0; }
.wkp-row { display: flex; gap: 10px; }
.wkp-red { color: var(--neg); }
.wkp-green { color: var(--pos); }
.wkp-b { font-weight: 500; }
.wkp-dot { display: inline-block; width: 10px; height: 10px; border-radius: 5px; flex: none; background: var(--lane); }
.wkp-late { flex: none; font-size: 11px; padding: 0 6px; border-radius: 6px; background: var(--neg); color: #FFFFFF; font-style: normal; }
.wkp-tag { font-size: 13px; padding: 3px 9px; border-radius: 8px; background: var(--warn-bg); color: var(--warn); white-space: nowrap; }
/* the week's buttons in the project's header */
.wkp-htools { margin-left: auto; display: flex; align-items: center; gap: 16px; padding-bottom: 6px; flex: none; }
.ph-top:has(.wkp-htools) .ph-st { margin-left: 0; }
.wkp-weeknav { display: flex; align-items: center; gap: 6px; }
.wkp-wk { font-weight: 500; min-width: 150px; text-align: center; }
/* the Project Manager's note */
.wkp-pmnote { padding: 8px 28px; font-size: 13px; color: var(--fg-1); background: var(--side); border-bottom: 1px solid var(--line); }
/* the computer: the plan and the box on the right */
.wkp-body { display: flex; flex-wrap: wrap; min-height: calc(100vh - 140px); }
.wkp-mainc { flex: 999 1 760px; min-width: 0; padding: 20px 28px; }
.wkp-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.wkp-lanes { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.wkp-pill { font: inherit; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 18px; cursor: pointer; background: var(--bsd-paper-2); color: var(--fg-2); border: 1px solid var(--line); }
.wkp-pill.is-on { background: var(--fg-2); color: var(--bsd-paper); border-color: var(--fg-2); }
.wkp-latep.is-on { background: var(--neg); color: var(--bsd-paper); border-color: var(--neg); }
.wkp-pdot { width: 8px; height: 8px; border-radius: 4px; background: var(--lane); flex: none; }
.wkp-find { position: relative; display: inline-flex; }
.wkp-find input { font: inherit; font-size: 14px; height: 36px; width: 200px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bsd-paper-2); color: var(--fg-2); box-sizing: border-box; }
.wkp-found { font-size: 13px; color: var(--fg-3); }
.wkp-scroll { overflow-x: auto; }
.wkp-table { min-width: 760px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bsd-paper-2); }
.wkp-thead { display: grid; background: var(--side); border-bottom: 1px solid var(--line); }
.wkp-ch { padding: 12px; }
.wkp-dh { padding: 10px 12px; border-left: 1px solid var(--line-soft); }
.wkp-dh.is-today { background: var(--warn-bg); }
.wkp-dh.is-shut { background: var(--track); color: var(--fg-3); }
.wkp-dn { font-weight: 600; }
.wkp-dsub { font-size: 12px; color: var(--fg-3); }
.wkp-lane { display: grid; grid-template-columns: 170px minmax(0, 1fr); border-bottom: 1px solid var(--line-soft); }
.wkp-lane:last-child { border-bottom: 0; }
.wkp-lane.is-target { box-shadow: inset 0 0 0 2px var(--fg-2); }
.wkp-lh { padding: 12px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line-soft); }
.wkp-ln { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.wkp-ls { font-size: 12px; color: var(--fg-3); }
.wkp-lgrid { position: relative; display: grid; grid-auto-rows: 52px; row-gap: 6px; padding: 8px 0; min-height: 52px; background-image: linear-gradient(to right, var(--line-soft) 1px, transparent 1px); }
.wkp-shade { position: absolute; top: 0; bottom: 0; }
.wkp-tshade { background: rgba(243, 234, 220, 0.55); }
.wkp-shut { background: var(--track); }
.wkp-bar { position: relative; display: flex; align-items: center; gap: 6px; min-height: 46px; margin: 0 4px; box-sizing: border-box; border-radius: 10px; padding: 5px 18px; font-family: var(--sans); text-align: left; border: 0; cursor: pointer; color: var(--fg-2); overflow: hidden; min-width: 0;
  background: color-mix(in srgb, var(--lane) 13.3%, transparent); box-shadow: inset 4px 0 0 var(--lane); }
.wkp-bar[data-drag] { cursor: grab; }
.wkp-bar.is-drag { cursor: grabbing; z-index: 3; opacity: .92; }
.wkp-bar.is-done { background: var(--ok-bg); box-shadow: inset 4px 0 0 var(--pos); }
.wkp-bar.is-late { box-shadow: inset 4px 0 0 var(--lane), 0 0 0 1.5px var(--neg); }
.wkp-bar.is-sel { box-shadow: inset 4px 0 0 var(--lane), 0 0 0 2px var(--fg-2); }
.wkp-bar.is-done.is-sel { box-shadow: inset 4px 0 0 var(--pos), 0 0 0 2px var(--fg-2); }
.wkp-bar.is-late.is-sel { box-shadow: inset 4px 0 0 var(--lane), 0 0 0 1.5px var(--neg), 0 0 0 2px var(--fg-2); }
.wkp-bar.is-from { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.wkp-bar.is-to { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.wkp-bar.is-dim { opacity: .28; }
/* (22 Nov 2026) a task on hold: grey stripes, as on the Programme page; never late */
.wkp-bar.is-held, .wkp-tc.is-held { background: repeating-linear-gradient(45deg, #F4F1EC 0 8px, #ECE6DD 8px 16px); box-shadow: inset 4px 0 0 var(--line-strong); color: var(--fg-3); }
.wkp-bar.is-held.is-sel { box-shadow: inset 4px 0 0 var(--line-strong), 0 0 0 2px var(--fg-2); }
.wkp-grip { position: absolute; top: 8px; bottom: 8px; width: 5px; border-radius: 3px; background: rgba(63, 56, 51, 0.35); cursor: ew-resize; }
.wkp-lock { position: absolute; left: 6px; top: 50%; margin-top: -7px; width: 10px; height: 14px; }
.wkp-btx { position: relative; display: flex; flex-direction: column; min-width: 0; }
.wkp-bt { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wkp-bs { display: flex; align-items: center; gap: 6px; min-width: 0; }
.wkp-bsw { font-size: 12px; color: var(--fg-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wkp-bsw .wkp-red { font-weight: 500; }
.wkp-ghost { margin: 0 4px; border: 2px dashed var(--bsd-taupe); border-radius: 10px; }
.wkp-del { position: relative; align-self: center; justify-self: center; width: 10px; height: 10px; transform: rotate(45deg); border-radius: 1px; background: var(--lane); }
.wkp-tip { z-index: 2; align-self: start; justify-self: start; margin: -34px 0 0 8px; padding: 5px 10px; border-radius: 8px; background: var(--fg-2); color: var(--bsd-paper); font-size: 13px; white-space: nowrap; pointer-events: none; }
.wkp-legend { display: flex; flex-wrap: wrap; gap: 18px; margin: 14px 2px; font-size: 13px; color: var(--fg-3); }
.wkp-legend b { color: var(--fg-2); font-weight: 600; }
/* the box on the right */
.wkp-aside { flex: 1 1 340px; max-width: 380px; border-left: 1px solid var(--line); background: var(--bsd-paper-2); padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; box-sizing: border-box; }
.wkp-hint { margin: 0; font-size: 14px; color: var(--fg-3); }
.wkp-h2 { margin: 0; font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.1; }
.wkp-words { font-size: 14px; color: var(--fg-1); }
.wkp-note { font-size: 13px; color: var(--fg-3); }
.wkp-facts { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 6px 10px; font-size: 14px; font-variant-numeric: tabular-nums; }
.wkp-facts > .wkp-lbl, .wkp-sfacts > .wkp-lbl { align-self: center; }
.wkp-facts > .wkp-top, .wkp-sfacts > .wkp-top { align-self: start; padding-top: 3px; }
.wkp-who { display: inline-flex; align-items: center; gap: 8px; }
.wkp-off { font-size: 13px; color: var(--fg-3); }
.wkp-stages { white-space: nowrap; color: var(--fg-1); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.wkp-mark { min-height: 44px; }
.wkp-was { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 6px 10px; font-size: 15px; font-variant-numeric: tabular-nums; }
.wkp-was b { font-weight: 600; }
.wkp-k { color: var(--fg-3); }
.wkp-strike { text-decoration: line-through; color: var(--fg-3); }
.wkp-also { border-radius: 12px; padding: 14px 16px; background: var(--warn-bg); display: flex; flex-direction: column; gap: 10px; }
.wkp-mv { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--bsd-paper-2); }
.wkp-mvt { flex: 1; min-width: 0; font-size: 14px; }
.wkp-mvt b { font-weight: 600; }
.wkp-mvt > span { font-size: 13px; color: var(--fg-3); }
.wkp-mvd { font-size: 14px; font-variant-numeric: tabular-nums; }
.wkp-mvd span { color: var(--fg-3); }
.wkp-ok { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--pos); }
.wkp-warn { font-size: 14px; color: var(--warn); }
.wkp-cml { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--fg-3); }
.wkp-cml input { font: inherit; font-size: 15px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bsd-paper); color: var(--fg-2); box-sizing: border-box; }
.wkp-msg, .wkp-rsay { margin: 0; font-size: 13px; color: var(--fg-3); }
.wkp-msg:empty, .wkp-rsay:empty { display: none; }
.wkp-msg.bad, .wkp-rsay.bad, .wkp-err { color: var(--neg); }
.wkp-err { margin: 0; font-size: 14px; }
.wkp-rems { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.wkp-remt { display: flex; align-items: baseline; gap: 8px; }
.wkp-remt .wkp-lbl { flex: 1; }
.wkp-same { font-size: 12px; color: var(--fg-3); }
.wkp-radd { display: flex; gap: 8px; }
.wkp-radd input { flex: 1; min-width: 0; font: inherit; font-size: 15px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bsd-paper); color: var(--fg-2); box-sizing: border-box; }
.wkp-rl { font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.wkp-rm { font-size: 13px; overflow-wrap: anywhere; }
.wkp-rmh { color: var(--fg-3); }
.wkp-rtag { font-size: 12px; padding: 1px 7px; border-radius: 7px; }
.wkp-earlier { align-self: flex-start; font: inherit; font-size: 12px; border: 0; background: none; color: var(--fg-1); text-decoration: underline; cursor: pointer; padding: 0; }
/* the line after a save, with Undo */
.wkp-toast { position: fixed; z-index: 30; right: 24px; bottom: 24px; max-width: 460px; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 12px; background: var(--fg-2); color: var(--bsd-paper); font-size: 14px; box-shadow: 0 8px 24px rgba(63, 56, 51, 0.18); }
.wkp-toast.bad { background: var(--neg); }
.wkp-toast button { font: inherit; font-size: 14px; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(249, 246, 240, 0.4); background: none; color: var(--bsd-paper); cursor: pointer; }
.wkp-toast #wkp-tclose { border: 0; padding: 0 8px; }
/* the phone */
.wkp-big { font-family: var(--sans); font-size: 15px; min-height: 48px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bsd-paper-2); color: var(--fg-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; box-sizing: border-box; }
.wkp-big.wkp-sq { width: 44px; min-height: 44px; height: 44px; padding: 0; flex: none; }
.wkp-big.wkp-dark { background: var(--fg-2); color: var(--bsd-paper); border-color: var(--fg-2); }
.wkp-tbnav { display: inline-flex; gap: 8px; flex: none; }
.wkp-chipb { font-family: var(--sans); font-size: 14px; min-height: 44px; padding: 0 12px; border-radius: 22px; border: 1px solid var(--line); background: var(--bsd-paper-2); color: var(--fg-2); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; box-sizing: border-box; }
.wkp-in { font-family: var(--sans); font-size: 16px; min-height: 44px; padding: 0 12px; box-sizing: border-box; border-radius: 12px; border: 1px solid var(--line-strong); background: #FFFFFF; color: var(--fg-2); }
.wkp-linkb { font: inherit; font-size: 13px; border: 0; background: none; min-height: 44px; padding: 0; cursor: pointer; color: var(--fg-1); text-decoration: underline; text-underline-offset: 4px; }
.wkp-ptools { padding: 10px 16px 6px; display: flex; flex-direction: column; gap: 8px; }
.wkp-prow { display: flex; gap: 8px; align-items: center; }
.wkp-pfind { flex: 1; min-width: 0; display: flex; }
.wkp-pfind .wkp-in { width: 100%; min-width: 0; }
.wkp-filt { justify-content: space-between; }
.wkp-filt.is-some { border: 2px solid var(--fg-2); }
.wkp-fl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wkp-chev { flex: none; font-size: 11px; color: var(--fg-3); }
.wkp-fpanel { display: flex; flex-direction: column; padding: 4px; border-radius: 12px; background: #FFFFFF; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(63, 56, 51, 0.10); }
/* the contractors on a computer (22 Nov 2026, Jeffrey): the phone's list, opening under one button, as on the Programme page */
.wkp-ldrop { position: relative; display: inline-flex; }
.wkp-ldrop .wkp-filt { min-height: 36px; min-width: 180px; max-width: 280px; gap: 10px; border-radius: 18px; font-size: 13px; }
.wkp-fpop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; width: 320px; max-height: 60vh; overflow-y: auto; }
.wkp-fhead { display: flex; align-items: center; gap: 16px; padding: 4px 10px; }
.wkp-fhead .wkp-lbl { flex: 1; }
.wkp-fopt { font: inherit; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; border: 0; border-radius: 8px; background: none; color: var(--fg-2); text-align: left; cursor: pointer; }
.wkp-tick { flex: none; width: 22px; height: 22px; box-sizing: border-box; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; background: #FFFFFF; border: 1.5px solid var(--bsd-taupe); }
.wkp-tick.on { background: var(--fg-2); color: var(--bsd-paper-2); border-color: var(--fg-2); }
.wkp-fn { flex: 1; min-width: 0; font-size: 15px; line-height: 1.3; }
.wkp-fc { flex: none; font-size: 12px; color: var(--fg-3); }
.wkp-pdays { padding: 4px 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.wkp-pclosed { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 12px; background: var(--track); color: var(--fg-3); font-size: 14px; }
.wkp-pclosed b { font-weight: 600; color: var(--fg-1); flex: none; }
.wkp-pclosed span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wkp-pday { display: flex; flex-direction: column; gap: 6px; }
.wkp-pdh { display: flex; align-items: baseline; gap: 8px; padding: 2px 2px 0; }
.wkp-pdh b { font-weight: 600; font-size: 15px; }
.wkp-ptoday { padding: 1px 8px; border-radius: 7px; background: var(--warn-bg); color: var(--warn); }
.wkp-pnone { font-size: 13px; color: var(--fg-3); padding: 2px; }
.wkp-tc { font-family: var(--sans); display: flex; align-items: center; gap: 8px; width: 100%; min-height: 52px; box-sizing: border-box; padding: 6px 12px 6px 16px; border-radius: 12px; border: 0; text-align: left; color: var(--fg-2); cursor: pointer;
  background: color-mix(in srgb, var(--lane) 13.3%, transparent); box-shadow: inset 4px 0 0 var(--lane); }
.wkp-tc.is-done { background: var(--ok-bg); box-shadow: inset 4px 0 0 var(--pos); }
.wkp-tc.is-red { background: var(--bad-bg); box-shadow: inset 4px 0 0 var(--lane), 0 0 0 1.5px var(--neg); }
.wkp-tc.is-over { background: repeating-linear-gradient(135deg, var(--bad-bg) 0 6px, #E9C9BC 6px 12px); }
.wkp-tc.is-dash { background: var(--bsd-paper-2); border: 1px dashed var(--lane); }
.wkp-tc.is-dash.is-red { background: var(--bad-bg); }
.wkp-tc.is-sel { outline: 2px solid var(--fg-2); outline-offset: 1px; }
.wkp-tcx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wkp-tct { display: flex; align-items: center; gap: 6px; min-width: 0; }
.wkp-tctt { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wkp-tcs { font-size: 12px; color: var(--fg-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wkp-more { flex: none; font-size: 12px; color: var(--fg-3); }
.wkp-scrim { position: fixed; left: 0; right: 0; top: 0; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 22; background: rgba(63, 56, 51, 0.28); }
.wkp-sheet { position: fixed; left: 0; right: 0; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 23; max-height: calc(100dvh - 154px); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; box-sizing: border-box; background: var(--bsd-paper-2);
  border-radius: 20px 20px 0 0; padding: 10px 16px 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 -8px 24px rgba(63, 56, 51, 0.16); }
.wkp-grip2 { width: 40px; height: 4px; border-radius: 2px; background: #D9D4CB; margin: 0 auto; flex: none; }
.wkp-shead { display: flex; align-items: flex-start; gap: 8px; }
.wkp-sh2 { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.1; overflow-wrap: anywhere; }
.wkp-swords { font-size: 14px; color: var(--fg-1); margin-top: 4px; }
.wkp-sfacts { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 6px 10px; font-size: 14px; font-variant-numeric: tabular-nums; }
.wkp-stb { flex: none; padding: 0 16px; }
.wkp-moveb { text-align: left; padding: 0 14px; display: flex; align-items: center; gap: 8px; justify-content: flex-start; }
.wkp-mbox { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 12px; background: var(--side); }
.wkp-mrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wkp-mk { width: 52px; }
.wkp-mfixed { font-size: 14px; color: var(--fg-1); padding: 0 4px; }
.wkp-mstart { font: inherit; font-size: 15px; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px dashed var(--bsd-taupe); background: var(--bsd-paper-2); color: var(--fg-2); cursor: pointer; }
.wkp-mstart.is-chg, .wkp-mend.is-chg { font-weight: 600; }
.wkp-date { width: 170px; }
.wkp-pm { font-size: 20px; }
.wkp-mn { font-size: 18px; font-weight: 600; min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.wkp-mend { display: inline-flex; flex-direction: column; line-height: 1.15; font-size: 14px; margin-left: 4px; font-variant-numeric: tabular-nums; }
.wkp-mend > span { font-size: 11px; color: var(--fg-3); font-weight: 400; }
.wkp-mchg { border-radius: 10px; padding: 10px 12px; background: var(--warn-bg); font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.wkp-mchg b { font-weight: 600; }
.wkp-mchg s { color: var(--fg-3); }
.wkp-mvl { display: flex; gap: 8px; align-items: baseline; }
.wkp-grey { color: var(--fg-3); }
.wkp-tagw { font-size: 12px; padding: 1px 7px; border-radius: 7px; background: var(--bsd-paper-2); flex: none; }
.wkp-warnt { color: var(--warn); }
.wkp-pad { padding: 0 16px; }
.wkp-phone .wkp-cml { gap: 4px; }
.wkp-phone .wkp-cml input { font-size: 16px; min-height: 44px; height: auto; background: #FFFFFF; }
.wkp-phone .wkp-radd input { font-size: 16px; min-height: 44px; background: #FFFFFF; }
.wkp-phone .wkp-radd .wkp-btn { min-height: 44px; }
.wkp-remh { font: inherit; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--fg-2); cursor: pointer; text-align: left; }
.wkp-remh .wkp-lbl { flex: 1; }
.wkp-remh > span:last-child { font-size: 11px; color: var(--fg-3); }
.wkp-phone .wkp-rems { gap: 6px; padding-top: 10px; }
@media (max-width: 960px) {
  .wkp-toast { left: 12px; right: 12px; max-width: none; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .topbar:has(.wkp-tbnav) .tb-proj { padding-left: 0; }
}
/* (20 Nov 2026, Jeffrey's answers) a late task's over-run striped red; the box closes with ✕ and has "Move or change…";
   the contractor's trade beside its name */
.wkp-over { position: absolute; top: 0; bottom: 0; right: 0; border-left: 2px solid var(--neg); background: repeating-linear-gradient(135deg, var(--bad-bg) 0 6px, #E9C9BC 6px 12px); pointer-events: none; }
.wkp-aside { position: relative; }
.wkp-xbox { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 22px; background: transparent; color: var(--fg-1); font-size: 18px; cursor: pointer; }
.wkp-xbox:hover { background: rgba(88, 79, 70, 0.07); }
.wkp-padx { padding-right: 40px; }
.wkp-acts { display: flex; flex-direction: column; gap: 8px; }
.wkp-moveb2 { min-height: 44px; justify-content: flex-start; text-align: left; }
.wkp-moveb2 .wkp-chev { font-size: 12px; }
.wkp-dmove { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--warn-bg); }
.wkp-dmg { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 14px; }
.wkp-dmin { font: inherit; font-size: 15px; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-strong); background: #FFFFFF; color: var(--fg-2); box-sizing: border-box; max-width: 100%; }
.wkp-dmd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wkp-dmd .wkp-pm { font-size: 18px; }
.wkp-dmd .wkp-mn { font-size: 17px; min-width: 24px; }
.wkp-dmend { font-size: 13px; color: var(--fg-3); margin-left: 4px; }
.wkp-dmend b { color: var(--fg-2); font-weight: 600; }
.wkp-dmeff { font-size: 13px; color: var(--fg-1); }
.wkp-dmove .wkp-cml input { background: #FFFFFF; }
.wkp-btn:disabled { cursor: default; }
.wkp-trade { font-size: 12px; color: #8A7C6C; }
.wkp-ln { min-width: 0; }
.wkp-lnt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wkp-ltr { font-size: 12px; color: #8A7C6C; margin-top: -3px; padding-left: 18px; }

/* ===== redesign: programme (19 Nov 2026, the design boards "Main", "ProgrammePhone" and "Change"; js/programmepage.js) ===== */
.prg { font-family: var(--sans); color: var(--fg-2); }
.prg .lbl { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--label); }
.prg .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.prg-grey { color: var(--fg-3); } .prg-small { font-size: 12px; } .prg-tiny { font-size: 9px; } .prg-b { font-weight: 600; }
.prg-ok { color: var(--pos); } .prg-warn { color: var(--warn); } .prg-latec { color: var(--neg); } .prg-okc { color: var(--pos); } .prg-okb { color: var(--pos); font-weight: 600; }
.prg-hold-c { color: var(--label); font-weight: 500; } .prg-movedc { color: var(--fg-2); font-weight: 600; } .prg-taupe { color: var(--bsd-taupe); }
.prg-grow { flex: 1; }
.prg-err { font-size: 13px; color: var(--neg); margin: 0; }
.prg-pmnote { padding: 8px 28px; margin: -20px -28px 14px; font-size: 13px; color: var(--fg-1); background: var(--side); border-bottom: 1px solid var(--line); }
.prg-tbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 16px; margin-bottom: 14px; }
.prg-tbar.prg-htools { margin: 0 0 0 auto; padding-bottom: 6px; flex-wrap: nowrap; flex: none; }
.ph-top:has(.prg-htools) .ph-st { margin-left: 0; }
.prg-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border-radius: 14px; font: inherit; font-size: 13px; border: 1px solid var(--line); background: var(--bsd-paper-2); color: var(--fg-2); white-space: nowrap; }
.prg-chip b { font-weight: 600; }
button.prg-chip { cursor: pointer; }
.prg-chip-late { background: var(--bad-bg); border-color: var(--bad-bg); color: var(--neg); }
.prg-chip-dash { border-style: dashed; border-color: var(--bsd-taupe); }
.prg-chip[aria-pressed="true"].prg-lanechip, .prg-chip[aria-pressed="true"] { } 
.prg-lanechip[aria-pressed="false"] { opacity: .45; }
button.prg-chip[data-a="hideFin"][aria-pressed="true"] { background: var(--fg-2); color: var(--bsd-paper); border-color: var(--fg-2); }
.prg-btn { font-family: var(--sans); font-size: 14px; min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bsd-paper-2); color: var(--fg-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.prg-btn:disabled { opacity: .45; cursor: not-allowed; }
.prg-dark { background: var(--fg-2); color: var(--bsd-paper); border-color: var(--fg-2); }
.prg-x { width: 40px; padding: 0; flex: none; }
.prg-link { font: inherit; font-size: 13px; border: none; background: none; padding: 6px 0; min-height: 32px; cursor: pointer; color: #6E6356; text-decoration: underline; text-decoration-color: rgba(88,79,70,0.3); text-underline-offset: 4px; }
.prg-step { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bsd-paper-2); font-size: 22px; color: var(--fg-2); cursor: pointer; padding: 0; flex: none; }
.prg-step.sm { width: 36px; height: 36px; font-size: 18px; }
.prg-step:disabled { opacity: .4; cursor: not-allowed; }
.prg-fld { font: inherit; font-size: 16px; height: 44px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-strong); background: #FFFFFF; color: var(--fg-2); box-sizing: border-box; min-width: 0; }
.prg-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--track); }
.prg-seg button { font: inherit; font-size: 13px; min-height: 38px; padding: 0 12px; border: 0; border-radius: 9px; cursor: pointer; background: transparent; color: var(--fg-1); }
.prg-views { padding: 4px; gap: 4px; }
.prg-views button { font-size: 14px; height: 36px; min-height: 36px; padding: 0 14px; }
.prg-seg button[aria-selected="true"], .prg-seg button[aria-pressed="true"]:not(.prg-dc-seg button), .prg-seg button[aria-checked="true"] { background: var(--bsd-paper-2); color: var(--fg-2); font-weight: 500; box-shadow: 0 1px 2px rgba(63,56,51,0.12); }
.prg-seg-dark button[aria-pressed="true"], .prg-seg-dark button[aria-checked="true"], .prg-dc-seg button[aria-pressed="true"] { background: var(--fg-2); color: var(--bsd-paper); font-weight: 500; box-shadow: none; }
.prg-dc-seg button { min-width: 52px; }
.prg-cols { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 16px; }
.prg-main { flex: 999 1 480px; min-width: 0; }
.prg-aside { flex: 0 0 380px; width: 380px; position: sticky; top: calc(var(--ph-h, 0px) + 16px); max-height: calc(100vh - var(--ph-h, 0px) - 32px); overflow-y: auto; box-sizing: border-box; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 24px rgba(63,56,51,0.08); background: var(--bsd-paper-2); padding: 22px 24px; display: flex; flex-direction: column; gap: 18px; }
.prg-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.prg-note { font-size: 13px; color: var(--fg-3); }
.prg-ovt { font: inherit; font-size: 13px; border: none; background: none; color: var(--fg-1); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; padding: 6px 0; }
.prg-said { font-size: 13px; color: var(--pos); margin: 0 0 12px; }
.prg-said.bad { color: var(--neg); }
.prg-ov { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin-bottom: 16px; align-items: start; }
.prg-card { background: var(--bsd-paper-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.prg-card-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.prg-card-h .lbl { flex: 1; }
.prg-pa { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; font-size: 13px; }
.prg-pa b { font-size: 26px; font-weight: 500; font-variant-numeric: tabular-nums; }
.prg-pa .prg-pa-p { color: var(--fg-3); }
.prg-pill { font-size: 13px; padding: 3px 9px; border-radius: 8px; }
.prg-pill.bad { background: var(--bad-bg); color: var(--neg); } .prg-pill.ok { background: var(--ok-bg); color: var(--pos); }
.prg-curve { width: 100%; height: 90px; display: block; }
.prg-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--fg-3); }
.prg-legend i { display: inline-block; width: 16px; vertical-align: middle; }
.prg-lg-a { border-top: 2.5px solid var(--fg-2); } .prg-lg-p { border-top: 2px dashed var(--bsd-taupe); }
.prg-legend-r { margin-left: auto; }
.prg-dc { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border-radius: 10px; background: var(--bsd-paper); }
.prg-dc-done { opacity: .75; }
.prg-dc-w { flex: 1 1 160px; min-width: 0; font-size: 13px; }
.prg-dc-w b { font-weight: 600; font-size: 14px; }
.prg-dc-n { font-size: 12px; color: var(--fg-3); }
.prg-dc-wait { font-size: 12px; }
.prg-dc-vo { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; font-size: 13px; }
.prg-dc-vo .prg-link { min-height: 44px; }
.prg-dc-said { flex-basis: 100%; font-size: 12px; color: var(--pos); } .prg-dc-said.bad { color: var(--neg); }
.prg-dc-none { font-size: 13px; padding: 4px 2px; }
.prg-dc-more { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.prg-tag { font-size: 11px; padding: 1px 7px; border-radius: 6px; white-space: nowrap; flex: none; }
.prg-dc > .prg-tag { font-size: 12px; padding: 2px 8px; border-radius: 7px; }
.prg-tg-tbc { background: var(--warn-bg); color: var(--warn); } .prg-tg-vo { background: var(--ok-bg); color: var(--pos); } .prg-tg-foc { background: var(--side); color: var(--fg-1); } .prg-tg-hold { background: var(--track); color: var(--label); }
.prg-pop { background: #FFFFFF; border: 1px solid rgba(88,79,70,0.2); border-radius: 12px; box-shadow: 0 6px 18px rgba(63,56,51,0.12); }
.prg-vpick { flex-basis: 100%; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 8px; }
.prg-vpick-s { display: flex; flex-direction: column; gap: 6px; }
.prg-vfind { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.prg-vfind .prg-fld { flex: 1 1 220px; }
.prg-vfind .prg-link { min-height: 44px; }
.prg-vlist { max-height: 380px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 2px; }
.prg-vg { font: inherit; font-size: 13px; display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 4px 10px; border: none; border-radius: 8px; background: var(--bsd-paper); color: var(--fg-2); cursor: pointer; text-align: left; flex: none; }
.prg-vg b { font-weight: 600; }
.prg-chev { flex: none; width: 12px; font-size: 12px; color: var(--fg-3); }
.prg-vls { display: flex; flex-direction: column; gap: 2px; padding: 0 0 4px 20px; }
.prg-vl { font: inherit; font-size: 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; min-height: 44px; padding: 4px 10px; border: none; border-radius: 8px; background: transparent; color: var(--fg-2); text-align: left; flex: none; }
button.prg-vl { cursor: pointer; } button.prg-vl:hover { background: var(--side); }
.prg-vl-no { flex: none; width: 46px; color: var(--fg-3); }
.prg-vl-w { flex: 1 1 160px; min-width: 0; }
.prg-vl-w mark { background: var(--warn-bg); border-radius: 3px; color: inherit; }
.prg-vl-done { opacity: .6; } .prg-vl-where { flex: 1 1 100%; padding-left: 56px; font-size: 12px; color: var(--fg-3); }
.prg-vl-open { background: #FFFFFF; border: 2px solid var(--fg-1); padding: 8px 10px; border-radius: 10px; }
.prg-vl-h { padding: 4px 10px 2px; }
.prg-vnone { font-size: 13px; padding: 10px; }
.prg-sched { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.prg-sched-msg { font-size: 13px; } .prg-sched-msg.bad { color: var(--neg); }
.prg-sf { flex-basis: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.prg-sf label, .prg-sf-d { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--fg-3); }
.prg-sf-d span { display: inline-flex; align-items: center; gap: 6px; }
.prg-sf-d b { min-width: 18px; text-align: center; font-size: 16px; color: var(--fg-2); }
.prg-sf-w { flex-basis: 100%; font-size: 13px; } .prg-sf-w b { font-weight: 600; }
.prg-sf-b { flex-basis: 100%; display: flex; gap: 10px; } .prg-sf-b .prg-btn { min-height: 44px; }
.prg-banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 12px; border-radius: 10px; background: var(--side); font-size: 14px; color: var(--fg-2); }
.prg-banner svg { color: var(--fg-3); flex: none; }
.prg-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 22px 24px; border: 1px dashed var(--bsd-taupe); border-radius: 12px; background: var(--bsd-paper-2); }
.prg-empty > span { font-family: var(--serif); font-size: 22px; font-weight: 600; flex: 1 1 260px; }
.prg-empty .prg-btn { min-height: 44px; }
.prg-empty-said { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--fg-3); }
.prg-skel { background: var(--bsd-paper-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.prg-skel-h { height: 44px; background: var(--side); border-bottom: 1px solid var(--line); }
.prg-skel-r { display: grid; grid-template-columns: 24px minmax(0, 300px) 108px 52px 136px minmax(0, 1fr); align-items: center; gap: 0 10px; height: 44px; padding-right: 16px; border-bottom: 1px solid var(--line-soft); }
.prg-skel .sk { display: block; height: 12px; border-radius: 6px; background: var(--track); }
.prg-filt { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.prg-find { position: relative; display: inline-flex; }
.prg-find input { font: inherit; font-size: 14px; height: 40px; width: 260px; max-width: 100%; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bsd-paper-2); }
.prg-dot { display: inline-block; width: 8px; height: 8px; border-radius: 4px; flex: none; background: var(--lane, var(--line-strong)); }
/* the list with its bars: six columns kept in place while the bars scroll sideways */
.prg-tl { background: var(--bsd-paper-2); border: 1px solid var(--line); border-radius: 12px; }
.prg-tl-head { position: sticky; top: var(--ph-h, 0px); z-index: 3; overflow: hidden; border-radius: 11px 11px 0 0; background: var(--side); box-shadow: 0 1px 0 var(--line); }
.prg-tl-top { display: grid; grid-template-columns: var(--pcw) var(--prg-w); min-height: 44px; background: var(--side); }
.prg-tl-span { position: sticky; left: 0; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 0 10px 0 34px; background: var(--side); box-shadow: 1px 0 0 #E4DDD3; }
.prg-tl-span .lbl { flex: 1; }
.prg-wkbtns { display: inline-flex; align-items: stretch; height: 36px; border-radius: 10px; border: 1px solid rgba(88,79,70,0.2); background: #FFFFFF; box-shadow: 0 1px 2px rgba(63,56,51,0.08); overflow: hidden; }
.prg-wkbtns button { display: inline-flex; align-items: center; justify-content: center; width: 40px; min-height: 44px; margin: -4px 0; padding: 0; border: 0; background: transparent; color: var(--fg-1); cursor: pointer; }
.prg-wkbtns .prg-today-b { width: auto; gap: 7px; padding: 0 14px; border-left: 1px solid rgba(88,79,70,0.14); border-right: 1px solid rgba(88,79,70,0.14); font: inherit; font-size: 13px; font-weight: 500; color: var(--fg-2); }
.prg-today-b span { width: 2px; height: 14px; border-radius: 1px; background: var(--fg-2); }
.prg-mons { display: flex; }
.prg-mon { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 8px; box-sizing: border-box; border-left: 1px solid #E4DDD3; font-size: 13px; font-weight: 600; color: var(--fg-1); overflow: hidden; white-space: nowrap; }
.prg-mon-h { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--fg-3); }
.prg-mon-hs { font-size: 10px; color: var(--label); }
.prg-tl-body { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; border-radius: 0 0 11px 11px; }
.prg-main { container-type: inline-size; container-name: prgmain; --pc2: 300px; --pc3: 108px; --pc5: 136px; --pcw: calc(24px + var(--pc2) + var(--pc3) + 52px + var(--pc5) + 60px); }
@container prgmain (max-width: 1000px) { .prg-tl { --pc2: 220px; --pc3: 100px; --pc5: 112px; } }
.prg-tl { --pcw: calc(24px + var(--pc2) + var(--pc3) + 52px + var(--pc5) + 60px); }
.prg-row { display: grid; grid-template-columns: 24px var(--pc2) var(--pc3) 52px var(--pc5) 60px var(--prg-w); align-items: center; min-height: 44px; border-bottom: 1px solid var(--line-soft); font-size: 14px; background: var(--bsd-paper-2); }
.prg-row > *:nth-child(-n+6) { position: sticky; z-index: 1; background: inherit; align-self: stretch; display: flex; align-items: center; }
.prg-row > *:nth-child(1) { left: 0; } .prg-row > *:nth-child(2) { left: 24px; } .prg-row > *:nth-child(3) { left: calc(24px + var(--pc2)); } .prg-row > *:nth-child(4) { left: calc(24px + var(--pc2) + var(--pc3)); justify-content: flex-end; } .prg-row > *:nth-child(5) { left: calc(76px + var(--pc2) + var(--pc3)); } .prg-row > *:nth-child(6) { left: calc(76px + var(--pc2) + var(--pc3) + var(--pc5)); justify-content: flex-end; box-shadow: 1px 0 0 #E4DDD3; }
.prg-row .cell { padding: 0 10px; min-width: 0; }
.prg-row .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prg-row .when { font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prg-row-h { min-height: 36px; background: var(--side); border-bottom: 1px solid var(--line); }
.prg-wks { align-self: stretch; min-height: 36px; display: grid; }
.prg-wk { display: flex; align-items: center; padding: 0 0 0 6px; border-left: 1px solid var(--line-soft); white-space: nowrap; overflow: hidden; }
.prg-wk.prg-wk-wide { overflow: visible; position: relative; z-index: 1; }
/* the bars' zoom, beside the weeks' arrows (21 Nov 2026) */
.prg-zoom { flex: 0 0 auto; }
.prg-zoom button { font: inherit; font-size: 18px; font-weight: 500; }
.prg-zoom button + button { border-left: 1px solid rgba(88,79,70,0.14); }
.prg-zoom button:disabled { color: var(--fg-3); opacity: 0.45; cursor: default; }
.prg-hrow { background: var(--bsd-paper); }
.prg-hname { gap: 10px; overflow: hidden; }
/* (21 Nov 2026) a long room name shortens with … and keeps "3 tasks" on its line */
.prg-hname > .prg-small, .prg-hname > .prg-late-t, .prg-hname > .prg-hold-t { flex: none; white-space: nowrap; }
.prg-hname .prg-fold { flex: 0 1 auto; overflow: hidden; }
.prg-hname .prg-fold .prg-serif { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prg-serif { font-family: var(--serif); font-size: 19px; font-weight: 600; white-space: nowrap; }
.prg-rname { font-size: 15px; font-weight: 600; white-space: nowrap; }
.prg-room { background: var(--bsd-paper-2); }
.prg-fold { font: inherit; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 0; border: none; background: none; padding: 0; cursor: pointer; color: var(--fg-2); text-align: left; }
.prg-late-t { font-size: 12px; color: var(--neg); white-space: nowrap; } .prg-hold-t { font-size: 12px; color: var(--label); white-space: nowrap; }
.prg-trow { cursor: pointer; }
.prg-trow.is-sel { background: var(--warn-bg); box-shadow: inset 3px 0 0 var(--fg-1); }
.prg-trow.is-moved { background: #FBF6EC; }
.prg-trow.is-held { background: repeating-linear-gradient(45deg, #F4F1EC 0 8px, #ECE6DD 8px 16px); }
.prg-trow.is-over { box-shadow: inset 0 -3px 0 var(--fg-2); }
.prg-trow.is-drag { opacity: .6; }
.prg-crow.is-done { background: var(--ok-bg); }
.prg-tname { flex-direction: column; justify-content: center; align-items: stretch !important; padding-top: 6px !important; padding-bottom: 6px !important; }
.prg-tn { display: flex; align-items: center; gap: 6px; min-width: 0; }
.prg-tn-t { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prg-rem { flex: none; display: inline-flex; align-items: center; gap: 2px; font-size: 11px; color: #8A7C6C; }
.prg-after { font-size: 12px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prg-after.prg-hold-c { color: var(--label); }
.prg-sum { display: flex; align-items: baseline; gap: 6px; min-width: 0; font-size: 12px; color: var(--fg-3); text-decoration: none; }
.prg-sum-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.prg-late-c { color: var(--neg); font-weight: 500; }
.prg-sum-l { flex: none; color: var(--fg-1); text-decoration: underline; text-decoration-color: rgba(88,79,70,0.3); text-underline-offset: 3px; }
.prg-lane { gap: 6px; font-size: 13px; white-space: nowrap; overflow: hidden; }
.gantt { position: relative; align-self: stretch; min-height: 44px; background-image: linear-gradient(to right, var(--line-soft) 1px, transparent 1px); background-size: var(--prg-wkw, 84px) 100%; }
.prg-todayl { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--bsd-taupe); }
.prg-row .bar { position: absolute; top: 50%; margin-top: -9px; height: 18px; border-radius: 5px; }
.prg-bar { background: var(--lane, var(--bsd-taupe)); touch-action: none; }
.prg-bar[data-bar] { cursor: grab; }
.prg-bar.is-done { background: #9DB394; }
.prg-bar.is-late { box-shadow: 0 0 0 2px var(--neg); }
.prg-bar.is-sel { box-shadow: 0 0 0 2px var(--fg-2); }
.prg-bar.is-held { background: repeating-linear-gradient(45deg, #D9D4CB 0 6px, #ECE6DD 6px 12px); opacity: .7; }
.prg-bar.is-moving { opacity: .8; }
.prg-ghost { border: 1.5px dashed var(--bsd-taupe); background: transparent; box-sizing: border-box; }
.prg-hbar { height: 8px !important; margin-top: -4px !important; border-radius: 4px !important; background: #D9CBB8; }
.prg-cbar { background: var(--bsd-taupe); } .prg-cbar.is-done { background: #9DB394; } .prg-cbar.is-late { box-shadow: 0 0 0 2px var(--neg); }
.prg-del { position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; transform: rotate(45deg); border-radius: 1px; background: var(--lane, var(--lane-2)); }
.prg-row .hnd { position: absolute; right: 2px; top: 3px; bottom: 3px; width: 4px; border-radius: 2px; background: rgba(255,255,255,0.75); cursor: ew-resize; }
.prg-row .grip { display: flex; align-items: center; justify-content: center; height: 44px; width: 24px; color: var(--bsd-taupe); font-size: 13px; letter-spacing: -2px; cursor: grab; touch-action: none; }
.prg-none { padding: 14px; font-size: 13px; color: var(--fg-3); }
.prg-hint { font-size: 13px; color: var(--fg-3); margin: 12px 2px; }
.prg-foot { display: flex; flex-wrap: wrap; gap: 18px; margin: 18px 2px 0; }
.prg-foot .prg-link { font-size: 12px; }
.prg-log { margin: 6px 2px; font-size: 13px; display: flex; flex-direction: column; max-width: 760px; }
.prg-log-r { display: grid; grid-template-columns: 52px 110px minmax(0, 1fr); gap: 8px; padding: 6px 0; border-top: 1px solid var(--line-soft); }
.prg-log-r.undone > span:last-child { text-decoration: line-through; text-decoration-color: rgba(88,79,70,0.4); }
.prg-what { margin: 6px 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bsd-paper-2); font-size: 13px; display: flex; flex-direction: column; max-width: 760px; }
.prg-what-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 6px; }
.prg-what-h .prg-b { font-size: 14px; }
.prg-what-b { height: 44px; border-radius: 22px; }
.prg-what-d { width: 170px; border: 2px solid var(--fg-1); }
.prg-what .prg-x { min-height: 44px; width: 44px; }
.prg-what-g { display: grid; grid-template-columns: minmax(0, 1fr) 90px 120px 120px 64px; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
.prg-what-g.lbl { border-top: 0; }
.prg-what-g b { font-weight: 600; } .prg-what-g .num { text-align: right; }
.prg-what-n { padding: 6px 0; border-top: 1px solid var(--line-soft); }
/* the days off */
.prg-closed-wrap { position: relative; height: 0; z-index: 20; }
.prg-closed { position: absolute; top: -4px; right: 0; width: 480px; max-width: calc(100vw - 32px); box-sizing: border-box; padding: 20px 24px 22px; border: 2px solid var(--fg-1); border-radius: 14px; background: #FFFFFF; box-shadow: 0 10px 28px rgba(63,56,51,0.14); display: flex; flex-direction: column; font-size: 14px; }
.prg-closed-x { position: absolute; top: 10px; right: 10px; width: 44px; min-height: 44px; }
.prg-closed-t { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 44px; padding-right: 48px; margin-top: -10px; }
.prg-closed-s { display: flex; flex-direction: column; gap: 10px; padding: 14px 0 18px; }
.prg-closed-b { padding: 16px 0 14px; border-top: 1px solid var(--line-soft); gap: 0; }
.prg-closed-b > .lbl { margin-bottom: 4px; }
.prg-closed-sh { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; font-size: 13px; } .prg-closed-sh .lbl { flex: 1; }
.prg-wkd { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; padding: 3px; border-radius: 12px; background: var(--track); }
.prg-wkd button { font: inherit; font-size: 13px; height: 44px; padding: 0; border: 0; border-radius: 9px; cursor: pointer; background: transparent; color: var(--fg-1); }
.prg-wkd button[aria-pressed="true"] { background: var(--fg-2); color: var(--bsd-paper); font-weight: 500; }
.prg-wkd-w { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: -6px 0 -10px; }
.prg-wkd-w span { flex: 1; } .prg-wkd-w .prg-link { min-height: 44px; }
.prg-hol, .prg-cl { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.prg-hol.off, .prg-cl.off { color: var(--fg-3); }
.prg-cl.off .prg-hol-n { text-decoration: line-through; }
.prg-hol-d { width: 132px; flex: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prg-hol-n { flex: 1; min-width: 0; padding: 4px 0; }
.prg-cl-who { display: block; font-size: 13px; }
.prg-cl .prg-link { min-height: 44px; flex: none; }
.prg-sw { width: 44px; height: 44px; margin-right: -2px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex: none; }
.prg-sw-t { position: relative; display: block; width: 36px; height: 22px; border-radius: 11px; background: #D9D4CB; }
.prg-sw-k { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 8px; background: var(--bsd-paper-2); box-shadow: 0 1px 2px rgba(63,56,51,0.25); }
.prg-sw[aria-checked="true"] .prg-sw-t { background: var(--pos); } .prg-sw[aria-checked="true"] .prg-sw-k { left: 17px; }
.prg-hol-none, .prg-cl-none { min-height: 44px; display: flex; align-items: center; }
.prg-cl-b { align-self: flex-start; min-height: 44px; margin-top: 8px; }
.prg-cf { display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: center; gap: 12px; margin-top: 10px; padding-top: 14px; border-top: 1px dashed #D9D4CB; }
.prg-cf-h { font-weight: 600; grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; } .prg-cf-h > span { flex: 1; } .prg-cf-h .prg-link { min-height: 44px; font-weight: 400; }
.prg-cf-l { font-size: 13px; color: var(--fg-3); align-self: start; line-height: 44px; }
.prg-cf > .prg-seg { justify-self: start; }
.prg-cf-d { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.prg-cf-w { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .prg-cf-w .prg-fld { flex: 1 1 130px; }
.prg-closed-wc { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.prg-closed-wc .prg-save { margin-top: 10px; }
.prg-closed-said { font-size: 13px; margin-top: 8px; }
/* the task's panel */
.prg-ph { display: flex; align-items: flex-start; gap: 12px; }
.prg-ph-w { flex: 1; min-width: 0; }
.prg-ph-where { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.prg-lanebtn { font: inherit; letter-spacing: inherit; text-transform: inherit; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 999px; border: 1px dashed var(--bsd-taupe); background: none; color: var(--fg-2); cursor: pointer; }
.prg-lane-ro { border-style: solid; border-color: var(--line); cursor: default; }
.prg-lanes { margin-top: 6px; display: flex; flex-direction: column; gap: 2px; padding: 6px; max-width: 280px; }
.prg-lanes button { font: inherit; font-size: 14px; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border: none; border-radius: 8px; background: transparent; color: var(--fg-2); cursor: pointer; text-align: left; }
.prg-lanes button[aria-selected="true"] { background: var(--side); }
.prg-lanes button span:nth-child(2) { flex: 1; }
.prg-lanes .prg-dot { width: 10px; height: 10px; border-radius: 50%; }
.prg-lanes-n { font-size: 12px; padding: 4px 10px 2px; }
.prg-ed { display: block; width: 100%; text-align: left; margin-top: 4px; padding: 4px 6px; margin-left: -6px; border: 1px dashed transparent; border-radius: 8px; background: none; cursor: text; color: var(--fg-2); }
.prg-ed:not(:disabled):hover { border-color: var(--bsd-taupe); background: var(--bsd-paper); }
.prg-ed:disabled { cursor: default; color: var(--fg-2); }
.prg-ph-name { display: block; font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.1; }
.prg-ph-desc { display: block; font-size: 13px; color: var(--fg-3); margin-top: 4px; }
.prg-edtext { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.prg-edtext label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--fg-3); }
.prg-ed-name { font-family: var(--serif); font-size: 24px; font-weight: 600; height: 44px; padding: 0 10px; border-radius: 10px; border: 2px solid var(--fg-1); background: #FFFFFF; color: var(--fg-2); }
.prg-ed-desc { font: inherit; font-size: 16px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-strong); background: #FFFFFF; color: var(--fg-2); resize: vertical; }
.prg-ed-b { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--fg-3); }
.prg-chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.prg-start { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; }
.prg-start-m { display: flex; gap: 8px; flex-wrap: wrap; }
.prg-start-a, .prg-start-o { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--fg-3); }
.prg-start-o { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
.prg-start-w { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--fg-2); }
.prg-start-w .prg-fld { flex: 1 1 180px; }
.prg-chip-x { border: 0; background: none; padding: 0 0 0 2px; font: inherit; cursor: pointer; color: var(--fg-3); min-width: 24px; min-height: 24px; }
.prg-start-g { display: flex; align-items: center; gap: 10px; } .prg-start-g b { font-size: 16px; color: var(--fg-2); min-width: 18px; text-align: center; }
.prg-datebtn { font: inherit; font-size: 16px; font-weight: 600; color: var(--fg-2); min-width: 92px; min-height: 36px; text-align: center; border: 1px dashed var(--bsd-taupe); border-radius: 8px; background: none; cursor: pointer; }
.prg-hidden-date { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.prg-days { display: flex; flex-direction: column; gap: 10px; }
.prg-days-r { display: flex; align-items: center; gap: 10px; }
.prg-days-n { min-width: 64px; text-align: center; font-size: 28px; font-weight: 500; font-variant-numeric: tabular-nums; }
.prg-days-r .prg-grey { font-size: 13px; margin-left: 4px; }
.prg-when { display: flex; flex-direction: column; gap: 8px; }
.prg-when-t { font-size: 18px; font-variant-numeric: tabular-nums; }
.prg-when .prg-grey { font-size: 13px; }
.prg-wc { border-radius: 12px; padding: 14px 16px; background: var(--side); }
.prg-wc.on { background: var(--warn-bg); }
.prg-wc .lbl { margin-bottom: 8px; }
.prg-wc-l { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.prg-wc-l b { font-weight: 600; } .prg-wc-l s, .prg-when s, .prg-what s { color: var(--fg-3); }
.prg-also { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--fg-3); }
.prg-also-c { display: flex; gap: 8px; flex-wrap: wrap; }
.prg-also .prg-chip { min-height: 36px; }
.prg-faded { opacity: .5; }
.prg-cm { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--fg-3); }
.prg-cm .prg-fld { font-size: 16px; height: 40px; padding: 0 12px; background: var(--bsd-paper); }
.prg-box .prg-cm .prg-fld { background: #FFFFFF; }
.prg-save { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.prg-save .prg-dark { flex: 1; }
.prg-done-said { font-size: 14px; color: var(--pos); padding: 10px 12px; border-radius: 10px; background: var(--ok-bg); }
.prg-done-said.bad { color: var(--neg); background: var(--bad-bg); }
.prg-acts { display: flex; gap: 18px; font-size: 13px; flex-wrap: wrap; }
.prg-act { font: inherit; font-size: 13px; border: none; background: none; padding: 6px 0; min-height: 32px; cursor: pointer; color: var(--fg-1); text-decoration: underline; text-decoration-color: rgba(88,79,70,0.3); text-underline-offset: 4px; }
.prg-act[aria-expanded="true"] { font-weight: 600; color: var(--fg-2); text-decoration-color: currentColor; }
.prg-box { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; border-radius: 12px; background: #FFFFFF; border: 2px solid var(--fg-1); box-shadow: 0 6px 18px rgba(63,56,51,0.10); }
.prg-box-h { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.prg-box > div > .prg-grey { font-size: 13px; }
.prg-wcb { border-radius: 10px; padding: 10px 12px; background: var(--warn-bg); font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.prg-wcb b { font-weight: 600; }
.prg-parts-n { display: flex; align-items: center; gap: 10px; font-size: 14px; } .prg-parts-n b { min-width: 16px; text-align: center; }
.prg-parts { display: grid; grid-template-columns: minmax(0, 1fr) 84px 76px; gap: 6px 8px; align-items: center; font-size: 13px; }
.prg-parts .prg-fld { width: 100%; }
/* (22 Nov 2026) each part's name on a row of its own, full width, so what is typed can be read */
.prg-parts-nm { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.prg-parts-d, .prg-parts-s { display: inline-flex; align-items: center; gap: 4px; }
.prg-parts-d .prg-fld { width: 56px; padding: 0 6px; } .prg-parts-s .prg-fld { width: 60px; padding: 0 6px; }
.prg-greyi { color: var(--fg-3) !important; }
.prg-parts-w { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--fg-3); }
.prg-add-r { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.prg-add-r .prg-grow { flex: 1 1 140px; }
.prg-add-d { display: inline-flex; align-items: center; gap: 8px; } .prg-add-d b { min-width: 16px; text-align: center; color: var(--fg-2); font-size: 16px; }
.prg-cm > .prg-seg { align-self: flex-start; flex-wrap: wrap; } .prg-cm > .prg-seg button { min-height: 44px; }
.prg-date { width: 170px; }
.prg-radios { display: flex; flex-direction: column; gap: 6px; } .prg-radios > .prg-grey { font-size: 13px; }
.prg-radio-b { font: inherit; text-align: left; display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; cursor: pointer; background: var(--bsd-paper-2); border: 1px solid rgba(88,79,70,0.2); color: var(--fg-2); }
.prg-radio-b.on { background: #FFFFFF; border: 2px solid var(--fg-2); }
.prg-radio { flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; box-sizing: border-box; border: 1.5px solid var(--bsd-taupe); background: #FFFFFF; }
.prg-radio.on { border: 5px solid var(--fg-2); }
.prg-radio-w { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; } .prg-radio-w b { font-weight: 600; font-size: 14px; } .prg-radio-w .prg-grey { font-size: 13px; }
.prg-radio-pic { margin-left: auto; flex: none; font-size: 12px; color: var(--fg-3); font-family: ui-monospace, Menlo, monospace; white-space: pre; line-height: 1.3; }
.prg-radio-tag { margin-left: auto; flex: none; font-size: 12px; padding: 2px 8px; border-radius: 7px; background: var(--side); color: var(--fg-1); }
.prg-hist { display: flex; flex-direction: column; }
.prg-hist-r { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 2px 10px; padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.prg-hist-r > .prg-grey { font-size: 13px; font-variant-numeric: tabular-nums; }
.prg-hist-w { display: block; font-size: 12px; color: var(--fg-3); }
.prg-htag { font-size: 12px; padding: 1px 7px; border-radius: 6px; margin-right: 6px; }
.prg-htag-change { background: var(--warn-bg); color: var(--warn); } .prg-htag-remark { background: var(--side); color: var(--fg-1); } .prg-htag-mark { background: var(--ok-bg); color: var(--pos); }
.prg-rems { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.prg-rems-h { display: flex; align-items: baseline; gap: 8px; } .prg-rems-h .lbl { flex: 1; } .prg-rems-h .prg-grey { font-size: 12px; }
/* the Change board: what a change does, before it is saved */
.prg-dlg { width: 696px; max-width: calc(100vw - 32px); box-sizing: border-box; padding: 0; border: 0; border-radius: 14px; background: transparent; }
.prg-dlg::backdrop { background: rgba(63,56,51,0.28); }
.prg-chg { background: var(--bsd-paper-2); border: 1px solid var(--line); border-radius: 14px; padding: 24px 26px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 8px 24px rgba(63,56,51,0.08); font-family: var(--sans); color: var(--fg-2); }
.prg-chg h2 { margin: 4px 0 0; font-family: var(--serif); font-size: 30px; font-weight: 600; }
.prg-tr { display: grid; grid-template-columns: minmax(0, 1fr) 110px 24px 120px 76px; align-items: center; gap: 8px; min-height: 44px; border-top: 1px solid var(--line-soft); font-size: 14px; font-variant-numeric: tabular-nums; }
.prg-tr-h { border-top: 0; min-height: 28px; }
.prg-tr b { font-weight: 600; } .prg-tr .num { text-align: right; }
.prg-shiftb { justify-self: end; font-size: 13px; padding: 3px 9px; border-radius: 8px; background: var(--warn-bg); color: var(--warn); white-space: nowrap; }
.prg-chg-c { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.prg-chg-k { border-radius: 10px; padding: 12px 14px; font-size: 16px; } .prg-chg-k > div:last-child { margin-top: 4px; }
.prg-chg-k.warn { background: var(--warn-bg); } .prg-chg-k.ok { background: var(--ok-bg); color: var(--pos); }
.prg-chg-k s { color: var(--fg-3); } .prg-chg .prg-btn { min-height: 44px; padding: 0 18px; } .prg-chg .prg-save .prg-dark { flex: none; }
/* the phone: a list by room, a task in a sheet from the bottom */
.prg-phone { padding-bottom: 8px; }
.prg-phone .prg-pmnote { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; border: 0; }
.prg-pfilt { display: flex; flex-direction: column; gap: 8px; padding-bottom: 4px; }
.prg-in { font-family: var(--sans); font-size: 16px; min-height: 44px; padding: 0 12px; box-sizing: border-box; border-radius: 12px; border: 1px solid var(--line-strong); background: #FFFFFF; color: var(--fg-2); width: 100%; }
.prg-pfilt-r { display: flex; gap: 8px; }
.prg-chipb { font-family: var(--sans); font-size: 14px; min-height: 44px; padding: 0 12px; border-radius: 22px; border: 1px solid rgba(88,79,70,0.2); background: var(--bsd-paper-2); color: var(--fg-2); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; flex: none; }
.prg-chipb[aria-pressed="true"], .prg-chipb.on { background: var(--fg-2); color: var(--bsd-paper); border-color: var(--fg-2); }
.prg-pf { flex: 1; min-width: 0; justify-content: space-between; }
.prg-ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.prg-pfl { display: flex; flex-direction: column; padding: 4px; }
.prg-ldrop { position: relative; display: inline-flex; }
.prg-ldb { min-width: 180px; max-width: 280px; gap: 10px; }
.prg-ldl { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; width: 320px; max-height: 60vh; overflow-y: auto; }
.prg-pfl-h { display: flex; align-items: center; gap: 16px; padding: 4px 10px; } .prg-pfl-h .lbl { flex: 1; } .prg-pfl-h .prg-link { min-height: 44px; }
.prg-pfl-r { font: inherit; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; border: 0; border-radius: 8px; background: none; color: var(--fg-2); text-align: left; cursor: pointer; }
.prg-box-t { flex: none; width: 22px; height: 22px; box-sizing: border-box; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; background: #FFFFFF; border: 1.5px solid var(--bsd-taupe); }
.prg-box-t.on { background: var(--fg-2); color: var(--bsd-paper-2); border-color: var(--fg-2); }
.prg-pfl-r .prg-dot { width: 10px; height: 10px; border-radius: 5px; }
.prg-pfl-n { flex: 1; min-width: 0; font-size: 15px; line-height: 1.3; }
.prg-proom { font: inherit; display: flex; flex-direction: column; justify-content: center; width: 100%; min-height: 48px; margin-top: 10px; padding: 4px 2px 6px; border: 0; border-bottom: 1.5px solid var(--fg-2); border-radius: 0; background: none; color: var(--fg-2); text-align: left; cursor: pointer; }
.prg-proom-r { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; width: 100%; }
.prg-proom-n { font-family: var(--serif); font-size: 23px; font-weight: 600; line-height: 1.1; }
.prg-proom-p { margin-left: auto; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.prg-card-p { font-family: var(--sans); display: flex; flex-direction: column; align-items: stretch; gap: 4px; width: 100%; min-height: 60px; box-sizing: border-box; margin-top: 8px; padding: 10px 14px; border-radius: 12px; text-align: left; color: var(--fg-2); cursor: pointer; background: var(--bsd-paper-2); border: 1px solid var(--line); }
.prg-card-p.is-done { background: #F4F6F0; border-color: var(--ok-bg); }
.prg-card-p.is-late { border-color: var(--neg); box-shadow: inset 3px 0 0 var(--neg); }
.prg-card-p.is-held { background: repeating-linear-gradient(45deg, #F4F1EC 0 8px, #ECE6DD 8px 16px); }
.prg-card-p.is-sel { border: 2px solid var(--fg-2); }
.prg-cp-r { display: flex; align-items: flex-start; gap: 10px; width: 100%; }
.prg-cp-l { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.prg-cp-n { display: flex; align-items: center; gap: 6px; min-width: 0; }
.prg-cp-n b { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prg-late-b { flex: none; font-size: 11px; padding: 0 6px; border-radius: 6px; background: var(--neg); color: #FFFFFF; }
.prg-cp-a { font-size: 12px; color: #8A7C6C; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prg-cp-p { flex: none; font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.prg-cp-w { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; color: var(--fg-3); }
.prg-cp-ln { flex: none; }
.prg-cp-s { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prg-pnote { font-size: 12px; padding: 12px 2px 16px; }
.prg-scrim { position: fixed; inset: 0 0 var(--prg-bb, 76px) 0; z-index: 40; background: rgba(63,56,51,0.28); }
.prg-sheet { position: fixed; left: 0; right: 0; bottom: var(--prg-bb, 76px); z-index: 41; max-height: calc(100vh - var(--prg-bb, 76px) - 60px); overflow-y: auto; overflow-x: hidden; box-sizing: border-box; background: var(--bsd-paper-2); border-radius: 20px 20px 0 0; padding: 10px 16px 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 -8px 24px rgba(63,56,51,0.16); }
.prg-grab { width: 40px; height: 4px; flex: none; border-radius: 2px; background: #D9D4CB; margin: 0 auto; }
.prg-sh-h { display: flex; align-items: flex-start; gap: 8px; }
.prg-sh-w { flex: 1; min-width: 0; }
.prg-sh-n { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.1; }
.prg-sh-d { font-size: 13px; font-variant-numeric: tabular-nums; }
.prg-big { font-family: var(--sans); font-size: 15px; min-height: 48px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bsd-paper-2); color: var(--fg-2); cursor: pointer; }
.prg-big.on { background: var(--fg-2); color: var(--bsd-paper); border-color: var(--fg-2); }
.prg-big:disabled { opacity: .4; }
.prg-sh-x { width: 44px; min-height: 44px; height: 44px; flex: none; padding: 0; }
.prg-sh-days { display: flex; align-items: center; gap: 10px; }
.prg-sh-days .lbl { flex: 1; } .prg-sh-days .prg-big { width: 48px; font-size: 20px; } .prg-sh-days b { font-size: 20px; font-weight: 600; width: 28px; text-align: center; }
.prg-sh-start { text-align: left; padding: 0 14px; display: flex; align-items: center; gap: 8px; width: 100%; }
.prg-sh-start .prg-ell { flex: 1; }
.prg-sh-after { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 12px; background: var(--side); }
.prg-sh-after .prg-big { min-height: 44px; font-size: 14px; text-align: left; padding: 0 12px; }
.prg-sh-m { display: flex; gap: 8px; align-items: baseline; } .prg-sh-m > span:first-child { flex: 1; min-width: 0; }
.prg-shift { flex: none; font-size: 12px; padding: 1px 7px; border-radius: 7px; background: var(--bsd-paper-2); color: var(--warn); }
.prg-sh-b { display: flex; gap: 8px; } .prg-sh-b .prg-big { padding: 0 16px; } .prg-darkb { flex: 1; background: var(--fg-2); color: var(--bsd-paper); border-color: var(--fg-2); }
.prg-sh-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.prg-sh-rem { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); }
.prg-sh-remb { font: inherit; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--fg-2); cursor: pointer; text-align: left; } .prg-sh-remb .lbl { flex: 1; }
@media (max-width: 760px) {
  .prg-box { padding: 12px; border: 0; background: var(--side); box-shadow: none; }
  .prg-box-h { font-family: var(--sans); font-size: 15px; }
  .prg-box .prg-btn, .prg-box .prg-step, .prg-act, .prg-link { min-height: 44px; }
  .prg-box .prg-step.sm { width: 44px; height: 44px; }
  .prg-parts { grid-template-columns: minmax(0, 1fr) 76px 64px; }
  .prg-radio-pic { display: none; }
  .prg-tr { grid-template-columns: minmax(0, 1fr) 70px; } .prg-tr > span:nth-child(2), .prg-tr > span:nth-child(3) { display: none; }
  .prg-chg { padding: 18px 16px; } .prg-chg h2 { font-size: 24px; }
  .prg-dlg { max-width: calc(100vw - 16px); }
}
.prg-aside > *, .prg-box > *, .prg-sheet > * { min-width: 0; }
.prg-aside { overflow-x: hidden; }
.prg-cm .prg-fld, .prg-add-r .prg-fld, .prg-sf .prg-fld { width: 100%; }
.prg-cm .prg-date { width: 170px; max-width: 100%; }
.prg-proom-r { flex-wrap: nowrap; align-items: baseline; min-width: 0; }
.prg-proom-m { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.prg-proom-n { min-width: 0; overflow-wrap: anywhere; }
.prg-proom-p { flex: none; padding-left: 6px; }
.prg-mon-n { position: sticky; left: calc(var(--pcw) + 8px); }
.prg-pen { font-family: var(--sans); font-size: 13px; vertical-align: middle; }
.prg-mon { overflow: visible; }
.prg-row .bar.is-over { border-radius: 5px 0 0 5px; }

/* ===== redesign: daily (19 Nov 2026, the boards "Daily plan — one tap per line" and "Phone — Daily plan with the task
   sheet"; daily.js). Everything under .dly; the old Daily plan rules above stay for the pages that share them. ===== */
.dly { font-family: var(--sans); color: var(--fg-2); }
.dly .dly-sp { flex: 1; }
.dly .lbl { font-size: 11px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--label); }
.dly .dly-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 14px; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bsd-paper-2); color: var(--fg-2); cursor: pointer; white-space: nowrap; }
.dly .dly-btn:disabled { opacity: .45; cursor: default; }
.dly .dly-dark { background: var(--bsd-espresso-deep); color: var(--bsd-paper); border-color: var(--bsd-espresso-deep); }
.dly .dly-step { width: 40px; padding: 0; }
.dly .dly-lnk { font: inherit; font-size: 12px; border: 0; background: none; color: var(--fg-1); text-decoration: underline; cursor: pointer; padding: 0; }
.dly .dly-in { font: inherit; font-size: 15px; height: 42px; min-height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bsd-paper-2); color: var(--fg-2); }
.dly .dly-ph { display: none; }
.dly .dly-room { font-size: 13px; color: var(--fg-3); font-weight: 400; }
.dly .dly-tag { font-size: 12px; padding: 1px 7px; border-radius: 6px; background: var(--warn-bg); color: var(--warn); margin: 0; }
.dly .dly-tag.is-ok { background: var(--ok-bg); color: var(--pos); }
.dly .tag.late-m.dly-late { font-size: 11px; padding: 1px 7px; border-radius: 6px; background: var(--neg); color: #FFFFFF; border: 0; font-weight: 400; line-height: 1.45; }
/* the top: the Project Manager's note and the day strip */
.dly-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: -14px 0 14px; }
.dly-pmnote { font-size: 12px; color: var(--fg-3); flex: 1 1 320px; }
.dly .dly-strip { display: flex; gap: 6px; flex-wrap: wrap; }
.dly .dp-sd { width: 54px; height: 50px; min-height: 50px; padding: 0; border-radius: 10px; border: 1px solid var(--line); background: var(--bsd-paper-2); color: var(--fg-2); font: inherit; font-size: 12px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; }
.dly .dp-sd b { font-size: 16px; font-weight: 600; line-height: 1.2; }
.dly .dp-sd.is-past { background: var(--track); border-color: var(--track); color: var(--fg-3); }
.dly .dp-sd.is-today { border-color: var(--bsd-espresso-deep); }
.dly .dp-sd.is-closed { background: repeating-linear-gradient(45deg, var(--track) 0 6px, var(--bsd-paper-cool) 6px 12px); color: var(--fg-3); }
.dly .dp-sd[aria-pressed="true"] { background: var(--bsd-espresso-deep); border-color: var(--bsd-espresso-deep); color: var(--bsd-paper); }
/* the day's heading, summary, find box and hint */
.dly .dly-list { display: flex; flex-direction: column; gap: 18px; border: 0; background: none; padding: 0; }
.dly .dly-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; margin: 0; }
.dly .dly-h .dp-dt { margin: 0; font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1.15; color: var(--fg-2); }
.dly .dly-sum { font-size: 15px; color: var(--fg-3); }
.dly .dly-steps { display: none; }
.dly .qs-slot { display: inline-flex; align-self: center; }
.dly .qs-slot .qs-bar { margin: 0; gap: 8px; }
.dly .qs-slot .qs-w { width: 240px; height: 40px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bsd-paper-2); padding: 0 10px 0 14px; }
.dly .qs-slot .qs-w > .ic { display: none; }
.dly .qs-slot .qs-in { font-size: 14px; }
.dly .dly-hint { margin: -8px 0 0; font-size: 12px; color: var(--fg-3); }
.dly .dp-snap, .dly .dp-ds { margin: -8px 0 0; }
/* "Needs you first" */
.dly .dly-late { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 12px; background: var(--bad-bg); border: 0; margin: 0; font-size: 14px; }
.dly .dly-late[hidden] { display: none; }
.dly .dly-late .dp-lt-n { font-weight: 600; font-size: 16px; color: var(--neg); }
.dly .dly-ll { flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; }
.dly .dly-lk { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.dly .dly-chip[aria-pressed="true"] { background: var(--bsd-espresso-deep); color: var(--bsd-paper); border-color: var(--bsd-espresso-deep); }
/* a contractor's section */
.dly .dly-lanes { display: flex; flex-direction: column; gap: 18px; }
.dly .dly-lane { background: var(--bsd-paper-2); border: 1px solid var(--line); border-radius: 12px; overflow: visible; box-shadow: none; min-width: 0; }
.dly .dly-lh { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 12px 18px; background: var(--side); border-radius: 11px 11px 0 0; }
.dly .dly-lane > .dly-lh:last-child { border-radius: 11px; }
.dly .dly-lh .dp-who { display: flex; align-items: center; gap: 14px; flex: 0 1 auto; min-width: 0; }
.dly .dly-lh .dp-who .dp-dot { width: 10px; height: 10px; margin: 0; border-radius: 5px; }
.dly .dly-lh .dp-who b { font-size: 16px; font-weight: 600; }
.dly .dly-lc { font-size: 13px; color: var(--fg-3); }
.dly .dly-lh .dp-lhc { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.dly .dly-lh .dp-f { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-3); }
.dly .dly-lh .dp-fw .dp-in { width: 64px; height: 38px; min-height: 38px; padding: 0 8px; border-radius: 9px; font-size: 15px; background: var(--bsd-paper-2); }
.dly .dly-lh .dp-fr .dp-in { width: 220px; }
.dly .dp-oldr { padding: 8px 18px; }
.dly .dp-tasks { display: block; }
.dly .dp-row > .dp-rs { padding: 0 18px 10px; }
/* a line: words · marks · % · two buttons */
.dly .dp-line { padding: 9px 18px; border-top: 1px solid var(--line-soft); min-width: 0; }
.dly .dp-line:last-child { border-radius: 0 0 11px 11px; }
.dly .dp-line.is-marked { background: #FBF6EC; }
.dly .dp-line.is-early { opacity: .7; }
.dly .dp-task { display: grid; grid-template-columns: minmax(0, 1fr) 296px 52px 68px; column-gap: 12px; row-gap: 8px; align-items: center; min-width: 0; }
.dly .dp-task > .dp-tctl { display: contents; }
.dly .dp-task > .dp-ttext { grid-column: 1; min-width: 0; overflow-wrap: anywhere; }
.dly .dp-task > .dp-tctl > .dp-seg { grid-column: 2; }
.dly .dp-task > .dp-tctl > .dly-pc { grid-column: 3; }
.dly .dp-task > .dp-tctl > .dly-mw { grid-column: 4; }
.dly .dp-task > .dp-tctl > .dp-state, .dly .dp-task > .dp-state { grid-column: 1 / -1; margin: 0; font-size: 12.5px; }
.dly .dp-task > .dp-tctl > .dp-state:not(.bad), .dly .dp-task > .dp-state:not(.bad), .dly .dly-jsay:not(.bad), .dly .dly-psay:not(.bad) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dly .dp-task > .dp-ask, .dly .dp-task > .dp-askdone, .dly .dp-task > .dp-move, .dly .dp-task > .rmk, .dly .dp-task > .dp-rm { grid-column: 1 / -1; }
.dly .dly-tl { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 2px; }
.dly .dly-tl b { font-weight: 600; font-size: 15px; }
.dly .dly-tl .tk-rooms { display: inline; margin: 0; font-size: 13px; color: var(--fg-3); }
.dly .dly-meta { font-size: 12px; color: var(--fg-3); margin-top: 2px; }
.dly .dp-task:not(.is-late) .dly-late { display: none; }
.dly .dp-task.is-late > .dp-ttext .dp-latem, .dly .dp-task.is-late > .dly-tw .dp-latem { display: inline-block; }
.dly .dly-pc { text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; font-weight: 500; color: var(--fg-2); }
.dly .dly-pc.is-differ { font-size: 11px; font-weight: 400; color: var(--fg-3); line-height: 1.2; }
.dly .dly-mw { position: relative; display: inline-flex; gap: 4px; justify-self: end; align-items: center; }
/* (22 Nov 2026, Jeffrey: "The chat bubble in daily plan page is not aligned with the other symbols") the calendar button
   took the older 44 px min-height of .dp-mvb while the bubble was 32 px: the icons are one size, side by side */
.dly .dly-mw > .dly-more { min-height: 0; }
.dly .dly-more { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--fg-1); line-height: 1; cursor: pointer; padding: 0; }
.dly .dly-more:hover, .dly .dly-more[aria-expanded="true"] { background: var(--track); color: var(--fg-2); }
.dly .dly-badge { position: absolute; top: -2px; right: -3px; min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: 8px; background: var(--fg-1); color: var(--bsd-paper-2); font-size: 10px; font-weight: 600; line-height: 16px; text-align: center; }
.dly .dly-badge[hidden] { display: none; }
/* the marks: one segmented control */
.dly .dly-mk { justify-self: start; display: inline-flex; padding: 3px; background: var(--track); border: 0; border-radius: 11px; overflow: visible; }
.dly .dly-mk button { font: inherit; font-size: 13px; height: 30px; min-height: 30px; padding: 0 11px; border: 0; border-left: 1px solid rgba(88, 79, 70, 0.18); border-radius: 0; background: transparent; color: var(--fg-1); cursor: pointer; white-space: nowrap; font-weight: 400; }
.dly .dly-mk button:first-child, .dly .dly-mk button[aria-pressed="true"], .dly .dly-mk button[aria-pressed="true"] + button { border-left-color: transparent; }
.dly .dly-mk button[aria-pressed="true"], .dly .dly-mk button[data-t][aria-pressed="true"], .dly .dly-mk button[data-s][aria-pressed="true"] { background: var(--bsd-espresso-deep); color: var(--bsd-paper); border-radius: 8px; font-weight: 400; }
.dly .dly-mk button:hover { color: var(--fg-2); }
.dly .dp-what { padding: 12px 18px 0; }
.dly .dp-done { padding: 10px 18px 14px; }
/* By room */
.dly .dly-byroom::after { content: none; }
.dly .dp-rooms { display: block; margin: 0; padding: 0; border: 0; }
.dly .dp-rooms .dp-task.dly-sub { margin-top: 6px; padding: 0; border: 0; }
.dly .dp-rooms .dp-task + .dp-task { padding-top: 0; border-top: 0; }
.dly .dly-sub > .dp-ttext .dp-rname { font-size: 14px; font-weight: 400; padding-left: 14px; border-left: 2px solid var(--line-soft); }
.dly .dly-shrooms, .dly .dly-markl, .dly .dly-shh, .dly .dly-shwhen, .dly .dp-open { display: none; }
/* ticks: an order note, a delivery due, the register's stages */
.dly .dly-tw { display: contents; }
.dly .dly-tick { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 4px 0 0; border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--fg-2); cursor: pointer; text-align: left; }
.dly .dly-tick:disabled { cursor: default; }
.dly .dly-box { width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid var(--bsd-taupe); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex: none; background: #FFFFFF; box-sizing: border-box; }
.dly .dly-tick[aria-pressed="true"] .dly-box { background: var(--pos); border-color: var(--pos); color: #FFFFFF; }
/* (21 Nov 2026, Jeffrey: "the entire task becomes green") a ticked to-do or delivery keeps its line as it is: only its box is
   green (the rule above for a pressed Done / As planned button must not paint the whole tick button) */
.dly .dp-seg .dly-tick[aria-pressed="true"] { background: transparent; color: var(--fg-2); }
.dly .dly-tick[aria-pressed="true"] .dly-tt { color: var(--fg-3); }
.dly .dly-tt b { font-weight: 600; }
.dly .dly-tickln { grid-template-columns: minmax(0, 1fr); }
.dly .dly-tickln .dly-tick { font-size: 15px; justify-self: start; }
.dly .dly-tickln .dly-tt .dly-room { margin-left: 4px; }
.dly .dp-split, .dly .dly-pg { grid-template-columns: minmax(0, 1fr); }
.dly .dp-parts { display: flex; flex-wrap: wrap; column-gap: 18px; margin: 6px 0 0; padding: 0; border: 0; }
.dly .dp-parts > .dp-task { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; }
.dly .dp-parts .dp-task + .dp-task { padding-top: 0; border-top: 0; }
/* finished early */
.dly .dp-early .dp-early-m { grid-column: 2 / -1; font-size: 13px; color: var(--pos); }
/* "+n days" and its green line */
.dly .dp-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 14px; border-radius: 10px; background: var(--bad-bg); border-left: 3px solid var(--neg); }
.dly .dp-ask-t { flex: 1 1 320px; font-size: 14px; line-height: 1.45; }
.dly .dp-ask-t b { font-weight: 600; color: var(--neg); }
.dly .dp-pm { display: inline-flex; align-items: center; gap: 6px; }
.dly .dp-ask-go { min-width: 96px; }
.dly .dp-askdone { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 14px; border-radius: 10px; background: var(--ok-bg); color: var(--pos); font-size: 14px; }
.dly .dp-askdone > span { flex: 1 1 320px; }
.dly .dp-ask .dp-state, .dly .dp-askdone .dp-state, .dly .dp-move .dp-state { flex-basis: 100%; margin: 0; }
/* Move or change */
.dly .dly-move { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 44px 12px 14px; border-radius: 10px; background: var(--warn-bg); }
.dly .dly-x { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--fg-3); font-size: 16px; line-height: 1; cursor: pointer; }
.dly .dly-move .dp-rm { order: 99; margin-left: auto; min-height: 32px; }
.dly .dly-mvh, .dly .dly-mvs, .dly .dly-wc, .dly .dly-cm, .dly .dly-what, .dly .dp-mv-cancel2 { display: none; }
.dly .dly-mvl { margin-right: 4px; }
.dly .dly-move .dly-step { width: 44px; }
.dly .dp-mv-n { font-size: 18px; font-weight: 600; min-width: 24px; text-align: center; }
.dly .dp-effect { flex: 1 1 240px; font-size: 14px; white-space: pre-line; line-height: 1.5; min-width: 0; }
.dly .dp-mvb2 { display: inline-flex; flex-wrap: wrap; gap: 10px; }
.dly .dly-seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: var(--bsd-paper-2); flex-wrap: nowrap; }
.dly .dly-seg button { font: inherit; font-size: 14px; height: 42px; min-height: 42px; padding: 0 14px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--fg-2); cursor: pointer; }
.dly .dly-seg button:first-child { border-left: 0; }
.dly .dly-seg button[aria-pressed="true"] { background: var(--bsd-espresso-deep); color: var(--bsd-paper); }
/* the remarks panel */
.dly .rmk-panel { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; background: none; }
.dly .rmk-plist { font-size: 13px; padding: 6px 10px; border-radius: 8px; background: var(--side); color: var(--fg-2); display: flex; flex-direction: column; gap: 4px; }
.dly .rmk-pr { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin: 0; }
.dly .rmk-pe .rmk-pr { padding-top: 4px; border-top: 1px solid rgba(88, 79, 70, 0.12); }
.dly .rmk-by { color: var(--fg-3); white-space: nowrap; }
.dly .rmk-pr .rmk-w { flex: 1 1 200px; }
.dly .rmk-rm { color: var(--fg-3); }
.dly .rmk-more2 { font: inherit; font-size: 12px; border: none; background: none; color: var(--fg-1); text-decoration: underline; cursor: pointer; padding: 0; }
.dly .rmk-pe[hidden] { display: none; }
.dly .rmk-pf { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 44px 12px 14px; border-radius: 10px; background: var(--side); }
.dly .rmk-px { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--fg-3); font-size: 16px; line-height: 1; cursor: pointer; }
.dly .rmk-pl2 { flex: 1 1 360px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--fg-3); }
.dly .rmk-pl2 .rmk-in { font: inherit; font-size: 15px; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bsd-paper-2); color: var(--fg-2); }
.dly .rmk-padd { align-self: flex-end; font: inherit; font-size: 14px; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--bsd-espresso-deep); background: var(--bsd-espresso-deep); color: var(--bsd-paper); cursor: pointer; }
.dly .rmk-panel > .rmk-say { margin: 0; font-size: 12.5px; color: var(--fg-3); }
.dly .rmk-panel > .rmk-say:empty { display: none; }
.dly .rmk-panel > .rmk-say.bad { color: var(--neg); }
/* "+ Add a task": the white card */
.dly .dp-addcard { margin: 12px 14px 14px; padding: 16px 18px; border: 2px solid var(--fg-1); border-radius: 14px; background: #FFFFFF; box-shadow: 0 10px 28px rgba(63, 56, 51, 0.16); display: flex; flex-direction: column; gap: 12px; }
.dly .dp-ac-h { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dly .dp-ac-t { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 0 6px 0 0; color: var(--fg-2); }
.dly .dp-ac-q { max-width: 360px; width: 100%; }
.dly .dp-ac-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dly .dp-ac-i { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; background: var(--bsd-paper); border: 1px solid var(--line-soft); }
.dly .dp-ac-tx { flex: 1 1 260px; }
.dly .dp-ac-tx small { display: block; font-size: 13px; color: var(--fg-3); }
.dly .dp-ac-r { font-size: 13px; color: var(--fg-3); }
.dly .dly-note { margin: 0; font-size: 13px; color: var(--fg-3); }
.dly .dp-nw { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: end; }
.dly .dp-nw > label, .dly .dp-nw-k { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--fg-3); min-width: 0; }
.dly .dp-nw > label[hidden] { display: none; }
.dly .dp-nw .dly-in { width: 100%; }
.dly .dp-nw-w, .dly .dp-nw-k { grid-column: span 2; }
.dly .dp-nw-day { grid-column: span 2; }
.dly .dp-nw-b { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.dly .dp-nw-said { font-size: 14px; flex: 1 1 300px; color: var(--fg-2); }
.dly .dp-nw-msg { grid-column: 1 / -1; margin: 0; }
.dly .dp-closed { border-radius: 12px; }
@media (pointer: coarse) {
  .dly .dly-mk button, .dly .dly-mk button[aria-pressed="true"] { height: 44px; min-height: 44px; }
  .dly .dly-more { width: 44px; height: 44px; }
  .dly .dly-tick { min-height: 44px; }
  .dly .dly-lnk, .dly .rmk-more2 { min-height: 44px; }
  .dly .dp-task { grid-template-columns: minmax(0, 1fr) auto 48px 92px; }
}
@media (max-width: 1100px) and (min-width: 721px) {
  .dly .dp-task { grid-template-columns: minmax(0, 1fr) auto 48px 76px; }
  .dly .dp-task > .dp-ttext { grid-column: 1 / -1; }
  .dly .dp-task > .dp-tctl > .dp-seg { grid-column: 1 / 3; }
  .dly .dp-early .dp-early-m { grid-column: 1 / -1; }
  .dly .dp-nw { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* a phone (the board "Phone — Daily plan with the task sheet"): lines as cards, a tap opens the task sheet */
@media (max-width: 720px) {
  .dly-top { margin: -8px 0 10px; }
  .dly .dly-strip, .dly .dly-sum, .dly .qs-slot, .dly .dly-hint { display: none; }
  .dly .dly-h { flex-wrap: nowrap; align-items: center; gap: 8px; }
  .dly .dly-h .dp-dt { font-size: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
  .dly .dly-h .dly-sp { display: none; }
  .dly .dly-steps { display: inline-flex; gap: 8px; flex: none; }
  /* (21 Nov 2026) the day and its arrows in the top bar: the page's own heading row is not drawn */
  /* the day is said in the top bar: the heading row kept for the keyboard ("Mark on <day>" focuses it), out of sight */
  .dly.is-tb .dly-h { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .dly .dly-big { font: inherit; font-size: 15px; width: 44px; height: 44px; min-height: 44px; padding: 0; flex: none; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bsd-paper-2); color: var(--fg-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
  .dly .dly-list, .dly .dly-lanes { gap: 10px; }
  .dly .dly-late { flex-direction: column; align-items: stretch; gap: 6px; padding: 10px 12px; }
  .dly .dly-late { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .dly .dly-late .dp-lt-n { font-size: 15px; align-self: center; }
  .dly .dly-late > .dly-sp { display: none; }
  .dly .dly-late > .dly-chip { grid-column: 2; grid-row: 1; min-height: 44px; border-radius: 22px; padding: 0 12px; border-color: rgba(88, 79, 70, 0.2); }
  .dly .dly-ll { grid-column: 1 / -1; display: flex; flex-direction: column; }
  .dly .dly-ll .dly-sep { display: none; }
  .dly .dly-ll .dly-li { min-height: 32px; display: flex; align-items: center; }
  .dly .dly-ll .dly-lk { min-height: 44px; display: flex; align-items: center; gap: 6px; color: var(--fg-2); }
  .dly .dly-ph { display: inline; }
  .dly .dly-dk { display: none; }
  .dly .dly-lane { background: none; border: 0; border-radius: 0; display: flex; flex-direction: column; gap: 10px; }
  .dly .dly-lh { background: none; padding: 0; margin-top: 4px; gap: 8px; border-radius: 0; flex-wrap: nowrap; }
  .dly .dly-lh .dp-who { gap: 8px; flex: 1; }
  .dly .dly-lh .dp-who b { font-size: 11px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--label); }
  .dly .dly-lc, .dly .dp-addl { display: none; }
  .dly .dly-lh .dp-f { gap: 6px; font-size: 12px; }
  .dly .dly-lh .dp-fw > span:first-child { display: none; }
  .dly .dly-lh .dp-fw .dp-in { width: 52px; height: 36px; min-height: 36px; font-size: 16px; }
  .dly .dly-lh .dp-fw .dly-ph { display: inline; }
  .dly .dly-lh .dp-fr { display: none; }
  .dly .dp-tasks { display: flex; flex-direction: column; gap: 10px; }
  .dly .dp-line { padding: 0; border: 0; background: none; }
  .dly .dp-line.is-marked { background: none; }
  .dly .dly-ln > *:not(.dp-open) { display: none; }
  .dly .dp-line:not(.is-sheet) > .dp-rooms { display: none; }
  .dly .dp-open.dly-card { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 60px; box-sizing: border-box; padding: 10px 14px; border-radius: 12px; text-align: left; color: var(--fg-2); cursor: pointer; font: inherit; background: var(--bsd-paper-2); border: 1px solid var(--line); }
  .dly .dp-task.is-late > .dly-card { border: 1px solid var(--neg); box-shadow: inset 3px 0 0 var(--neg); }
  .dly .dp-line.is-marked .dly-card:has(.is-ok) { background: var(--ok-bg); border-color: var(--ok-bg); }
  .dly .dly-cl { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .dly .dly-ct { display: flex; align-items: center; gap: 6px; min-width: 0; }
  .dly .dly-ct b { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dly .dly-ct .dly-late { flex: none; font-size: 11px; padding: 0 6px; }
  .dly .dly-cr { flex: none; display: inline-flex; align-items: center; gap: 2px; font-size: 11px; color: #8A7C6C; }
  .dly .dly-cr svg { width: 13px; height: 13px; }
  .dly .dly-cs { font-size: 13px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dly .dly-cm2 { flex: none; font-size: 13px; text-align: right; line-height: 1.25; font-variant-numeric: tabular-nums; white-space: pre; }
  .dly .dly-cm2.is-ok { color: var(--pos); } .dly .dly-cm2.is-warn { color: var(--warn); } .dly .dly-cm2.is-none { color: #8A7C6C; }
  /* ticks as a card */
  .dly .dly-notel { border-radius: 12px; background: var(--bsd-paper-2); border: 1px solid var(--line); padding: 6px 2px; }
  .dly .dly-notel .dp-task { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .dly .dly-notel .dp-ttext { padding: 4px 12px 0; }
  .dly .dly-notel .dly-tl { font-size: 13px; color: var(--fg-3); display: flex; gap: 6px; }
  .dly .dly-notel .dly-tl b { font-weight: 400; font-size: 13px; }
  .dly .dly-notel .dly-meta { display: none; }
  .dly .dp-parts { flex-direction: column; margin: 0; }
  .dly .dp-parts > .dp-task { display: flex; }
  .dly .dly-tick, .dly .dly-tickln .dly-tick { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 4px 12px; font-size: 15px; }
  .dly .dly-box { width: 24px; height: 24px; border-radius: 6px; font-size: 14px; }
  .dly .dly-tick[aria-pressed="true"] .dly-tt { text-decoration: line-through; }
  .dly .dly-tt { flex: 1; min-width: 0; }
  .dly .dp-early-m { display: none; }
  .dly .dp-line.is-early .dp-task { display: block; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bsd-paper-2); }
  .dly .dp-line.is-early .dp-early-m { display: block; margin-top: 4px; }
  .dly .dp-closed, .dly .dp-pad { border-radius: 12px; }
  /* the task sheet */
  .dly .dp-scrim:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(63, 56, 51, 0.28); }
  .dly .dp-line.is-sheet { position: fixed; left: 0; right: 0; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 70; max-height: calc(100vh - 150px); overflow-y: auto; overflow-x: hidden; box-sizing: border-box; background: var(--bsd-paper-2); border-radius: 20px 20px 0 0; padding: 10px 16px 20px; box-shadow: 0 -8px 24px rgba(63, 56, 51, 0.16); }
  .dly .dp-line.is-sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: #D9D4CB; margin: 0 auto 12px; }
  .dly .dp-line.is-sheet .dly-ln { display: flex; flex-direction: column; gap: 12px; }
  .dly .dp-line.is-sheet .dly-ln > .dp-open, .dly .dp-line.is-sheet .dly-ln > .dp-ttext, .dly .dp-line.is-sheet .dly-ln > .dp-tctl > .dly-pc, .dly .dp-line.is-sheet .dly-ln > .dp-tctl > .dly-mw { display: none; }
  .dly .dp-line.is-sheet .dly-ln > .dly-shh { display: flex; align-items: flex-start; gap: 6px; }
  .dly .dly-shw { flex: 1; min-width: 0; }
  .dly .dly-sht { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.1; overflow-wrap: anywhere; }
  .dly .dly-shh .dly-big[aria-expanded="true"] { background: var(--track); }
  .dly .dp-line.is-sheet .dly-ln > .dly-shwhen { display: block; font-size: 13px; color: var(--fg-3); margin-top: -10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dly .dp-line.is-sheet .dly-ln > .dp-tctl { display: flex; flex-direction: column; gap: 8px; }
  .dly .dp-line.is-sheet .dly-mk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0; background: none; border-radius: 0; }
  .dly .dp-line.is-sheet .dly-mk button { font-size: 15px; height: 48px; min-height: 48px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bsd-paper-2); color: var(--fg-2); }
  .dly .dp-line.is-sheet .dly-mk button[aria-pressed="true"] { background: var(--bsd-espresso-deep); color: var(--bsd-paper); border-color: var(--bsd-espresso-deep); }
  .dly .dp-line.is-sheet .dly-mk button[data-t="finished"]::after, .dly .dp-line.is-sheet .dly-ln.dp-extra .dly-mk button[data-t="as_planned"]::after { content: " ✓"; }
  .dly .dp-line.is-sheet .dp-tctl > .dp-state:not(.bad) { position: static; width: auto; height: auto; clip: auto; white-space: normal; font-size: 14px; color: var(--pos); padding: 10px 12px; border-radius: 10px; background: var(--ok-bg); }
  .dly .dp-line.is-sheet .dp-tctl > .dp-state:not(.bad)::before { content: "✓ "; }
  .dly .dp-line.is-sheet .dp-tctl > .dp-state:empty { display: none; }
  .dly .dp-line.is-sheet .dly-ln > .dly-markl { display: block; margin: -4px 0 0; font-size: 13px; color: var(--fg-3); }
  .dly .dp-line.is-sheet.is-marked .dly-markl { color: var(--pos); }
  .dly .dp-line.is-sheet .dly-ln > .dp-ask, .dly .dp-line.is-sheet .dly-ln > .dp-askdone, .dly .dp-line.is-sheet .dly-ln > .dp-move, .dly .dp-line.is-sheet .dly-ln > .rmk { display: flex; }
  .dly .dp-line.is-sheet .dp-ask { flex-direction: column; align-items: stretch; padding: 12px 14px; border-radius: 12px; }
  .dly .dp-line.is-sheet .dp-ask .dp-pm { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; }
  .dly .dp-line.is-sheet .dp-ask .dly-btn { min-height: 48px; border-radius: 12px; font-size: 15px; }
  .dly .dp-line.is-sheet .dp-ask .dly-step { width: 44px; }
  .dly .dp-line.is-sheet .dly-ln > .dly-shrooms { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(88, 79, 70, 0.2); background: var(--bsd-paper-2); color: var(--fg-2); font: inherit; text-align: left; cursor: pointer; }
  .dly .dly-shrooms span { flex: 1; } .dly .dly-shrooms small { font-size: 13px; color: var(--fg-3); } .dly .dly-shrooms i { font-style: normal; font-size: 11px; }
  .dly .dp-line.is-sheet > .dp-rooms { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
  .dly .dp-line.is-sheet .dly-sub { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding-left: 12px; border-left: 2px solid var(--line-soft); }
  .dly .dly-sub > .dp-ttext .dp-rname { padding: 0; border: 0; font-weight: 600; }
  .dly .dly-sub > .dp-tctl { display: flex; flex-direction: column; gap: 4px; }
  .dly .dly-sub .dly-mk { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 0; background: none; }
  .dly .dly-sub .dly-mk button { font-size: 13px; min-height: 44px; height: 44px; min-width: 0; padding: 0 4px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bsd-paper-2); white-space: normal; line-height: 1.1; }
  .dly .dly-sub .dly-mk button[aria-pressed="true"] { background: var(--bsd-espresso-deep); color: var(--bsd-paper); border-color: var(--bsd-espresso-deep); }
  .dly .dly-sub .dly-pc { text-align: left; font-size: 13px; color: var(--fg-3); }
  /* Move or change in the sheet */
  .dly .dly-move { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; border-radius: 12px; background: var(--side); }
  .dly .dly-move > .dly-x, .dly .dly-move > .dly-mvl, .dly .dly-move > .dp-effect, .dly .dly-move .dly-hold { display: none; }
  .dly .dly-mvh { display: inline; font-weight: 600; }
  .dly .dly-mvs { display: inline; font-size: 13px; color: var(--fg-3); position: absolute; right: 12px; top: 12px; }
  .dly .dly-move .dly-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; border: 0; background: none; overflow: visible; }
  .dly .dly-move .dly-seg button { min-height: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bsd-paper-2); }
  .dly .dly-move .dly-seg button[aria-pressed="true"] { background: var(--bsd-espresso-deep); color: var(--bsd-paper); border-color: var(--bsd-espresso-deep); }
  .dly .dly-move .dly-what { display: block; position: relative; top: 0; }
  .dly .dly-move .dp-pm { position: absolute; right: 12px; margin-top: 0; }
  .dly .dly-move .dly-what { min-height: 44px; display: flex; align-items: center; font-size: 14px; }
  .dly .dly-move .dly-step { width: 44px; height: 44px; min-height: 44px; border-radius: 10px; font-size: 18px; }
  .dly .dly-wc { display: flex; flex-direction: column; gap: 4px; border-radius: 10px; padding: 10px 12px; background: var(--warn-bg); font-size: 14px; margin: 0; }
  .dly .dly-wc s { color: var(--fg-3); }
  .dly .dly-wc .dly-ok { color: var(--pos); }
  .dly .dly-cm { display: block; width: 100%; font-size: 16px; min-height: 44px; border-radius: 12px; background: #FFFFFF; }
  .dly .dp-mvb2 { display: flex; gap: 8px; }
  .dly .dp-mvb2 .dly-btn { min-height: 48px; border-radius: 12px; font-size: 15px; }
  .dly .dp-mvb2 .dp-mv-save { flex: 1; }
  .dly .dp-mvb2 .dp-mv-cancel2 { display: inline-flex; padding: 0 16px; }
  .dly .dly-move .dp-rm { order: 0; margin: 0; min-height: 44px; align-self: flex-start; }
  /* remarks in the sheet: the box first, then each remark */
  .dly .rmk-panel { flex-direction: column-reverse; border-top: 1px solid var(--line); padding-top: 6px; }
  .dly .rmk-plist { background: none; padding: 0; font-size: 13px; gap: 6px; }
  .dly .rmk-pr { display: block; } .dly .rmk-by { display: block; }
  .dly .rmk-pe[hidden] { display: block; }
  .dly .rmk-more2 { display: none; }
  .dly .rmk-pf { padding: 0; background: none; flex-wrap: nowrap; }
  .dly .rmk-px, .dly .rmk-plab { display: none; }
  .dly .rmk-pl2 { flex: 1; min-width: 0; }
  .dly .rmk-pl2 .rmk-in { font-size: 16px; min-height: 44px; border-radius: 12px; background: #FFFFFF; }
  .dly .rmk-padd { min-height: 44px; border-radius: 12px; background: var(--bsd-paper-2); color: var(--fg-2); border-color: var(--line-strong); align-self: auto; }
  /* the Add a task card and New work (opened from elsewhere) fit the screen */
  .dly .dp-addcard { margin: 10px 0 12px; padding: 12px; }
  .dly .dp-nw { grid-template-columns: minmax(0, 1fr); }
  .dly .dp-nw-w, .dly .dp-nw-k, .dly .dp-nw-day { grid-column: 1; }
  .dly .dly-in, .dly .dp-ac-q { font-size: 16px; }
  .dly .dly-seg { flex-wrap: wrap; }
}
.dly .dp-line:has(> .dp-task.is-late) { box-shadow: none; }
.dly .dp-rooms .dp-task.is-late, .dly .dp-parts .dp-task.is-late { padding-left: 0; border-left: 0; }
.dly .dly-late { color: var(--fg-2); }
.dly .dly-late .dly-ll { flex: 1 1 360px; }
.dly .dly-late > .dly-sp { display: none; }
.dly .qs-slot .fbox { border: 0; background: none; padding: 0; box-shadow: none; }
.dly .qs-slot .qs-n:empty { display: none; }
@media (max-width: 720px) { .dly .dp-line:has(> .dp-task.is-late) { box-shadow: none; } }
.dly .dly-shrem { display: none; }
.dly .dly-lh .dp-fw .dp-in { width: 82px; height: 40px; min-height: 40px; }
.dly .dly-in { height: 44px; min-height: 44px; }
.dly .qs-slot .qs-w { width: 270px; height: 42px; }
.dly .qs-slot .qs-in { border: 0; background: none; box-shadow: none; padding: 0; min-height: 0; height: 100%; }
.dly .rmk-pl2 .rmk-in { height: 44px; min-height: 44px; }
@media (max-width: 720px) {
  .dly .dly-lh .dp-who { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; }
  .dly .dly-lh .dp-who b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dly .dly-lh .dp-lhc { width: auto; flex: none; gap: 8px; }
  .dly .dly-lh .dp-fw .dp-in { width: 52px; height: 36px; min-height: 36px; }
  .dly .dp-line:not(.is-sheet) .dly-ln { display: block; }
  .dly .dp-line.is-sheet { display: flex; flex-direction: column; gap: 12px; }
  .dly .dp-line.is-sheet::before { margin-bottom: 0; }
  .dly .dp-line.is-sheet .dly-ln { display: contents; }
  .dly .dp-line.is-sheet .dly-ln > .dly-shh { order: 1; } .dly .dp-line.is-sheet .dly-ln > .dly-shwhen { order: 2; }
  .dly .dp-line.is-sheet .dly-ln > .dp-tctl { order: 3; } .dly .dp-line.is-sheet .dly-ln > .dly-markl { order: 4; }
  .dly .dp-line.is-sheet .dly-ln > .dp-ask, .dly .dp-line.is-sheet .dly-ln > .dp-askdone { order: 5; }
  .dly .dp-line.is-sheet .dly-ln > .dly-shrooms { order: 6; } .dly .dp-line.is-sheet > .dp-rooms { order: 7; margin-top: 0; }
  .dly .dp-line.is-sheet .dly-ln > .dp-move { order: 8; } .dly .dp-line.is-sheet .dly-ln > .dly-shrem { order: 9; } .dly .dp-line.is-sheet .dly-ln > .rmk { order: 10; }
  .dly .dp-line.is-sheet .dly-ln > .dly-shrem { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; border-top: 1px solid var(--line); background: none; color: var(--fg-2); cursor: pointer; text-align: left; font: inherit; }
  .dly .dly-shrem .lbl { flex: 1; } .dly .dly-shrem i { font-style: normal; font-size: 11px; color: var(--fg-3); }
  .dly .dp-line.is-sheet .rmk-panel { border-top: 0; padding-top: 0; margin-top: -6px; }
  .dly .dp-line.is-sheet .dp-tctl > .dp-state:not(.bad) { order: 9; }
}
.dly .dly-mvhd, .dly .dly-mvrow { display: contents; }
@media (max-width: 720px) {
  .dly .dp-line.is-sheet .dp-tctl > .dly-mk { width: 100%; }
  .dly .dly-mvhd { display: flex; align-items: center; gap: 8px; }
  .dly .dly-mvhd .dly-mvh { flex: 1; }
  .dly .dly-mvs { position: static; }
  .dly .dly-mvrow { display: flex; align-items: center; gap: 8px; }
  .dly .dly-move .dly-what { flex: 1; min-height: 0; }
  .dly .dly-move .dp-pm { position: static; }
}
.dly .dp-task { position: relative; }
.dly .dp-task > .dp-tctl > .dp-state:not(.bad), .dly .dp-task > .dp-state:not(.bad), .dly .dly-jsay:not(.bad), .dly .dly-psay:not(.bad) { left: 0; top: 0; }
.dly .dly-tw > .dly-tick, .dly .dly-tick { white-space: normal; }
.dly .dly-tt { overflow-wrap: anywhere; min-width: 0; }
.dly .dly-meta .tk-d { display: inline; margin: 0; font-size: inherit; color: inherit; }
.dly .dly-h .dp-snap { flex-basis: 100%; font-size: 13px; color: var(--fg-3); }
/* (20 Nov 2026) the board's week arrows around the day strip, and the contractor's trade after its name */
.dly .dly-wk { width: 40px; height: 50px; padding: 0; font: inherit; font-size: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--bsd-paper-2); color: var(--fg-1); cursor: pointer; }
.dly .dly-wk:disabled { opacity: 0.4; cursor: default; }
.dly .dly-wk:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(145, 141, 117, 0.35); }
.dly .dly-strip { align-items: center; }
.dly .dly-tr { font-size: 12px; color: var(--fg-3); margin-left: 8px; font-weight: 400; }

/* ===== redesign: joinery (19 Nov 2026, the boards "Joinery" and "Phone — Joinery"; js/joinerypage.js) ===== */
.page.jx-page { max-width: none; margin: 0; padding: 0; }
.jx { font-family: var(--sans); color: var(--fg-2); }
.jx button { font-family: var(--sans); }
.jx-sr { position: absolute; left: -9999px; }
.jx-fl { flex: 1; }
.jx-pmnote { padding: 8px 28px; font-size: 13px; color: var(--fg-1); background: var(--side); border-bottom: 1px solid var(--line); }
.jx-cols { display: flex; flex-wrap: wrap; min-height: calc(100vh - 140px); }
.jx-main { flex: 999 1 760px; min-width: 0; padding: 20px 28px; box-sizing: border-box; }
.jx-main.jx-solo { padding: 20px 28px; }
.jx-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 14px; }
.jx-top h1 { margin: 0; font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1.1; }
.jx-sum { font-size: 15px; color: var(--fg-3); }
.jx-btn { font-family: var(--sans); font-size: 14px; min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bsd-paper-2); color: var(--fg-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box; }
.jx-btn:disabled { opacity: .5; cursor: default; }
.jx-btn.jx-dark { background: var(--fg-2); color: var(--bsd-paper); border-color: var(--fg-2); }
.jx-undo { min-height: 44px; }
.jx-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 14px; font-size: 13px; border: 1px solid var(--line); background: var(--bsd-paper-2); color: var(--fg-2); box-sizing: border-box; white-space: nowrap; text-decoration: none; }
.jx-c-late { background: var(--bad-bg); border-color: var(--bad-bg); color: var(--neg); }
.jx-c-ok { background: var(--ok-bg); border-color: var(--ok-bg); color: var(--pos); }
.jx-c-due { background: var(--side); border-color: var(--side); color: var(--fg-1); }
.jx-c-so { background: var(--warn-bg); border-color: var(--warn-bg); color: var(--warn); }
.jx-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 4px; background: var(--lane, var(--line-strong)); font-style: normal; }
.jx-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.jx-find { position: relative; display: inline-flex; }
.jx-find input { font: inherit; font-size: 14px; height: 40px; width: 240px; max-width: 100%; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bsd-paper-2); color: var(--fg-2); box-sizing: border-box; }
.jx-tog { font: inherit; font-size: 13px; cursor: pointer; }
.jx-tog.hd-tog[aria-pressed="true"] { background: var(--fg-2); color: var(--bsd-paper); border-color: var(--fg-2); }
.jx-tog.jx-tlate[aria-pressed="true"] { background: var(--neg); color: var(--bsd-paper); border-color: var(--neg); }
.jx-setb { min-height: 44px; }
/* the list */
.jx-scroll { overflow-x: auto; }
.jx-tbl { min-width: 690px; background: var(--bsd-paper-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.jx-r { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(100px, 128px) minmax(130px, 176px) minmax(100px, 128px) minmax(112px, 150px) minmax(54px, 76px); align-items: stretch; border-bottom: 1px solid var(--line-soft); font-size: 14px; cursor: pointer; }
.jx-r:hover { background: var(--bsd-paper-2); }
.jx-r.jx-hd { min-height: 44px; background: var(--side); border-bottom: 1px solid var(--line); cursor: default; align-items: center; }
.jx-r.jx-hd > div { padding: 0 14px; }
.jx-rt { text-align: right; }
.jx-r.is-done { background: var(--ok-bg); }
.jx-r.jx-sel { background: var(--warn-bg); box-shadow: inset 3px 0 0 var(--bsd-espresso); }
.jx-r.jx-sel.jx-stepping { background: transparent; }
.jx-rb { font: inherit; width: 100%; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border: 0; background: var(--bsd-paper); border-bottom: 1px solid var(--line-soft); color: var(--fg-2); cursor: pointer; text-align: left; }
.jx-arr { font-size: 12px; color: var(--fg-3); }
.jx-rn { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.jx-rc { font-size: 12px; color: var(--fg-3); }
.jx-rl { font-size: 12px; color: var(--neg); }
.jx-rf { font-size: 12px; color: var(--pos); }
.jx-i { padding: 8px 14px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.jx-nm { display: flex; align-items: center; gap: 6px; min-width: 0; }
.jx-nm b { font-weight: 600; overflow-wrap: anywhere; }
.jx-rem { flex: none; display: inline-flex; align-items: center; gap: 2px; font-size: 11px; color: #8A7C6C; }
.jx-tg { flex: none; font-size: 11px; padding: 1px 7px; border-radius: 6px; }
.jx-tg-hold { background: var(--track); color: var(--label); }
.jx-tg-so { background: var(--warn-bg); color: var(--warn); }
.jx-desc { font-size: 12px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jx-who { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fg-3); }
.jx-sc { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; margin: 5px 4px; padding: 4px 10px; min-height: 44px; box-sizing: border-box; border-radius: 9px; font-family: var(--sans); font-size: 13px; text-align: left; border: 1px solid transparent; background: none; color: var(--fg-2); font-variant-numeric: tabular-nums; cursor: pointer; }
.jx-sc .jx-t { font-weight: 500; }
.jx-sc .jx-s { font-size: 12px; opacity: .85; }
.jx-sc .jx-s:empty { display: none; }
.jx-bar { display: block; height: 5px; border-radius: 3px; background: var(--track); margin: 2px 26px 2px 0; overflow: hidden; }
.jx-bar > span, .jx-pbar > span { display: block; height: 100%; }
.jx-ok { background: var(--pos); } .jx-bad { background: var(--neg); } .jx-go { background: var(--lane-2); }
div.jx-ok, div.jx-bad { background: none; }
div.jx-ok { color: var(--pos); } div.jx-bad { color: var(--neg); }
.jx-sc.jx-done { background: var(--ok-bg); color: var(--pos); }
.jx-sc.jx-late { background: var(--bad-bg); color: var(--neg); }
.jx-sc.jx-lateb { border: 1px solid var(--neg); }
.jx-sc.jx-p.jx-lateb { border: 0; box-shadow: inset 0 0 0 1.5px var(--neg); }
.jx-sc.jx-mute, .jx-sc.jx-off, .jx-sc.jx-na { color: var(--fg-3); }
.jx-sc.jx-dash { border: 1px dashed var(--line-strong); }
.jx-sc.jx-hold { background: repeating-linear-gradient(45deg, #E4DFD6 0 6px, var(--side) 6px 12px); color: var(--fg-3); }
.jx-sc.jx-tk { border: 1px dashed var(--line-strong); }
.jx-sc.jx-tk.jx-lateb { border: 1px solid var(--neg); }
.jx-ic { position: absolute; right: 8px; top: 50%; margin-top: -9px; width: 18px; height: 18px; box-sizing: border-box; border-radius: 9px; font-size: 12px; line-height: 15px; text-align: center; }
.jx-tk .jx-ic { border: 1.5px solid var(--pos); color: var(--pos); opacity: .18; }
.jx-tk:hover, .jx-tk:focus-visible { background: var(--ok-bg); border-color: var(--pos); color: var(--fg-2); }
.jx-tk:hover .jx-ic, .jx-tk:focus-visible .jx-ic { opacity: 1; background: var(--pos); color: var(--bsd-paper-2); }
.jx-un .jx-ic { line-height: 18px; opacity: 0; background: var(--neg); color: var(--bsd-paper-2); }
.jx-un:hover, .jx-un:focus-visible { background: var(--bad-bg) !important; color: var(--neg) !important; }
.jx-un:hover .jx-ic, .jx-un:focus-visible .jx-ic { opacity: 1; }
.jx-sc.jx-open { background: #fff; border: 2px solid var(--bsd-espresso); box-shadow: 0 2px 8px rgba(63, 56, 51, 0.14); margin-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom-color: #fff; z-index: 1; }
.jx-done-c { padding: 0 14px; display: flex; align-items: center; justify-content: flex-end; font-variant-numeric: tabular-nums; font-weight: 500; }
.jx-done-c.ok { color: var(--pos); } .jx-done-c.bad { color: var(--neg); }
.jx-stp { grid-column: 2 / -1; position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -2px 14px 10px 4px; padding: 10px 14px; border-radius: 10px; border: 2px solid var(--bsd-espresso); background: #fff; box-shadow: 0 4px 12px rgba(63, 56, 51, 0.12); cursor: default; }
.jx-stp-l { display: inline-flex; flex-direction: column; line-height: 1.2; }
.jx-stp-l > span:last-child { font-size: 12px; color: var(--fg-3); }
.jx-stp-v { font-size: 18px; font-weight: 600; min-width: 52px; text-align: center; font-variant-numeric: tabular-nums; }
.jx-stp-n { font-size: 13px; color: var(--fg-3); flex: 1 1 220px; }
.jx-step { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bsd-paper-2); font-size: 18px; color: var(--fg-2); cursor: pointer; padding: 0; }
.jx-step:disabled { opacity: .4; cursor: default; }
.jx-s44 { width: 44px; height: 44px; }
.jx-x { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 22px; background: transparent; color: var(--fg-1); font-size: 18px; cursor: pointer; }
.jx-toast { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; background: var(--fg-2); color: var(--bsd-paper); font-size: 14px; }
.jx-toast.bad { background: var(--neg); }
.jx-toast > span { flex: 1 1 300px; }
.jx-toast button { font: inherit; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: 9px; border: 1px solid rgba(249, 246, 240, 0.4); background: none; color: var(--bsd-paper); cursor: pointer; }
.jx-legend { display: flex; flex-wrap: wrap; gap: 18px; margin: 14px 2px; font-size: 13px; color: var(--fg-3); }
.jx-legend b { color: var(--fg-2); font-weight: 600; }
.jx-empty:empty { display: none; }
.jx-empty { padding: 14px; color: var(--fg-3); font-size: 14px; }
/* the settings and adding an item */
.jx-pop { position: relative; height: 0; z-index: 5; }
.jx-set { position: absolute; right: 0; top: -6px; width: 420px; max-width: 100%; box-sizing: border-box; padding: 16px 18px; border: 2px solid var(--bsd-espresso); border-radius: 14px; background: #fff; box-shadow: 0 10px 28px rgba(63, 56, 51, 0.14); display: flex; flex-direction: column; gap: 12px; }
.jx-setx { position: absolute; top: 8px; right: 8px; }
.jx-x44 { width: 44px; min-height: 44px; padding: 0; }
.jx-x40 { width: 40px; padding: 0; flex: none; }
.jx-pr { padding-right: 48px; }
.jx-bt { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.jx-bs { font-size: 13px; color: var(--fg-3); }
.jx-st2 { font-size: 15px; font-weight: 600; }
.jx-setl { display: flex; flex-direction: column; }
.jx-setr { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.jx-setr > span { flex: 1; }
.jx-setr b { font-size: 16px; font-weight: 600; min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; }
.jx-tot { font-size: 14px; } .jx-tot.ok { color: var(--pos); } .jx-tot.bad { color: var(--neg); font-weight: 600; }
.jx-setsep { border-top: 1px solid var(--line); padding-top: 12px; }
.jx-save { display: flex; gap: 10px; }
.jx-save .jx-dark { flex: 1; }
.jx-set .jx-btn { min-height: 44px; }
.jx-add { margin-bottom: 14px; padding: 16px 18px; border: 2px solid var(--bsd-espresso); border-radius: 14px; background: #fff; box-shadow: 0 10px 28px rgba(63, 56, 51, 0.14); display: flex; flex-direction: column; gap: 12px; }
.jx-addh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.jx-addq { font: inherit; font-size: 15px; height: 42px; max-width: 360px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bsd-paper-2); box-sizing: border-box; }
.jx-cands { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow-y: auto; }
.jx-cand { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; background: var(--bsd-paper); border: 1px solid var(--line-soft); }
.jx-cand-t { flex: 1 1 260px; min-width: 0; }
.jx-cand-t b { font-weight: 600; }
.jx-cand-t span, .jx-cand-t div { font-size: 13px; color: var(--fg-3); }
.jx-out { font-size: 12px !important; padding: 2px 8px; border-radius: 7px; margin-left: 6px; background: var(--side); color: var(--label) !important; }
.jx-cmb { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--fg-3); max-width: 520px; }
.jx-cmb input, .jx-cm input { font: inherit; font-size: 15px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bsd-paper); box-sizing: border-box; color: var(--fg-2); }
/* the item chosen */
.jx-side { flex: 1 1 380px; max-width: 420px; box-sizing: border-box; border-left: 1px solid var(--line); background: var(--bsd-paper-2); padding: 22px 24px; display: flex; flex-direction: column; gap: 18px; }
.jx-ah { display: flex; align-items: flex-start; gap: 12px; }
.jx-ah-t { flex: 1; min-width: 0; }
.jx-ah-lane { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.jx-laneb { font: inherit; letter-spacing: inherit; text-transform: inherit; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 999px; border: 1px dashed var(--bsd-taupe); background: none; color: var(--fg-2); cursor: pointer; }
.jx-laneb span { font-size: 9px; }
.jx-lanes { display: inline-flex; align-items: center; gap: 6px; color: var(--fg-2); }
.jx-lanelist { margin-top: 6px; display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: 12px; background: #fff; border: 1px solid rgba(88, 79, 70, 0.2); box-shadow: 0 6px 18px rgba(63, 56, 51, 0.12); max-width: 280px; }
.jx-laneo { font: inherit; font-size: 14px; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border: none; border-radius: 8px; background: transparent; color: var(--fg-2); cursor: pointer; text-align: left; }
.jx-laneo.on { background: var(--warn-bg); }
.jx-laneo span:nth-child(2) { flex: 1; }
.jx-laneo .jx-dot { width: 10px; height: 10px; border-radius: 50%; }
.jx-tick { color: var(--pos); }
.jx-lanenote { font-size: 12px; color: var(--fg-3); padding: 4px 10px 2px; }
.jx-ed { display: block; width: 100%; text-align: left; margin-top: 4px; padding: 4px 6px; margin-left: -6px; border: 1px dashed transparent; border-radius: 8px; background: none; cursor: text; color: var(--fg-2); }
.jx-ed[data-act="none"] { cursor: default; }
.jx-ed[data-act="text-edit"]:hover { border-color: var(--bsd-taupe); background: var(--bsd-paper); }
.jx-pn { display: block; font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.1; }
.jx-pd { display: block; font-size: 13px; color: var(--fg-3); margin-top: 4px; }
.jx-pen { color: var(--bsd-taupe); }
.jx-txt { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.jx-txt label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--fg-3); }
.jx-ttl { font-family: var(--serif); font-size: 24px; font-weight: 600; height: 44px; padding: 0 10px; border-radius: 10px; border: 2px solid var(--bsd-espresso); background: #fff; color: var(--fg-2); box-sizing: border-box; }
.jx-tds { font: inherit; font-size: 15px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; color: var(--fg-2); resize: vertical; }
.jx-txt-b { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--fg-3); }
.jx-chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.jx-stages { display: flex; flex-direction: column; }
.jx-sh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-bottom: 6px; }
.jx-sh .lbl { flex: 1; }
.jx-sh > span:last-child { font-size: 12px; color: var(--fg-3); }
.jx-fill { margin-bottom: 8px; padding: 10px 12px; border-radius: 10px; background: var(--side); font-size: 13px; color: var(--fg-1); }
.jx-sug { margin-bottom: 8px; padding: 10px 12px; border-radius: 10px; border: 1px dashed #D9D4CB; background: var(--bsd-paper); font-size: 13px; color: var(--fg-1); }
.jx-st { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.jx-st-h { display: flex; align-items: center; gap: 10px; }
.jx-st-h b { font-weight: 600; font-size: 15px; flex: 1; }
.jx-sw { position: relative; width: 40px; height: 24px; border-radius: 12px; border: 0; cursor: pointer; flex: none; background: #D9D4CB; padding: 0; }
.jx-sw[aria-checked="true"] { background: var(--pos); }
.jx-sw span { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 9px; background: var(--bsd-paper-2); box-shadow: 0 1px 2px rgba(63, 56, 51, 0.25); }
.jx-sw[aria-checked="true"] span { left: 19px; }
.jx-sw:disabled { cursor: default; opacity: .7; }
.jx-state { font-size: 12px; padding: 2px 8px; border-radius: 7px; }
.jx-st-done { background: var(--ok-bg); color: var(--pos); }
.jx-st-late { background: var(--bad-bg); color: var(--neg); }
.jx-st-due { background: var(--side); color: var(--fg-1); }
.jx-st-nodate, .jx-st-off { background: var(--side); color: var(--fg-3); }
.jx-st-b { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.jx-d { font: inherit; display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 100px; min-height: 44px; padding: 2px 10px; box-sizing: border-box; border-radius: 9px; text-align: left; line-height: 1.15; font-variant-numeric: tabular-nums; }
.jx-d .jx-dl { font-size: 11px; color: var(--fg-3); font-style: normal; font-weight: 400; }
.jx-d .jx-dv { font-size: 14px; }
.jx-dfix { border: 1px solid transparent; background: var(--side); color: var(--fg-1); cursor: default; }
.jx-dsug { border: 1px dashed #D9D4CB; background: var(--bsd-paper); color: #8A7C6C; font-style: italic; cursor: pointer; }
.jx-dset { border: 1px dashed var(--bsd-taupe); background: transparent; color: var(--fg-2); cursor: pointer; font-weight: 500; }
.jx-dset.jx-chg { font-weight: 600; }
.jx-dset:hover { background: var(--bsd-paper); }
.jx-date { font: inherit; font-size: 16px; height: 44px; width: 150px; box-sizing: border-box; padding: 0 8px; border-radius: 9px; border: 1px solid var(--line-strong); background: #fff; color: var(--fg-2); }
.jx-dayin { width: 160px; border: 2px solid var(--bsd-espresso); }
.jx-days { display: inline-flex; align-items: center; gap: 2px; }
.jx-days .jx-step { width: 44px; height: 44px; }
.jx-n { display: inline-flex; flex-direction: column; align-items: center; min-width: 40px; line-height: 1.1; color: var(--fg-2); font-weight: 500; }
.jx-n > span { font-size: 15px; font-variant-numeric: tabular-nums; }
.jx-n small, .jx-ends small, .jx-for small { font-size: 11px; color: var(--fg-3); font-style: normal; font-weight: 400; }
.jx-n.jx-nsug { color: #8A7C6C; font-style: italic; }
.jx-n.jx-nchg { font-weight: 600; }
.jx-for { display: inline-flex; flex-direction: column; line-height: 1.15; font-size: 14px; color: var(--fg-1); }
.jx-ends { display: inline-flex; flex-direction: column; line-height: 1.15; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--fg-2); }
.jx-ends.jx-emute { color: var(--fg-3); }
.jx-ends.jx-esug { color: #8A7C6C; font-style: italic; }
.jx-ends.jx-echg { font-weight: 600; }
.jx-note { font-size: 12px; color: var(--fg-3); }
.jx-tickrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.jx-tickb { min-height: 44px; font-size: 13px; }
.jx-chipb { font: inherit; font-size: 13px; min-height: 44px; padding: 0 12px; border-radius: 22px; border: 1px dashed var(--bsd-taupe); background: var(--bsd-paper-2); color: var(--fg-2); cursor: pointer; white-space: nowrap; }
.jx-dayl { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-3); }
.jx-doneline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.jx-doneline > span { font-size: 13px; color: var(--pos); }
.jx-lnk { font: inherit; font-size: 13px; border: none; background: none; padding: 6px 0; cursor: pointer; color: var(--fg-1); }
.jx-doneline .jx-lnk { text-decoration: underline; min-height: 44px; }
.jx-lnk.on { color: var(--fg-2); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.jx-moved { padding: 8px 0 0; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--fg-1); }
.jx-what { border-radius: 12px; padding: 14px 16px; background: var(--warn-bg); display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.jx-what .lbl { margin-bottom: 0; }
.jx-what b { font-weight: 600; }
.jx-what s { color: var(--fg-3); }
.jx-what .jx-ok { color: var(--pos); background: none; }
.jx-what .jx-bad { color: var(--neg); background: none; }
.jx-wm { color: var(--warn); }
.jx-cm { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--fg-3); }
.jx-links { display: flex; gap: 18px; font-size: 13px; flex-wrap: wrap; align-items: center; }
.jx-links a { font-size: 13px; padding: 6px 0; color: var(--fg-1); }
.jx-box { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; border-radius: 12px; background: #fff; border: 2px solid var(--bsd-espresso); box-shadow: 0 6px 18px rgba(63, 56, 51, 0.10); }
.jx-hist { display: flex; flex-direction: column; }
.jx-hl { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 2px 10px; padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.jx-hd { font-size: 13px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.jx-htag { font-size: 12px; padding: 1px 7px; border-radius: 6px; margin-right: 6px; }
.jx-h-change { background: var(--warn-bg); color: var(--warn); }
.jx-h-remark { background: var(--side); color: var(--fg-1); }
.jx-h-mark { background: var(--ok-bg); color: var(--pos); }
.jx-hw { display: block; font-size: 12px; color: var(--fg-3); }
.jx-arem { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.jx-remadd { display: flex; gap: 8px; }
.jx-arem .jx-remadd input { flex: 1; min-width: 0; font: inherit; font-size: 15px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bsd-paper); box-sizing: border-box; }
.jx-rems { font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.jx-rm { font-size: 13px; }
.jx-rm > span { color: var(--fg-3); }
.jx-bad[role="alert"] { font-size: 13px; color: var(--neg); }
/* a phone (the frame's phone width) */
.jx.jx-phone { padding-bottom: 8px; }
.jx-phone .jx-pmnote { padding: 8px 16px; }
.jx-in { font-family: var(--sans); font-size: 16px; min-height: 44px; padding: 0 12px; box-sizing: border-box; border-radius: 12px; border: 1px solid var(--line-strong); background: #fff; color: var(--fg-2); width: 100%; }
.jx-big { font-family: var(--sans); font-size: 15px; min-height: 48px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bsd-paper-2); color: var(--fg-2); cursor: pointer; padding: 0 14px; }
.jx-phsum { display: flex; align-items: baseline; gap: 8px; padding: 10px 16px 0; font-size: 13px; color: var(--fg-3); min-width: 0; }
.jx-pht { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--fg-2); }
.jx-phtools { padding: 10px 16px 4px; display: flex; flex-direction: column; gap: 8px; }
.jx-phtg { display: flex; flex-wrap: wrap; gap: 6px; }
.jx-phtg .jx-chipb { font-size: 14px; border: 1px solid rgba(88, 79, 70, 0.2); }
.jx-phtg .jx-chipb[aria-pressed="true"] { background: var(--fg-2); color: var(--bsd-paper); border-color: var(--fg-2); }
/* the contractors (22 Nov 2026, Jeffrey): the Programme page's drop-down list (prg-ldrop), on a computer and a phone */
.jx-tools .jx-ldrop .jx-chip { height: 28px; cursor: pointer; font: inherit; font-size: 13px; }
.jx-phtools .jx-ldrop { display: flex; }
.jx-phld { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; max-width: none; font-size: 14px; border: 1px solid rgba(88, 79, 70, 0.2); }
.jx-phtools .prg-ldl { width: 100%; box-sizing: border-box; }
.jx-phlist { padding: 6px 16px 20px; display: flex; flex-direction: column; gap: 8px; }
.jx-phlist .jx-room { display: flex; flex-direction: column; gap: 8px; }
.jx-phrb { min-height: 48px; height: auto; border: 0; border-radius: 12px; background: var(--track); }
.jx-phrb .jx-rn { font-size: 20px; }
.jx-phrb .jx-rc { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jx-card { border-radius: 12px; padding: 4px 8px 8px; display: flex; flex-direction: column; gap: 6px; background: var(--bsd-paper-2); border: 1px solid var(--line); }
.jx-card.is-done { background: var(--ok-bg); border-color: var(--ok-bg); }
.jx-card.is-late { border-color: var(--neg); box-shadow: inset 3px 0 0 var(--neg); }
.jx-card.jx-csel { outline: 2px solid var(--fg-2); }
.jx-cardh { font: inherit; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 2px; border: 0; background: none; color: var(--fg-2); text-align: left; cursor: pointer; }
.jx-cardt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.jx-cardh .jx-nm b { font-size: 15px; }
.jx-latep { flex: none; font-size: 11px; padding: 0 6px; border-radius: 6px; background: var(--neg); color: #fff; }
.jx-cardd { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fg-3); min-width: 0; }
.jx-cardd > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jx-cardp { flex: none; font-weight: 500; font-variant-numeric: tabular-nums; }
.jx-cardp.ok { color: var(--pos); } .jx-cardp.bad { color: var(--neg); }
.jx-pcs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.jx-pc { font-family: var(--sans); min-width: 0; min-height: 48px; box-sizing: border-box; padding: 4px 5px; border-radius: 9px; border: 1px solid transparent; background: var(--side); color: var(--fg-2); display: flex; flex-direction: column; justify-content: center; gap: 1px; text-align: left; font-variant-numeric: tabular-nums; cursor: pointer; overflow: hidden; }
.jx-pk { font-size: 11px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jx-pv { font-size: 12px; letter-spacing: -.01em; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jx-pbar { display: block; height: 4px; border-radius: 2px; background: var(--track); overflow: hidden; }
.jx-pc-done { background: var(--ok-bg); color: var(--pos); }
.jx-pc-late { background: var(--bad-bg); color: var(--neg); border-color: var(--neg); }
.jx-pc-dl { border: 1px dashed var(--neg); }
.jx-pc-due { background: var(--side); color: var(--fg-1); }
.jx-pc-nod { background: var(--side); color: var(--fg-3); }
.jx-pc-dd { background: transparent; border: 1px dashed var(--bsd-taupe); color: var(--fg-2); }
.jx-pc-dn { background: transparent; border: 1px dashed rgba(88, 79, 70, 0.35); color: var(--fg-3); }
.jx-pc-off { background: transparent; border: 1px solid var(--line-soft); color: var(--fg-3); }
.jx-pc-hold { background: repeating-linear-gradient(45deg, #E4DFD6 0 6px, var(--side) 6px 12px); color: var(--fg-3); }
.jx-phnote { font-size: 12px; color: var(--fg-3); padding: 4px 2px; }
.jx-toastp { position: fixed; left: 12px; right: 12px; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); z-index: 26; margin: 0; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 12px; }
.jx-toastp > span { flex: 1 1 auto; min-width: 0; }
.jx-toastp button { min-height: 44px; border-radius: 10px; }
.jx-scrim { position: fixed; left: 0; right: 0; top: 0; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 23; background: rgba(63, 56, 51, 0.28); }
.jx-sheet { position: fixed; left: 0; right: 0; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 24; max-height: min(720px, calc(100vh - 150px)); overflow-y: auto; overflow-x: hidden; box-sizing: border-box; background: var(--bsd-paper-2); border-radius: 20px 20px 0 0; padding: 10px 16px 0; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 -8px 24px rgba(63, 56, 51, 0.16); }
.jx-grip { width: 40px; height: 4px; flex: none; border-radius: 2px; background: #D9D4CB; margin: 0 auto; }
.jx-ph-h { display: flex; align-items: flex-start; gap: 8px; }
.jx-ph-t { flex: 1; min-width: 0; }
.jx-ph-lane { display: flex; align-items: center; gap: 6px; }
.jx-ph-lane .jx-dot { margin: 0; }
.jx-sheet .jx-pn { font-size: 26px; }
.jx-sheet .jx-pd { margin-top: 2px; }
.jx-sheet .jx-chip { height: auto; padding: 3px 10px; border-radius: 999px; border: 0; }
.jx-sheet .jx-c-so { min-height: 44px; padding: 0 12px; }
.jx-sheet .jx-stages { gap: 0; }
.jx-sheet .jx-sh { margin: 2px 0 0; }
.jx-sheet .jx-st { gap: 6px; padding: 4px 0 10px; }
.jx-sheet .jx-sw { width: 44px; height: 44px; background: none; }
.jx-sheet .jx-sw::before { content: ""; position: absolute; left: 2px; top: 10px; width: 40px; height: 24px; border-radius: 12px; background: #D9D4CB; }
.jx-sheet .jx-sw[aria-checked="true"]::before { background: var(--pos); }
.jx-sheet .jx-sw span { top: 13px; left: 5px; z-index: 1; }
.jx-sheet .jx-sw[aria-checked="true"] span { left: 21px; }
.jx-sheet .jx-st-b { gap: 6px; }
.jx-sheet .jx-d { min-width: 104px; }
.jx-sheet .jx-n { min-width: 34px; }
.jx-sheet .jx-what { padding: 10px 12px; border-radius: 10px; gap: 4px; }
.jx-sheet .jx-what s { text-decoration: line-through; }
.jx-sheet .jx-tickb { border-color: var(--pos); color: var(--pos); font-size: 14px; }
.jx-prem { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); }
.jx-remh { font: inherit; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--fg-2); cursor: pointer; text-align: left; }
.jx-remh .lbl { flex: 1; }
.jx-prem .jx-remadd .jx-in { flex: 1; min-width: 0; width: auto; }
.jx-prem .jx-big { min-height: 44px; }
.jx-sticky { position: sticky; bottom: 0; display: flex; gap: 8px; padding: 10px 0 16px; background: var(--bsd-paper-2); border-top: 1px solid var(--line-soft); }
.jx-savep { flex: 1; opacity: .5; cursor: default; }
.jx-savep.on { opacity: 1; cursor: pointer; background: var(--fg-2); color: var(--bsd-paper); border-color: var(--fg-2); }
@media (max-width: 960px) {
  .jx-pmnote { padding: 8px 16px; }
  .jx-main.jx-solo { padding: 16px; }
}
.jx-tickp { font: inherit; font-size: 14px; min-height: 44px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--pos); background: var(--bsd-paper-2); color: var(--pos); cursor: pointer; }
.jx-proglink { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--fg-1); }
.jx-stp::before { content: ""; position: absolute; top: -2px; left: 128px; width: 164px; height: 2px; background: #fff; }
.jx-phone .jx-phlist { padding-bottom: 80px; }
.jx-sh .lbl { white-space: nowrap; }
.jx-box .jx-cmb input { background: #fff; }
.jx-forp { font-size: 14px; color: var(--fg-1); }
.jx-sheet { max-height: min(720px, calc(100vh - 124px)); }

/* (22 Nov 2026, Jeffrey: "In the weekly plan and joinery page, the box on the right when a item is selected should also be a
   box that moves down with the scroll just like in the programme page") on a computer the Weekly plan's and the Joinery
   page's box stays in view under the header while the page is scrolled, drawn as the Programme page's panel */
@media (min-width: 961px) {
  .wkp-aside, .jx-side { position: sticky; top: calc(var(--ph-h, 0px) + 16px); align-self: flex-start; max-height: calc(100vh - var(--ph-h, 0px) - 32px); overflow-y: auto; overflow-x: hidden;
    border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 24px rgba(63,56,51,0.08); margin-left: 16px; }
}
/* (22 Nov 2026) the Programme page: where a bar being dragged lands, by the pointer */
.prg-dragtip { position: fixed; z-index: 80; pointer-events: none; padding: 6px 10px; border-radius: 8px; background: var(--fg-1); color: var(--bsd-paper); font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,.18); }

/* (22 Nov 2026) the client sign-offs on the Daily plan (soday.js): one line each, in the company's own row */
.dly .dly-sog .dp-parts { flex-direction: column; align-items: stretch; row-gap: 6px; }
.dly .dly-sog .dp-parts > .dp-task { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-width: 0; }
.dly .dly-sog .dly-tick { min-width: 0; max-width: 100%; }
.dly .dly-sog .dly-tt { min-width: 0; overflow-wrap: anywhere; }
.dly .dly-sc > .dly-tt { flex: 1 1 240px; font-size: 15px; color: var(--fg-2); }
.dly .dly-sbtn { display: flex; flex-wrap: wrap; gap: 8px; }
.dly a.dly-btn { text-decoration: none; }
.dly .dly-ssay { font-size: 13px; color: var(--fg-3); }
.dly .dly-ssay.bad { color: var(--neg); }
@media (max-width: 720px) {
  .dly .dly-sc > .dly-tt { flex-basis: 100%; }
  .dly .dly-sbtn { width: 100%; }
  .dly .dly-sbtn .dly-btn { flex: 1 1 auto; min-height: 44px; font-size: 15px; }
}

/* ---------- redesign: sign-offs (22 Nov 2026, the board "8 · Sign-offs"; sopage.js, classes so-… with the Joinery page's jx-…) ---------- */
.so .jx-r.so-r { grid-template-columns: minmax(170px, 1fr) minmax(92px, 112px) minmax(92px, 112px) minmax(58px, 80px) minmax(146px, 196px); }
.so .jx-tbl.so-tbl { min-width: 600px; }
.so-top { align-items: flex-start; }
.so-tt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; min-width: 0; }
.so-send { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; max-width: 100%; }
.so-send .jx-dark { min-height: 44px; }
.so-last { margin: 0; font-size: 12px; color: var(--fg-3); }
.so-said { margin: 0; font-size: 13px; color: var(--pos); }
.so-said:empty { display: none; }
.so-said.bad { color: var(--neg); }
.so-confirm { text-align: left; font-size: 14px; max-width: 420px; }
.so-confirm p, .so-confirm ul { margin: 0; }
.so-confirm ul { padding-left: 18px; }
.so-kinds { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.so-kd[aria-pressed="true"] { background: var(--fg-2); color: var(--bsd-paper); border-color: var(--fg-2); }
.so .jx-r.so-r .jx-nm { flex-wrap: wrap; row-gap: 3px; }
.so-c { display: flex; flex-direction: column; justify-content: center; gap: 1px; margin: 6px 4px; padding: 4px 10px; min-height: 40px; box-sizing: border-box; border-radius: 9px; font-size: 13px; font-variant-numeric: tabular-nums; min-width: 0; }
.so-c .jx-t { font-weight: 500; white-space: nowrap; }
.so-c .jx-s { font-size: 11px; color: var(--fg-3); white-space: nowrap; }
.so-c .jx-s:empty { display: none; }
.so-cd { border: 1px dashed var(--line-strong); }
.so-cdue { border: 1px dashed var(--line-strong); color: var(--fg-3); }
.so-cn { color: var(--fg-3); }
.so-clate { border: 1px dashed var(--neg); background: var(--bad-bg); color: var(--neg); }
.so-clate .jx-s { color: var(--neg); }
.so-fc { flex-direction: row; align-items: center; justify-content: flex-start; gap: 4px; color: var(--fg-1); }
.so-clip { font-size: 12px; filter: grayscale(1); }
.so-nc { margin: 0; padding: 4px 10px 4px 4px; }
.so-nx { font: inherit; font-size: 13px; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bsd-paper-2); color: var(--fg-2); cursor: pointer; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-nx.so-ok { border-color: var(--pos); color: var(--pos); }
.so-nx.so-ok:hover, .so-nx.so-ok:focus-visible { background: var(--ok-bg); }
.so-nx.so-dk { background: var(--fg-2); color: var(--bsd-paper); border-color: var(--fg-2); }
.so-nw { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.so-nw b { font-weight: 500; font-size: 13px; }
.so-nw small { font-size: 11px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-nw.ok b { color: var(--pos); }
.so-nw.bad b, .so-nw.bad small { color: var(--neg); }
.so-say, .so-boxsay { font-size: 12px; color: var(--pos); }
.so-say.bad, .so-boxsay.bad { color: var(--neg); }
.so-boxsay { font-size: 13px; margin: 0; }
.so-boxsay:empty { display: none; }
.so-home { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 12px; border-radius: 10px; background: var(--side); font-size: 13px; color: var(--fg-1); }
.so-home span { flex: 1 1 200px; }
.so-home a { color: var(--fg-1); }
.so-pen { padding: 0 4px; font-size: 14px; color: var(--bsd-taupe); }
.so-w { font-size: 13px; color: var(--fg-1); }
.so-w.bad { color: var(--neg); }
.so-sl { font-size: 13px; color: var(--fg-1); }
.so-sl small { color: var(--fg-3); }
.so-sub { margin-top: 4px; }
.so-seg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.so-sb { font: inherit; font-size: 14px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); background: var(--bsd-paper-2); color: var(--fg-2); cursor: pointer; border-radius: 10px; }
.so-sb[aria-pressed="true"] { background: var(--fg-2); color: var(--bsd-paper); border-color: var(--fg-2); }
.so-files-s { display: flex; flex-direction: column; gap: 8px; }
.so-side .so-files, .so-sheet .so-files { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.so-side .so-f, .so-sheet .so-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.so-side .so-th, .so-sheet .so-th { display: flex; align-items: center; justify-content: center; height: 80px; border-radius: 10px; background: var(--side); overflow: hidden; color: var(--neg); font-size: 12px; text-decoration: none; }
.so-side .so-th img, .so-sheet .so-th img { width: 100%; height: 100%; object-fit: cover; }
.so-th.pdf { flex-direction: column; gap: 2px; }
.so-th .so-pdf { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.so-fcap { display: flex; flex-direction: column; font-size: 12px; color: var(--fg-1); overflow-wrap: anywhere; }
.so-fcap small { color: var(--fg-3); }
.so-filebtn { position: relative; overflow: hidden; min-height: 44px; }
.so-filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 16px; }
.so-cam { display: none; }
.so-add .jx-cm input, .so-words .jx-cm input { font-size: 15px; height: 40px; }
.so-hv { padding: 6px 0; }
.so-hv > b { font-size: 13px; }
.so-hist .jx-hl { grid-template-columns: 128px minmax(0, 1fr); font-size: 13px; }
.so-after { padding: 0 16px 20px; }
/* a phone */
.so-sendp { align-items: stretch; padding: 10px 16px 0; }
.so-sendp .so-sendb { width: 100%; }
.so .jx-pcs.so-pcs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.so-pnext { display: flex; }
.so-pnext .so-nx { flex: 1; min-height: 44px; }
.so-ph .so-kinds .jx-chipb { border: 1px solid rgba(88, 79, 70, 0.2); }
.so-ph .so-kinds .jx-chipb[aria-pressed="true"] { background: var(--fg-2); color: var(--bsd-paper); border-color: var(--fg-2); }
.so-sheet .so-cam { display: inline-flex; }
.so-sheet .jx-tds, .so-sheet .jx-cm input, .so-side .jx-tds { font-size: 16px; }
.so-sheet .jx-lnk { min-height: 44px; }
@media (max-width: 960px) { .so-sheet .so-hist .jx-hl { grid-template-columns: minmax(0, 1fr); } }
/* the Joinery page's Drawings box of an item with a sign-off (22 Nov 2026): opens it */
.jx-sc.jx-so { border: 1px solid var(--line-strong); }
.jx-sc.jx-so:hover { background: var(--side); }
.so-sheet .jx-btn { min-height: 44px; }

/* ---------- redesign: procurement (22 Nov 2026, the board "7 · Procurement"; procpage.js, classes pcp-… with the Joinery page's jx-…) ---------- */
.pcp .jx-r.pcp-r { grid-template-columns: minmax(180px, 1fr) repeat(5, minmax(110px, 128px)) minmax(56px, 72px); column-gap: 0; }
.pcp .pcp-c { min-width: 0; }
.pcp .pcp-c .jx-t, .pcp .pcp-c .jx-s { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcp .pcp-c.jx-tk .jx-t, .pcp .pcp-c.jx-tk .jx-s, .pcp .pcp-c.jx-un .jx-t { padding-right: 16px; }
.pcp .pcp-c { padding: 4px 8px; }
.pcp-pin { font-size: 11px; margin-left: 2px; }
.pcp-scope { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--side); gap: 2px; }
.pcp-scope a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 9px; color: var(--fg-2); text-decoration: none; font-size: 14px; }
.pcp-scope a.on { background: #FFFFFF; box-shadow: 0 1px 3px rgba(63, 56, 51, 0.12); font-weight: 500; }
.pcp-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; background: var(--bsd-paper-2); margin-bottom: 14px; }
.pcp-figs > div { padding: 12px 16px; display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.pcp-figs > div + div { border-left: 1px solid var(--line); }
.pcp-figs b { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pcp-figs span { font-size: 13px; color: var(--fg-3); }
.pcp-del { color: var(--neg) !important; }
.pcp-tg-ll { background: var(--warn-bg); color: var(--warn); }
.pcp-tg-t { background: transparent; border: 1px solid var(--line); color: var(--fg-3); }
.pcp-tg-oo { background: var(--bad-bg); color: var(--neg); }
.pcp-c-ll { background: var(--warn-bg); color: var(--warn); }
.pcp-cm { color: var(--fg-3); }
.pcp-say, .pcp-boxsay { font-size: 12px; color: var(--pos); }
.pcp-say.bad, .pcp-boxsay.bad { color: var(--neg); }
.pcp-boxsay { font-size: 13px; margin: 0; }
.pcp-nosw { display: inline-block; width: 40px; flex: none; }
.pcp .jx-pcs.pcp-pcs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pcp-ph .pcp-scope { margin: 0 16px 6px; }
.pcp-ph .pcp-scope a { min-height: 44px; }
.pcp .jx-sheet .jx-links .jx-lnk { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 1180px) { .pcp-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pcp-figs > div:nth-child(3) { border-left: 0; } .pcp-figs > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.pcp .jx-tbl.pcp-tbl { min-width: 900px; }
.pcp .pcp-r .jx-nm { flex-wrap: wrap; row-gap: 3px; }
.pcp .pcp-r .jx-nm b { overflow-wrap: normal; min-width: 0; }
.pcp .pcp-r .jx-desc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
