/* ═══ THE TECHNICIAN BOARD — a wall screen ════════════════════════════════════
   Not a page someone reads at a desk. It hangs on the office wall, nobody touches
   it, and it is read from across the room. That is why it has its own type scale
   and its own size control: the right size depends on how far away you stand.

   Every colour here is a token from app.css. Nothing new was invented.
   ═════════════════════════════════════════════════════════════════════════════ */

#view-board{padding:0!important;height:100%;overflow:hidden}

/* ⚠ ONE NUMBER DRIVES EVERY SIZE. --bs is set by the S/M/L control and multiplies
   every dimension below, so the board scales as one piece instead of drifting. */
.bd{--bs:1;display:flex;flex-direction:column;height:100%;background:var(--surface)}

/* ── the strip along the top ── */
.bd-top{height:calc(52px * var(--bs));flex-shrink:0;display:flex;align-items:center;
  gap:calc(16px * var(--bs));padding:0 calc(18px * var(--bs));
  border-bottom:1px solid var(--rule);background:var(--surface)}
.bd-top h2{font-size:calc(15px * var(--bs));font-weight:600;letter-spacing:-.012em;white-space:nowrap}
.bd-day{font-size:calc(13px * var(--bs));color:var(--ink-soft);white-space:nowrap}
.bd-seg{display:flex;gap:calc(3px * var(--bs));background:var(--band-fill,var(--field));
  border-radius:calc(9px * var(--bs));padding:calc(3px * var(--bs))}
.bd-seg button{border:0;background:none;font-family:inherit;cursor:pointer;
  font-size:calc(13px * var(--bs));font-weight:500;color:var(--ink-soft);
  padding:calc(6px * var(--bs)) calc(13px * var(--bs));border-radius:calc(7px * var(--bs));white-space:nowrap}
.bd-seg button:hover{color:var(--ink)}
.bd-seg button.on{background:var(--surface);color:var(--ink);font-weight:600;box-shadow:0 1px 2px rgba(var(--shade-rgb),.1)}
.bd-right{margin-left:auto;display:flex;align-items:center;gap:calc(12px * var(--bs))}
.bd-clock{font-family:var(--num);font-variant-numeric:tabular-nums;
  font-size:calc(20px * var(--bs));line-height:1}
/* the beating dot is the only proof, from across a room, that the board has not frozen */
.bd-live{display:flex;align-items:center;gap:calc(6px * var(--bs));font-size:calc(13px * var(--bs));color:var(--ink-faint)}
.bd-live i{width:calc(7px * var(--bs));height:calc(7px * var(--bs));border-radius:50%;background:var(--ok);
  animation:bdbeat 2.6s var(--ease-out) infinite}
@keyframes bdbeat{0%,72%,100%{opacity:1;transform:scale(1)}82%{opacity:.35;transform:scale(.72)}}
.bd-sz{display:flex;border:1px solid var(--rule);border-radius:calc(8px * var(--bs));overflow:hidden}
.bd-sz button{border:0;background:none;font-family:inherit;cursor:pointer;
  width:calc(29px * var(--bs));height:calc(29px * var(--bs));font-size:calc(13px * var(--bs));color:var(--ink-soft)}
.bd-sz button:hover{background:var(--paper)}
.bd-sz button.on{background:var(--ink);color:var(--on-ink)}

/* ── map + rail ── */
.bd-body{flex:1;display:flex;min-height:0}
.bd-map{flex:1;position:relative;min-width:0;background:var(--field)}
.bd-map>#bdMap{position:absolute;inset:0}   /* only the map canvas: the note and the pills are divs in here too */
.bd-rail{width:calc(420px * var(--bs));flex-shrink:0;border-left:1px solid var(--rule);
  display:flex;flex-direction:column;min-height:0;background:var(--surface)}
.bd-scroll{flex:1;overflow-y:auto;overscroll-behavior:contain}

.bd-bhead{position:sticky;top:0;z-index:5;background:var(--surface);border-bottom:1px solid var(--rule);
  padding:calc(12px * var(--bs)) calc(15px * var(--bs)) calc(8px * var(--bs));
  display:flex;align-items:baseline;gap:calc(8px * var(--bs))}
.bd-bhead h3{font-size:calc(13px * var(--bs));font-weight:600;letter-spacing:.06em;text-transform:uppercase}
.bd-bhead .n{font-family:var(--num);font-variant-numeric:tabular-nums;
  font-size:calc(13px * var(--bs));color:var(--ink-faint)}

.bd-row{display:flex;align-items:center;gap:calc(10px * var(--bs));width:100%;text-align:left;
  border:0;background:none;font-family:inherit;cursor:pointer;
  padding:calc(9px * var(--bs)) calc(15px * var(--bs));border-bottom:1px solid var(--rule-soft)}
.bd-row:hover{background:var(--paper)}
.bd-row.lit{background:var(--paper);box-shadow:inset calc(3px * var(--bs)) 0 0 var(--ink)}
/* 48, not 34 — at 34 a picture was a smudge and he could not tell who it was (30 Sep) */
.bd-av{width:calc(48px * var(--bs));height:calc(48px * var(--bs));border-radius:calc(10px * var(--bs));
  display:grid;place-items:center;font-size:calc(16px * var(--bs));font-weight:600;color:var(--on-dark);
  flex-shrink:0;position:relative;background-size:cover;background-position:center}
.bd-av .led{position:absolute;right:calc(-3px * var(--bs));bottom:calc(-3px * var(--bs));z-index:2;
  width:calc(13px * var(--bs));height:calc(13px * var(--bs));border-radius:50%;border:2px solid var(--surface)}
.bd-mid{flex:1;min-width:0}
.bd-nm{font-size:calc(14px * var(--bs));font-weight:600;letter-spacing:-.012em;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bd-at{font-size:calc(13px * var(--bs));color:var(--ink-soft);white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis;margin-top:calc(1px * var(--bs))}
.bd-at b{font-weight:500;color:var(--ink)}
.bd-end{text-align:right;flex-shrink:0}
.bd-tag{font-size:calc(12px * var(--bs));font-weight:600;white-space:nowrap;display:inline-block;
  padding:calc(3px * var(--bs)) calc(8px * var(--bs));border-radius:calc(20px * var(--bs))}
.bd-when{font-family:var(--num);font-variant-numeric:tabular-nums;
  font-size:calc(12px * var(--bs));color:var(--ink-faint);margin-top:calc(3px * var(--bs));display:block}
.bd-none{padding:calc(15px * var(--bs));font-size:calc(13px * var(--bs));color:var(--ink-faint)}

/* ── the count strip ── */
.bd-foot{height:calc(48px * var(--bs));flex-shrink:0;border-top:1px solid var(--rule);
  display:flex;align-items:center;gap:calc(20px * var(--bs));padding:0 calc(18px * var(--bs));background:var(--surface)}
.bd-tally{display:flex;align-items:center;gap:calc(7px * var(--bs))}
.bd-tally i{width:calc(10px * var(--bs));height:calc(10px * var(--bs));border-radius:50%}
.bd-tally b{font-family:var(--num);font-variant-numeric:tabular-nums;
  font-size:calc(19px * var(--bs));font-weight:400;line-height:1}
.bd-tally span{font-size:calc(13px * var(--bs));color:var(--ink-soft)}
/* ⚠ THE ONE SENTENCE THE BOARD MUST NEVER LOSE. Everything on it is the last place a
   man tapped Sampai, not where he is now, and the screen has to say so itself. */
.bd-note{margin-left:auto;font-size:calc(12px * var(--bs));color:var(--ink-faint)}

/* ── the pin: a technician, not a place ── */
.bd-pin{position:relative;width:calc(52px * var(--bs));height:calc(52px * var(--bs));cursor:pointer}
.bd-pin .disc{position:relative;overflow:hidden;width:100%;height:100%;border-radius:50%;
  background:var(--surface);border:0;padding:calc(3px * var(--bs));display:grid;place-items:center;
  font-size:calc(15px * var(--bs));font-weight:600;color:var(--ink);letter-spacing:-.02em;
  background-size:cover;background-position:center;background-origin:content-box;
  /* ⚠ THE RING IS A SHADOW, NOT A BORDER. Zen draws a border on a pulsing circle in four pieces and shows the seams
     as a cross over the face at some page zooms (his picture, 23 Nov 2026; seen in Zen, gone with the shadow). */
  box-shadow:inset 0 0 0 calc(3px * var(--bs)) var(--ring),0 calc(4px * var(--bs)) calc(12px * var(--bs)) -4px rgba(var(--shade-rgb),.42)}
.bd-pin .tail{position:absolute;left:50%;bottom:calc(-5px * var(--bs));width:calc(9px * var(--bs));
  height:calc(9px * var(--bs));background:var(--ring);transform:translateX(-50%) rotate(45deg);border-radius:2px;z-index:-1}
.bd-pin .cnt{position:absolute;top:calc(-5px * var(--bs));right:calc(-6px * var(--bs));
  min-width:calc(17px * var(--bs));height:calc(17px * var(--bs));padding:0 calc(4px * var(--bs));
  border-radius:calc(9px * var(--bs));background:var(--ring);color:var(--on-dark);
  font-family:var(--num);font-variant-numeric:tabular-nums;font-size:calc(11px * var(--bs));
  display:grid;place-items:center;border:2px solid var(--surface)}
/* ⚠ NOT ARRIVED IS A RING, NOT A DISC. A filled disc says we saw him there. A dashed,
   see-through ring says we expect him there — the map reads through it, and it carries
   no tail, because a tail points at a spot and we are not claiming one. */
.bd-pin.due .disc{background:rgba(var(--lift-rgb),.55);border:calc(3px * var(--bs)) dashed var(--ring);padding:0;box-shadow:none;color:var(--ink-soft)}
.bd-pin.due .tail{display:none}
.bd-pin.dim{opacity:.34}
.bd-pin.lit{filter:drop-shadow(0 0 calc(10px * var(--bs)) rgba(var(--shade-rgb),.3))}

/* ⚠ MapLibre keeps markers and popups in ONE container, so any z-index on a marker
   also beats the card. Pins order among themselves at 1-4; the card sits above all. */
#view-board .maplibregl-popup{z-index:10}
#view-board .maplibregl-popup-content{border-radius:calc(12px * var(--bs));padding:0;border:1px solid var(--rule);
  width:calc(300px * var(--bs));font-family:'Inter',sans-serif;
  box-shadow:0 calc(18px * var(--bs)) calc(44px * var(--bs)) -18px rgba(var(--shade-rgb),.45)}
#view-board .maplibregl-popup-tip{border-top-color:var(--surface)}
#view-board .maplibregl-popup-close-button{display:none}

.bd-card{padding:calc(13px * var(--bs))}
.bd-card .top{display:flex;align-items:center;gap:calc(10px * var(--bs))}
.bd-card .av{width:calc(56px * var(--bs));height:calc(56px * var(--bs));border-radius:calc(12px * var(--bs));
  display:grid;place-items:center;font-size:calc(18px * var(--bs));font-weight:600;color:var(--on-dark);flex-shrink:0;
  background-size:cover;background-position:center}
.bd-card .nm{font-size:calc(15px * var(--bs));font-weight:600;letter-spacing:-.012em}
.bd-card .sub{font-size:calc(13px * var(--bs));color:var(--ink-soft);margin-top:calc(2px * var(--bs))}
.bd-card .facts{margin-top:calc(11px * var(--bs));border-top:1px solid var(--rule-soft);
  display:grid;grid-template-columns:1fr 1fr;gap:calc(10px * var(--bs));padding-top:calc(10px * var(--bs))}
.bd-card .k{font-size:calc(12px * var(--bs));color:var(--ink-faint)}
.bd-card .v{font-size:calc(13px * var(--bs));color:var(--ink);margin-top:calc(2px * var(--bs));font-weight:500}
.bd-card .to{margin-top:calc(10px * var(--bs));border-top:1px solid var(--rule-soft);padding-top:calc(10px * var(--bs))}
.bd-card .strip{margin-top:calc(10px * var(--bs));border-radius:calc(8px * var(--bs));
  padding:calc(8px * var(--bs)) calc(10px * var(--bs));font-size:calc(13px * var(--bs));line-height:1.45}
.bd-card .open{margin-top:calc(10px * var(--bs));width:100%;border:1px solid var(--rule);background:var(--surface);
  border-radius:calc(8px * var(--bs));padding:calc(8px * var(--bs));font-family:inherit;cursor:pointer;
  font-size:calc(13px * var(--bs));font-weight:600;color:var(--ink)}
.bd-card .open:hover{background:var(--paper)}

/* the board is a wall screen; a phone is simply the wrong shape for it */
@media (max-width:900px){
  .bd-body{flex-direction:column}
  .bd-map{display:none}
  .bd-rail{width:auto;border-left:0}
}

/* ── THE BOARD ON A PHONE ──────────────────────────────────────────────────
   His screenshot, 18 Sep 2026: the title sat UNDERNEATH the round button that
   floats top-right, the four counters along the bottom wrapped onto two lines
   each, and two coloured dots hung in the middle of the page with nothing
   beside them.

   All three are the same cause — this screen is built as one 52px strip and one
   48px strip, both of them single rows that never wrap, and neither of them
   knows the floating button exists. Every other screen clears it because they
   all sit inside .wrap, which carries the clearance; this one does not.

   ⚠ THE WALL CONTROLS GO, and only on a phone. S / M / L sizes a screen across
   a room, full-screen hides a browser frame a phone does not show, the tour
   walks a wall-mounted board through its branches, and the beating dot is there
   to prove to somebody walking past that the board has not frozen. Nobody
   standing with a phone in their hand needs any of the five. The branch switch
   stays: that is the one control that answers a question.
   ⚠ THE SENTENCE STAYS TOO — it says every pin is a check-in and never live
   GPS, and it is the one line this screen must never lose. It moves onto a line
   of its own rather than being dropped. */
@media (max-width:760px){
  /* the strip becomes as many lines as it needs, and clears the floating button */
  .bd-top{height:auto;flex-wrap:wrap;row-gap:8px;padding:52px 14px 12px}
  .bd-top h2{white-space:normal;flex:1 1 100%}
  .bd-day{flex:1 1 100%}
  /* one switch, full width, thumb-sized */
  .bd-seg{flex:1 1 100%;margin-left:0}
  .bd-seg button{flex:1 1 0}
  /* the five that only mean something on a wall */
  .bd-right{display:none}

  /* ⚠ THE COUNT STRIP GOES ON A PHONE ENTIRELY — "no need for this in the mobile",
     18 Sep 2026. Four tallies that all read 0 and a sentence about pins, under a
     screen that already says "Nobody out" four times in words. It is a wall-screen
     legend: it earns its place across a room and nowhere else. The branch heads
     above it carry the same counts in a form you can actually read. */
  .bd-foot{display:none}
}

/* ⚠ THE BOARD IS THE ONLY SCREEN WITH NOTHING FLOATING OVER IT. The private memo
   docks itself bottom-right on every screen, which on a wall the whole office walks
   past is both clutter and somebody's private note on public display. It is hidden
   here, not removed — every other screen keeps it. */
body.board-mode #memo{display:none!important}
/* ⚠ and the widget dock (5 Oct 2026) for the same reason — an open widget sat on top of the floating
   card and covered its "Give it to …" button (6 Oct 2026, found on the bench) */
body.board-mode #wgHost{display:none!important}

/* the fullscreen button — the same idea as a video player's, so the TV loses
   the browser's own tabs and address bar too, not just the app's frame */
.bd-fs{width:30px;height:30px;border:1px solid var(--rule);background:var(--surface);border-radius:7px;
  display:inline-flex;align-items:center;justify-content:center;color:var(--ink-soft);cursor:pointer;
  transition:border-color .12s linear,color .12s linear}
.bd-fs:hover{border-color:var(--rule-strong);color:var(--ink)}
.bd-fs svg{width:15px;height:15px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round}
/* once the screen IS full, the arrows point inward */
body.bd-isfull .bd-fs svg{transform:rotate(180deg)}

/* ── THE WALL SCREEN TAKES THE WHOLE SCREEN ─────────────────────────────────
   Nobody walking past the office wall is going to use the search box or the
   icon rail, and between them they were eating 85px of height and 56px of
   width off a board meant to be read from across the room. The app's frame is
   hidden for this one view only; everything comes straight back on the way
   out, because it is a class on <body> and nothing here is permanent. */
body.board-mode #appbars{display:none!important}
body.board-mode .sb,
body.board-mode .sb-panel{display:none!important}
body.board-mode .app{height:100vh}
body.board-mode main{overflow:hidden;scrollbar-gutter:auto}   /* the board scrolls itself, and the reserved scrollbar gutter cost it 9px of width */
body.board-mode #view-board{height:100vh}
body.board-mode .mobile-head{display:none!important}

/* ═══ SIGNS OF LIFE ═══════════════════════════════════════════════════════════
   ⚠ MOTION HAS TO MEAN SOMETHING. A wall screen where every pin throbs is a wall
   screen nobody looks at twice. A ring goes out for three reasons and no others:
   the man is ON SITE and working, the man just changed state, or the tour is looking
   at him. */
.bd-pin.ping .disc{animation:bdbreathe 2.6s var(--ease-out) infinite}
.bd-pin.ping::before{
  content:'';position:absolute;inset:0;border-radius:50%;
  box-shadow:inset 0 0 0 calc(2px * var(--bs)) var(--ring);
  animation:bdping 2.6s cubic-bezier(.12,.62,.36,1) infinite;pointer-events:none}
@keyframes bdping{
  0%{transform:scale(1);opacity:.55}
  70%{transform:scale(1.8);opacity:0}
  100%{transform:scale(1.8);opacity:0}}
@keyframes bdbreathe{0%,100%{transform:scale(1)}50%{transform:scale(1.06)}}

/* the tour's own stop: the pins it is looking at come forward, the rest fall back */
.bd-row.grp{background:var(--paper)}
.bd-row.grp .bd-nm{color:var(--ink)}

.bd-tourbtn{display:flex;align-items:center;gap:calc(6px * var(--bs));cursor:pointer;font-family:inherit;
  border:1px solid var(--rule);background:var(--surface);border-radius:calc(8px * var(--bs));
  height:calc(29px * var(--bs));padding:0 calc(11px * var(--bs));
  font-size:calc(13px * var(--bs));color:var(--ink-soft)}
.bd-tourbtn:hover{background:var(--paper);color:var(--ink)}
.bd-tourbtn i{width:calc(7px * var(--bs));height:calc(7px * var(--bs));border-radius:50%;background:currentColor;opacity:.5}
.bd-tourbtn.on{background:var(--accent-soft);border-color:var(--accent-line);color:var(--accent);font-weight:600}
.bd-tourbtn.on i{opacity:1;animation:bdbeat 1.6s var(--ease-out) infinite}

/* ⚠ SOMEBODY MAY BE SITTING NEXT TO THIS SCREEN ALL DAY. If their machine is set to
   reduce motion, the board holds still and says what it means with colour alone. */
@media (prefers-reduced-motion: reduce){
  .bd-pin.ping::before,.bd-pin.ping .disc,.bd-live i,.bd-tourbtn.on i{animation:none}
  .bd-pin.ping::before{opacity:.4;transform:scale(1.5)}
}

/* ══ 1 Oct 2026 — the right side is To assign, the men are pills on the map (Plain look) ══ */
.bd-tahd{display:flex;align-items:baseline;gap:calc(10px * var(--bs));padding:calc(16px * var(--bs)) calc(15px * var(--bs)) calc(10px * var(--bs));border-bottom:1px solid var(--rule)}
.bd-tahd h2{font-size:calc(19px * var(--bs));font-weight:500;letter-spacing:-.01em}
.bd-tahd b{font-family:var(--num);font-size:calc(26px * var(--bs));font-weight:400;color:var(--accent);line-height:1}
.bd-ta{display:flex;align-items:flex-start;gap:calc(10px * var(--bs));width:100%;text-align:left;border:0;background:none;font-family:inherit;cursor:pointer;
  padding:calc(11px * var(--bs)) calc(15px * var(--bs));border-bottom:1px solid var(--rule-soft);color:var(--ink)}
.bd-ta:hover{background:var(--paper)}
.bd-ta.bd-ro{cursor:default}.bd-ta.bd-ro:hover{background:none}   /* a login that does not give jobs: the list, not a control */
.bd-ta .prsq{margin-top:calc(5px * var(--bs));width:calc(10px * var(--bs));height:calc(10px * var(--bs))}
.bd-ta .bd-nm{font-weight:500;font-size:calc(15px * var(--bs))}
.bd-wait{display:block;font-family:var(--num);font-variant-numeric:tabular-nums;font-size:calc(13px * var(--bs));color:var(--ink-faint)}
.bd-wait.late{color:var(--accent);font-weight:600}
.bd-tday{display:block;font-size:calc(13px * var(--bs));color:var(--ink-soft);margin-top:calc(2px * var(--bs))}
.bd-tday.amb{color:var(--warn);font-weight:600}
.bd-foot[hidden]{display:none}
.bd-mnote{position:absolute;right:calc(12px * var(--bs));top:calc(12px * var(--bs));z-index:6;font-size:calc(12px * var(--bs));color:var(--ink-soft);
  background:var(--surface);border:1px solid var(--rule);border-radius:999px;padding:calc(4px * var(--bs)) calc(10px * var(--bs));pointer-events:none}
/* the pills float on the map: no strip behind them */
.bd-pills{position:absolute;left:0;right:0;bottom:0;z-index:6;display:grid;grid-auto-flow:column;grid-template-rows:repeat(2,auto);grid-auto-columns:max-content;align-content:end;
  gap:calc(8px * var(--bs));overflow-x:auto;scrollbar-width:none;padding:calc(10px * var(--bs)) calc(14px * var(--bs));pointer-events:none}
.bd-pills::-webkit-scrollbar{display:none}
.bd-pill{pointer-events:auto;position:relative;display:inline-flex;align-items:center;gap:calc(10px * var(--bs));border:1px solid var(--rule);background:var(--surface);border-radius:999px;
  padding:calc(4px * var(--bs)) calc(16px * var(--bs)) calc(4px * var(--bs)) calc(4px * var(--bs));max-width:calc(360px * var(--bs));cursor:pointer;font-family:inherit;color:var(--ink);
  box-shadow:0 calc(4px * var(--bs)) calc(14px * var(--bs)) -6px rgba(var(--shade-rgb),.28);transition:background-color .14s,border-color .14s}
.bd-pill:hover{background:var(--paper)}
.bd-pill .disc{width:calc(36px * var(--bs));height:calc(36px * var(--bs));border-radius:50%;border:calc(3px * var(--bs)) solid var(--ring);display:grid;place-items:center;
  font-size:calc(13px * var(--bs));font-weight:600;background:var(--surface);background-size:cover;background-position:center;flex-shrink:0;overflow:hidden}
.bd-pill.due .disc{border-style:dashed;color:var(--ink-soft)}
.bd-pill .cnt{position:absolute;left:calc(28px * var(--bs));top:calc(-2px * var(--bs));min-width:calc(17px * var(--bs));height:calc(17px * var(--bs));border-radius:9px;background:var(--ok);color:#fff;
  font-size:calc(11px * var(--bs));font-weight:600;display:grid;place-items:center;padding:0 3px;border:2px solid var(--surface)}
.bd-pill .tx{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:calc(13px * var(--bs));color:var(--ink-soft)}
.bd-pill .tx b{font-size:calc(15px * var(--bs));font-weight:500;color:var(--ink)}
.bd-pill.lit{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.bd-pill.grp{border-color:var(--ink-faint)}
/* the zoom buttons stay above the pills */
#bdMap .maplibregl-ctrl-bottom-left{bottom:calc(120px * var(--bs))}
@media (prefers-reduced-motion:reduce){.bd-pill{transition:none}}
/* assign, from the wall */
.bd-asg-bd{position:fixed;inset:0;background:rgba(0,0,0,.32);z-index:1500}
.bd-asg{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:1501;width:min(520px,calc(100vw - 32px));max-height:calc(100vh - 48px);overflow:auto;
  background:var(--surface);border-radius:10px;box-shadow:0 18px 50px rgba(0,0,0,.25);padding:24px 26px 18px;color:var(--ink)}
.bd-asg-x{position:absolute;top:12px;right:12px;width:36px;height:36px;border:0;background:none;border-radius:18px;font-size:22px;color:var(--ink-faint);cursor:pointer}
.bd-asg-x:hover{background:var(--paper);color:var(--ink)}
.bd-asg-h{display:flex;align-items:center;gap:10px;font-size:19px;font-weight:500;padding-right:36px}
.bd-asg-s{font-size:13px;color:var(--ink-soft);margin-top:4px}
.bd-asg-l{font-size:13px;color:var(--ink-faint);margin:18px 0 8px}
.bd-asg-list{display:flex;flex-direction:column}
.bd-asg-list .g{font-size:13px;font-weight:600;color:var(--ink-soft);margin:10px 0 4px}
.bd-asg-list .m3-text{align-self:flex-start;margin:6px 0 0 -10px}
.bd-asg-t{display:flex;align-items:center;gap:10px;border:0;background:none;padding:8px;margin:0 -8px;border-radius:8px;cursor:pointer;text-align:left;font-family:inherit;color:var(--ink)}
.bd-asg-t:hover{background:var(--paper)}
.bd-asg-t.on{background:var(--field);box-shadow:inset 0 0 0 1.5px var(--ink)}
.bd-asg-t .av{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:13px;font-weight:600;flex-shrink:0}
.bd-asg-t .nm{font-size:15px;font-weight:500;flex:1}
.bd-asg-t .why{font-size:13px;color:var(--ink-faint)}
.bd-asg-f{display:flex;gap:8px;margin-top:18px;padding-top:14px;border-top:1px solid var(--rule-soft)}

/* ══ 6 Oct 2026 — THE FLOATING BOARD ══════════════════════════════════════════
   His words, on the prototype: "i like how you made the thing float, unlike my maintenance dashboard
   now which has a block on the side", then "redo the maintenance one too with that style, go crazy".
   Approved on _prototype-maintenance-dashboard-float.html. The map runs edge to edge and every panel
   floats on it: To assign on the left, the man (or the job being given out) on the right, his day as a
   strip along the foot. One fact lives in ONE panel — his catch: the card does not list the jobs the
   strip already shows. ⚠ Every size still runs through --bs. */
.bd-body{position:relative}
.bd-map{position:absolute;inset:0}
.bd-rail,.bd-fcard,.bd-ftrack{background:var(--surface);border-radius:calc(10px * var(--bs));
  box-shadow:0 calc(10px * var(--bs)) calc(34px * var(--bs)) rgba(var(--shade-rgb),.13),0 0 0 1px var(--rule)}
.bd-rail{position:absolute;z-index:7;top:calc(14px * var(--bs));left:calc(14px * var(--bs));
  width:calc(356px * var(--bs));max-height:calc(100% - 28px * var(--bs));border-left:0;overflow:hidden}
.bd-rail .bd-scroll{max-height:inherit}
.bd-tahd{border-bottom:0}
.bd-tahd .fold{margin-left:auto;border:0;background:none;font-family:inherit;cursor:pointer;color:var(--ink-faint);
  font-size:calc(13px * var(--bs));font-weight:600;padding:calc(4px * var(--bs)) calc(8px * var(--bs));border-radius:999px}
.bd-tahd .fold:hover{background:var(--paper);color:var(--ink)}
.bd-rail.shut .bd-bhead,.bd-rail.shut .bd-ta,.bd-rail.shut .bd-none{display:none}
.bd-bhead{border-top:1px solid var(--rule-soft);border-bottom:0}
.bd-ta.sel{background:var(--field);box-shadow:inset calc(3px * var(--bs)) 0 0 var(--ink)}
/* the pills start after the floating list, and step aside while somebody is open */
.bd-pills{padding-left:calc(384px * var(--bs));padding-right:calc(60px * var(--bs))}
.bd.shut-rail .bd-pills{padding-left:calc(14px * var(--bs))}
.bd.lit .bd-pills,.bd.lit .bd-mnote,.bd.lit .bd-news{display:none}
/* the + and − go to the bottom right, clear of the list */
#bdMap .maplibregl-ctrl-bottom-right{bottom:calc(var(--bd-foot, 0px) + 4px)}

/* the card on the right */
.bd-fcard{position:absolute;z-index:8;top:calc(14px * var(--bs));right:calc(14px * var(--bs));width:calc(372px * var(--bs));
  max-height:calc(100% - 28px * var(--bs));overflow:auto;overscroll-behavior:contain;padding:calc(16px * var(--bs)) calc(18px * var(--bs)) calc(6px * var(--bs));color:var(--ink)}
.bd-fcard[hidden],.bd-ftrack[hidden]{display:none}
.bd-fhead{display:flex;align-items:center;gap:calc(12px * var(--bs))}
.bd-fhead .av{position:relative;flex-shrink:0;display:grid;place-items:center;color:var(--on-dark);font-weight:600;overflow:hidden;
  border-radius:calc(10px * var(--bs));width:calc(52px * var(--bs));height:calc(52px * var(--bs));font-size:calc(19px * var(--bs));background-size:cover;background-position:center}
.bd-fhead .nm{font-size:calc(19px * var(--bs));font-weight:500;line-height:1.2}
.bd-fhead .sb{font-size:calc(13px * var(--bs));color:var(--ink-faint);margin-top:calc(2px * var(--bs))}
.bd-fhead .x{margin-left:auto;align-self:flex-start;width:calc(32px * var(--bs));height:calc(32px * var(--bs));border-radius:50%;border:0;background:none;
  color:var(--ink-faint);font-size:calc(19px * var(--bs));line-height:1;cursor:pointer;flex-shrink:0;font-family:inherit}
.bd-fhead .x:hover{background:var(--paper);color:var(--ink)}
.bd-chips{display:flex;gap:calc(6px * var(--bs));flex-wrap:wrap;margin-top:calc(6px * var(--bs))}
.bd-chips span{font-size:calc(12px * var(--bs));padding:calc(1px * var(--bs)) calc(8px * var(--bs));border-radius:999px;background:var(--field);color:var(--ink-soft)}
.bd-now{margin:calc(14px * var(--bs)) 0 calc(4px * var(--bs));padding:calc(12px * var(--bs)) calc(14px * var(--bs));border-radius:calc(8px * var(--bs));background:var(--bg)}
.bd-now .t{font-size:calc(15px * var(--bs));font-weight:500;color:var(--fg)}
.bd-now .s{font-size:calc(13px * var(--bs));color:var(--ink-soft);margin-top:calc(2px * var(--bs))}
.bd-fbtns{display:flex;gap:calc(8px * var(--bs));flex-wrap:wrap;align-items:center;margin:calc(14px * var(--bs)) 0 calc(12px * var(--bs))}
.bd-fkind{display:flex;align-items:center;gap:calc(8px * var(--bs));font-size:calc(13px * var(--bs));color:var(--ink-soft)}
.bd-fprob{margin-top:calc(12px * var(--bs));font-size:calc(15px * var(--bs))}
.bd-ffacts{margin-top:calc(12px * var(--bs));display:grid;grid-template-columns:1fr 1fr;gap:calc(10px * var(--bs))}
.bd-ffacts .k{font-size:calc(13px * var(--bs));color:var(--ink-faint)}
.bd-ffacts .v{font-size:calc(13px * var(--bs));font-weight:500;margin-top:1px;display:flex;align-items:center;gap:6px}
.bd-fsec{font-size:calc(13px * var(--bs));color:var(--ink-faint);margin:calc(18px * var(--bs)) 0 calc(6px * var(--bs));display:flex;justify-content:space-between;gap:10px}
.bd-fcard .mp-chips{display:flex;flex-wrap:wrap;gap:calc(8px * var(--bs))}
/* a dead button is the family's grey (family.css :disabled), never a faded one (restyle, 21 Oct 2026) */
.bd-fcard .btn-line[disabled]{cursor:not-allowed}
.bd-fcard .bd-asg-list{margin-top:calc(4px * var(--bs))}
.bd-asg-t .km{font-size:13px;color:var(--ink-faint);font-variant-numeric:tabular-nums;white-space:nowrap}

/* his day — along the foot, as wide as his day, centred in the room the two panels leave */
.bd-ftrack{position:absolute;z-index:8;bottom:calc(14px * var(--bs));left:calc(384px * var(--bs));right:calc(400px * var(--bs));
  width:fit-content;margin:0 auto;padding:calc(10px * var(--bs)) calc(16px * var(--bs)) calc(12px * var(--bs));overflow-x:auto;color:var(--ink)}
.bd.shut-rail .bd-ftrack{left:calc(14px * var(--bs))}
.bd-trkh{display:flex;align-items:center;gap:10px;margin-bottom:calc(8px * var(--bs));flex-wrap:wrap}
.bd-trkh .t{font-size:calc(15px * var(--bs));font-weight:500}
.bd-trkh .sm{font-size:calc(13px * var(--bs));color:var(--ink-faint)}
.bd-stg{display:flex;gap:calc(6px * var(--bs));flex-wrap:wrap;margin-left:auto;padding-left:calc(14px * var(--bs))}
.bd-stg span{font-size:calc(12px * var(--bs));padding:1px calc(7px * var(--bs));border-radius:999px;background:var(--field);color:var(--ink-faint);white-space:nowrap}
.bd-stg span.on{background:var(--good-bg);color:var(--good-deep)}
.bd-stg span.off{background:var(--accent-soft);color:var(--accent-deep)}
.bd-trk{display:flex;align-items:flex-start;justify-content:center;min-width:max-content}
.bd-nd{flex:none;width:calc(112px * var(--bs));display:flex;flex-direction:column;align-items:center;text-align:center;cursor:pointer;
  border:0;background:none;font-family:inherit;color:var(--ink);border-radius:calc(8px * var(--bs));padding:2px 0}
.bd-nd:hover{background:var(--paper)}
.bd-nd .dot{width:calc(22px * var(--bs));height:calc(22px * var(--bs));border-radius:50%;display:grid;place-items:center;font-size:calc(11px * var(--bs));font-weight:600;
  background:var(--surface);border:2px solid var(--rule);color:var(--ink-faint)}
.bd-nd.done .dot{background:var(--ok);border-color:var(--ok);color:#fff}
.bd-nd.now .dot{background:var(--ink);border-color:var(--ink);color:var(--on-ink);box-shadow:0 0 0 5px rgba(var(--shade-rgb),.06)}
.bd-nd.off .dot{background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:0 0 0 5px var(--accent-soft)}
.bd-nd.due .dot{border-style:dashed;border-color:var(--star);color:var(--warn-ink)}
.bd-nd .l{font-size:calc(13px * var(--bs));font-weight:500;margin-top:calc(4px * var(--bs));max-width:calc(108px * var(--bs));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bd-nd .m{font-size:calc(12px * var(--bs));color:var(--ink-faint);max-width:calc(108px * var(--bs));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bd-nd .s{font-size:calc(13px * var(--bs));color:var(--ink-faint);white-space:nowrap}
.bd-nd.done .s{color:var(--good-deep)}.bd-nd.now .s{color:var(--ink)}.bd-nd.off .s{color:var(--accent)}.bd-nd.due .s{color:var(--warn-ink)}
.bd-ln{flex:none;width:calc(40px * var(--bs));height:2px;background:var(--rule);margin-top:calc(10px * var(--bs) + 2px)}
.bd-ln.done{background:var(--ok)}

/* factories on the map: the open man's jobs, the factory an off-site man should be at, the job being given out */
.bd-fac{width:calc(24px * var(--bs));height:calc(24px * var(--bs));border-radius:50%;display:grid;place-items:center;font-size:calc(12px * var(--bs));font-weight:600;
  background:var(--surface);color:var(--ink);border:2px solid var(--ink);box-shadow:0 1px 4px rgba(var(--shade-rgb),.25);position:relative;font-family:'Inter',sans-serif}
.bd-fac.done{background:var(--ok);border-color:var(--ok);color:#fff}
.bd-fac.now{background:var(--ink);color:var(--on-ink)}
.bd-fac.miss{border-color:var(--accent);color:var(--accent)}
.bd-fac.job{border-radius:calc(5px * var(--bs));background:var(--c);border-color:var(--c);color:#fff}
.bd-fac.job::after{content:'';position:absolute;inset:-2px;border-radius:calc(7px * var(--bs));border:2px solid var(--c);animation:bdping 2.2s cubic-bezier(.12,.62,.36,1) infinite}
.bd-fac .lb{position:absolute;left:calc(32px * var(--bs));top:50%;transform:translateY(-50%);white-space:nowrap;font-size:calc(13px * var(--bs));font-weight:500;color:var(--ink);pointer-events:none;
  text-shadow:0 0 3px var(--surface),0 0 3px var(--surface),0 0 3px var(--surface),0 0 3px var(--surface)}
.bd-km{font-size:calc(12px * var(--bs));font-weight:600;padding:1px calc(7px * var(--bs));border-radius:999px;background:var(--surface);color:var(--ink);
  box-shadow:0 0 0 1px var(--rule),0 2px 6px rgba(var(--shade-rgb),.15);white-space:nowrap;font-family:'Inter',sans-serif}
.bd-km.r{color:var(--accent)}

/* the news line: what just happened, top middle, then it fades */
.bd-news{position:absolute;z-index:6;top:calc(14px * var(--bs));left:50%;transform:translate(-50%,calc(-8px * var(--bs)));display:flex;align-items:center;gap:calc(10px * var(--bs));
  background:var(--surface);border-radius:calc(8px * var(--bs));padding:calc(8px * var(--bs)) calc(16px * var(--bs)) calc(8px * var(--bs)) calc(10px * var(--bs));
  box-shadow:0 calc(10px * var(--bs)) calc(34px * var(--bs)) rgba(var(--shade-rgb),.13),0 0 0 1px var(--rule);white-space:nowrap;opacity:0;
  transition:opacity .35s,transform .35s;pointer-events:none;font-size:calc(15px * var(--bs));max-width:calc(100% - 820px * var(--bs))}
.bd-news.on{opacity:1;transform:translate(-50%,0)}
.bd-news:empty{display:none}
.bd-news .edge{width:3px;align-self:stretch;border-radius:2px;background:var(--c);flex-shrink:0}
.bd-news b{font-weight:600}
.bd-news .wh{color:var(--ink-soft);overflow:hidden;text-overflow:ellipsis}
.bd-news .t{color:var(--ink-faint);font-variant-numeric:tabular-nums}
/* how far through today's jobs, a thin line under the strip */
.bd-top{position:relative}
.bd-dayline{position:absolute;left:0;right:0;bottom:-1px;height:calc(3px * var(--bs));z-index:3;pointer-events:none}
.bd-dayline i{display:block;height:100%;width:0;background:var(--ok);transition:width .6s var(--ease-out)}
@media (prefers-reduced-motion:reduce){.bd-fac.job::after{animation:none}.bd-news,.bd-dayline i{transition:none}}

/* ── the Deliveries Dashboard's own bits (js/ddash.js) — everything else is the parts above ── */
#view-ddash{padding:0!important;height:100%;overflow:hidden}
.bd-map>#ddMap{position:absolute;inset:0}
#ddMap .maplibregl-ctrl-bottom-right{bottom:4px}
body.board-mode #view-ddash{height:100vh}
.dd-ld{display:flex;align-items:center;gap:10px;padding:calc(7px * var(--bs)) 0;border-bottom:1px solid var(--rule-soft);font-size:calc(15px * var(--bs))}
.dd-ld:last-of-type{border-bottom:0}
.dd-ld .q{font-variant-numeric:tabular-nums;min-width:calc(26px * var(--bs));color:var(--ink-soft)}
.dd-ld .m{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dd-ld .to{font-size:calc(13px * var(--bs));color:var(--ink-faint);white-space:nowrap;display:flex;align-items:center;gap:5px;max-width:55%;overflow:hidden;text-overflow:ellipsis}
.dd-mini{width:18px;height:18px;border-radius:50%;display:inline-grid;place-items:center;font-size:11px;font-weight:600;border:1.5px solid var(--ink-soft);color:var(--ink-soft);flex:none}
.dd-mini.done{background:var(--ok);border-color:var(--ok);color:#fff}
.dd-mini.home{border-radius:4px}
.bd-fac.dd-home{border-radius:calc(6px * var(--bs));background:var(--charcoal);border-color:var(--charcoal);color:#fff}
.bd-nd.home .dot{border-radius:calc(7px * var(--bs))}
.bd-nd.late .dot{border-color:var(--accent);color:var(--accent)}
.bd-nd.late .s{color:var(--accent)}
.bd-ln.go{background:repeating-linear-gradient(90deg,var(--ink) 0 6px,transparent 6px 10px)}
/* "on the way" — his blue (6 Oct 2026), the one state the Maintenance Dashboard does not have */
:root{--dd-way:#2a5b94}
:root[data-theme="dark"]{--dd-way:#6ea5e0}

/* a phone, or a window under 900: the map goes, as before; the floating parts become plain sections */
@media (max-width:900px){
  .bd-body{overflow-y:auto;display:flex;flex-direction:column}
  .bd-body>*{flex-shrink:0}
  .bd-rail,.bd-fcard,.bd-ftrack{position:static;width:auto;max-height:none;margin:0;box-shadow:none;border-radius:0;border-bottom:1px solid var(--rule)}
  .bd-fcard{order:1}.bd-ftrack{order:2}.bd-rail{order:3}
  .bd-news,.bd-dayline{display:none}
}
