
  :root{
    /* ⚠ the ground was #f4f4f2 and is now lighter. The job rows are WHITE cards
       on it, so the gap between card and ground is what makes them read as
       cards at all — 255 minus the ground's brightness. #f9f9f9 leaves 6.0,
       which still holds. Under about 4 the rows stop being cards and become
       text on a sheet with only their hairline left. */
    /* ⚠ #fbfbfa, WHICH IS WHAT THE APP HAS ACTUALLY BEEN RUNNING ON. This said
       #f9f9f9 and had not been true for weeks: the Projects screen carries a ground
       PICKER from the design pilot (setGround), and it writes --paper onto the page
       itself, for the whole app, defaulting to #fbfbfa. Anything matched against the
       number written here was matched against a colour nothing was using — which is
       why a sticky heading kept showing as a band whatever I set it to.
       ⚠ THE PICKER SHOULD GO. He chose off-white on 2026-08-28; a control that
       repaints the whole app from inside one screen is a pilot leftover, and it is
       the same family as the pretend bits already found in there. */
    --paper:#fbfbfa; --surface:#ffffff; --ink:#272725; --ink-soft:#62615c; --ink-faint:#9b9a94;
    /* ⚠ THE GROUND BEHIND THE PANELS — the only colour the eye sees around them, and
       NEUTRAL: he has said once already that he hates a warm grey ground. Nothing is
       ever laid directly on this, so it does not break the app's own rule that the
       content is the lightest surface and there are two grounds, not three. */
    --ground:#eceded; --gutter:5px;
    /* ⚠ THE CORNER SCALE. A thing is never rounder than what contains it: the panel
       on the ground is the roundest, and each step inward is tighter. Three steps,
       because a scale nobody can hold in their head is not a scale.
       999px is not part of it — that is for the few places where the shape itself is
       the meaning, a count or a status. */
    --r-panel:10px; --r-card:8px; --r-control:6px;
    --panel-r:var(--r-panel);   /* kept: the shell was written against this name */
    /* ── THE BAND behind both top rows ──────────────────────────────────────
       Every value the bar uses is a token, so the band's colour is ONE block to
       change rather than thirty rgba()s scattered through topbar.css.
       ⚠ --band-faint is the SMALL tab counts. On a dark band the app's own
       --ink-faint would have been fine; on white it measures 2.8 against the
       ground, well under the 4.5 small text needs, so it is darkened here. That
       is the one value that quietly breaks when the band flips. */
    --band:#ffffff; --band-txt:#272725; --band-dim:#62615c; --band-faint:#75746e;
    --band-line:#e4e3df; --band-line-soft:#eeeeea;
    /* ⚠ THE SAME VALUE AS --field, ON PURPOSE. The bar's search box and every
       search box inside the app are the same control and were two different
       greys — "why is the search bar color is different by itself". */
    --band-fill:#f2f2f3; --band-fill-h:#eaeaec;
    --rule:#e4e3df; --rule-soft:#eeeeea; --field:#f2f2f3; --field-h:#eaeaec; --accent:#d81f26; --accent-soft:#fbe9e9; --star:#c0891e;
    /* ⚠ GOOD AND WARN LIVE HERE NOW, not on one screen’s wrapper. They used to be
       declared only on the maintenance overview, and FIVE places in this stylesheet
       carry a note saying “literal colour, because --warn is not defined out here”.
       The sparepart card did not get that memo: it asks for a 3px warn-coloured left
       edge, the colour does not resolve, and an unresolvable var() throws away the
       WHOLE declaration — so the card simply had no left border. “this one the left
       border got cut”. It was never drawn. Declared once, at the top, it cannot
       happen again. */
    --good:#1d7a4e; --good-bg:#e6f1ea; --warn:#a9740c; --warn-bg:#f7efd8;

    /* ══ THE NAMES THE SWEEP NEEDED ═══════════════════════════════════════════
       Every colour that was typed into a stylesheet by hand now asks for one of
       these instead. The values are EXACTLY what those places were already using,
       so naming them changed nothing anybody can see — which is the point: the
       names had to go in before the dark values could, and a redo that also moved
       the light is a redo nobody can check.

       ⚠ A NAME SAYS THE JOB. --rule-strong is the edge of a control you can press;
       --rule is a hairline between two rows. They are close numbers and different
       decisions, and in dark mode they part company. */


    /* ── THE SHADOWS, THE VEILS AND THE LIFTS ────────────────────────────────
       A quarter of all the colours in this app were these, and nobody thinks of
       them as colours. They are ONE colour at a dozen strengths, so the colour is
       named here and the strength stays where it is used — a shadow at 5% and the
       wash behind a pop-up at 42% are the same decision at two volumes.
       --shade is under something. --veil is over everything. --lift is a glow on
       top of something already dark. */
    --sheet-rgb   :255,255,255;


    /* ══ THE NAMES THE SWEEP NEEDED ═══════════════════════════════════════════
       Every colour that was typed into a stylesheet by hand now asks for one of
       these instead. The values are EXACTLY what those places were already using,
       so naming them changed nothing anybody can see — which is the point: the
       names had to go in before the dark values could, and a redo that also moved
       the light is a redo nobody can check.

       ⚠ A NAME SAYS THE JOB. --rule-strong is the edge of a control you can press;
       --rule is a hairline between two rows. They are close numbers and different
       decisions, and in dark mode they part company. */
    /* the ink that sits ON the theme colour — black or white, whichever can be read
       ⚠ never a sweep target: it is chosen per theme colour and per mode by measuring, in emit-accents.js. */
    --on-accent   :#ffffff;

    /* ── THE SHADOWS, THE VEILS AND THE LIFTS ────────────────────────────────
       A quarter of all the colours in this app were these, and nobody thinks of
       them as colours. They are ONE colour at a dozen strengths, so the colour is
       named here and the strength stays where it is used — a shadow at 5% and the
       wash behind a pop-up at 42% are the same decision at two volumes.
       --shade is under something. --veil is over everything. --lift is a glow on
       top of something already dark. */



    /* ══ THE NAMES THE SWEEP NEEDED ═══════════════════════════════════════════
       Every colour that was typed into a stylesheet by hand now asks for one of
       these instead. The values are EXACTLY what those places were already using,
       so naming them changed nothing anybody can see — which is the point: the
       names had to go in before the dark values could, and a redo that also moved
       the light is a redo nobody can check.

       ⚠ A NAME SAYS THE JOB. --rule-strong is the edge of a control you can press;
       --rule is a hairline between two rows. They are close numbers and different
       decisions, and in dark mode they part company. */
    /* the light ink ON a dark or red fill — never a background
       ⚠ the same white as the sheet today, and a different colour in dark mode. That is the whole reason it is its own name. */
    --on-dark          :#ffffff;
    /* ── WHAT GOES ON AN --ink FILL ────────────────────────────────────────
       ⚠ ONE TOKEN WAS DOING TWO JOBS, and it only showed at night. `--on-dark` is
       worn by two different things:
         · text on the RAIL, which is the darkest thing in the app in BOTH modes —
           so it stays near-white in both, and that is correct;
         · text on a fill of `--ink` — the black pills, the chosen tab, the primary
           button. **`--ink` FLIPS**: near-black by day, #e8e7e3 at night. Its text
           has to flip with it, and `--on-dark` does not.
       In light mode both jobs want white, so nothing ever looked wrong. In dark mode
       the second lot became near-white on near-white: he photographed the job status
       bar with "Open" and "In progress" invisible, and a "Scheduled" button you could
       only read by selecting the text.
       So the job gets its own name, which is the rule the sweep was built on. 41 sites
       moved onto it — every one whose background really is `--ink`. */
    --on-ink           :#ffffff;
    /* text that is barely there — the grey words inside an empty box */
    --ink-ghost        :#cfcdc4;
    /* the edge of a control you can press */
    --rule-strong      :#cfcec8;
    /* a field that cannot be typed in */
    --field-off        :#e9e8e4;
    /* ── THE ATTENDANCE GRID'S FIVE TINTS ──────────────────────────────────
       That screen took every vertical gridline out — a thousand boxed cells is a
       spreadsheet, not this app — so the only things holding a month of columns
       together are these: the row under the pointer, the column under the pointer,
       where the two cross, and a day struck out of the period.
       ⚠ THEY LIVE HERE, with the other sixty, and NOT in hr.css. A screen that
       declares its own colours is a screen dark mode cannot see, which is exactly
       what the sweep of 16 Sep was for.
       ⚠ THEY ARE TINTS, NOT FILLS. Anything approaching --field turns the crosshair
       into a painted cross and the grid starts looking boxed again. */
    --hr-row           :#fafaf9;   /* the row, or the column, under the pointer */
    --hr-rowhi         :#f4f4f2;   /* its frozen name cell, and its date heading */
    --hr-cross         :#f2f2f0;   /* where the row and the column meet */
    --hr-off           :#f5f5f3;   /* a day struck out — a soft column, top to bottom */
    --hr-offhi         :#f1f1ef;   /* …with the pointer on its row */
    /* the grey a badge sits on when its status has no colour — Closed, Waiting
       ⚠ thirty-eight chips on Deliveries. It leans warm just enough for the rule to call it a pale gold, and the whole screen went gold. It is a grey. */
    --neutral-bg       :#eceae2;
    /* the same green where it has to be read on its own wash */
    --good-deep        :#1d6b47;
    /* the edge of a green card */
    --good-line        :#bfe0cd;
    /* amber words on the palest amber — the text of a warn callout */
    --warn-ink         :#7a5405;
    /* amber words on a pale amber wash, where the ordinary amber is too faint */
    --warn-deep        :#5c3f04;
    /* the palest amber — behind a whole callout, where a badge's wash would be too heavy
       ⚠ four warn callouts use this, every one of them with a --warn-line edge and amber words. It is the same decision as --warn-bg at a lower volume, not a different colour. */
    --warn-bg-soft     :#fffaf0;
    /* the edge of an amber card */
    --warn-line        :#eee0c0;
    /* the edge of a button on an amber banner — a control, not a card */
    --warn-line-strong :#d9c28c;
    /* the red pressed, or held down */
    --accent-deep      :#b91820;
    /* red words on a pale red wash */
    --accent-ink       :#701f1e;
    /* the edge of a red card */
    --accent-line      :#efc4c4;
    /* ── THE BUTTON FAMILY AND THE POP-UP (restyle, 21 Oct 2026) ─────────────
       Values copied from the approved page, design-gallery tries/buttons. Used only by
       family.css (and pj-family.css), behind the field fence. */
    --bt-main-h:#b91820; --bt-main-p:#a3141b;
    --bt-ok:#e3f2ea; --bt-ok-h:#d4ebdf; --bt-ok-p:#c4e3d2; --bt-ok-ink:#155c3a;
    --bt-neu:#ececea; --bt-neu-h:#e2e2df; --bt-neu-p:#d8d8d4;
    --bt-edge:#7c7b76; --bt-line-h:rgba(39,39,37,.06); --bt-line-p:rgba(39,39,37,.11);
    --bt-del-ink:#b3191f; --bt-del-wash:#fbe9e9; --bt-del-wash-p:#f6dadb;
    --bt-wine:#8c1419; --bt-wine-h:#761014; --bt-wine-p:#640d11; --bt-on-wine:#ffffff;
    --bt-off-bg:#efefed; --bt-off-ink:#8e8d87;
    --bt-veil:rgba(20,18,16,.42);
    --bt-pop-shadow:0 24px 60px -16px rgba(0,0,0,.32),0 3px 10px rgba(0,0,0,.08);
    /* the deeper half of the wash on an upload that failed */
    --accent-line-deep :#cf9294;
    /* the red brightened so it can be read on black — Delete on a photograph
       ⚠ the app already had this and did not know it. A red that reads on black is what dark mode needs everywhere, and it was typed out once, in the photo viewer, by somebody solving this in one place. */
    --accent-on-dark   :#ff9296;
    /* the strongest warning short of red — overdue, over contract */
    --alert            :#993c1d;
    /* the pale orange it sits on */
    --alert-bg         :#fdf3e7;
    /* the edge of an orange card */
    --alert-line       :#f0d5bb;
    /* the edge of a control on an orange step, not a card */
    --alert-line-strong:#e2a877;
    /* waiting on somebody else */
    --info             :#2a5b94;
    /* the pale blue it sits on */
    --info-bg          :#e6eef7;
    /* the edge of a blue card */
    --info-line        :#d5dfec;
    /* the blue as a dot in a legend, lighter than the blue words */
    --info-mid         :#5b7fa6;
    /* blue words on a pale blue wash — the Manager tag */
    --info-ink         :#3a4a6b;
    /* closed by hand, not by the system */
    --manual           :#5b4a9a;
    /* the pale purple it sits on */
    --manual-bg        :#f0eef9;
    /* the edge of a purple card */
    --manual-line      :#e8e4f4;
    /* purple words on a pale purple wash — the Shipment tag */
    --manual-ink       :#4c4a72;
    /* a thing that has not started — the grey block on the maintenance strip */
    --mute             :#c3c2b8;
    /* the black behind a photograph or a video
       ⚠ the one colour that is the same in both modes. A photo is lit by its own black, not by the app. */
    --stage            :#000000;
    /* a small dark thing floating over the page — a tooltip
       ⚠ a near-black like the rail, and it must NOT become the rail. In dark mode the rail stays the darkest thing in the app and a tooltip has to lift off the ground to be seen at all. Same colour today, opposite directions tomorrow. */
    --tooltip          :#2b2926;
    /* gold words on a gold wash — the Owner tag */
    --star-ink         :#77601f;
    /* the pale gold they sit on */
    --star-bg          :#efe6d4;
    /* the palest gold — the strip beside a question waiting on the partner feed */
    --star-bg-soft     :#fbf6e6;
    /* the circle that stands for you when you have no picture */
    --me               :#8a5cc0;

    /* ── THE SHADOWS, THE VEILS AND THE LIFTS ────────────────────────────────
       A quarter of all the colours in this app were these, and nobody thinks of
       them as colours. They are ONE colour at a dozen strengths, so the colour is
       named here and the strength stays where it is used — a shadow at 5% and the
       wash behind a pop-up at 42% are the same decision at two volumes.
       --shade is under something. --veil is over everything. --lift is a glow on
       top of something already dark. */
    --shade-rgb        :20,18,16;
    --veil-rgb         :20,18,16;
    --lift-rgb         :255,255,255;
    --panel-rgb        :24,23,20;

    /* the app rail — ClickUp's left edge is near-black. One dark tone, two lifts. */
  --rail:#1b1a18; --rail-ink:#93918a; --rail-hi:rgba(255,255,255,.10);
  --charcoal:#3d3d3b; --ok:#1d9e62;
    /* ── THE NUMERAL FACE ──────────────────────────────────────────────────
       Counts, dates, times, serials, figures. It is Inter with tabular figures —
       NOT a serif and NOT a typewriter face. Both have been tried and he rejected
       both: a name and a date set in a different family read like a server log,
       not like an office. Tabular figures are the only thing those faces were
       buying, and Inter has them. ⚠ It is a VARIABLE so there is no second
       numeral style to drift back in one class at a time. */
    --num:'Inter',sans-serif;
    /* motion: one strong ease-out for things arriving, one iOS-drawer curve for panels sliding.
       Both settle long and gently at the end — that's what reads as "smooth" instead of snappy. */
    --ease-out:cubic-bezier(.23,1,.32,1);
    /* MOTION NUMBERS, one place (shared-parts cleanup 18 Nov 2026), each today's value: the motion batch changes them here.
       pop-in/out = the old pop-up (.ov > .modal) rising and going; knob = seg-knob.js switches; seg = ListKit's .cg-seg knob;
       tab-ind = the Imports tab line. The kit's own .tb-piece (crm-kit.css, generated) is not here. */
    --mo-pop-in:.24s cubic-bezier(.16,1,.3,1);
    --mo-pop-out:.14s ease-out;
    --mo-knob:.25s cubic-bezier(.32,.72,0,1);
    --mo-seg:.3s cubic-bezier(.16,1,.3,1);
    --mo-tab-ind:.22s cubic-bezier(.23,1,.32,1);
    --ease-drawer:cubic-bezier(.32,.72,0,1);
  }
  /* crm-pick.js wraps a select outside the laptop screens in .kt so the kit's PickOne styles reach it: the wrapper takes no room */
  .crm-pk{display:contents}
  *{box-sizing:border-box;margin:0;padding:0}
  html,body{-webkit-font-smoothing:antialiased;height:100%}
  body{font-family:'Inter',sans-serif;background:var(--ground);color:var(--ink);font-size:15px}
  .ui{font-family:'Inter',sans-serif}
  .mono{font-family:var(--num);font-variant-numeric:tabular-nums}
  .eyebrow{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-faint);font-weight:500}
  .accent{color:var(--accent)} .hidden{display:none!important}
  /* a page title is the only thing set at 27; a section name is content weight — the
     ladder gives it 15/600, which is the same size as the body and heavier, not bigger */
  /* the browser draws <b> at 700 and only 400/500/600 are loaded, so it was being
     faked by the renderer — bold inside a sentence uses a weight we actually have */
  b,strong{font-weight:600}
  h1{font-weight:500;letter-spacing:-.012em}
  h2,h3,h4{font-weight:600;letter-spacing:-.012em}
  button{cursor:pointer;font-family:inherit}
  ::-webkit-scrollbar{width:9px;height:9px}::-webkit-scrollbar-thumb{background:var(--rule-strong);border-radius:8px;border:2px solid var(--paper);background-clip:padding-box}

  .app{display:flex;height:100vh;overflow:hidden}
  /* sidebar */
  .sb{width:282px;flex-shrink:0;border-right:1px solid var(--rule);display:flex;flex-direction:column;background:var(--surface)}
  .sb-scroll{flex:1;overflow-y:auto;padding:18px 16px}
  .brandbox{background:transparent;padding:4px 2px;display:flex;align-items:center;justify-content:flex-start;min-height:46px}
  .brandbox img{max-width:100%;max-height:44px;object-fit:contain;display:block}
  .wordmark{font-family:'Inter',sans-serif;font-weight:600;font-size:15px;letter-spacing:-.02em;color:var(--charcoal)}
  /* kept only for anything still on the old field; the search component is .m3s */
  .srch{width:100%;border:1px solid var(--rule);background:var(--paper);border-radius:5px;padding:8px 11px;font-size:13px;color:var(--ink);font-family:'Inter',sans-serif}
  .srch::placeholder{color:var(--ink-faint)} .srch:focus{outline:none;border-color:var(--accent)}
  .nav{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-soft);padding:8px 6px;cursor:pointer;display:flex;align-items:center;gap:11px;border-radius:6px}
  .nav:hover{background:var(--paper)} .nav.active{color:var(--ink);font-weight:600;background:var(--accent-soft)}
  .nav .mk{width:6px;height:6px;border-radius:50%;background:transparent;flex-shrink:0}
  .nav.active .mk{background:var(--accent)}
  .custrow{display:flex;align-items:center;gap:10px;padding:8px 4px;border-bottom:1px solid var(--rule-soft);cursor:pointer}
  .custrow:hover{background:var(--paper)}
  .avatar{border-radius:5px;display:flex;align-items:center;justify-content:center;font-family:'Inter',sans-serif;font-weight:500;color:var(--on-dark);flex-shrink:0}
  .star{color:var(--star);background:none;border:none;font-size:13px;line-height:1;padding:2px}
  .star.off{color:var(--ink-faint);opacity:.4}
  .sb-foot{border-top:1px solid var(--rule);padding:12px 16px}
  .sb-panel{display:flex;flex-direction:column;flex:1;min-height:0}
  .nav-ic{width:22px;height:22px;flex-shrink:0;display:flex;align-items:center;justify-content:center}
  .nav-ic svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.7;fill:none}
  .nav.active .nav-ic{color:var(--accent)}
  .nav .navcnt{margin-left:auto;font-family:var(--num);font-variant-numeric:tabular-nums;font-size:13px;color:var(--ink-faint)}
  @media (min-width:761px){
    /* ⚠ THE BARS ARE OUTSIDE .app NOW, so the page is a column: bars, then the
       row of sidebar + main. Nothing else in the app needs to know. */
    body{display:flex;flex-direction:column;height:100vh;overflow:hidden}
    /* ⚠ THE GUTTER. The panels are inset from the window on every side and from each
       other, so the ground shows all the way round and they read as laid ON it rather
       than butted against the edge of the screen. */
    /* ⚠ positioned, so the rail can hang off THIS row rather than off the window.
       ⚠ `body >` IS NOT DECORATION. Projects carries a whole shell of its own inside
       it — its own .app and its own main — because it came from a practice page that
       was a whole page. Written plainly, these rules landed on those too and the
       screen drew a panel inside a panel. The outer shell is the one hanging off the
       page itself; nothing else is. */
    body > .app{height:auto;flex:1;min-height:0;position:relative;padding:0 var(--gutter) var(--gutter);gap:var(--gutter)}
    /* the work area is a panel of its own: rounded, pinned, and the scrolling happens
       INSIDE it — so the panel never moves and the ground behind it never moves.
       ⚠ the outer one only — see above. */
    /* ⚠ PROJECTS BRINGS ITS OWN SHELL and it is sized to the WINDOW — .app is 100vh.
       Inside a panel that starts 89px down, 100vh runs 94px past the bottom of it, so
       the screen overflowed its own panel and scrolled twice. The inner shell fills
       the panel it is in and lets the panel do the scrolling.
       ⚠ In app.css and not in the Projects stylesheet on purpose: that file is
       GENERATED from the pilot, and the pilot has no panel around it. */
    body > .app > main #view-projects .app,
    body > .app > main #view-projects main{height:auto;min-height:0;overflow:visible}
    body > .app > main #view-projects .ptree{max-height:none}

    body > .app > main{background:var(--paper);border-radius:var(--panel-r);overflow:auto;
      box-shadow:0 1px 2px rgba(var(--shade-rgb),.05)}
    .sb{width:56px;overflow:visible;border-right:none;background:transparent}
    /* the shadow fades WITH the width — it used to pop in instantly, which is half of why the expand felt abrupt */
    /* ⚠ THE PANEL IS PINNED TO THE SCREEN, not to anything above it — it has no
       positioned ancestor. So it has to be TOLD the bars are there, or it starts
       at 0 and the first nav row is buried under them ("Home" reads as "ome").
       85 = the two rows, 44 + 41. `.tb-solo` is set by renderTopbar on the
       screens with no module row, where only the 44px row exists. */
    /* ═══ THE RAIL ══════════════════════════════════════════════════════════
       ClickUp's left edge: a dark strip of apps, permanently narrow. His call,
       carried over from the design pilot.
       ⚠ THE 56→282px HOVER DRAWER IS GONE. It slid the whole navigation open
       whenever a cursor crossed the left edge, and with a panel of its own now
       living beside it on Projects, two sliding widths on one screen edge is
       one too many. A rail icon says its name in a chip to its right instead.
       ⚠ .sb-scroll MUST stay overflow:visible or that chip is clipped — which
       is why the tiles are 38px and the footer is four: the rail has to FIT, it
       can no longer scroll. Adding a nav item means checking it still does at
       700px.
       ⚠ The logo already left for the top bar; the brand row and the rail
       search stay hidden, below. */
    /* ⚠ A PANEL, NOT AN EDGE. It used to run from the top of the page to the bottom
       of the window and touch the left edge; it is inset by the gutter on all three
       sides now and rounded, so the ground runs behind and around it. */
    body > .app .sb-panel{position:absolute;left:var(--gutter);top:0;bottom:var(--gutter);width:56px;
      background:var(--rail);border-radius:var(--panel-r);
      overflow:visible;z-index:200;display:flex;flex-direction:column}
    /* ⚠ body.tb-solo USED TO MOVE IT to 44px on the screens with one bar row. There is
       nothing to move now: it starts where its own row starts, however many rows are
       above it. Kept as a class the bar still sets; it simply has no work to do here. */
    .sb-scroll{flex:1;min-height:0;overflow:visible;padding:10px 0 6px;
      display:flex;flex-direction:column;align-items:center}
    .sb-foot{border-top:1px solid rgba(var(--lift-rgb),.08);padding:7px 0 9px;
      display:flex;flex-direction:column;align-items:center}
    /* nothing wordy survives on a 56px rail */
    .sb .wordmark,.sb .srch,.sb #search,.sb #searchResults,.sb #starredSection,
    .sb #railBrandRow,.sb .m3s.lg,.sb .collapse-btn,.sb .railhide,
    .sb .nav .navcnt,.sb .badge,.sb #authWho{display:none!important}
    .nav{position:relative;width:38px;height:38px;flex-shrink:0;margin:1px 0;padding:0;
      /* ⚠ ON THE CORNER SCALE. 11 on a 38px tile inside a panel rounded to 10 made the
         BUTTON rounder than the thing holding it, which is the one rule the scale has.
         The footer tiles below were put right when the scale was written; these — the
         app tiles, the ones you actually look at — were missed. */
      border-radius:var(--r-control);display:flex;align-items:center;justify-content:center;gap:0;
      cursor:pointer;color:var(--rail-ink);font-family:'Inter',sans-serif;
      transition:background .12s var(--ease-out),color .12s var(--ease-out)}
    .nav:hover{background:var(--rail-hi);color:var(--on-dark)}
    .nav.active{background:var(--accent);color:var(--on-accent)}
    .nav.active .nav-ic{color:var(--on-dark)}
    /* the name, in a chip to the right — the rail's only label */
    .sb .nav-lbl,.sb .foot-txt{position:absolute;left:46px;top:50%;z-index:400;
      transform:translate(-4px,-50%);background:var(--tooltip);color:var(--on-dark);font-family:'Inter',sans-serif;
      font-size:13px;font-weight:500;letter-spacing:0;text-transform:none;white-space:nowrap;
      padding:5px 9px;border-radius:7px;opacity:0;pointer-events:none;margin:0;
      box-shadow:0 8px 20px -10px rgba(var(--shade-rgb),.6);transition:opacity .12s,transform .12s var(--ease-out)}
    .sb .nav:hover .nav-lbl,.sb .foot-link:hover .foot-txt,.sb .btn-primary:hover .foot-txt
      {opacity:1;transform:translate(0,-50%)}
    /* the footer, one tile a button */
    /* ⚠ TIGHTER THAN THE PANEL THEY SIT IN — see the corner scale. At 11 they were
       nearly as round as the rail itself and it stopped reading as the outer thing. */
    .sb-foot .foot-link{position:relative;width:38px;height:38px;margin:1px 0;padding:0;
      border-radius:var(--r-control);display:flex;align-items:center;justify-content:center;gap:0;
      color:var(--rail-ink);background:none;border:0;cursor:pointer}
    .sb-foot .foot-link:hover{background:var(--rail-hi);color:var(--on-dark)}
    /* the panel switch, lit while the panel is open — it already carries .on */
    .sb-foot .foot-link.on{background:var(--accent);color:var(--on-accent)}
    .sb-foot .foot-link.on:hover{background:var(--accent-deep)}
    .sb-foot .foot-link svg{width:19px;height:19px}
    .sb-foot .btn-primary{position:relative;width:38px;height:38px;min-width:0;padding:0;
      margin:3px 0 5px;border-radius:var(--r-control);justify-content:center;background:var(--accent)}
    .sb-foot .btn-primary svg{width:16px;height:16px}
    /* a count cannot fit on a 38px tile, and a hidden count is a job nobody
       knows about — so it becomes a dot, and disappears when it is zero. */
    .sb-foot .badge{position:absolute;top:6px;right:6px;min-width:7px;height:7px;padding:0;
      border-radius:4px;background:var(--accent);font-size:0;color:transparent;overflow:hidden;
      display:block!important;margin:0}
    .sb-foot .badge.none{display:none!important}
  }
  .foot-link{display:flex;align-items:center;gap:9px;font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-soft);padding:6px 4px;cursor:pointer;border-radius:5px;width:100%;border:none;background:none;text-align:left}
  .foot-link:hover{background:var(--paper);color:var(--ink)}
  .badge{font-family:var(--num);font-variant-numeric:tabular-nums;background:var(--accent);color:var(--on-accent);font-size:13px;padding:1px 6px;border-radius:3px;margin-left:auto}
  .btn-primary{width:100%;background:var(--accent);color:var(--on-accent);border:none;border-radius:6px;padding:9px;font-size:15px;font-weight:600;font-family:'Inter',sans-serif;display:flex;align-items:center;justify-content:center;gap:7px}
  .btn-primary:hover{background:var(--accent-deep)}
  .btn-line{font-family:'Inter',sans-serif;font-size:13px;font-weight:500;border:1px solid var(--rule);background:var(--surface);color:var(--ink-soft);border-radius:6px;padding:7px 13px}
  .btn-line:hover{border-color:var(--rule-strong);color:var(--ink)}

  main{flex:1;overflow-y:auto;scrollbar-gutter:stable}   /* reserve the scrollbar gutter so switching tabs (short↔tall content) doesn't shift the layout */
  .wrap{padding:30px 40px;max-width:1080px}
  /* Deliveries uses the whole screen (his "the screen is so wide why cramp it up", 13 Oct): maps, the week and the tables all gain from the room */
  #view-shipment.wrap{max-width:none}
  .masthead{display:flex;align-items:baseline;justify-content:space-between;border-bottom:1px solid var(--rule);padding-bottom:14px;margin-bottom:22px}
  .masthead .btn-line{flex-shrink:0;white-space:nowrap}
  .figure{font-family:var(--num);font-variant-numeric:tabular-nums;font-weight:400;font-size:33px;line-height:1;letter-spacing:-.01em}
  .stat-band{display:flex;border-top:1.5px solid var(--ink);border-bottom:1px solid var(--rule)}
  .stat{flex:1;padding:16px 4px 16px 0}
  .stat + .stat{padding-left:24px;border-left:1px solid var(--rule)}
  .panel{border:1px solid var(--rule);background:var(--surface);border-radius:5px}
  .seglink{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-faint);cursor:pointer;padding-bottom:2px;border-bottom:1.5px solid transparent;background:none;border-top:none;border-left:none;border-right:none}
  .seglink.on{color:var(--ink);border-bottom-color:var(--accent)}
  .dtab{font-family:'Inter',sans-serif;font-size:13px;cursor:pointer;padding:6px 13px;border-radius:8px;border:1px solid var(--rule);background:var(--surface);color:var(--ink);white-space:nowrap;transition:border-color .12s,background .12s}
  .dtab:hover{border-color:var(--ink-faint)}
  .dtab.on{background:var(--ink);color:var(--on-ink);border-color:var(--ink)}
  .dtab.hot{color:var(--accent);border-color:var(--accent-line)}
  .dtab.hot:hover{border-color:var(--accent)}
  .dtab.hot.on{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}
  /* ── maintenance restyle (Overview language: ruled rows, square swatches, mono data; no candy/boxes/emoji) ── */
  .mmach{border:1px solid var(--rule);border-left:3px solid var(--ink-faint);border-radius:9px;padding:11px 14px 8px;margin-bottom:10px;background:var(--surface)}
  .mmhead{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap;padding-bottom:3px}
  .mmname{font-family:'Inter',sans-serif;font-size:15px;font-weight:600;cursor:pointer}
  /* fold one machine (1 Oct) — the arrow turns, the jobs go */
  .mmfold{align-self:center;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;margin:0 -3px 0 -5px;
    padding:0;border:0;border-radius:6px;background:none;color:var(--ink-faint);cursor:pointer}
  .mmfold svg{width:18px;height:18px;transition:transform .2s ease}
  .mmfold:hover{color:var(--ink);background:var(--band-fill)}
  .mmach.shut .mmfold svg{transform:rotate(-90deg)}
  .mmach.shut .mmbody{display:none}
  /* a customer in the Maintenance list. Closed it is ONE quiet row: an arrow, the name, the count on the right and a
     thin line, so 180 of them read as a list. Open it keeps the heavy rule that says "this customer starts here". */
  .mcust{margin-bottom:0}
  .mcust[open]{margin-bottom:22px}
  .mcust-sum{cursor:pointer;list-style:none;display:flex;align-items:center;gap:8px;padding:11px 8px 11px 4px;border-bottom:1px solid var(--rule);border-radius:6px 6px 0 0;font-family:'Inter',sans-serif;font-size:15px;font-weight:600}
  .mcust-sum::-webkit-details-marker{display:none}
  .mcust-sum:hover{background:var(--band-fill)}
  .mcust-sum:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}
  .mcust[open] > .mcust-sum{border-bottom:2px solid var(--ink);border-radius:0;padding-bottom:9px;margin-bottom:12px}
  .mcust[open] > .mcust-sum:hover{background:none}
  .mcust-chev{display:inline-flex;color:var(--ink-faint)}
  .mcust-chev svg{width:18px;height:18px;transform:rotate(-90deg);transition:transform .2s ease}
  .mcust[open] > .mcust-sum .mcust-chev svg{transform:none}
  .mcust-n{margin-left:auto;font-size:13px;font-weight:400;color:var(--ink-faint);white-space:nowrap}
  @media (prefers-reduced-motion:reduce){.mcust-chev svg{transition:none}}
  @media (max-width:760px){.mcust-sum{padding-top:14px;padding-bottom:14px}}
  /* collapse all / expand all in the list header, and one button on each category */
  .mtfoldall{display:inline-flex;gap:6px;flex-shrink:0}
  .mtfoldall .btn-line{height:34px;min-height:0;padding:0 14px;font-size:13px}
  /* three classes, because m3.css (loaded after this file) makes .m3-text red and a red button here would read as "late" */
  .btn-line.m3-text.mcatfold{margin-left:auto;height:28px;min-height:0;padding:0 10px!important;font-size:13px;color:var(--ink-soft)!important}
  .btn-line.m3-text.mcatfold:hover{background:var(--band-fill)!important;color:var(--ink)!important}
  @media (max-width:760px){.mtfoldall .btn-line{height:40px}.btn-line.m3-text.mcatfold{height:40px}}
  @media (prefers-reduced-motion:reduce){.mmfold svg{transition:none}}
  @media (max-width:760px){.mmfold{width:36px;height:36px;margin:-6px -8px -6px -10px}}   /* a thumb wide on the phone */
  .mmedit{font-family:'Inter',sans-serif;font-size:13px;font-weight:600;color:var(--ink-faint);text-decoration:underline;cursor:pointer;background:none;border:none;padding:0}
  .mmedit:hover{color:var(--ink)}
  .mmserial{font-family:var(--num);font-variant-numeric:tabular-nums;font-size:13px;color:var(--ink-faint)}
  /* THE COVER STICKER — his pick "coloured", 8 Oct 2026 (_prototype-cover-sticker.html, A): the customer page's
     cover colours, so a contract or warranty machine is seen at a glance on the Maintenance list and the boards.
     Other covers (FOC, Testing, Sewa) get the same shape in grey. */
  .covtag{display:inline-flex;align-items:center;font-family:'Inter',sans-serif;font-size:13px;font-weight:500;line-height:1;padding:5px 9px;border-radius:6px;border:1px solid var(--rule);color:var(--ink-soft);white-space:nowrap}
  .covtag.contract{background:var(--good-bg);border-color:var(--good-line);color:var(--good-deep)}
  .covtag.warranty{background:var(--info-bg);border-color:var(--info-line);color:var(--info-ink)}
  .covtag.oncall{background:var(--alert-bg);border-color:var(--warn-line);color:var(--warn-ink)}
  .covtag.sm{padding:3px 7px;border-radius:4px}
  .mmlog{margin-left:auto;font-family:'Inter',sans-serif;font-size:13px;font-weight:600;border:1px solid var(--ink);background:var(--surface);color:var(--ink);border-radius:6px;padding:5px 13px;cursor:pointer;white-space:nowrap}
  .mmlog:hover{background:var(--ink);color:var(--on-ink)}
  .mcaps{font-family:'Inter',sans-serif;font-size:13px;font-weight:600;color:var(--ink-faint);white-space:nowrap}
  .msw{width:8px;height:8px;flex-shrink:0;display:inline-block}
  .msw.new{background:var(--mute)}.msw.prog{background:var(--accent)}.msw.done{background:var(--good)}.msw.over{background:var(--accent)}.msw.warn{background:var(--warn)}
  .mst{display:inline-flex;align-items:center;gap:6px;font-family:'Inter',sans-serif;font-size:13px;font-weight:600;color:var(--ink-soft);white-space:nowrap}
  button.mst{border:none;background:none;cursor:pointer;padding:0}button.mst:hover{color:var(--ink)}
  .mst > .tg{display:none}   /* the kit ring beside the square: shown only in the phone machine card (phone-app.css) */
  .mtrow{padding:9px 4px 9px 2px;border-top:1px solid var(--rule-soft);cursor:pointer}
  .mtrow.needs{border-left:3px solid var(--warn);background:var(--warn-bg);border-radius:0 6px 6px 0;padding-left:11px}
  .mt1{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
  .mtprob{font-family:'Inter',sans-serif;font-size:15px;font-weight:600;flex:1;min-width:120px;line-height:1.3}
  .mt-flag{margin-top:5px}
  .mtflag{display:inline-flex;align-items:center;gap:6px;font-family:'Inter',sans-serif;font-size:13px;font-weight:600;color:var(--warn)}
  .mtflag.ok{color:var(--good)}
  .mt2{font-family:var(--num);font-variant-numeric:tabular-nums;font-size:13px;color:var(--ink-faint);margin-top:5px;line-height:1.5;overflow-wrap:anywhere}
  .mrlink{font-family:'Inter',sans-serif;font-size:13px;font-weight:600;color:var(--accent);text-decoration:none;cursor:pointer}
  .mtstatus{margin-top:7px}
  .mbar{display:inline-flex;border:1px solid var(--rule);border-radius:5px;overflow:hidden;vertical-align:middle}
  .mbseg{font-family:'Inter',sans-serif;font-size:13px;font-weight:600;padding:3px 11px;border:none;border-left:1px solid var(--rule);background:var(--surface);color:var(--ink-faint);cursor:pointer;white-space:nowrap}
  .mbseg:first-child{border-left:none}
  .mbseg.done{background:var(--ink);color:var(--on-ink);border-left-color:rgba(var(--lift-rgb),.22)}
  .mbseg.cur{background:var(--accent);color:var(--on-accent);border-left-color:rgba(var(--lift-rgb),.22)}
  .mslab{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-faint);font-weight:600;display:flex;align-items:baseline;gap:9px;margin:20px 0 2px;border-bottom:1px solid var(--ink);padding-bottom:7px}
  .mslab .c{font-family:'Inter',sans-serif;font-size:15px;color:var(--ink);font-weight:500}
  .mslab .act{margin-left:auto;font-family:'Inter',sans-serif;font-size:13px;letter-spacing:0;text-transform:none;color:var(--ink-soft);font-weight:600;cursor:pointer}
  .mslab .act:hover{color:var(--accent)}
  /* A DECLARED label column. `min-width:40px` never bound — .eyebrow renders "Branch" at ~51px
     with its 10.5px uppercase and .16em tracking, so the control was placed by the word anyway
     and renaming it (e.g. to "Cabang") would silently move it. A real width can't be out-voted
     by a string. Same idea as .nt-plabel in the note view. */
  .lbl-col{width:56px;flex-shrink:0}
  .msort{display:inline-flex;align-items:center;gap:8px}
  .msort .l{font-family:'Inter',sans-serif;font-size:13px;font-weight:600;color:var(--ink-faint)}
  .mseg{display:inline-flex;border:1px solid var(--rule);border-radius:6px;overflow:hidden}
  .mseg button{font-family:'Inter',sans-serif;font-size:13px;font-weight:600;color:var(--ink-soft);padding:6px 11px;cursor:pointer;border:none;border-left:1px solid var(--rule);background:var(--surface)}
  .mseg button:first-child{border-left:none}.mseg button.on{background:var(--ink);color:var(--on-ink)}
  /* ── the strip above the Maintenance list: underlined tabs, then a header row ── */
  .mtabs{gap:26px;border-bottom:1px solid var(--rule);margin-top:2px}
  .mtabs .seglink{font-size:15px;font-weight:500;color:var(--ink-soft);padding:2px 0 10px;border-bottom:2px solid transparent;margin-bottom:-1px}
  .mtabs .seglink:hover{color:var(--ink)}
  .mtabs .seglink.on{color:var(--ink);border-bottom-color:var(--accent)}
  .mtabs .seglink span{color:var(--ink-faint);font-weight:400}
  .mhead{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:6px 0 10px;margin-bottom:6px}
  .mhead-t{font-family:'Inter',sans-serif;font-size:19px;font-weight:600;color:var(--ink);white-space:nowrap;margin-right:auto}
  .mhead-t .n{font-size:15px;font-weight:400;color:var(--ink-soft);margin-left:6px}
  .mhead .m3s{height:36px}   /* the top bar's search height, like every page search (24 Sep 2026) */
  #maintCatBar .mfilt{margin-bottom:2px}
  .mfilt{font-family:'Inter',sans-serif;font-size:15px;color:var(--ink);background:var(--surface);border:1px solid var(--rule);border-radius:10px;height:44px;padding:0 38px 0 14px;cursor:pointer;appearance:none;-webkit-appearance:none;
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23777' stroke-width='1.6' stroke-linecap='round'/></svg>");background-repeat:no-repeat;background-position:right 14px center}
  .mfilt .dot{width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:9px;vertical-align:middle;position:relative;top:-1px}
  .mfw{position:relative;display:inline-block}
  .mfmenu{position:absolute;left:0;top:calc(100% + 6px);z-index:960;min-width:100%;background:var(--surface);border:1px solid var(--rule);border-radius:10px;box-shadow:0 8px 24px rgba(20,18,16,.12);padding:6px;display:flex;flex-direction:column;gap:1px}
  .mfmenu.hidden{display:none}
  .mfi{font-family:'Inter',sans-serif;font-size:15px;color:var(--ink);background:none;border:none;border-radius:7px;padding:8px 12px;text-align:left;cursor:pointer;white-space:nowrap;display:flex;align-items:center}
  .mfi:hover{background:var(--wash,var(--paper))}
  .mfi.on{font-weight:600}
  .mfi .dot{width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:9px}
  .board-cars{font-size:13px;color:var(--ink-soft);width:100%;margin-top:4px}
  .board-cars .w{color:var(--accent);font-weight:500} .board-cars .q{color:var(--ink-faint)}
  .mfilt:hover{border-color:var(--ink-faint)}
  .mfilt:focus{outline:none;border-color:var(--ink)}
  @media(max-width:760px){.mhead-t{width:100%;margin-right:0}.mhead .m3s{max-width:none}.mtabs{gap:18px}}
  .mcatchip{font-family:'Inter',sans-serif;font-size:13px;font-weight:600;color:var(--ink-soft);padding:5px 11px;border:1px solid var(--rule);border-radius:6px;background:var(--surface);cursor:pointer;display:inline-flex;align-items:center;gap:7px}
  .mcatchip.on{background:var(--ink);color:var(--on-ink);border-color:var(--ink)}
  .mcatchip .msw{width:8px;height:8px}
  /* ── IXItask: machines delivered but not yet on the list ──────────────────────
     Lives in the GLOBAL sheet, never inside the view's markup — the notification panel
     broke exactly that way once and rendered as raw text for everyone but the owner. */
  .ixline{display:flex;align-items:center;gap:13px;width:100%;text-align:left;background:none;cursor:pointer;
          border:0;border-top:1.5px solid var(--ink);border-bottom:1px solid var(--rule);padding:13px 2px;margin-bottom:16px}
  .ixline .n{font-family:'Inter',sans-serif;font-size:27px;font-weight:500;line-height:1;color:var(--accent);min-width:32px}
  .ixline .t{font-family:'Inter',sans-serif;font-size:13px;font-weight:600;line-height:1.35;display:block}
  .ixline .s{font-family:var(--num);font-variant-numeric:tabular-nums;font-size:13px;color:var(--ink-faint);margin-top:3px;display:block}
  .ixline .go{margin-left:auto;font-family:'Inter',sans-serif;font-size:13px;font-weight:600;color:var(--ink-soft);white-space:nowrap}
  .ixline:hover .go{color:var(--accent)}
  .ixline.quiet .n{color:var(--ink-faint)}
  /* the search's "Seen before" — one quiet line until pressed, so the customer → machine → job
     view stays what a search shows first (js/maintenance-jobs.js, seenBefore) */
  .seen-line{display:flex;align-items:baseline;gap:12px;width:100%;text-align:left;background:none;cursor:pointer;
    border:0;border-bottom:1px solid var(--rule);padding:4px 2px 11px;margin-bottom:16px;
    font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-soft)}
  .seen-line .go{margin-left:auto;font-weight:600;white-space:nowrap}
  .seen-line:hover .go{color:var(--accent)}
  .seen-open{margin-bottom:26px;padding-bottom:12px;border-bottom:1px solid var(--rule)}
  .seen-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:4px 0 10px}
  .seen-open .seen-all{margin-top:14px}
  /* each past job: the technicians' notes, then its photos and videos (1 Oct) */
  .seen-job{margin:-2px 0 10px}
  .seen-note{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink);margin:2px 2px 0;overflow-wrap:anywhere}
  .seen-strip{display:flex;flex-wrap:wrap;gap:6px;margin:8px 2px 0}
  .seen-strip .seen-th{width:72px;height:72px;flex:none;border-radius:6px}
  .seen-vid,.seen-more{position:relative;padding:0;border:0;overflow:hidden;cursor:pointer;background:var(--rule);color:var(--ink);
    font-family:'Inter',sans-serif;font-size:15px;font-weight:600}
  .seen-vid video{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}
  .seen-play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#fff}
  .seen-play svg{width:24px;height:24px;filter:drop-shadow(0 1px 2px rgba(0,0,0,.5))}
  .seen-vid:focus-visible,.seen-more:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
  .ixrow{display:flex;align-items:center;gap:14px;padding:11px 2px;border-top:1px solid var(--rule-soft)}
  .ixrow:first-of-type{border-top:none}
  .ixmain{flex:1;min-width:0}
  .ixt{font-family:'Inter',sans-serif;font-size:15px;font-weight:600;overflow-wrap:anywhere}
  .ixsub{font-family:var(--num);font-variant-numeric:tabular-nums;font-size:13px;color:var(--ink-faint);margin-top:3px;line-height:1.5;overflow-wrap:anywhere}
  .ixact{display:flex;gap:8px;flex-shrink:0}
  .ixbtn{font-family:'Inter',sans-serif;font-size:13px;font-weight:600;border-radius:6px;padding:6px 12px;white-space:nowrap;cursor:pointer}
  .ixbtn.go{border:1px solid var(--ink);background:var(--ink);color:var(--on-ink)}
  .ixbtn.go:hover{background:var(--stage)}
  .ixbtn.off{border:1px solid var(--rule);background:var(--surface);color:var(--ink-faint)}
  .ixbtn.off:hover{border-color:var(--rule-strong);color:var(--ink-soft)}
  .ixask{border-left:3px solid var(--star);background:var(--star-bg-soft);border-radius:0 6px 6px 0;padding-left:11px}
  .ixaskq{font-family:'Inter',sans-serif;font-size:13px;color:var(--star-ink);font-weight:600;margin-top:5px;line-height:1.45}
  .ixn{font-family:'Inter',sans-serif;font-size:15px;font-weight:500;color:var(--accent)}
  .ixfoot{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:none;cursor:pointer;
          border:0;border-top:1px solid var(--rule);margin-top:26px;padding:14px 2px;
          font-family:'Inter',sans-serif;font-size:13px;font-weight:600;color:var(--ink-faint)}
  .ixfoot:hover{color:var(--ink)}
  .ixfoot .c{font-family:var(--num);font-variant-numeric:tabular-nums;font-size:13px;font-weight:400;border:1px solid var(--rule);border-radius:4px;padding:1px 7px}
  .ixfoot .go{margin-left:auto;font-weight:600}
  .ixfoot:hover .go{color:var(--accent)}
  .ixrow.gone .ixt,.ixrow.gone .ixsub{color:var(--ink-faint)}
  .ixsrc{font-family:var(--num);font-variant-numeric:tabular-nums;font-size:13px;color:var(--ink-faint)}
  .ixmine input[readonly]{background:var(--paper);color:var(--ink-soft);border-style:dashed}
  .ixmine .yours>.field{color:var(--accent)}   /* the three fields that are hers to answer — .field, not <label> */
  .mlrow{display:flex;align-items:center;gap:12px;padding:12px 2px;border-top:1px solid var(--rule-soft)}
  .mlrow:first-of-type{border-top:none}
  .mlmain{flex:1;min-width:0}
  .mlt{font-family:'Inter',sans-serif;font-size:15px;font-weight:600;overflow-wrap:anywhere}
  .mlsub{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-soft);margin-top:2px;line-height:1.45;overflow-wrap:anywhere}
  .mlsub .mo{font-family:var(--num);font-variant-numeric:tabular-nums;color:var(--ink-faint)}
  .mlright{display:flex;align-items:center;gap:12px;flex-shrink:0}
  /* Reports grouped by customer: a serif customer name over an ink rule, the house header for a
     customer, with its visits listed underneath. The whole bar is the toggle — not just the caret,
     which is a 12px target nobody hits on a phone. */
  .rgrp{display:flex;align-items:baseline;gap:10px;width:100%;text-align:left;background:none;border:0;border-bottom:1px solid var(--ink);
        padding:16px 2px 10px;margin-top:12px;min-height:44px;cursor:pointer;font-family:'Inter',sans-serif;font-size:15px;font-weight:500;color:var(--ink)}
  .rgrp:hover{color:var(--accent)}
  .rgrp .k{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-faint);flex-shrink:0;width:11px}
  .rgrp .n{font-family:'Inter',sans-serif;font-size:13px;font-weight:600;color:var(--ink-faint)}
  .rgrp .d{margin-left:auto;font-family:var(--num);font-variant-numeric:tabular-nums;font-size:13px;font-weight:400;color:var(--ink-faint);flex-shrink:0}
  .rgbody{padding-left:21px}
  /* The customer card. Paper on white, never a second white box — box-in-box is the thing we don't do. */
  .ccard{border:1px solid var(--rule);background:var(--paper);border-radius:10px;padding:14px 16px;margin:12px 0 4px}
  .ccard .cnm{font-family:'Inter',sans-serif;font-size:15px;font-weight:500;line-height:1.2;display:flex;align-items:baseline;gap:8px}
  .ccard .csub{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-soft);margin-top:4px;line-height:1.5}
  .ccard .crule{height:1px;background:var(--rule);margin:12px 0}
  .cgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 16px}
  .cf .k{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-faint);font-weight:600}
  .cf .v{font-family:'Inter',sans-serif;font-size:15px;font-weight:500;line-height:1.15;margin-top:1px}
  .cf .v small{font-family:'Inter',sans-serif;font-size:13px;font-weight:500;color:var(--ink-soft)}
  .cf .v.mono{font-family:var(--num);font-variant-numeric:tabular-nums;font-size:13px;font-weight:500}
  .cf .v.warn{color:var(--accent)}
  .ccov{display:flex;flex-wrap:wrap;gap:6px;margin-top:3px}
  .csw{display:inline-flex;align-items:center;gap:5px;font-family:var(--num);font-variant-numeric:tabular-nums;font-size:13px;color:var(--ink-soft)}
  .csw i{width:9px;height:9px;display:inline-block;border-radius:2px}
  .csw i.ct{background:var(--ok)}.csw i.wr{background:var(--star)}.csw i.oc{background:var(--info-mid)}.csw i.no{background:var(--rule-strong)}
  /* What the customer must never see, marked on the screen so nobody has to remember the rule. */
  .conly{margin-top:10px;padding:8px 10px;border-left:3px solid var(--accent);background:var(--surface);
    font-family:'Inter',sans-serif;font-size:13px;line-height:1.5}
  .conly .k{font-size:13px;color:var(--accent);font-weight:600;display:block;margin-bottom:2px}
  /* The share block is a LABELLED section with its own status line, then its own buttons — six equal
     buttons wrapping across two rows read as a pile with no order to them. */
  .cshare{margin-top:12px;padding-top:12px;border-top:1px solid var(--rule)}
  .cshare .lbl{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-faint);font-weight:600}
  .cshare .st{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-soft);margin:3px 0 9px;line-height:1.5}
  .cshare .st b{font-family:var(--num);font-variant-numeric:tabular-nums;font-weight:500;color:var(--ink)}
  .crow{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
  .cbtn{font-family:'Inter',sans-serif;font-size:13px;font-weight:600;padding:7px 12px;min-height:36px;
    border:1px solid var(--rule);background:var(--surface);border-radius:6px;color:var(--ink);cursor:pointer}
  .cbtn:hover{border-color:var(--ink);color:var(--accent)}
  .cbtn.pri{border-color:var(--ink)}
  .cbtn:disabled{opacity:.5;cursor:default}
  /* destructive, so it is a quiet link at the far end — never a peer of the buttons beside it */
  .cstop{margin-left:auto;font-family:'Inter',sans-serif;font-size:13px;font-weight:600;color:var(--ink-soft);
    background:none;border:0;cursor:pointer;padding:7px 2px}
  .cstop:hover{color:var(--accent)}
  .clinks{display:flex;gap:16px;flex-wrap:wrap;margin-top:12px;padding-top:10px;border-top:1px solid var(--rule)}
  @media(max-width:760px){
    .rgbody{padding-left:0}.rgrp .d{display:none}
    .cgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
    /* On a phone the buttons wrap, and "Stop sharing" ended up 8px from "Give it 3 more days" at 28px
       tall — a mis-tap on the one action that kills a live link. It gets its own full-width line,
       ruled off from the buttons above it, at a real touch height. */
    .cstop{margin-left:0;flex:0 0 100%;min-height:44px;text-align:left;padding:12px 2px 4px;margin-top:4px;border-top:1px solid var(--rule)}
  }
  .mtools{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:0 0 8px}
  /* ⚠ NO CARD. His call, 2026-09-14: “since right now the main menu it self is
     already a pill, maybe the maintenance pills can be deleted, and just the data
     itself on it”. The work area is a rounded panel of its own since the shell was
     rebuilt, so a white bordered card inside it is a panel inside a panel — two
     edges saying the same thing. The phone has drawn these with no card for a long
     time already; this is the laptop catching up.
     ⚠ The ELEMENTS stay. Four other blocks in this stylesheet read --warn, --good
     and --ink-ghost, which are declared on the overview wrap and nowhere else. */
  #maintContractsWrap,#maintInstallsWrap,#maintReportsWrap,#maintAssignViewWrap{padding:2px 0 0}
  /* PANELS GO FLUSH on a phone — they BLEED to the screen edges and pay the gutter themselves.
     Two wrong ways to read this, both of which I shipped once:
       · keep border+15px padding inside the gutter -> children inset to 32 (a 2nd left edge);
       · zero the padding but leave the box in the gutter -> children land on 16 but TOUCH the
         panel's own border, with hairlines top/bottom and nothing at the sides.
     Correct: -16px margins push the box out to 0..375, its own 16px padding puts children back
     on the spine at 16..359, and the surface reads as one full-bleed section. */
  /* ⚠ NOTHING LEFT TO BLEED, same as the overview above. These used to drag their
     card out to the screen edges and pay the 16px gutter themselves; with no card the
     negative margins pull the CONTENT outside the gutter instead. */
  @media(max-width:760px){#maintContractsWrap,#maintInstallsWrap,#maintReportsWrap,#maintAssignViewWrap{
    margin-left:0;margin-right:0;padding:2px 0 0;border:none;border-radius:0}}
  .boardlane{display:grid;grid-template-columns:172px 1fr;border:1px solid var(--rule);border-radius:8px;overflow:hidden;margin-bottom:10px;background:var(--surface)}
  .boardlane .bl-name{padding:12px 14px;border-right:1px solid var(--rule);background:var(--paper)}
  .boardlane .bl-jobs{padding:10px 12px;display:flex;flex-wrap:wrap;gap:8px;align-items:center;min-height:56px}
  @media(max-width:760px){.boardlane{grid-template-columns:1fr}.boardlane .bl-name{border-right:none;border-bottom:1px solid var(--rule)}}
  /* ── maintenance Overview dashboard ── */
  /* the four colours it used to declare are at the top of this file now */
  #maintOverviewWrap{padding:2px 0 0}
  @media(max-width:760px){#maintOverviewWrap{padding:2px 0 0}.ov-frow{flex-wrap:wrap;row-gap:7px}.ov-frow .ov-fmain{flex:1 1 55%;min-width:0}.ov-frow .ov-who{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ov-frow .ov-vd,.ov-frow .ov-map{margin-left:0}.ov-frow .ov-kind,.ov-frow .ov-when{width:auto}}
  .ov-sig{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:10px}
  .ov-stat{padding:16px 18px 17px;cursor:pointer;border:1px solid var(--rule);border-radius:12px;background:var(--surface);transition:border-color .12s,background .12s}
  .ov-stat:hover{border-color:var(--ink-faint)}
  .ov-stat.act{border-color:var(--alert-line)} .ov-stat.wrn{border-color:var(--warn-line)}
  .ov-lab{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-soft);font-weight:400;display:flex;align-items:center;gap:7px}
  .ov-lab .mk{width:7px;height:7px;border-radius:50%}
  .ov-fig{font-family:var(--num);font-weight:600;font-size:28px;line-height:1;margin:10px 0 5px;font-variant-numeric:tabular-nums;letter-spacing:-.01em}
  .ov-sub{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-faint)}
  .ov-stat.act .ov-fig,.ov-stat.act .ov-lab{color:var(--accent)} .ov-stat.act .mk{background:var(--accent)}
  .ov-stat.wrn .ov-fig,.ov-stat.wrn .ov-lab{color:var(--warn)} .ov-stat.wrn .mk{background:var(--warn)}
  .ov-slab{font-family:'Inter',sans-serif;font-size:15px;color:var(--ink);font-weight:600;display:flex;align-items:center;gap:9px;margin:30px 0 0;padding-bottom:8px;border-bottom:1px solid var(--rule)}
  .ov-slab .more{margin-left:auto;font-size:13px;letter-spacing:0;text-transform:none;color:var(--ink-soft);font-weight:500;cursor:pointer}
  .ov-slab .more:hover{color:var(--accent)}
  .ov-fsum{font-family:var(--num);font-variant-numeric:tabular-nums;font-size:13px;margin:10px 0 0;display:flex;gap:16px;flex-wrap:wrap}
  .ov-fsum b{font-weight:600} .ov-fsum .g{color:var(--good)} .ov-fsum .a{color:var(--warn)} .ov-fsum .n{color:var(--ink-faint)}
  .ov-field{margin-top:6px}
  .ov-frow{display:flex;align-items:center;gap:14px;padding:10px 2px;border-bottom:1px solid var(--rule-soft);cursor:pointer;transition:background .12s}
  .ov-frow:hover{background:var(--wash,var(--paper))}
  .ov-av{width:32px;height:32px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-family:'Inter',sans-serif;font-weight:600;color:var(--on-dark);font-size:12px}
  .ov-fmain{flex:1;min-width:0}
  .ov-who{font-family:'Inter',sans-serif;font-weight:500;font-size:15px;color:var(--ink)}
  .ov-where{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-soft);margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .ov-kind{font-family:'Inter',sans-serif;font-size:13px;font-weight:400;color:var(--ink-faint);width:88px;text-align:right}
  .ov-when{font-family:var(--num);font-variant-numeric:tabular-nums;font-size:13px;color:var(--ink-faint);white-space:nowrap;width:42px;text-align:right}
  .ov-vd{font-family:var(--num);font-variant-numeric:tabular-nums;font-size:13px;font-weight:500;white-space:nowrap;display:inline-flex;align-items:center;gap:6px;min-width:120px;justify-content:flex-end}
  .ov-vd.on{color:var(--good)}
  .ov-vd.off{color:var(--warn)}
  .ov-vd.none{color:var(--ink-faint);font-weight:400}
  .ov-map{font-family:'Inter',sans-serif;font-size:13px;font-weight:500;color:var(--ink-faint);white-space:nowrap;text-decoration:none}
  .ov-frow:hover .ov-map{color:var(--accent)}
  .ov-sumrow{display:flex;align-items:center;gap:13px;padding:11px 4px 11px 15px;cursor:pointer}
  .ov-sumrow:hover{background:var(--wash,var(--paper))}
  .ov-cluster{display:flex}
  .ov-cluster .ov-av{width:26px;height:26px;font-size:10px;margin-left:-7px;border:2px solid var(--surface)}
  .ov-cluster .ov-av:first-child{margin-left:0}
  .ov-sumtxt{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-soft)}
  .ov-sumtxt b{color:var(--good);font-weight:600}
  .ov-va{margin-left:auto;font-family:'Inter',sans-serif;font-size:13px;font-weight:600;color:var(--ink-faint)}
  .ov-sumrow:hover .ov-va{color:var(--accent)}
  .ov-cols{display:grid;grid-template-columns:1.6fr 1fr;gap:32px;align-items:start;margin-top:8px}
  .ov-lane{display:flex;align-items:center;gap:13px;padding:10px 2px;border-bottom:1px solid var(--rule-soft)}
  .ov-lane:hover{background:var(--wash,var(--paper))}
  .ov-lt{width:100px;flex-shrink:0;display:flex;align-items:center;gap:9px}
  .ov-lt .ov-who{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .ov-av-sm{width:24px;height:24px;font-size:10px;border-radius:50%}
  .ov-jobs{display:flex;gap:8px 12px;flex-wrap:wrap;flex:1}
  .ov-job{font-family:'Inter',sans-serif;font-size:13px;font-weight:400;color:var(--ink-soft);display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
  .ov-job .sw{width:7px;height:7px;flex-shrink:0}
  .ov-job.idle{color:var(--ink-faint)}
  .sw-prog{background:var(--accent)} .sw-done{background:var(--good)} .sw-wait{background:var(--warn)} .sw-new{background:var(--mute)}
  .ov-lmore{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-faint);padding:10px 2px 0;cursor:pointer}
  .ov-lmore:hover{color:var(--accent)}
  .ov-needs{margin-top:0}
  .ov-nrow{display:flex;align-items:center;gap:14px;padding:12px 2px;border-bottom:1px solid var(--rule-soft);cursor:pointer;transition:background .12s}
  .ov-nrow:hover{background:var(--wash,var(--paper))}
  .ov-spine{width:2px;align-self:stretch;background:transparent;margin:-12px 0}
  .ov-nrow.hi .ov-spine{background:var(--accent)}
  .ov-nn{font-family:var(--num);font-weight:500;font-size:15px;line-height:1;width:36px;font-variant-numeric:tabular-nums;text-align:right}
  .ov-nrow.hi .ov-nn{color:var(--accent)}
  .ov-nt{flex:1}
  .ov-nt .t{font-family:'Inter',sans-serif;font-size:15px;font-weight:400;color:var(--ink)}
  .ov-nt .s{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-soft);margin-top:1px}
  /* ⚠ --mute IS A DIVIDER GREY, NOT A TEXT ONE. At night it is #4a4640, which on the
     panel measures 1.8:1 — the arrow was simply not there. A glyph you are meant to
     see wants the faintest INK, which is a colour with a text job. */
  .ov-arw{font-family:'Inter',sans-serif;font-size:15px;color:var(--ink-faint)}
  .ov-nrow:hover .ov-arw{color:var(--accent)}
  .ov-empty{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-faint);padding:14px 2px}
  @media(max-width:900px){.ov-sig{grid-template-columns:1fr 1fr;gap:10px}.ov-cols{grid-template-columns:1fr;gap:24px}}
  /* ⚠ On a phone the band folds to 2x2 and the two remaining hairlines stack at the
     same x, so they read as one line drawn down the middle of the block rather than
     as a divider between columns — it divides in one direction only. The band keeps
     its own top and bottom rules, which are what hold the four figures together. */
  @media(max-width:760px){.ov-stat{padding:12px 14px 13px}}
  .jrow:hover{background:var(--paper)}
  .bar-bg{fill:var(--rule-soft)} .bar{fill:var(--charcoal)} .bar-top{fill:var(--accent)}
  .trend{stroke:var(--accent);fill:none;stroke-width:2} .trend-area{fill:var(--accent);opacity:.07}
  .dirrow{display:flex;align-items:center;gap:14px;padding:11px 0;border-bottom:1px solid var(--rule-soft);cursor:pointer}
  /* the score/churn chips were two loose flex children; wrapping them gives mobile a single
     grid area to place. :empty matters — an empty wrapper would still eat the row's 14px gaps. */
  .dr-chips{display:flex;align-items:center;gap:14px}
  .dr-chips:empty{display:none}
  .dirrow:hover{background:var(--paper)} .rank{font-family:'Inter',sans-serif;font-size:15px;color:var(--ink-faint);width:16px;text-align:center}
  .sec-head{display:flex;align-items:baseline;justify-content:space-between;border-bottom:1.5px solid var(--ink);padding-bottom:8px;margin-bottom:4px}

  /* tabs */
  .tabbar{display:flex;gap:22px;border-bottom:1px solid var(--rule);margin-bottom:20px}
  .tab{font-family:'Inter',sans-serif;font-size:13px;font-weight:500;color:var(--ink-faint);padding-bottom:10px;border-bottom:2px solid transparent;background:none;border-top:none;border-left:none;border-right:none;display:flex;align-items:center;gap:6px}
  .tab:hover{color:var(--ink)} .tab.on{color:var(--ink);border-bottom-color:var(--accent)}
  .tab .cnt{font-family:var(--num);font-variant-numeric:tabular-nums;font-size:13px;color:var(--ink-faint)}
  .tabpane{display:none} .tabpane.on{display:block}

  /* lists / tables */
  .mrow{display:flex;align-items:center;gap:14px;padding:10px 2px;border-bottom:1px solid var(--rule-soft)}
  .mono-chip{font-family:var(--num);font-variant-numeric:tabular-nums;font-size:13px;color:var(--ink-soft)}
  .info-bar{display:flex;gap:0;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);margin-bottom:20px}
  .info-cell{padding:12px 20px 12px 0}
  .info-cell + .info-cell{padding-left:20px;border-left:1px solid var(--rule)}
  .so-card{border:1px solid var(--rule);border-radius:5px;overflow:hidden;margin-bottom:8px}
  .so-head{display:flex;align-items:center;gap:12px;padding:11px 14px;cursor:pointer}
  .so-head:hover{background:var(--paper)} .so-items{display:none} .so-items.open{display:block}
  .status{font-family:'Inter',sans-serif;font-size:13px;padding:1px 7px;border-radius:3px;text-transform:capitalize}
  .st-closed{background:var(--neutral-bg);color:var(--ink-soft)}.st-queue{background:var(--warn-bg);color:var(--warn)}.st-proceeded{background:var(--good-bg);color:var(--good)}.st-waiting{background:var(--info-bg);color:var(--info)}.st-void{background:var(--ground);color:var(--ink-faint)}.st-mclosed{background:var(--manual-bg);color:var(--manual)}

  /* modal */
  .ov{position:fixed;inset:0;background:rgba(var(--veil-rgb),.4);backdrop-filter:blur(3px);z-index:1000;display:flex;align-items:center;justify-content:center;padding:20px}
  /* ⚠ THE QUESTION BOX SITS ABOVE EVERY OTHER POP-UP, and above the picture viewers too.
     Every .ov shared z-index 1000, so the winner was whichever came LAST in the document —
     and a pop-up built at the moment it opens is always appended after the question box,
     which lives in the file. The address-fix dialog hit exactly that: pressing "Move the
     address here" opened the question behind it, so nothing appeared until the dialog was
     shut. It is a question about the pop-up you are looking at; it belongs on top of it. */
  #m-ask{z-index:2100}
  .modal{background:var(--surface);border:1px solid var(--rule);border-radius:8px;width:100%;max-width:560px;max-height:90vh;overflow-y:auto;box-shadow:0 24px 60px rgba(var(--shade-rgb),.22)}
  .modal-lg{max-width:760px}
  .field{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-soft);font-weight:600;margin-bottom:5px;display:block}
  .inp{width:100%;border:1px solid var(--rule);border-radius:5px;padding:8px 11px;font-size:15px;font-family:'Inter',sans-serif;color:var(--ink);background:var(--paper)}
  .inp:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}

  /* ── MESSAGES ────────────────────────────────────────────────────────────────
     One place for everything the app used to say in a grey browser box. Bottom-left,
     out of the way of the sidebar rail and of the primary button that sits bottom-right
     in every modal. z-index is ABOVE everything else on purpose: a save that fails inside a
     pop-up must still be readable, and the old grey box was readable there too. It has to
     clear the question box (2100) as well, or a failure reported while a question is open
     would be under the dark veil. */
  .toastwrap{position:fixed;left:22px;bottom:22px;z-index:2200;display:flex;flex-direction:column;gap:9px;max-width:352px;pointer-events:none}
  .toast{font-family:'Inter',sans-serif;font-size:13px;background:var(--ink);color:var(--on-ink);border-radius:9px;padding:12px 14px;
    display:flex;align-items:flex-start;gap:10px;box-shadow:0 14px 34px rgba(var(--shade-rgb),.26);pointer-events:auto;
    animation:toastIn .26s var(--ease-out)}
  .toast.bad{background:var(--accent)}
  .toast .ic{flex-shrink:0;line-height:1.35}
  .toast .tx{flex:1;line-height:1.4;overflow-wrap:anywhere} .toast .tx b{font-weight:600}
  .toast .undo{background:none;border:none;color:var(--on-ink);font-family:'Inter',sans-serif;font-size:13px;font-weight:600;
    text-decoration:underline;text-underline-offset:2px;padding:2px 0;flex-shrink:0;cursor:pointer}
  .toast.out{animation:toastOut .2s ease forwards}
  @keyframes toastIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
  @keyframes toastOut{to{opacity:0;transform:translateY(6px)}}
  @media(max-width:760px){.toastwrap{left:12px;right:12px;bottom:12px;max-width:none}}
  @media (prefers-reduced-motion:reduce){.toast{animation:none}.toast.out{animation:none;opacity:0}}
  /* ── A NEW VERSION IS OUT (update-check.js) — a toast that stays until pressed ──
     Slides up like a toast; the arrow turns once as it lands, then again every 8 s so an
     idle screen still catches the eye; pressed, it keeps turning until the page goes. */
  /* bottom centre on the laptop; under a passing toast (2200), over everything else */
  .upd-card{position:fixed;left:50%;bottom:22px;z-index:2100;width:max-content;max-width:calc(100vw - 32px);
    translate:-50% 0;
    font-family:'Inter',sans-serif;background:var(--ink);color:var(--on-ink);border-radius:10px;
    padding:12px 12px 12px 14px;display:flex;align-items:center;gap:12px;
    box-shadow:0 14px 34px rgba(var(--shade-rgb),.26);
    animation:updIn .5s var(--ease-out) both}
  @media(max-width:760px){.upd-card{left:12px;right:12px;bottom:12px;width:auto;max-width:none;translate:none}}
  .upd-ic{width:34px;height:34px;border-radius:50%;flex-shrink:0;display:grid;place-items:center;
    background:color-mix(in srgb,currentColor 12%,transparent)}
  .upd-ic svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
    animation:updTurn .9s var(--ease-out) .35s both, updNudge 8s var(--ease-out) 3s infinite}
  .upd-card.going .upd-ic svg{animation:updSpin .8s linear infinite}
  .upd-tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;line-height:1.3}
  .upd-tx b{font-size:15px;font-weight:600;letter-spacing:-.01em}
  .upd-tx span{font-size:13px;opacity:.62}
  .upd-go{flex-shrink:0;border:0;border-radius:999px;background:var(--on-ink);color:var(--ink);
    font:600 13px 'Inter',sans-serif;padding:9px 16px;cursor:pointer;
    transition:transform .12s var(--ease-out),opacity .12s}
  .upd-go:hover{opacity:.9}
  .upd-go:active{transform:scale(.96)}
  .upd-go:disabled{opacity:.7;cursor:default;transform:none}
  @keyframes updIn{from{opacity:0;transform:translateY(16px) scale(.97)}to{opacity:1;transform:none}}
  @keyframes updTurn{from{transform:rotate(-200deg)}to{transform:none}}
  @keyframes updNudge{0%,88%{transform:none}100%{transform:rotate(360deg)}}
  @keyframes updSpin{to{transform:rotate(360deg)}}
  /* on the phone it sits over the bottom of the page — leave room so the last button can still be reached */
  @media(max-width:760px){body.has-upd{padding-bottom:96px}}
  @media (prefers-reduced-motion:reduce){.upd-card,.upd-ic svg,.upd-card.going .upd-ic svg{animation:none}}
  /* ── KEYBOARD FOCUS ──────────────────────────────────────────────────────────
     :focus-visible, not :focus — the browser only matches it when the element was
     reached by keyboard, so a mouse click looks exactly as it always has. That was
     what the old `outline:none` was reaching for; it just took the keyboard with it.
     Text fields keep their own red border + halo and are excluded here. */
  :focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}
  .inp:focus-visible,.srch:focus-visible,textarea:focus-visible,select:focus-visible,
  .nt-custin:focus-visible,.nt-titlein:focus-visible,.nt-body:focus-visible{outline:none}
  /* these two switched the outline off outright, so tabbing showed nothing at all */
  .home-app:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
  .pvth:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
  /* a row reached by keyboard should highlight like a hovered row, not just gain a ring */
  [role="button"]:focus-visible{background:var(--paper)}

  /* ── SORTABLE TABLES ─────────────────────────────────────────────────────────
     The affordance is deliberately louder than the usual "arrow appears once you've
     already sorted": every sortable header carries a faint arrow all the time, so it
     reads as a control before anyone clicks it. The active column goes ink, its arrow
     goes red, and it gets a red rule under the header cell. No zebra striping — this
     app has used hairline rules and one heavy ink line since the redesign. */
  table.sortable th[data-k]{cursor:pointer;user-select:none;white-space:nowrap;position:relative;transition:color .12s}
  table.sortable th[data-k]:hover{color:var(--ink)}
  table.sortable th[data-k]::after{content:'⌄';font-size:13px;margin-left:5px;opacity:.42;display:inline-block;vertical-align:1px}
  table.sortable th[data-k]:hover::after{opacity:.85}
  table.sortable th[aria-sort="ascending"]::after{content:'⌃';opacity:1;color:var(--accent)}
  table.sortable th[aria-sort="descending"]::after{content:'⌄';opacity:1;color:var(--accent)}
  table.sortable th[aria-sort]:not([aria-sort="none"]){color:var(--ink);box-shadow:inset 0 -2px 0 var(--accent)}
  table.sortable th[data-k]:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
  table.sortable td{font-variant-numeric:tabular-nums}

  /* ── LIST TABLES ─────────────────────────────────────────────────────────────
     The house treatment for a list that is really a table: one heavy ink rule under
     the header, hairlines between rows, mono for anything that is a code or a date,
     Newsreader for the quantity, numbers to the right. No zebra striping — this app
     has never had any, and stripes would fight the rules.
     On a phone the whole thing restacks into one labelled block per row, because a
     six-column table on a 375px screen is a horizontal scrollbar with extra steps. */
  table.dt{width:100%;border-collapse:collapse;font-family:'Inter',sans-serif;font-size:15px}
  table.dt thead th{text-align:left;font-size:13px;font-weight:600;
    color:var(--ink-faint);padding:0 16px 8px 0;border-bottom:1.5px solid var(--ink);white-space:nowrap}
  table.dt th.num,table.dt td.num{text-align:right}
  table.dt th:last-child,table.dt td:last-child{padding-right:0}
  table.dt td{padding:11px 16px 11px 0;border-bottom:1px solid var(--rule-soft);vertical-align:middle}
  table.dt tbody tr[onclick]{cursor:pointer}
  table.dt tbody tr:hover>td{background:var(--paper)}
  table.dt td.mono{font-family:var(--num);font-variant-numeric:tabular-nums;font-size:13px;color:var(--ink-soft)}
  table.dt td.name{font-size:13px}
  table.dt td.qty{font-family:'Inter',sans-serif;font-size:15px}
  table.dt td.act{white-space:nowrap;text-align:right}
  /* two actions in one cell ran together as "DetailsEdit" — a plain space between spans collapses */
  table.dt td.act .mrlink+.mrlink{margin-left:14px}
  table.dt tr.dt-detail>td{padding:0 0 10px;border-bottom:1px solid var(--rule-soft);background:var(--paper)}
  table.dt tr.dt-detail:hover>td{background:var(--paper)}
  @media(max-width:760px){
    table.dt,table.dt tbody,table.dt tr,table.dt td{display:block;width:100%}
    table.dt thead{display:none}
    table.dt tbody tr{border-bottom:1px solid var(--rule);padding:11px 0}
    table.dt tbody tr:hover>td{background:none}
    table.dt td{border:none;padding:2px 0;display:flex;gap:10px;align-items:baseline;text-align:left}
    table.dt td::before{content:attr(data-label);flex:0 0 88px;font-family:'Inter',sans-serif;font-size:13px;font-weight:600;
      color:var(--ink-faint);padding-top:3px}
    table.dt td.num{text-align:left}
    table.dt td:empty{display:none}
    table.dt td.act{justify-content:flex-start}
    table.dt tr.dt-detail>td::before{content:none}
    /* A seven-column table restacked is seven lines per record, where the row it replaced was
       two. The columns that only matter when you are comparing records get dropped on a phone —
       what is left is the thing, who it belongs to, and what needs doing. */
    table.dt .hide-sm{display:none}
  }

  /* the one message that must not fade away on its own */
  .appbanner{font-family:'Inter',sans-serif;font-size:13px;background:var(--warn-bg,var(--warn-bg));color:var(--warn-ink);border:1px solid var(--alert-line);
    border-radius:8px;padding:12px 14px;display:flex;align-items:center;gap:11px;margin:0 0 14px}
  .appbanner .btn-line{background:transparent;border-color:var(--warn-line-strong);color:var(--warn-ink);margin-left:auto;flex-shrink:0}
  #bannerHost:empty{display:none}
  #bannerHost{position:sticky;top:0;z-index:900;padding:12px 40px 0;background:var(--paper)}
  @media(max-width:760px){#bannerHost{padding:10px 16px 0}}
  /* ── add-machine form: many serials in one pass, coverage as a deliberate choice ── */
  .mm-srow{display:flex;gap:8px;align-items:center;margin-bottom:6px}
  .mm-srow .n{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-faint);width:54px;flex-shrink:0}
  .mm-srow .inp{flex:1;min-width:0;font-variant-numeric:tabular-nums}
  .mm-srow .rm{border:none;background:none;color:var(--ink-faint);cursor:pointer;font-size:15px;line-height:1;padding:6px;flex-shrink:0}
  .mm-srow .rm:hover{color:var(--accent)}
  .mm-dupe{border-color:var(--accent)!important;background:var(--accent-soft)!important}
  .mm-mini{font-family:'Inter',sans-serif;font-size:13px;font-weight:500;border:1px solid var(--rule);background:var(--surface);color:var(--ink-soft);border-radius:6px;padding:7px 12px;cursor:pointer}
  .mm-mini:hover{border-color:var(--ink-faint);color:var(--ink)}
  /* secondary to "+ Add another": pasting is the shortcut, not the main path */
  .mm-link{font-family:'Inter',sans-serif;font-size:13px;border:none;background:none;color:var(--ink-soft);cursor:pointer;padding:0;text-decoration:underline;text-underline-offset:2px}
  .mm-link:hover{color:var(--ink)}
  .mm-cov{display:flex;gap:7px;flex-wrap:wrap}
  .mm-cov button{font-family:'Inter',sans-serif;border:1px solid var(--rule);background:var(--surface);border-radius:8px;padding:8px 13px;font-size:13px;color:var(--ink-soft);cursor:pointer}
  .mm-cov button.on{border-color:var(--ink);background:var(--ink);color:var(--on-ink);font-weight:600}
  .mm-covnote{font-family:'Inter',sans-serif;margin-top:8px;font-size:13px;padding:9px 12px;border-radius:8px;background:var(--paper);color:var(--ink-soft)}
  .mm-covnote.good{background:var(--good-bg);color:var(--good-deep)}
  .mm-covnote.warn{background:var(--accent-soft);color:var(--alert)}
  .mm-hint{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-faint)}
  .mm-more{border-top:1px solid var(--rule);margin-top:14px;padding-top:12px;margin-bottom:12px}
  .mm-more>summary{font-family:'Inter',sans-serif;cursor:pointer;font-size:15px;font-weight:600;color:var(--ink-soft);list-style:none}
  .mm-more>summary::-webkit-details-marker{display:none}
  .mm-more>summary::before{content:'\25B8  ';color:var(--ink-faint)}
  .mm-more[open]>summary::before{content:'\25BE  '}
  /* ── installation machine-type rows: model · category · qty · remove ──
     Grid, with a label over every field at every width, and the remove button as a real bordered
     control — this is the layout the install prototype specifies, don't drift back to bare flex. */
  .ii-row{display:grid;grid-template-columns:1fr 130px 80px 34px;gap:9px;align-items:end;margin-bottom:9px}
  .ii-row .inp{width:100%;margin:4px 0 0}
  .ii-row .q{text-align:center;font-variant-numeric:tabular-nums}
  .ii-row .rm{border:1px solid var(--rule);background:var(--surface);border-radius:6px;height:33px;cursor:pointer;color:var(--ink-faint);font-size:13px;line-height:1;padding:0}
  .ii-row .rm:hover{border-color:var(--accent);color:var(--accent)}
  .ii-lab{display:block;font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-soft);font-weight:600}
  @media(max-width:760px){
    .ii-row{grid-template-columns:1fr 1fr;gap:8px}
    .ii-row .rm{grid-column:2;justify-self:end;width:44px}
  }
  /* ── job form (service · scheduled · installation) ────────────────────────────────────────────
     Follows _prototype-newinstall.html's "Proposed" panel. Four rules it exists to enforce, all of
     which the old form broke: create is not edit (no status/done/handling while creating); the job
     number is assigned, not typed; explanations sit in grey text UNDER a field, never inside its
     label; and technicians are a search plus a ranked shortlist, not 36 checkboxes.
     Named jf-* because the prototype's own `.mrow` name is already taken elsewhere in this file. */
  .jf-bar{display:flex;align-items:center;gap:12px;padding:13px 22px;border-bottom:1px solid var(--rule);position:sticky;top:0;background:var(--surface);z-index:3;border-radius:10px 10px 0 0}
  .jf-bar .back{display:inline-flex;align-items:center;gap:6px;border:none;background:none;font-family:'Inter',sans-serif;font-size:13px;font-weight:600;color:var(--ink-soft);cursor:pointer;padding:0}
  .jf-bar .back:hover{color:var(--ink)}
  .jf-title{font-family:'Inter',sans-serif;font-size:15px;font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .jf-flag{font-family:'Inter',sans-serif;margin-left:auto;font-size:13px;color:var(--ink-faint);white-space:nowrap}
  .jf-body{padding:22px 26px 8px}
  .jf-q{margin-bottom:20px}
  /* descendant, not child: some labels sit inside a flex row next to a running total, and they must still
     read as the same small-caps label as every other field (the prototype's own rule misses these) */
  .jf-q label{display:block;font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-soft);font-weight:600;margin-bottom:5px}
  .jf-hint{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-faint);margin-top:5px}
  .jf-sechead{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-faint);font-weight:500;padding-top:16px;margin-bottom:14px;border-top:1px solid var(--rule)}
  .jf-two{display:grid;grid-template-columns:1fr 1fr;gap:14px}
  .jf-kind{display:flex;gap:6px;margin-bottom:18px}
  .jf-kind button{flex:1;cursor:pointer;font-family:'Inter',sans-serif;font-size:13px;padding:8px 6px;border:1px solid var(--rule);border-radius:7px;background:var(--surface);color:var(--ink-soft)}
  .jf-kind button.on{border-color:var(--ink);background:var(--ink);color:var(--on-ink);font-weight:600}
  /* assigned technicians as removable chips, so who's going is legible at a glance */
  .jf-tsel{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:9px}
  .jf-chip{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--ink);background:var(--ink);color:var(--on-ink);border-radius:20px;padding:5px 12px;font-family:'Inter',sans-serif;font-size:13px;font-weight:500}
  .jf-chip button{border:none;background:none;color:rgba(var(--lift-rgb),.7);cursor:pointer;font-size:13px;padding:0;line-height:1}
  .jf-chip button:hover{color:var(--on-dark)}
  .jf-tlist{border:1px solid var(--rule);border-radius:8px;max-height:190px;overflow:auto}
  .jf-trow{display:flex;align-items:center;gap:10px;padding:9px 12px;border-top:1px solid var(--rule-soft);cursor:pointer}
  .jf-trow:first-child{border-top:none}
  .jf-trow:hover{background:var(--paper)}
  .jf-trow .nm{font-family:'Inter',sans-serif;font-size:15px;font-weight:600}
  .jf-trow .sk{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-faint)}
  .jf-trow .badge{margin-left:auto;font-family:'Inter',sans-serif;font-size:13px;font-weight:600;color:var(--good);background:var(--good-bg);border-radius:20px;padding:2px 8px;white-space:nowrap}
  .jf-more{border-top:1px solid var(--rule);margin-top:6px;padding-top:14px}
  .jf-more>summary{font-family:'Inter',sans-serif;cursor:pointer;font-size:15px;font-weight:600;color:var(--ink-soft);list-style:none}
  .jf-more>summary::-webkit-details-marker{display:none}
  .jf-more>summary::before{content:'\25B8  ';color:var(--ink-faint)}
  .jf-more[open]>summary::before{content:'\25BE  '}
  .jf-mgrid{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:14px}
  .jf-mgrid label{display:block;font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-faint);font-weight:500;margin-bottom:4px}
  .jf-mgrid .wide{grid-column:1/-1}
  .jf-foot{display:flex;align-items:center;gap:12px;padding:15px 26px;border-top:1px solid var(--rule);background:var(--paper);position:sticky;bottom:0;z-index:3;border-radius:0 0 10px 10px}
  .jf-foot .sum{font-family:'Inter',sans-serif;margin-left:auto;font-size:13px;color:var(--ink-faint);text-align:right}
  @media(max-width:760px){
    .jf-two,.jf-mgrid{grid-template-columns:1fr}
    .jf-body{padding:18px 16px 8px}
    .jf-bar{padding:12px 16px}
    .jf-foot{padding:14px 16px}
    /* five choices across a 390px screen leaves 67px each, so "Sewa / testing"
       and "Ambil kembali" stood two lines tall. Two per row, each label on one
       line, and the odd one out takes the full width. */
    .jf-kind{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
    .jf-kind button{font-size:13px;padding:11px 8px;white-space:nowrap}
    .jf-kind button:last-child:nth-child(odd){grid-column:1 / -1}
  }
  /* ── DELIVERY: the driver's phone screen ──────────────────────────────────────────────────────
     One button per stage, address as a tap target, and the two named photo slots. Bahasa Indonesia,
     same family as the technician view. Follows public/_prototype-driver.html. */
  /* the notification strip at the top of the driver's screen. Literal colours on purpose: this block sits
     outside #maintOverviewWrap, where --warn and --ink-ghost are not defined and silently drop the rule. */
  .dv-push{font-family:'Inter',sans-serif;font-size:15px;line-height:1.45;border-radius:11px;margin-bottom:14px;display:block;width:100%}
  .dv-push.btn{padding:14px 16px;min-height:48px;background:var(--surface);border:1.5px solid var(--accent);color:var(--accent);
               font-size:15px;font-weight:600;text-align:center;cursor:pointer;margin-bottom:6px}
  .dv-push.btn:active{background:var(--accent-soft)}
  .dv-push.note{color:var(--ink-faint);font-size:13px;padding:0 3px;margin-bottom:14px}
  .dv-push.on{padding:10px 13px;background:var(--good-bg);border:1px solid var(--good-line);color:var(--good-deep);font-size:13px}
  .dv-push.off{padding:11px 13px;background:var(--alert-bg);border:1px solid var(--alert-line);color:var(--alert);font-size:13px}
  /* Drivers side by side once there is room for it. One column under 1100px, and any block with a
     ticket open takes the full width so the route rail and photos are not squeezed into half. */
  .drv-cols{column-gap:30px}
  .drv-cols>details{break-inside:avoid}          /* never split a driver's block across the fold */
  @media(min-width:1100px){.drv-cols{column-count:2}}
  /* An OPEN ticket stays inside its own column rather than spanning both, so the two drivers stay side by
     side — his call. That leaves the detail panel ~485px wide on a 1440px screen, and it was measured
     there: five route stages, both feet and the machine list all fit with nothing spilling out.
     A container query was tried first and is NOT used: `container-type` does not take effect inside a
     multi-column container, so every rule in it silently did nothing. */
  /* a driver's day as a card, matching the week grid and the maintenance panels */
  .drv-card{background:var(--surface);border:1px solid var(--rule);border-radius:12px;padding:14px 16px 6px;
    margin-bottom:14px;break-inside:avoid}
  .drv-card>summary{margin-bottom:2px}
  .drv-card.warn{border-color:var(--alert-line);background:var(--warn-bg-soft)}
  .drv-card .mlrow{padding-left:0;padding-right:0}
  /* Deliveries: grey rows while the first list is on its way (deliveries.js shipGreyWhileWaiting), and the
     one quiet fade a row gets when its content really changed. Never a pulse: no animation on the grey. */
  .ship-ph{display:inline-block;background:var(--rule);border-radius:3px;color:transparent;line-height:1;vertical-align:baseline}
  .dp-chip.ship-ph-chip{background:var(--rule);color:transparent}
  /* the id: inside showView's 0.7 s .fade-in, motion.css gives every .mlrow its own rowIn, which would move the row */
  .ship-in,#shipContent .mlrow.ship-in{animation:shipIn .18s ease-out}
  #shipContent .mlrow.ship-fill{animation:none}
  /* something removed with a way back (ui.js shrinkAway) */
  .rm-going{overflow:hidden;pointer-events:none;transition:height .18s ease-out,opacity .18s ease-out,padding .18s ease-out}
  @media (prefers-reduced-motion:reduce){.rm-going{transition:none}}
  @keyframes shipIn{from{opacity:0}to{opacity:1}}
  @media (prefers-reduced-motion:reduce){.ship-in,#shipContent .mlrow.ship-in{animation:none}}
  .drv-free{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-soft);background:var(--paper);
    border:1px solid var(--rule);border-radius:10px;padding:10px 13px;margin-top:4px}
  .drv-free .t{font-size:13px;color:var(--ink-faint);font-weight:600;margin-right:9px}
  /* ── the delivery week ───────────────────────────────────────────────────
     Drivers down the side, seven days across — the same shape as the maintenance week, because it is the
     same question asked of a different fleet. Tomorrow is labelled, not left to be counted out. */
  .scal-head{display:flex;align-items:center;gap:10px;margin-bottom:12px;font-family:'Inter',sans-serif;flex-wrap:wrap}
  .scal-head .t{font-family:'Inter',sans-serif;font-size:15px;font-weight:600}
  .scal-head .tot{margin-left:auto;font-size:13px;color:var(--ink-soft)}
  /* the week sits ON something. Floating white cells on the paper page read as scattered boxes; one card
     behind them makes the seven days a single object you scan across. */
  .swk-scroll{overflow-x:auto;background:var(--surface);border:1px solid var(--rule);border-radius:12px;padding:14px 14px 16px}
  .swk-grid{display:grid;grid-template-columns:120px repeat(7,minmax(112px,1fr));gap:6px;min-width:880px}
  .swk-head{border:none;background:none;font:inherit;cursor:pointer;text-align:center;padding:6px 4px;
    border-radius:6px 6px 0 0;display:flex;flex-direction:column;gap:1px}
  .swk-head:hover{background:var(--rule-soft)}
  .swk-head.today{background:var(--paper)}
  .swk-head .dw{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-soft);font-weight:600}
  .swk-head .dd{font-family:'Inter',sans-serif;font-size:15px;font-weight:600}
  .swk-head .dn{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-faint)}
  .swk-head.today .dw,.swk-head.today .dd{color:var(--accent)}
  .swk-head.tomorrow{background:var(--alert-bg)}
  .swk-head.tomorrow .dw{color:var(--alert)}
  .swk-name{display:flex;align-items:center;gap:6px;padding:6px 8px 6px 0;font-family:'Inter',sans-serif;
    font-size:13px;font-weight:500;min-width:0}
  .swk-name>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .swk-name .n{margin-left:auto;font-size:13px;color:var(--ink-faint);font-variant-numeric:tabular-nums}
  .swk-name.warn{color:var(--accent)}
  /* the card behind is white, so an empty day is the tinted one — the inverse of before, or every cell
     would vanish into the card and the grid would read as an empty rectangle */
  .swk-cell{border:1px solid var(--rule-soft);border-radius:5px;min-height:46px;padding:4px;background:var(--paper);
    display:flex;flex-direction:column;gap:3px}
  .swk-cell.today{background:var(--neutral-bg);border-color:var(--rule)}
  .swk-chip{display:block;width:100%;text-align:left;border:1px solid var(--rule);background:var(--surface);
    border-radius:5px;padding:4px 6px;cursor:pointer;font-family:'Inter',sans-serif;font-size:13px;line-height:1.25}
  .swk-chip:hover{border-color:var(--ink)}
  .swk-chip .c{display:block;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .swk-chip .k{display:block;font-size:13px;color:var(--ink-soft);}
  .swk-chip.done{background:var(--good-bg);border-color:var(--good-line)}
  .swk-chip.done .c{color:var(--good-deep)}

  /* the shared date range, used by Delivered and by a technician's completed history */
  .drange{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-family:'Inter',sans-serif;font-size:13px;
    color:var(--ink-soft);background:var(--paper);border:1px solid var(--rule);border-radius:10px;
    padding:9px 12px;margin-bottom:14px}
  .drange .sep{width:1px;height:16px;background:var(--rule)}
  .drange label{display:flex;align-items:center;gap:5px}
  /* ⚠ AND THE BOX YOU ACTUALLY SEE. Since 17 Sep every date box is a text box in front of a
     hidden real one (js/datefield.js), so a rule naming only input[type=date] styled the hidden
     one and left the visible one a bare white square. "theres a lot broke that it becomes a
     square", 25 Sep 2026. Every date rule in the app now names both. */
  .drange input[type=date],.drange .dfw>input[type=text]{border:1px solid var(--rule);background:var(--surface);border-radius:7px;
    padding:5px 8px;font-family:'Inter',sans-serif;font-size:13px;color:var(--ink)}

  /* ── Figures: the morning brief ──────────────────────────────────────────
     Literal colours: this block sits outside #maintOverviewWrap where --warn is not defined. */
  .fig-lede{font-family:'Inter',sans-serif;font-size:15px;line-height:1.5;margin:16px 0 0;max-width:70ch}
  .fig-lede b{font-weight:600}
  .fig-lede .up{color:var(--good)} .fig-lede .dn{color:var(--accent)}
  .fig-stale{font-family:'Inter',sans-serif;font-size:13px;background:var(--alert-bg);border:1px solid var(--alert-line);color:var(--alert);
    border-radius:9px;padding:9px 12px;margin-top:16px;display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}
  .fig-stale b{font-weight:600}
  .fig-sect{margin-top:32px}
  .fig-sect>.hd{display:flex;align-items:baseline;gap:10px;border-bottom:1.5px solid var(--ink);padding-bottom:6px;margin-bottom:14px}
  .fig-sect>.hd h2{font-size:15px;font-weight:600}
  .fig-sect>.hd .note{margin-left:auto;font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-faint)}
  .fig-split{display:grid;grid-template-columns:1fr 1fr;gap:30px}
  .fig-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:0}
  .fig-stat{padding:2px 18px 2px 0;border-right:1px solid var(--rule)}
  .fig-stat:last-child{border-right:none}
  .fig-stat .n{font-family:var(--num);font-variant-numeric:tabular-nums;font-size:33px;font-weight:400;line-height:1.05;font-variant-numeric:tabular-nums}
  .fig-stat .n small{font-family:'Inter',sans-serif;font-size:19px;font-weight:400;color:var(--ink-soft)}
  .fig-stat .l{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-soft);margin-top:3px}
  .fig-stat .d{font-family:'Inter',sans-serif;font-size:13px;margin-top:2px;color:var(--ink-faint)}
  .fig-stat .d .dn{color:var(--accent)}
  .fig-bars{display:flex;align-items:flex-end;gap:9px;height:104px;margin-top:6px}
  .fig-bars .b{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;height:100%}
  .fig-bars .b .v{font-family:var(--num);font-variant-numeric:tabular-nums;font-size:13px;color:var(--ink-soft)}
  .fig-bars .b .bar{width:100%;background:var(--rule);border-radius:3px 3px 0 0;margin-top:auto;transition:height 500ms var(--ease-out)}
  .fig-bars .b.on .bar{background:var(--ink)}
  .fig-bars .b .x{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-faint)}
  .fig-rows .r{display:flex;align-items:center;gap:12px;padding:9px 0;border-top:1px solid var(--rule-soft);font-family:'Inter',sans-serif;font-size:13px}
  .fig-rows .r:first-child{border-top:none}
  .fig-rows .nm{min-width:0;flex:1;font-weight:500}
  .fig-rows .track{flex:2;height:6px;background:var(--rule-soft);border-radius:3px;overflow:hidden}
  .fig-rows .track i{display:block;height:100%;background:var(--ink);border-radius:3px}
  .fig-rows .val{font-variant-numeric:tabular-nums;color:var(--ink-soft);white-space:nowrap;font-size:13px}
  @media(max-width:820px){.fig-split{grid-template-columns:1fr;gap:22px}.fig-stat{border-right:none}}

  /* ── the wall of apps ────────────────────────────────────────────────────
     His icons arrive as finished badges — white rounded square with their own shadow — so the tile behind
     them is the same near-white, or the badge draws a faint square inside a second box. */
  .home-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:6px 4px;max-width:840px}
  /* ⚠ NO CARD. Each picture is already a rounded tile with an edge of its own, so
     the box round it was a second edge round the first — and a 190x132 card holding
     a picture and one word is mostly empty. The picture and its name, the way a
     phone holds its apps. */
  .home-app{position:relative;background:none;border:0;border-radius:12px;padding:8px 4px;
    cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:7px;
    text-align:center;font:inherit;
    transition:transform 140ms var(--ease-out)}
  /* a tile that is a link out of the app (IXItask, 20 Oct 2026): no link underline or link colour */
  a.home-app{text-decoration:none;color:inherit}
  /* the picture lifts, since there is no card left to lift */
  /* ⚠ drop-shadow, NOT box-shadow. box-shadow is drawn round the element’s BOX, and
     these are transparent pictures — so hovering drew a shadowed rounded SQUARE behind
     a floating drawing. That is the card he asked to be deleted, coming back on hover.
     A drop-shadow follows the drawing’s own outline. */
  .home-app:hover .home-ic{transform:translateY(-3px);
    filter:drop-shadow(0 7px 9px rgba(var(--shade-rgb),.26))}
  /* ⚠ THE COUNT RIDES WITH THE PICTURE. It hangs off the tile, not off the picture,
     so when the picture lifted the number stayed behind and came unstuck from it. */
  .home-app:hover .home-badge{transform:translateY(-3px)}
  .home-app:active .home-badge{transform:translateY(-1px)}
  .home-badge{transition:transform 140ms var(--ease-out)}
  .home-app:active .home-ic{transform:translateY(-1px)}
  .home-app:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:10px}
  .home-app:focus:not(:focus-visible){outline:none}   /* mouse click: clean. keyboard: ringed, further down */
  .home-app:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
  /* ⚠ THE BADGE HANGS OFF THE PICTURE now that there is no card to hang it on */
  /* ⚠ NO border-radius. It was rounding the sheet’s paper into a tile; with the paper
     cut away it rounds nothing, and it would clip a drawing that reaches its corner. */
  .home-ic{width:56px;height:56px;object-fit:contain;display:block;
    transition:transform 140ms var(--ease-out),filter 140ms var(--ease-out)}
  /* ⚠ TWO LINES’ WORTH, ALWAYS. "Maintenance Dashboard" wraps and every other name
     does not, so that tile was taller than its neighbours and the row below it sat
     lower than the rest. The space is held whether it is used or not. */
  .home-nm{font-family:'Inter',sans-serif;font-size:13px;font-weight:600;line-height:1.25;color:var(--ink);
    min-height:2.5em;display:flex;align-items:flex-start;justify-content:center}
  /* the stand-in for a tile whose picture has not been drawn yet */
  .home-letter{display:flex;align-items:center;justify-content:center;background:var(--field);
    border-radius:13px;color:var(--ink-soft);font-weight:600;font-size:24px;letter-spacing:-.02em}
  /* ⚠ IN FRONT OF THE PICTURE. The count is written before the picture in the page,
     so the picture painted over it — it never showed while a card held them apart, and
     the moment the card went they overlapped and half the number went behind it. */
  .home-badge{position:absolute;z-index:2;top:2px;right:calc(50% - 34px);min-width:19px;height:19px;padding:0 5px;border-radius:10px;
    box-shadow:0 0 0 2px var(--paper);
    background:var(--accent);color:var(--on-accent);font-family:'Inter',sans-serif;font-size:12px;font-weight:600;
    display:flex;align-items:center;justify-content:center;line-height:1}
  @media(max-width:560px){.home-grid{grid-template-columns:1fr 1fr;gap:11px}}
  /* ── pins and groups (25 Sep 2026, from _prototype-wall.html) ─────────────
     The pinned row sits on the field tint so it reads as its own shelf; a group is a
     small heading over the same grid. The pin shows on hover and on keyboard focus,
     and stays hidden on a touch screen, where there is no hover to find it with. */
  .home-sec{font-family:'Inter',sans-serif;font-size:12px;font-weight:600;color:var(--ink-faint);
    text-transform:uppercase;letter-spacing:.06em;margin:0 0 4px 6px}
  .home-group{margin-bottom:14px}
  .home-pinned{background:var(--field);border-radius:14px;padding:8px 6px 0;margin-bottom:22px;max-width:852px}
  .home-pinned .home-sec{margin:4px 0 0 8px}
  .home-pinned .home-badge{box-shadow:0 0 0 2px var(--field)}
  .home-pin{position:absolute;z-index:3;top:2px;left:calc(50% - 40px);width:24px;height:24px;border-radius:12px;
    border:1px solid var(--rule);background:var(--paper);display:flex;align-items:center;justify-content:center;
    opacity:0;transition:opacity 120ms var(--ease-out);cursor:pointer}
  .home-pin svg{width:13px;height:13px;fill:none;stroke:var(--ink-soft);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
  .home-app:hover .home-pin,.home-pin:focus-visible{opacity:1}
  .home-pin:hover{border-color:var(--ink-soft)}
  .home-pin.on svg{stroke:var(--accent);fill:var(--accent)}
  @media(hover:none){.home-pin{display:none}}

  /* the office's day strip: where this stop sits in the driver's day, and how to plan it */
  .ds-strip{display:flex;align-items:center;gap:11px;flex-wrap:wrap;font-family:'Inter',sans-serif;font-size:13px;
    background:var(--paper);border:1px solid var(--rule);border-radius:10px;padding:9px 12px;margin:0 0 12px}
  .ds-strip .ds-pos{font-weight:600;color:var(--ink)}
  .ds-strip .ds-who{color:var(--ink-soft)}
  .ds-mv{display:flex;gap:4px;margin-left:auto}
  .ds-mv button{width:30px;height:30px;border:1px solid var(--rule);background:var(--surface);border-radius:7px;
    color:var(--ink-soft);cursor:pointer;font-size:13px;line-height:1;padding:0}
  .ds-mv button[disabled]{opacity:.3;cursor:default}
  .ds-add{border:1px solid var(--accent);background:var(--surface);color:var(--accent);border-radius:8px;
    padding:7px 12px;font-family:'Inter',sans-serif;font-size:13px;font-weight:600;cursor:pointer;min-height:32px}
  .ds-add:hover{background:var(--accent-soft)}

  /* ── THE DAY AS A ROUTE (layout A) ──────────────────────────────────────
     Literal colours again: this block is outside #maintOverviewWrap. */
  .rt-sum{display:flex;align-items:baseline;gap:8px;margin-bottom:2px}
  .rt-sum .big{font-size:27px;font-weight:600;line-height:1}
  .rt-sum .sub{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-soft)}
  .rt-bar{display:flex;gap:4px;margin:11px 0 3px}
  .rt-bar i{height:4px;flex:1;border-radius:2px;background:var(--rule)}
  .rt-bar i.done{background:var(--ok)}
  .rt-bar i.now{background:var(--ink)}
  .rt-state{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-faint)}
  .rt-stop{border:1px solid var(--rule);border-radius:13px;margin-top:11px;background:var(--surface);overflow:hidden}
  .rt-stop.past{background:var(--paper)}
  .rt-stop.is-open{box-shadow:0 2px 10px rgba(var(--shade-rgb),.05)}
  /* a DIV, not a <button>: the reorder arrows are real buttons and a button inside a button is invalid
     markup that Chrome silently unnests, which loses the arrows' own click handlers */
  .rt-hd{display:flex;align-items:center;gap:10px;padding:13px;font-family:'Inter',sans-serif;
         cursor:pointer;min-height:56px;-webkit-tap-highlight-color:transparent}
  .rt-stop.is-open .rt-hd{border-bottom:1px solid var(--rule-soft)}
  .rt-hd:active{background:var(--paper)}
  .rt-hd .n{width:23px;height:23px;border-radius:50%;background:var(--ink);color:var(--on-ink);font-size:13px;font-weight:600;
    display:flex;align-items:center;justify-content:center;flex-shrink:0}
  .rt-stop.past .rt-hd .n{background:var(--good)}
  .rt-stop.todo .rt-hd .n{background:var(--surface);border:2px solid var(--rule);color:var(--ink-faint)}
  /* spans inside a flex row stay inline unless told otherwise — without display:block the customer name
     runs straight through the state line and under the coloured tag */
  .rt-hd .tx{min-width:0;flex:1;display:block}
  .rt-hd .nm{display:block;font-size:15px;font-weight:600;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .rt-stop.todo .rt-hd .nm{color:var(--ink-soft)}
  /* the state and the kind share the SECOND line, so the customer's name gets the full width. With the tag
     beside the name, a 375px row left "PT. PER…" next to the reorder arrows — unreadable, and the name is
     the one thing he needs to recognise the stop by. */
  .rt-hd .meta{display:flex;align-items:center;gap:7px;margin-top:3px;min-width:0}
  .rt-hd .st{font-size:13px;color:var(--ink-soft);white-space:nowrap}
  .rt-hd .st.ok{color:var(--good)}
  .rt-hd .dv-kind{flex-shrink:0;margin-left:0}
  /* 32px was a comfortable size for a mouse. This is a man holding the phone one-handed at a
     factory gate, in the sun, sometimes with gloves — 44 is the size a thumb needs. They sit side
     by side, so the row pays ~94px of width; the customer name still gets ~250px on a 375 screen
     and it already ellipses. */
  .rt-mv{display:flex;gap:6px;flex-shrink:0;margin-left:8px}
  .rt-mv button{width:44px;height:44px;border:1px solid var(--rule);background:var(--paper);border-radius:11px;
    color:var(--ink-soft);font-size:15px;cursor:pointer;line-height:1;padding:0;flex-shrink:0;
    display:flex;align-items:center;justify-content:center}
  .rt-mv button:active{background:var(--field-off)}
  .rt-mv button[disabled]{opacity:.28}
  /* ── the upload list (finding 7) ── */
  .up-wrap{margin:6px 0 2px}
  .up-row{display:flex;align-items:center;gap:11px;padding:10px 0;border-top:1px solid var(--rule-soft)}
  .up-row:first-child{border-top:none}
  .up-thumb{width:44px;height:44px;border-radius:8px;flex-shrink:0;background:linear-gradient(135deg,var(--rule-strong),var(--ink-faint))}
  .up-thumb.err{background:linear-gradient(135deg,var(--accent-line),var(--accent-line-deep))}
  .up-mid{flex:1;min-width:0;font-family:'Inter',sans-serif}
  .up-fn{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .up-sz{font-family:var(--num);font-variant-numeric:tabular-nums;font-size:13px;color:var(--ink-faint);margin-top:2px}
  .up-track{height:5px;background:var(--rule);border-radius:3px;overflow:hidden;margin-top:7px}
  .up-fill{height:100%;background:var(--ink);border-radius:3px;transition:width .18s linear}
  .up-fill.ok{background:var(--good)}.up-fill.err{background:var(--accent)}
  .up-act{flex-shrink:0;min-width:44px;min-height:44px;border:1px solid var(--rule);background:var(--surface);
    border-radius:9px;font-family:'Inter',sans-serif;font-size:13px;font-weight:600;color:var(--ink-soft);padding:0 10px}
  .up-act.retry{border-color:var(--accent-line);color:var(--accent)}
  .up-ok{flex-shrink:0;width:44px;text-align:center;color:var(--good);font-size:15px}
  .up-foot{display:flex;align-items:center;gap:10px;font-family:'Inter',sans-serif;font-size:13px;
    color:var(--ink-soft);padding-top:9px;border-top:1px solid var(--rule)}
  .up-foot .mono{margin-left:auto;font-family:var(--num);font-variant-numeric:tabular-nums;font-size:13px}
  .up-warn{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-faint);margin-top:6px}
  .rt-no{font-family:var(--num);font-variant-numeric:tabular-nums;font-size:13px;color:var(--ink-faint);padding-top:8px}
  .dv-addr{display:flex;gap:10px;align-items:flex-start;width:100%;text-align:left;margin-top:12px;background:var(--paper);
    border:1px solid var(--rule);border-radius:11px;padding:11px 13px;font-family:'Inter',sans-serif;font-size:15px;color:var(--ink);cursor:pointer;text-decoration:none}
  .dv-addr:active{background:var(--field-off)}
  .dv-addr .go{margin-left:auto;flex-shrink:0;font-size:13px;font-weight:600;color:var(--ink-soft);white-space:nowrap}
  .dv-load{margin-top:13px;border:1px solid var(--rule);border-radius:11px;overflow:hidden}
  .dv-load .hd{display:flex;align-items:baseline;gap:8px;padding:9px 12px;background:var(--paper);border-bottom:1px solid var(--rule)}
  .dv-load .hd .t{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-soft);font-weight:600}
  .dv-load .hd .n{margin-left:auto;font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-soft)}
  .dv-lrow{display:flex;align-items:center;gap:9px;padding:9px 12px;border-top:1px solid var(--rule-soft);font-family:'Inter',sans-serif;font-size:13px}
  .dv-lrow:first-child{border-top:none}
  .dv-lrow .q{margin-left:auto;font-variant-numeric:tabular-nums;font-size:13px;color:var(--ink-soft);white-space:nowrap}
  .dv-lrow .cat{font-size:13px;color:var(--ink-faint)}
  .dv-stages{margin-top:15px}
  .dv-stg{display:flex;gap:11px;align-items:flex-start}
  .dv-stg .dotcol{display:flex;flex-direction:column;align-items:center;flex-shrink:0;width:18px}
  .dv-stg .dot{width:15px;height:15px;border-radius:50%;border:2px solid var(--rule);background:var(--surface);margin-top:3px}
  .dv-stg .line{flex:1;width:2px;background:var(--rule);min-height:20px;margin:2px 0}
  .dv-stg:last-child .line{display:none}
  .dv-stg.done .dot{border-color:var(--ok);background:var(--ok)}
  .dv-stg.done .line{background:var(--ok)}
  .dv-stg.now .dot{border-color:var(--ink);background:var(--surface);box-shadow:0 0 0 3px rgba(var(--shade-rgb),.12)}
  .dv-stg .body{flex:1;min-width:0;padding-bottom:10px}
  .dv-stg .nm{font-family:'Inter',sans-serif;font-size:15px;font-weight:600}
  .dv-stg.todo .nm{color:var(--ink-faint);font-weight:500}
  .dv-stg .meta{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-soft);font-variant-numeric:tabular-nums}
  .dv-stg .geo{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-faint)}
  .dv-stg .geo.ok{color:var(--good)}
  .dv-stg .geo.off{color:var(--accent)}
  /* was an 11px underlined link 14px tall — too small a target for a man holding the phone at a factory
     gate, and Caleb asked for it enlarged. Now a real bordered button that clears 46px. */
  .dv-skip{font-family:'Inter',sans-serif;font-size:15px;font-weight:600;color:var(--ink-soft);background:var(--surface);
    border:1px solid var(--rule);border-radius:11px;padding:13px 16px;width:100%;min-height:46px;cursor:pointer}
  .dv-skip:active{background:var(--paper)}
  .dv-shots{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:6px}
  .dv-shot{display:block;border:1.5px dashed var(--rule);border-radius:11px;padding:13px 9px;text-align:center;background:var(--paper);cursor:pointer}
  .dv-shot .lbl{font-family:'Inter',sans-serif;font-size:13px;font-weight:600;margin-top:6px}
  .dv-shot .sub{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-faint);margin-top:1px}
  .dv-shot.has{border-style:solid;border-color:var(--ok);background:var(--good-bg)}
  .dv-shot img{width:100%;height:64px;object-fit:cover;border-radius:7px}
  .dv-note{width:100%;border:1px solid var(--rule);background:var(--paper);border-radius:9px;padding:9px 11px;
    font-size:13px;font-family:'Inter',sans-serif;color:var(--ink);resize:vertical;margin-top:5px}
  .dv-doneline{display:flex;align-items:center;gap:7px;justify-content:center;font-family:'Inter',sans-serif;font-size:13px;
    color:var(--good);background:var(--good-bg);border-radius:9px;padding:10px;margin-top:11px}
  .dv-why{font-family:'Inter',sans-serif;font-size:13px;color:var(--accent);text-align:center;margin-top:6px}
  /* ── the trip now has two ends, so the card is one box per LEG (layout B) ──
     The leg he is not standing on collapses to a single line: a warehouse run is two short cards instead
     of one card with five stage rows above the button he actually needs. */
  .dv-legcard{border:1px solid var(--rule);border-radius:12px;margin-top:13px;overflow:hidden;background:var(--surface)}
  .dv-legcard.past{background:var(--paper)}
  .dv-leghd{display:flex;align-items:center;gap:9px;padding:11px 13px;font-family:'Inter',sans-serif}
  .dv-legcard.open .dv-leghd{border-bottom:1px solid var(--rule-soft)}
  .dv-leghd .n{width:21px;height:21px;border-radius:50%;background:var(--ink);color:var(--on-ink);font-size:13px;font-weight:600;display:flex;align-items:center;justify-content:center;flex-shrink:0}
  .dv-legcard.past .dv-leghd .n{background:var(--good)}
  .dv-legcard.todo .dv-leghd .n{background:var(--surface);border:2px solid var(--rule);color:var(--ink-faint)}
  .dv-leghd .t{font-size:15px;font-weight:600;min-width:0}
  .dv-legcard.todo .dv-leghd .t{color:var(--ink-faint)}
  .dv-leghd .s{margin-left:auto;font-size:13px;color:var(--ink-soft);white-space:nowrap}
  .dv-legbody{padding:2px 13px 14px}
  /* the address row inside a leg — its own tap target, because he needs Maps for BOTH ends of the trip */
  .dv-rleg{display:flex;gap:10px;align-items:flex-start;padding:11px 0;text-decoration:none;color:var(--ink)}
  .dv-rleg:active{background:var(--paper)}
  .dv-rleg .mk{flex-shrink:0;width:19px;display:flex;justify-content:center;padding-top:4px}
  .dv-rleg .mk .ring{width:11px;height:11px;border-radius:50%;border:2.5px solid var(--ink);background:var(--ink)}
  /* spans inside an <a> stay inline unless told otherwise — without this the name and address run together */
  .dv-rleg .tx{flex:1;min-width:0;font-family:'Inter',sans-serif;display:block}
  .dv-rleg .nm{display:block;font-size:15px;font-weight:600;line-height:1.25}
  .dv-rleg .ad{display:block;font-size:13px;color:var(--ink-soft);margin-top:1px;line-height:1.3}
  .dv-rleg .go{margin-left:auto;flex-shrink:0;align-self:center;font-size:13px;font-weight:600;color:var(--ink-soft);white-space:nowrap}
  .dv-histrow{display:flex;gap:9px;align-items:baseline;font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-soft);padding:5px 0 0 3px}
  .dv-histrow .tk{color:var(--good);flex-shrink:0}
  .dv-histrow .tm{margin-left:auto;text-align:right;font-variant-numeric:tabular-nums;color:var(--ink-faint);font-size:13px}
  .dv-kind{display:inline-flex;align-items:center;font-family:'Inter',sans-serif;font-size:13px;font-weight:600;
    padding:3px 9px;border-radius:4px;margin-left:6px}
  .dv-kind.deliver{background:var(--info-bg);color:var(--info)}
  .dv-kind.collect{background:var(--warn-bg);color:var(--warn-ink)}
  .dv-due{font-family:'Inter',sans-serif;font-size:13px;color:var(--warn-ink);background:var(--warn-bg-soft);border:1px solid var(--warn-line);
    border-radius:9px;padding:9px 12px;margin-top:11px;line-height:1.4}
  /* ── DELIVERY: the office / shipment-desk panel ── */
  .dp{background:var(--surface);border:1px solid var(--rule);border-radius:13px;overflow:hidden;margin-bottom:14px}
  .dp-head{padding:15px 18px 13px;border-bottom:2px solid var(--ink)}
  .dp-head .top{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:8px}
  .dp-head h3{font-family:'Inter',sans-serif;font-size:15px;line-height:1.15;margin:0;font-weight:600}
  .dp-head .meta{font-family:var(--num);font-variant-numeric:tabular-nums;font-size:13px;color:var(--ink-soft);margin-top:4px}
  .dp-chip{margin-left:auto;display:inline-flex;align-items:center;font-family:'Inter',sans-serif;font-size:13px;font-weight:600;
    border-radius:4px;padding:3px 9px;white-space:nowrap}
  .dp-chip.wait{background:var(--neutral-bg);color:var(--ink-soft)}
  .dp-chip.move{background:var(--warn-bg);color:var(--warn-ink)}
  .dp-chip.site{background:var(--info-bg);color:var(--info)}
  .dp-chip.fin{background:var(--good-bg);color:var(--good)}
  .dp-sect{padding:13px 18px;border-top:1px solid var(--rule-soft)}
  .dp-sect:first-of-type{border-top:none}
  .dp-sh{display:flex;align-items:baseline;gap:8px;margin-bottom:9px}
  .dp-sh .t{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-faint);font-weight:600}
  .dp-sh .n{margin-left:auto;font-family:var(--num);font-variant-numeric:tabular-nums;font-size:13px;color:var(--ink-soft)}
  /* ── the journey, as a flow chart ──
     Four nodes on one track, the connector filling in behind him. Reads as a route at a glance instead
     of four rows of dashes. */
  .fc{display:grid;grid-template-columns:repeat(4,1fr);margin:6px 0 2px}
  .fc-s{position:relative;padding:22px 6px 0;text-align:center;min-width:0}
  /* the connector runs from this node to the next one */
  .fc-s::before{content:'';position:absolute;top:6px;left:50%;right:-50%;height:2px;background:var(--rule)}
  .fc-s:last-child::before{display:none}
  .fc-s.done::before{background:var(--ok)}
  .fc-s.skip::before{background:repeating-linear-gradient(90deg,var(--rule) 0 4px,transparent 4px 8px)}
  .fc-dot{position:absolute;top:0;left:50%;transform:translateX(-50%);width:14px;height:14px;border-radius:50%;
    border:2px solid var(--rule);background:var(--surface);box-sizing:border-box}
  .fc-s.done .fc-dot{background:var(--ok);border-color:var(--ok)}
  .fc-s.now .fc-dot{border-color:var(--ink);box-shadow:0 0 0 3px rgba(var(--shade-rgb),.13)}
  .fc-s.skip .fc-dot{border-style:dashed}
  .fc-nm{font-family:'Inter',sans-serif;font-size:13px;font-weight:600;line-height:1.25;overflow-wrap:anywhere}
  .fc-s.todo .fc-nm,.fc-s.skip .fc-nm{color:var(--ink-faint);font-weight:500}
  .fc-tm{font-family:var(--num);font-variant-numeric:tabular-nums;font-size:13px;margin-top:3px}
  .fc-s.todo .fc-tm,.fc-s.skip .fc-tm{color:var(--ink-faint)}
  .fc-wh{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-soft);margin-top:2px;line-height:1.3;overflow-wrap:anywhere}
  .fc-wh.ok{color:var(--good)}
  .fc-wh.off{color:var(--accent)}
  .fc-x{display:block;margin:4px auto 0;border:none;background:none;font-family:'Inter',sans-serif;font-size:13px;
    color:var(--ink-faint);cursor:pointer;text-decoration:underline;padding:0}
  .fc-x:hover{color:var(--accent)}
  @media(max-width:560px){
    /* two rows of two on a narrow screen, so the labels never crush */
    .fc{grid-template-columns:1fr 1fr;row-gap:16px}
    .fc-s:nth-child(2)::before{display:none}
    .fc-nm{font-size:13px}
  }
  .dp-mr{display:flex;align-items:center;gap:10px;padding:9px 11px;background:var(--surface);border:1px solid var(--rule);
    border-left:3px solid var(--ink-faint);border-radius:0 7px 7px 0;margin-bottom:6px}
  .dp-mr .nm{font-family:'Inter',sans-serif;font-size:13px;font-weight:600;min-width:0}
  .dp-mr .ct{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-faint)}
  .dp-mr .q{margin-left:auto;font-family:var(--num);font-variant-numeric:tabular-nums;font-size:13px;white-space:nowrap}
  .dp-mr .sn{font-family:var(--num);font-variant-numeric:tabular-nums;font-size:13px;color:var(--ink-faint);white-space:nowrap;text-align:right}
  .dp-mr .sn.some{color:var(--good)}
  /* Photos. `cover` at 82px crops a landscape surat terima to a stripe through the middle — his manager
     could not read one without opening it in a new browser tab. Whole sheet, tall enough to read, and a
     press opens the lightbox below instead of leaving the page. */
  .dp-fot{display:grid;grid-template-columns:1fr 1fr;gap:11px}
  .dp-fot .f{display:block;width:100%;padding:0;text-align:left;border:1px solid var(--rule);border-radius:9px;
    overflow:hidden;background:var(--paper);text-decoration:none;color:var(--ink);cursor:pointer}
  .dp-fot button.f:hover,.dp-fot a.f:hover{border-color:var(--ink-faint)}
  .dp-fot .f img{width:100%;height:210px;object-fit:contain;display:block;background:var(--field-off);padding:5px}
  .dp-fot .f .none{height:210px;display:flex;align-items:center;justify-content:center;color:var(--ink-faint);font-size:13px;font-family:'Inter',sans-serif}
  .dp-fot .f .cap{font-family:'Inter',sans-serif;font-size:13px;padding:7px 9px;border-top:1px solid var(--rule);display:flex;align-items:center;gap:6px}
  .dp-fot .f .cap .zoom{margin-left:auto;color:var(--ink-faint);font-size:13px}
  @media(max-width:620px){.dp-fot .f img,.dp-fot .f .none{height:150px}}
  .byoffice{font-family:'Inter',sans-serif;font-size:13px;font-weight:600;
    color:var(--warn-ink);background:var(--warn-bg);border-radius:3px;padding:1px 5px}
  /* the lightbox */
  /* Same fault as the other two viewers, arrived at a different way: the note was pinned to
     the bottom with position:absolute while the photo was free to grow to 88vh, so a tall
     photo landed on top of it. A column instead — the photo takes what is left after the
     note, and the note cannot be covered because it is in the flow. */
  .dlb{position:fixed;inset:0;background:rgba(var(--panel-rgb),.88);z-index:200;display:flex;flex-direction:column;
    align-items:center;justify-content:center;gap:12px;padding:26px;cursor:zoom-out}
  .dlb img{max-width:100%;max-height:100%;min-height:0;flex:0 1 auto;border-radius:8px;background:var(--surface)}
  .dlb .x{position:absolute;top:18px;right:22px;background:rgba(var(--lift-rgb),.15);color:var(--on-dark);border:none;border-radius:8px;
    padding:9px 14px;font-family:'Inter',sans-serif;font-size:15px;font-weight:600}
  .dlb .cap{flex-shrink:0;max-width:100%;max-height:30vh;overflow-y:auto;text-align:center;color:rgba(var(--lift-rgb),.8);font-family:'Inter',sans-serif;font-size:15px;line-height:1.45}
  .dlb .cap:empty{display:none}
  /* ── where he stamped, on a map ── */
  .dp-gmap{height:270px;border:1px solid var(--rule);border-radius:10px;overflow:hidden}
  .dp-gleg{display:flex;gap:14px;flex-wrap:wrap;margin-top:9px;font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-soft)}
  .dp-gleg span{display:flex;align-items:center;gap:6px}
  .dp-gleg i{width:11px;height:11px;border-radius:50%;display:inline-block;flex-shrink:0}
  .dp-verdict{font-family:'Inter',sans-serif;font-size:13px;background:var(--warn-bg-soft);border:1px solid var(--warn-line);color:var(--warn-ink);
    border-radius:9px;padding:10px 13px;margin-top:11px;line-height:1.45}
  .dp-verdict b{color:var(--warn-deep)}
  .delpin{background:none;border:none}
  .delpin .d{width:15px;height:15px;border-radius:50%;border:2.5px solid var(--on-dark);box-shadow:0 1px 4px rgba(var(--shade-rgb),.4)}
  .delpin .lbl{font-family:'Inter',sans-serif;font-size:13px;font-weight:600;white-space:nowrap;
    background:rgba(var(--sheet-rgb),.92);border-radius:3px;padding:1px 4px;transform:translateX(-38%)}
  /* the two ends of the trip */
  .dp-end{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap;padding:7px 0;border-top:1px solid var(--rule-soft);font-family:'Inter',sans-serif}
  .dp-end:first-of-type{border-top:none}
  .dp-end .lb{font-size:13px;font-weight:600;color:var(--ink-faint);width:96px;flex-shrink:0}
  .dp-end .nm{font-size:15px;font-weight:600}
  .dp-end .ad{font-size:13px;color:var(--ink-soft);flex-basis:100%;margin-left:105px}
  @media(max-width:620px){.dp-end .lb{width:100%}.dp-end .ad{margin-left:0}}
  /* ── the office's own controls, folded away ── */
  .oa{border:1px solid var(--rule);border-radius:11px;background:var(--paper);overflow:hidden}
  .oa>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:9px;padding:11px 13px;
    font-family:'Inter',sans-serif;font-size:15px;font-weight:600}
  .oa>summary::-webkit-details-marker{display:none}
  .oa>summary::before{content:'';width:0;height:0;border-left:5px solid var(--ink-faint);border-top:4px solid transparent;
    border-bottom:4px solid transparent;transition:transform .14s var(--ease-out)}
  .oa[open]>summary::before{transform:rotate(90deg)}
  .oa>summary .hint{margin-left:auto;font-weight:400;color:var(--ink-faint);font-size:13px}
  .oabody{padding:0 13px 13px;background:var(--surface);border-top:1px solid var(--rule)}
  .oarow{padding:13px 0;border-top:1px solid var(--rule-soft)}
  .oarow:first-child{border-top:none}
  .oarow .t{font-family:'Inter',sans-serif;font-size:15px;font-weight:600}
  .oarow .d{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-soft);margin-top:3px;line-height:1.45}
  .oarow .ctl{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:9px}
  .oarow .inp{margin:0}
  .oanote{font-family:'Inter',sans-serif;font-size:13px;color:var(--warn-ink);background:var(--warn-bg-soft);border:1px solid var(--warn-line);
    border-radius:7px;padding:8px 11px;margin-top:9px;line-height:1.4}
  .oanote b{color:var(--warn-deep)}
  .dp-noteblk{font-family:'Inter',sans-serif;font-size:13px;background:var(--paper);border-left:3px solid var(--rule);padding:9px 12px;border-radius:0 7px 7px 0}
  .dp-hand{font-family:'Inter',sans-serif;border:1px dashed var(--rule);border-radius:9px;padding:11px 13px;font-size:13px;color:var(--ink-soft)}
  .dp-hand b{color:var(--ink)}
  @media(max-width:760px){.dp-jr .nm{width:78px}.dp-sect{padding:12px 14px}.dp-head{padding:13px 14px 11px}}
  /* ── delivery groups: collapsible per customer, with a marker that says so ──
     The maintenance list hides its disclosure triangle, which leaves a header that collapses but gives no
     sign it can. This one carries its own chevron and rotates it. */
  .ship-grp>summary{cursor:pointer;list-style:none;display:flex;align-items:baseline;gap:9px;
    font-family:'Inter',sans-serif;font-size:15px;font-weight:600;padding-bottom:9px;
    border-bottom:2px solid var(--ink);margin-bottom:4px}
  .ship-grp>summary::-webkit-details-marker{display:none}
  .ship-grp>summary::before{content:'';flex-shrink:0;width:0;height:0;margin-right:2px;align-self:center;
    border-left:5px solid var(--ink-faint);border-top:4px solid transparent;border-bottom:4px solid transparent;
    transition:transform .14s var(--ease-out)}
  .ship-grp[open]>summary::before{transform:rotate(90deg)}
  .ship-grp>summary:hover::before{border-left-color:var(--ink)}
  /* an amber "this needs your attention" line on the deliveries overview */
  .callout-warn{font-family:'Inter',sans-serif;font-size:13px;color:var(--warn-ink);background:var(--warn-bg-soft);border:1px solid var(--warn-line);
    border-radius:9px;padding:10px 13px}
  .callout-warn b{color:var(--warn-deep)}
  /* optional serial slots on the delivery ticket */
  .dl-opt{font-family:'Inter',sans-serif;font-size:13px;font-weight:600;color:var(--ink-faint);
    background:var(--surface);border:1px solid var(--rule);border-radius:20px;padding:1px 8px}
  .dl-sngrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:7px}
  .dl-snrow{display:flex;align-items:center;gap:7px}
  .dl-snrow .n{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-faint);width:46px;flex-shrink:0}
  .dl-snrow .inp{font-variant-numeric:tabular-nums;padding:6px 8px;font-size:13px;margin:0}
  .dl-snrow .inp.dl-filled{border-color:var(--good-line);background:var(--good-bg)}
  .geo-badge{font-family:'Inter',sans-serif;font-size:13px;padding:2px 8px;border-radius:999px}
  .geo-ok{background:var(--good-bg);color:var(--good)}.geo-pending{background:var(--warn-bg);color:var(--warn)}.geo-fail{background:var(--accent-soft);color:var(--accent)}
  .imp0{background:var(--neutral-bg);color:var(--ink-soft)}.imp1{background:var(--warn-bg);color:var(--warn)}.imp2{background:var(--accent-soft);color:var(--accent)}
  #dashMap{height:240px;border-radius:5px;z-index:1}
  .leaflet-popup-content{font-family:'Inter',sans-serif;font-size:13px}
  .empty{font-family:'Inter',sans-serif;text-align:center;color:var(--ink-faint);font-size:13px;padding:32px 0}
  .empty.list-refused{color:var(--ink-soft);font-size:14px;line-height:1.6}
  .empty.list-refused b{color:var(--ink);font-weight:600}
  .view-refused>:not(.list-refused){display:none!important}
  /* the office phone hides everything directly inside these two screens and draws its own deck: the notice stays */
  #view-maintenance#view-maintenance#view-maintenance>.list-refused,#view-shipment#view-shipment#view-shipment>.list-refused{display:block!important}
  @media(max-width:760px){#view-maintenance#view-maintenance#view-maintenance>.list-refused,#view-shipment#view-shipment#view-shipment>.list-refused{padding:72px 24px 32px}}

  /* ── motion / micro-interactions ── */
  button{transition:background .16s ease,color .16s ease,border-color .16s ease,transform .07s ease,opacity .16s ease}
  .btn-primary:active,.btn-line:active,.foot-link:active,.nav:active,.seglink:active{transform:translateY(1px)}
  .btn-primary:hover{box-shadow:0 3px 10px -3px rgba(var(--shade-rgb),.5)}
  .star{transition:transform .18s cubic-bezier(.34,1.56,.64,1),color .16s}
  .star:hover{transform:scale(1.18)} .star:active{transform:scale(.85)}
  .custrow,.dirrow,.mrow,.so-head,.nav,.foot-link{transition:background .14s ease}
  .so-card{transition:border-color .16s ease,box-shadow .16s ease}
  .so-card:hover{border-color:var(--rule-strong)}
  @keyframes fadeUp{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
  @keyframes fadeIn{from{opacity:0}to{opacity:1}}
  @keyframes modalIn{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
  .fade-in{animation:fadeUp .26s cubic-bezier(.16,1,.3,1)}
  .tabpane.on{animation:fadeUp .22s cubic-bezier(.16,1,.3,1)}
  .ov:not(.hidden){animation:fadeIn .15s ease}
  .modal{animation:modalIn var(--mo-pop-in)}
  @keyframes fadeDown{from{opacity:1;transform:none}to{opacity:0;transform:translateY(7px)}}
  .anim-pop{animation:fadeUp .34s cubic-bezier(.16,1,.3,1)}
  .anim-out{animation:fadeDown .19s ease forwards}
  .anim-fade{animation:fadeIn .26s ease}
  .figv{cursor:pointer}
  .figv:hover{opacity:.55}
  @media(prefers-reduced-motion:reduce){.anim-pop,.anim-out,.anim-fade{animation:none}
    /* movement off; the panels still change state, just without sliding */
    .sb,.wrap,.sb-panel,.sb .brandbox img{transition:none!important}}
  .so-items{overflow:hidden}
  .badge,.geo-badge,.status{transition:all .16s ease}
  .cat-chip{cursor:pointer;transition:border-color .15s,color .15s,background .15s}
  .cat-chip:hover{border-color:var(--accent)!important;color:var(--accent)!important;background:var(--accent-soft)!important}
  .cat-chip .pen{opacity:.35;margin-left:3px;font-size:13px} .cat-chip:hover .pen{opacity:.9}

  /* ── collapsible sidebar ── */
  /* the sidebar and the content column MUST share one duration+curve — they're one movement.
     (they used to disagree: max-width on a material curve, padding on plain `ease`, which read as a wobble) */
  .sb{transition:margin-left .42s var(--ease-drawer)}
  body.sb-collapsed .sb{margin-left:-283px}
  /* ⚠ COLLAPSE IS DEAD ON A LAPTOP, and leaving it live was a real break: the
     -283px was written for the old 282px sidebar. With the rail at 56 it drags
     the whole content column 227px off the left edge and the first stat is cut
     in half. The rail IS the collapsed state now — hover is the only opener, so
     there is nothing left to collapse and no button to bring it back.
     ⚠ The phone drawer at the bottom of this file keeps its own rules. */
  @media (min-width:761px){
    body.sb-collapsed .sb{margin-left:0}
    body.sb-collapsed .reopen-btn{display:none}
    body.sb-collapsed .wrap{max-width:1080px;padding-left:40px;padding-right:40px}
  }
  .collapse-btn{flex-shrink:0;width:26px;height:26px;border:1px solid var(--rule);border-radius:6px;background:var(--surface);color:var(--ink-soft);display:flex;align-items:center;justify-content:center;font-size:15px;line-height:1}
  .collapse-btn:hover{background:var(--paper);color:var(--ink)}
  /* display:contents, NOT none — the hamburger lives inside #mBar, and a position:fixed child of
     a display:none parent renders 0x0, which would strand a desktop user with the sidebar
     collapsed and no way to reopen it. `contents` removes the box but keeps the child. */
  #mBar{display:contents}
  .reopen-btn{position:fixed;top:16px;left:14px;z-index:50;width:34px;height:34px;border:1px solid var(--rule);border-radius:7px;background:var(--surface);color:var(--ink);display:none;align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(var(--shade-rgb),.1)}
  body.sb-collapsed .reopen-btn{display:flex;animation:fadeIn .25s ease}
  .reopen-btn:hover{background:var(--paper)}
  /* the two glyph buttons and the map's own zoom were the last things off the ladder:
     one inherited a browser default, the others come from the map library's stylesheet */
  .reopen-btn,.collapse-btn{font-size:13px}
  .leaflet-container,.leaflet-control-attribution{font-family:'Inter',sans-serif!important;font-size:13px!important}
  .leaflet-control-zoom a{font-family:'Inter',sans-serif!important;font-size:15px!important;line-height:30px!important}
  .wrap{margin:0 auto;transition:max-width .42s var(--ease-drawer),padding .42s var(--ease-drawer)}
  body.sb-collapsed .wrap{max-width:1380px;padding-left:56px;padding-right:56px}
  .sb-backdrop{display:none}
  /* sticky Back bar on the customer detail — stays at top while scrolling */
  .detail-backbar{position:sticky;top:0;z-index:40;background:var(--paper);padding:10px 0 9px;margin-bottom:8px}
  /* ── the trail ───────────────────────────────────────────────────────────────
     Replaces the lone "Back" button. Back told you there was a way out; it never told
     you where you were or how deep — and inside a customer, four levels down, that is
     the question. The last item is the page you are on, so it is not a link. */
  .crumbs{font-family:'Inter',sans-serif;font-size:13px;display:flex;align-items:center;gap:7px;color:var(--ink-faint);min-height:26px}
  .crumbs .crumb{background:none;border:none;padding:2px 0;font:inherit;color:var(--ink-soft);cursor:pointer;
    border-bottom:1px solid transparent;border-radius:0;white-space:nowrap}
  .crumbs .crumb:hover{color:var(--accent);border-bottom-color:var(--accent)}
  .crumbs .sep{color:var(--rule-strong);flex-shrink:0}
  .crumbs .here{color:var(--ink);font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .crumbs .ell{display:none;color:var(--ink-faint)}
  /* on a phone the middle of the path is the first thing to go — the two ends are what matter */
  @media(max-width:620px){
    .crumbs .mid,.crumbs .mid + .sep{display:none}
    .crumbs .ell{display:inline}
  }
  .editdel{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
  /* role-based visibility. owner-only = owner only; mgr-ok = owner + maintenance manager */
  body.role-nonowner .owner-only{display:none!important}
  /* ⚠ Projects is office-only: a technician and a driver do not see the item at
     all. The server refuses them too — this is the half that keeps them from
     ever knocking on a door that will not open. */
  body.role-tech .office-only,body.role-driver .office-only{display:none!important}
  body.role-sales .mgr-ok{display:none!important}
  /* New customer: shown only where reports-team.js mayAddCustomer() said yes (body.may-addcust) */
  body:not(.may-addcust) .addcust-ok{display:none!important}
  body.role-tech .mgr-ok{display:none!important}
  /* the shipment desk gets deliveries and customers only — no maintenance, no sales activity */
  body.role-shipment .mgr-ok,body.role-shipment .card-salesonly,body.role-shipment .mgr-hide{display:none!important}
  /* ⚠ ADMIN AND DESIGN: Projects, Files and the wall, and nothing else. A role that
     is named nowhere is a role nothing is hidden from — which is exactly how a new
     tick ends up showing somebody the figures. */
  body.role-narrow .mgr-ok,body.role-narrow .card-salesonly,body.role-narrow .mgr-hide,
  body.role-narrow .owner-only,body.role-narrow .sales-only{display:none!important}
  body.role-sales #salesCharts{grid-template-columns:1fr!important}
  .sales-only{display:none}
  body.role-sales .sales-only{display:block}
  /* maintenance-manager stripped customer detail: hide money/sales sections, show the service-machine block */
  body.role-maint #view-detail .mgr-hide{display:none!important}
  #view-detail .mgr-only{display:none}
  body.role-maint #view-detail .mgr-only{display:block}

  /* ── technician + driver views: their own simple, mobile-first look — no sidebar ── */
  body.role-tech .sb,body.role-tech .reopen-btn,body.role-tech .sb-backdrop,
  body.role-driver .sb,body.role-driver .reopen-btn,body.role-driver .sb-backdrop{display:none!important}
  body.role-tech .wrap,body.role-tech.sb-collapsed .wrap,
  body.role-driver .wrap,body.role-driver.sb-collapsed .wrap{max-width:600px!important;margin:0 auto!important;padding:22px 18px 60px!important}
  .tv-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}
  .tv-wm{font-family:'Inter',sans-serif;font-weight:600;font-size:15px;letter-spacing:-.01em}
  .tv-wm span{color:var(--ink-faint);font-weight:600}
  .tv-acctwrap{position:relative}
  .tv-acct{background:var(--ink);color:var(--on-ink);border:none;border-radius:20px;padding:8px 14px;font-size:15px;font-weight:600;font-family:'Inter',sans-serif;cursor:pointer;display:inline-flex;align-items:center;gap:6px;max-width:180px}
  .tv-acct #tvAcctName{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .tv-menu{position:absolute;right:0;top:44px;background:var(--surface);border:1px solid var(--rule);border-radius:10px;box-shadow:0 8px 24px rgba(var(--shade-rgb),.14);z-index:60;min-width:170px;padding:5px}
  .tv-menu button{display:block;width:100%;text-align:left;background:none;border:none;font-family:'Inter',sans-serif;font-size:13px;color:var(--ink);padding:10px 12px;border-radius:7px;cursor:pointer}
  .tv-menu button:hover{background:var(--paper)}
  .tv-msep{border-top:1px solid var(--rule-soft);margin:4px 6px}
  /* the delivery destination switch — customer, or one of our own places */
  .dl-dest{display:flex;border:1px solid var(--rule);border-radius:8px;padding:4px;gap:4px;background:var(--paper);margin-bottom:10px}
  .dl-dest button{flex:1;min-height:40px;border:none;background:none;border-radius:6px;font-family:'Inter',sans-serif;font-size:13px;font-weight:600;color:var(--ink-soft);cursor:pointer}
  .dl-dest button.on{background:var(--ink);color:var(--on-ink)}
  .tv-hi{font-family:'Inter',sans-serif;font-size:27px;font-weight:600;letter-spacing:-.01em}
  .tv-date{font-family:'Inter',sans-serif;font-size:15px;color:var(--ink-faint);margin-top:1px}
  .tv-count{font-family:'Inter',sans-serif;font-size:15px;color:var(--ink-soft);margin-top:15px}
  .tv-count b{color:var(--ink);font-weight:600}
  .tv-tabs{display:flex;gap:7px;margin:14px 0 2px;flex-wrap:wrap}
  .tv-tab{font-family:'Inter',sans-serif;font-size:15px;font-weight:600;color:var(--ink-soft);padding:8px 15px;border-radius:22px;border:1px solid var(--rule);background:var(--surface);cursor:pointer}
  .tv-tab.on{background:var(--ink);color:var(--on-ink);border-color:var(--ink)}
  .tv-jrow{display:flex;align-items:center;gap:12px;padding:16px 2px;border-top:1px solid var(--rule-soft);cursor:pointer}
  .tv-jrow:first-of-type{border-top:none}
  .tv-jm{flex:1;min-width:0}
  .tv-jc{font-family:'Inter',sans-serif;font-size:15px;font-weight:600;line-height:1.15}
  .tv-js{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-soft);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .tv-chev{width:20px;height:20px;color:var(--ink-ghost);stroke:currentColor;fill:none;stroke-width:2;flex-shrink:0}
  .tv-pill{font-family:'Inter',sans-serif;font-size:13px;font-weight:600;padding:3px 9px;border-radius:20px;margin-top:7px;display:inline-block}
  .tv-pill.baru{background:var(--paper);color:var(--ink-soft);border:1px solid var(--rule)}
  .tv-pill.kerja{background:var(--accent-soft);color:var(--accent)}
  .tv-pill.selesai{background:var(--good-bg);color:var(--good)}
  .tv-empty{font-family:'Inter',sans-serif;padding:44px 6px;text-align:center;color:var(--ink-faint);font-size:15px;line-height:1.5}
  .tv-back{display:inline-flex;align-items:center;gap:5px;font-family:'Inter',sans-serif;font-size:15px;font-weight:600;color:var(--ink-soft);background:none;border:none;margin-bottom:14px;cursor:pointer;padding:4px 0}
  .tv-back svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2.2}
  .tv-kchip{display:inline-block;font-family:'Inter',sans-serif;font-size:13px;font-weight:600;color:var(--ink-soft);background:var(--paper);border:1px solid var(--rule);padding:2px 8px;border-radius:4px}
  .tv-cust{font-family:'Inter',sans-serif;font-weight:600;font-size:27px;line-height:1.05;margin:9px 0 2px}
  .tv-mach{font-family:'Inter',sans-serif;font-size:15px;color:var(--ink-soft)}
  /* the serial the technician matches against the plate on the machine — bigger than the model line and
     tabular so 0/O and 1/l can't be misread. Its own line because it gets read digit by digit. */
  .tv-sn{font-family:'Inter',sans-serif;font-size:15px;margin-top:9px;font-variant-numeric:tabular-nums;letter-spacing:.03em;overflow-wrap:anywhere}
  .tv-sn .l{font-size:13px;font-weight:600;color:var(--ink-faint);display:block;margin-bottom:2px}
  .tv-prob{font-family:'Inter',sans-serif;font-size:15px;margin-top:12px;line-height:1.4}
  .tv-prob .l{font-size:13px;font-weight:600;color:var(--ink-faint);display:block;margin-bottom:2px}
  .tv-call{display:inline-flex;align-items:center;justify-content:center;gap:9px;width:100%;margin-top:14px;background:var(--ink);color:var(--on-ink);border:none;border-radius:12px;padding:13px;font-family:'Inter',sans-serif;font-size:15px;font-weight:600;text-decoration:none}
  .tv-call svg{width:17px;height:17px;stroke:var(--on-dark);fill:none;stroke-width:1.8}
  .tv-bring{font-family:'Inter',sans-serif;font-size:15px;color:var(--warn);margin-top:10px}.tv-bring b{font-weight:600}
  .tv-steps{display:flex;justify-content:space-between;position:relative;margin:20px 10px 8px}
  .tv-steps::before{content:"";position:absolute;top:16px;left:38px;right:38px;height:2px;background:var(--rule)}
  /* flex:1, not width:33% — an installation shows FOUR steps and three fixed thirds overflow the row */
  .tv-step{display:flex;flex-direction:column;align-items:center;gap:7px;flex:1;min-width:0;position:relative;cursor:pointer}
  .tv-dot{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-family:'Inter',sans-serif;font-size:15px;font-weight:600;background:var(--surface);border:2px solid var(--rule);color:var(--ink-faint)}
  .tv-dot svg{width:16px;height:16px;stroke:var(--on-dark);fill:none;stroke-width:3}
  .tv-step.on .tv-dot{background:var(--ink);border-color:var(--ink);color:var(--on-ink)}
  .tv-step.done .tv-dot{background:var(--good);border-color:var(--good)}
  .tv-step .tvt{font-family:'Inter',sans-serif;font-size:13px;font-weight:600;color:var(--ink-faint)}
  .tv-step.on .tvt{color:var(--ink)}.tv-step.done .tvt{color:var(--good)}
  .tv-act{width:100%;border:none;border-radius:14px;padding:18px;font-family:'Inter',sans-serif;font-size:15px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:10px;cursor:pointer}
  .tv-act.dark{background:var(--ink);color:var(--on-ink)}.tv-act.green{background:var(--good);color:var(--on-dark)}
  .tv-act svg{width:20px;height:20px;stroke:var(--on-dark);fill:none;stroke-width:2}
  .tv-sub{font-family:'Inter',sans-serif;text-align:center;font-size:13px;color:var(--ink-faint);margin-top:9px}
  .tv-act:disabled{background:var(--rule-strong);color:var(--ink-faint);cursor:not-allowed}

  /* ── the photo thumb is a tap target ── */
  .tv-tap{position:relative;display:block;width:100%;border:none;padding:0;background:none;cursor:pointer;border-radius:6px;overflow:hidden}
  .tv-tap:active img{transform:scale(.98)}
  .tv-tap img{transition:transform 240ms var(--ease-out)}
  .tv-tapl{position:absolute;right:5px;bottom:5px;background:rgba(var(--veil-rgb),.6);color:var(--on-dark);border-radius:4px;
           padding:2px 6px;font-family:'Inter',sans-serif;font-size:13px;pointer-events:none}

  /* ── "what's still missing" strip ── */
  .tv-cnt{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-family:'Inter',sans-serif;font-size:13px;
          background:var(--surface);border:1px solid var(--rule);border-radius:7px;padding:7px 10px;margin-bottom:10px}
  .tv-cnt b{font-family:var(--num);font-variant-numeric:tabular-nums;font-weight:500}
  .tv-cnt .warn{color:var(--accent);font-weight:600}
  .tv-cnt .done{color:var(--good);font-weight:600}
  .tv-cbar{flex:1;min-width:50px;height:3px;background:var(--rule);border-radius:2px;overflow:hidden}
  .tv-cbar i{display:block;height:100%;transition:width 420ms var(--ease-out)}

  /* ── the full-photo viewer ──────────────────────────────────────────────────
     The grid thumb is object-fit:cover in a fixed 104px box, so it centre-crops every photo —
     a portrait shot loses its top and bottom, and the tech could not tell two photos apart or
     check what they'd actually captured. This shows the frame CONTAINed: nothing cut off. */
  #tvLb{position:fixed;inset:0;z-index:900;background:rgba(var(--panel-rgb),.95);display:none;flex-direction:column;
        opacity:0;transition:opacity 190ms var(--ease-out)}
  #tvLb.on{display:flex} #tvLb.in{opacity:1}
  .tvlb-bar{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;flex-shrink:0}
  .tvlb-bar .who{font-family:var(--num);font-variant-numeric:tabular-nums;font-size:13px;color:rgba(var(--lift-rgb),.7)}
  .tvlb-x{background:none;border:none;color:rgba(var(--lift-rgb),.72);font-size:19px;line-height:1;cursor:pointer;padding:4px 9px;border-radius:6px}
  .tvlb-stage{flex:1;display:flex;align-items:center;justify-content:center;position:relative;min-height:0;padding:0 6px}
  .tvlb-stage img,.tvlb-stage video{max-width:100%;max-height:100%;object-fit:contain;border-radius:2px}
  .tvlb-nav{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:40px;border-radius:50%;
            background:rgba(var(--lift-rgb),.13);border:none;color:var(--on-dark);font-size:15px;cursor:pointer}
  .tvlb-nav:disabled{opacity:.18} .tvlb-nav.l{left:8px} .tvlb-nav.r{right:8px}
  .tvlb-dots{display:flex;gap:5px;justify-content:center;padding:7px 0 2px;flex-shrink:0}
  .tvlb-dots i{width:5px;height:5px;border-radius:50%;background:rgba(var(--lift-rgb),.28)}
  .tvlb-dots i.on{background:var(--surface)}
  .tvlb-foot{flex-shrink:0;padding:11px 14px 18px;max-height:38vh;overflow-y:auto}
  .tvlb-cap{font-family:'Inter',sans-serif;font-size:15px;color:var(--on-dark);margin-bottom:10px;line-height:1.45}
  .tvlb-cap.none{color:rgba(var(--lift-rgb),.42);font-style:italic}
  .tvlb-row{display:flex;gap:7px}
  .tvlb-btn{font-family:'Inter',sans-serif;font-size:13px;font-weight:600;border:1px solid rgba(var(--lift-rgb),.2);
            background:rgba(var(--lift-rgb),.06);color:rgba(var(--lift-rgb),.88);border-radius:7px;padding:9px 11px;cursor:pointer;flex:1}
  .tvlb-btn:active{background:rgba(var(--lift-rgb),.16)}
  .tvlb-btn.del{border-color:rgba(var(--veil-rgb),.45);color:var(--accent-on-dark)}
  @media(prefers-reduced-motion:reduce){#tvLb{transition:none}.tv-tap img{transition:none}.tv-cbar i{transition:none}}

  /* ── BLUR-UP THUMBNAIL ──────────────────────────────────────────────────────
     A phone JPEG has no placeholder, so the browser paints it top-to-bottom as the bytes land —
     it reads like a page coming out of a printer. The 24px copy (?w=2, a few hundred bytes) lands
     almost instantly, blurred and stretched into the frame, and the real photo fades in over it.
     Size the .pvth wrapper itself; both images fill it. */
  .pvth{position:relative;display:block;width:100%;overflow:hidden;border-radius:6px;background:var(--rule);
        padding:0;border:0;line-height:0;cursor:zoom-in}
  .pvth .t{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:blur(11px);transform:scale(1.1)}
  .pvth .f{position:relative;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity 240ms var(--ease-out)}
  .pvth.go .f{opacity:1}
  .pvth:focus:not(:focus-visible){outline:none}   /* a mouse click must not leave a ring behind — keyboard focus still shows below */
  .pvth:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
  .pvth.fit .f,.pvth.fit .t{object-fit:contain}
  .pvth.fit{background:var(--neutral-bg)}

  /* ── THE OFFICE PHOTO VIEWER ────────────────────────────────────────────────
     Deliberately the same look as the technician's own viewer (#tvLb) — dark, whole frame visible,
     arrows, caption — but with none of its editing actions, since the office grid has its own. */
  #pvLb{position:fixed;inset:0;z-index:1200;background:rgba(var(--panel-rgb),.95);display:none;flex-direction:column;
        opacity:0;transition:opacity 190ms var(--ease-out)}
  #pvLb.on{display:flex} #pvLb.in{opacity:1}
  .pvlb-bar{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;flex-shrink:0}
  .pvlb-bar .who{font-family:var(--num);font-variant-numeric:tabular-nums;font-size:13px;color:rgba(var(--lift-rgb),.7)}
  .pvlb-x{background:none;border:none;color:rgba(var(--lift-rgb),.72);font-size:27px;line-height:1;cursor:pointer;padding:4px 9px;border-radius:6px}
  .pvlb-stage{flex:1;display:flex;align-items:center;justify-content:center;position:relative;min-height:0;padding:0 6px}
  .pvlb-stage img,.pvlb-stage video{max-width:100%;max-height:100%;object-fit:contain;border-radius:2px}
  .pvlb-nav{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:40px;border-radius:50%;
            background:rgba(var(--lift-rgb),.13);border:none;color:var(--on-dark);font-size:15px;cursor:pointer}
  .pvlb-nav:disabled{opacity:.18} .pvlb-nav.l{left:8px} .pvlb-nav.r{right:8px}
  /* ── the note must never end up behind the photo ─────────────────────────────
     The picture sits in a wrapper div inside the stage. The stage is a flex ROW with
     align-items:center, so that wrapper was only as tall as its contents — which makes
     the image's own max-height:100% resolve against nothing, and a tall (portrait) photo
     simply overflowed downward across the note.
     align-self:stretch gives the wrapper the stage's full height, so max-height finally
     has something to measure against. min-height/min-width:0 because a flex item refuses
     to shrink below its content by default, which is the other half of the same bug. */
  #pvlbMedia,#tvlbMedia{align-self:stretch;flex:1;min-width:0;min-height:0;
    display:flex;align-items:center;justify-content:center}
  #pvlbMedia img,#pvlbMedia video,#tvlbMedia img,#tvlbMedia video{max-width:100%;max-height:100%;object-fit:contain}
  /* a long note gets its own scroll rather than squeezing the photo away */
  .pvlb-foot{flex-shrink:0;padding:12px 16px 20px;max-height:34vh;overflow-y:auto}
  .pvlb-cap{font-family:'Inter',sans-serif;font-size:13px;color:var(--on-dark);line-height:1.45;text-align:center}
  .pvlb-cap.none{color:rgba(var(--lift-rgb),.42);font-style:italic}
  @media(prefers-reduced-motion:reduce){#pvLb{transition:none}.pvth .f{transition:none}}
  .tv-ghost{width:100%;background:none;border:none;color:var(--ink-faint);font-family:'Inter',sans-serif;font-size:15px;font-weight:600;margin-top:12px;text-decoration:underline;cursor:pointer}
  .tv-locked{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;border:1.5px dashed var(--rule);border-radius:14px;padding:16px;font-family:'Inter',sans-serif;font-size:15px;font-weight:600;color:var(--ink-ghost);text-align:center;line-height:1.3}
  .tv-more{margin-top:14px;border-top:1px solid var(--rule-soft);padding-top:2px}
  .tv-more>summary{font-family:'Inter',sans-serif;font-size:15px;font-weight:600;color:var(--ink-soft);cursor:pointer;list-style:none;padding:10px 0}
  .tv-more>summary::-webkit-details-marker{display:none}
  .tv-more>summary::after{content:"+";float:right;color:var(--ink-faint);font-weight:600}
  .tv-more[open]>summary::after{content:"\2013"}

  /* ── the machine step on a multi-day installation ───────────────────────────────────────────
     The technician records HOW MANY of each machine type went in today — a count, never a serial.
     Headline is a sentence, not a bare statistic: "8 of 12" alone left an older technician unsure
     whether that was good news or a problem, so the line under it says what it means for him. */
  .mi-head{margin-top:18px}
  .mi-big{font-family:'Inter',sans-serif;font-size:19px;font-weight:600;line-height:1.2}
  .mi-big .n{font-family:var(--num);font-variant-numeric:tabular-nums;font-weight:600;font-size:15px}
  .mi-sub{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-soft);margin-top:4px}
  .mi-bar{height:6px;background:var(--rule);border-radius:3px;overflow:hidden;margin-top:11px}
  .mi-bar i{display:block;height:100%;background:var(--good);border-radius:3px;transition:width 420ms var(--ease-out)}
  /* one white box per machine with the category colour on its left edge — the app's machine card */
  .mi-list{margin-top:16px;display:grid;gap:10px}
  .mi-row{background:var(--surface);border:1px solid var(--rule);border-left:3px solid var(--cat,var(--ink-faint));
          border-radius:9px;padding:13px 14px;display:flex;align-items:center;gap:12px;font-family:'Inter',sans-serif}
  /* tint three sides only — a blanket border-color would repaint the LEFT edge too and throw away
     the category colour exactly when the row is finished */
  .mi-row.done{background:var(--paper);border-top-color:var(--good-line);border-right-color:var(--good-line);border-bottom-color:var(--good-line)}
  .mi-row.locked{opacity:.55}
  .mi-m{flex:1;min-width:0}
  .mi-nm{font-size:15px;font-weight:600;line-height:1.2;overflow-wrap:anywhere}
  .mi-cat{font-size:13px;color:var(--ink-faint);margin-top:3px}
  /* Two SHORT lines that cannot wrap. One long "3 / 6 terpasang +3 hari ini" line broke onto three
     lines at 375px next to the 150px-wide stepper, which is where a row stops being scannable. */
  .mi-cnt{font-family:'Inter',sans-serif;font-size:15px;margin-top:6px;color:var(--ink-soft);white-space:nowrap}
  .mi-cnt b{font-family:var(--num);font-variant-numeric:tabular-nums;font-size:15px;color:var(--ink);font-weight:600}
  .mi-today{display:block;color:var(--good);font-weight:600;font-family:'Inter',sans-serif;font-size:13px;
            margin-top:2px;white-space:nowrap}
  .mi-act{flex-shrink:0;border:1px solid var(--ink);background:var(--ink);color:var(--on-ink);border-radius:9px;padding:13px 15px;
          font-family:'Inter',sans-serif;font-size:15px;font-weight:600;cursor:pointer;min-width:78px;text-align:center}
  .mi-act.ok{background:var(--good-bg);border-color:var(--good-line);color:var(--good);display:inline-flex;align-items:center;justify-content:center;gap:6px}
  .mi-act.ok svg{width:15px;height:15px;stroke:var(--good);fill:none;stroke-width:3}
  span.mi-act{cursor:default;background:var(--neutral-bg);border-color:var(--star-bg);color:var(--ink-faint);display:inline-block}
  /* the minus/plus. 52px squares: these are pressed with a thumb, in a factory, by someone who
     may be wearing gloves — the 44px minimum is a floor, not a target. */
  .mi-step{display:flex;align-items:center;flex-shrink:0;border:1px solid var(--rule);border-radius:10px;overflow:hidden}
  .mi-step button{width:52px;height:52px;border:none;background:var(--surface);font-size:27px;font-weight:600;
                  color:var(--ink);cursor:pointer;font-family:'Inter',sans-serif;line-height:1;padding:0}
  .mi-step button:active{background:var(--paper)}
  .mi-step button:disabled{color:var(--mute);cursor:not-allowed}
  .mi-step .v{width:46px;text-align:center;font-family:var(--num);font-variant-numeric:tabular-nums;font-size:15px;font-weight:600;
              border-left:1px solid var(--rule);border-right:1px solid var(--rule);line-height:52px}
  .mi-all{margin-top:14px;background:var(--good-bg);border:1px solid var(--good-line);border-radius:10px;padding:13px 15px;
          font-family:'Inter',sans-serif;font-size:15px;font-weight:600;color:var(--good);display:flex;gap:9px;align-items:center;line-height:1.35}
  .mi-all svg{width:17px;height:17px;stroke:var(--good);fill:none;stroke-width:2.6;flex-shrink:0}
  /* literal #993C1D, not var(--warn): --warn is defined ONLY inside #maintOverviewWrap, so out here
     it resolves to nothing and the declaration is dropped (which is why .tv-bring's amber never
     shows on the technician's phone). --ink-ghost has no definition anywhere. */
  .mi-left{margin-top:14px;background:var(--alert-bg);border:1px solid var(--alert-line);border-radius:10px;padding:13px 15px;
           font-family:'Inter',sans-serif;font-size:15px;color:var(--alert);line-height:1.45}
  .mi-left b{font-weight:600}
  /* a passed step that is NOT actually finished. A green tick above a greyed-out "Job selesai" is
     the screen contradicting itself, which is exactly what an unsure technician reads wrong. */
  .tv-step.part .tv-dot{background:var(--alert-bg);border-color:var(--alert-line-strong);color:var(--alert)}
  .tv-step.part .tvt{color:var(--alert)}

  /* ── notifications: a bell in the masthead, the list floats in front of the page ──
     This block lives in the global sheet on purpose. It used to sit in a <style> tag inside the
     dashboard view, and the Figures rewrite deleted that whole view — taking the bell's looks with it,
     on every screen that mounts one. Shared chrome cannot live inside one view's markup. */
  .nbwrap{position:relative;display:inline-flex}
  .nbell{position:relative;border:1px solid var(--rule);background:var(--surface);border-radius:8px;width:38px;height:34px;
    display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
  .nbell:hover{border-color:var(--ink-faint)}
  .nbell.on{background:var(--ink);border-color:var(--ink)}
  .nbell svg{width:17px;height:17px;fill:none;stroke:var(--ink-soft);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  .nbell.on svg{stroke:var(--on-dark)}
  .nbell .nbdot{position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;border-radius:9px;background:var(--accent);
    color:var(--on-accent);font-size:13px;font-weight:600;display:flex;align-items:center;justify-content:center;padding:0 5px;
    font-family:'Inter',sans-serif;border:2px solid var(--surface)}
  .nbell .nbdot.hidden{display:none}
  /* the catcher must sit UNDER the panel but OVER the page; the panel's own stacking context is the
     masthead, so the masthead gets the higher z-index — a panel at 60 inside a bar at 40 still loses. */
  .ncatch{position:fixed;inset:0;z-index:50;display:none}
  .ncatch.on{display:block}
  .npanel{position:absolute;top:calc(100% + 9px);right:0;width:394px;max-width:calc(100vw - 24px);z-index:60;
    background:var(--surface);border:1px solid var(--rule);border-radius:12px;overflow:hidden;
    box-shadow:0 14px 40px rgba(var(--shade-rgb),.18);display:none;transform-origin:top right;animation:npop .16s var(--ease-out)}
  .npanel.on{display:block}
  @keyframes npop{from{opacity:0;transform:translateY(-6px) scale(.985)}to{opacity:1;transform:none}}
  .nphead{display:flex;align-items:center;gap:10px;padding:12px 17px;border-bottom:1px solid var(--rule);background:var(--paper)}
  .nphead .h{font-size:13px;color:var(--ink-faint);font-weight:500}
  .nphead .act{margin-left:auto;font-size:13px;color:var(--ink-soft);cursor:pointer;border:none;background:none;font-family:inherit;padding:0}
  .nphead .act:hover{color:var(--accent)}
  .nphead .x{display:none;border:none;background:none;font-size:15px;color:var(--ink-soft);cursor:pointer;font-family:inherit;line-height:1;padding:0}
  .nplist{max-height:392px;overflow-y:auto}
  .nrow{display:flex;gap:12px;padding:13px 17px;border-top:1px solid var(--rule-soft);cursor:pointer;align-items:flex-start}
  .nrow:first-child{border-top:none}
  .nrow:hover{background:var(--paper)}
  .nrow .nu{width:7px;height:7px;border-radius:50%;background:var(--accent);flex-shrink:0;margin-top:6px}
  .nrow .nsw{width:9px;height:9px;flex-shrink:0;margin-top:5px}
  .nsw.delivery_done{background:var(--info)}.nsw.parts_ready{background:var(--star)}.nsw.contract_overdue{background:var(--ok)}
  .nrow .nb{flex:1;min-width:0}
  .nrow .nhl{font-family:'Inter',sans-serif;font-size:15px;font-weight:600;line-height:1.35}
  .nrow .nsub{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-soft);margin-top:3px}
  /* the technician reads one fact per line — bigger, and with room to breathe between them */
  .nrow .nsub.stack{font-size:15px;line-height:1.55;margin-top:5px}
  .nrow .nwhen{font-family:var(--num);font-variant-numeric:tabular-nums;font-size:13px;color:var(--ink-faint);margin-top:4px}
  .nrow.read{background:var(--paper)}
  .nrow.read .nhl{font-weight:400;color:var(--ink-soft)}
  .nrow.read .nsw{opacity:.35}
  .nrow.read .nu{background:transparent}
  .npempty{padding:34px 20px;text-align:center;color:var(--ink-faint);font-size:13px;font-family:'Inter',sans-serif}
  @media(max-width:760px){
    /* ⚠ NOT A PAGE. It used to take the whole screen, which threw away whatever you
       were reading to tell you one thing. It is a sheet from the bottom now — near the
       thumb, with the screen you were on still there above it and behind the dimming.
       Anchored at the bottom rather than under the bell because the bell is at the top
       and everything worth keeping in sight is up there with it. */
    .npanel{position:fixed;left:0;right:0;bottom:0;top:auto;width:auto;max-width:none;
      max-height:62%;border:none;border-top:1px solid var(--rule);border-radius:16px 16px 0 0;
      display:none;flex-direction:column;z-index:320;transform-origin:bottom center;
      box-shadow:0 -14px 40px -14px rgba(var(--shade-rgb),.45);animation:nsheet .22s var(--ease-drawer)}
    .npanel.on{display:flex}
    @keyframes nsheet{from{transform:translateY(14px);opacity:0}to{transform:none;opacity:1}}
    @media (prefers-reduced-motion:reduce){.npanel{animation:none}}
    /* the grab bar, so it reads as a sheet you can dismiss rather than a box that appeared */
    .npanel::before{content:'';display:block;width:36px;height:4px;border-radius:2px;
      background:var(--rule-strong);margin:9px auto 0;flex-shrink:0}
    .nplist{max-height:none;flex:1;padding-bottom:max(6px,var(--sab))}
    .nphead{background:var(--surface);border-bottom:1px solid var(--rule-soft);padding:11px 17px}
    .nphead .x{display:block;order:3;margin-left:0}
    .nphead .h{margin-left:0;font-size:15px;color:var(--ink);font-weight:600}
    .nphead .act{margin-left:auto;white-space:nowrap;flex-shrink:0}
    /* the screen behind dims instead of disappearing */
    .ncatch.on{background:rgba(var(--veil-rgb),.34);z-index:315}
    /* nothing of the app floats over the sheet */
    body:has(.npanel.on) .mph-pill{display:none}
  }

  /* ── mobile / responsive (phones & small tablets) ── */
  @media(max-width:760px){
    /* sidebar becomes a slide-in drawer over the content */
    .sb{position:fixed;top:0;left:0;bottom:0;width:84vw;max-width:300px;z-index:300;
        margin-left:0;box-shadow:6px 0 34px rgba(var(--shade-rgb),.2);
        transform:translateX(0);transition:transform .3s cubic-bezier(.4,0,.2,1)}
    /* ⚠ A TRANSFORM ONLY MOVES IT. Slid off-screen the drawer was still in the page:
       still tabbable, still hit-testable, so a phone carried 9 to 14 controls nobody
       could see or reach — Log out and Manage team among them. visibility:hidden takes
       it out of the tab order and out of hit-testing; the delay lets the slide finish
       before it goes, so the animation is unchanged. */
    body.sb-collapsed .sb{margin-left:0;transform:translateX(-108%);
      visibility:hidden;transition:transform .3s cubic-bezier(.4,0,.2,1),visibility 0s linear .3s}
    body:not(.sb-collapsed) .sb{visibility:visible;transition:transform .3s cubic-bezier(.4,0,.2,1),visibility 0s}
    .sb-backdrop{position:fixed;inset:0;background:rgba(var(--veil-rgb),.42);z-index:250;animation:fadeIn .2s ease}
    body.sb-collapsed .sb-backdrop{display:none}
    body:not(.sb-collapsed) .sb-backdrop{display:block}
    .reopen-btn{display:flex}

    /* ── the mobile header row ────────────────────────────────────────────────
       #mBar is a REAL 52px sticky row that owns the hamburger, so no fixed button floats over
       content any more. That deletes two magic numbers: .wrap's 56px top padding (which every
       view paid to clear the hamburger) and .detail-backbar's 46px left inset (which dodged it
       again, creating the app's deepest left edge for its shallowest control). */
    /* ⚠ ONE SURFACE. This sat on --paper while the sheet below it was white, so it
       read as a grey gap rather than a bar — and the hamburger and the bell floated
       on it as two bordered white boxes, making three surfaces inside 52px. White,
       with a hairline under it, is the same bar the technician already has and the
       same one now along the bottom. */
    #mBar{display:flex;align-items:center;gap:4px;position:sticky;top:0;z-index:60;height:52px;
          padding:0 10px 0 6px;background:var(--surface);border-bottom:1px solid var(--rule);
          flex-shrink:0}
    /* on a bar an icon IS the control — it does not need a card around it */
    #mBar .reopen-btn,#mBar .nbell{border:0;background:none;box-shadow:none;border-radius:50%}
    #mBar .reopen-btn:active,#mBar .nbell:active{background:var(--field)}
    #mBar .nbell.on{background:var(--ink)}
    /* the right-hand end of the phone header: the bell, then your own face. Both are
       44px targets, and the face is the ONLY route a manager on a phone has to their
       own picture — the Manage team screen it used to hide behind is owner-only. */
    #mBarRight{margin-left:auto;display:flex;align-items:center;gap:8px;flex-shrink:0}
    #mBarMe{width:38px;height:38px;flex-shrink:0}
    #mBarMe::after{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
      width:44px;height:44px}   /* the ink is 38, the target is 44 */
    body.role-tech #mBar,body.role-driver #mBar{display:none}   /* technician + driver views have no sidebar to open */
    .reopen-btn{position:static;display:flex;animation:none}
    body:not(.sb-collapsed) .reopen-btn{visibility:hidden}   /* drawer open → keep the row's height, hide the button */
    .wrap,body.sb-collapsed .wrap{max-width:100%!important;margin:0!important;padding:16px 16px 44px!important}
    /* #maintFab is fixed and occludes ~68px; 44px of bottom padding left a 24px arithmetic
       error, so the last maintenance row could never be scrolled clear */
    #view-maintenance{padding-bottom:84px!important}
    /* ⚠ 16px, NOT 15. iOS Safari zooms the page in the moment you focus a field under 16px
       and never zooms back out — one tap on a search box and the app stays zoomed. This
       line said 16 in its comment and 15 in its value, which is exactly the bug he kept
       hitting on some handsets and not others. !important on purpose: it has to beat the
       13–15px field sizes in manage.css, meetings.css and phone-deck.css. */
    input,textarea,select{font-size:16px!important}
    /* and no 300ms wait-for-a-double-tap on anything, since a double tap now does nothing */
    html{touch-action:manipulation;-webkit-text-size-adjust:100%}

    /* ── THE TYPE RAMP ─────────────────────────────────────────────────────────
       31 font sizes lived in this file with 15 distinct values between 9px and 16px — a cloud
       at 0.5px resolution. 11 vs 11.5 vs 12 carry no rank, so hierarchy fell to weight and
       colour alone, and the only mobile-specific size in the whole app was the iOS anti-zoom
       hack above — not a type decision. Five steps, each ≥1.25× the last:
         m1 11  meta / eyebrow / mono / chips      (was 9 – 11.5)
         m2 14  UI body, secondary lines           (was 12 – 13.5)
         m3 17.5 the row datum — what you scan     (was 14 – 15)
         m4 22  section headings                   (was 17 – 19)
         m5 27.5 page titles                       (was 25 – 27)
       !important is load-bearing here: this file's type lives in inline style= attributes, so
       a class rule loses to them. The note view already does this and is the model.
       NB every step ≥17.5 stays above 16px, so iOS still won't zoom on focus. */
    /* ⚠ THE PHONE NO LONGER HAS ITS OWN SCALE. It had five sizes of its own, which is
       why 17.5 sat beside 14.5 beside 11.5 on one screen: two rulebooks, both winning
       somewhere. These now point at the same four sizes the whole app uses, so the
       rules below are harmless — they restate the ladder rather than fight it. */
    :root{--m1:13px;--m2:13px;--m3:15px;--m4:15px;--m5:27px}
    .eyebrow,.mslab,.mono-chip,.mlsub,.rank{font-size:var(--m1)!important}
    .mlsub .mo{font-size:var(--m1)!important}
    .mlt{font-size:var(--m3)!important;line-height:1.25}
    .mslab .c{font-size:var(--m3)!important}
    h1{font-size:var(--m5)!important;line-height:1.12}
    h2{font-size:var(--m4)!important;line-height:1.18}
    h3{font-size:var(--m3)!important}
    .dr-main > div:first-child{font-size:var(--m3)!important;line-height:1.25}
    .dr-main > div:last-child{font-size:var(--m1)!important}
    .dr-rev{font-size:var(--m2)!important}

    /* Collapse the two-column PANELS only — opt-in via .col2, never a blanket match.
       This replaced [style*="grid-template-columns"]{...!important}, which could not tell a
       modal field pair from the 7-column calendar (31 full-width cells on a phone) or from
       the technician photo contact sheet (one photo per row — on the one surface built for
       phones). Those already declare templates that self-collapse; they just needed to be
       left alone. Tag a new 2-col panel with class="col2" and it stacks; tag nothing and it
       keeps the template its author wrote. */
    .col2{grid-template-columns:minmax(0,1fr)!important;gap:18px!important}
    #view-detail,#view-maintenance{overflow-wrap:anywhere}   /* long SKUs/codes/serials break instead of forcing horizontal scroll */
    #view-dashboard{overflow-x:hidden}   /* same durable guard #view-maintenance already had */
    .editdel-txt{display:none}   /* Edit/Delete become icon-only on mobile so they don't squish */
    .editdel{padding:8px 11px}

    /* ── ONE SPINE ─────────────────────────────────────────────────────────────
       Every layer used to add its own desktop-era padding on top of the 16px gutter and
       none of them reset here, so one scrolling column had EIGHT left edges:
         16 gutter · 32 panel · 34 row · 46 needs-row · 47 sumrow · 49 field row ·
         52 stat · 62 back bar
       On a phone a row is the full width — it has no neighbours to be separated from, so
       its horizontal padding buys nothing and costs alignment. Rows carry NO horizontal
       padding of their own and panels go flush; everything lands on the gutter (16) and
       the right edge lands on 359. Do NOT re-add padding-left to a row here. */
    /* bleeds to the screen edges and pays the 16px gutter itself — see the note at the
       #maint*Wrap rule above; zeroing the padding in place jams the text on the card's border */
    /* the band's own black rule is 16px below this one and is the divider that means
       something, so the wrap's top border is a second line saying less */
    /* ⚠ NOTHING LEFT TO BLEED. This used to drag the card out to the screen edges
       and pay the gutter itself; with no card the negative margins would pull the
       content outside the gutter instead. */
    #maintOverviewWrap{margin-left:0;margin-right:0;padding:2px 0 0;border:none;border-radius:0}
    /* every row class, not just the ones the audit happened to name — .mlrow (Reports) and
       .custrow sit on the same column and were still paying their own 2-4px */
    .mrow,.mtrow,.mlrow,.custrow,.ov-sumrow,.ov-frow,.ov-stat{padding-left:0;padding-right:0}
    /* the amber "needs attention" rule is drawn as an inset shadow, not a border+padding,
       so the state still reads but the text stays on the spine instead of at 46 */
    .mtrow.needs{padding-left:0;border-left:none;border-radius:0;box-shadow:inset 3px 0 0 var(--warn)}

    /* stat band & info bar wrap instead of cramming one row */
    .stat-band{flex-wrap:wrap;gap:2px 18px}
    .stat{flex:1 1 40%;padding:13px 0}
    .stat + .stat{padding-left:0;border-left:none}

    /* ── the info bar was reflowing per customer ───────────────────────────────
       flex-wrap:wrap with no flex-basis meant each cell was shrink-to-fit sized by its own
       content, so "Andi, Budi, Cahyo" decided the wrap points and the band landed in a
       different arrangement for every customer record. A declared 2x2 is the same shape
       regardless of content length. */
    .info-bar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}
    .info-cell{padding:11px 0;min-width:0}
    .info-cell + .info-cell{padding-left:0;border-left:none}

    /* THE 8TH EDGE, finally on the spine. The 46px inset existed only to dodge the floating
       hamburger while this bar was stuck at top:0. #mBar owns the hamburger now, so the inset
       is gone and the bar sticks BELOW the header row instead of underneath it. */
    /* ⚠ NOT STICKY ON A PHONE. Stuck, it painted over the line beneath it and sliced
       "Service, scheduled work & installation" in half — which is what a stuck element
       does to what follows it. It was pinned back when the phone had no header of its
       own; there is a top bar that never moves now, and a bottom bar under the thumb,
       so this can sit in the page like any other row. */
    .detail-backbar{position:static;padding:8px 0;margin-bottom:4px;top:auto}
    .crumbs{position:static}
    /* tab bar WRAPS onto multiple rows — no sideways scroll (page scrolls vertically only) */
    .tabbar{flex-wrap:wrap;gap:6px 16px}
    .tab{padding-bottom:8px}

    /* customer rows (Customers page + dashboard "Important"/"Top customers"):
       line 1 = avatar + full name; every chip/figure/star wraps to a tidy line 2.
       fixes cramping, chips sticking out, and the churn-chip-over-name overlap. */
    .dirrow, #recentOrders .mrow{flex-wrap:wrap;align-items:center;column-gap:8px;row-gap:5px}
    .dirrow > div[style*="min-width:0"], #recentOrders .mrow > span[style*="min-width:0"]{flex:1 1 calc(100% - 78px)!important;min-width:0!important}
    .dirrow > span[style*="108px"], #recentOrders .mrow > span[style*="120px"]{width:auto!important;flex-shrink:1}
    .dirrow > .star{margin-left:auto}

    /* ── the Customers row: declared areas, not wrap ───────────────────────────
       Fixes two findings at once.
       (1) Mobile was DELETING the revenue column: the row declares a real
           width:108px;text-align:right, and the old rule replaced it with
           width:auto;flex-shrink:1 — so the figure's left edge was set by wherever the churn
           chip happened to end ("At risk · 14mo" vs nothing at all) and text-align:right
           became a no-op. Revenue now holds a real right column again.
       (2) The layout hung off inline-style SUBSTRINGS — [style*="min-width:0"],
           [style*="108px"]. Reformat that inline style to `min-width: 0` with a space and the
           rule silently stops matching, no error anywhere. These are classes now. (The old
           flex rules above are inert inside a grid container, and the 78px budget in
           calc(100% - 78px) matched nothing real: avatar+gap is 40px, the star ~19px.)
       Line 2 always starts under `main`, whatever the chips do. */
    .drow-cust{display:grid;grid-template-columns:32px minmax(0,1fr) auto;
               grid-template-areas:"avatar main star" ".      chips rev";
               column-gap:10px;row-gap:6px;align-items:center}
    .drow-cust > .dr-avatar{grid-area:avatar}
    .drow-cust > .dr-main{grid-area:main;min-width:0}
    .drow-cust > .dr-chips{grid-area:chips;justify-self:start;gap:6px;flex-wrap:wrap}
    .drow-cust > .dr-rev{grid-area:rev;width:auto!important;justify-self:end;text-align:right!important}
    .drow-cust > .star{grid-area:star;justify-self:end;margin-left:0}
    #recentOrders .mrow > span[style*="120px"]{margin-left:auto;text-align:right!important}  /* Top customers: revenue flush right on line 2 */

    /* detail-tab dense lists → stacked cards (no sideways scroll): NAME + qty inline on top, then SKU + chips/count below */
    #machineList .mrow, #partsList .mrow, #servicesList .mrow{flex-wrap:wrap;column-gap:8px;row-gap:4px;align-items:center;padding:12px 2px}
    #servicesList .mrow > svg{order:0}
    /* ── the name is the datum; the count is metadata ──────────────────────────
       These two font-sizes were written to fix exactly this and NEVER RAN: without !important
       they lose to the inline style="font-size:15px" on the name and "font-size:15px" on the
       quantity — so every row shipped with the `2` bigger than the machine it counts. The
       largest text on the row was the least important number. */
    #machineList .mrow > [style*="flex:1"], #partsList .mrow > [style*="flex:1"], #servicesList .mrow > [style*="flex:1"]{order:1;flex:1 1 calc(100% - 58px)!important;min-width:0;font-size:15px!important;line-height:1.25}
    #machineList .mrow > [style*="text-align:right"], #partsList .mrow > [style*="text-align:right"], #servicesList .mrow > [style*="text-align:right"]{order:2;margin-left:auto;font-size:13px!important;color:var(--ink-soft)}
    #machineList .mrow > .mono-chip, #partsList .mrow > .mono-chip, #servicesList .mrow > .mono-chip{order:3;font-size:13px}
    #machineList .mrow > span.ui, #partsList .mrow > span.ui, #servicesList .mrow > span.ui{order:4}

    /* ── REVIEW: one queue, ONE row template ───────────────────────────────────
       #reviewList / #reviewMaintList / #linkingList appeared NOWHERE in this block, so the
       whole cleanup worklist kept the desktop single-line .mrow and overflowed: three
       non-shrinking word-width buttons (~230px) on a 343px line, crushing the description.
       They also each had a different rhythm — reclassify used flex:1;min-width:0 with no
       wrap, review-maint flex-wrap with min-width:160px, linking a bare flex:1 with no
       min-width:0 at all: three truncation behaviours in one queue. Now: text takes the full
       width, ACTIONS GET THEIR OWN ROW gutter to gutter, and nothing is shrink-to-fit. */
    /* Factory locations header: let it wrap, and give the generated status line its own row so
       it can't push Refresh/Fullscreen around as the counts change */
    .fhead{flex-wrap:wrap;row-gap:8px}
    .fhead-side{flex:1 1 100%;flex-wrap:wrap;justify-content:flex-start;gap:12px}
    #mapGeoStatus{flex:1 1 100%}

    /* !important on the padding: these rows carry an inline style="…padding:11px 2px", and
       inline beats a class rule — without it the queue sits at 18 while everything else is on 16 */
    .rvrow{flex-wrap:wrap!important;align-items:flex-start;column-gap:8px;row-gap:9px;
           padding-left:0!important;padding-right:0!important}
    .rvrow > .rv-main{flex:1 1 100%!important;min-width:0!important}
    .rvrow > .rv-act{flex:1 1 100%!important;flex-wrap:wrap;gap:6px}
    .rvrow > .rv-act > button{flex:1 1 auto;min-width:0}

    /* ── mastheads ─────────────────────────────────────────────────────────────
       `.masthead > div:last-child{justify-content:flex-start}` was a no-op: the cluster is a
       COLUMN, so justify-content is its vertical axis and the inline align-items:flex-end kept
       both controls pinned right — each one's left edge set by its own string length. The axis
       that moves them is align-items, and it needs !important to beat the inline style. */
    .masthead{flex-wrap:wrap;gap:10px}
    .masthead > div:last-child{flex:1 1 100%;flex-wrap:wrap;justify-content:flex-start}
    .mast-side{align-items:flex-start!important;width:100%}
    /* ── the customer detail header ────────────────────────────────────────────
       The name block takes the full width so #dName has 343px instead of ~150px; the
       edit/delete cluster drops to its own row rather than holding the right edge. */
    .dmast{flex-wrap:wrap;gap:12px}
    .dmast > div:first-child{flex:1 1 100%;min-width:0}
    .dmast > div:last-child{flex:0 0 auto}
    /* #view-detail sets overflow-wrap:anywhere so long SKUs break instead of scrolling — but a
       customer's NAME must never shatter mid-word. It has spaces; let it wrap at them. */
    #dName{overflow-wrap:normal;word-break:normal}
    #custSortSeg{flex-wrap:wrap}
    #custSearch{width:100%!important;flex:1 1 100%}
    .sec-head{flex-wrap:wrap;gap:6px}
    .ov{padding:12px}
    #dashMap{height:220px}
    /* maintenance: each nav group label on its own line, tabs wrap below; Day board/Week/Calendar are computer-only */
    #maintModeSeg .mgroup{flex-wrap:wrap}
    #maintModeSeg .mgroup .eyebrow{width:100%!important;min-width:0!important;margin-bottom:2px}
    .mmode-pc{display:none!important}
    /* maintenance toolbars wrap; search fields go full width so nothing scrolls sideways */
    #maintListToolbar,#installsToolbar{flex-wrap:wrap}
    #maintSearch,#installSearch{width:100%!important;margin-left:0!important;flex:1 1 100%}
    /* Reports tab tool rows: the date-range row (segmented control + two <input type=date>) was
       forcing sideways scroll because .msort is inline-flex with NO wrap and date inputs carry a
       browser min-width. Let every tool row wrap and let the date inputs shrink. */
    /* This rule was dead on the one screen it was written for: the Reports tool row hardcoded
       style="…flex-wrap:wrap;gap:12px 18px" inline, and inline specificity beats an
       un-!important rule — the extra 4px pushed the date inputs to wrap a step early. Fixed at
       the source (the inline gap is gone), so no !important is needed here. */
    .mtools{gap:10px 14px}
    .msort{flex-wrap:wrap;gap:8px 10px}
    .msort input[type=date],.msort .dfw{flex:1 1 130px;min-width:0;width:auto!important}
    /* ── a declared label column ───────────────────────────────────────────────
       .msort .l had font and colour but NO width, so every control started at
       label-text-width + 8px and each tool row began somewhere different. This is the same
       fix .nt-plabel already uses in the note view, twenty lines from a pin that didn't use it. */
    .msort{width:100%}
    .msort .l{width:52px;flex-shrink:0}

    /* ── ONE LINE, THEN AN ELLIPSIS ───────────────────────────────────────────
       A name that walks down the screen one word per line is the thing he called
       annoying, and on a phone this app deliberately sets type BIG, so it happens
       to every long customer. An identity line — the name of a row, and the meta
       line under it — now stays on one line and ends in an ellipsis. Prose does
       NOT: an explanation, a lede, a warning still wraps, because there the words
       are the point and cutting them off would hide the meaning.
       ⚠ The delivery row was never a wrapping problem, it was a layout fault. Its
       middle column is flex:1 beside a right-hand cluster that refuses to shrink,
       so on a 315px row the customer name was left FIFTY pixels and broke into
       seven lines. The cluster takes its own line here and the name gets the row. */
    .mlrow{flex-wrap:wrap;row-gap:6px}
    .mlrow > .mlmain{flex:1 1 calc(100% - 30px);min-width:0}
    .mlrow > .mlright{width:100%;justify-content:flex-start}
    .mlt,.mlsub{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}
    .dr-main > div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    /* on the review screen the machine's description IS the decision, so it is
       given two lines before it gives up */
    .rv-main{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
    /* a button's words never break — Material's own rule, and the reason
       "Sewa / testing" stood three lines tall inside a 67px button */
    .btn-line,.btn-primary,.foot-link,.mm-link,.mm-mini,.seglink{white-space:nowrap}
    /* and nothing on a phone is smaller than the 11px floor this block sets */
    .drow-cust .ui,.mrow .ui{font-size:var(--m1)!important}

    /* durable guard: the maintenance view never scrolls sideways — new toolbars can only stack, never overflow */
    #view-maintenance{overflow-x:hidden}
  }
  /* ── joining two customer records ── */
  .mgrow{display:flex;align-items:center;gap:14px;border:1px solid var(--rule);border-radius:8px;
    padding:13px 15px;margin-bottom:8px;cursor:pointer;background:var(--surface)}
  .mgrow:hover{border-color:var(--ink-faint)}
  /* ⚠ "Join duplicates" is hidden by this CLASS, not an inline display:none. On a wide screen the
     button is borrowed into the side panel, whose #appside .as-end > .tb-borrowed{display:flex!important}
     beat the inline style: the button showed with nothing to join, and to every role once it lost
     its owner-only class (10 Oct 2026). Same shape as visits.css #vsSend.vs-gone. */
  #dupBtn.dup-none,#appside .as-end > #dupBtn.dup-none{display:none!important}
  .mgpick{display:flex;align-items:flex-start;gap:11px;border:1px solid var(--rule);border-radius:8px;
    padding:13px 15px;margin-bottom:8px;cursor:pointer;background:var(--surface)}
  .mgpick.on{border-color:var(--accent);background:var(--accent-soft)}
  .mgpick input{margin-top:4px;accent-color:var(--accent);flex-shrink:0}
  .chip{display:inline-block;font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-soft);
    background:var(--paper);border:1px solid var(--rule);border-radius:11px;padding:2px 9px;margin:2px 0}
  .mgpick.on .chip{background:var(--surface)}
  .mgmoves{border:1px solid var(--rule);border-radius:8px;padding:4px 15px;background:var(--surface)}
  .mgmove{font-family:'Inter',sans-serif;font-size:13px;padding:9px 0;border-bottom:1px solid var(--rule-soft)}
  .mgmove:last-child{border-bottom:none}
  .mgfeed{border:1px solid var(--rule);border-radius:8px;padding:13px 15px;margin-top:10px;background:var(--surface)}
  .mgfeed .eyebrow{display:block;margin-bottom:8px}
  .mgaka{display:block;border:1px solid var(--rule);border-radius:8px;padding:13px 15px;margin-top:10px;
    background:var(--surface);font-family:'Inter',sans-serif;font-size:13px;cursor:pointer}
  .mgaka input{accent-color:var(--ok);margin-right:7px}

  /* ═══ SEARCH — Material 3, at Material's measurements ═════════════════
     56dp tall, fully rounded, 24dp icons 16dp from each edge, body-large
     text, and a docked results list over a scrim when it is focused. The
     toolbar filters are the same bar at Material's density -3 (-12dp = 44px);
     that is Material's own mechanism for a compact instance, not a size I
     made up. Colours stay Indohose: this is Material's shape, not Google's
     palette dropped on top of his app. */
  /* the icon FONT is gone. Every icon has been an inline drawing since the phones
     printed the word 'search' instead of drawing a magnifier; m3.css draws .msym as
     the box that positions one. This rule had nothing left to style. */
  /* ⚠ EVERY PAGE SEARCH IS THE TOP BAR'S SEARCH — 24 Sep 2026, "instead of the m3s id rather it
     be like the universal search bar language … every single one". Same height, hairline, fill,
     radius, icon and 13px type as .tb-search (topbar.css), from the same --band tokens, so the
     search on a screen and the search in the bar read as one thing. Approved on Sign-ins first. */
  .m3s{position:relative;display:inline-flex;align-items:center;width:100%;height:36px;
    background:var(--band-fill);border:1px solid var(--band-line);border-radius:19px;
    transition:background .15s ease,border-color .15s ease}
  .m3s:hover{background:var(--band-fill-h)}
  .m3s:focus-within{background:var(--surface);border-color:var(--accent)}
  .m3s .m3s-lead{position:absolute;left:11px;top:50%;transform:translateY(-50%);
    font-size:14px;color:var(--band-dim);pointer-events:none}
  .m3s:focus-within .m3s-lead{color:var(--band-dim)}
  .m3s input{flex:1;min-width:0;height:100%;border:0;background:none;outline:none;
    padding:0 14px 0 34px;font-family:'Inter',sans-serif;font-size:13px;color:var(--band-txt)}
  .m3s input::placeholder{color:var(--band-dim)}
  .m3s.has input{padding-right:46px}
  .m3s-x{position:absolute;right:8px;top:50%;transform:translateY(-50%);display:none;
    width:32px;height:32px;border:0;background:none;border-radius:50%;cursor:pointer;
    align-items:center;justify-content:center;color:var(--ink-faint);padding:0}
  .m3s-x .msym{font-size:15px}
  .m3s-x:hover{background:var(--paper);color:var(--ink)}
  .m3s.has .m3s-x{display:inline-flex}
  /* the one real search bar — full height, full type, and a list under it */
  .m3s.lg{height:56px;border-radius:28px}
  .m3s.lg .m3s-lead{left:16px;font-size:27px}
  .m3s.lg input{font-size:15px;padding-left:52px}
  .m3s.lg .m3s-x{right:8px}
  /* focused search: the results dock under the bar, over a scrim */
  /* ⚠ HIS CALL: the results used to sit IN the rail and shove Home, Dashboard and
     Customers down the page every time he typed. They FLOAT now — a panel hanging
     under the bar, over the navigation, which is what every other app does and what
     Material means by a docked search. m3.js puts the bar and the panel into one
     container so the panel has something to hang from. */
  .m3s-dock{position:relative;margin-bottom:16px}
  .m3s-dock .m3s{margin-bottom:0}
  #searchResults{position:absolute;top:calc(100% + 8px);left:0;right:0;margin:0 !important;
    background:var(--surface);border:1px solid var(--rule);border-radius:16px;padding:6px;
    box-shadow:0 10px 30px rgba(var(--shade-rgb),.2);
    min-height:0;max-height:min(60vh,420px);overflow-y:auto}
  body.m3-searching #searchScrim{opacity:1;pointer-events:auto}
  #searchScrim{position:fixed;inset:0;background:rgba(var(--veil-rgb),.32);opacity:0;
    pointer-events:none;transition:opacity .18s ease;z-index:190}
  .sb .m3s{position:relative;z-index:210}
  .sb #searchResults{z-index:220}
  .sb .m3s-dock{z-index:215}
  @media (max-width:760px){.m3s{height:48px}.m3s.lg{height:56px}}

  /* ── WAITING FOR SIGNAL ─────────────────────────────────────────────────────
     One line, only ever on screen while something is genuinely still on the handset.
     Grey while it is sending, red while there is no signal at all — the technician has
     to be able to tell "going" from "stuck" without reading. */
  .off-strip{display:flex;align-items:center;gap:9px;font-family:'Inter',sans-serif;font-size:13px;
             background:var(--surface);border:1px solid var(--rule);border-radius:7px;
             padding:9px 11px;margin-bottom:12px;color:var(--ink-soft)}
  .off-strip.off{background:var(--accent-soft);border-color:var(--accent-line);color:var(--accent-ink)}
  .off-strip b{font-family:var(--num);font-variant-numeric:tabular-nums;font-weight:500}
  .off-dot{width:8px;height:8px;border-radius:50%;background:var(--ink-faint);flex-shrink:0}
  .off-strip.off .off-dot{background:var(--accent);animation:offPulse 1.6s ease-in-out infinite}
  @keyframes offPulse{0%,100%{opacity:1}50%{opacity:.25}}
  /* 44px tall on purpose: it is pressed with a thumb, in a factory, often with a glove on */
  .off-go{margin-left:auto;min-height:44px;padding:0 14px;border:1px solid var(--rule);
          background:var(--surface);border-radius:6px;font-family:'Inter',sans-serif;font-size:13px;
          font-weight:600;color:var(--ink);cursor:pointer}
  .off-go:active{background:var(--field)}
  .off-thumb{position:relative}
  .off-tag{position:absolute;left:5px;bottom:5px;background:rgba(var(--panel-rgb),.82);color:var(--on-dark);
           font-family:'Inter',sans-serif;font-size:11px;padding:2px 7px;border-radius:4px}
  .off-wait{opacity:.92}

  /* ── THE CAPSULE ────────────────────────────────────────────────────────
     What replaced the bottom bar. That bar was right a week ago and wrong now: with
     a floating pill inside every app it made TWO bars on one screen, which is the one
     thing every superapp forbids. This is the whole shell — back to the wall of apps,
     the bell, and your own face — and an app never gets to change it.
     ⚠ Not drawn at all on a laptop. */
  #cap{display:none}
  /* the sheet behind the face — what the drawer used to carry that the wall does not */
  .mesheet{position:fixed;inset:0;z-index:340;display:none;flex-direction:column;justify-content:flex-end}
  .mesheet.on{display:flex}
  .mesheet .veil{position:absolute;inset:0;background:rgba(var(--veil-rgb),.42)}
  /* ⚠ THE BAR IS A REAL ELEMENT NOW, put there by m3.js, and it drags. It was a
     ::before — a PICTURE of a handle with nothing to take hold of — which is the
     same fault that was fixed for the app's dialogs and never carried across to
     this kind of sheet. Two sheets answering a finger differently is most of what
     he meant by "jittery and buggy".
     ⚠ IT STILL NEVER SCROLLS AWAY. His rule: scroll far enough down a sheet and
     there must still be a way to shut it. Sticky here, opaque, so the rows pass
     underneath it rather than through it. */
  /* ⚠ AND IT IS DRAWN UP TO 760, not 600. m3.css hides every handle above 600
     because above that a dialog is a centred box with no handle — but this kind of
     sheet is still a sheet all the way to 760, and in that band it was on screen
     with its bar missing and nothing to take hold of. */
  .mesheet .card > .m3-grab{display:block;position:sticky;top:0;z-index:4;background:var(--surface)}
  /* ⚠ AND IT ARRIVES. This sheet used to go from display:none to display:flex, so it
     appeared out of nothing while every dialog in the app slid up. Same curve as
     the dialogs, from the same keyframe, so the two cannot drift apart. */
  .mesheet.on .card{animation:m3sheet .3s cubic-bezier(.32,.72,0,1)}
  .mesheet.on .veil{animation:m3veil .3s ease}
  @keyframes m3veil{from{opacity:0}to{opacity:1}}
  /* the dim is faded by the drag, so it needs something to fade */
  .mesheet .veil{transition:opacity .22s cubic-bezier(.23,1,.32,1)}
  .mesheet .card.m3-dragging{animation:none;transition:none;will-change:transform}
  .mesheet .card.m3-springing{animation:none;transition:transform .26s cubic-bezier(.23,1,.32,1)}
  /* ⚠ THE CARD IS WHAT MOVES, so it cannot be the thing that scrolls as well — a
     transform on a scroll container fights the finger. The scrolling moves inside. */
  .mesheet .card{overscroll-behavior:contain}
  /* ⚠ THE SAME BOX AS A DIALOG. It was 14px corners and 80% tall against the
     dialog's 28 and 88vh — two sheets that are the same thing wearing different
     shapes, which is what he has been looking at all day. */
  .mesheet .card{position:relative;background:var(--surface);border-radius:28px 28px 0 0;
    padding:0 0 max(12px,var(--sab));
    max-height:calc(100vh - var(--sat) - 20px);overflow-y:auto}
  .mesheet .who{display:flex;align-items:center;gap:13px;padding:14px 20px 12px}
  .mesheet .who .nm{font-size:18px;font-weight:600}
  .mesheet .who .rl{font-size:14px;color:var(--ink-faint);margin-top:2px}
  .mesheet .r{display:flex;align-items:center;gap:12px;min-height:54px;padding:0 20px;cursor:pointer;
    width:100%;background:none;border:0;text-align:left;font-family:'Inter',sans-serif}
  .mesheet .r .t{font-size:17px;color:var(--ink);flex:1}
  .mesheet .r .n{font-size:14px;color:var(--ink-faint)}
  .mesheet .r:active{background:var(--field)}
  .mesheet .sep{height:1px;background:var(--rule-soft);margin:7px 20px}

  /* ── ONE LINE INSTEAD OF A WALL OF PILLS ────────────────────────────────
     Eight sections wrapped to three rows of pills on a phone — a quarter of the
     screen before a single figure, and every choice shouting equally. The buttons
     stay in the page (the app presses them and reads them); on a phone they are
     hidden behind one line naming where you are. */
  .secpick{display:none}
  @media(max-width:760px){
    /* ⚠ NOT display:none — that is how the role CSS says "this person may not open
       this", and the sheet reads exactly that to decide what to list. Hiding them the
       same way made every section look forbidden and the sheet came up empty. Clipped
       and made invisible instead: gone from sight, from the tab order and from
       hit-testing, with display left alone to mean what it already means. */
    [data-secpick] > .dtab{position:absolute;width:1px;height:1px;padding:0;margin:0;
      border:0;overflow:hidden;clip-path:inset(50%);visibility:hidden;pointer-events:none}
    /* ⚠ NO BORDER. Everything this sits above already draws its own top rule — the
       figures band, the view row, the reports panel — so a border here made three
       lines in 30px. The gap below is the separation. */
    .secpick{display:flex;align-items:center;gap:9px;width:100%;min-height:48px;
      padding:0 4px 0 0;margin-bottom:4px;background:none;border:0;
      cursor:pointer;font-family:'Inter',sans-serif;text-align:left}
    .secpick .w{font-size:13px;color:var(--ink-faint);flex-shrink:0}
    .secpick .v{font-size:17px;font-weight:600;color:var(--ink);letter-spacing:-.01em;
      overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .secpick .n{font-size:13px;color:var(--ink-faint);font-variant-numeric:tabular-nums}
    .secpick .c{margin-left:auto;font-size:15px;color:var(--ink-faint);flex-shrink:0}
    .secpick:active{background:var(--field)}
  }
  /* the sheet it opens — every section at once, which the strip never managed */
  .secsheet{position:fixed;inset:0;z-index:400;display:flex;flex-direction:column;justify-content:flex-end}
  .secsheet .veil{position:absolute;inset:0;background:rgba(var(--veil-rgb),.42)}
  .secsheet .card{position:relative;background:var(--surface);border-radius:14px 14px 0 0;
    padding:8px 0 max(10px,var(--sab));max-height:78%;overflow-y:auto;
    animation:secUp .22s var(--ease-out)}
  @keyframes secUp{from{transform:translateY(14px);opacity:.6}to{transform:none;opacity:1}}
  @media(prefers-reduced-motion:reduce){.secsheet .card{animation:none}}
  .secsheet .hd{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-faint);
    padding:10px 20px 8px;letter-spacing:.03em;text-transform:uppercase}
  .secsheet .row{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;
    padding:0 20px;background:none;border:0;cursor:pointer;text-align:left;
    font-family:'Inter',sans-serif}
  .secsheet .row .t{font-size:17px;color:var(--ink);flex:1;min-width:0}
  .secsheet .row .n{font-size:15px;color:var(--ink-faint);font-variant-numeric:tabular-nums}
  /* where you are is a square swatch, the same mark this app uses for every state */
  .secsheet .row.on::before{content:'';width:9px;height:9px;background:var(--accent);flex-shrink:0}
  .secsheet .row:not(.on)::before{content:'';width:9px;height:9px;flex-shrink:0}
  .secsheet .row.on .t{font-weight:600}
  .secsheet .row:active{background:var(--field)}

  @media(max-width:760px){
    #cap{display:flex;align-items:center;position:fixed;top:6px;right:12px;z-index:320;
      height:38px;border-radius:999px;background:rgba(var(--sheet-rgb),.94);border:1px solid var(--rule);
      box-shadow:0 2px 10px -3px rgba(var(--shade-rgb),.22)}
    /* ⚠ NOT ON THE TECHNICIAN'S SCREEN AT ALL. He has one screen, no wall, and his own
       header already carries the bell and his name — with a Ganti foto in it. A capsule
       floating on top of that is a second bell and a second face, drawn over the first. */
    body.role-tech #cap,body.role-driver #cap{display:none}
    /* and no clearance for a capsule that is not there — his header is his own */
    body.role-tech .wrap,body.role-driver .wrap{padding-top:0!important}
    /* and on the wall itself there is nowhere to go back to either */
    body.on-wall #capApps,body.on-wall #cap .capsep{display:none}
    body.on-wall #cap .capsep:last-of-type{display:block}
    #cap button{border:0;background:none;width:44px;height:38px;display:flex;align-items:center;
      justify-content:center;cursor:pointer;padding:0}
    #cap button svg{width:19px;height:19px;stroke:var(--ink-soft);fill:none;stroke-width:1.9;
      stroke-linecap:round;stroke-linejoin:round}
    #cap .capsep{width:1px;height:20px;background:var(--rule);flex-shrink:0}
    /* the bell renders itself into [data-bellslot]; inside the capsule it loses its box */
    #capBell .nbell{border:0;background:none;box-shadow:none;width:44px;height:38px;border-radius:999px}
    #capBell .nbell .nbdot{top:3px;right:6px}
    #capMe{width:44px;height:38px;display:flex;align-items:center;justify-content:center;cursor:pointer}
    #capMe .avpick{width:28px;height:28px;font-size:12px}
    /* the office chat's button (js/chat.js, 18 Nov 2026) with the same red count as the top bar's */
    #capChat{position:relative}
    #capChat .cap-chatn{position:absolute;top:1px;right:2px;min-width:18px;height:18px;padding:0 5px;display:grid;place-items:center;
      border-radius:999px;background:#d9252e;color:#fff;font-size:12px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums;
      box-shadow:0 0 0 2px rgba(var(--sheet-rgb),1)}
    #capChat .cap-chatn[hidden]{display:none}

    /* ⚠ THE PHONE HEADER GOES WITH THE BAR. The hamburger was the way to another
       screen; the wall is that now. The drawer itself is untouched — the phone simply
       stops opening it, and the laptop still has it. */
    #mBar{display:none}
    /* ⚠ AND NEITHER IS THE DRAWER. The wall is the list of apps; a second list of the
       same apps down the side is exactly what the shell removes. Its markup and its
       code are untouched — the laptop still has it, the phone simply never shows it. */
    .sb,.sb-backdrop{display:none!important}
    /* a view owns the whole screen now, so the clearance both bars needed goes, and
       the first line clears the capsule floating over it */
    .wrap{padding-top:54px!important}
    body:not(.role-tech):not(.role-driver) .wrap{padding-bottom:26px!important}
    body:not(.role-tech):not(.role-driver) #view-maintenance{padding-bottom:96px!important}
    #maintFab{bottom:22px!important}
    /* ⚠ THE TRAIL IS A SECOND WAY BACK, and the capsule is already the first one.
       "Apps / Maintenance" sat directly above a heading that said Maintenance, under a
       button that goes to Apps. The customer page keeps its trail — that one names the
       customer, which is the only place the trail says anything the screen does not. */
    .wrap:not(#view-detail) .detail-backbar{display:none}
  }
  /* ── A DAY'S REPORT LINK ────────────────────────────────────────────────
     Was one flat line carrying up to five outlined pills — Link, PDF, Kirim
     ulang WA, the days-left text and Matikan link — which wrapped raggedly and
     read as a pile of equal-weight buttons. Now the row says the FACT first
     (which day, is the link alive) and offers the actions underneath as quiet
     text, because four of the five are things you do once or never.
     ⚠ The state is a SQUARE SWATCH, not a coloured pill — same as everywhere
     else data carries a status in this app. */
  /* ⚠ ONE ROW PER DAY, NOT A CARD. A ten-day job was 900px of bordered cards before
     you reached the photos. It was also a box drawn inside a box, which this app does
     nowhere else. Now: a square swatch for the state, the day, the actions — about
     40px a day, hairline-separated, so ten days is 400px. */
  .rllist{border-top:1px solid var(--rule)}
  .rlrow{display:flex;align-items:center;gap:10px;flex-wrap:wrap;
         padding:8px 0;border-bottom:1px solid var(--rule-soft)}
  .rlrow::before{content:'';width:9px;height:9px;background:var(--ok);flex-shrink:0}
  .rlrow.dead::before{background:var(--accent)}
  .rlhd{display:flex;align-items:baseline;gap:8px;min-width:0;flex:1 1 auto}
  .rlhd .d{font-family:'Inter',sans-serif;font-size:14px;font-weight:600;color:var(--ink);
           font-variant-numeric:tabular-nums;white-space:nowrap}
  .rlhd .o{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-faint);white-space:nowrap}
  .rlhd .st{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-soft);
            font-variant-numeric:tabular-nums;white-space:nowrap}
  .rlrow.dead .rlhd .st{color:var(--accent)}
  /* the actions: text, separated by a rule, never five outlined boxes */
  .rlacts{display:flex;align-items:center;flex-wrap:wrap;gap:0 14px;flex-shrink:0}
  .rlacts > *{font-family:'Inter',sans-serif;font-size:13px;font-weight:500;color:var(--ink-soft);
    background:none;border:0;padding:4px 0;cursor:pointer;text-decoration:none;
    min-height:28px;display:inline-flex;align-items:center;white-space:nowrap}
  .rlacts > *:hover{color:var(--ink)}
  .rlacts > .danger:hover{color:var(--accent)}
  /* a hairline between actions, drawn by the gap rather than by a character */
  .rlacts > * + *{position:relative}
  .rlacts > * + *::before{content:'';position:absolute;left:-7px;top:50%;transform:translateY(-50%);
    width:1px;height:13px;background:var(--rule)}
  @media(max-width:760px){
    /* on a phone the row gives up and stacks, because a finger needs 44px per action
       and four of them will not share a line with the day */
    .rlrow{align-items:flex-start;padding:10px 0}
    .rlhd{flex:1 1 100%;flex-wrap:wrap}
    .rlacts{flex:1 1 100%;gap:0 12px;margin-left:-19px}
    .rlacts > *{min-height:44px}   /* a finger, not a pointer */
  }

  /* ── THE DAY PICKER'S ARROW WAS COVERED BY ITS OWN TEXT ──────────────────
     select.inp (m3.css) paints a caret at right 14px and reserves 44px of right
     padding for it. The report toolbar overrode that with an INLINE
     padding:4px 8px, which inline-wins, so the longest option ran straight over
     the arrow. The size it wanted is legitimate; the right inset is not
     negotiable, so it lives here in a class instead of an inline style. */
  select.inp.slim{padding:0 38px 0 11px;min-height:40px;height:40px;font-size:13px;width:auto}
  @media(max-width:760px){select.inp.slim{min-height:44px;height:44px}}
  /* the word and the picker are one object — they may wrap as a pair, never apart */
  .daypick{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
  .daypick label{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-soft);margin:0}

/* ══ DARK ══ generated by tools/theme/emit-dark.js — do not edit by hand ══ */
:root[data-theme="dark"], [data-theme="dark"] .pj {
    /* ⚠ THIS IS NOT AN INVERSION. Four decisions in it are the whole reason it reads as
       an app at night rather than a photograph negative:
       · the ink is #e8e7e3 and never white — white on near-black glares and thickens
         every letter;
       · the panels sit ABOVE the ground, not on it, and the rail stays the darkest thing
         in the app, because it is the edge and must not become the lightest object;
       · the green and the amber HAD to move — #1d7a4e on near-black measures 2.4 to 1,
         which is unreadable;
       · the pale washes are not pale any more. A pink that whispers on white glows like a
         warning lamp on black. */
    --surface            :#22211e;
    --on-dark            :#f4f3f0;   /* the same white as the sheet today, and a different colour in dark mode. That is the whole reason */
    /* ⚠ THE ONE THAT HAD TO FLIP. `--ink` is #e8e7e3 at night, so anything sitting on
       it must be DARK or it disappears — which is exactly what he photographed. It is
       the panel's own colour rather than pure black: a black chip on a near-white pill
       inside a dark app is a hole punched in the page. */
    --on-ink             :#22211e;
    --paper              :#1c1b19;
    --ground             :#131211;
    --ink                :#e8e7e3;
    --ink-soft           :#a3a19b;
    --ink-faint          :#8e8c84;
    --ink-ghost          :#7d7a72;
    --rule               :#332f2b;
    --rule-soft          :#2a2724;
    --rule-strong        :#474239;
    --field              :#2a2825;
    --field-h            :#332f2b;
    --field-off          :#232120;
    /* the attendance grid's five tints. ⚠ THEY LIFT, THEY DO NOT DARKEN. In light mode
       a hover is a shade under white; on near-black the same idea has to go the other
       way, or the crosshair is a hole in the page rather than a light on it. */
    --hr-row             :#232220;
    --hr-rowhi           :#2a2825;
    --hr-cross           :#302d29;
    --hr-off             :#1f1e1c;
    --hr-offhi           :#252321;
    --neutral-bg         :#282622;   /* thirty-eight chips on Deliveries. It leans warm just enough for the rule to call it a pale gold, */
    --good               :#4cc08a;
    --good-deep          :#6fd3a4;
    --good-bg            :#16281f;
    --good-line          :#244834;
    --warn               :#d9a441;
    --warn-ink           :#e0b060;
    --warn-deep          :#e8bd6a;
    --warn-bg            :#2b2314;
    --warn-bg-soft       :#1f1a11;   /* four warn callouts use this, every one of them with a --warn-line edge and amber words. It is th */
    --warn-line          :#4a3c20;
    --warn-line-strong   :#5e4c28;
    --accent             :#f0555b;
    --on-accent          :#22120f;   /* never a sweep target: it is chosen per theme colour and per mode by measuring, in emit-accents.j */
    --accent-deep        :#c9333a;
    --accent-ink         :#f08e91;
    --accent-soft        :#2e1919;   /* the one recipe that cannot be shared. A pale pink that whispers on white glows like a warning la */
    --accent-line        :#4a2626;
    /* the button family and the pop-up, dark (tries/buttons + tries/popups dark blocks).
       ⚠ added by hand: re-running emit-dark.js --apply would drop these AND every rule after this block. */
    --bt-main-h:#f46d72; --bt-main-p:#e2464c;
    --bt-ok:#183a29; --bt-ok-h:#1e4732; --bt-ok-p:#25543c; --bt-ok-ink:#7fe0ae;
    --bt-neu:#383632; --bt-neu-h:#43403b; --bt-neu-p:#4d4a44;
    --bt-edge:#8e8c84; --bt-line-h:rgba(232,231,227,.07); --bt-line-p:rgba(232,231,227,.12);
    --bt-del-ink:#ff9296; --bt-del-wash:#4a2023; --bt-del-wash-p:#57272a;
    --bt-wine:#9b2026; --bt-wine-h:#ad262d; --bt-wine-p:#8a1b21; --bt-on-wine:#ffffff;
    --bt-off-bg:#2c2a27; --bt-off-ink:#7d7a72;
    --bt-veil:rgba(0,0,0,.6);
    --bt-pop-shadow:0 24px 60px -16px rgba(0,0,0,.8),0 3px 10px rgba(0,0,0,.4);
    --accent-line-deep   :#6b3434;
    --accent-on-dark     :#ff9296;   /* the app already had this and did not know it. A red that reads on black is what dark mode needs  */
    --alert              :#e0814f;
    --alert-bg           :#2b1d13;
    --alert-line         :#4a3122;
    --alert-line-strong  :#66431f;
    --info               :#6ea5e0;
    --info-bg            :#151f2b;
    --info-line          :#243447;
    --info-mid           :#7fa8cf;
    --info-ink           :#9db6d9;
    --manual             :#a996e0;
    --manual-bg          :#1e1a2b;
    --manual-line        :#2f2947;
    --manual-ink         :#b3a6e6;
    --mute               :#4a4640;
    --stage              :#000000;   /* the one colour that is the same in both modes. A photo is lit by its own black, not by the app. */
    --rail               :#0d0c0b;
    --rail-ink           :#8b8982;
    --charcoal           :#4a4744;
    --tooltip            :#3a3733;   /* a near-black like the rail, and it must NOT become the rail. In dark mode the rail stays the dar */
    --star               :#dcb055;
    --star-ink           :#e0bd6e;
    --star-bg            :#2b2417;
    --star-bg-soft       :#221d12;
    --me                 :#a37ad4;
    --ok                 :#3fc98a;

    /* ⚠ THE TOP BAR. Forgotten in the first dark run, and it was the only thing on the
       screen that looked broken: a pale grey search box floating on a black bar. */
    --band               :#1f1e1c;
    --band-txt           :#e8e7e3;
    --band-dim           :#a3a19b;
    --band-faint         :#8e8c86;   /* darkened on white to stay readable, and it has to go the OTHER way on black. The one value that  */
    --band-line          :#332f2b;
    --band-line-soft     :#2a2724;
    --band-fill          :#2a2825;
    --band-fill-h        :#332f2b;
    --wash               :#2a2825;   /* declared only in the pilot, so it reaches the Projects screen and nowhere else. Left without a d */
    --rail-hi            :rgba(255,255,255,.08);

    /* the shadows go deeper, not lighter — a shadow on a dark ground has to work harder */
    --shade-rgb          :0,0,0;
    --veil-rgb           :0,0,0;
    --lift-rgb           :255,255,255;
    --panel-rgb          :24,23,20;
    --sheet-rgb          :34,33,30;

    color-scheme: dark;
}


/* figures that line up in the rows people read down. Not on body: other screens keep their own numerals */
table.dt td,table.dt th,.mlsub,.mlright,.mtrow,.mrow,.custrow{font-variant-numeric:tabular-nums}

/* ═══ FOUR SHARED CONTROLS — 22 Sep 2026 (see ui.js for the behaviour) ════════════ */
/* the loading shapes: field grey, still, invisible for the first 300 ms */
.skl-wait{opacity:0;animation:skShow 0s .3s forwards}
@keyframes skShow{to{opacity:1}}
.skl{display:inline-block;background:var(--field);border-radius:4px;height:12px;position:relative;overflow:hidden;flex-shrink:0;vertical-align:middle}
.skl.r{border-radius:var(--r-control)} .skl.c{border-radius:50%} .skl.ml{margin-left:auto} .skl.pic{display:block;border-radius:6px;margin-bottom:8px}
.skl-job{height:63px;box-sizing:border-box;padding:12px 4px 0 2px;border-top:1px solid var(--rule-soft)} .skl-job .skl{display:block} .skl-job .skl+.skl{margin-top:11px}
.skl-hm{height:100%;overflow:hidden} .skl-hmr{display:flex;align-items:center;height:26px}
.skl-row{display:flex;align-items:center;gap:12px;height:46px;border-top:1px solid var(--rule-soft)} .skl-row:first-child{border-top:0}
.skl-tr{display:grid;grid-template-columns:minmax(0,1fr) 96px 84px 72px 80px;gap:0 14px;align-items:center;min-height:38px;padding:5px 10px;border-top:1px solid var(--rule-soft)}
.skl-tr .skl-tn{display:flex;align-items:center;gap:9px;min-width:0}
.skl-tr .skl-who{display:flex} .skl-tr .skl-who .skl+.skl{margin-left:-6px;border:2px solid var(--surface)}
.skl-tg{padding:12px 10px 4px}
.skl-grid{overflow:hidden} .skl-grid table{border-collapse:collapse;width:100%}
.skl-grid th{height:44px;border-bottom:1.5px solid var(--ink);min-width:48px} .skl-grid th.n{text-align:left;padding:0 12px;min-width:120px}
.skl-grid td{height:32px;text-align:center;min-width:48px;padding:0} .skl-grid td.n{text-align:left;padding:0 12px;min-width:120px}
.skl-grid td .skl{display:block;height:24px;margin:4px 3px} .skl-grid td.n .skl{display:inline-block;height:12px;margin:0}
.skl-grid tr.g td{height:30px;text-align:left;padding:0 12px;background:var(--paper)}
.skl-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(184px,1fr));gap:14px}
.skl-tile{border:1px solid var(--rule);border-radius:var(--r-panel);background:var(--surface);padding:7px} .skl-tile .skl+.skl{margin-top:6px}
.skl-tile .skl:not(.pic){display:block}
@media (max-width:480px){.skl-tiles{grid-template-columns:repeat(auto-fill,minmax(142px,1fr));gap:10px}.skl-tile .skl.pic{height:104px!important}
  .skl-tr{grid-template-columns:minmax(0,1fr) 72px 70px}.skl-tr>.skl:nth-child(3),.skl-tr .skl-who{display:none}}

/* delete asks in place: the pressed button widens into the question */
.icf{display:inline-flex;align-items:center;gap:2px;height:28px;padding:0 3px 0 8px;vertical-align:middle;
  border-radius:var(--r-control);background:var(--field);color:var(--ink-soft);
  font-family:'Inter',sans-serif;font-size:13px;font-weight:500;white-space:nowrap;animation:icfIn .22s var(--ease-out)}
@keyframes icfIn{from{opacity:.4;transform:scaleX(.7);transform-origin:right center}}
.icf .icf-q{padding-right:8px}
.icf button{height:22px;line-height:22px;padding:0 9px;border:0;border-radius:5px;font:inherit;font-weight:600;cursor:pointer}
.icf .icf-yes{background:var(--accent);color:#fff} .icf .icf-yes:hover{filter:brightness(.92)}
.icf .icf-no{background:none;color:var(--ink-soft);margin-left:2px} .icf .icf-no:hover{background:var(--field-h)}
.icf.icf-float{position:absolute;right:4px;top:50%;transform:translateY(-50%);z-index:5;box-shadow:0 6px 18px -10px rgba(0,0,0,.4)}
@media (max-width:480px){.icf .icf-q{display:none}}

/* the rail's mark travels */
.sb.has-mark .sb-scroll{position:relative}
.rail-mark{position:absolute;left:0;top:0;border-radius:var(--r-control);background:var(--accent);z-index:0;pointer-events:none;
  transition:transform .34s cubic-bezier(.34,1.45,.64,1),width .2s,height .2s,opacity .15s}
.rail-mark.off{opacity:0}
.sb.has-mark .sb-scroll .nav{position:relative;z-index:1}
.sb.has-mark .sb-scroll .nav.active{background:transparent}
@media (prefers-reduced-motion:reduce){.rail-mark{transition:none}}

/* rule 25: one quiet line under a form pop-up's title when its draft is back (js/drafts.js) */
.draftbar{display:flex;align-items:baseline;gap:10px;margin:-6px 0 14px;font:13px 'Inter',sans-serif;color:var(--ink-soft)}
.draftbar .dgo{border:0;background:none;padding:0;font:600 13px 'Inter',sans-serif;color:var(--accent-ink);cursor:pointer;
  text-decoration:underline;text-underline-offset:3px}
.draftbar .dgo:hover{color:var(--accent)}

/* Customers toolbar: the owner's "Check IXItask" (the toolbar's btn-line with ui.js btnSaving's busy and done labels). Fixed width: "Check IXItask", "Checking",
   "Checked" and "Not checked" all fit, so nothing beside it moves while the words change (11 Nov 2026). */
.ixck-host{display:inline-flex;align-items:center;margin-left:8px}
.ixck-host .btn-line.ixck{display:inline-flex;align-items:center;justify-content:center;width:132px;flex:none;white-space:nowrap}
.ixck-host .btn-line.ixck[hidden]{display:none}

/* the job row's day: the phone shows "13 Oct 2026" (phone-app.css), everything else the date as before (12 Nov 2026) */
.mt2 .mt-nice{display:none}
/* ⚠ NO BOUNCE (12 Nov 2026, "it looks cheap"): pulled past the top or the bottom, a page, a list, a sheet, a pop-up or a
   form stops dead instead of stretching and springing back. Up-down only, so a sideways swipe still goes Back.
   overscroll-behavior:contain (on many pop-ups) stops the hand-over to the page but still bounces on an iPhone: only none
   stops the bounce itself. The technician's and the driver's screens keep the browser's own pull, as phone-app.css says. */
/* Phones and touch screens only (review 12 Nov 2026): on a laptop with a mouse there is no bounce to stop, and "none"
   on every box would stop the wheel handing over to the page at the end of an inner list. */
/* 18 Nov 2026: the laptop DOES bounce. Zen/Firefox with a touchpad pulled the Files list down past its top and showed a
   blank band ("make sure i cant further scroll up"). So the rule now covers every screen size, not phones only. */
/* ⚠ THE SHAPE (20 Nov 2026, his pick (a), after the wheel stopped dead in Chrome/Edge/Brave since the 19 Nov deploy).
   Chromium and WebKit treat EVERY scroll box with "none" as a wall the wheel and the finger cannot pass, overflow:hidden
   ones too (a row's clipped name, a cell, a card): over them the column behind did not move (Customers 30 of 30 points).
   23 Nov 2026 ("only in zen it bugged"): Firefox/Zen does the SAME now (seen in Zen rv:160, real wheel path: Customers list
   30 of 30 dead with "none" on every element, 0 without). So every engine gets "none" only on html, body and the UP-DOWN
   COLUMNS list below; never bring an every-element rule back for any engine. A Zen check counts only with the pref
   remote.events.async.wheel.enabled = true and a viewport smaller than the window (the default wheel skips the real path). Chromium bounces only the page
   itself (html), never an inner box (healer, 20 Nov: headless with ElasticOverscroll, page 4px, inner boxes 0); an
   iPhone can stretch an inner box that really scrolls, so every box that scrolls up-down is in the list.
   ONE list: a box that gets overflow(-y):auto/scroll with a height cap adds its selector here. Never add a box that only
   scrolls sideways or only clips (overflow:hidden): that brings the dead wheel back. Laptop-only lt-* boxes sit in the
   twin line at the end of lt-shell.css, because a CRM sheet may not style an lt class (test/laptop-scope.js).
   Checks: D:/App/_shots/crm-wheel/tools/cols.cjs (every box that scrolls up-down computes none) and gridall.cjs (wheel
   and finger dead points per screen).
   23 Nov 2026 ("the scroll still broke in customers"): a textarea is a scroll box too, so over the customer box's Details
   (growing textareas that never scroll) the wheel was dead in Chrome/Edge/Brave, and over any text box in a form. With a
   mouse or touchpad textareas are out of the list; on a touch screen they keep "none", but never a growing one. */
html:has(> body:not(.role-tech):not(.role-driver)),body:not(.role-tech):not(.role-driver){overscroll-behavior-y:none!important}
@media (pointer:coarse){:where(body:not(.role-tech):not(.role-driver)) textarea:not([data-grow]){overscroll-behavior-y:none!important}}
/* UP-DOWN COLUMNS (laptop and phone; selectors as their own scroll rules write them) */
:where(body:not(.role-tech):not(.role-driver)) :is(main,.sb-scroll,.modal,.jf-tlist,.dlb .cap,.tvlb-foot,
  .pvlb-foot,.nplist,#searchResults,#tbResults,#rcMenu,.mesheet .card,.secsheet .card,.as-body,
  .bd-scroll,.bd-asg,.bd-fcard,.bd-body,.bd-tplbox,.bh-grid,.cp-t,.cp-list,.cb-rows,.cb-th,.cb-gbox .pp-bd,.cb-pick,.cb-sf,
  .po-list,.pp-bd,.c-full,.sp-multiple-selector-list,.dp .dp-pop.k-float.k-tight,.dp .dp-fold.k-float.k-tight > .dp-fold-in,
  .db-scroll,#dbDD,.db-pop .db-left,.db-pop .db-pane,.dbv .pvx-view.dbv-pdf,#dlDdList,.dlg-bd,
  .fl-dd .fl-ddl,.fl-scroll,.flv-foot,.g-toc,.g-doc,.hm-layer .hm-ofpanel,.hm-layer .hm-gal-l,.hm-layer .hm-gal-r,
  .cg-pop.hm-layer.hm-hits,.cg-pop.sr-hits,.hr-wrap,.inb-listhost .jc-list,.inb-float,.pin-list,.na-text,
  .cg-scroll,.cg-list,.cg-rec.card,.cg-rl,.cg-rr,.cg-rec.drawer .cg-rgrid,.lk-cards,.lk-colb,
  .ms-list,.ms-scroll,.rt-scroll,.vs-supsug,.nn-lrows,.pa-list,.ps-vlist,.pd-list,.pk-list,.pvx-side,.pl-left,.pl-gwrap,
  body.mph-desk #view-maintenance,body.dph-desk #view-shipment,.mtp-scroll,.cph-scroll,.mph-pane,.mph-mlist,
  .mp-body,.mp-drop,.mp-menu,.sg-ddl,.su-pin-t,.tp-ov,.tp-sugg,.tp-qwrap,.tp-menu,.tp-lkbody,
  .pj .overlay,.pj.overlay,.pj .picklist,.pj.picklist,.pj .fmenu,.pj.fmenu,.pj .inbox-pop .pop,.pj.inbox-pop .pop,
  .pj .atmenu,.pj.atmenu,.pj .pkcol,.pj.pkcol,.pj .cw-list,.pj.cw-list,.pj .pickwho,.pj.pickwho,.pj .ckmenu,.pj.ckmenu,
  .pj .rail,.pj.rail,.pj .sheet-body,.pj.sheet-body,.pj .ptree,.pj.ptree)
  {overscroll-behavior-y:none!important}

/* ═══ TEXT FIXES (his "B all number", 23 Nov 2026). Office screens only. ═══ */
/* underlines sit clear of the tails of g, y and p (inherited, so every underline that does not set its own) */
body:not(.role-tech):not(.role-driver){text-underline-offset:3px}
/* file names on one line; the fade in the middle is fmid.js */
body:not(.role-tech):not(.role-driver) .pj .file .fmain > .fname{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fmid{display:flex!important;min-width:0;max-width:100%;overflow:hidden;-webkit-mask-image:none!important;mask-image:none!important}
.fmid .fmid-a{flex:0 1 auto;min-width:0;overflow:hidden!important;white-space:pre!important;text-overflow:clip!important}
.fmid .fmid-a.is-cut{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 30px),rgba(0,0,0,.08))!important;mask-image:linear-gradient(90deg,#000 calc(100% - 30px),rgba(0,0,0,.08))!important}
.fmid .fmid-h{display:none!important}
.db-pop .db-lrow .fmid .fmid-a{pointer-events:auto;cursor:pointer}
.fmid .fmid-b{flex:none;white-space:pre}
.fmid .fmid-a.is-cut + .fmid-b::before{content:"…"}
