/* ============================================================
   Northgate DRA — design system
   Brand: Blue #0057B8 | Green #509E2F | Gold #FFC000
          Orange #F47E42 | Red #B4292E | Ink #1A1A1A
   ============================================================ */

:root {
  --blue: #0057B8;
  --blue-dark: #00458F;
  --blue-tint: #E8F0FA;
  --green: #509E2F;
  --green-dark: #3F7D25;
  --green-tint: #EDF6E8;
  --gold: #FFC000;
  --gold-tint: #FFF6DC;
  --orange: #F47E42;
  --orange-tint: #FDEEE5;
  --red: #B4292E;
  --red-tint: #F9E9EA;
  /* Home-tile chips for the tools outside the brand palette (styles keyed on data-key below). */
  --teal: #0F8B8D;
  --purple: #6A4CBE;
  --slate: #4F6D86;
  --concrete: #6E7681;
  --asphalt: #3A3A3A;
  --amber: #C77800;
  --ink: #1A1A1A;
  --gray-7: #444444;
  --gray-5: #767676;
  --gray-3: #C9C9C9;
  --gray-2: #E4E4E4;
  --gray-1: #F4F5F7;
  --white: #FFFFFF;

  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 1px 3px rgba(26, 26, 26, 0.12);
  --shadow-lg: 0 4px 16px rgba(26, 26, 26, 0.16);

  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px;

  --tap: 52px; /* minimum tap target */
  --font: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* cool neutrals + extras used by the professional Observations redesign */
  --line: #E4E8EE;
  --line-soft: #EEF1F5;
  --muted: #5F6B78;
  --faint: #8A94A0;
  --canvas: #F4F6F9;
  --gold-ink: #8A6D00;
  --radius-lg: 14px;
  --shadow-card: 0 2px 10px rgba(21, 27, 35, 0.06);

  /* Observation severity — one scale, used by the picker, the list pill, the
     card stripe and the close-out header so a level reads the same everywhere.
     Four levels: High and Urgent used to collapse into one.
     The solids all carry white text and the tints all carry the matching dark
     ink, so both stay legible in sunlight. Note --sev-low is a dark amber, not
     the brand gold: gold-on-white is roughly 1.6:1 and unreadable outdoors. */
  --sev-low:  #8A6D00;  --sev-low-tint:  #FFF6DC;
  --sev-med:  #BD5620;  --sev-med-tint:  #FDEEE5;
  --sev-hi:   #B4292E;  --sev-hi-tint:   #F9E9EA;
  --sev-urg:  #7A1418;  --sev-urg-tint:  #F0D9DA;
}

/* Bundled Noto Sans (offline-first — no CDN) */
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/noto-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/noto-sans-600.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/noto-sans-700.woff2") format("woff2"); }

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

/* One rule so the hidden attribute always hides: an author display (display:block on a list row) otherwise beats the browser default and a filtered row stays drawn. */
[hidden] { display: none !important; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--gray-1);
  font-size: 17px;
  line-height: 1.45;
}

button { font-family: var(--font); cursor: pointer; }
input, textarea, select { font-family: var(--font); }

/* ---------- Header ---------- */
.app-header {
  background: var(--white);
  border-bottom: 4px solid var(--blue);
  padding: var(--s3) var(--s4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  position: sticky;
  top: 0;
  z-index: 50;
}
.app-header .logo { height: 44px; display: block; }

/* The logo doubles as the Home button. It should read as the logo, not as a
   button — no chrome — but it still needs a full tap target and a visible
   focus ring for keyboard use. */
.app-header .logo-btn {
  background: none; border: 0; padding: 0; margin: 0;
  display: flex; align-items: center;
  min-height: var(--tap);
  cursor: pointer;
  border-radius: var(--radius-sm);
  -webkit-tap-highlight-color: transparent;
}
.app-header .logo-btn:active { opacity: 0.55; }
/* On the sign-in screen the logo is branding, not a button (auth.js
   setHeaderNav). Full opacity and a normal cursor: a greyed-out logo reads as
   "this page failed to load", which is the opposite of the message. */
.app-header .logo-btn-inert,
.app-header .logo-btn-inert:active { opacity: 1; cursor: default; }
.app-header .logo-btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.logo-fallback {
  font-size: 24px; font-weight: 800; color: var(--blue); letter-spacing: -0.5px;
}
.logo-fallback span { color: var(--green); font-size: 13px; font-weight: 700; font-style: italic; display: block; letter-spacing: 0; }

.menu-btn {
  display: flex; align-items: center; justify-content: center;
  min-width: var(--tap); min-height: var(--tap);
  background: var(--white); border: 1px solid var(--gray-3);
  border-radius: var(--radius-sm); font-size: 22px; color: var(--gray-7);
}
.menu-btn > .ic { width: 22px; height: 22px; }
.menu-btn:active { background: var(--gray-1); }

.menu-panel {
  position: absolute; right: var(--s4); top: 64px;
  background: var(--white); border: 1px solid var(--gray-2);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 230px; overflow: hidden; z-index: 100;
}
/* flex, not block, so the Lucide icon and the label sit on one baseline. The
   icon is gray-5 against ink text: it labels the row, it isn't the row. */
.menu-panel button {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: var(--s4); font-size: 16px; background: none; border: none;
  border-bottom: 1px solid var(--gray-1); color: var(--ink);
}
.menu-panel button > .ic { flex: none; width: 19px; height: 19px; color: var(--gray-5); }
.menu-panel button:active > .ic { color: var(--blue); }
.menu-panel button:last-child { border-bottom: none; }
.menu-panel button:active { background: var(--blue-tint); }
/* the count beside "My requests": requests of yours with news (app.js syncMyRequests) */
.menu-panel .menu-count { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 11px; background: var(--gold); color: var(--ink); font-size: 14px; font-weight: 700; text-align: center; }
.hidden { display: none !important; }

/* The current screen's title, next to the logo — PZ.setHeaderTitle (app.js),
   filled in by the screen itself. Same "logo | divider | title" look as
   admin/wf-core.js's Job Resources header, so both consoles read the same
   way: .hdr-vr copies admin.css's .wf-hdr-vr exactly (1px, 24px, #E4E4E4),
   and .hdr-title copies admin.css's `.app-header.wf-hdr-active .admin-tag`
   font rule exactly (16px / 600 / --ink) rather than inventing its own.
   Desktop only: a phone-width header has no room for a title next to a
   ~165px wordmark logo, so below 1100px both stay display: none and the
   screen's own in-page h1 carries the title instead, hidden above 1100px
   by each screen's own "hide above desktop breakpoint" class (.qty-h1-narrow).
   flex: 1 1 auto (not the header's justify-content: space-between) is what
   keeps the title hugging the divider rather than floating in the middle of
   the row — it claims all the space between logo and job chip / menu
   button, and its own text sits at the left edge of that space. The job
   chip is unaffected either way: it is position: absolute, centred on the
   header itself, not a sibling in this flex flow. */
.hdr-vr {
  display: none;
  width: 1px;
  height: 24px;
  background: #E4E4E4;
  flex: none;
}
.hdr-title {
  display: none;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* A back control in the title slot (PZ.setHeaderBack): reads as a link, not a button. */
.hdr-back { background: none; border: 0; padding: 4px 6px; margin: 0 0 0 -6px; border-radius: var(--radius-sm); font: inherit; font-weight: 600; color: var(--blue); cursor: pointer; }
.hdr-back:hover { text-decoration: underline; }
.hdr-back:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
/* The small ⓘ after the title (PZ.setHeaderInfo): one sentence of facts on tap, also its title. */
.hdr-info { display: inline-flex; vertical-align: middle; margin: 0 0 0 6px; padding: 3px; border: 0; border-radius: 50%; background: none; color: var(--green, var(--blue)); cursor: pointer; }
.hdr-info .ic { width: 18px; height: 18px; }
.hdr-info:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
.hdr-info-pop { position: fixed; z-index: 60; max-width: 360px; padding: 10px 12px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 28px -14px rgba(20, 30, 50, .4); font-size: 14px; font-weight: 400; color: var(--ink); }
@media (min-width: 1100px) {
  .hdr-title { display: block; }
  /* Only when there is actually a title to divide from the logo — every
     screen that never calls PZ.setHeaderTitle leaves #hdrTitle empty, and
     an empty title should mean no divider either. */
  .hdr-vr:has(+ #hdrTitle:not(:empty)) { display: block; }
}

/* ---------- Layout containers ---------- */
/* overflow-x:clip is the backstop behind the date/time min-width:0 rules. We
   cannot prove on a desktop engine what width iOS gives a native date control
   (Playwright's WebKit says 152px; a real iPhone is wider), so rather than
   trust the measurement, this makes "a child drags the page sideways"
   structurally impossible.
   `clip`, not `hidden`: hidden would create a scroll container and force
   overflow-y to auto, which would trap the combo dropdowns and the menu inside
   the screen. clip leaves vertical overflow escaping normally. */
.screen { max-width: 640px; margin: 0 auto; padding: var(--s4) var(--s4) 120px; overflow-x: clip; }
body[data-layout="grid"] .screen.wide { max-width: 1200px; }

/* ---------- Typography ---------- */
h1 { font-size: 26px; font-weight: 800; margin-bottom: var(--s2); letter-spacing: -0.3px; }
h2 { font-size: 21px; font-weight: 700; }
.sub { color: var(--gray-5); font-size: 16px; margin-bottom: var(--s5); }

.section-bar {
  background: var(--blue); color: var(--white);
  padding: var(--s3) var(--s4);
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: 18px; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center;
}
.section-bar .hint { font-size: 13px; font-weight: 600; opacity: 0.85; }

.card {
  background: var(--white);
  border: 1px solid var(--gray-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: var(--s5);
  overflow: hidden;
}
.card-body { padding: var(--s4); }
/* Let combo dropdowns escape the card's overflow:hidden so long job/name lists aren't clipped */
.card:has(.combo-list) { overflow: visible; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: var(--tap);
  padding: var(--s3) var(--s5);
  border-radius: var(--radius);
  font-size: 18px; font-weight: 700;
  border: none; width: 100%;
  /* Was nowrap, which made long labels ("Fill activity & foreman from that day's
     DRA", "Take photo / choose from library") run outside the button on a phone.
     They wrap onto a second line now instead of spilling. */
  white-space: normal;
  text-align: center;
  overflow-wrap: break-word;
  min-width: 0;
  transition: filter 0.1s, transform 0.05s;
}
.btn:active { transform: scale(0.985); filter: brightness(0.93); }
.btn:disabled { opacity: 0.45; pointer-events: none; }
/* Grayed like :disabled but still takes a tap — the DRA's Next uses it to say what the step is waiting for. */
.btn.is-off { opacity: 0.45; }

.btn-primary { background: var(--blue); color: var(--white); }
.btn-green { background: var(--green); color: var(--white); }
.btn-outline { background: var(--white); color: var(--blue); border: 2px solid var(--blue); }
.btn-ghost { background: var(--gray-1); color: var(--gray-7); border: 1px solid var(--gray-3); }
.btn-danger-ghost { background: var(--white); color: var(--red); border: 1px solid var(--red); }
.btn-xl { min-height: 74px; font-size: 20px; }
.btn-sm { min-height: 40px; font-size: 15px; padding: var(--s2) var(--s3); width: auto; font-weight: 600; }

.btn .icon { font-size: 26px; line-height: 1; flex: none; }

/* Inline Lucide icons (see icon() in app.js). Sized in em so one icon suits a
   btn-sm and a btn-xl alike, and coloured by inheritance via currentColor. */
.ic { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -0.18em; }

/* The em rule is right almost everywhere, but a handful of places set a big
   font-size purely to grow an emoji glyph. 1.15em of 52px is a 60px icon —
   pin those back to what the emoji actually looked like. */
.btn .icon .ic { width: 26px; height: 26px; vertical-align: 0; }
.mic-btn .ic { width: 56px; height: 56px; }
.scan-add-ic .ic { width: 36px; height: 36px; }
.fix-go .ic { width: 18px; height: 18px; }

.btn-row { display: flex; gap: var(--s3); }
.btn-row .btn { flex: 1; min-width: 0; }

/* Loading spinner inside buttons */
.spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.35); border-top-color: var(--white);
  animation: spin 0.8s linear infinite; display: inline-block;
}
.spinner.dark { border-color: rgba(0,87,184,0.25); border-top-color: var(--blue); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Inputs ---------- */
/* min-width:0 matters: a .field is often a grid/flex child, and those default to
   min-width:auto — they refuse to shrink below their content's intrinsic width.
   iOS gives date/time inputs a wide intrinsic width, so without this they burst
   out of the column and off the side of the page. */
.field { margin-bottom: var(--s4); min-width: 0; }
.field label {
  display: block; font-size: 15px; font-weight: 700;
  color: var(--gray-7); margin-bottom: var(--s1);
}
/* `email` and `tel` belong in this list. Without them the browser default
   applies — a small, differently-sized box that looks broken next to the
   password field beside it. Caught on the login screen, which was the first
   place in the app to use an email input at all. */
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="password"], .field input[type="datetime-local"], .field input[type="date"], .field input[type="time"], .field input[type="number"], .field input[type="search"], .field textarea, .field select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: var(--tap);
  padding: var(--s3);
  font-size: 18px;
  border: 1.5px solid var(--gray-3);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
}
/* Safari sizes these from the control's own content unless told otherwise.
   On iOS the width comes from the inner ::-webkit-date-and-time-value box, not
   from the <input> itself — so constraining only the input leaves the real
   culprit untouched. `display:block` matters too: these default to
   inline-block, where width:100% is measured against a line box rather than
   the field. Verified in Playwright's WebKit; iOS Safari renders the same
   pseudo-elements. */
.field input[type="date"], .field input[type="time"], .field input[type="datetime-local"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
}
.field input[type="date"]::-webkit-date-and-time-value,
.field input[type="time"]::-webkit-date-and-time-value,
.field input[type="datetime-local"]::-webkit-date-and-time-value {
  text-align: left;
  margin: 0;
  min-width: 0;
  width: 100%;
}
.field input[type="date"]::-webkit-datetime-edit,
.field input[type="time"]::-webkit-datetime-edit,
.field input[type="datetime-local"]::-webkit-datetime-edit {
  min-width: 0;
  overflow: hidden;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 87, 184, 0.15);
}

/* ---------- Searchable job picker ---------- */
.combo { position: relative; }
.combo > input { padding-right: 44px; }
.combo-clear {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 8px;
  border: none; background: var(--gray-1); color: var(--gray-5);
  font-size: 16px; line-height: 1;
}
.combo-clear .ic { width: 16px; height: 16px; }
.combo-clear:active { background: var(--gray-2); }
.combo-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px);
  background: var(--white); border: 1.5px solid var(--gray-3);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  max-height: 320px; overflow-y: auto; z-index: 60;
  -webkit-overflow-scrolling: touch;
}
.combo-item {
  display: flex; align-items: center; gap: var(--s2);
  min-height: 50px; padding: var(--s3);
  border-bottom: 1px solid var(--gray-1);
  font-size: 16px; cursor: pointer;
}
.combo-item:active { background: var(--blue-tint); }
.combo-item .jn { font-weight: 800; color: var(--blue); flex: none; }
.combo-item.combo-other { font-weight: 700; color: var(--blue); background: var(--blue-tint); }
.combo-empty { padding: var(--s3); color: var(--gray-5); font-size: 15px; }

/* ---------- Big checkboxes ---------- */
.check-item {
  display: flex; align-items: center; gap: var(--s3);
  min-height: var(--tap);
  padding: var(--s3);
  border: 1.5px solid var(--gray-2);
  border-radius: var(--radius-sm);
  margin-bottom: var(--s2);
  background: var(--white);
  cursor: pointer;
  user-select: none; -webkit-user-select: none;
  font-size: 17px;
}
.check-item:active { background: var(--gray-1); }
.check-item .box {
  flex: none; width: 30px; height: 30px;
  border: 2.5px solid var(--gray-3); border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: transparent; background: var(--white);
}
.check-item.checked { border-color: var(--green); background: var(--green-tint); }
.check-item.checked .box { background: var(--green); border-color: var(--green); color: var(--white); }
.check-item.gold.checked { border-color: var(--gold); background: var(--gold-tint); }
.check-item.gold.checked .box { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.ai-flag {
  font-size: 12px; font-weight: 700; color: var(--blue);
  background: var(--blue-tint); border-radius: 5px; padding: 2px 7px; margin-left: auto; flex: none;
}

/* ---------- Hazard cards ---------- */
.hazard-card {
  border: 1.5px solid var(--gray-2);
  border-radius: var(--radius);
  background: var(--white);
  margin-bottom: var(--s3);
  overflow: hidden;
}
.hazard-card.present { border-color: var(--orange); }
.hazard-head {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3); width: 100%;
}
.hazard-head img { width: 56px; height: 56px; flex: none; }
.hazard-title { flex: 1; min-width: 0; }
.hazard-title .energy {
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--orange);
}
.hazard-title .name { font-size: 17px; font-weight: 700; line-height: 1.25; }

.present-toggle { display: flex; gap: var(--s2); flex: none; }
.present-toggle button {
  min-width: 56px; min-height: 48px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gray-3);
  background: var(--white);
  font-size: 15px; font-weight: 800; color: var(--gray-5);
}
.present-toggle button.on-yes { background: var(--orange); border-color: var(--orange); color: var(--white); }
.present-toggle button.on-no { background: var(--gray-7); border-color: var(--gray-7); color: var(--white); }

.hazard-controls { padding: var(--s3); border-top: 1.5px solid var(--gray-2); background: #FBFBFC; }
.controls-label {
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
  margin: var(--s2) 0 var(--s2);
  padding: var(--s1) var(--s2); border-radius: 5px; display: inline-block;
}
.controls-label.direct { background: var(--green); color: var(--white); }
.controls-label.alt { background: var(--gold); color: var(--ink); }

/* ---------- Progress ---------- */
.progress-wrap { margin-bottom: var(--s4); }
.progress-text { font-size: 14px; font-weight: 700; color: var(--gray-5); margin-bottom: var(--s1); }
.progress-track { height: 8px; background: var(--gray-2); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--blue); border-radius: 4px; transition: width 0.25s; }

/* ---------- Sticky footer nav (phone) ---------- */
.step-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-2);
  padding: var(--s3) var(--s4);
  padding-bottom: calc(var(--s3) + env(safe-area-inset-bottom, 0px));
  display: flex; gap: var(--s3);
  z-index: 40;
}
.step-nav .btn-back { flex: 0 0 104px; padding-left: var(--s3); padding-right: var(--s3); }
.step-nav .btn-next { flex: 1; }

/* ---------- Signature ---------- */
.sig-block { margin-bottom: var(--s5); }
.sig-canvas-wrap {
  border: 1.5px dashed var(--gray-3);
  border-radius: var(--radius-sm);
  background: var(--white);
  position: relative;
  overflow: hidden;
  touch-action: none;
}
.sig-canvas-wrap.signed { border-style: solid; border-color: var(--green); }
.sig-canvas-wrap canvas { display: block; width: 100%; height: 140px; touch-action: none; }
.sig-hint {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--gray-3); font-size: 16px; font-weight: 600; pointer-events: none;
}
.sig-actions { display: flex; justify-content: flex-end; gap: var(--s2); margin-top: var(--s2); }

.crew-block-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--s2);
}
.crew-num { font-size: 15px; font-weight: 800; color: var(--blue); }
.sig-block { padding: var(--s4); border: 1.5px solid var(--gray-2); border-radius: var(--radius); margin-bottom: var(--s4); background: var(--white); }

/* ---------- Voice screen ---------- */
.mic-btn {
  width: 132px; height: 132px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  border: none; font-size: 52px;
  display: flex; align-items: center; justify-content: center;
  margin: var(--s6) auto var(--s3);
  box-shadow: var(--shadow-lg);
  transition: transform 0.1s;
}
.mic-btn:active { transform: scale(0.95); }
.mic-btn.listening { background: var(--red); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(180, 41, 46, 0.45); }
  50% { box-shadow: 0 0 0 22px rgba(180, 41, 46, 0); }
}
.mic-status { text-align: center; font-size: 16px; font-weight: 700; color: var(--gray-5); margin-bottom: var(--s4); }
.mic-status.live { color: var(--red); }

/* ---------- Chips ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); }
.chip {
  min-height: 44px; padding: var(--s2) var(--s4);
  border-radius: 22px; border: 1.5px solid var(--blue);
  background: var(--blue-tint); color: var(--blue);
  font-size: 16px; font-weight: 700;
}
.chip:active { background: var(--blue); color: var(--white); }

/* ---------- Banners & notices ---------- */
.banner {
  border-radius: var(--radius); padding: var(--s3) var(--s4);
  margin-bottom: var(--s4); font-size: 15px; font-weight: 600;
  display: flex; align-items: center; gap: var(--s3);
  border: 1.5px solid transparent;
}
.banner-blue { background: var(--blue-tint); color: var(--blue-dark); border-color: #BAD2EE; }
.banner-gold { background: var(--gold-tint); color: #7A5C00; border-color: #EAD48A; }
.banner-green { background: var(--green-tint); color: var(--green-dark); border-color: #BCDCA9; }
.banner-red { background: var(--red-tint); color: var(--red); border-color: #E4B7B9; }
.banner .btn-sm { margin-left: auto; flex: none; }

/* ---------- View as strip (auth.js renderViewAsBanner, admin/pz-shim.js) ----------
   An admin is looking at the app as somebody else. Sticky at the very top of
   <body>, above the header, on every screen; amber like the other warnings.
   Its real height is written to --viewas-h so the header, which is itself
   sticky at top:0, sits just beneath it instead of sliding under it. On a
   phone the message wraps and Stop stays on the right at full tap size. */
.viewas-bar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s2) var(--s4);
  background: var(--gold-tint); color: #7A5C00;
  border-bottom: 2px solid var(--gold);
  font-size: 14px; font-weight: 700; line-height: 1.3;
}
.viewas-bar .viewas-msg { flex: 1 1 auto; min-width: 0; }
.viewas-bar .viewas-stop { flex: none; margin-left: auto; min-height: 44px; min-width: 64px; }
body.viewas-on .app-header { top: var(--viewas-h, 0px); }
@media print { .viewas-bar { display: none; } }

/* Quick-check lines are buttons — tap one and the DRA jumps to the step that
   fixes it. Sized for a gloved thumb on a phone, not a mouse pointer. */
.fix-list { list-style: none; margin: var(--s2) 0 0; padding: 0; }
.fix-item {
  display: flex; align-items: center; gap: var(--s3);
  width: 100%; min-height: 48px; text-align: left;
  background: rgba(255, 255, 255, .55); color: inherit;
  border: 1.5px solid rgba(0, 0, 0, .12); border-radius: var(--radius);
  padding: var(--s2) var(--s3); margin-top: var(--s2);
  font: inherit; font-weight: 600; cursor: pointer;
}
.fix-item > span:first-child { flex: 1 1 auto; min-width: 0; }
.fix-go { flex: none; font-weight: 800; }
.fix-item:active { background: var(--white); }
.fix-item:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Unfinished-DRA banner: text + Resume/Delete. On a phone all three on one line
   crushes the message, so the buttons drop to their own full-width row. */
.draft-banner { flex-wrap: wrap; }
.draft-banner > span { min-width: 0; }
.draft-acts { display: flex; gap: var(--s2, 8px); margin-left: auto; flex: none; }
.draft-acts .btn-sm { margin-left: 0; }
@media (max-width: 560px) {
  .draft-acts { width: 100%; margin-left: 0; }
  .draft-acts .btn-sm { flex: 1 1 0; }
}

/* Which database is this build talking to? (see dbEnv() in app.js) */
.env-banner { letter-spacing: .01em; }
.env-banner code {
  font-family: ui-monospace, monospace; font-size: 12.5px;
  font-weight: 700; opacity: .85;
}
.env-pill {
  display: inline-block; margin-bottom: var(--s3);
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gray-5); background: var(--gray-1);
  border: 1px solid var(--line-soft); border-radius: 999px;
  padding: 2px 10px;
}

/* The DRA's energy-wheel stop-work line. Deliberately its own class: this used
   to be `.stop-note`, the same name the Stop Button module reuses further down
   for a pale-tinted card. That rule overrode the background but not the color,
   so this line rendered white-on-#F9E9EA — a contrast ratio of about 1.07:1,
   i.e. invisible. It is a safety instruction, so it gets solid red and white. */
.dra-stop-note {
  background: var(--red); color: var(--white);
  border-radius: var(--radius); padding: var(--s4);
  font-weight: 700; font-size: 17px; line-height: 1.4; text-align: center;
  margin: var(--s4) 0;
}

/* ---------- Energy wheel review ---------- */
.wheel-list { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s3) 0 var(--s4); }
.wheel-list span {
  background: var(--blue-tint); color: var(--blue-dark);
  border-radius: 16px; padding: var(--s1) var(--s3); font-size: 14px; font-weight: 700;
}
.big-toggle {
  display: flex; align-items: center; gap: var(--s3);
  border: 2px solid var(--gray-3); border-radius: var(--radius);
  padding: var(--s4); background: var(--white); width: 100%;
  font-size: 18px; font-weight: 700; color: var(--ink); text-align: left;
}
.big-toggle .box {
  flex: none; width: 36px; height: 36px; border: 2.5px solid var(--gray-3);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: transparent;
}
.big-toggle.on { border-color: var(--green); background: var(--green-tint); }
.big-toggle.on .box { background: var(--green); border-color: var(--green); color: var(--white); }

/* ---------- Crew summary ---------- */
.crew-summary {
  background: var(--white); border: 1.5px solid var(--gray-2);
  border-left: 6px solid var(--green);
  border-radius: var(--radius); padding: var(--s4);
  font-size: 17px; line-height: 1.55;
}
.crew-summary h3 { font-size: 17px; color: var(--blue); margin: var(--s3) 0 var(--s1); }
.crew-summary h3:first-child { margin-top: 0; }
.crew-summary ul { padding-left: 22px; margin-bottom: var(--s2); }
.crew-summary li { margin-bottom: 4px; }

/* ---------- Grid layout (iPad / desktop) ---------- */
body[data-layout="grid"] .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: var(--s5);
  align-items: start;
}
body[data-layout="grid"] .form-grid .card { margin-bottom: 0; }
body[data-layout="grid"] .form-grid .span-all { grid-column: 1 / -1; }
body[data-layout="grid"] .step-nav { position: static; border: none; background: none; padding: var(--s5) 0; }
body[data-layout="grid"] .progress-wrap { display: none; }

/* ---------- Admin ---------- */
.admin-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.admin-table th, .admin-table td {
  text-align: left; padding: var(--s2) var(--s3);
  border-bottom: 1px solid var(--gray-2);
}
.admin-table th { background: var(--gray-1); font-size: 13px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--gray-5); }
.admin-table .inactive { opacity: 0.45; }
.admin-table input { width: 100%; padding: var(--s1) var(--s2); font-size: 15px; border: 1px solid var(--gray-3); border-radius: 5px; }

/* ---------- Done screen ---------- */
.done-mark {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--green); color: var(--white);
  font-size: 52px; display: flex; align-items: center; justify-content: center;
  /* The tick is a Lucide <svg> now, not a ✓ character. At 52px the font glyph
     was whatever the phone happened to draw — thin on iOS, chunky on Android,
     and off-centre on both. A little heavier than the 2px default so it holds
     up against the green. */
  margin: var(--s8) auto var(--s5);
}
.done-mark .ic { width: 46px; height: 46px; stroke-width: 2.6; }

/* The crash screen's counterpart to .done-mark — same 44px weight the ⚠️ had,
   but drawn rather than typeset. No circle: this one shouldn't look like a
   badge you earned. */
.err-mark { color: var(--gold); margin-bottom: var(--s3); }
.err-mark .ic { width: 52px; height: 52px; stroke-width: 2.2; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%);
  background: var(--ink); color: var(--white);
  padding: var(--s3) var(--s5); border-radius: 24px;
  font-size: 15px; font-weight: 600; z-index: 200;
  box-shadow: var(--shadow-lg);
  max-width: 92vw; text-align: center;
  opacity: 0; transition: opacity 0.25s;
  pointer-events: none;
}
.toast.show { opacity: 1; }

/* ---------- "A newer version is ready" bar (see checkForUpdate in error.js) ----------
   Pinned to the bottom rather than pushing the header down: it can appear at
   any moment, including mid-form, and must not move what the user is tapping. */
.update-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 220;
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4);
  padding-bottom: calc(var(--s3) + env(safe-area-inset-bottom, 0px));
  background: var(--blue); color: var(--white);
  font-size: 15px; font-weight: 600; line-height: 1.3;
  box-shadow: 0 -2px 12px rgba(26, 26, 26, 0.22);
}
.update-bar .btn {
  flex: none; margin-left: auto; width: auto;
  background: var(--white); color: var(--blue-dark);
  border: 0; font-weight: 800; white-space: nowrap;
}
.update-bar .btn:active { background: var(--blue-tint); }

/* ---------- With the computer sidebar on (home-desk.js, body.has-desk-side) ----------
   Things pinned to the window start after the sidebar, and the toast centres over the content. The sidebar is z-index 40;
   every full-screen layer and viewer is 45 or more, so they cover it. Without the class none of this applies. */
body.has-desk-side .toast { left: calc(50% + var(--hd-side-w) / 2); max-width: calc((100vw - var(--hd-side-w)) * .92); }
body.has-desk-side .update-bar { left: var(--hd-side-w); }
body.has-desk-side .step-nav { left: var(--hd-side-w); }
body.has-desk-side .gd-runbar { left: calc(var(--hd-side-w) + 16px); }

/* ---------- Home app picker ---------- */
.home-tiles { display: flex; flex-direction: column; gap: var(--s4); margin-top: var(--s5); }
.home-tile {
  display: flex; align-items: center; gap: var(--s4);
  width: 100%; text-align: left;
  background: var(--white); border: 1.5px solid var(--gray-2);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: var(--s5); padding-right: 46px; min-height: 92px; /* right: room for the favorite star */
  transition: transform 0.05s, border-color 0.1s, box-shadow 0.1s;
}
.home-tile:active { transform: scale(0.99); }
/* Work Plans and Schedule fetch their module (dfow.js) on the first tap —
   see lazy.js. On a slow link that is a second or two of nothing happening,
   so the tile dims while it waits. The second tap is swallowed in app.js by
   a `loading` flag rather than by pointer-events here, which would make the
   tile fail Playwright's "receives events" check. Removed as soon as the
   file lands or fails. */
.home-tile.tile-loading { opacity: 0.55; }
.home-tile:hover { border-color: var(--blue); box-shadow: var(--shadow-lg); }
.home-ic {
  flex: none; width: 60px; height: 60px; border-radius: 14px;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 32px;
}
.home-title { display: block; min-width: 7em; font-size: 22px; font-weight: 800; color: var(--ink); }
.home-desc { display: block; font-size: 14px; color: var(--gray-5); font-weight: 600; margin-top: 2px; }
/* Phone and tablet (the "simple" layout): the tool name only, no line under it (owner, 2026-12-01). */
body[data-layout="simple"] .home-desc { display: none; }

/* ---------- Under construction (Toolbox Talk) ---------- */
.uc-cone { font-size: 92px; line-height: 1; margin: 12px auto 8px; }

/* ---------- Section title (plain, between cards) ---------- */
.section-title {
  font-size: 20px; font-weight: 800; color: var(--ink);
  margin: var(--s5) 0 var(--s2);
}

/* ---------- HECA inspection ---------- */
.heca-card { margin-bottom: var(--s4); }
.heca-card.present { border-color: var(--orange); }
.heca-top {
  display: flex; align-items: center; gap: var(--s4);
  padding: var(--s3) var(--s4);
}
.heca-ic { flex: none; width: 116px; height: 116px; object-fit: contain; }
.heca-top-r { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: var(--s3); }
.heca-name { font-size: 18px; font-weight: 700; line-height: 1.2; }
.heca-top-r .seg { margin-bottom: 0; }
.heca-expand { padding: 0 var(--s4) var(--s4); }

/* Present / Not Present segmented control */
.seg { display: flex; gap: var(--s2); margin-bottom: var(--s3); }
.seg-btn {
  flex: 1; min-height: 48px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-3); background: var(--white);
  font-size: 16px; font-weight: 700; color: var(--gray-7);
}
.seg-btn.on-yes { background: var(--orange); border-color: var(--orange); color: var(--white); }
.seg-btn.on-no { background: var(--green); border-color: var(--green); color: var(--white); }

.heca-sub-label { font-size: 14px; font-weight: 800; color: var(--gray-7);
  text-transform: uppercase; letter-spacing: 0.3px; margin: var(--s2) 0 var(--s2); }
.heca-sub-label .hint { font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--gray-5); }
.heca-sub-label.alt { color: var(--gold); }
.heca-alt {
  margin-top: var(--s3); padding-top: var(--s3);
  border-top: 1px dashed var(--gray-3);
}
.heca-other { margin-top: var(--s2); }
.heca-item-photo { margin-top: var(--s3); }

/* ---------- Photo field ---------- */
.photo-field { margin-top: var(--s1); }
.photo-add { width: 100%; }
.photo-add input { position: absolute; width: 0; height: 0; opacity: 0; }
.photo-thumb { position: relative; display: flex; flex-direction: column; gap: var(--s2); }
.photo-thumb img {
  width: 100%; max-height: 240px; object-fit: cover;
  border-radius: var(--radius-sm); border: 1.5px solid var(--gray-2);
}
.photo-remove { align-self: flex-start; width: auto; }

/* Many-photo field — the thumbnail grid below reused, plus a count so a long
   row of 88px tiles still says how many pictures are actually attached. */
.photos-field { margin-top: var(--s1); }
.photos-count { margin-top: 6px; font-size: 13px; color: var(--gray-5); }

/* ---------- AI photo tour / form scan ---------- */
.ai-tour { border-left: 4px solid var(--blue); }
.ai-tour-title { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 16px; }
.ai-tour-title .ic { width: 18px; height: 18px; color: var(--blue); }
.ai-tour-title span { font-weight: 600; color: var(--gray-5); font-size: 13px; }
.tour-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.tour-thumb { position: relative; width: 88px; height: 88px; }
.tour-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; border: 1.5px solid var(--gray-2); }
.tour-del {
  position: absolute; top: -8px; right: -8px; width: 26px; height: 26px;
  border-radius: 50%; border: none; background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; line-height: 1; box-shadow: var(--shadow);
}
.tour-del .ic { width: 13px; height: 13px; }
.tour-add {
  width: 88px; height: 88px; border: 2px dashed var(--gray-3); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-5); font-size: 34px; background: var(--white); cursor: pointer;
}
.tour-add:active { background: var(--gray-1); }

/* ---------- Multi-page document scanner ---------- */
.scan-pages { display: flex; flex-wrap: wrap; gap: var(--s3); }
.scan-page {
  position: relative; width: 120px; border: 1.5px solid var(--gray-2);
  border-radius: var(--radius-sm); overflow: hidden; background: var(--white);
}
.scan-page img { width: 100%; display: block; aspect-ratio: 8.5/11; object-fit: cover; background: var(--gray-1); }
.scan-page-badge {
  position: absolute; top: 6px; left: 6px; background: var(--blue); color: #fff;
  font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px;
}
.scan-page-actions { display: flex; gap: 4px; padding: 6px; }
.scan-page-actions .btn { flex: 1; min-height: 34px; font-size: 13px; padding: 4px; }
.scan-add {
  width: 120px; aspect-ratio: 8.5/11.9; border: 2px dashed var(--gray-3);
  border-radius: var(--radius-sm); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  color: var(--gray-5); background: var(--white); cursor: pointer;
}
.scan-add:active { background: var(--gray-1); }
.scan-add-ic { font-size: 34px; }
.scan-add-lbl { font-size: 13px; font-weight: 700; }

/* Cropper */
.cropper { align-items: center; }
.crop-stage { position: relative; margin: 0 auto; touch-action: none; user-select: none; }
.crop-stage img { border-radius: 6px; }
.crop-lines { position: absolute; inset: 0; pointer-events: none; }
.crop-lines polygon { fill: rgba(0, 87, 184, 0.14); stroke: var(--blue); stroke-width: 2; }
.crop-h {
  position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border-radius: 50%; background: var(--white); border: 3px solid var(--blue);
  box-shadow: var(--shadow); touch-action: none; cursor: grab;
}
.crop-h:active { cursor: grabbing; background: var(--blue-tint); }
.crop-actions { display: flex; gap: var(--s3); margin-top: var(--s4); width: 100%; max-width: 520px; }
.crop-actions .btn { flex: 1; }

/* ---------- Small screens ---------- */
@media (max-width: 380px) {
  body { font-size: 16px; }
  .app-header .logo { height: 36px; }
  .home-ic { width: 52px; height: 52px; font-size: 28px; }
  .home-title { font-size: 20px; }
  .heca-ic { width: 100px; height: 100px; }
}

/* ================= Safety Status ("Check Your Job") ================= */
.st-headrow { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.st-gear { flex:none; display:flex; align-items:center; justify-content:center; width:var(--tap); height:var(--tap); padding:0; background:var(--white); border:1px solid var(--gray-3); border-radius:50%; color:var(--gray-7); cursor:pointer; }
.st-gear > .ic { width:22px; height:22px; }
.st-gear:active { background:var(--gray-1); }
/* Job settings sheet (job-settings.js) — sits inside the .jp-sheet; the Locations / Columns rows reuse the look-ahead's .la-cx* styles */
.js-wrap { display:grid; gap:14px; min-width:0; }
.js-sec h3 { margin:0 0 6px; font-size:13px; font-weight:700; color:var(--muted); letter-spacing:.04em; text-transform:uppercase; }
.js-facts { display:grid; grid-template-columns:auto 1fr; gap:3px 12px; margin:0; font-size:14px; }
.js-facts dt { color:var(--muted); }
.js-facts dd { margin:0; min-width:0; overflow-wrap:anywhere; }
.js-win { display:flex; align-items:center; gap:8px; margin:0 0 4px; font-size:14px; }
.js-win select { width:auto; min-width:110px; }
.js-win input[type=number] { width:80px; }
.js-sec .la-chk { padding:5px 0; }
.js-sec .la-lcin { margin-left:0; border-color:var(--line); background:var(--white); }
.js-sec .la-cxtools { padding-right:0; }
.js-sec .la-item { padding-left:0; color:var(--blue); }
.js-sec .la-cxed { padding-left:0; padding-right:0; min-width:0; }
.js-name { flex:1 1 auto; min-width:0; overflow-wrap:anywhere; font-size:14px; padding:4px 0; }
.js-off .js-name { color:var(--muted); font-style:italic; }
.js-msg { margin:2px 0 0; min-height:18px; font-size:13px; color:var(--green); }
.js-msg.err { color:var(--red); }
.st-weeknav { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:14px 0 6px;
  background:var(--gray-1); border:1px solid var(--gray-2); border-radius:12px; padding:8px 10px; }
.st-week { text-align:center; }
.st-week-lbl { font-weight:800; color:var(--ink); font-size:15px; }
.st-week-sub { color:var(--gray-5); font-size:12.5px; }
.st-loading { color:var(--gray-5); padding:24px 0; text-align:center; }

.st-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:10px; margin:12px 0 18px; }
/* Two columns and five tiles leaves DRA — the last one — alone in the left
   cell with a hole beside it. Let it take the row instead: it reads as the
   pair to the crew card directly underneath, which is what sets its goal. */
@media (max-width:480px){ .st-grid .st-tile:last-child { grid-column:1 / -1; } }
.st-tile { border:1px solid var(--gray-2); border-left:5px solid var(--gray-3); border-radius:14px;
  background:#fff; padding:12px 13px 13px; display:flex; flex-direction:column; gap:6px; box-shadow:0 1px 2px rgba(16,30,55,.05); }
.st-tile.st-good    { border-left-color:var(--green); }
.st-tile.st-partial { border-left-color:var(--gold); }
.st-tile.st-none    { border-left-color:var(--red); }
.st-tile.st-pending { border-left-color:var(--gray-3); }
/* The one tappable tile (Camera Site Audit, status.js openCameraTile()) —
   cursor + press feedback only; the other five tiles are untouched. */
.st-tile.st-tap { cursor:pointer; }
.st-tile.st-tap:active { transform:scale(0.99); }
.st-top { display:flex; align-items:center; justify-content:space-between; }
.st-ic { font-size:22px; line-height:1; }
.st-badge { font-size:10px; font-weight:800; letter-spacing:.03em; color:var(--gray-5);
  background:var(--gray-1); border:1px solid var(--gray-2); border-radius:999px; padding:2px 8px; white-space:nowrap; }
.st-label { flex:1 1 auto; font-weight:700; color:var(--ink); font-size:13.5px; line-height:1.25; }
/* The tile's subject, drawn once, pushed to the end of the numbers row.
   gray-3 and 18px: it is a quiet label for the tile, and anything stronger
   competes with the count beside it. Not coloured by status on purpose —
   three colours in a 130px box reads as noise. */
.st-ic { flex:0 0 auto; display:flex; align-self:center; margin-left:auto; color:var(--gray-3); }
.st-ic .ic { width:18px; height:18px; }
.st-nums { display:flex; align-items:baseline; gap:5px; }
.st-done { font-size:26px; font-weight:800; color:var(--ink); font-variant-numeric:tabular-nums; }
.st-good .st-done { color:var(--green-dark); }
.st-none .st-done { color:var(--red); }
.st-of { color:var(--gray-5); font-weight:700; font-size:14px; font-variant-numeric:tabular-nums; }
.st-per { color:var(--gray-5); font-size:11px; margin-left:auto; }
.st-track { height:6px; border-radius:4px; background:var(--gray-2); overflow:hidden; }
.st-fill { height:100%; background:var(--green); border-radius:4px; }
.st-partial .st-fill { background:var(--gold); }
.st-none .st-fill { background:var(--red); }
.st-pending .st-fill { background:var(--gray-3); }
.st-note { font-size:11.5px; color:var(--gray-5); line-height:1.35; }
/* Label and its ⓘ share the top line. The button is small on purpose — it is
   an aside, not an action — but it keeps a 30px hit area for a gloved thumb. */
.st-tile-head { display:flex; align-items:flex-start; justify-content:space-between; gap:6px; }
.st-info { flex:0 0 auto; width:22px; height:22px; margin:-2px -2px 0 0; border-radius:50%;
  border:1.5px solid var(--gray-3); background:var(--white); color:var(--gray-5);
  font-size:12px; font-weight:800; font-style:italic; line-height:1; font-family:var(--font);
  display:flex; align-items:center; justify-content:center; position:relative; }
.st-info::after { content:""; position:absolute; inset:-8px; } /* the real tap target: 38px */
.st-info:hover, .st-info:focus-visible { border-color:var(--blue); color:var(--blue); background:var(--blue-tint); outline:none; }

/* ===== Check Your Job — the requirements heading and the SOP link =====
   The heading names what the tiles under it are; the link below them opens the
   SOP itself. No roll-up figure between them — see renderTiles in status.js. */
.li-head { margin:16px 0 0; }
.li-head h3 { margin:0; font-size:15px; color:var(--ink); }
.li-head .sub { margin:2px 0 0; font-size:12.5px; }
/* Two ways into the same document: read it here, or open the PDF. */
.li-sop-row { display:flex; gap:8px; margin:0 0 20px; }
.li-sop-btn { flex:1 1 auto; display:flex; align-items:center; justify-content:center; gap:6px;
  min-height:44px; padding:10px 12px; text-align:center; font-family:var(--font);
  border:1.5px solid var(--blue); border-radius:var(--radius-sm); background:var(--blue-tint);
  color:var(--blue-dark); font-size:14px; font-weight:700; text-decoration:none; }
.li-sop-btn:active { background:#DBE7F6; }
.li-sop-pdf { flex:0 0 auto; min-width:96px; background:var(--white); }

/* ===== The explainer sheet (status-info.js) ===== */
body.li-locked { overflow:hidden; }
.li-sheet { position:fixed; inset:0; z-index:300; display:flex; align-items:flex-end; justify-content:center; }
.li-backdrop { position:absolute; inset:0; background:rgba(26,26,26,.5); }
.li-panel { position:relative; width:100%; max-width:720px; max-height:92vh; display:flex; flex-direction:column;
  background:var(--white); border-radius:18px 18px 0 0; box-shadow:var(--shadow-lg); overflow:hidden; }
.li-bar { flex:0 0 auto; display:flex; align-items:center; gap:10px; padding:14px var(--s4);
  background:var(--blue); color:var(--white); }
.li-bar h2 { flex:1 1 auto; margin:0; font-size:17px; font-weight:800; display:flex; align-items:center; gap:8px; }
.li-bar-ic { flex:0 0 auto; display:flex; font-size:19px; line-height:1; }
.li-bar-ic .ic { width:20px; height:20px; }
.li-x { flex:0 0 auto; display:flex; align-items:center; justify-content:center;
  width:36px; height:36px; border-radius:50%; border:0;
  background:rgba(255,255,255,.18); color:var(--white); font-size:16px; font-weight:700; font-family:var(--font); }
.li-x .ic { width:17px; height:17px; }
.li-x:active { background:rgba(255,255,255,.32); }
.li-scroll { flex:1 1 auto; overflow-y:auto; -webkit-overflow-scrolling:touch;
  padding:var(--s4); padding-bottom:calc(var(--s6) + env(safe-area-inset-bottom, 0px)); }
/* A single requirement carries no heading of its own — the blue bar above it
   is the heading. Read end to end, each one gets its own. */
.li-sec { padding:2px 0 0; }
.li-sec + .li-sec { padding-top:16px; margin-top:16px; border-top:1px solid var(--line-soft); }
.li-sec p { font-size:14.5px; color:var(--gray-7); line-height:1.5; margin:0 0 9px; }
.li-sec-h { display:flex; align-items:center; gap:8px; margin:0 0 10px; font-size:16px; font-weight:800; color:var(--ink); line-height:1.25; }
/* Blue, not gray: in the end-to-end SOP these headings are the only thing
   breaking up a long scroll, so the icon carries some of that work. */
.li-sec-ic { flex:0 0 auto; display:flex; font-size:19px; line-height:1; color:var(--blue); }
.li-sec-ic .ic { width:19px; height:19px; }
.li-h { margin:12px 0 3px; font-size:14px; font-weight:800; color:var(--ink); }
.li-list { margin:0 0 10px; padding-left:20px; }
.li-list li { font-size:14.5px; color:var(--gray-7); line-height:1.5; margin-bottom:3px; }
.li-note { background:var(--gold-tint); border-left:4px solid var(--gold); border-radius:0 8px 8px 0;
  padding:10px 12px; margin:10px 0; font-size:14px; color:var(--gray-7); line-height:1.45; }
.li-meta { border:1px solid var(--gray-2); border-radius:10px; overflow:hidden; margin:0 0 12px; }
.li-meta-row { display:grid; grid-template-columns:88px 1fr; gap:10px; padding:8px 11px; font-size:13.5px; line-height:1.4; }
.li-meta-row + .li-meta-row { border-top:1px solid var(--line-soft); }
.li-meta-row span { color:var(--gray-5); font-weight:700; }
.li-meta-row b { color:var(--ink); font-weight:600; }
.li-roles { border:1px solid var(--gray-2); border-radius:10px; padding:10px 12px; margin:2px 0 12px; background:var(--gray-1); }
.li-roles-cap { font-size:12.5px; color:var(--gray-5); font-weight:700; margin-bottom:6px; line-height:1.35; }
.li-role { display:flex; justify-content:space-between; gap:12px; padding:4px 0; font-size:14px; color:var(--gray-7); }
.li-role + .li-role { border-top:1px solid var(--line-soft); }
.li-role b { color:var(--ink); white-space:nowrap; font-variant-numeric:tabular-nums; }
/* The way out of a single panel and into the whole SOP — either format. */
.li-sop { display:flex; gap:8px; margin-top:18px; padding-top:14px; border-top:1px solid var(--line-soft); }
.li-sop-a { flex:1 1 auto; min-height:40px; padding:9px 10px; display:flex; align-items:center; justify-content:center;
  border:1px solid var(--gray-3); border-radius:var(--radius-sm); background:var(--gray-1); font-family:var(--font);
  font-size:13.5px; font-weight:700; color:var(--blue-dark); text-align:center; text-decoration:none; }
.li-sop-a:active { background:var(--gray-2); }
@media (min-width:560px){ .li-sheet { align-items:center; } .li-panel { border-radius:18px; max-height:86vh; } }

/* ===== "Which crew's DRA?" (drapull.js) =====
   Rides in the same sheet as the ⓘ panels above — only the rows are new.
   Each row is a whole tap target, tall enough for a glove, because the cost
   of a mis-tap here is another foreman's name on a safety record. */
.dp-lede { font-size:14.5px; color:var(--gray-7); line-height:1.5; margin:0 0 14px; }
.dp-rows { display:flex; flex-direction:column; gap:10px; }
.dp-row { display:block; width:100%; min-height:64px; padding:11px 13px; text-align:left;
  border:1.5px solid var(--gray-3); border-radius:var(--radius-sm); background:var(--white);
  font-family:var(--font); cursor:pointer; }
.dp-row:active { background:var(--gray-1); }
/* The crew already named on the form — sorted to the top and marked, so the
   likely answer reads as the likely answer without being pre-chosen. */
.dp-row.dp-match { border-color:var(--blue); background:var(--blue-tint); }
.dp-row.dp-all { border-style:dashed; border-color:var(--blue); margin-bottom:10px; }
.dp-row-top { display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
.dp-who { font-size:15.5px; font-weight:800; color:var(--ink); }
.dp-time { flex:0 0 auto; font-size:13px; font-weight:700; color:var(--gray-5); font-variant-numeric:tabular-nums; }
/* Two lines of the activity: enough to tell "sawcutting on the north side"
   from "backfilling at the vault", not enough to push the third crew off. */
.dp-act { margin-top:3px; font-size:14px; color:var(--gray-7); line-height:1.4;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.dp-foot { display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px; margin-top:7px; }
.dp-crew { display:inline-flex; align-items:center; gap:5px; font-size:12.5px; font-weight:700; color:var(--gray-5); }
.dp-crew .ic { width:13px; height:13px; }
.dp-tag { display:inline-flex; padding:2px 7px; border-radius:20px; background:var(--blue);
  color:var(--white); font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.02em; }

.cc-card { border:1px solid var(--gray-2); border-radius:14px; background:var(--gray-1); padding:14px; margin-bottom:20px; }
/* Heading and button share the top row; the explanatory line drops to its own
   full-width row underneath instead of being squeezed into a narrow column
   beside the button. */
.cc-head { display:flex; align-items:center; justify-content:space-between; gap:6px 10px; margin-bottom:10px; flex-wrap:wrap; }
.cc-head h3 { flex:1 1 auto; min-width:0; margin:0; font-size:15px; color:var(--ink); }
/* The ⓘ rides with the heading text, not off in the button row. */
.cc-head h3 .st-info { display:inline-flex; vertical-align:middle; margin:-2px 0 0 6px; }
.cc-head > .btn { flex:0 0 auto; width:auto; margin-left:auto; font-size:12.5px; padding:6px 10px; min-height:0; }
.cc-head .sub { flex:1 1 100%; margin:0; font-size:12.5px; }
.cc-days { display:grid; grid-template-columns:repeat(7,1fr); gap:6px; }
.cc-day { display:flex; flex-direction:column; align-items:center; gap:4px; }
.cc-day label { font-size:11px; font-weight:700; color:var(--gray-7); text-align:center; line-height:1.1; }
.cc-day label span { display:block; font-weight:500; color:var(--gray-5); font-size:10px; }
.cc-input { width:100%; text-align:center; font-size:16px; font-weight:700; padding:8px 2px;
  border:1px solid var(--gray-3); border-radius:8px; background:#fff; }
.cc-input:focus { border-color:var(--blue); outline:none; }
.cc-fallback { font-size:11.5px; color:var(--gray-5); margin:10px 0 0; line-height:1.4; }
@media (max-width:480px){ .cc-days { grid-template-columns:repeat(4,1fr); } }

/* ===== Check Your Job — Project team & goal ===== */
.team-card { border:1px solid var(--gray-2); border-radius:14px; background:#fff; padding:14px; margin-bottom:20px; }
.team-card h3 { margin:0 0 2px; font-size:15px; color:var(--ink); }
.team-card .cc-head .sub { margin:0; font-size:12.5px; }
.tm-row { display:grid; grid-template-columns:1fr auto; grid-template-areas:"name goal" "role goal"; align-items:center; gap:0 10px;
  padding:9px 2px; border-bottom:1px solid var(--gray-1); }
.tm-name { grid-area:name; font-weight:650; color:var(--ink); font-size:14px; }
.tm-role { grid-area:role; color:var(--gray-5); font-size:12px; }
.tm-goal { grid-area:goal; font-weight:800; color:var(--green-dark); font-variant-numeric:tabular-nums; font-size:14px; white-space:nowrap; }
.tm-row.tm-out { opacity:.55; }
.tm-row.tm-out .tm-goal { color:var(--gray-5); font-weight:600; font-size:12px; }
.tm-total { display:flex; align-items:baseline; justify-content:space-between; margin-top:12px; padding-top:12px; border-top:2px solid var(--gray-2); }
.tm-total span { font-weight:700; color:var(--ink); }
.tm-total b { font-size:22px; color:var(--blue); font-variant-numeric:tabular-nums; }
.tm-total b small { font-size:13px; color:var(--gray-5); font-weight:600; }
.tm-edit { display:grid; grid-template-columns:1fr 1.2fr .9fr auto; gap:6px; align-items:center; padding:6px 0; border-bottom:1px solid var(--gray-1); }
.tm-edit input, .tm-edit select { width:100%; padding:8px 8px; border:1px solid var(--gray-3); border-radius:8px; font-size:13px; background:#fff; }
.tm-edit input:focus, .tm-edit select:focus { border-color:var(--blue); outline:none; }
.tm-del { display:flex; align-items:center; justify-content:center;
  border:1px solid var(--gray-3); background:var(--gray-1); color:var(--red); border-radius:8px; width:34px; height:34px; font-size:14px; cursor:pointer; }
.tm-del .ic { width:16px; height:16px; }
.tm-del:hover { background:var(--red-tint); border-color:var(--red); }
.tm-add { margin-top:6px; border-bottom:none; }
.tm-add input { background:var(--gold-tint); }
@media (max-width:520px){ .tm-edit { grid-template-columns:1fr 1fr; } .tm-edit .tm-del { grid-column:2; justify-self:end; } }
/* 2026-09-29 — people are picked from the list, never typed. A row's name is a
   button that opens the picker under it; the add row is the picker itself.
   min-width:0 everywhere so a long name shrinks instead of pushing the card
   past a 375px phone. */
.tm-e-who { display:flex; align-items:center; gap:6px; min-width:0; }
.tm-edit .tm-e-name { flex:1 1 auto; min-width:0; min-height:40px; padding:8px; text-align:left; font:inherit; font-size:13px; font-weight:650; color:var(--ink);
  background:#fff; border:1px solid var(--gray-3); border-radius:8px; cursor:pointer; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tm-edit .tm-e-name:hover { border-color:var(--blue); }
.tm-typed { flex:0 0 auto; font-size:11px; color:var(--gray-5); white-space:nowrap; }
.tm-edit select { min-height:40px; }
.tm-e-pickwrap, .tm-a-who { grid-column:1 / -1; min-width:0; }
.tm-add { grid-template-columns:1fr 1fr auto; }
.tm-add .btn { min-height:40px; }
.tm-add.tm-add-jr { grid-template-columns:1fr; }
.tm-edit .tm-a-search, .tm-edit .tm-e-search { min-height:40px; }
.tm-pick-list { max-height:260px; overflow-y:auto; margin-top:6px; border:1px solid var(--line); border-radius:8px; background:#fff; }
.tm-pick-list:empty { display:none; }
.tm-pick { display:flex; align-items:center; gap:10px; width:100%; min-height:44px; padding:6px 10px; text-align:left; font:inherit; color:var(--ink);
  background:none; border:0; border-bottom:1px solid var(--line-soft); cursor:pointer; }
.tm-pick:active { background:var(--blue-tint); }
.tm-pick:disabled { opacity:.55; cursor:default; }
.tm-pick:focus-visible, .tm-a-x:focus-visible, .tm-edit .tm-e-name:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
.tm-pick-main { flex:1 1 auto; min-width:0; }
.tm-pick-name { display:block; font-size:14px; font-weight:700; overflow-wrap:anywhere; }
.tm-pick-sub { display:block; font-size:12px; color:var(--gray-5); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tm-pick-right { flex:0 1 40%; font-size:12px; font-weight:600; color:var(--gray-5); text-align:right; overflow-wrap:anywhere; }
.tm-pick-muted { font-weight:700; }
.tm-pick-empty, .tm-pick-help, .tm-pick-more, .tm-pick-note { margin:0; padding:8px 10px; font-size:13px; color:var(--gray-5); }
.tm-pick-empty { color:var(--ink); font-weight:650; padding-bottom:0; }
.tm-pick-more { text-align:center; font-size:12px; }
.tm-pick-err { color:var(--red); }
.tm-a-chosen { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:40px; padding:4px 4px 4px 12px;
  background:var(--blue-tint); border:1px solid var(--blue); border-radius:8px; font-size:13px; font-weight:700; color:var(--ink); }
.tm-a-cname { min-width:0; overflow-wrap:anywhere; }
.tm-a-x { flex:0 0 auto; width:40px; height:40px; font:inherit; font-size:14px; color:var(--gray-5); background:none; border:0; border-radius:8px; cursor:pointer; }
.tm-a-x:hover { color:var(--red); }
@media (max-width:520px){
  .tm-e-who { grid-column:1 / -1; }
  .tm-add { grid-template-columns:1fr 1fr; }
  .tm-add #tmAdd { grid-column:1 / -1; }
}

/* ===== Check Your Job — "This week's activity" rows =====
   Each row opens the record it stands for, so it is a real <button>: keyboard
   focus and Enter come free, which they would not on a tapped <div>. */
.act-row { display:flex; align-items:center; gap:10px; width:100%; text-align:left; font:inherit; color:inherit;
  padding:9px 4px; border:0; border-top:1px solid var(--line-soft); background:none; cursor:pointer; border-radius:8px; }
.act-row:hover { background:var(--gray-1); }
.act-row:active { background:var(--gray-2); }
.act-row:focus-visible { outline:2px solid var(--blue); outline-offset:-2px; }
.act-badge { flex:none; font-family:ui-monospace,monospace; font-size:10px; letter-spacing:.03em; text-transform:uppercase;
  font-weight:700; padding:3px 7px; border-radius:6px; color:#fff; background:var(--gray-5); }
.act-badge.act-dra  { background:var(--blue); }
.act-badge.act-obs  { background:var(--green); }
.act-badge.act-inc  { background:var(--red); }
.act-badge.act-heca { background:var(--orange); }
.act-main { flex:1; min-width:0; }
.act-subject { display:block; font-weight:600; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.act-meta { display:block; font-size:12.5px; color:var(--gray-5); }
.act-when { flex:none; font-size:12px; color:var(--gray-5); white-space:nowrap; }
.act-go { flex:none; color:var(--gray-3); font-size:17px; font-weight:700; line-height:1; }

/* ===== Record viewer (read-only DRA / HECA / observation / incident) ===== */
.rec-top { display:flex; align-items:center; gap:8px; margin:6px 0 2px; }
.rec-when { color:var(--gray-5); font-size:13px; }
.rec-kv { display:grid; grid-template-columns:minmax(110px,34%) 1fr; gap:0 12px; margin:0; }
.rec-kv dt { color:var(--gray-5); font-size:12.5px; padding:8px 0; border-top:1px solid var(--line-soft); }
.rec-kv dd { margin:0; color:var(--ink); font-size:14px; font-weight:600; padding:8px 0; border-top:1px solid var(--line-soft);
  overflow-wrap:anywhere; white-space:pre-wrap; }
.rec-kv dt:first-of-type, .rec-kv dt:first-of-type + dd { border-top:0; }
.rec-list { list-style:none; margin:0; padding:0; }
.rec-list li { padding:8px 0; border-top:1px solid var(--line-soft); font-size:14px; color:var(--ink); }
.rec-list li:first-child { border-top:0; }
.rec-sub { display:block; font-size:12.5px; color:var(--gray-5); font-weight:400; }
.rec-flag { font-size:10.5px; font-weight:800; letter-spacing:.03em; text-transform:uppercase;
  padding:2px 7px; border-radius:999px; margin-left:6px; }
.rec-flag.bad { background:var(--red-tint); color:var(--red); }
.rec-flag.ok  { background:var(--green-tint); color:var(--green-dark); }
.rec-photos { display:flex; flex-wrap:wrap; gap:8px; }
.rec-photos img { width:104px; height:104px; object-fit:cover; border-radius:10px; border:1px solid var(--gray-2); }
.rec-sig { display:flex; align-items:center; gap:10px; padding:8px 0; border-top:1px solid var(--line-soft); }
.rec-sig img { height:44px; max-width:170px; object-fit:contain; }
.rec-sig:first-child { border-top:0; }

/* ===== Observations ===== */
.obs-status { min-height:0; }

/* ===== Observations — close-out summary (severity pill + meta) ===== */
.om-top { display:flex; align-items:center; gap:8px; }
.om-sev { font-size:11px; font-weight:800; letter-spacing:.03em; padding:2px 8px; border-radius:999px; text-transform:uppercase; background:var(--gray-1); color:var(--gray-5); border:1px solid var(--gray-2); }
/* Urgent is a solid, not a tint — it is the one level that should stop you. */
.om-sev.om-urgent { background:var(--sev-urg); color:#fff; border-color:var(--sev-urg); }
.om-sev.om-high { background:var(--sev-hi-tint); color:var(--sev-hi); border-color:var(--sev-hi); }
.om-sev.om-medium { background:var(--sev-med-tint); color:var(--sev-med); border-color:var(--sev-med); }
.om-sev.om-low { background:var(--sev-low-tint); color:var(--sev-low); border-color:var(--sev-low); }
.om-haz { font-weight:700; color:var(--ink); font-size:14px; }
.om-title { font-size:15px; color:var(--ink); margin:6px 0 4px; font-weight:550; }
.om-meta { font-size:12px; color:var(--gray-5); }
.co-summary { border-left:4px solid var(--orange); }

/* ===== Observations — multi-hazard controls ===== */
.obs-haz-list { display:flex; flex-direction:column; }
.check-item .haz-ic { flex:none; width:34px; height:34px; object-fit:contain; }
.check-item .haz-emoji { display:flex; align-items:center; justify-content:center; font-size:20px; color:var(--gray-5); }
.obs-haz-other { border-style:dashed; }
/* Hazards use an "at-risk" orange checked state; controls keep the standard green */
.check-item.hz.checked { border-color:var(--orange); background:var(--orange-tint); }
.check-item.hz.checked .box { background:var(--orange); border-color:var(--orange); color:var(--white); }
.obs-ctrl-haz { border:1px solid var(--gray-2); border-radius:10px; padding:10px 12px; margin-bottom:10px; background:var(--gray-1); }
.obs-ctrl-hazname { font-weight:800; color:var(--blue); font-size:14px; margin-bottom:6px; }
.obs-ctrl-sub { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--gray-5); margin:8px 0 2px; }
.hint { font-weight:500; color:var(--gray-5); font-size:12px; }

/* ===== Blue Line (was Stop Button) — Change to Today's Plan ===== */
.stop-note { display:flex; align-items:center; gap:12px; background:var(--blue-tint); border:1px solid #BAD2EE;
  border-radius:12px; padding:12px 14px; margin-bottom:16px; }
.stop-note .octo { flex:none; width:40px; height:40px; display:block; }
.stop-note b { display:block; font-size:15px; color:var(--ink); line-height:1.3; }
.stop-note span { display:block; font-size:13px; color:var(--gray-5); margin-top:2px; line-height:1.35; }
.stop-note span.stop-rule { color: var(--ink); font-weight: 600; }
.sec-note { font-size:13px; color:var(--gray-5); margin:-2px 2px 12px; line-height:1.4; }
.pulled-line { background:var(--blue-tint); border:1px solid #cfe0f5; border-radius:10px; padding:9px 12px;
  margin-top:10px; font-size:13px; font-weight:600; color:var(--blue-dark); }
.new-badge { font-size:10px; font-weight:800; letter-spacing:.04em; color:var(--white); background:var(--blue);
  border-radius:999px; padding:2px 8px; margin-left:auto; flex:none; }
.stop-haz-head span:not(.box):not(.new-badge) { flex:1; }
.stop-haz-ctrls { padding:2px 2px 8px 10px; }
.stop-haz-ctrls:empty { padding:0; }
.stop-add-sig { margin-top:2px; }
.sig-row { position:relative; }
.sig-del-btn { position:absolute; top:2px; right:2px; background:none; border:none; color:var(--gray-5);
  font-size:13px; font-weight:600; padding:4px 8px; cursor:pointer; }
.sig-del-btn:active { color:var(--red); }
/* Blue Line home tile — blue line icon */
.home-tile[data-key="stop"] .home-ic { background:var(--blue-tint); }
.st-trig[aria-pressed="true"] { background:var(--blue); color:var(--white); }
.home-tile[data-key="stop"] .home-ic svg { width:42px; height:42px; display:block; }

/* Incident form v2 — wider on desktop, paired fields side-by-side */
.inc-v2.inc-wide { max-width: 800px; margin-left: auto; margin-right: auto; }

/* Field-capture vs office-finish split. The device decides: a phone or tablet
   opens on "quick" (the short list), a computer on "full". The only way across
   is the "Show all fields" button at the foot of the form, phones only. */
.inc-v2[data-mode="quick"] .inc-office-tier { display: none; }
.inc-office-ic { flex: none; display: flex; color: var(--gray-5); }
.inc-office-ic .ic { width: 22px; height: 22px; }
.inc-att-ic { flex: none; display: flex; color: var(--gray-5); }
.inc-att-ic .ic { width: 17px; height: 17px; }
.inc-more { border: 1px dashed var(--gray-3); background: var(--gray-1); }
.inc-more-say { display: flex; gap: 10px; align-items: flex-start; }
/* Once the rest is showing, the "office finishes it" note is answered — the
   button alone remains, so it can be closed again. */
.inc-v2[data-mode="full"] .inc-more-say { display: none; }
.inc-more-btn { width: 100%; margin-top: 10px; }
.inc-v2[data-mode="full"] .inc-more-btn { margin-top: 0; }
.inc-more-btn .ic { transition: transform .15s ease; }
.inc-v2[data-mode="full"] .inc-more-btn .ic { transform: rotate(180deg); }

/* Home — group headers (Safety / Quality) */
/* Home's only headings since the "Home" title and strapline came off
   (2026-08-07). Sized up from 12px because they now carry the screen on their
   own rather than sitting under an h1. */
.home-group { font-size: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin: 14px 2px 12px;
  display: flex; align-items: center; gap: 8px; width: calc(100% - 4px); text-align: left;
  background: none; border: 0; padding: 4px 0; font-family: var(--font); cursor: pointer; min-height: var(--tap); }
/* The chevron sits beside the words, not at the far edge (2026-10-04). */
.home-group-label { flex: 0 0 auto; }
.home-group-chev { display: flex; color: var(--gray-5); transition: transform .15s; }
.home-group-chev .ic { width: 22px; height: 22px; }
.home-group-star { display: flex; color: var(--gold); }
.home-group-star .ic { width: 20px; height: 20px; fill: var(--gold); }
/* Tapped shut: the heading stays, the tiles under it go, the chevron turns. */
.home-group-wrap.shut .home-group-chev { transform: rotate(-90deg); }
.home-group-wrap.shut .home-tiles, .home-group-wrap.shut .home-fav-hint { display: none; }
.home-fav-hint { font-size: 14px; font-weight: 600; color: var(--gray-5); margin: 0 2px 4px; }
/* The star in a tile's corner: outline when it is not a favorite, gold when it
   is. Padded out to a finger-sized target that still reads as small. */
.home-tile { position: relative; }
.home-fav { position: absolute; top: 4px; right: 4px; padding: 10px; display: flex; color: var(--gray-3); cursor: pointer; border-radius: 50%; }
.home-fav .ic { width: 22px; height: 22px; }
.home-fav:hover { color: var(--gold); background: var(--gold-tint); }
.home-tile.is-fav .home-fav { color: var(--gold); }
.home-tile.is-fav .home-fav .ic { fill: var(--gold); }
/* Extra air above any group that FOLLOWS a block of tiles, so "Quality" is
   separated from the Safety tiles while the first group still sits close to
   the top. This was `.home-group:first-of-type`, which never matched a thing:
   :first-of-type counts by element type, and the first <div> in .screen is the
   hidden outbox banner, so no .home-group was ever "first". */
.home-group-wrap + .home-group-wrap { margin-top: 26px; }

/* Quality Essentials Walk */
.qw-v2.qw-wide { max-width: 800px; margin-left: auto; margin-right: auto; }
.qw-v2 .qw-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.qw-v2 .qw-row2 > .field { margin-bottom: var(--s3, 12px); }
@media (max-width: 560px) { .qw-v2 .qw-row2 { grid-template-columns: 1fr; } }
.qw-prompt { margin: 0 0 10px; }
.qw-rating { flex-wrap: wrap; }
.qw-rating .qw-rbtn { flex: 1 1 30%; min-width: 92px; font-size: 13px; font-weight: 600; }
.qw-rbtn.on-eff { background: var(--green); border-color: var(--green); color: var(--white); }
.qw-rbtn.on-att { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.qw-rbtn.on-bar { background: var(--red); border-color: var(--red); color: var(--white); }
.qw-ifbad { border-top: 1px solid var(--line-soft); margin-top: 14px; padding-top: 12px; }
.qw-suggest { background: var(--blue-tint); border-radius: var(--radius-sm); padding: 9px 12px; margin-bottom: 12px; font-size: 13px; color: var(--gray-7); }
.qw-suggest-lbl { font-weight: 700; color: var(--blue-dark); }
.qw-suggest-apply { margin-left: 6px; border: 0; background: var(--blue); color: #fff; border-radius: 20px; padding: 3px 10px; font-size: 12px; font-weight: 600; cursor: pointer; }
.qw-ess.card { border-left: 3px solid var(--green); }

/* per-walk score card (shows once every picked essential is rated) */
.qw-score { margin-top: 16px; }
.qw-score-card { display: flex; align-items: center; gap: 16px; border-radius: var(--radius); padding: 14px 16px; border: 1px solid var(--line); }
.qw-score-card.good { background: var(--green-tint); }
.qw-score-card.mid  { background: var(--gold-tint); }
.qw-score-card.low  { background: var(--red-tint); }
.qw-score-pct { font-size: 32px; font-weight: 800; line-height: 1; }
.qw-score-card.good .qw-score-pct { color: var(--green-dark); }
.qw-score-card.mid  .qw-score-pct { color: var(--gold-ink); }
.qw-score-card.low  .qw-score-pct { color: var(--red); }
.qw-score-lbl { font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.qw-score-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.qw-score-chips .qc { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); }
.qw-score-chips .qc .ic { width: 13px; height: 13px; }
.qw-score-chips .qc.eff { color: var(--green-dark); }
.qw-score-chips .qc.att { color: var(--gold-ink); }
.qw-score-chips .qc.bar { color: var(--red); }
/* minmax(0,1fr), not 1fr: a bare 1fr floors the track at the content's intrinsic
   width, which is what let the date/time inputs push off-screen. */
.inc-v2 .inc-row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
.inc-v2 .inc-row2 > .field { margin-bottom: var(--s3, 12px); }
@media (max-width: 560px) { .inc-v2 .inc-row2 { grid-template-columns: 1fr; } }

/* Home-tile icons — clean two-color (solid chip + white line icon) */
.home-ic svg.tic { width:32px; height:32px; stroke:#fff; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; display:block; }
/* Keyed on data-key, not id: a starred tile is drawn twice (Favorites + its
   group) and only the group copy carries the plain id. Every tile is a solid
   chip; the default in .home-ic is brand blue for any tile not named here. */
/* Only the five brand colours, spread so no section reads as one colour (2026-10-08). */
.home-tile[data-key="dra"] .home-ic { background:var(--blue); }
.home-tile[data-key="heca"] .home-ic { background:var(--orange); }
.home-tile[data-key="toolbox"] .home-ic { background:var(--green); }
.home-tile[data-key="observation"] .home-ic { background:var(--gold); }
.home-tile[data-key="incident"] .home-ic { background:var(--red); }
.home-tile[data-key="status"] .home-ic { background:var(--green); }
.home-tile[data-key="camera"] .home-ic { background:var(--blue); }
.home-tile[data-key="schedule"] .home-ic { background:var(--blue); }
.home-tile[data-key="dfow"] .home-ic { background:var(--orange); }
.home-tile[data-key="workforce"] .home-ic { background:var(--green); }
.home-tile[data-key="specs"] .home-ic { background:var(--green); }
.home-tile[data-key="submittals"] .home-ic { background:var(--green); }
.home-tile[data-key="dailylog"] .home-ic { background:var(--blue); }
.home-tile[data-key="deliverylog"] .home-ic { background:var(--orange); }
.home-tile[data-key="photos"] .home-ic { background:var(--gold); }
.home-tile[data-key="meetings"] .home-ic { background:var(--red); }
.home-tile[data-key="mytime"] .home-ic { background:var(--blue); }
.home-tile[data-key="invoices"] .home-ic { background:var(--green); }
.home-tile[data-key="slws"] .home-ic { background:var(--orange); }
.home-tile[data-key="requisition"] .home-ic { background:var(--blue); }
.home-tile[data-key="quality"] .home-ic { background:var(--green); }
.home-tile[data-key="concrete"] .home-ic { background:var(--blue); }
.home-tile[data-key="asphalt"] .home-ic { background:var(--red); }
.home-tile[data-key="quantity"] .home-ic { background:var(--gold); }
.home-tile[data-key="training"] .home-ic { background:var(--gold); }
.home-tile[data-key="guide"] .home-ic { background:var(--blue); }
/* White line icons wash out on gold; draw them in ink there. */
.home-tile[data-key="observation"] .home-ic svg.tic,
.home-tile[data-key="photos"] .home-ic svg.tic,
.home-tile[data-key="quantity"] .home-ic svg.tic,
.home-tile[data-key="training"] .home-ic svg.tic { stroke:var(--ink); }
@media (max-width:600px){ .home-ic svg.tic { width:28px; height:28px; } }

/* ===== Observations — professional redesign (scoped under .obs-v2) ===== */
.obs-v2 .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 20px 2px 9px; }
.obs-v2 .eyebrow.first { margin-top: 6px; }

/* type-picker list rows */
.obs-v2 .ob-row { display: flex; align-items: center; gap: 13px; padding: 15px 14px; width: 100%; text-align: left; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); margin-bottom: 11px; }
.obs-v2 .ob-row:active { background: var(--gray-1); }
.obs-v2 .ob-row.g { border-left-color: var(--green); }
.obs-v2 .ob-row.o { border-left-color: var(--orange); }
.obs-v2 .ob-row.d { border-left-color: var(--gold); }
.obs-v2 .ob-row.r { border-left-color: var(--red); }
.obs-v2 .ob-row.b { border-left-color: var(--blue); }
.obs-v2 .ob-chip { width: 40px; height: 40px; border-radius: 11px; flex: none; display: flex; align-items: center; justify-content: center; }
.obs-v2 .ob-chip img { width: 22px; height: 22px; display: block; }
.obs-v2 .ob-chip.g { background: var(--green); color: #fff; }
.obs-v2 .ob-chip.o { background: var(--orange); color: #fff; }
.obs-v2 .ob-chip.d { background: var(--gold); color: #4a3a00; }
.obs-v2 .ob-chip.r { background: var(--red); color: #fff; }
.obs-v2 .ob-chip.b { background: var(--blue); color: #fff; }
.obs-v2 .ob-rtext { flex: 1; min-width: 0; }
.obs-v2 .ob-rtext b { font-size: 16px; font-weight: 700; color: var(--ink); display: block; }
.obs-v2 .ob-rtext span { font-size: 13px; color: var(--muted); display: block; margin-top: 1px; }
.obs-v2 .ob-chev { color: var(--faint); flex: none; display: flex; }
.obs-v2 .ob-chev img { width: 18px; height: 18px; display: block; }

/* form heading — carries the same chip the picker row showed, a little smaller
   so it sits on the type-1 line rather than towering over it */
.obs-v2 .ob-form-title { display: flex; align-items: center; gap: 10px; }
.obs-v2 .ob-form-title .ob-chip { width: 34px; height: 34px; border-radius: 10px; }
.obs-v2 .ob-form-title .ob-chip img { width: 19px; height: 19px; }

/* assigned card */
.obs-v2 .ob-assigned { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius-lg); padding: 15px 14px; box-shadow: var(--shadow-card); margin-bottom: 4px; }
.obs-v2 .ob-assigned:active { background: var(--gray-1); }
.obs-v2 .ob-assigned .ob-chip { background: var(--blue-tint); color: var(--blue); }
.obs-v2 .ob-count { flex: none; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.obs-v2 .ob-count:empty { display: none; }

/* form labels + inputs refined */
.obs-v2 .field label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.obs-v2 .field input[type="text"], .obs-v2 .field input[type="date"], .obs-v2 .field textarea, .obs-v2 .field select, .obs-v2 .combo > input { border: 1px solid var(--line); border-radius: var(--radius-sm); }
.obs-v2 .heca-sub-label { color: var(--muted); }

/* severity segmented control */
.obs-v2 .ob-seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.obs-v2 .ob-seg button { min-height: 46px; text-align: center; font-size: 13.5px; font-weight: 600; padding: 9px 4px; border-radius: 9px; border: 1px solid var(--line); background: var(--white); color: var(--muted); }
/* The picked severity carries its own colour rather than a blanket red — the
   point of the control is to tell the four levels apart. Keyed off the
   data-sev the button already renders with. */
.obs-v2 .ob-seg button.on { color: #fff; font-weight: 800; }
.obs-v2 .ob-seg button.on[data-sev="Low"]    { background: var(--sev-low); border-color: var(--sev-low); }
.obs-v2 .ob-seg button.on[data-sev="Medium"] { background: var(--sev-med); border-color: var(--sev-med); }
.obs-v2 .ob-seg button.on[data-sev="High"]   { background: var(--sev-hi);  border-color: var(--sev-hi); }
.obs-v2 .ob-seg button.on[data-sev="Urgent"] { background: var(--sev-urg); border-color: var(--sev-urg); }
/* Unpicked buttons hint at their level so the scale reads before you tap. */
.obs-v2 .ob-seg button:not(.on)[data-sev="Low"]    { color: var(--sev-low); }
.obs-v2 .ob-seg button:not(.on)[data-sev="Medium"] { color: var(--sev-med); }
.obs-v2 .ob-seg button:not(.on)[data-sev="High"]   { color: var(--sev-hi); }
.obs-v2 .ob-seg button:not(.on)[data-sev="Urgent"] { color: var(--sev-urg); font-weight: 700; }

/* assigned-to-me list cards */
.obs-v2 .ob-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 14px; margin-bottom: 12px; display: flex; gap: 12px; align-items: stretch; width: 100%; text-align: left; }
.obs-v2 .ob-card:active { background: var(--gray-1); }
.obs-v2 .ob-stripe { width: 4px; align-self: stretch; border-radius: 4px; flex: none; background: var(--gray-3); }
.obs-v2 .ob-stripe.urg { background: var(--sev-urg); }
.obs-v2 .ob-stripe.hi { background: var(--sev-hi); }
.obs-v2 .ob-stripe.med { background: var(--sev-med); }
.obs-v2 .ob-stripe.low { background: var(--sev-low); }
.obs-v2 .ob-cbody { flex: 1; min-width: 0; }
.obs-v2 .ob-cardtop { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.obs-v2 .ob-pill { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--gray-1); color: var(--gray-5); }
.obs-v2 .ob-pill.urg { background: var(--sev-urg); color: #fff; }
.obs-v2 .ob-pill.hi { background: var(--sev-hi-tint); color: var(--sev-hi); }
.obs-v2 .ob-pill.med { background: var(--sev-med-tint); color: var(--sev-med); }
.obs-v2 .ob-pill.low { background: var(--sev-low-tint); color: var(--sev-low); }
.obs-v2 .ob-cardhaz { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.obs-v2 .ob-cardtitle { font-size: 15px; color: var(--ink); font-weight: 600; margin: 0 0 5px; line-height: 1.35; }
.obs-v2 .ob-cardmeta { font-size: 12px; color: var(--faint); }
.obs-v2 .ob-cardmeta b { font-weight: 600; color: var(--muted); }
.obs-v2 .ob-cchev { align-self: center; color: var(--faint); display: flex; }
.obs-v2 .ob-stripe.arw { background: var(--red); }
.obs-v2 .ob-pill.arw { background: var(--red-tint); color: var(--red); }
.obs-v2 .ob-stripe.sam { background: var(--blue); }
.obs-v2 .ob-pill.sam { background: var(--blue-tint); color: var(--blue); }

/* ---- Arrowsight: dropping clips in, and watching them back ---- */
/* The zone is a button in every way except the tag, so it gets a pointer and
   a visible focus ring — people drag onto it, but plenty will just click. */
.obs-v2 .ob-drop { border: 2px dashed var(--gray-3); border-radius: var(--radius-lg); background: var(--gray-1); padding: 22px 14px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; margin-bottom: 10px; }
.obs-v2 .ob-drop:hover { border-color: var(--red); }
.obs-v2 .ob-drop.over { border-color: var(--red); background: var(--red-tint); }
.obs-v2 .ob-drop-inner { display: flex; flex-direction: column; align-items: center; gap: 5px; pointer-events: none; }
.obs-v2 .ob-drop-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--red); display: flex; align-items: center; justify-content: center; margin-bottom: 3px; }
.obs-v2 .ob-drop-ic img { width: 23px; height: 23px; display: block; }
/* Samsara wears blue where Arrowsight wears red. */
.obs-v2 .ob-drop.b:hover { border-color: var(--blue); }
.obs-v2 .ob-drop.b.over { border-color: var(--blue); background: var(--blue-tint); }
.obs-v2 .ob-drop.b .ob-drop-ic { background: var(--blue); }

/* ---- Samsara: one person picked from People, and who the clip goes to ---- */
.obs-v2 .ob-person > input { width: 100%; }
.obs-v2 .ob-person-chosen { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 8px 6px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--blue-tint); }
.obs-v2 .ob-person-name { flex: 1; min-width: 0; font-size: 16px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.obs-v2 .ob-person-x { width: auto; flex: none; }
.obs-v2 .ob-goes { margin: 0 0 12px; padding: 11px 13px; border-radius: 8px; background: var(--blue-tint); border-left: 4px solid var(--blue); }
.obs-v2 .ob-goes b { display: block; font-size: 15.5px; color: var(--ink); }
.obs-v2 .ob-goes span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.obs-v2 .ob-goes + .ob-reach { margin: -4px 0 12px; }
.obs-v2 .ob-drop b { font-size: 15px; color: var(--ink); }
.obs-v2 .ob-drop span { font-size: 12.5px; color: var(--muted); }

.obs-v2 .ob-vid { display: flex; align-items: center; gap: 11px; padding: 10px 12px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
.obs-v2 .ob-vid.failed { border-color: #E4B7B9; background: var(--red-tint); }
.obs-v2 .ob-vid-state { width: 22px; flex: none; text-align: center; font-weight: 800; color: var(--muted); }
.obs-v2 .ob-vid.done .ob-vid-state { color: var(--green); }
.obs-v2 .ob-vid.failed .ob-vid-state { color: var(--red); }
.obs-v2 .ob-vid-body { flex: 1; min-width: 0; }
/* Arrowsight names are long and the meaning is at the end, so the clip name
   truncates at the front rather than the back. */
.obs-v2 .ob-vid-name { display: block; font-size: 13px; font-weight: 600; color: var(--ink); direction: rtl; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.obs-v2 .ob-vid-meta { display: block; font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.obs-v2 .ob-vid-x { flex: none; display: flex; align-items: center; border: none; background: none; color: var(--faint); font-size: 15px; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.obs-v2 .ob-vid-x .ic { width: 15px; height: 15px; }
.obs-v2 .ob-vid-x:hover { background: var(--gray-1); color: var(--red); }

/* A job number lifted from a file name that doesn't match any project. Gold,
   not red — the observation still saves, but it lands nowhere useful, and that
   has to be visible without stopping someone mid-task. */
.obs-v2 .ob-jobwarn { margin: 7px 0 0; padding: 8px 10px; border-radius: 8px; font-size: 12.5px; line-height: 1.4;
  background: var(--gold-tint); border-left: 3px solid var(--gold); color: #7A5C00; font-weight: 600; }
.obs-v2 .ob-jobwarn.pending { background: var(--gray-1); border-left-color: var(--gray-3); color: var(--muted); font-weight: 500; }

/* The "they won't be notified" line under an assignee box. Gold, not red:
   assigning somebody unreachable is a thing worth knowing, not an error —
   plenty of work is handed over in person and logged afterwards. */
.obs-v2 .ob-reach {
  display: flex; align-items: flex-start; gap: 6px;
  margin: 6px 0 0; padding: 7px 10px;
  background: var(--gold-tint); border: 1px solid #EAD48A; border-radius: var(--radius-sm);
  font-size: 12.5px; font-weight: 600; line-height: 1.35; color: #7A5C00;
}
.obs-v2 .co-videos { margin-top: 12px; }
.obs-v2 .co-video { margin-bottom: 12px; }
.obs-v2 .co-video video { width: 100%; max-height: 60vh; border-radius: 10px; background: #000; display: block; }
.obs-v2 .co-video-name { font-size: 11.5px; color: var(--faint); margin-top: 4px; word-break: break-all; }
/* Stands in for the player when the browser won't decode the clip. Plain grey
   on grey, no red and no warning triangle: this is a note about where to watch
   it, not a fault, and dressing it as one sends crews to the office over a clip
   that opens fine on the next tap. */
.obs-v2 .co-video-plain {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 12px; border-radius: 10px;
  background: var(--panel, #F4F6F8); border: 1px solid var(--line);
  font-size: 13px; color: var(--faint);
}
.obs-v2 .co-video-plain .ic { width: 18px; height: 18px; flex: none; }
/* The way out to the handset's own player. A full-width 44px target rather
   than a text link — this is tapped on a jobsite, sometimes with a glove. */
.obs-v2 .co-video-open {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; margin-top: 6px; padding: 8px 12px;
  border: 1.5px solid var(--blue); border-radius: var(--radius-sm);
  background: var(--blue-tint); color: var(--blue-dark);
  font-size: 14px; font-weight: 700; text-decoration: none;
}
.obs-v2 .co-video-open:active { background: #DBE7F6; }
.obs-v2 .co-video-open .ic { width: 16px; height: 16px; }
.obs-v2 .co-video-gone { font-size: 12px; color: var(--faint); word-break: break-all; padding: 6px 0; border-bottom: 1px solid var(--line); }

/* What the file name turned out to mean — the hazard, the day, the job, the
   camera. This is the line that tells someone the drop was understood. */
.obs-v2 .ob-vid-parsed { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }

/* Where to find the clip once it ages out of here. Gold while the clip is
   still playable (a heads-up), red once it is gone (the only way left). */
.obs-v2 .co-box-note { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: var(--gold-tint); border-left: 4px solid var(--gold); }
.obs-v2 .co-box-note.gone { background: var(--red-tint); border-left-color: var(--red); }
.obs-v2 .co-box-note b { display: block; font-size: 12.5px; color: var(--ink); margin-bottom: 2px; }
.obs-v2 .co-box-note span { display: block; font-size: 12px; color: var(--muted); }
.obs-v2 .co-box-note code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; font-weight: 700; color: var(--ink); background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px; word-break: break-all; }
.obs-v2 .ob-cchev img { width: 18px; height: 18px; display: block; }

/* refined checkboxes for hazard + control rows (match the clean look, not the old big box) */
.obs-v2 .check-item { min-height: 0; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; font-size: 14px; gap: 12px; }
.obs-v2 .check-item .box { width: 21px; height: 21px; border-width: 2px; border-radius: 6px; font-size: 13px; }
.obs-v2 .check-item .haz-ic { width: 30px; height: 30px; }
.obs-v2 .obs-ctrl-sub { color: var(--muted); }

/* ============================================================
   Languages — the picker, and bilingual safety wording
   ============================================================ */

/* CHIPS — sign-in and PIN screens only, where nothing else is readable yet.
   All three options visible without opening anything: somebody who cannot read
   "Language" can still see the word "Español" and tap it. */
.lang-pick { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.lang-chip {
  flex: 0 0 auto;
  padding: 9px 13px; font-size: 14px; font-weight: 650;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--gray-7);
  cursor: pointer; line-height: 1.2;
}
.lang-chip.on { background: var(--blue); border-color: var(--blue); color: var(--white); }
.lang-chip:active { transform: scale(0.97); }

/* ROWS — inside a menu that is already open. Styled as menu items rather than
   as chips: three pills wrapped over two lines was the bulkiest thing in the
   panel, for the one setting a person touches once. The tick marks the current
   language, the same way a native menu would. */
.lang-rows { display: block; }
.lang-row {
  display: flex; align-items: center; gap: 8px;
  width: 100%; text-align: left;
  padding: 11px var(--s4); font-size: 15px; font-weight: 500;
  background: none; border: none; color: var(--ink); cursor: pointer;
}
.lang-row::before {
  content: "✓"; width: 14px; flex: 0 0 14px;
  color: var(--blue); font-weight: 800; visibility: hidden;
}
.lang-row.on::before { visibility: visible; }
.lang-row.on { font-weight: 700; }
.lang-row:active { background: var(--blue-tint); }

/* The heading and its top rule; the rows sit flush so they read as menu items. */
.menu-lang { border-top: 1px solid var(--gray-1); padding: var(--s3) 0 var(--s2); }
.menu-lang-hd {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; color: var(--gray-5);
  padding: 0 var(--s4) 6px; letter-spacing: .02em;
}
/* Matched to the icon column above it so "Language" lines up with the five
   menu labels, even though this heading is smaller type. */
.menu-lang-hd > .ic { flex: none; width: 19px; height: 19px; margin-left: 1px; }
/* .menu-panel button is display:block/full-width/bordered-bottom, and it beats
   .lang-row on specificity — which killed the flex layout, so the tick sat
   flush against the word and the three languages did not line up. Restore the
   layout here, where the selector is specific enough to win. */
.menu-panel .lang-row {
  display: flex; border-bottom: none; padding: 10px var(--s4);
}

/* Privacy · Terms at the very bottom of the menu: small, muted, one line, 44px tap height. */
.menu-legal { display: flex; justify-content: center; align-items: center; gap: var(--s3); border-top: 1px solid var(--gray-1); font-size: 12px; color: var(--gray-5); }
.menu-legal a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s2); color: inherit; text-decoration: none; }

/* DROPDOWN — a header with no menu of its own (the admin console). A globe and
   the two-letter code, so it reads as a control without spelling out three
   languages across the header. */
.lang-drop { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--gray-7); cursor: pointer;
  font-size: 12.5px; font-weight: 700; line-height: 1;
}
.lang-btn:active { background: var(--gray-1); }
.lang-globe { width: 16px; height: 16px; display: block; }
.lang-code { letter-spacing: .03em; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: var(--white); border: 1px solid var(--gray-2);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 168px; overflow: hidden; z-index: 200; padding: 4px 0;
}

/* Bilingual safety wording: English on top, translation underneath.
   The translation is deliberately lighter and smaller — it is the aid, and
   the English is the phrase that gets filed on the record and printed on the
   PDF. Same reason it is never shown alone. */
.bi-en { display: block; }
.bi-tr {
  display: block; margin-top: 2px;
  font-size: 0.875em; font-weight: 500; font-style: italic;
  color: var(--muted); line-height: 1.3;
}
/* On a solid/dark chip the muted gray drops below contrast — inherit instead. */
.lang-opt .bi-tr, .home-tile .bi-tr { color: inherit; opacity: 0.8; font-style: normal; }

/* ============================================================
   Toolbox Talk
   ============================================================ */

/* The three ways in. Bigger than a normal button because this is the whole
   screen — there is nothing else on it to compete with. */
.tb-ways { display: flex; flex-direction: column; gap: var(--s3); margin-top: var(--s4); }
.tb-way {
  display: flex; align-items: center; gap: var(--s4);
  width: 100%; text-align: left;
  background: var(--white); border: 1.5px solid var(--gray-2);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: var(--s4) var(--s5); min-height: 84px;
  transition: transform 0.05s, border-color 0.1s, box-shadow 0.1s;
}
.tb-way:active { transform: scale(0.99); }
.tb-way:hover { border-color: var(--blue); box-shadow: var(--shadow-lg); }
.tb-way-lead { border-color: var(--orange); background: var(--orange-tint); }
.tb-way-lead:hover { border-color: var(--orange); }
/* Nothing set this week, or no signal to find out. Still a button — it drops
   the crew into the library — so it dims rather than greying out. */
.tb-way-off { background: var(--white); border-color: var(--gray-2); }
.tb-way-off .tb-way-ic { opacity: 0.5; }
.tb-way-ic {
  flex: none; width: 52px; height: 52px; border-radius: 14px;
  background: var(--blue-tint);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.tb-way-lead .tb-way-ic { background: var(--white); }
/* Blue inside the tinted chip — the chip is the shape, the icon is the label. */
.tb-way-ic .ic { width: 26px; height: 26px; color: var(--blue); }
.tb-way-txt { display: block; min-width: 0; }
.tb-way-t { display: block; font-size: 19px; font-weight: 800; color: var(--ink); }
.tb-way-d { display: block; font-size: 14px; color: var(--gray-5); font-weight: 600; margin-top: 2px; }
.tb-way-lead .tb-way-d { color: var(--gray-7); }

/* The library list */
.tb-list { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s3); }
.tb-item {
  display: block; width: 100%; text-align: left;
  background: var(--white); border: 1.5px solid var(--gray-2);
  border-radius: var(--radius-sm); padding: var(--s3) var(--s4);
}
.tb-item:hover { border-color: var(--blue); }
.tb-item-t { display: block; font-size: 17px; font-weight: 700; color: var(--ink); }
.tb-item-topic {
  display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px;
  background: var(--blue-tint); color: var(--blue-dark);
  font-size: 12px; font-weight: 700;
}
.tb-item-s { display: block; margin-top: 4px; font-size: 14px; color: var(--gray-5); }
.tb-item-nopdf { display: block; margin-top: 4px; font-size: 12px; color: var(--gold-ink); font-weight: 700; }

/* The talk itself, at the top of the sign-off screen */
.tb-talkcard { border-color: var(--gray-3); }
.tb-talk-h { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; margin-bottom: 4px; }
.tb-badge {
  padding: 2px 9px; border-radius: 999px;
  background: var(--orange-tint); color: #8A4A1B; font-size: 12px; font-weight: 800;
}
.tb-topic {
  padding: 2px 9px; border-radius: 999px;
  background: var(--blue-tint); color: var(--blue-dark); font-size: 12px; font-weight: 700;
}
.tb-talk-t { font-size: 22px; font-weight: 800; color: var(--ink); margin: 2px 0 6px; }
.tb-note {
  margin: 6px 0 10px; padding: var(--s2) var(--s3);
  background: var(--gold-tint); border-radius: var(--radius-sm);
  font-size: 14px; color: var(--gray-7); font-weight: 600;
}
/* An <a> wearing a button's clothes — see pdfBtnHtml() for why it is not a
   button with a click handler. */
a.tb-pdf { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.tb-swap {
  margin-top: var(--s3); padding: var(--s3);
  background: var(--blue-tint); border-radius: var(--radius-sm);
  font-size: 14px; color: var(--gray-7); font-weight: 600;
  display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap;
}

/* The picker on the sign-in and PIN screens. Centred and set apart from the
   card: it is a way out of the screen, not another field on the form. */
.auth-lang { display: flex; justify-content: center; margin-top: var(--s5); }

/* ============================================================
   Toolbox Talk — reading the talk on the phone
   Set for reading OUT LOUD to a crew standing around a truck: bigger than the
   rest of the app, generous line height, and a measure that stays short so the
   eye can find the next line while the mouth is still on this one.
   ============================================================ */
.tb-read { max-width: 640px; }
.tb-rd-title { font-size: 26px; line-height: 1.2; margin: 0 0 2px; }
.tb-rd-topic { margin: 0 0 14px; }
.tb-rd-sum {
  font-size: 17px; line-height: 1.5; color: var(--ink);
  background: var(--blue-tint); border-radius: var(--radius);
  padding: 12px 14px; margin: 0 0 18px;
}
.tb-rd-sec { margin: 0 0 18px; }
.tb-rd-sec h2 { font-size: 17px; margin: 0 0 6px; color: var(--blue-dark); }
.tb-rd-sec p { font-size: 16px; line-height: 1.55; margin: 0 0 8px; }
.tb-rd-sec ul, .tb-rd-key ul, .tb-rd-ask ul { margin: 0 0 4px; padding-left: 22px; }
.tb-rd-sec li, .tb-rd-key li, .tb-rd-ask li { font-size: 16px; line-height: 1.5; margin-bottom: 7px; }

/* The two blocks a foreman actually reads out. Called out so they can be found
   by scrolling fast, which is how they will be found. */
.tb-rd-key, .tb-rd-ask {
  border-radius: var(--radius); padding: 14px 16px; margin: 22px 0;
}
.tb-rd-key { background: var(--green-tint); border-left: 4px solid var(--green); }
.tb-rd-ask { background: var(--gold-tint); border-left: 4px solid var(--gold); }
.tb-rd-key h2, .tb-rd-ask h2 { font-size: 15px; margin: 0 0 8px; }

/* Sticky so "Run this talk" is reachable from anywhere in a long talk without
   scrolling back — the crew is already standing there waiting. */
.tb-rd-foot {
  position: sticky; bottom: 0; z-index: 5;
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px 0 16px; margin-top: 26px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), var(--white) 22%);
}

/* The hazards a talk covers, in the DRA's own words. Sits on the library row,
   the talk card and the reader. Chips rather than a sentence because there are
   usually two or three and they are scanned, not read. bi() puts the
   translation on a second line inside the chip, so the chip sizes to its
   content instead of being given a height. */
.tb-haz { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tb-haz-chip {
  display: inline-block; padding: 3px 9px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--gray-1); color: var(--gray-7);
  font-size: 12px; font-weight: 650; line-height: 1.35; text-align: left;
}
.tb-haz-chip .bi-tr { display: block; font-weight: 500; opacity: .75; }

/* "read it here" on a library row, and the admin's read-state chip. */
.tb-item-read {
  display: inline-block; margin-top: 4px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  color: var(--green-dark);
}
.tbx-read { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 650; }
.tbx-read .ic { width: 14px; height: 14px; }
.tbx-read.ok { color: var(--green-dark); }
.tbx-read.retry {
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--gold-tint); color: var(--gold-ink);
  padding: 3px 10px; cursor: pointer;
}

/* ---- Work Plans (dfow.js) --------------------------------------------
   One rule only. The screens reuse .card / .field / .combo / .ob-row and
   the neutral .st-badge pill; the single thing none of those said was
   "this plan is approved", which is the difference between a draft
   somebody is still arguing about and the document a crew may build a
   DRA from. Green, matching .tbx-read.ok rather than inventing a colour. */
.st-badge.df-ok {
  background: var(--green-tint); border-color: var(--green-dark); color: var(--green-dark);
}

/* ---- Work plan job steps (dfow.js) ------------------------------------
   The row used to be a status pill doing duty as a step number, an input,
   and three buttons, all positioned by inline styles. Two things were
   wrong with it beyond the missing CSS: ▲ and ▼ were typed characters
   sitting next to a drawn ✕, so the three never matched each other; and
   .st-badge is the 10px uppercase chip that says "Approved", which reads
   as a label about the step rather than as its number.

   The number is now a plain numeral. Tabular figures matter here — step 9
   and step 10 have to line up, or a 16-step list looks ragged down the
   left edge.

   Up is chevron-down turned over. There is no chevron-up in icons.js, and
   rotating the same glyph is better than adding one anyway: the pair can
   never drift apart later.

   ⚠️ Writing a work plan assumes a WIDE SCREEN — a browser, not a phone.
   That is a deliberate scope decision, not an oversight: a plan with
   sixteen steps, their hazards and their controls is fine on a laptop and
   miserable on a handset. The phone still gets the read-only view, and
   that row is only a number and a line of text, so it has nothing to
   squeeze. flex-wrap stays as a guard against a narrow window, not as a
   layout anybody designs against.

   THE BOX IS THE INPUT. An earlier pass drew a bordered card around the
   whole row as well, and it read as clutter: sixteen boxes each holding
   another box, with the eye given two edges to follow instead of one.
   The row is bare; the field you type in is the thing with corners.

   The field needs its own rule because it is NOT inside a .field wrapper,
   so it was inheriting nothing at all — a raw browser input, 13px, square,
   half the height of every other input in the app. That was the real
   reason this looked wrong, not the arrangement.

   Matched to .field input deliberately: --radius-sm corners, 1.5px
   gray-3, and the same blue focus ring, so a step reads as the same kind
   of thing as every other box you type in. Vertical padding is tighter
   than a form field on purpose — sixteen full-height fields is a very
   long page, and these are one line each, not questions. */
/* ---- Work plan editor: a wider column --------------------------------
   Writing a plan is browser work, decided deliberately: sixteen steps
   with their hazards and controls is fine on a laptop and miserable on a
   handset, and the phone keeps the read-only view.

   This exists because the DFOW screens were asking for .qw-wide, which
   only applies alongside .qw-v2 — a class they do not carry. So they
   were silently sitting at the 640px phone column, and the nine-tab
   strip needs 779px on its own before any content. It read as "the tabs
   overflow" and was really "this screen never got the width it asked
   for".

   1100 rather than the 1200 the grid layout uses: the per-step hazard
   and control lists to come are read down the page, and a line of text
   much past this stops being scannable. */
.screen.df-wide { max-width: 1100px; }

/* ---- Work plan editor: header and tabs -------------------------------
   The job number, the plan name and the status sit together on one line.
   Status is up here rather than inside the Sign-off tab because
   draft-versus-approved decides whether a plan can reach a crew's
   morning at all — the most consequential fact about a plan should not
   need a click to see.

   The tab strip scrolls sideways rather than wrapping. Nine tabs wrapped
   onto two rows reads as two different toolbars, and the row order is
   the order of the paper cover sheet, which is the thing people already
   know. Editing assumes a browser, so sideways scroll is a fallback for
   a narrow window, not the normal case. */
.df-hdr { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2); }
.df-hdr-name { margin: 0; font-size: 21px; }
.df-hdr-sub { margin: 2px 0 12px; }
.df-job { font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px;
  padding: 2px 9px; border-radius: 999px; border: 1px solid var(--gray-2);
  background: var(--gray-1); color: var(--gray-7); }

.df-tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line);
  margin-bottom: var(--s4); -webkit-overflow-scrolling: touch; }
.df-tab { flex: 0 0 auto; background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 9px 13px; font: inherit; font-size: 14.5px; color: var(--gray-7);
  white-space: nowrap; cursor: pointer; }
.df-tab.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
/* Muted, never hidden. A tab with nothing behind it yet has to read as
   "not built" rather than "broken", and hiding it until it works means
   nobody sees the shape of the plan while it is still cheap to change. */
.df-tab.soon { color: var(--gray-3); }
.df-tab-n { color: var(--gray-5); font-weight: 400; }

.df-soon { text-align: center; padding: 26px 18px; }
.df-soon-h { font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.df-soon-note { margin: 10px 0 0; color: var(--gray-3); font-size: 12.5px; }

/* ---- Work plan safety: steps, their hazards, their controls -----------
   Steps run down the page and one opens at a time. Ten steps with every
   hazard expanded is several hundred control chips on one screen, and
   the work here is a pass down the whole plan — go through each step and
   tick what applies — not a deep dive into one of them.

   A step with nothing on it says so in amber. "Nobody has done this step
   yet" and "somebody looked and it is genuinely clean" are different
   facts, and without this they look identical while scrolling. */
.df-sstep { border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); margin-bottom: 6px; overflow: hidden; }
.df-sstep.open { border-color: var(--gray-3); }
.df-sstep-h { display: flex; align-items: center; gap: var(--s2); width: 100%;
  padding: 12px 14px; background: none; border: 0; font: inherit; text-align: left;
  cursor: pointer; color: var(--ink); }
.df-sstep-h:disabled { cursor: default; opacity: .6; }
.df-sstep-name { flex: 1 1 auto; min-width: 0; }
.df-sstep-c { flex: 0 0 auto; font-size: 12.5px; color: var(--gray-5); }
/* --gold-ink, not --orange: the app's orange is #F47E42, which is a fill
   colour and fails badly as 12px text on white. --gold-ink is the darker
   tone the gold banners already use for exactly this. */
.df-sstep-c.df-warn { color: var(--gold-ink); }
.df-sstep-body { padding: 0 14px 14px; border-top: 1px solid var(--line); }

/* Each hazard is its own block with its controls under it. The id is
   printed small beside the name because it is what the DRA, the exports
   and the library all call this row — worth being able to see when two
   hazards read similarly. */
.df-haz { padding: 12px 0; border-bottom: 1px solid var(--line); }
.df-haz:last-child { border-bottom: 0; }
.df-haz-h { display: flex; align-items: center; gap: var(--s2); margin-bottom: 8px; }
/* The hazard's energy-wheel pictogram, the same PNG the DRA and HECA show.
   Unscoped on purpose: the phone read-only plan wants it as much as the
   desktop editor does. object-fit keeps the badge round if a source PNG
   is ever not perfectly square. */
.df-haz-ic { flex: 0 0 auto; width: 44px; height: 44px; object-fit: contain; }
.df-haz-name { font-weight: 600; color: var(--look-hazard, var(--ink)); }
.df-haz-id { font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px; color: var(--gray-5); }
.df-haz-h .df-rm { margin-left: auto; }
.df-ctrl-lbl { font-size: 12px; color: var(--gray-5); margin: 10px 0 6px; }
.df-addhaz { margin: 12px 0 0; }

/* ---- Safety analysis, builder round 4 (2026-11-24; dfow.js safetyWideHtml / safetyPhoneHtml) ----
   Computer: the step bars, each hazard one line, a line opening to its controls (rules further down, with the Work plans
   builder rules). Red only for what is missing; gold only on the recommended hazards in the dropdown. Phone: one step, the large hazard tiles, then one hazard's controls. */
#df_haz { position: relative; }
.df-linkbtn { border: 0; background: none; padding: 0; font: inherit; color: var(--blue); cursor: pointer; }
.df-linkbtn:hover { text-decoration: underline; }
.df-red { margin: 6px 0 0; color: var(--red); font-size: 14px; font-weight: 600; }
.df-why-l { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.df-why-in { display: block; width: 100%; margin-top: 4px; padding: 6px 8px; font: inherit; font-size: 14px; color: var(--ink);
  background: var(--white); border: 1px solid var(--gray-3); border-radius: var(--radius-sm); }
.df-why-in.bad { border-color: var(--red); }
.df-guessed { margin: 0 0 12px; color: var(--muted); }
.df-spop { position: absolute; z-index: 30; width: 320px; max-width: 100%; max-height: 440px; overflow: auto; padding: 12px 14px;
  background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .14); }
.df-spop-h { margin: 10px 0 4px; font-size: 14px; font-weight: 600; }
.df-spop-h:first-child { margin-top: 0; }
.df-spop-grid { display: grid; grid-template-columns: 1fr; }
.df-spop-it { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 4px; text-align: left; font: inherit; font-size: 14px;
  color: var(--ink); background: none; border: 0; border-top: 1px solid var(--line); cursor: pointer; }
.df-spop-it:hover:not([disabled]), .df-spop-it:focus-visible { background: var(--canvas); }
.df-spop-it.added { color: var(--faint); cursor: default; }
.df-spop-it img { flex: 0 0 auto; width: 36px; height: 36px; object-fit: contain; }
.df-hl { background: var(--gold); color: var(--ink); padding: 0 3px; }
.df-spop-wait { margin: 0 0 4px; font-size: 14px; }
.df-spop .df-add-ctrl { margin-top: 10px; }
.df-spage { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.df-spage-b { flex: 0 0 auto; width: 48px; height: 48px; border: 0; border-radius: var(--radius-sm); background: var(--canvas); color: var(--ink); }
.df-spage-b:disabled { opacity: .35; }
.df-spage-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; text-align: center; }
.df-spage-t b { font-size: 17px; }
.df-sq { margin: 0 0 10px; font-size: 18px; }
.df-htiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.df-htile { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 120px; padding: 10px 6px; font: inherit; font-size: 14px;
  font-weight: 600; color: var(--ink); text-align: center; background: var(--white); border: 2px solid var(--gray-2); border-radius: var(--radius); }
.df-htile img { width: 64px; height: 64px; object-fit: contain; }
.df-htile.on { border-color: var(--blue); background: var(--blue-tint); }
.df-hpicks { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 8px; }
.df-hpick { flex: 0 0 auto; min-width: 64px; height: 56px; padding: 4px; background: var(--white); border: 2px solid var(--gray-2); border-radius: var(--radius-sm); }
.df-hpick.on { border-color: var(--blue); background: var(--blue-tint); }
.df-hpick img { width: 40px; height: 40px; object-fit: contain; }

/* Where a control came from, at a glance. Reading someone else's plan,
   "this is our marine standard" and "somebody made this up on this job"
   are different facts and a tick looks identical either way. Company
   plain, division marked with a left edge, job-typed dashed. */
.df-chip.df-div { border-left: 3px solid var(--gray-3); border-radius: 999px; }
.df-chip.df-own { border-style: dashed; }
.df-chip.df-own.on { border-style: dashed; }

/* The tag sheet a typed control opens (dfow.js askControlKind): the typed words,
   then the .seg choice in the app blue, wrapping to rows on a narrow phone. */
.df-ctrl-typed { margin: 0 0 14px; padding: 10px 12px; border-left: 4px solid var(--blue); background: var(--blue-tint);
  border-radius: 0 8px 8px 0; font-size: 15px; font-weight: 600; color: var(--ink); word-break: break-word; }
.df-kind-seg { flex-wrap: wrap; }
.df-kind-seg .seg-btn { flex: 1 1 140px; padding: 8px 10px; font-size: 15px; }
.df-kind-seg .seg-btn.on { background: var(--blue); border-color: var(--blue); color: var(--white); }
#dfCtrlSheet .df-pick-bar .btn + .btn { margin-top: 8px; }

.df-add-ctrl { display: flex; align-items: center; gap: var(--s2); margin-top: 8px; }
.df-add-ctrl input[type="text"], .df-add-ctrl textarea.df-wrap { flex: 1 1 auto; min-width: 0;
  padding: 8px 11px; font-size: 15px; color: var(--ink); background: var(--white);
  border: 1.5px solid var(--gray-3); border-radius: var(--radius-sm); }
.df-add-ctrl textarea.df-wrap { min-height: 40px; }
.df-add-ctrl input[type="text"]:focus, .df-add-ctrl textarea.df-wrap:focus { outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 87, 184, 0.15); }
.df-scope { flex: 0 0 auto; display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--gray-5); white-space: nowrap; }

/* A quality control is indented under the risk it answers. Same row shape
   as a resource line, so the two halves of the plan read alike. */
.df-qc { margin-left: 22px; }

/* ---- Work plan sign-off (dfow.js) ------------------------------------
   Five lines, all five always on screen. An unsigned line showing WHO has
   yet to sign is the tab's message, so nothing is hidden from people who
   cannot sign. The pad itself is the shared .sig-canvas-wrap from app.js
   and brings its own styling. */
.df-sig-line { border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); margin-bottom: 6px; padding: 12px 14px; }
.df-sig-line.signed { border-left: 4px solid var(--green); }
.df-sig-h { display: flex; align-items: center; gap: var(--s2); }
.df-sig-role { flex: 1 1 auto; min-width: 0; font-weight: 600; }
.df-sig-meta { flex: 0 0 auto; font-size: 12.5px; color: var(--gray-5); }
/* Same rule as .df-sstep-c.df-warn: --gold-ink, because the app's orange
   fails as small text on white. */
.df-sig-meta.df-warn { color: var(--gold-ink); }
/* The captured ink, drawn at the pad's own proportions. Capped rather than
   full width: a signature stretched across a laptop screen reads as a
   graphic, not a signature. */
.df-sig-img { display: block; width: 100%; max-width: 340px; height: auto;
  margin-top: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); }
.df-sig-open { margin-top: 10px; }
.df-sig-acts { display: flex; align-items: center; gap: var(--s2); margin-top: 8px; }

/* ---- Work plan resources ---------------------------------------------
   Qty and unit sit beside the name rather than in their own columns.
   Most of these lists are four rows of "two rescue skiffs" or nothing at
   all, and a three-heading grid for that is more furniture than content.

   The two number boxes are fixed and narrow so the names line up down
   the page — that is what makes a list scannable, not the headings. */
.df-res-row { display: flex; align-items: center; gap: var(--s2); margin-bottom: 6px; }
.df-res-row input { padding: 10px 12px; font-size: 17px; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--gray-3);
  border-radius: var(--radius-sm); min-width: 0; }
.df-res-row input:focus { outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 87, 184, 0.15); }
.df-res-row input:disabled { background: var(--gray-1); color: var(--gray-7); }
.df-res-name { flex: 1 1 auto; }
.df-res-qty  { flex: 0 0 84px; }
.df-res-unit { flex: 0 0 96px; }

/* The plan editor's one-line free-text boxes (textarea.df-wrap in dfow.js): look like the inputs they were,
   one paragraph that wraps and grows (dfWrapFit sets the height). Font size comes from the box's own class. */
textarea.df-wrap { display: block; box-sizing: border-box; min-width: 0; min-height: 44px; resize: none; overflow: hidden;
  font-family: inherit; line-height: 1.35; white-space: pre-wrap; overflow-wrap: anywhere; }
.field textarea.df-wrap { min-height: var(--tap); }
.df-res-row textarea.df-wrap { padding: 10px 12px; font-size: 17px; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--gray-3); border-radius: var(--radius-sm); }
.df-res-row textarea.df-wrap:focus { outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 87, 184, 0.15); }
.df-res-row textarea.df-wrap:disabled { background: var(--gray-1); color: var(--gray-7); }

/* The white drop-down list on the plan fields (dfCombo in dfow.js): the app's
   .combo list under a normal input, a chevron at the right, a gray sub-line
   (a person's role, a spec section's title). Rows are 44px or more to tap. */
.df-combo > input { width: 100%; padding-right: 36px; }
.df-res-row .df-combo { flex: 1 1 auto; min-width: 0; }
.df-cb-chev { position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--gray-5); border-bottom: 2px solid var(--gray-5);
  transform: rotate(45deg); cursor: pointer; }
.df-cb-chev::before { content: ""; position: absolute; left: -14px; top: -14px; right: -14px; bottom: -14px; }
.df-combo .combo-list { border-width: 1px; }
.df-cb-item { min-height: 44px; padding: 8px var(--s3); flex-wrap: wrap; column-gap: var(--s2); row-gap: 0; align-content: center; }
.df-cb-item:hover, .df-cb-item.on { background: var(--blue-tint); }
.df-cb-main { font-size: 16px; color: var(--ink); }
.df-cb-sub { font-size: 13px; color: var(--gray-5); }

/* ---- Work plan notes --------------------------------------------------
   A note is a dated line with a name on it, and the meta line under the
   text is the point of the tab — when it was said and by whom. It prints
   small and grey because it is a stamp, not content, but it is always
   there: an update with no date is not an update.

   The textarea reuses the resource row's flex so the remove button sits
   beside it, and grows downward because an RFI answer is a paragraph,
   not a phrase. flex-start, not center — a remove button floating in the
   middle of a tall paragraph looks attached to nothing. */
.df-note { margin-bottom: 12px; }
.df-note:last-child { margin-bottom: 0; }
.df-note .df-res-row { align-items: flex-start; margin-bottom: 0; }
.df-note-body { flex: 1 1 auto; min-width: 0; min-height: 56px; resize: vertical;
  padding: 10px 12px; font-size: 16px; line-height: 1.45; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--gray-3);
  border-radius: var(--radius-sm); font-family: inherit; }
.df-note-body:focus { outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 87, 184, 0.15); }
.df-note-body:disabled { background: var(--gray-1); color: var(--gray-7); }
.df-note-meta { font-size: 12.5px; color: var(--gray-5); margin: 4px 0 0 2px; }

/* Specialty PPE: picked, not typed. Chips rather than a checkbox list —
   nine short labels read faster as a wrapped row than as nine lines, and
   the picked ones have to be legible at a glance because this is the
   half of the plan that prefills a crew's form. */
.df-ppe { display: flex; flex-wrap: wrap; gap: 6px; }
.df-chip { font: inherit; font-size: 14px; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--gray-3); background: var(--white); color: var(--gray-7);
  cursor: pointer; }
.df-chip.on { background: var(--blue-tint); border-color: var(--blue); color: var(--blue); font-weight: 600; }
.df-chip:disabled { cursor: default; opacity: .75; }
/* The role label wears the DRA's green / gold (.controls-label); only its spacing is the editor's. */
.df-role-lbl { font-size: 12px; margin: 12px 0 6px; }
/* The alternative type: a small icon before the chip text, and a plain key line under the label. */
.df-kind-ic { display: inline-flex; margin-right: 6px; vertical-align: middle; }
.df-kind-ic .ic { width: 16px; height: 16px; vertical-align: 0; }
.df-kind-key { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 6px; font-size: 12px; color: var(--muted); }
.df-kind-key .ic { width: 14px; height: 14px; vertical-align: -0.2em; }

.df-step { display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--s2); margin-bottom: 6px; }
.df-step-n { flex: 0 0 auto; min-width: 22px; text-align: right;
  color: var(--gray-5); font-size: 14px; font-variant-numeric: tabular-nums; }
.df-step-in { flex: 1 1 220px; min-width: 0;
  padding: 10px 12px; font-size: 17px; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--gray-3);
  border-radius: var(--radius-sm); }
.df-step-in:focus { outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 87, 184, 0.15); }
.df-step-in:disabled { background: var(--gray-1); color: var(--gray-7); }
.df-step-acts { flex: 0 0 auto; display: flex; gap: 2px; margin-left: auto; }
.df-btn { width: 34px; height: 34px; min-height: 34px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gray-5); }
.df-btn .ic { width: 16px; height: 16px; }
.df-btn:disabled { opacity: .35; }
/* Details: the Photos thumbnail grid and the Attachments rows */
.df-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, 96px); gap: 6px; }
.df-photo-grid a { display: block; width: 96px; height: 96px; border-radius: 6px; overflow: hidden; background: var(--gray-1, #eee); }
.df-photo-grid img { display: block; width: 100%; height: 100%; object-fit: cover; }
.df-wide .df-photo-grid { grid-template-columns: repeat(auto-fill, 140px); }
.df-wide .df-photo-grid a { width: 140px; height: 140px; }
.df-att-row { display: flex; align-items: center; gap: var(--s2); padding: 8px 0; border-bottom: 1px solid var(--gray-2, #ddd); }
.df-att-main { flex: 1 1 auto; min-width: 0; }
.df-att-name { display: block; font-weight: 600; overflow-wrap: anywhere; }
.df-att-sm { display: block; margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.df-att-add { width: auto; margin-top: 10px; cursor: pointer; }
.df-up .ic { transform: rotate(180deg); }
.df-rm { color: var(--red); }

/* ---- Work plans: the Schedule tab and the job-level import ---- */
.df-dates { display: flex; gap: 28px; }
.df-date-lbl { font-size: 12px; color: var(--gray-5); }
.df-date-val { font-size: 19px; font-weight: 600; color: var(--ink); }

.df-act-row { display: flex; align-items: center; gap: var(--s2);
  padding: 8px 2px; border-bottom: 1px solid var(--line); }
.df-act-row:last-child { border-bottom: 0; }
.df-act-id { flex: 0 0 auto; min-width: 86px;
  font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; color: var(--gray-5); }
.df-act-name { flex: 1 1 auto; min-width: 0; font-size: 15px; color: var(--ink); }
.df-act-name .df-warn { color: var(--gold-ink); font-size: 12.5px; }
.df-act-wbs { display: block; font-size: 11.5px; color: var(--gray-5);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.df-act-dates { flex: 0 0 auto; font-size: 12.5px; color: var(--gray-5); white-space: nowrap; }

button.df-act-pick { width: 100%; background: none; border: 0;
  border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; font: inherit; }
button.df-act-pick:hover { background: var(--gray-1); }
button.df-act-pick:last-of-type { border-bottom: 0; }

.df-map-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
@media (max-width: 640px) { .df-map-grid { grid-template-columns: 1fr; } }
.df-imp-num { font-weight: 700; color: var(--ink); }
/* Suggested work plans (screenSchedSuggest): one card per feature, the
   tick + editable name as its head; an unticked card fades but stays
   readable, so what is being left out is still visible. */
.df-sug-head { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 8px; cursor: pointer; }
.df-sug-head input[type="checkbox"] { margin-top: 13px; width: 20px; height: 20px; flex: 0 0 auto; }
/* The editable plan name (and the "name for the new plan" box in Separate)
   in the app's own field look — it used to be a bare browser text box. */
.df-sug-head .df-sug-name, .df-sug-mode .df-sug-sp-name {
  width: 100%; min-width: 0; padding: 10px 12px; font-size: 17px; font-weight: 700;
  color: var(--ink); background: var(--white);
  border: 1.5px solid var(--gray-3); border-radius: var(--radius-sm); }
.df-sug-mode .df-sug-sp-name { font-weight: 400; font-size: 16px; }
.df-sug-head .df-sug-name:focus, .df-sug-mode .df-sug-sp-name:focus { outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 87, 184, 0.15); }
/* What AI marked on a step: hazards and quality items, under the step. */
.df-sug-risk { margin: 3px 0 6px; padding-left: 10px; border-left: 2px solid var(--line); }
.df-sug-risk .sub { margin: 1px 0; font-size: 13px; }
.df-sug-risk-n { color: var(--gray-5); white-space: nowrap; }
.df-sug-locs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px 14px; }
/* Cost codes on a step (Create from job data), the "Create from job data"
   sheet's greyed rows, and the Budget work with no plan list. */
.df-sug-codes { margin: 3px 0 6px; padding-left: 10px; border-left: 2px solid var(--line); }
.df-sug-codes .sub { font-size: 13px; }
.df-sug-codes .df-sug-mode-row { margin: 2px 0; font-size: 13px; }
.df-src-off { opacity: 0.55; cursor: default; }
.df-sug-uc .df-sug-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.df-sug-uc select { max-width: 100%; }

/* ============================================================
   Build the schedule (schedbuild.js) — a desk screen: a settings line,
   three numbers, then the activity table and its bar chart side by side on
   one row height, so a table row and its bar are the same line.
   ============================================================ */
.sb-root { --sb-rowh: 40px; }
.sb-setbar { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 12px; }
.sb-setbar label, .sb-saverow label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--muted); }
.sb-setbar input[type="date"], .sb-saverow input[type="date"] { padding: 7px 9px; font-size: 15px; color: var(--ink); background: var(--white); border: 1.5px solid var(--gray-3); border-radius: var(--radius-sm); }
.sb-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 12px; }
.sb-stat { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 10px 14px; }
.sb-stat b { display: block; font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sb-stat span { color: var(--muted); font-weight: 600; font-size: 13px; }
.sb-stat.sb-green { border-left-color: var(--green); }
.sb-stat.sb-red { border-left-color: var(--red); }
.sb-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.sb-paste { margin-bottom: 10px; }
.sb-paste textarea { width: 100%; min-height: 120px; padding: 8px 10px; font: 13px/1.4 ui-monospace, Consolas, monospace; color: var(--ink); background: var(--white); border: 1.5px solid var(--gray-3); border-radius: var(--radius-sm); resize: vertical; }
.sb-panes { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sb-pane { min-width: 0; overflow-x: auto; }
.sb-table { border-collapse: collapse; width: 100%; }
.sb-table td input[data-f="name"] { min-width: 250px; }   /* the name is what the row is — it does not get squeezed by the number columns */
.sb-setbar .sub { margin: 0; }
.sb-table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); padding: 0 8px; height: var(--sb-rowh); border-bottom: 1px solid var(--line); white-space: nowrap; }
.sb-table td { padding: 0 8px; height: var(--sb-rowh); border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; font-size: 14px; }
.sb-table tr.sb-head td { background: var(--gray-1); font-weight: 800; }
.sb-table tr.sb-head input[type="text"] { font-weight: 800; }
.sb-table tr.sb-crit td:nth-child(2) input { color: var(--red); font-weight: 700; }
.sb-table td input[type="text"], .sb-table td input[type="number"], .sb-table td input[type="date"] { width: 100%; min-width: 0; padding: 5px 7px; font-size: 14px; color: var(--ink); background: transparent; border: 1.5px solid transparent; border-radius: 6px; }
.sb-table td input[type="text"]:hover, .sb-table td input[type="number"]:hover { border-color: var(--line); }
.sb-table td input:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 3px rgba(0, 87, 184, 0.15); }
.sb-table td input[type="date"] { width: 138px; border-color: var(--gray-3); }
.sb-table .sb-empty { color: var(--muted); text-align: center; white-space: normal; }
.sb-num { font-variant-numeric: tabular-nums; }
.sb-c-num { width: 38px; text-align: right; color: var(--faint); }
.sb-c-dur { width: 70px; } .sb-c-dur input { text-align: right; }
.sb-c-fol { width: 118px; }
.sb-c-date { width: 150px; }
.sb-c-flt { width: 50px; text-align: right; }
.sb-c-pct { width: 62px; } .sb-c-pct input { text-align: right; }
.sb-c-act { width: 124px; text-align: right; }
.sb-ic { width: 26px; height: 26px; padding: 0; margin-left: 2px; line-height: 1; font-weight: 700; color: var(--muted); background: var(--white); border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.sb-ic:hover { color: var(--blue); border-color: var(--blue); }
.sb-ic.on { color: var(--blue); border-color: var(--blue); background: var(--blue-tint); }
.sb-err { color: var(--red); font-weight: 700; font-size: 12px; }
.sb-later { color: var(--faint); font-size: 12px; margin-left: 4px; }
.sb-saverow { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.sb-help { margin-top: 14px; color: var(--muted); }
.sb-help summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.sb-help li { margin: 4px 0; max-width: 78ch; }
.df-sug-card.df-sug-off { opacity: .55; }
/* A card folds to its name and a one-line count; the chevron turns. */
.df-sug-headrow { display: flex; gap: 8px; align-items: flex-start; }
.df-sug-headrow .df-sug-head { flex: 1 1 auto; min-width: 0; }
.df-sug-fold { flex: 0 0 auto; width: 44px; min-height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.df-sug-fold svg { transition: transform .15s ease; }
.df-sug-shut .df-sug-fold svg { transform: rotate(-90deg); }
.df-sug-sum { margin: 0 0 0 30px; }
.df-sug-shut .df-sug-head { margin-bottom: 4px; }
/* Combine / Separate on a card: the buttons sit at its foot; a mode opens a
   panel of ticks with its own Go / Cancel. */
.df-sug-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.df-sug-mode { margin: 0 0 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.df-sug-mode-row { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0; cursor: pointer; }
.df-sug-mode-row input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; }
.df-sug-mode-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.df-imp-list { margin: 6px 0 0; padding-left: 20px; }
.df-imp-list li { margin: 2px 0; font-size: 14px; }
.df-imp-fd { max-height: 320px; overflow: auto; border: 1px solid var(--line, #ddd); border-radius: 6px; }
.df-imp-fd table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.df-imp-fd th, .df-imp-fd td { padding: 4px 8px; text-align: left; border-bottom: 1px solid var(--line, #eee); vertical-align: top; }
.df-imp-fd th { position: sticky; top: 0; background: var(--gray-1, #f6f6f4); font-weight: 600; }

/* Critical chip — list view's equivalent of the red Gantt bar (both read
   `critical` off fact_schedule_activity, never computed by the app). */
.df-crit-chip {
  flex: 0 0 auto; display: inline-block; padding: 1px 7px; border-radius: 999px;
  background: var(--red-tint); color: var(--red); font-size: 11px; font-weight: 800;
}

/* ---- Work plan production: step→code picker and the rollup ------------
   The rollup is a real table — the only one in the editor — because seven
   columns of numbers is what a table is for. It scrolls inside its own
   wrapper on a narrow window rather than widening the page.

   Amber (--gold-ink) is for "somebody needs to look at this" — a stale or
   missing split; red is only for "this cannot be saved" — a code claimed
   past 100%. Same split of meanings as the safety tab's df-warn. */
.df-pc-step { padding: 10px 0; border-bottom: 1px solid var(--line); }
.df-pc-step:last-child { border-bottom: 0; }
.df-pc-h { display: flex; align-items: center; gap: var(--s2); margin-bottom: 6px; }
.df-pc-add { margin: 8px 0 0; max-width: 560px; }
/* The type-to-search code list under "Add a code": the look-ahead's .la-qw / .la-row / .la-item, in a box that scrolls past ~8 rows. */
.df-pc-pick { margin-top: 6px; max-height: 260px; overflow-y: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 0; font-size: 15px; }
.df-pc-pick[hidden], .df-pc-pick .la-row[hidden], .df-pc-pick .la-none[hidden] { display: none; }
.df-pc-pick .la-q { height: 36px; font-size: 15px; }
.df-pc-pick .la-none { margin: 6px 12px; font-size: 14px; }
.df-pc-note { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
/* A step's codes: the description is what the eye reads (600), the numbers are quiet. One size, 15px, no monospace. */
.df-pc-tbl { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 15px; }
.df-pc-tbl th:nth-child(2) { width: 130px; }
.df-pc-tbl th:nth-child(3) { width: 130px; }
.df-pc-tbl th:nth-child(4), .df-pc-tbl th:nth-child(5) { width: 110px; }
.df-pc-tbl th:nth-child(6) { width: 40px; }
.df-pc-tbl th { padding: 2px 10px 4px; text-align: left; font-size: 13px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.df-pc-tbl th.num, .df-pc-tbl td.num { text-align: right; }
.df-pc-tbl td { padding: 7px 10px; border-top: 1px solid var(--line-soft); vertical-align: baseline; }
.df-pc-tbl .df-pc-d { font-weight: 600; }
.df-pc-tbl .df-pc-cc, .df-pc-tbl .df-pc-n { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.df-pc-tbl .df-pc-x { width: 32px; padding: 0 4px; text-align: right; }
.df-pc-rm { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--faint); font-size: 18px; line-height: 1; cursor: pointer; }
.df-pc-rm:hover { background: var(--canvas); color: var(--red); }
.df-file-row input[type="file"] { font-size: 14px; }

.df-prod-wrap { overflow-x: auto; }
.df-prod { width: 100%; border-collapse: collapse; font-size: 14px; }
.df-prod th { text-align: left; font-size: 12px; color: var(--gray-5);
  font-weight: 600; padding: 6px 10px; border-bottom: 1px solid var(--line);
  white-space: nowrap; }
.df-prod td { padding: 8px 10px; border-bottom: 1px solid var(--line); }
.df-prod tr:last-child td { border-bottom: 0; }
.df-prod .num { text-align: right; font-variant-numeric: tabular-nums;
  white-space: nowrap; }
.df-code { font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 13px; white-space: nowrap; }
.df-was { color: var(--gray-5); font-size: 12px; }
.df-share-warn { color: var(--gold-ink); font-size: 12.5px; font-weight: 600; }

.df-split-code { padding: 12px 0; border-bottom: 1px solid var(--line); }
.df-split-code:last-child { border-bottom: 0; }
.df-split-row { display: flex; align-items: center; gap: var(--s2); margin: 4px 0; }
.df-split-row label { flex: 1 1 auto; min-width: 0; font-size: 15px; color: var(--ink); }
.df-split-row input { flex: 0 0 92px; padding: 8px 10px; font-size: 16px;
  text-align: right; color: var(--ink); background: var(--white);
  border: 1.5px solid var(--gray-3); border-radius: var(--radius-sm); }
.df-split-row input:focus { outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 87, 184, 0.15); }
.df-split-rem { font-size: 12.5px; color: var(--gray-5); margin-top: 6px; }
.df-split-rem.df-warn { color: var(--gold-ink); }
.df-split-rem.df-over { color: var(--red); font-weight: 600; }

/* ---- Work plan quality: hold points ------------------------------------
   Red, not amber. Amber in this app means "somebody should look at this";
   a hold point is "work stops here until the engineer accepts", which is a
   different sentence and needs the stronger color. */
.df-hold { display: flex; align-items: center; gap: 8px; margin-top: 8px;
  font-size: 14px; color: var(--gray-7); cursor: pointer; }
.df-hold input { width: 18px; height: 18px; accent-color: var(--red); flex: 0 0 auto; }
.df-hold.on { color: var(--red); font-weight: 600; }
.df-holdmark { color: var(--red); font-weight: 700; margin-left: 8px; }

/* ---- Work plan editor — desktop readability polish --------------------
   Writing a plan is desktop/tablet work (the phone keeps the read-only
   view), so this whole block hangs off .df-wide — the class only the
   big-screen editor carries — plus the .df-* classes the work plans own.
   The phone view, the DRA and every other screen are left alone. It sits
   at the end of the section on purpose: several selectors below share the
   specificity of the rules they refine and win only by coming later. */

/* A calmer, document-like width. 1100 let the single-column forms sprawl. */
.screen.df-wide { max-width: 980px; }

/* Draft / Approved is the most consequential fact about a plan — it decides
   whether the plan can reach a crew's morning — so it stops being a whisper
   of grey and becomes a real amber / green pill, with the job number beside
   it as a quiet chip. */
.df-hdr { gap: 10px; margin-top: 2px; }
.df-hdr-name { font-size: 24px; letter-spacing: -0.3px; }
.df-wide .df-job {
  background: var(--blue-tint); color: var(--blue-dark);
  border: 1px solid #CFE0F4; padding: 3px 9px; border-radius: 6px;
  font-size: 12px; font-weight: 700;
}
.df-wide .df-hdr .st-badge {
  font-size: 11px; padding: 4px 11px; border-radius: 999px;
  background: var(--gold-tint); color: var(--gold-ink);
  border: 1px solid #EAD79A; letter-spacing: .04em;
}
.df-wide .df-hdr .st-badge.df-ok {
  background: var(--green-tint); color: var(--green-dark); border-color: #BFE0AD;
}

/* Tabs become a wrapping pill group. Nine sections will not sit on one
   desktop row at a legible size, and the scrolling strip hid half the plan's
   map; pills wrap to a tidy second row with every section in view. The phone,
   with no .df-wide, keeps the scrolling underline strip — right for a narrow
   screen where wrapped pills would cost four rows of height. */
.df-wide .df-tabs {
  flex-wrap: wrap; gap: 7px; margin: 16px 0 20px;
  border-bottom: 0; overflow: visible; padding-bottom: 0;
}
.df-wide .df-tab {
  padding: 8px 15px; font-size: 14.5px; color: var(--gray-7);
  background: var(--gray-1); border: 1px solid var(--gray-2); border-radius: 999px;
  margin: 0; transition: background .12s, color .12s, border-color .12s;
}
.df-wide .df-tab:hover { background: var(--gray-2); color: var(--ink); }
.df-wide .df-tab.on {
  background: var(--blue); color: #fff; border-color: var(--blue); font-weight: 700;
}
.df-wide .df-tab-n {
  display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px;
  font-size: 12px; font-weight: 700; line-height: 1.6;
  background: var(--gray-3); color: var(--gray-7); border-radius: 999px;
}
.df-wide .df-tab.on .df-tab-n { background: rgba(255, 255, 255, 0.26); color: #fff; }

/* Form-heavy tabs read better in a column than in 980px of stretched input.
   Wired off #df_panel[data-tab], which renderPanel() stamps each render. */
.df-wide #df_panel[data-tab="details"],
.df-wide #df_panel[data-tab="notes"] { max-width: 660px; }
.df-wide #df_panel[data-tab="resources"] { max-width: 780px; }

/* Cards a touch softer, so a page of them reads as one surface. */
.df-wide .card { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }

/* The solid-blue section bar is a wall when Resources stacks four of them.
   Lighten it to a tinted header that still clearly heads its card. */
.df-wide .section-bar {
  background: var(--blue-tint); color: var(--blue-dark);
  border-bottom: 1px solid #D3E2F5; font-size: 13px; letter-spacing: .02em;
}

/* Procedure: a stronger step number, and the three reorder / remove buttons —
   a lot of furniture on every row — quieted to grey until the row is hovered. */
.df-wide .df-step { gap: 10px; }
.df-wide .df-step-n { color: var(--blue); font-weight: 800; font-size: 15px; min-width: 24px; }
.df-wide .df-step-acts .df-btn { border-color: transparent; background: transparent; color: var(--gray-5); }
.df-wide .df-step:hover .df-btn { border-color: var(--gray-3); background: var(--white); }
.df-wide .df-step-acts .df-btn:hover { color: var(--ink); }
.df-wide .df-step-acts .df-rm:hover { color: var(--red); border-color: var(--red); }

/* Safety: real depth for step › hazard › control. The open step gets a faint
   tray so the white hazard cards inside it lift off the page. */
.df-wide .df-sstep { border-radius: var(--radius-lg); }
.df-wide .df-sstep.open { box-shadow: var(--shadow-card); }
.df-wide .df-sstep-h { padding: 15px 16px; }
.df-wide .df-sstep-name { font-size: 16px; }
.df-wide .df-sstep-body {
  background: var(--gray-1); padding: 14px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
/* On the plan page the open step's header stays in view, just under the pinned title block, while its hazards scroll
   beneath (the page itself scrolls; no inner scroll box). overflow: hidden on the card would make it the sticky
   container, so the open card lets it show; the header carries the top corners itself. Only the open step sticks. */
.df-plan.df-wide .df-sstep.open { overflow: visible; }
.df-plan.df-wide .df-sstep.open > .df-sstep-h { position: sticky; top: var(--df-pin2, 0px); z-index: 15; background: var(--white); border-bottom: 1px solid var(--line); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.df-plan.df-wide .df-sstep.open > .df-sstep-body { border-top: 0; }
.df-wide .df-haz {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; margin-bottom: 10px;
}
.df-wide .df-haz:last-child { margin-bottom: 0; }
.df-wide .df-haz-id {
  background: var(--gray-1); color: var(--gray-7); border: 1px solid var(--gray-2);
  padding: 1px 7px; border-radius: 5px;
}

/* Direct vs Alternative: a labelled swatch instead of a whisper of grey. */
.df-wide .df-ctrl-lbl {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin: 13px 0 8px;
}
.df-wide .df-ctrl-lbl::before {
  content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--blue); flex: none;
}

/* Chips a little more tactile, and the "where did this control come from"
   cues made legible — company plain, division gold-edged, job-typed dashed. */
.df-wide .df-chip { font-size: 14px; padding: 8px 14px; }
.df-wide .df-chip.on { box-shadow: inset 0 0 0 1px var(--blue); }
.df-wide .df-chip.df-div { border-left: 3px solid var(--gold); }
.df-wide .df-chip.df-own { border-style: dashed; border-color: var(--gray-5); }

/* Production reads like a ledger: a firmer header rule and zebra rows. */
.df-wide .df-prod th { color: var(--gray-7); border-bottom: 2px solid var(--gray-3); padding-bottom: 9px; }
.df-wide .df-prod tbody tr:nth-child(even) { background: var(--gray-1); }
.df-wide .df-prod td { padding: 9px 10px; }
.df-wide .df-code { color: var(--blue-dark); }
/* The Production table in the same type as the step rows above it: the code in plain muted figures, not monospace. */
.df-wide .df-prod td { font-size: 15px; }
.df-wide .df-prod th { font-size: 13px; }
.df-wide .df-prod .df-was { font-size: 13px; }
.df-wide .df-prod td.df-code { font-family: inherit; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Sign-off: a signed line reads settled (green), the rest read pending. */
.df-wide .df-sig-line { border-radius: var(--radius-lg); padding: 14px 16px; }
.df-wide .df-sig-line.signed { background: var(--green-tint); border-color: #CDE7BE; }

/* The page-wide Save / Delete don't need to span 980px on a desktop. */
.df-wide > .btn { max-width: 320px; }
.df-wide > .btn-primary { font-size: 17px; }

/* ---- Messages from the safety office (notices.js) ---------------------
   Shown before the app when the office has posted something, and again
   from the menu afterwards. The card carries the whole treatment: the
   screen underneath is deliberately bare, because a notice competing with
   page furniture is a notice being skimmed.

   Colour is the only thing that varies by level, and it reuses the
   severity ramp the rest of the app already uses for "how bad is this" —
   a new palette here would mean amber meaning one thing on a hazard and
   another on a warning. */
.nt-screen { max-width: 560px; margin: 0 auto; }

.nt-card { border-left: 6px solid var(--gray-3); }
.nt-card.nt-info    { border-left-color: var(--blue); }
.nt-card.nt-warning { border-left-color: var(--sev-med); }
.nt-card.nt-urgent  { border-left-color: var(--sev-hi); background: var(--sev-hi-tint); }

/* The level, as a word rather than only a colour. Colour alone is not a
   label — it fails in bright sun, on a cracked screen, and for the one
   man in twelve who cannot tell the amber from the red. */
.nt-tag {
  font-size: 12px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--gray-5); margin-bottom: var(--s2);
}
.nt-urgent .nt-tag { color: var(--sev-hi); }
.nt-warning .nt-tag { color: var(--sev-med); }
.nt-count { font-weight: 650; letter-spacing: 0; text-transform: none; color: var(--gray-5); }

.nt-title { font-size: 20px; font-weight: 800; margin: 0 0 var(--s3); }
.nt-body { font-size: 16px; line-height: 1.6; margin: 0 0 var(--s4); white-space: normal; }
.nt-from { font-size: 14px; color: var(--gray-5); margin: 0 0 var(--s4); }
.nt-read { font-size: 14px; font-weight: 700; color: var(--green-dark); margin: 0; }

/* The unread-notice headline on the home screen (notices.js). What "Review
   later" leaves behind: a tappable line carrying the loudest unread notice's
   title, in its level colour, until it is read.

   A <button>, not a div, because it is a real tap target that opens the list —
   and because a gloved thumb on a jobsite deserves the keyboard and screen
   reader behaviour that comes free with the right element. It inherits .banner
   for its box, and only overrides what a button needs. */
.nt-banner {
  width: 100%;
  text-align: left;
  font-family: var(--font);
  cursor: pointer;
  min-height: var(--tap);
}
.nt-banner.nt-info    { background: var(--blue-tint);   color: var(--blue-dark); border-color: #BAD2EE; }
.nt-banner.nt-warning { background: var(--sev-med-tint); color: var(--sev-med);  border-color: #EBC2A6; }
.nt-banner.nt-urgent  { background: var(--sev-hi-tint);  color: var(--sev-hi);   border-color: #E4B7B9; }

/* The level, as a word and not only a colour — same reasoning as the notice
   card itself: colour alone fails in bright sun and for the one man in twelve
   who cannot tell the amber from the red. */
.nt-banner-tag {
  font-size: 11px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; flex: none;
}

/* The headline gets whatever room is left and is clipped rather than wrapped:
   the banner sits above the tiles, and one that grows to three lines pushes the
   DRA button off the screen on a small phone. The full text is one tap away. */
.nt-banner-title {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-weight: 700;
}

.nt-banner-more { flex: none; font-weight: 700; opacity: .8; }

/* Says it is a door. Hidden on the narrowest phones, where the title is worth
   more than the invitation. */
.nt-banner-cta { flex: none; font-weight: 800; text-decoration: underline; }

/* ============================================================
   Work plan Submittals & RFIs tabs (dfow.js) — MOCK DATA ONLY.
   ============================================================ */

/* Three more .st-badge colours, the same move as .df-ok above: reused
   tints and ink colours, nothing new mixed. Draft/Answered-adjacent gaps
   in this list are deliberate — Draft prints the plain, uncoloured badge,
   because nothing has happened to a draft yet worth calling out in colour. */
.st-badge.df-warn {
  background: var(--gold-tint); border-color: var(--gold-ink); color: var(--gold-ink);
}
.st-badge.df-bad {
  background: var(--red-tint); border-color: var(--red); color: var(--red);
}
.st-badge.df-info {
  background: var(--blue-tint); border-color: var(--blue-dark); color: var(--blue-dark);
}

/* The running risk chip beside the plan's status badge (dfow.js refreshRiskChip).
   Neutral until a plan is weakly controlled: amber from 20%, red from 45% (the
   same line the hazards-weak count draws). The wide-screen header recolours
   every .st-badge gold, so the chip restates its colours there. */
.st-badge.df-risk { text-transform: none; letter-spacing: 0; }
.st-badge.df-risk-mid {
  background: var(--gold-tint); border-color: var(--gold-ink); color: var(--gold-ink);
}
.st-badge.df-risk-hi {
  background: var(--red-tint); border-color: var(--red); color: var(--red);
}
.df-wide .df-hdr .st-badge.df-risk { background: var(--gray-1, #F4F5F6); color: var(--gray-5); border-color: var(--line); }
.df-wide .df-hdr .st-badge.df-risk.df-risk-mid { background: var(--gold-tint); color: var(--gold-ink); border-color: var(--gold-ink); }
.df-wide .df-hdr .st-badge.df-risk.df-risk-hi { background: var(--red-tint); color: var(--red); border-color: var(--red); }
#df_riskChip, #df_qualChip { cursor: pointer; }
#df_riskChip:focus-visible, #df_qualChip:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* The chip's breakdown sheet (dfow.js openRiskBreakdown). Stacks, wraps, never
   scrolls sideways: long hazard and control names break inside their cell. */
.df-rb { overflow-wrap: anywhere; }
.df-rb-head { margin: 0 0 4px; font-size: 18px; font-weight: 800; color: var(--ink); }
.df-rb-rule { margin: 0 0 6px; padding: 8px 10px; background: var(--gray-1); border-radius: 8px; font-size: 13px; }
.df-rb-step { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.df-rb-step-h { display: flex; align-items: baseline; gap: 8px; font-size: 15px; color: var(--ink); }
.df-rb-n { flex: 0 0 auto; min-width: 22px; text-align: center; font-weight: 800; color: var(--gray-5); }
.df-rb-hrs { margin: 2px 0 6px 30px; font-size: 13px; color: var(--gray-5); }
.df-rb-hz { margin: 6px 0 0 30px; padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: 8px; font-size: 13.5px; }
.df-rb-hz.df-risk-hi { background: var(--red-tint); border-color: var(--red); }
.df-rb-hz-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.df-rb-ctl { margin-top: 4px; color: var(--gray-7); line-height: 1.4; }
.df-rb-ctl i { color: var(--gray-5); font-style: normal; }
.df-rb-ign { text-decoration: line-through; color: var(--gray-5); }
.df-rb-why { margin-top: 4px; font-size: 12.5px; color: var(--gray-5); line-height: 1.35; }
.df-rb-sec { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.df-rb-tbl { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; font-variant-numeric: tabular-nums; }
.df-rb-tbl th, .df-rb-tbl td { padding: 4px 6px; border-bottom: 1px solid var(--line-soft); text-align: right; vertical-align: top; }
.df-rb-tbl th:first-child, .df-rb-tbl td:first-child { width: 46%; text-align: left; }
.df-rb-tbl th { font-size: 12px; color: var(--gray-5); }
.df-rb-tbl .df-rb-stp { font-weight: 600; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.df-rb-tbl .df-rb-hzn { font-size: 12px; color: var(--gray-5); }
.df-rb-sum { margin: 8px 0 0; font-size: 14px; font-weight: 700; color: var(--ink); }
.df-rb-tag { margin-left: auto; padding: 1px 7px; border: 1px solid var(--red); border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--red); white-space: nowrap; }
.df-rb-guess { padding: 0 5px; border: 1px solid var(--line); border-radius: 999px; font-size: 10.5px; color: var(--gray-5); white-space: nowrap; }
@media (max-width: 480px) {
  .df-rb-hrs, .df-rb-hz { margin-left: 0; }
}

/* The kind picker on a quality control line (dfow.js qrisksHtml). Small, after the
   text box. The line wraps, so on a phone the picker drops under the text box. */
.df-qc { flex-wrap: wrap; }
.df-qc .df-res-name { flex: 1 1 180px; }
select.df-qkind { flex: 0 1 auto; max-width: 100%; padding: 6px 8px; font-size: 14px; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--gray-3); border-radius: var(--radius-sm); }
select.df-qkind:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 87, 184, 0.15); }
select.df-qkind:disabled { background: var(--gray-1); color: var(--gray-7); }
@media (max-width: 480px) {
  .df-qc .df-res-name { flex-basis: calc(100% - 56px); }
  .df-qc select.df-qkind { order: 3; flex: 1 1 100%; }
}

/* A linked submittal or RFI. Two flex-wrap groups inside a flex-wrap row,
   not a grid — a grid's columns are fixed widths, and a title running from
   four words to fourteen is exactly the case a grid handles by truncating
   or by leaving the short rows looking ragged. Wrapping is the point: this
   is read on a phone as often as it's edited on a laptop. */
.df-link-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: var(--s2); padding: 10px 2px; border-bottom: 1px solid var(--line); }
.df-link-row:last-child { border-bottom: 0; }
.df-link-main { flex: 1 1 220px; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.df-link-num { flex: 0 0 auto; font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; color: var(--gray-5); }
.df-link-title { flex: 1 1 160px; min-width: 0; font-size: 15px; color: var(--ink); }
.df-link-spec { flex: 0 0 auto; font-size: 12.5px; font-weight: 700; color: var(--gray-7); }
.df-link-meta { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.df-link-boc, .df-link-due { font-size: 12.5px; color: var(--gray-5); white-space: nowrap; }

/* The link picker sheet — the li-* shell drapull.js already established
   (body.li-locked, .li-sheet/.li-backdrop/.li-panel/.li-bar/.li-x/.li-scroll),
   so this is the second sheet in the app and not a new pattern to keep in
   sync with the first. Only the rows and the footer bar are new. */
.df-pick-h { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--gray-5); margin: 16px 0 8px; }
.df-pick-h:first-child { margin-top: 0; }
button.df-pick-row { display: flex; align-items: flex-start; gap: 10px; width: 100%;
  padding: 10px 8px; border: 0; border-bottom: 1px solid var(--line); background: none;
  text-align: left; font: inherit; cursor: pointer; }
button.df-pick-row:last-of-type { border-bottom: 0; }
button.df-pick-row:active, button.df-pick-row.on { background: var(--blue-tint); }
.df-pick-box { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px; border-radius: 5px;
  border: 1.5px solid var(--gray-3); background: var(--white);
  display: flex; align-items: center; justify-content: center; color: var(--white); }
.df-pick-box .ic { width: 15px; height: 15px; }
.df-pick-row.on .df-pick-box { background: var(--blue); border-color: var(--blue); }
.df-pick-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.df-pick-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.df-pick-num { font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; color: var(--gray-5); }
.df-pick-title { font-size: 15px; color: var(--ink); }
.df-pick-spec { font-size: 12.5px; font-weight: 700; color: var(--gray-7); }
/* Pinned under .li-scroll rather than inside it — the primary action stays
   reachable without scrolling to the bottom of forty candidate rows. */
.df-pick-bar { flex: 0 0 auto; padding: 12px var(--s4);
  padding-bottom: calc(var(--s3) + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); background: var(--white); }
.df-pick-bar .btn { width: 100%; }

/* Work plans look r1 — list (dfow.js screenDfow / renderList). Flat: no cards,
   hairline rows, 6px radius on a computer (.df-wide), 8px on a phone. Brand blue
   only on the table header band, the outline / filled buttons and the links. */
.df-listscr .df-lhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 16px; }
.df-listscr .df-lhead-t { min-width: 0; }
.df-listscr .df-lhead h1 { margin: 0; font-size: 28px; line-height: 1.15; letter-spacing: -.01em; font-weight: 700; }
.df-listscr .df-lhead .sub { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.df-lacts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.df-jobbox { margin: 14px 0 0; }
.df-state { margin: 18px 0; color: var(--muted); font-size: 14px; }
.df-empty { padding: 22px 0; }
.df-dim { color: var(--muted); }
.df-link { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.df-link:hover { text-decoration: underline; }
.df-link svg { width: 14px; height: 14px; }
.df-libline { margin: 14px 0 0; }
.df-rp { display: inline-block; text-align: center; padding: 2px 8px; border-radius: 999px; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.df-rp.df-risk-hi { background: var(--red-tint); color: var(--red); }
.df-rp.df-risk-mid { color: var(--gold-ink); }
.df-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--white); }
.df-search-ic { display: flex; color: var(--faint); }
.df-search-ic svg { width: 15px; height: 15px; }
.df-search input[type="text"] { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0; margin: 0; font: inherit; color: var(--ink); }
.df-search input[type="text"]::placeholder { color: var(--faint); }
.df-search:focus-within { border-color: var(--blue); }

/* computer */
.screen.df-listscr.df-wide { max-width: none; }
.df-wide .df-lhead { align-items: flex-end; }
.df-wide .df-lhead h1 { font-size: 26px; }
.df-wide .df-lacts .btn { width: auto; min-height: 36px; padding: 0 14px; font-size: 14px; font-weight: 600; border-radius: 6px; white-space: nowrap; }
.df-wide .df-lacts .btn-ghost { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.df-wide .df-lacts .btn-outline { border-width: 2px; }
.df-wide .df-lacts .df-quiet { background: transparent; border: 1px solid transparent; color: var(--muted); }
.df-wide .df-lacts .df-quiet:hover { color: var(--ink); }
.df-popwrap { position: relative; display: inline-block; }
.df-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 220px; padding: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 10px 28px -14px rgba(20, 30, 50, .4); }
.df-pop-i { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 4px; background: none; text-align: left; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.df-pop-i:hover { background: var(--canvas); }
.df-pbox { padding: 12px 14px; background: var(--canvas); border-radius: 8px; margin: 8px 0; }
.df-pop.df-pbox { width: 320px; margin: 0; padding: 14px; background: var(--white); border-radius: 6px; }
.df-wide .df-lacts .df-pbox .btn { width: 100%; }
.df-wide .df-lacts .df-pbox .sub { font-size: 13px; }
.df-bar { display: flex; align-items: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.df-bar .df-search { width: 320px; height: 36px; padding: 0 12px; border-radius: 6px; font-size: 14px; }
/* max-width + side-scroll: never wider than the screen (the Schedule's six views, List … Health, wrap in its title row instead) */
.df-seg { display: inline-flex; max-width: 100%; border: 1px solid var(--line); border-radius: 6px; overflow-x: auto; scrollbar-width: none; }
.df-seg::-webkit-scrollbar { display: none; }
.df-seg > button { flex: 0 0 auto; white-space: nowrap; }
.df-seg button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 0; border-right: 1px solid var(--line); background: var(--white); color: var(--muted); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.df-seg button:last-child { border-right: 0; }
.df-seg button i { font-style: normal; color: var(--faint); font-weight: 500; }
.df-seg button.on { background: var(--blue-tint); color: var(--blue-dark); font-weight: 600; }
.df-seg button.on i { color: var(--blue); }
/* A two-way pick (the Import screen's Monthly update / Baseline): the chosen one filled blue with a check. Beats .df-seg button above. */
.df-seg button.df-seg-on { background: var(--blue); color: #fff; font-weight: 600; }
.df-seg.df-seg-pick { display: inline-flex; gap: 0; margin-bottom: 6px; border-color: var(--blue); }
.df-seg-pick button.df-seg-on::before { content: "\2713"; font-weight: 700; }
.df-seg-says { margin: 0 0 10px; }
.df-sel { height: 36px; width: auto; min-height: 0; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); font-size: 14px; }
.df-sp { flex: 1; }
.df-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 14px; }
.df-table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--blue-dark); background: var(--blue-tint); padding: 9px 12px; border-bottom: 1px solid #CFDDF0; white-space: nowrap; }
.df-table th:first-child { border-radius: 6px 0 0 0; padding-left: 8px; }
.df-table th:last-child { border-radius: 0 6px 0 0; }
.df-table th.n, .df-table td.n { text-align: right; font-variant-numeric: tabular-nums; }
.df-wide .df-table tr.ob-row { display: table-row; padding: 0; margin: 0; gap: 0; border: 0; border-radius: 0; box-shadow: none; background: none; cursor: pointer; }
.df-table td { padding: 0 12px; height: 46px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; white-space: nowrap; color: var(--ink); }
.df-table td:first-child { padding-left: 8px; }
.df-table td.df-nm { font-weight: 600; white-space: normal; min-width: 200px; max-width: 320px; }
.df-wide .df-table tr.ob-row:hover td { background: #F7F9FC; }
.df-wide .df-table tr.ob-row:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.df-table td.df-none { text-align: center; color: var(--muted); height: 80px; }
.df-table .st-badge { font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; padding: 3px 10px; border: 0; border-radius: 999px; }
.df-table .st-badge.df-ok { background: var(--green-tint); color: var(--green-dark); }
.df-table .st-badge.df-sign { background: var(--gold-tint); color: var(--gold-ink); }
.df-table .st-badge.df-draft { background: var(--line); color: var(--muted); }
.df-table .df-rp { min-width: 48px; }
.df-foot { margin: 14px 0 0; color: var(--faint); font-size: 13px; display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.df-foot .df-link { font-size: 13px; }

/* phone */
.df-newpill { flex: none; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--blue); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.df-psearch { height: 44px; padding: 0 12px; margin: 12px 0 4px; border: 0; border-radius: 8px; background: var(--canvas); font-size: 16px; }
.df-psearch .df-search-ic svg { width: 17px; height: 17px; }
.df-grp { padding: 18px 0 6px; border-bottom: 2px solid var(--line); font-size: 13px; font-weight: 700; color: var(--muted); }
.df-grp i { font-style: normal; font-weight: 500; color: var(--faint); }
.df-grp.now { color: var(--green-dark); border-bottom-color: var(--green); }
/* Group by work stage: the switch on the list, the group heading rows, and the stage pick on a plan's header. */
.df-grpsw { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); cursor: pointer; }
.df-grpsw.df-psw { display: flex; margin: 0 0 10px; }
.df-table td.df-grp-td { padding: 14px 10px 6px; border-bottom: 2px solid var(--line); font-size: 13px; font-weight: 700; color: var(--muted); }
.df-table td.df-grp-td i { font-style: normal; font-weight: 500; color: var(--faint); }
.df-table .df-grp-btn { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.df-table .df-grp-btn i { font-style: normal; font-weight: 500; color: var(--faint); }
.df-stage { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; }
.df-ph-acts .df-stage { margin: 0; }
.df-grp.next { color: var(--blue-dark); border-bottom-color: var(--blue); }
/* CR-0016: the phone's tappable rows are card buttons (white, bordered, rounded, a gap between, a dark blue chevron, a tint when pressed). */
.obs-v2 .df-prow.ob-row { margin: 8px 0 0; padding: 12px 14px; min-height: 64px; gap: 12px; border: 1px solid var(--gray-3); border-left-width: 1px; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); background: var(--white); }
.obs-v2 .df-prow.ob-row:active { background: var(--blue-tint); }
.obs-v2 .df-prow.ob-row:focus-visible, .df-mrow:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
/* these two classes exist only in the phone layout */
.df-prow .ob-chev, .df-mrow .ob-chev { font-size: 30px; line-height: 1; font-weight: 700; color: var(--blue); }
.df-ptx { flex: 1; min-width: 0; display: block; text-align: left; }
.df-pnm { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.df-pdt { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.df-prow .df-rp { padding: 1px 8px; font-size: 13px; }
.df-prow .df-rp.df-risk-mid { background: var(--gold-tint); }
.df-draftrow .df-pnm { font-weight: 500; color: var(--muted); }
.df-sigtxt { color: var(--gold-ink); font-weight: 600; }
.df-more { margin-top: 16px; }
.df-mrow { display: flex; align-items: center; justify-content: flex-start; gap: 6px; width: 100%; min-height: 56px; margin: 8px 0 0; padding: 10px 14px; border: 1px solid var(--gray-3); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); background: var(--white); text-align: left; font: inherit; font-size: 16px; color: var(--ink); cursor: pointer; }
.df-mrow:active { background: var(--blue-tint); }
.df-mrow svg { width: 16px; height: 16px; }
.df-mrow-h, #dfArchRow, #dfDoneRow { justify-content: space-between; }
.df-mrow-h { font-weight: 600; color: var(--blue-dark); }
.df-mrow-h.on .ob-chev { transform: rotate(90deg); }
@media (max-width: 380px) { .nt-banner-cta { display: none; } }

/* Work plans look r1 — plan page (dfow.js screenDfowPlan, the rail, the Risk score section). Flat: no card
   boxes, no blue section bars, hairlines; 6px radius on a computer (.df-wide), 8px on the phone. Brand blue on the
   buttons, the table header band, the facts band's rule and the rail's active rule. Every figure is the one
   riskOfPlan / qualityOfPlan computes; risk colours come from riskClass (the Admin limits), never from a number here. */

/* shared by the phone editor and the computer panels: the existing .card / .section-bar, flattened */
.df-plan .card { background: none; border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; box-shadow: none; overflow: visible; margin-bottom: 18px; padding-bottom: 6px; }
.df-plan .card:last-child { border-bottom: 0; }
.df-plan .card-body { padding: 4px 0 8px; }
.df-plan .section-bar { background: transparent; color: var(--blue-dark); padding: 0 0 4px; border: 0; border-radius: 0; font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.df-plan .df-sig-line { border-radius: 8px; }
.df-plan .df-rp { display: inline-block; text-align: center; min-width: 48px; padding: 2px 8px; border-radius: 999px; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.df-plan .df-rp.df-risk-hi { background: var(--red-tint); color: var(--red); }
.df-plan .df-rp.df-risk-mid { color: var(--gold-ink); }
.df-plan .df-mut { color: var(--muted); font-weight: 400; }
#dfRiskSheet { z-index: 1100; }   /* above the work plan viewer (.wpv, 1020) when its "how it is made" link opens the sheet */

/* computer: breadcrumb, title and buttons */
.screen.df-wide.df-plan { max-width: none; padding: 22px 40px 120px; }
/* The way back sits next to the logo (PZ.setHeaderBack) from 1100px up; below that the header has no title slot, so this button stands in. */
.df-backn { display: none; align-items: center; gap: 2px; margin: 0 0 4px -4px; padding: 2px 4px; background: none; border: 0; color: var(--blue); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.df-backn:hover { text-decoration: underline; }
.df-backn .ic { width: 14px; height: 14px; }
@media (max-width: 1099px) { .df-backn { display: inline-flex; } }
/* The title row and the facts band are one pinned block; the line under it (.df-pbody) is the first thing to scroll under.
   --df-pin / --df-pin2 are set by pgPin (dfow.js): the block's top, and the open step's header top just below the block. */
.df-wide.df-plan .df-phead { position: sticky; top: var(--df-pin, 0px); z-index: 20; background: var(--canvas); padding: 6px 0 16px; }
/* Anything the browser scrolls into view (a focus, an anchor, a click's auto-scroll) lands below the pinned block and the open
   step's header, not under them. --df-pin3 is set by pgPin (dfow.js); the step header itself is left out so opening a step still lands it at its pin. */
.df-wide.df-plan .df-pbody :not(.df-sstep-h) { scroll-margin-top: calc(var(--df-pin3, 0px) + 8px); }
/* A pinned stack only makes sense when the window has room for it: narrower than 900px or shorter than 620px nothing is pinned
   (pgPin sets the three variables to 0 on the same query, so the scroll margin above is 8px there). */
@media (max-width: 900px), (max-height: 620px) {
  .df-wide.df-plan .df-phead, .df-plan.df-wide .df-sstep.open > .df-sstep-h { position: static; }
}
.df-ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.df-ph-main { min-width: 0; }
.df-ph .df-hdr-name { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.df-ph-sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; max-width: 78ch; }
/* the autosave line under the plan's name: Saving… / Saved 2:14 pm / Not saved, trying again */
.df-asave { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.df-asave:empty { display: none; }
.df-asave.bad { color: #7A5C00; }
.df-asave .df-asave-retry { background: none; border: 0; padding: 0; margin-left: 6px; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.df-hdr + .df-hdr-sub + .df-asave { margin: -8px 0 10px; }
.df-ph-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.df-b { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.df-b:hover { background: var(--canvas); }
.df-b:disabled { opacity: .6; cursor: default; }
.df-b-pri { background: var(--blue); border-color: var(--blue); color: #fff; }
.df-b-pri:hover { background: var(--blue-dark); }
.df-b-quiet { background: transparent; border-color: transparent; color: var(--muted); }
.df-b-quiet:hover { background: transparent; color: var(--ink); }
.df-b-danger, .df-b-danger:hover { color: var(--red); }
.df-menuwrap { position: relative; display: inline-block; }
.df-menu { display: none; position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 280px; padding: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 10px 28px -14px rgba(20, 30, 50, .4); }
.df-menu.open { display: block; }
.df-menu button { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 4px; background: none; text-align: left; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.df-menu button:hover { background: var(--canvas); }

/* computer: the facts band */
.df-fb { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 14px; padding: 14px 18px; background: var(--blue-tint); border-left: 4px solid var(--blue); border-radius: 6px; }
.df-fbc { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.df-fbc small { font-size: 12px; color: var(--muted); }
.df-fbc b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.df-fbc b.df-mut { font-weight: 400; }
.df-fb-chip { cursor: pointer; font-weight: 600; }
.df-fb-chip.df-risk-hi { color: var(--red); }
.df-fb-chip.df-risk-mid { color: var(--gold-ink); }
.df-fb-how { align-self: flex-start; padding: 0; border: 0; background: none; font: inherit; font-size: 12px; font-weight: 600; color: var(--blue); cursor: pointer; }
.df-fb-how:hover { text-decoration: underline; }

/* computer: the rail and the section column */
.df-pbody { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; margin-top: 0; padding-top: 22px; border-top: 1px solid var(--line); }
.df-rail { position: sticky; top: calc(var(--df-pin2, 0px) + 16px); align-self: start; display: flex; flex-direction: column; }
.df-plan .df-rail .df-tab { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; margin: 0; padding: 7px 10px; background: none; border: 0; border-left: 2px solid transparent; border-radius: 0; color: var(--muted); font: inherit; font-size: 14px; font-weight: 500; text-align: left; cursor: pointer; }
.df-plan .df-rail .df-tab:hover { background: var(--canvas); color: var(--ink); }
.df-plan .df-rail .df-tab.on { background: linear-gradient(90deg, var(--blue-tint), transparent 70%); border-left-color: var(--blue); color: var(--blue-dark); font-weight: 600; }
.df-plan .df-rail .df-tab.soon { color: var(--faint); }
.df-plan .df-rail .df-tab-n { min-width: 0; margin: 0; padding: 0; background: none; border-radius: 0; color: var(--faint); font-size: 13px; font-weight: 400; line-height: inherit; font-variant-numeric: tabular-nums; }
.df-plan .df-rail .df-tab.on .df-tab-n { background: none; color: var(--muted); }
.df-pmain { min-width: 0; }

/* The builder (round 1, 2026-11-24): the computer rail is words. The seven steps, then a rule, then the side pages.
   A finished step says "done", one with something wrong says "n to fix" in red, the open step's name is marked gold. */
.df-plan .df-rail-b .df-tab { justify-content: flex-start; gap: 0; border-left: 0; padding: 7px 4px; }
.df-plan .df-rail-b .df-tab:hover { background: none; color: var(--ink); }
.df-plan .df-rail-b .df-tab.on { background: none; border-left: 0; color: var(--ink); font-weight: 600; }
.df-plan .df-rail-b .df-tab.on .df-rail-l { background: var(--gold); color: var(--ink); padding: 0 3px; margin-left: -3px; }
.df-rail-b .df-rail-no { flex: 0 0 auto; min-width: 1.4em; color: inherit; font-variant-numeric: tabular-nums; }
.df-rail-b .df-rail-st { margin-left: 8px; color: var(--faint); font-size: 13px; font-weight: 400; white-space: nowrap; }
.df-rail-b .df-rail-st.bad { color: var(--red); font-weight: 600; }
.df-plan .df-rail-b .df-tab-n { margin-left: 8px; }
.df-rail-rule { width: 100%; margin: 12px 0; border: 0; border-top: 1px solid var(--line); }
/* Back and Next under the step: Back a link on the left, Next the one gold button on the right. */
.df-stepnav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.df-stepnav .df-stepnav-back { font-size: 15px; }
.df-b-gold, .df-b-gold:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.df-b-gold:hover { filter: brightness(.96); }
/* The facts band under the title: words on a hairline, not a tinted box. */
.df-plan .df-fb { background: none; border-left: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 12px 0 0; }
/* Review and approve: one line per step, a gap in red with "Fix it", then the risk sentence. */
.df-review { list-style: none; margin: 0 0 14px; padding: 0; }
.df-review li { padding: 10px 0; border-bottom: 1px solid var(--line); line-height: 1.45; }
.df-review li:first-child { border-top: 1px solid var(--line); }
.df-review-bad { color: var(--red); font-weight: 600; }
.df-review .df-linkb { margin-left: 4px; font-size: inherit; }
.df-review-risk { margin: 0 0 20px; line-height: 1.5; }
.df-review-h { margin: 18px 0 6px; font-size: 16px; font-weight: 700; }
/* Approvals (builder round 5): the Send for approval form, the approvals table, reason boxes, the change log. */
.df-appr-p { margin: 0 0 10px; line-height: 1.45; }
.df-appr-lead { margin: 0 0 12px; font-size: 15px; font-weight: 600; line-height: 1.45; }
.df-appr-note { margin: 0 0 12px; padding: 10px 12px; border-left: 3px solid var(--gold); background: var(--gold-tint); line-height: 1.45; }
.df-appr-tbl td { vertical-align: top; }
.df-appr-tbl .df-appr-act { text-align: right; white-space: nowrap; }
.df-appr-role { font-weight: 600; }
.df-appr-in { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 15px; background: #fff; color: var(--ink); box-sizing: border-box; }
.df-appr-msg { min-height: 72px; resize: vertical; }
.df-appr-pick { display: flex; align-items: center; width: 100%; max-width: 380px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-size: 15px; color: var(--ink); text-align: left; cursor: pointer; }
.df-appr-pick::after { content: "▾"; margin-left: auto; padding-left: 10px; color: var(--gray-5); }
.df-appr-pick.empty { color: var(--gray-5); }
.df-appr-pickwrap { margin-top: 6px; max-width: 480px; }
.df-appr-add { display: inline-block; margin: 10px 0 4px; font-size: 14px; }
.df-appr-dists { list-style: none; margin: 0; padding: 0; max-width: 560px; }
.df-appr-dist { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; border-bottom: 1px solid var(--line-soft); }
.df-appr-why { margin: 14px 0 0; padding-left: 18px; color: var(--red); font-weight: 600; line-height: 1.45; }
.df-appr-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.df-appr-links { display: flex; gap: 18px; flex-wrap: wrap; }
.df-appr-links .df-linkb { font-size: 14px; }
.df-appr-foot .df-b-gold:disabled { opacity: .5; cursor: not-allowed; }
.df-appr-reason { margin-top: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.df-appr-rl { display: block; margin: 0 0 6px; font-weight: 600; }
.df-appr-reason .df-appr-foot { border-top: 0; margin-top: 8px; padding-top: 0; }
.df-appr-pad { margin-top: 16px; }
.df-appr-cards { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.df-appr-card { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.df-appr-card:last-child { border-bottom: 0; }
.df-appr-cardh { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.df-appr-cardr { font-size: 14px; color: var(--gray-5); }
.df-appr-cardn { font-size: 17px; }
.df-plan:not(.df-wide) .df-appr-pick { max-width: none; min-height: 52px; font-size: 17px; }
.df-plan:not(.df-wide) .df-appr-in { min-height: 52px; font-size: 17px; }
.df-plan:not(.df-wide) .df-appr-foot .btn { width: auto; flex: 1 1 auto; min-height: 48px; }
.df-plan:not(.df-wide) .df-appr-links .df-linkb, .df-plan:not(.df-wide) .df-appr-add { min-height: 44px; font-size: 16px; }
.df-plan:not(.df-wide) .df-appr-card .df-linkb, .df-plan:not(.df-wide) .df-appr-dist .df-linkb, .df-plan:not(.df-wide) .df-appr-foot .df-linkb,
.df-plan:not(.df-wide) .df-chg-go { min-height: 44px; padding: 0 6px; font-size: 16px; }
.df-chgs { list-style: none; margin: 0 0 8px; padding: 0; }
.df-chg { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line-soft); line-height: 1.45; }
.df-chg-t { color: var(--gray-5); font-size: 13px; }
.df-chg s { color: var(--gray-5); }
.df-chg-go { padding: 0; border: 0; background: none; font: inherit; font-size: 13px; color: var(--ink); text-decoration: underline; cursor: pointer; white-space: nowrap; }
.df-chg-who { display: flex; gap: 18px; flex-wrap: wrap; margin: 4px 0 8px; }
.df-chg-who button { padding: 4px 0; border: 0; border-bottom: 2px solid transparent; background: none; font: inherit; font-size: 15px; color: var(--gray-5); cursor: pointer; }
.df-chg-who button.on { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }
.df-plan:not(.df-wide) .df-chg, .df-confirm .df-chg { grid-template-columns: 1fr; gap: 2px; }
.df-chgs-card { border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; }
.df-confirm .df-chg:last-child { border-bottom: 0; }
.df-confirm-bar { display: flex; gap: 10px; margin-top: 18px; }
.df-confirm-bar .btn { flex: 1 1 0; min-height: 52px; }
.df-confirm-bar .df-b-gold { flex-grow: 2; }
/* Comments (builder round 5, part 3): the Comments cell at the right of each row, and the side panel. */
.df-cmt-td { width: 84px; text-align: right; white-space: nowrap; }
.df-cmt { padding: 0; border: 0; background: none; font: inherit; font-size: 13px; color: var(--gray-5); cursor: pointer; }
.df-cmt.has { color: var(--ink); font-weight: 700; text-decoration: underline; font-size: 14px; }
.df-cmt:focus-visible, .df-cmt-ol:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.df-step-cmt, .df-q-cmt { flex: 0 0 auto; align-self: center; margin-left: 6px; }
.df-cmt-line { margin: 8px 0; display: flex; gap: 10px; align-items: center; }
.df-cpanel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: 380px; max-width: 100vw; overflow-y: auto; box-sizing: border-box;
  padding: 18px 22px 28px; background: #fff; border-left: 1px solid var(--line); box-shadow: -6px 0 18px rgba(0, 0, 0, .06); }
.df-plan.df-wide.df-cmt-open .df-pbody { padding-right: 390px; }
.df-cmt-top { text-align: right; }
.df-cmt-top .df-linkb { color: var(--ink); text-decoration: underline; font-size: 14px; }
.df-cmt-where { margin: 6px 0 2px; font-size: 14px; }
.df-cmt-name { margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 700; line-height: 1.35; }
.df-cmt-th { list-style: none; margin: 0 0 14px; padding: 0; }
.df-cmt-c { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.df-cmt-c.done .df-cmt-b { color: var(--gray-5); }
.df-cmt-h { margin: 0 0 4px; font-size: 14px; }
.df-cmt-b { margin: 0 0 4px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.df-cmt-r { margin: 0 0 4px; font-size: 13px; color: var(--gray-5); }
.df-cmt-w { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.df-cmt-w textarea { min-height: 80px; resize: vertical; }
.df-cmt-oh { margin: 6px 0 8px; font-size: 15px; font-weight: 700; }
.df-cmt-os { list-style: none; margin: 0; padding: 0; }
.df-cmt-os li { margin: 0 0 12px; font-size: 14px; line-height: 1.4; }
.df-cmt-ol { display: block; padding: 0; border: 0; background: none; font: inherit; color: var(--blue); text-align: left; cursor: pointer; overflow-wrap: anywhere; }
@media (max-width: 767px) {
  .df-cpanel { width: 100vw; border-left: 0; box-shadow: none; padding: 14px 16px 24px; }
  .df-cmt { min-height: 44px; font-size: 15px; }
  .df-cmt-w .btn { width: 100%; min-height: 52px; }
  .df-cmt-w textarea { font-size: 17px; }
}
/* The phone: seven numbered dots (a tick when finished, blue for the open step), the step's name, one More row,
   and Back / Next pinned to the bottom of the screen. */
.df-prog { margin: 4px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--gray-2); }
.df-dots { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.df-prog .df-dot { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; margin: 0;
  border: 2px solid var(--gray-3); border-radius: 50%; background: var(--white); color: var(--gray-7); font: inherit; font-size: 15px; font-weight: 700; }
.df-prog .df-dot.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.df-prog .df-dot.done { background: var(--green); border-color: var(--green); color: #fff; }
.df-prog .df-dot svg { width: 18px; height: 18px; }
.df-prog-l { margin: 8px 0 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.df-more { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.df-prog .df-more-i { flex: 0 0 auto; padding: 4px 0; margin: 0; border: 0; background: none; color: var(--blue); font: inherit; font-weight: 600; }
.df-prog .df-more-i.on { color: var(--ink); text-decoration: underline; }
.df-plan:not(.df-wide) .df-stepnav { position: sticky; bottom: 0; z-index: 6; margin: 16px 0 0; padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--white); border-top: 1px solid var(--gray-2); }
.df-plan:not(.df-wide) .df-stepnav .btn { flex: 1 1 0; width: auto; min-height: 48px; }
.df-plan:not(.df-wide) .df-stepnav .df-b-gold { flex-grow: 2; }
.df-sech { margin: 0 0 12px; font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--blue-dark); }
.df-sech small { margin-left: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.df-sech:empty { display: none; }
.df-plan.df-wide #df_panel[data-tab="details"], .df-plan.df-wide #df_panel[data-tab="notes"] { max-width: 820px; }
.df-dl { font-size: 14px; display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 8px 16px; max-width: 820px; margin: 0 0 24px; }
.df-dl dt { color: var(--muted); }
.df-dl dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* computer: the tables (Procedure, Risk score, Sign-off) */
.df-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.df-tbl th { padding: 9px 12px; background: var(--blue-tint); border-bottom: 1px solid #CFDDF0; text-align: left; font-size: 12px; font-weight: 700; color: var(--blue-dark); white-space: nowrap; }
.df-tbl th:first-child { padding-left: 8px; border-radius: 6px 0 0 0; }
.df-tbl th:last-child { border-radius: 0 6px 0 0; }
.df-tbl td { height: 44px; padding: 8px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.df-tbl td:first-child { padding-left: 8px; }
.df-tbl th.df-n, .df-tbl td.df-n { text-align: right; font-variant-numeric: tabular-nums; }
.df-stepc { max-width: 520px; }
.df-stepw { display: flex; gap: 0; }
.df-no { flex: none; display: inline-block; width: 24px; color: var(--faint); font-variant-numeric: tabular-nums; }
.df-nw { white-space: nowrap; }
.df-wh { font-weight: 600; }
.df-wh.df-risk-hi { color: var(--red); }
.df-wh.df-risk-mid { color: var(--gold-ink); }
.df-cc { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 13px; color: var(--muted); white-space: nowrap; }
.df-hpill { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--blue-tint); color: var(--blue-dark); font-size: 12px; font-weight: 600; }

/* computer: the Risk score section. Controls are bullets in the widest column; the ladder is a pop-over on each residual and a dialog. */
.df-risk-sec { margin-bottom: 40px; }
.df-risk-sec .sub { font-size: 13px; color: var(--muted); margin-bottom: 0; }
.df-sech .df-linkb { margin-left: 14px; }
.df-rule { max-width: 78ch; margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.df-risk-tbl { table-layout: fixed; }
.df-risk-tbl col.df-c-step { width: 18%; }
.df-risk-tbl col.df-c-name { width: 20%; }
.df-risk-tbl col.df-c-ctl { width: 36%; }
.df-risk-tbl col.df-c-res { width: 96px; }
.df-risk-tbl col.df-c-hrs { width: 112px; }
.df-risk-tbl td { height: auto; padding-top: 10px; padding-bottom: 10px; vertical-align: top; }
.df-risk-tbl .df-ctl ul { margin: 0; padding-left: 18px; }
.df-risk-tbl .df-ctl li { margin: 1px 0; }
.df-risk-tbl td.df-step { text-align: left; overflow-wrap: anywhere; }
.df-risk-tbl td.df-step .df-no { font-weight: 800; color: var(--gray-5); margin-right: 2px; }
.df-risk-tbl tr.df-hide { display: none; }
.df-risk-tbl tfoot td { height: 44px; border-top: 2px solid var(--line); border-bottom: 0; background: var(--blue-tint); font-weight: 700; }
.df-risk-tbl tfoot td:first-child { border-radius: 0 0 0 6px; }
.df-risk-tbl tfoot td:last-child { border-radius: 0 0 6px 0; }
.df-showing { margin: 10px 0 0; color: var(--faint); font-size: 13px; }
.df-linkb { padding: 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--blue); cursor: pointer; }
.df-linkb:hover { text-decoration: underline; }
.df-sum { margin: 10px 0 0; font-size: 14px; font-weight: 700; }
.df-rphov { cursor: help; }
.df-rphov:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.df-lad-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 8px; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.df-lad-row b { font-variant-numeric: tabular-nums; }
.df-lad-row.on { background: var(--blue-tint); color: var(--blue-dark); font-weight: 600; border-radius: 4px; }
.df-ladpop { position: fixed; z-index: 1300; width: 440px; max-width: calc(100vw - 16px); padding: 10px 12px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 10px 28px -14px rgba(20, 30, 50, .4); }
.df-ladpop-h { margin-bottom: 4px; font-size: 13px; font-weight: 700; color: var(--blue-dark); }
.df-ladpop .df-linkb { margin-top: 8px; }
/* Work plans: anything you click looks like a button (owner, 2026-11-24). */
.df-plan .df-linkb, .df-plan .df-fb-how, .df-plan .df-prog .df-more-i { display: inline-flex; align-items: center; padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; }
.df-plan .df-linkb:hover, .df-plan .df-fb-how:hover, .df-plan .df-prog .df-more-i:hover { background: var(--canvas); text-decoration: none; }
/* The back link beside the logo is in the app header, so this one is app-wide. */
.hdr-back { padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.hdr-back:hover { background: var(--canvas); }
.df-plan .df-prog .df-more-i.on { background: var(--gray-1); text-decoration: none; }
.df-plan .df-linkb:focus-visible, .df-plan .df-fb-how:focus-visible, .hdr-back:focus-visible, .df-plan .df-prog .df-more-i:focus-visible,
.df-plan .df-rail-b .df-tab:focus-visible, .df-plan .df-sstep-h:focus-visible, .df-plan .df-act-pick:focus-visible, .df-plan .df-step-acts .df-btn:focus-visible, .df-plan .df-b-quiet:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.df-review .df-linkb { margin-left: 8px; font-size: 13px; }
.df-plan.df-wide .df-stepnav .df-stepnav-back { height: 36px; padding: 0 14px; font-size: 14px; }
.df-plan .df-b.df-b-quiet { border-color: var(--line); background: var(--white); }
.df-plan .df-b.df-b-quiet:hover { background: var(--canvas); }
.df-plan .df-b.df-b-danger { border-color: var(--red); }
.df-plan .df-rail-b .df-tab { padding: 8px 10px; margin: 0 0 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); text-align: left; }
.df-plan .df-rail-b .df-tab:hover { background: var(--gray-1); color: var(--ink); }
.df-plan .df-rail-b .df-tab.on { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 700; }
.df-plan .df-rail-b .df-tab.on .df-rail-l { background: none; padding: 0; margin-left: 0; }
.df-plan .df-rail-b .df-tab { flex-wrap: wrap; row-gap: 0; white-space: normal; }
.df-plan .df-rail-b .df-tab.on .df-rail-st { color: var(--ink); }
.df-plan.df-wide .df-step .df-step-acts .df-btn { width: 34px; height: 34px; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.df-plan.df-wide .df-step .df-step-acts .df-btn:hover:not(:disabled) { background: var(--canvas); }
.df-plan .df-sstep-h { border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.df-plan .df-sstep-h:hover:not(:disabled) { background: var(--gray-1); }
.df-plan button.df-act-pick { border: 1px solid var(--line); border-radius: 6px; background: var(--white); margin-bottom: 6px; }
.df-plan button.df-act-pick:hover { background: var(--gray-1); }
/* Work plans on a computer: less scrolling (owner, 2026-11-24). The pinned top block is two short lines:
   name + status + buttons, then the facts on one line. A step's heading stands out; what is inside a step is denser. */
.df-plan.df-wide .df-phead { padding: 4px 0 8px; }
/* No jump when the page starts to scroll (owner, 2026-11-24): the plan head starts where it pins, so the gap above
   the title is inside the pinned block and not above it. */
.screen.df-wide.df-plan { padding-top: 0; }
.df-wide.df-plan .df-phead { padding-top: 12px; }
/* The step list starts where it pins too: its pinned top equals the 22px gap it has before any scrolling. */
/* A Work sequence row on a computer (owner, 2026-11-24): one grid so every row lines up. Number | name (all the room left) |
   Cost codes 190px | Schedule 170px | menu 32px. The two buttons open the step's pop-up; the dots open Add detail / Move / Remove. */
.df-plan.df-wide .df-step2 { display: grid; grid-template-columns: 28px minmax(0, 1fr) 190px 170px 32px; gap: 0 10px; align-items: center; margin-bottom: 8px; }
.df-plan.df-wide .df-step2 .df-step-n { text-align: right; }
.df-plan.df-wide .df-step2 .df-step-main { display: flex; align-items: center; gap: 6px; min-width: 0; }
.df-plan.df-wide .df-step2 .df-step-main .df-step-in { flex: 1 1 0; }
.df-plan.df-wide .df-step2 .df-step-cc, .df-plan.df-wide .df-step2 .df-step-sc { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1px; box-sizing: border-box; width: 100%; min-height: 44px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.df-plan.df-wide .df-step2 .df-step-cc:hover, .df-plan.df-wide .df-step2 .df-step-sc:hover { background: var(--canvas); border-color: var(--muted); }
.df-plan.df-wide .df-step2 .df-step-cap { font-size: 11px; line-height: 13px; color: var(--muted); }
.df-plan.df-wide .df-step2 .df-step-val { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 18px; }
.df-plan.df-wide .df-step2 .df-step-none { color: var(--muted); }
.df-plan.df-wide .df-step2 .df-step-mw { justify-self: end; }
.df-plan.df-wide .df-step2 .df-step-menu-b { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); cursor: pointer; }
.df-plan.df-wide .df-step2 .df-step-menu-b:hover, .df-plan.df-wide .df-step2 .df-step-menu-b[aria-expanded="true"] { background: var(--canvas); border-color: var(--muted); }
.df-plan.df-wide .df-step2 .df-step-cc:focus-visible, .df-plan.df-wide .df-step2 .df-step-sc:focus-visible, .df-plan.df-wide .df-step2 .df-step-menu-b:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.df-plan.df-wide .df-step2 .df-step-menu { min-width: 170px; z-index: 40; }
.df-plan.df-wide .df-step2 .df-step-menu button:disabled { color: var(--muted); cursor: default; background: none; }
.df-plan.df-wide .df-step2 .df-step-menu .df-step-mi-rm { color: var(--red); }
.df-plan.df-wide .df-step2 > .df-step-detail-peek, .df-plan.df-wide .df-step2 > .df-step-detail, .df-plan.df-wide .df-step2 > .df-step-detail-ro, .df-plan.df-wide .df-step2 > .std-stepline, .df-plan.df-wide .df-step2 > .df-step-field { grid-column: 2 / -1; flex: none; margin-left: 0; }
.df-plan.df-wide .df-step2 > .df-step-field { margin-top: 2px; }
/* the pop-up: the two lists side by side, buttons with a border like the Split pop-up's */
.df-stepdlg .li-panel { max-width: 760px; }
.df-stepdlg .df-sl { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 0; }
@media (max-width: 640px) { .df-stepdlg .df-sl { grid-template-columns: 1fr; gap: 14px; } }
#dfStepDlg .df-linkb { display: inline-flex; align-items: center; min-height: 0; padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; }
#dfStepDlg .df-linkb:hover { background: var(--canvas); }
#dfStepDlg .df-linkb:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.df-plan.df-wide .df-rail { top: calc(var(--df-pin2, 0px) + 22px); }
/* Hazard and quality-essential pictures have a white background in the file; on a tinted panel that showed as a white
   square. Multiply lets whatever is behind the picture show through the white (owner, 2026-11-24: no white square). */
.df-plan .df-big img, .df-plan .df-big svg, .df-plan .df-spop-it img, .df-plan img[src*="assets/icons/"] { mix-blend-mode: multiply; }
.df-plan.df-wide .df-ph { gap: 6px 20px; align-items: center; }
.df-plan.df-wide .df-ph-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 14px; }
.df-plan.df-wide .df-hdr-name { font-size: 20px; line-height: 26px; }
.df-plan.df-wide .df-ph-sub { margin: 0; font-size: 13px; }
.df-plan.df-wide .df-ph-acts { gap: 6px; align-items: center; }
.df-plan.df-wide .df-ph-acts .df-b { height: 30px; min-height: 0; padding: 0 10px; font-size: 13px; }
.df-plan.df-wide .df-ph-acts .df-stage, .df-plan.df-wide .df-ph-acts .df-stage * { font-size: 13px; }
.df-plan.df-wide .df-ph-acts .df-stage select { height: 30px; min-height: 0; padding-top: 0; padding-bottom: 0; }
/* A refused save is drawn over the status sentence, out of the layout, so the header never changes height (asRender). */
.df-plan.df-wide .df-ph-main { position: relative; }
.df-asave-over { display: none; }
.df-plan.df-wide .df-ph-main.df-asave-bad .df-ph-sub, .df-plan.df-wide .df-ph-main.df-asave-bad .df-asave { visibility: hidden; }
.df-plan.df-wide .df-ph-main.df-asave-bad .df-asave-over { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; position: absolute; right: 0; margin: 0; font-size: 12.5px; line-height: 14px; max-height: 28px; overflow: hidden; color: #7A5C00; }
.df-asave-over .df-asave-retry { background: none; border: 0; padding: 0; margin-left: 6px; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.df-plan.df-wide .df-fb { margin-top: 6px; padding-top: 6px; gap: 2px 22px; flex-wrap: wrap; align-items: baseline; }
.df-plan.df-wide .df-fbc { flex-direction: row; align-items: baseline; gap: 6px; }
.df-plan.df-wide .df-fbc b { font-size: 13px; }
.df-plan.df-wide .df-fb .df-fb-how { padding: 0 8px; font-size: 12px; margin: 0; }
.df-plan.df-wide .df-sstep-h { padding: 8px 14px; background: var(--gray-1); }
.df-plan.df-wide .df-sstep-name { font-size: 16px; font-weight: 700; color: var(--ink); }
.df-plan.df-wide .df-sstep.open > .df-sstep-h { background: var(--blue); border-color: var(--blue); }
.df-plan.df-wide .df-sstep.open > .df-sstep-h .df-sstep-name, .df-plan.df-wide .df-sstep.open > .df-sstep-h .df-step-n, .df-plan.df-wide .df-sstep.open > .df-sstep-h .df-sstep-c { color: #fff; }
.df-plan.df-wide .df-sstep-body { padding: 8px 12px; }
.df-plan.df-wide .df-sstep-body .df-haz { padding: 8px 10px; margin-bottom: 6px; }
.df-plan.df-wide .df-sstep-body input:not([type=checkbox]):not([type=radio]), .df-plan.df-wide .df-sstep-body select { height: 32px; min-height: 0; padding: 4px 10px; font-size: 14px; }
.df-plan.df-wide .df-sstep-body textarea { padding: 6px 10px; font-size: 14px; }
.df-plan.df-wide .df-sstep-body .df-res-row { margin-bottom: 4px; }
.df-plan.df-wide .df-sstep-body .btn { min-height: 30px; padding: 4px 10px; font-size: 13px; }
.df-plan.df-wide .df-sstep-body label, .df-plan.df-wide .df-sstep-body p { font-size: 13px; }
/* Work sequence on a phone: the step's name gets the whole width (it wraps and grows, textarea.df-wrap); the cost codes
   line, the arrows and the plus share the line under it (owner, 2026-11-24: "you need to be able to read the whole step"). */
.df-plan:not(.df-wide) #df_steps .df-step .df-step-in { flex: 1 1 calc(100% - 40px); }
.df-plan:not(.df-wide) #df_steps .df-step .df-step-sum { order: 1; flex: 1 1 0; min-width: 0; margin-left: 30px; text-align: left; }
.df-plan:not(.df-wide) #df_steps .df-step .df-step-acts { order: 2; margin-left: auto; }
.df-plan:not(.df-wide) #df_steps .df-step .df-step-plus { order: 2; }
/* On a computer a wrap-and-grow box inside a step starts at the same height as the boxes beside it. */
.df-plan.df-wide .df-sstep-body textarea.df-wrap { min-height: 32px; }
/* Safety and Quality on a computer: one line per hazard / check; a line opens in place (owner, 2026-11-24; mock-up
   docs/work-plan-builder-options/safety-redo.html). Sized for a 1366 x 768 laptop: a closed line is about 34px. */
.df-hz, .df-qi { border-top: 1px solid var(--line); }
.df-hz:first-child, .df-qi:first-child { border-top: 0; }
.df-hz-l, .df-ql { display: flex; align-items: center; gap: 8px; min-height: 34px; }
.df-hz-t, .df-ql-t { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--ink); text-align: left; cursor: pointer; }
.df-hz-t:hover .df-chev, .df-ql-t:hover .df-chev { background: var(--canvas); }
.df-hz-t:focus-visible, .df-ql-t:focus-visible, .df-xb:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.df-chev { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); font-size: 12px; }
.df-hz-n, .df-ql-x { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.df-ql-x.df-mut { font-weight: 400; }
.df-hz-r { flex: 0 0 auto; margin-left: auto; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.df-hz-r.df-bad { color: var(--red); font-weight: 600; }
.df-hold-w { flex: 0 0 auto; color: var(--red); font-weight: 700; font-size: 12.5px; }
.df-ql-e { flex: 0 0 170px; display: inline-flex; align-items: center; font-size: 11.5px; color: var(--muted); line-height: 1.1; }
.df-ql-e .bi-tr { display: none; }
.df-xb { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); cursor: pointer; }
.df-xb svg { width: 14px; height: 14px; }
.df-xb:hover { background: var(--canvas); }
.df-hz-add { padding: 6px 0 2px; }
.df-plan .df-linkbtn:disabled { opacity: .4; cursor: default; }
/* An open hazard: Direct controls on the left (green edge), Alternative controls on the right (gold edge), the app's own greens and golds. */
.df-hz-o { display: flex; align-items: center; margin: 2px 0 8px 36px; }
.df-big { flex: 0 0 auto; width: 104px; height: 104px; margin-right: 12px; display: flex; align-items: center; justify-content: center; }
.df-big img, .df-big svg { width: 100%; height: 100%; object-fit: contain; }
.df-hz-d { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.df-cp { min-width: 0; border: 1px solid var(--line); border-left-width: 4px; border-radius: 6px; background: var(--white); }
.df-cp-d { border-left-color: var(--green); }
.df-cp-a { border-left-color: var(--gold); }
.df-cp-h { padding: 4px 10px; font-size: 13px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); }
.df-cp-d .df-cp-h { background: var(--green-tint); }
.df-cp-a .df-cp-h { background: var(--gold-tint); }
.df-cp-b { padding: 6px 10px 8px; }
.df-cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px 10px; }
.df-cb { display: flex; align-items: center; gap: 6px; min-height: 24px; font-size: 13px; }
.df-cb input { flex: 0 0 auto; margin: 0; }
.df-cg { display: flex; align-items: flex-start; gap: 8px; }
.df-cg + .df-cg { margin-top: 2px; }
.df-cg-l { flex: 0 0 130px; padding-top: 4px; font-size: 11.5px; color: var(--muted); }
.df-cg-c { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 2px 14px; }
.df-cp-none { margin: 0; }
.df-plan .df-cp-addb { margin-top: 6px; padding: 2px 10px; font-size: 12.5px; }
.df-cp-b .df-add-ctrl { margin-top: 6px; }
.df-add-ctrl[hidden] { display: none; }
/* An open quality check on a computer is one card with a blue left edge (owner, 2026-11-24; mock-up
   docs/work-plan-builder-options/safety-redo.html, option 2): the check's words on top, the essential and hold point under
   them, a Controls table, then the note beside the files. Nothing wraps oddly at 1366px: selects have a fixed width and
   never break, text boxes take what is left (min-width 0) and grow taller, never cut. */
.df-qcard { margin: 4px 0 8px; padding: 10px 12px 12px; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 6px; background: var(--white); }
.df-qc-top { display: flex; align-items: flex-start; gap: 12px; }
.df-qc-ic { flex: 0 0 64px; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; }
.df-qc-ic .ess-ico { width: 100% !important; height: 100% !important; border: 0; }
.df-qc-ic svg, .df-qc-ic img { width: 100%; height: 100%; object-fit: contain; }
.df-qcard .df-ess-plain .df-ess-dd:disabled { padding-left: 0; }
.df-qc-main { flex: 1 1 auto; min-width: 0; }
.df-qc-r1 { display: flex; align-items: flex-start; gap: 10px; }
.df-qc-arrow { cursor: pointer; margin-top: 4px; }
.df-qc-arrow:hover { background: var(--canvas); }
.df-qc-arrow:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.df-plan.df-wide .df-sstep-body .df-qc-r1 textarea.df-qc-words { flex: 1 1 auto; min-width: 0; width: 100%; font-size: 18px; font-weight: 600; line-height: 1.3; padding: 8px 12px; }
.df-qc-hold { flex: 0 0 auto; margin: 0; min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; white-space: nowrap; }
.df-qc-mw { flex: 0 0 auto; }
.df-qc-mw .df-step-menu-b { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); cursor: pointer; }
.df-qc-mw .df-step-menu-b:hover, .df-qc-mw .df-step-menu-b[aria-expanded="true"] { background: var(--canvas); border-color: var(--muted); }
.df-qc-mw .df-step-menu-b:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.df-qc-main > .df-ess { margin: 6px 0 0; }
.df-qcard .df-ess-plain .df-ess-dd { padding-left: 10px; font-size: 14px; font-weight: 400; white-space: nowrap; }
.df-qcard .df-ess-plain .df-ess-dd .df-ess-n { white-space: nowrap; }
.df-qc-menu { min-width: 170px; z-index: 40; }
.df-qc-menu button:disabled { color: var(--muted); cursor: default; background: none; }
.df-qc-menu .df-qc-mi-rm { color: var(--red); }
.df-qc-sec { margin-top: 12px; }
.df-qc-bot .df-ctrl-lbl { margin: 0 0 6px; }
.df-qc-th, .df-qc-row { display: grid; grid-template-columns: minmax(0, 1fr) 180px 36px; gap: 10px; align-items: start; }
.df-qc-th { padding-bottom: 4px; border-bottom: 1px solid var(--line); margin-bottom: 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.df-qc-row { margin-bottom: 8px; }
.df-qc-row textarea.df-res-name { min-width: 0; width: 100%; padding: 6px 10px; }
.df-plan.df-wide .df-sstep-body .df-qc-row select.df-qkind { width: 180px; max-width: none; min-height: 32px; padding: 6px 8px; white-space: nowrap; text-overflow: clip; }
.df-qc-row .df-xb { width: 36px; height: 32px; }
.df-qbtn { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--gray-5); border-radius: 6px; background: var(--white); color: var(--ink); font: inherit; font-weight: 600; white-space: nowrap; cursor: pointer; }
.df-qbtn:hover { background: var(--canvas); }
.df-qbtn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.df-qc-bot { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; margin-top: 12px; }
.df-qc-bot .df-qmore-ta { width: 100%; min-height: 64px; box-sizing: border-box; }
.df-qc-files .df-qmore-row { min-height: 36px; }
.df-qc-files .df-xb { width: 32px; height: 32px; }
.df-qc-files .df-qbtn { margin-top: 6px; }
/* The card's headings are plain small capitals, without the blue square the phone's Direct / Alternative headings carry. */
.df-qcard .df-ctrl-lbl::before { display: none; }
/* Suggest for me / Suggest again: on the Safety and Quality heading line on a computer, on a line of its own on a phone (owner, 2026-11-24). */
.df-guess { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.df-sech .df-guess { margin-left: 12px; vertical-align: middle; font-weight: 500; }
.df-guess .df-guessed { font-size: 13px; font-weight: 400; color: var(--muted); }
.df-guessln { margin: 0 0 10px; }
.df-plan:not(.df-wide) #df_steps .df-step .df-step-detail-peek, .df-plan:not(.df-wide) #df_steps .df-step .df-step-detail, .df-plan:not(.df-wide) #df_steps .df-step .df-step-detail-ro { order: 3; }
/* Work plans list on a computer: Menu, search, tabs ... and the action buttons share one toolbar (owner, 2026-11-24). */
.df-listscr.df-wide .df-bar { margin-top: 0; margin-bottom: 8px; row-gap: 8px; flex-wrap: wrap; }
.df-listscr.df-wide .df-bar .df-sp { display: none; }
.df-listscr.df-wide #dfActs { margin-left: auto; }
.df-listscr.df-wide #dfBack { width: auto; }
/* Work plans builder rounds 2 to 4: the new controls look like buttons too (owner rule, 2026-11-24; checker review of the build). */
.df-plan .df-linkbtn, .df-plan .df-link-btn, .df-plan .df-qmore-words, #dfSplitDlg .df-linkb, #dfSplitDlg .df-split-mode button { display: inline-flex; align-items: center; min-height: 0; padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; }
.df-plan .df-linkbtn:hover, .df-plan .df-link-btn:hover, .df-plan .df-qmore-words:hover, #dfSplitDlg .df-linkb:hover, #dfSplitDlg .df-split-mode button:hover:not(:disabled) { background: var(--canvas); text-decoration: none; }
#dfSplitDlg .df-split-mode button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); text-decoration: none; }
.df-plan .df-link-btn { min-height: 36px; }   /* file Remove / Add a file keep the phone touch height */
.df-plan .df-qmore-plus { border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); }
.df-plan .df-qmore-plus:hover { background: var(--canvas); }
.df-plan .df-linkbtn:focus-visible, .df-plan .df-link-btn:focus-visible, .df-plan .df-qmore-words:focus-visible, .df-plan .df-qmore-plus:focus-visible, #dfSplitDlg .df-linkb:focus-visible, #dfSplitDlg .df-split-mode button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.df-add-ctrl textarea { flex: 1 1 auto; min-width: 0; padding: 8px 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); font: inherit; font-size: 15px; resize: none; }
.df-add-ctrl textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
/* Work plans: the step's "Cost codes: ... Schedule: ..." line and the step panel's Save / Done look like buttons too (owner rule, 2026-11-24). On a computer the line sits at the end of the step's own row, which also saves a line per step. */
.df-plan button.df-step-sum { padding: 3px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.df-plan.df-wide button.df-step-sum { flex: 0 1 auto; max-width: 45%; margin: 0 0 4px 12px; align-self: center; }
.df-plan button.df-step-sum:hover { background: var(--canvas); }
.df-plan button.df-step-sum:hover .df-sum-k { text-decoration: none; }
.df-plan .df-step-detail-acts { gap: 8px; }
.df-plan .df-step-detail-acts button { padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); }
.df-plan .df-step-detail-acts button:hover { background: var(--canvas); }
.df-plan .df-step-detail-acts .df-step-detail-save { border-color: var(--blue); background: var(--blue); color: var(--white); }
.df-plan .df-step-detail-acts .df-step-detail-save:hover { border-color: var(--blue-dark); background: var(--blue-dark); }
.df-plan button.df-step-sum:focus-visible, .df-plan .df-step-detail-acts button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
dialog.df-ladlg { position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--white); color: var(--ink); overflow-y: auto; }
dialog.df-ladlg::backdrop { background: rgba(26, 26, 26, .5); }
.df-ladlg-bar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 40px; background: var(--white); border-bottom: 4px solid var(--blue); }
.df-ladlg-bar h2 { margin: 0; font-size: 20px; font-weight: 700; }
.df-ladlg-in { max-width: 900px; margin: 0 auto; padding: 24px 40px 80px; }
.df-ladlg-in section { margin-bottom: 36px; }
.df-ladlg-in h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; color: var(--blue-dark); }
.df-ladtbl td { height: 44px; font-size: 15px; }
.df-ladtbl td.df-n { width: 90px; }

/* computer: Sign-off */
.df-apprline { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.df-sig-tbl { max-width: 780px; }
.df-sig-tbl .df-sig-role { flex: none; font-weight: 600; }
.df-sig-tbl .df-sig-img { display: inline-block; vertical-align: middle; width: auto; max-width: 140px; max-height: 36px; margin-left: 14px; border: 0; }
.df-signed { color: var(--green-dark); font-weight: 600; white-space: nowrap; }
.df-notyet { color: var(--muted); white-space: nowrap; }
.df-sig-act { text-align: right; }
.df-sig-openrow td { height: auto; padding: 14px 12px; background: var(--canvas); }
@media (max-width: 1000px) {
  .screen.df-wide.df-plan { padding-left: 20px; padding-right: 20px; }
  .df-pbody { grid-template-columns: 160px minmax(0, 1fr); gap: 24px; }
}

/* ---- "N observations are assigned to you" (observation.js) -------------
   The home screen safety net for the SMS journey: when a phone mangles a
   text link down to just the domain, the tap still lands on home — so home
   offers the newest open assignment itself. Injected by assignedNudge();
   a <button>, because it is a real tap target that opens the record. */
.obs-nudge { display: block; width: 100%; text-align: left;
  background: var(--gold-tint); border: 1px solid #EAD79A;
  border-left: 5px solid var(--gold); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: var(--s4);
  font-family: var(--font); cursor: pointer; min-height: var(--tap); }
.obs-nudge b { display: block; font-size: 15px; color: var(--ink); }
.obs-nudge span { display: block; font-size: 13px; color: var(--gray-5); margin-top: 2px; }
.obs-nudge:active { filter: brightness(0.97); }

/* ---- Home: "My tasks" + the computer layout (app.js homeTask) -----------
   Phone: the panel sits above the tools and is simply not there when nothing
   is waiting — the same screen the nudges always gave. Computer (1000px+):
   the page widens, My tasks becomes a column on the left, and the tools turn
   into a grid of compact tiles so the whole app fits without scrolling.
   Nothing waiting, or the heading tapped shut → one slim bar and the tools
   take the full width. */
.home-tasks-head { display: flex; align-items: center; gap: 10px; width: 100%;
  background: none; border: 0; padding: 0; margin: 14px 2px 12px; cursor: pointer;
  font-family: var(--font); font-size: 16px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--faint); text-align: left; }
.home-tasks-none { display: none; font-size: 13px; font-weight: 600; letter-spacing: 0;
  text-transform: none; color: var(--gray-5); }
.home-tasks-chev { margin-left: auto; display: flex; transition: transform .15s; }
.tasks-collapsed .home-tasks-chev { transform: rotate(-90deg); }
.tasks-collapsed .home-tasks-list { display: none; }
.tasks-empty .home-tasks { display: none; }
/* Project tasks: the second list in the panel — work on this person's jobs that they can do but that is not theirs alone. */
.home-tasks-proj { margin-top: 20px; }
.proj-empty .home-tasks-proj, .tasks-collapsed .home-tasks-proj { display: none; }
.home-tasks-sub { margin: 0 2px 2px; font-size: 16px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--faint); }
.home-tasks-sub-note { margin: 0 2px 12px; font-size: 13px; font-weight: 600; color: var(--gray-5); }
.mine-empty .home-tasks-none { display: inline; }

@media (min-width: 1000px) {
  .screen.home-screen { max-width: 1240px; padding-bottom: 40px; }
  .home-screen .home-group { margin: 6px 2px 10px; }
  .home-screen .home-group-wrap + .home-group-wrap { margin-top: 20px; }
  .home-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr);
    gap: 32px; align-items: start; }
  .home-layout.tasks-empty, .home-layout.tasks-collapsed { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .tasks-empty .home-tasks { display: block; }
  .tasks-empty .home-tasks-none { display: inline; }
  .tasks-empty .home-tasks-chev { display: none; }
  .tasks-empty .home-tasks-head { cursor: default; margin-bottom: 0; }
  .tasks-collapsed .home-tasks-head { margin-bottom: 0; }
  .home-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 14px; margin-top: 0; }
  .home-tile { flex-direction: column; justify-content: flex-start; text-align: center;
    gap: 8px; padding: 14px 10px; min-height: 0; height: 100%; }
  .home-ic { width: 52px; height: 52px; font-size: 28px; }
  .home-title { font-size: 17px; line-height: 1.2; }
  .home-desc { font-size: 12.5px; line-height: 1.3; }
}

/* ============================================================
   Concrete Pour Log (concrete.js). Rides on the obs-v2 / qw-v2
   building blocks; everything here is the pour-specific furniture:
   the PO / mix-line pick buttons, the per-truck ticket cards, and
   the bottom-sheet the ticket form opens in.
   ============================================================ */
.cp-kv { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.cp-kv > span:first-child { color: var(--gray-5); font-size: 13px; min-width: 64px; }
.cp-kv > b { font-size: 15px; }

.cp-lines { display: flex; flex-direction: column; gap: 8px; }
.cp-line {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: 100%; text-align: left; padding: 12px 14px;
  border: 1.5px solid var(--gray-2); border-radius: var(--radius);
  background: var(--white); cursor: pointer; font: inherit;
}
.cp-line b { font-size: 16px; }
.cp-line span { font-size: 13px; color: var(--gray-5); }
.cp-line.on { border-color: var(--blue); background: var(--blue-tint); box-shadow: inset 0 0 0 1px var(--blue); }
/* Mix lines carry a delivered qty on the right: text column left, numbers right. */
.cp-line.qty { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
.cp-line .cp-ltext { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.cp-line .cp-lqty { display: flex; flex-direction: column; align-items: flex-end; flex: none; font-size: 12px; color: var(--gray-5); white-space: nowrap; }
.cp-line .cp-lqty b { font-size: 15px; color: var(--ink); }
.cp-line .cp-lqty.dim b { color: var(--gray-3); font-weight: 500; }
.cp-line.has:not(.on) { border-color: var(--gray-3); }
.cp-line .cp-lqty i { font-style: normal; font-weight: 700; color: var(--red); }
.cp-line .cp-lqty.over b { color: var(--red); }
.cp-line.over { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.cp-line.over.on { background: var(--red-tint); }
.status-line.status-over { background: var(--red-tint); color: var(--red); margin-top: 6px; }
.cp-byline > span:first-child { min-width: 0; padding-left: 10px; }
.cp-byline.over > b { color: var(--red); }
.cp-byline.over i { font-style: normal; font-size: 13px; }

.cp-btnrow { display: flex; gap: 10px; margin-top: 10px; }
.cp-btnrow .btn { flex: 1; }

.cp-addtruck { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.cp-addtruck:hover { background: #E5AC00; border-color: #E5AC00; }

.cp-ticket { cursor: pointer; margin-bottom: 8px; }
.cp-trow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.cp-tphoto {
  width: 52px; height: 52px; flex: 0 0 52px; border-radius: var(--radius-sm);
  object-fit: cover; background: var(--gray-1); border: 1px solid var(--gray-2);
}
.cp-nophoto { display: flex; align-items: center; justify-content: center; color: var(--gray-3); }
.cp-tmain { flex: 1; min-width: 0; }
.cp-tno { font-weight: 600; font-size: 15px; }
.cp-tsub { font-size: 13px; color: var(--gray-5); margin-top: 1px; }
.cp-badge { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 99px; margin-left: 6px; }
.cp-badge.pass { background: var(--green-tint); color: var(--green-dark); }
.cp-badge.fail { background: var(--red-tint); color: var(--red); }

.cp-preview { width: 100%; max-height: 220px; object-fit: contain; background: var(--gray-1); border-radius: var(--radius-sm); margin: 10px 0 4px; }
.cp-note { font-size: 14px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--gray-1); margin: 8px 0; display: flex; gap: 8px; align-items: center; }
.cp-note.ok { background: var(--green-tint); color: var(--green-dark); }
.cp-note.warn { background: var(--gold-tint); color: #7A5C00; }

.cp-insp { margin-bottom: 12px; }
/* The tapped state. Same colors the Quality Walk ratings use, but those
   rules are scoped to .qw-rbtn — without these three the tap records
   silently and the button never lights up, which reads as broken. */
.cp-insp .seg-btn.on-eff { background: var(--green); border-color: var(--green); color: var(--white); }
.cp-insp .seg-btn.on-att { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.cp-insp .seg-btn.on-bar { background: var(--red); border-color: var(--red); color: var(--white); }

.cp-modal {
  position: fixed; inset: 0; z-index: 1000; background: rgba(26, 26, 26, 0.5);
  display: flex; align-items: flex-end; justify-content: center;
}
.cp-sheet {
  background: var(--white); width: 100%; max-width: 560px; max-height: 92vh;
  overflow-y: auto; border-radius: var(--radius) var(--radius) 0 0; padding: 18px 16px 24px;
}
@media (min-width: 700px) {
  .cp-modal { align-items: center; }
  .cp-sheet { border-radius: var(--radius); }
}
.cp-sheet h2 { margin: 0 0 4px; font-size: 20px; }
.cp-noscroll { overflow: hidden; }

.cp-photoview {
  position: fixed; inset: 0; z-index: 1100; background: rgba(0, 0, 0, 0.9);
  display: flex; align-items: center; justify-content: center; cursor: zoom-out;
}
.cp-photoview img { max-width: 96vw; max-height: 96vh; object-fit: contain; }

/* ============================================================
   The job you're on (job.js). One chip in the header, one sheet to
   switch it; the sheet also carries the per-job tool switches.
   ============================================================ */
.job-chip {
  display: flex; align-items: center; gap: 6px; min-height: 36px; max-width: 46vw;
  padding: 4px 8px 4px 10px;
  /* Dead centre of the header, whatever the logo and menu widths are. The
     header is position: sticky, which makes it the containing block. */
  position: absolute; left: 50%; transform: translateX(-50%);
  border: 1px solid var(--blue); border-radius: 999px; background: var(--blue);
  font: inherit; font-size: 13px; color: var(--white); cursor: pointer;
}
.job-chip svg { width: 16px; height: 16px; flex: 0 0 16px; color: rgba(255, 255, 255, 0.85); }
.job-chip-num { font-weight: 800; white-space: nowrap; }
.job-chip-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--blue-tint); }
.job-chip-none { border-color: var(--gold); background: var(--gold-tint); color: var(--ink); }
.job-chip-none svg { color: var(--gray-7); }
.job-chip-none .job-chip-title { color: var(--ink); font-weight: 700; }
/* On a phone the header is too narrow to centre anything: the logo is a
   wide wordmark (~165px), and a chip pinned to the dead centre of a 390px
   screen lands right on top of it (reported 2026-08-22). So on phones the
   chip stops floating and takes its place in the row — pushed over to sit
   beside the menu button, shrinking (title first) before the logo does. */
@media (max-width: 600px) {
  .job-chip { position: static; transform: none; margin-left: auto; max-width: none; flex: 0 1 auto; min-width: 0; }
  .app-header .logo-btn { flex: 0 0 auto; }
}
@media (max-width: 420px) { .job-chip-title { display: none; } }
.job-chip.hidden { display: none; }

.job-sheet-wrap {
  position: fixed; inset: 0; z-index: 1000; background: rgba(26, 26, 26, 0.5);
  display: flex; align-items: flex-end; justify-content: center;
}
.job-sheet {
  background: var(--white); width: 100%; max-width: 560px; max-height: 92vh;
  overflow-y: auto; border-radius: var(--radius) var(--radius) 0 0; padding: 16px 16px 24px;
}
@media (min-width: 700px) { .job-sheet-wrap { align-items: center; } .job-sheet { border-radius: var(--radius); } }
.job-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.job-sheet-head h2 { margin: 0; font-size: 20px; }
.job-sheet-search {
  width: 100%; min-height: 44px; padding: 8px 12px; font: inherit; font-size: 16px;
  border: 1.5px solid var(--gray-3); border-radius: var(--radius-sm); margin-bottom: 8px;
}
.job-sheet-lbl { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.3px; color: var(--gray-5); margin: 10px 0 4px; }
.job-sheet-lbl .hint { font-weight: 600; text-transform: none; letter-spacing: 0; }
.job-row {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  min-height: 48px; padding: 8px 10px; margin-bottom: 4px; font: inherit;
  border: 1.5px solid var(--gray-2); border-radius: var(--radius-sm); background: var(--white); cursor: pointer;
}
.job-row .jn { font-weight: 800; min-width: 56px; }
.job-row .jt { flex: 1; color: var(--gray-7); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-row.on { border-color: var(--blue); background: var(--blue-tint); }
/* The no-division banner's button, and the division sheet's footer. Its own
   class rather than a bare .btn because `.banner .btn-sm` pushes a button to
   the right of the text with margin-left:auto — right for a one-line outbox
   banner, wrong under two lines of explanation where it reads as an orphan. */
.nd-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.nd-actions .btn { width: auto; flex: none; margin-left: 0; }
.banner .nd-actions .btn-sm { margin-left: 0; }

.job-tool-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--gray-1); }
.job-tool-name { font-size: 15px; }
.job-tool-btn { width: auto; min-width: 64px; }
/* A chip that is switched on (work-plan "Quality logs this plan needs"). */
.chip.on { background: var(--blue); color: var(--white); border-color: var(--blue); }
.cp-badge.dup { background: var(--gold-tint); color: #7A5C00; }
.cp-badge.other { background: var(--gold-tint); color: #7A5C00; }
/* The job stamp inside a tool — what replaced the per-form job search box. */
.job-stamp {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px;
  padding: 8px 12px; text-align: left; font: inherit; font-size: 15px; color: var(--ink);
  border: 1.5px solid var(--blue-tint); border-radius: var(--radius-sm); background: var(--blue-tint); cursor: pointer;
}
.job-stamp svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--blue); }
.job-stamp-text { flex: 1; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-stamp-change { font-size: 13px; font-weight: 700; color: var(--blue); }
/* DRA start: "Copy my last DRA" carries its own subtitle inside the button. */
.dra-copy { display: flex; align-items: center; gap: 10px; text-align: left; }
.dra-copy-text { display: flex; flex-direction: column; line-height: 1.2; }
.dra-copy-text small { font-weight: 500; font-size: 13px; color: var(--gray-5); }
/* A job shown but not changeable here (DRA form) — the chip is where it changes. */
.job-fixed {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px;
  font-size: 15px; font-weight: 700; color: var(--ink);
  border: 1.5px solid var(--gray-2); border-radius: var(--radius-sm); background: var(--gray-1);
}
.job-fixed svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--gray-5); }
.dra-steps .check-item { margin-bottom: 6px; }
.cp-badge.job { background: var(--red-tint); color: var(--red); }
.cp-note.bad { background: var(--red-tint); color: var(--red); }

/* DRA start screen redesign: the compact date row that replaced the in-card
   date field, and the start-list card that replaced the stack of outline
   buttons for Copy / Talk it out / Snap the paper form / Print a blank form. */
.date-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border: 1px solid var(--gray-2);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 10px var(--s4); min-height: 56px; margin-bottom: var(--s4);
}
.date-row .ic { color: var(--blue); }
.date-row-label { flex: 1; font-size: 16px; font-weight: 700; }
/* Gloved-thumb target: the small ghost recipe is 40px; this one needs 48px. */
.date-row .btn-sm { min-height: 48px; }
/* Pulls the expanded field up under the row instead of leaving a full .field
   margin-bottom gap between them. */
#dateFieldWrap { margin: -6px 0 var(--s4); }

.start-list { padding: 0; }
.start-row {
  display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box;
  min-height: 60px; padding: 10px var(--s4);
  background: var(--white); border: none; border-bottom: 1px solid var(--gray-2);
  font-family: var(--font); font-size: 17px; font-weight: 600; color: var(--ink);
  text-align: left; cursor: pointer;
}
.start-row:last-child { border-bottom: none; }
.start-row:active { background: var(--blue-tint); }
.start-row-ic {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--blue-tint); color: var(--blue); flex: none;
}
.start-row-ic .ic { width: 22px; height: 22px; }
.start-row-chev { color: var(--gray-5); flex: none; width: 20px; height: 20px; }
.start-row-label { flex: 1; }
/* "Print a blank form" — the visually quieter row, matching its old ghost button. */
#startPrint.start-row { color: var(--gray-7); }
#startPrint .start-row-ic { background: var(--gray-1); color: var(--gray-7); }

/* ---- Camera Site Audit (camera.js) ---- */
.cam-seg .seg-btn.on-yes { background: var(--green); border-color: var(--green); color: var(--white); }
.cam-seg .seg-btn.on-no { background: var(--red); border-color: var(--red); color: var(--white); }
.cam-seg .seg-btn.on-na { background: var(--gray-5); border-color: var(--gray-5); color: var(--white); }
.cam-hero {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: 16px; margin-bottom: 6px;
}
.cam-hero-pct { font-size: 32px; font-weight: 800; color: var(--blue); flex: none; min-width: 76px; }
.cam-hero-body { flex: 1; min-width: 0; }
.cam-hero-body b { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.cam-hero-body span { display: block; font-size: 14px; color: var(--ink); margin-top: 2px; }
/* Score colour, hero and past-row badge alike — same thresholds as the
   Check Your Job tile (status.js renderTiles(): green 90+, gold 70-89, red
   under 70, gray NA when the latest audit's questions all came back N/A). */
.cam-hero-pct-good { color: var(--green-dark); }
.cam-hero-pct-gold { color: var(--gold-ink); }
.cam-hero-pct-red  { color: var(--red); }
.cam-hero-pct-na   { color: var(--gray-5); }
.cam-badge {
  flex: none; min-width: 54px; text-align: center; padding: 5px 10px; border-radius: 999px;
  font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.cam-badge-good { background: var(--green-tint); color: var(--green-dark); }
.cam-badge-gold { background: var(--gold-tint); color: var(--gold-ink); }
.cam-badge-red  { background: var(--red-tint); color: var(--red); }
.cam-badge-na   { background: var(--gray-1); color: var(--gray-5); }

/* ============================================================
   Toolbox Talk screen redesign (toolbox.js screenTalk): the talk
   card's Read/PDF action row, the quiet crew-copy and notes-toggle
   rows, and the sticky "Submit talk" bar. The date-row it also uses
   is the shared .date-row block above (~2378) — no new CSS needed
   for that part.
   ============================================================ */
.tb-talk-acts { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }

/* "Copy crew from DRA" — a lookup, not a commitment, so it reads lighter
   than "Add signature" above it. Centered text row, not a button. */
.tb-copycrew {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 44px; margin-top: 6px;
  background: none; border: none; color: var(--blue);
  font-family: var(--font); font-size: 15px; font-weight: 700; cursor: pointer;
}
.tb-copycrew:active { opacity: 0.6; }

/* "Add notes (optional)" — collapsed by default; reveals #tbNotesWrap around
   the same #tb_notes textarea (see screenTalk()). */
.tb-notes-toggle {
  display: flex; align-items: center; width: 100%;
  min-height: 48px; padding: 0 2px;
  background: none; border: none; color: var(--blue);
  font-family: var(--font); font-size: 16px; font-weight: 700;
  text-align: left; cursor: pointer;
}
.tb-notes-toggle:active { opacity: 0.6; }

/* Pinned "Submit talk" — the status line rides inside the bar so submit
   feedback is never hidden underneath it. Sticky, like .tb-rd-foot above. */
.tb-submit-bar {
  position: sticky; bottom: 0; z-index: 5;
  background: var(--white); border-top: 1px solid var(--gray-2);
  box-shadow: 0 -2px 10px rgba(26, 26, 26, 0.08);
  padding: 10px var(--s4); margin-top: 12px;
}
.tb-submit-bar .tb-status { margin-bottom: 8px; }
.tb-submit-bar #tbSubmit { min-height: 60px; width: 100%; }

/* ============================================================
   Truck-ticket sheet redesign (concrete.js openTicketModal): a
   pinned header ("Truck N of total" / "New truck", Save moved in
   beside it) and one big test field per row instead of the old
   two-column grid. Shared by both materials (PROFILES), so this is
   all scoped to .cp-* classes, never to a material's field ids.
   ============================================================ */
.cp-tk-head {
  position: sticky; top: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  /* Bleed to the sheet's own edges — cancels .cp-sheet's padding — then
     re-applies it, so the header covers what scrolls under it edge to edge. */
  margin: -18px -16px 12px; padding: 12px 16px;
  background: var(--white); border-bottom: 1px solid var(--gray-2);
  box-shadow: 0 6px 10px -8px rgba(26, 26, 26, 0.35);
}
.cp-tk-head-l { min-width: 0; flex: 1 1 auto; }
.cp-tk-title { font-size: 18px; font-weight: 700; }
.cp-tk-sub {
  font-size: 13px; color: var(--gray-5); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cp-tk-head .cp-tk-save { flex: 0 0 auto; width: auto; padding: 0 20px; }

/* Save moved into the header, so Remove no longer shares a row with it —
   it drops to a quiet standalone action instead of a second command of
   equal weight next to Cancel's slot. */
.cp-btnrow .cp-tk-remove {
  flex: 0 0 auto; width: auto; margin: 0 auto;
  background: none; border: none; text-decoration: underline;
}

/* One test per row, big enough to read and hit with a glove on. */
.cp-test-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--gray-1);
}
.cp-test-row label { font-size: 17px; font-weight: 700; }
.cp-test-row label .u { font-weight: 500; color: var(--gray-5); }
.cp-test-in {
  width: 130px; min-height: 56px; flex: none;
  font-size: 22px; font-weight: 700; text-align: center;
  border: 1.5px solid var(--gray-3); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink);
}
.cp-test-in:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 87, 184, 0.15);
}

/* Pass/Fail/Not tested reads a hair taller here than the shared .seg-btn. */
.cp-insp .seg-btn { min-height: 52px; }

/* ==== Job schedule — Gantt (screenSchedImport) ====
   Appended, not interleaved with the rules above — a parallel session has
   in-flight edits elsewhere in this file. Everything below is new: the
   List/Gantt toggle, the Gantt itself (fixed label column + a horizontally-
   scrolling timeline pane, page scroll stays vertical-only), and the wider
   .df-xwide screen it needs room on. Every colour reuses a :root token from
   the top of this file — this app has no dark-mode block to keep in step,
   so none is added here either. */

/* Wider than .df-wide (~1923 above) for the one screen with a chart to
   show, not a form — stacked with .df-wide in the markup so this class only
   has to say how much MORE room it wants, same as .df-wide itself relies on
   the plain .screen rule for padding and centering. */
/* padding-bottom: the plain .screen keeps 120px clear for the fixed bottom
   bar the form screens have. The schedule has no such bar, and that empty
   120px was the one thing pushing the page past the window and putting a
   second scroll bar beside the grid's own. */
.screen.df-xwide { max-width: none; width: 100%; box-sizing: border-box; padding-left: 20px; padding-right: 20px; padding-bottom: 16px; }

/* Schedule on a computer: a one-line header and a card with no title bar, so
   the grid starts near the top and runs the full width of the window. */
/* The one-line title row of the Schedule health · All jobs page on a computer (screenScheduleCompany). The Schedule page itself has
   no title row now: its name is in the app header and its view drop-down and More are in .sg-toprow below. Under 1100px it may wrap. */
.sg-head { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px 10px; min-height: 44px; margin-bottom: 6px; }
.sg-head h1 { margin: 0; font-size: 22px; min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-head .sub { margin: 0; }
.sg-head-gap { flex: 1 1 auto; }
#schedSwitchSlot { flex: none; }
.sg-quiet { border-color: transparent; background: transparent; color: var(--muted); }
@media (max-width: 1100px) { .sg-head { flex-wrap: wrap; } }
.sg-card > .card-body { padding: 12px 14px; }
.sg-card.sg-flat > .card-body { padding: 6px 8px; }   /* the look-ahead and the Day plan draw their own bars: less frame round them */
.sg-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sg-quick select, .sg-quick input[type="date"] {
  width: auto; min-height: 32px; height: 32px; padding: 2px 8px; font-size: 13px; margin: 0;
}
.sg-quick-d { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--gray-5); margin: 0; white-space: nowrap; }

/* List | Gantt segmented toggle — plain .btn.btn-ghost.btn-sm pairs, same
   "on" idea as .df-tab.on and .ob-seg button.on elsewhere, just named for
   this screen since it isn't either of those controls. */
.df-seg { display: flex; gap: 8px; margin-bottom: 12px; }
.df-seg-on { background: var(--blue); color: #fff; border-color: var(--blue); }
/* The collapsed "how do I get the file out of P6, Project or Excel?" guide on the schedule import screen. */
.df-howto { margin-top: 8px; }
.df-howto summary { cursor: pointer; font-weight: 600; color: var(--blue); padding: 4px 0; }

/* Fixed label column: activity ID over the name, both single-line and
   ellipsized rather than wrapping — wrapping would break the row's 1:1
   alignment with its bar on the other side of the split. */
.df-gantt-body { display: flex; align-items: flex-start; }
.df-gantt-labels { flex: 0 0 280px; width: 280px; min-width: 0; }
.df-gantt-labels-hdr { height: 34px; }
.df-gantt-label-row {
  height: 30px; display: flex; flex-direction: column; justify-content: center;
  padding-right: 10px; border-bottom: 1px solid var(--line-soft); overflow: hidden;
}
.df-gantt-label-id { font-size: 12.5px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.df-gantt-label-name { font-size: 11.5px; color: var(--gray-5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* The timeline pane is the ONLY thing allowed to scroll sideways — .screen's
   own overflow-x:clip (line ~157) is the backstop behind that, same role it
   already plays for the date/time inputs elsewhere in the app. */
.df-gantt-pane { flex: 1 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden; }
.df-gantt-inner { position: relative; }
.df-gantt-hdr { position: relative; height: 34px; border-bottom: 1px solid var(--line); }
.df-gantt-hdr-m {
  position: absolute; top: 8px; padding-left: 4px; border-left: 1px solid var(--gray-3);
  font-size: 11.5px; font-weight: 700; color: var(--gray-5); white-space: nowrap;
}
.df-gantt-hdr-today {
  position: absolute; top: 6px; transform: translateX(-50%);
  font-size: 11px; font-weight: 800; color: var(--gold-ink); background: var(--gold-tint);
  padding: 1px 7px; border-radius: 999px; white-space: nowrap;
}
.df-gantt-grid { position: relative; }
.df-gantt-grid-line { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line-soft); }
.df-gantt-grid-line-m { background: var(--gray-3); }
/* The gold accent, same token the "out for signatures" banner and other
   today-markers in this app already use — a Gantt's "today" is that same
   fact, just drawn as a line instead of a banner. */
.df-gantt-today-line { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--gold); z-index: 2; }

/* Bars. Position/width are inline styles the drag handlers in dfow.js read
   and rewrite directly — see wireSchedBar() — so nothing about placement
   lives here, only appearance. touch-action:none stops the browser from
   treating a drag as a page scroll on a touchscreen. */
.df-gantt-bar {
  position: absolute; height: 22px; border-radius: 6px; overflow: hidden;
  background: var(--blue); box-shadow: 0 1px 2px rgba(26, 26, 26, 0.15);
  cursor: grab; touch-action: none;
}
.df-gantt-bar:active { cursor: grabbing; }
.df-gantt-bar-done { background: var(--green); }
/* Critical — the scheduler's own flag (schedule_phase1.sql), never a
   critical path the app computed itself. Declared after -done so a bar that
   is somehow both (a grid import's Critical column, independent of pct)
   reads as critical, which is the more useful thing to notice. */
.df-gantt-bar-critical { background: var(--red); }
.df-gantt-fill { position: absolute; top: 0; left: 0; bottom: 0; background: rgba(0, 0, 0, 0.22); }
.df-gantt-h { position: absolute; top: 0; bottom: 0; width: 8px; cursor: ew-resize; touch-action: none; }
.df-gantt-h-l { left: 0; }
.df-gantt-h-r { right: 0; }

/* "No dates yet" — activities the chart above has nowhere to draw. */
.df-gantt-nodates { margin-top: 14px; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.df-gantt-nd-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 7px 0; border-bottom: 1px solid var(--line-soft);
}
.df-gantt-nd-label { font-size: 14px; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.df-gantt-nd-row .btn { flex: none; }

/* ============================================================
   Schedule Table/Gantt — the column grid (schedgrid.js), Phase 2
   (2026-09-18). Non-phone only — the plain List and the phone's original
   fixed-label Gantt (.df-gantt-*, just above) are untouched, and reused
   here where it's the same idea (bars, month header, today line) so the
   two Gantts read as the same drawing. Everything new is prefixed .sg-
   so nothing here can collide with those. Design:
   docs/schedule-START-HERE.md; the table is sql/migrations/
   schedule_phase2.sql.
   ============================================================ */

/* Toolbar — one row of ghost buttons, wraps on a narrow tablet. */
/* List | Table | Gantt and the grid's own toolbar share one row (wrapping on
   a narrow window) — one place to look for "how am I viewing this". */
.sg-toprow { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-bottom: 10px; }
.sg-toprow .df-seg, .sg-toprow .sg-toolbar { margin-bottom: 0; }
/* The toolbar's own wrappers dissolve inside the row, so its buttons wrap one
   at a time alongside the view toggle instead of dropping as a block. */
.sg-toprow #sg_toolbar, .sg-toprow .sg-toolbar { display: contents; }
.sg-count { margin: 0 0 0 auto; white-space: nowrap; font-size: 13px; }
/* The view drop-down and More (computer): a wrap with a button and a menu that shows while the wrap is .open (dfow.js schedRowWire).
   The view menu also carries .df-seg (home-desk.js reads "#schedSwitchSlot .df-seg-on"), so it undoes the segmented look here. */
.sg-card { overflow: visible; }   /* .card clips; the menus below open over a card that may be only a few lines tall */
.sg-menuwrap { position: relative; display: inline-block; }
.sg-menubtn { width: auto; flex: none; white-space: nowrap; }
.sg-menubtn .ic { width: 14px; height: 14px; vertical-align: -2px; margin-left: 2px; }
.sg-menu { display: none; position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; min-width: 230px; padding: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 28px -14px rgba(20, 30, 50, .4); }
.sg-menu-r { left: auto; right: 0; min-width: 270px; }
.sg-menuwrap.open > .sg-menu { display: block; }
.sg-menu.df-seg { gap: 0; margin: 0; overflow: visible; max-width: none; }
/* justify-content: the view items are .btn (centred by default) and All jobs is a plain button; without it they did not line up (owner 2026-11-24) */
.sg-menu button, .sg-menu.df-seg button { display: flex; align-items: center; justify-content: flex-start; gap: 8px; width: 100%; height: auto; min-height: 38px; padding: 8px 12px; border: 0; border-radius: 6px; background: none; text-align: left; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; }
.sg-menu button:hover { background: var(--canvas); }
.sg-menu button > .ic { flex: none; width: 17px; height: 17px; color: var(--gray-5); }
.sg-menu.df-seg button.df-seg-on { background: none; color: var(--blue-dark); }
.sg-menu.df-seg button.df-seg-on::after { content: "\2713"; margin-left: auto; font-weight: 700; }
.sg-menu-sep { height: 1px; margin: 6px 4px; background: var(--line); }
.sg-menu-hint { margin: 2px 12px 6px; font-size: 13px; color: var(--gray-5); }
body.has-desk-side .sg-menu-noside { display: none; }   /* the sidebar replaces Menu */
body.has-desk-side .sg-more-onlymenu { display: none; }   /* ...and a More that held only Menu has nothing left */
.sg-toprow-min #schedSwitchSlot { flex: 1 1 auto; }   /* pushes the buttons of the minimal row to the right */
/* The slim name + facts line of the Schedule page, for windows where the app header's title is not shown (.hdr-title appears from 1100px). */
.sg-pagetitle { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 0 0 8px; }
.sg-pagetitle h1 { margin: 0; font-size: 20px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-pagetitle .sub { margin: 0; font-size: 13.5px; }
@media (min-width: 1100px) { .sg-pagetitle { display: none; } }   /* the same line .hdr-title turns on at */

/* ---- The Schedule row on the Gantt / Table (computer, round schedule-toolbar-a3 part 2) ----
   The row wraps (never clips, never leaves the card). Left group, in order: view drop-down, Show, Dates, Columns, Filters, View, count and
   compare note. Right group (.sg-rightgrp, one unit, pushed right by its auto margin): chip, Update / Done, Compare, Edit the schedule, More.
   When the right group does not fit beside the left group it drops to a second line, right-aligned, as a whole. Before anything wraps the
   count and the compare note (basis 60px, they grow into spare room, ellipsis) and the View: layout button (capped at 180px, ellipsis) give way. */
.sg-toprow #sg_toolbarR { display: contents; }
.sg-toprow-wide { flex-wrap: wrap; gap: 8px 6px; }
.sg-toprow-wide .sg-quick { flex-wrap: nowrap; flex: none; gap: 6px; }
.sg-toprow-wide .btn, .sg-toprow-wide select, .sg-toprow-wide .sg-menuwrap { flex: none; white-space: nowrap; }
.sg-toprow-wide .btn-sm, .sg-quick select.sg-pickselect { font-size: 14px; padding-left: 12px; padding-right: 12px; }
/* Show gets the chevron the buttons have, not the browser's own arrow (same drawing as .pu-vsel); it sits 9–22px from the right edge, so the
   text keeps 26px of right padding. */
.sg-quick select.sg-pickselect { height: 40px; min-height: 40px; padding-right: 26px; font-weight: 600; color: var(--ink); background-color: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  -webkit-appearance: none; appearance: none; cursor: pointer; background-repeat: no-repeat; background-position: right 9px center; background-size: 13px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 4.5l5 5 5-5' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
/* The row's quiet buttons match the Show box beside them, as in the mock-up: white, a thin line, ink text (not the grey .btn-ghost). Buttons
   inside an open menu are left alone, and so is the look-ahead chip, which keeps its own purple (.sg-la-chip). */
.sg-toprow-wide .btn-ghost:not(.sg-menu *):not(.sg-la-chip) { background: var(--white); color: var(--ink); border-color: var(--line); }
.sg-toprow-wide #sg_btnView { flex: 0 1 auto; min-width: 96px; max-width: 180px; }
.sg-vlabel { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sg-toprow-wide .sg-la-chip { flex: 0 1 auto; min-width: 90px; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.sg-toprow-wide .sg-count, .sg-toprow-wide #sg_compnote { flex: 1 1 60px; min-width: 0; max-width: 170px; margin: 0; overflow: hidden; text-overflow: ellipsis; }
.sg-toprow-wide #sg_compnote { max-width: 260px; }
.sg-toprow-wide .sg-count:empty, .sg-toprow-wide #sg_compnote:empty { display: none; }
.sg-rightgrp { display: flex; flex: 0 0 auto; flex-wrap: nowrap; align-items: center; gap: 6px; margin-left: auto; }
/* A tighter row when it is 1080px or narrower (a 1280px window with the sidebar open leaves about 934px): slimmer padding and gaps, Show capped
   at 154px (its longest choice needs 118px of text room, which that leaves), View: capped at 120px, and the count's basis drops from 60px to
   40px. Measured on the live page 2026-11-24: one line from a 1080px row down to about 910px. The row is the query container, so the rule
   follows the room the row really has, whatever the sidebar is doing. Being a container makes the row a stacking context: the open menus
   were checked on the live page to stay on top of the chart's header (no z-index added; the app header above is z-index 50). */
.sg-toprow-wide { container-type: inline-size; container-name: sgrow; }
@container sgrow (max-width: 1080px) {
  .sg-toprow-wide .btn-sm { padding-left: 8px; padding-right: 8px; }
  .sg-quick select.sg-pickselect { padding-left: 8px; padding-right: 26px; max-width: 154px; text-overflow: ellipsis; }
  .sg-toprow-wide #sg_btnView { max-width: 120px; }
  .sg-toprow-wide .sg-quick, .sg-toprow-wide #sg_toolbar, .sg-rightgrp { gap: 4px; }
  .sg-toprow-wide .sg-count, .sg-toprow-wide #sg_compnote { flex-basis: 40px; }
}
/* a panel (Dates, Compare) is a .sg-menu holding fields */
.sg-menu-panel { min-width: 240px; padding: 12px; }
.sg-cmpwrap .sg-menu { min-width: 340px; }
.sg-menu-panel .sg-quick-d { display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin: 0 0 10px; font-size: 13px; white-space: normal; }
.sg-menu-panel .sg-quick-d:last-child { margin-bottom: 0; }
.sg-menu-panel select, .sg-menu-panel input[type="date"] { width: 100%; min-height: 36px; height: 36px; }
/* More: the grid's part (Links, Baseline bar, Download Excel, Change history) */
/* the tail of More (Save as the baseline, Menu, All jobs, Import) is set off by a line, only when something comes before it and something shows in it */
.sg-more-tail { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.sg-more-tail:first-child, #sg_moreGrid:empty + .sg-more-tail { border-top: 0; margin-top: 0; padding-top: 0; }
body.has-desk-side .sg-more-tail:not(:has(button:not(.sg-menu-noside))) { display: none; }
.sg-more-links { padding: 6px 12px 8px; }
.sg-more-seg { display: flex; gap: 6px; margin-top: 6px; }
.sg-more-seg button { width: auto; flex: 1 1 0; justify-content: center; min-height: 34px; border: 1px solid var(--line); }
.sg-more-seg button.df-seg-on { background: var(--blue); color: #fff; border-color: var(--blue); }
.sg-more-chk { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 12px; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; }
/* Zoom floats on the chart, bottom right (Gantt only). The chart gets room under its last row so the buttons never cover a bar; not printed. */
.sg-scrollwrap { position: relative; }
.sg-hasfloat .sg-wrap { padding-bottom: 64px; }
.sg-zoomfloat { position: absolute; right: 26px; bottom: 34px; z-index: 5; display: flex; gap: 8px; }
.sg-zoomseg { display: flex; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 4px 14px -6px rgba(20, 30, 50, .35); }
.sg-zoomseg .btn { border: 0; border-radius: 0; }
.sg-zoomdd { background: var(--white); box-shadow: 0 4px 14px -6px rgba(20, 30, 50, .35); }
@media print { .sg-zoomfloat { display: none; } }
.sg-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.sg-toolbar .btn { width: auto; }
.btn-xs { min-height: 30px; padding: 4px 10px; font-size: 12.5px; }
.sg-blchk { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--gray-7); white-space: nowrap; }
.sg-blchk input[disabled] { cursor: not-allowed; }
.sg-links { display: flex; align-items: center; gap: 6px; }
.sg-links-label { font-size: 13px; color: var(--gray-5); }

/* Columns / Filters / View dropdown — a plain card under the toolbar, not
   a floating popover (it must never cover what it's editing). */
.sg-panel { background: var(--gray-1); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 12px 14px; margin-bottom: 10px; }
.sg-colgroup-h { font-size: 12px; font-weight: 800; color: var(--gray-5); text-transform: uppercase; letter-spacing: 0.03em; margin: 10px 0 6px; }
.sg-colgroup-h:first-child { margin-top: 0; }

.sg-panel-cols { display: flex; flex-wrap: wrap; gap: 20px; }
.sg-panel-cols-pick { display: flex; flex-wrap: wrap; gap: 16px; flex: 2 1 320px; }
.sg-panel-cols-pick .sg-colgroup-h { margin-top: 0; }
.sg-colgroup { min-width: 140px; }
.sg-colchk { display: block; font-size: 13.5px; padding: 3px 0; cursor: pointer; }
.sg-panel-cols-order { flex: 1 1 220px; min-width: 200px; }
.sg-order-list { list-style: none; margin: 0; padding: 0; }
.sg-order-li { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border-bottom: 1px solid var(--line-soft); font-size: 13px; cursor: grab; }
.sg-order-drag { color: var(--gray-3); flex: none; width: 16px; height: 16px; }
.sg-order-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-order-btn { flex: none; width: 24px; height: 24px; border: 1px solid var(--gray-3); background: var(--white); border-radius: 6px; color: var(--gray-5); }
.sg-order-btn[disabled] { opacity: 0.35; }
.sg-order-btn svg { width: 14px; height: 14px; }

.sg-filt-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; }
.sg-filt-row select, .sg-filt-row input { width: auto; min-width: 0; margin-bottom: 0; }
.sg-filt-rm { flex: none; border: none; background: none; color: var(--gray-5); width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.sg-filt-rm:hover { color: var(--red); }
.sg-filt-rm svg { width: 15px; height: 15px; }

.sg-view-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.sg-view-pick {
  flex: 1 1 auto; min-width: 0; text-align: left; border: none; background: none; padding: 4px 2px;
  font-size: 13.5px; color: var(--ink); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sg-view-pick:hover { text-decoration: underline; }
.sg-view-mini { flex: none; border: 1px solid var(--gray-3); background: var(--white); border-radius: 6px; font-size: 11.5px; padding: 3px 8px; color: var(--gray-5); cursor: pointer; }

/* The grid itself — a single vertically-scrolling wrapper holds the grid
   pane and (Gantt only) the chart pane side by side, so ONE scrollbar
   keeps their rows in lockstep. Each pane scrolls sideways on its own
   (overflow-x), never vertically on its own — that would break the sync. */
/* 68vh is only the fallback before script runs: dfow.js schedFitHeight
   sets the real max-height so the box ends exactly where the window does,
   with the hint line under it still in view and no page scroll bar. */
.sg-scroll { max-height: 68vh; overflow-y: auto; overflow-x: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.sg-wrap { display: flex; align-items: flex-start; }
.sg-gridpane { flex: 0 0 auto; overflow-x: auto; min-width: 0; }
/* The column header (and .sg-chart-hdr below) must stay in view while the
   rows scroll. position: sticky alone cannot do it here: each header sits
   inside its pane, and a pane with overflow-x is a scroll box of its own,
   so sticky pins the header to the pane — which never moves up or down —
   instead of to .sg-scroll, which does. dfow.js wireSchedStickyHeads
   slides both headers down by .sg-scroll's scrollTop instead (a transform,
   so the header keeps scrolling sideways with its own pane). z-index keeps
   the rows, bars and the today line underneath as it passes over them. */
.sg-header { display: flex; position: relative; top: 0; z-index: 3; background: var(--gray-1); border-bottom: 1px solid var(--line); }
.sg-th {
  position: relative; flex: none; box-sizing: border-box;
  padding: 0 8px; display: flex; align-items: center;
  font-size: 11.5px; font-weight: 800; color: var(--gray-5); text-transform: uppercase; letter-spacing: 0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; user-select: none;
  border-right: 1px solid var(--line-soft);
}
.sg-th:hover { background: var(--gray-2); }
.sg-resize { position: absolute; top: 0; right: -4px; bottom: 0; width: 8px; cursor: col-resize; z-index: 1; }
.sg-body { position: relative; }
.sg-tr { display: flex; box-sizing: border-box; border-bottom: 1px solid var(--line-soft); }
.sg-tr-alt { background: var(--gray-1); }
.sg-tr[data-id] { cursor: pointer; }
.sg-tr[data-id]:hover { background: var(--blue-tint); }
/* An editable cell says so on hover; the input that replaces its text fills
   the cell exactly, so the row never changes height while typing. */
.sg-td-edit { cursor: text; }
.sg-td-edit:hover { box-shadow: inset 0 0 0 1px var(--blue); background: #fff; }
.sg-cell-input {
  width: 100%; height: 24px; min-height: 0; box-sizing: border-box; margin: 0; padding: 0 4px;
  font: inherit; font-size: 13px; border: 1px solid var(--blue); border-radius: 4px; background: #fff;
}
.sg-td {
  flex: none; box-sizing: border-box; padding: 0 8px; display: flex; align-items: center;
  font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-right: 1px solid var(--line-soft);
}
/* Late = red ink, early = green ink — same two tokens the app already
   uses for this idea (banner-red/banner-green, cam-hero-pct-*). */
.sg-var-late { color: var(--red); font-weight: 700; }
.sg-var-early { color: var(--green-dark); font-weight: 700; }
.sg-crit { color: var(--red); font-weight: 700; }

/* The draggable splitter between the grid pane and the chart pane
   (Gantt only) — a slim bar, not a full column, so it doesn't eat into
   either pane's own horizontal scroll room. */
.sg-splitter { flex: 0 0 6px; align-self: stretch; cursor: col-resize; background: var(--gray-2); }
.sg-splitter:hover, .sg-splitter.sg-dragging { background: var(--blue); }

.sg-chartpane { flex: 1 1 auto; min-width: 0; overflow-x: auto; position: relative; }
/* Kept in view the same way as .sg-header (see there). z-index 3, not 2:
   the today line is z-index 2 and later in the DOM, so at 2 it would draw
   over the month header once the header has slid down onto it. */
.sg-chart-hdr { position: relative; top: 0; z-index: 3; background: var(--white); border-bottom: 1px solid var(--line); }

/* Sideways scroll bars, pinned to the foot of the window. Each pane's own
   bar sits under its last row — out of reach on a long schedule — so this
   sticky strip holds a stand-in per pane (dfow.js wireSchedHbar keeps the
   two in step) and the panes' own bars are hidden while it is on. */
.sg-hbar { display: none; position: sticky; bottom: 0; z-index: 4; background: var(--gray-1); border-top: 1px solid var(--line); }
.sg-hbar-on > .sg-hbar { display: flex; }
.sg-hbar-pane { flex: none; overflow-x: auto; overflow-y: hidden; }
.sg-hbar-size { height: 1px; }
.sg-hbar-gap { flex: 0 0 6px; background: var(--gray-2); }
.sg-hbar-on .sg-gridpane, .sg-hbar-on .sg-chartpane { scrollbar-width: none; }
.sg-hbar-on .sg-gridpane::-webkit-scrollbar, .sg-hbar-on .sg-chartpane::-webkit-scrollbar { display: none; }
.sg-chart-grid { position: relative; }

/* Baseline strip — a thin gray bar under the current bar in the same
   row. Never draggable: no pointer handlers are ever wired to it, only
   to the .df-gantt-bar sitting above it. */
.sg-bl-strip { position: absolute; height: 5px; border-radius: 3px; background: var(--gray-3); }

.sg-links-svg { position: absolute; top: 0; left: 0; pointer-events: none; }
.sg-link-crit { stroke: var(--red); stroke-width: 1.5px; }
.sg-link-all { stroke: var(--gray-5); stroke-width: 1px; }
.sg-arrow-crit { fill: var(--red); }
.sg-arrow-all { fill: var(--gray-5); }

/* ---- Work plan view (dfow-view.js) ----
   The Work plan button (PZ.wpBtn in lazy.js) on a Daily Log line and a look-ahead row, and the read-only
   viewer it opens: a full-screen layer on a phone, a 520px column on a laptop; six sideways pages, a bar of
   big buttons under them, a slide-up sheet for one step. Phone sizes: text 16px or more, every tap 48px or more. */
.wp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 16px; font: inherit; font-size: 16px; font-weight: 700; color: var(--blue); background: var(--white); border: 2px solid var(--blue); border-radius: var(--radius); cursor: pointer; white-space: nowrap; }
.wp-btn:active { background: var(--blue-tint); }
.wp-btn .ic { width: 22px; height: 22px; flex: none; vertical-align: 0; }
.wp-full { width: 100%; margin-top: 10px; }
.dl-sb > .wp-full { margin-top: 0; }
.wp-sm { min-height: 0; height: 24px; padding: 0 6px; gap: 3px; margin-left: 4px; font-size: 11px; font-weight: 600; line-height: 1; border-width: 1px; border-radius: 6px; vertical-align: middle; }
.wp-sm .ic { width: 13px; height: 13px; }
.wp-ic { width: 24px; padding: 0; flex: none; }   /* icon only (dense laptop tables); the words are in the tooltip */
.wp-ic span { display: none; }
body.wpv-noscroll { overflow: hidden; }
.wpv { position: fixed; inset: 0; z-index: 1020; display: flex; justify-content: center; align-items: stretch; background: rgba(26, 26, 26, .45); }
.wpv-panel { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 520px; height: 100%; background: var(--gray-1); outline: none; font-size: 17px; }
@media (min-width: 700px) { .wpv { padding: 16px 0; } .wpv-panel { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); } }
.wpv .bi-tr { font-size: 16px; }
.wpv-head { flex: none; padding: calc(12px + env(safe-area-inset-top, 0px)) 12px 10px 16px; background: var(--white); border-bottom: 1px solid var(--line); }
.wpv-hrow { display: flex; align-items: center; gap: 10px; }
.wpv-htx { flex: 1; min-width: 0; }
.wpv-title { display: block; font-size: 20px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.wpv-sm { display: block; font-size: 16px; color: var(--muted); overflow-wrap: anywhere; }
.wpv-sm.late { color: var(--red); font-weight: 700; }
.wpv-x { flex: none; width: 48px; height: 48px; display: grid; place-items: center; padding: 0; color: var(--gray-7); background: var(--gray-1); border: 1px solid var(--gray-3); border-radius: var(--radius); cursor: pointer; }
.wpv-x .ic { width: 24px; height: 24px; vertical-align: 0; }
.wpv-chip { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 12px; font-size: 14px; font-weight: 700; }
.wpv-chip.ok { background: var(--green-tint); color: var(--green-dark); border: 1px solid #BCDCA9; }
.wpv-chip.draft { background: var(--gold-tint); color: #7A5C00; border: 1px solid #EAD48A; }   /* the banner-gold colours, as a chip beside the job number */
.wpv-htx > .wpv-sm { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }   /* a long chip (es/pt) drops under the job number, flush left */
.wpv-htx .wpv-chip { margin-left: 0; }
.wpv-bn { margin: 10px 0 0; }
.wpv-tabs { position: relative; flex: none; display: flex; gap: 2px; margin: 10px 16px 6px; padding: 3px; background: var(--canvas); border-radius: 8px; }   /* the segmented control's track */
.wpv-tab { flex: 1 1 0; min-width: 0; min-height: 48px; padding: 0 4px; font: inherit; font-size: 16px; font-weight: 600; color: var(--muted); background: transparent; border: 0; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.wpv-tab.on { color: var(--white); background: var(--blue); }
.wpv-n, .wpv-hn { min-width: 26px; padding: 0 7px; font-size: 16px; font-weight: 700; line-height: 26px; text-align: center; color: var(--ink); background: var(--gray-2); border-radius: 13px; }
.wpv-pager { flex: 1 1 auto; min-height: 0; display: flex; overflow: hidden; }   /* no swipe between pages: the segment and the rows of More move it in code */
.wpv-page { flex: 0 0 100%; min-width: 0; overflow-y: auto; overscroll-behavior-y: contain; }
.wpv-pg { display: grid; gap: 12px; align-content: start; padding: 14px 16px 24px; }
.wpv-msg { flex: 0 0 100%; display: grid; gap: 14px; align-content: start; padding: 24px 16px; }
.wpv-msg .sub { margin: 0; }
.wpv-fail { margin: 0; font-size: 18px; font-weight: 700; }
.wpv-bar { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -2px 10px rgba(26, 26, 26, .08); }
.wpv-bar .btn, .wpv-sbar .btn { flex: 1; margin: 0; }
.wpv-sbar .btn { padding-left: 8px; padding-right: 8px; white-space: nowrap; }
.wpv-card, .wpv-haz { margin: 0; }
.wpv-card { padding: 2px 16px; }
.wpv-kv { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.wpv-kv:last-child { border-bottom: 0; }
.wpv-k, .wpv-cl { font-size: 14px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.wpv-v, .wpv-nb, .wpv-desc { font-size: 17px; white-space: pre-wrap; overflow-wrap: anywhere; }
.wpv-desc { margin: 0; }
.wpv-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wpv-tile { display: grid; align-content: center; gap: 2px; min-height: 96px; padding: 12px 16px; text-align: left; font: inherit; color: var(--ink); background: var(--white); border: 1.5px solid var(--gray-2); border-radius: var(--radius); box-shadow: var(--shadow); cursor: pointer; }
.wpv-tile:active { background: var(--gray-1); }
.wpv-tile b { font-size: 32px; font-weight: 800; line-height: 1.1; color: var(--blue); }
.wpv-tile span { font-size: 16px; font-weight: 700; color: var(--gray-7); }
.wpv-row { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; min-height: 64px; padding: 13px 12px; text-align: left; font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); cursor: pointer; }
.wpv-row:active { background: var(--gray-1); }
.wpv-row.hold { border-left-color: var(--gold); }
.wpv-row.static { cursor: default; border-left-color: var(--gray-3); }
.wpv-row.static.ok { border-left-color: var(--green); }
.wpv-no { flex: 0 0 40px; height: 40px; display: grid; place-items: center; font-size: 17px; font-weight: 800; color: var(--blue); background: var(--blue-tint); border-radius: 10px; }
.wpv-row.hold .wpv-no { color: #8A6500; background: var(--gold-tint); }
.wpv-rt { flex: 1; min-width: 0; display: block; text-align: left; }
.wpv-rt b { display: block; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.wpv-rt > .wpv-sm { margin-top: 2px; }
.wpv-chev { flex: none; font-size: 26px; line-height: 1; color: var(--faint); }
.wpv-tag { display: inline-block; margin-top: 8px; padding: 2px 8px; font-size: 14px; font-weight: 800; letter-spacing: .06em; color: #7A5C00; background: var(--gold-tint); border: 1px solid #EAD48A; border-radius: 6px; }
.wpv-h { display: flex; align-items: center; gap: 8px; margin: 6px 2px -2px; font-size: 18px; font-weight: 800; }
.wpv-note, .wpv-sub { padding: 13px 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.wpv-nm { margin-bottom: 4px; font-size: 16px; font-weight: 700; color: var(--muted); }
.wpv-sh { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.wpv-sh b { font-size: 17px; }
.wpv-pill { padding: 2px 10px; font-size: 14px; font-weight: 700; color: var(--gray-7); background: var(--gray-1); border: 1px solid var(--gray-3); border-radius: 12px; }
.wpv-pill.open { color: var(--blue-dark); background: var(--blue-tint); border-color: #BAD2EE; }
.wpv-sps { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.wpv-sp { min-height: 48px; padding: 0 16px; font: inherit; font-size: 16px; font-weight: 700; color: var(--blue-dark); background: var(--blue-tint); border: 1px solid #BAD2EE; border-radius: 22px; cursor: pointer; }
.wpv-sp:active { background: var(--gray-1); }
.wpv-none, .wpv-hint { margin: 0; padding: 0 2px; font-size: 16px; color: var(--muted); }
.wpv-list { padding: 0 16px; }
.wpv-li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 48px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.wpv-li:last-child { border-bottom: 0; }
.wpv-li b { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.wpv-li span { flex: none; font-size: 16px; color: var(--muted); }
.wpv-sheetwrap { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: center; background: rgba(26, 26, 26, .45); }
.wpv-sheet { display: flex; flex-direction: column; width: 100%; max-width: 520px; max-height: 92vh; max-height: 92dvh; overflow: hidden; background: var(--white); border-radius: 18px 18px 0 0; outline: none; }
.wpv-shead { flex: none; display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; border-bottom: 1px solid var(--gray-2); }
.wpv-shead .wpv-rt b { font-size: 18px; }
.wpv-shdone { flex: none; width: auto; min-height: 48px; padding: 0 22px; font-size: 16px; }
.wpv-sb { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 14px 14px 20px; overflow-y: auto; overscroll-behavior: contain; }
.wpv-sb > * { flex: none; }   /* not a grid: a grid squeezes an overflow:hidden card to less than its content when the sheet is full */
.wpv-sb .banner { margin-bottom: 0; }
.wpv-sbar { flex: none; display: flex; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); box-shadow: 0 -2px 10px rgba(26, 26, 26, .08); }
.wpv-haz { padding: 12px 14px; }
.wpv-hh { display: flex; align-items: center; gap: 12px; }
.wpv-hi { flex: none; width: 48px; height: 48px; }
.wpv-hname { font-size: 18px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.wpv-cl { margin: 12px 0 6px; }
.wpv-ul { display: grid; gap: 8px; margin: 0; padding-left: 20px; font-size: 17px; }
/* Documents (dfow-view.js): a row is a 56px picture or file badge, the title with who / when, and a 48px Remove; the proof line on a
   quality item, the Documents page and the list of removed ones all use it. The add sheet is a second slide-up above the step sheet. */
.wpv-docs { display: grid; }
.wpv-doc { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line-soft); }
.wpv-doc:last-child { border-bottom: 0; }
.wpv-dl { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 0; color: inherit; text-decoration: none; }
.wpv-dth { flex: none; width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--gray-2); }
.wpv-dk { display: grid; place-items: center; font-size: 14px; font-weight: 800; letter-spacing: .04em; color: var(--blue); background: var(--blue-tint); }
.wpv-drm { flex: none; width: 48px; height: 48px; display: grid; place-items: center; padding: 0; font: inherit; color: var(--red); background: var(--white); border: 1px solid var(--gray-3); border-radius: var(--radius); cursor: pointer; }
.wpv-drm .ic { width: 22px; height: 22px; vertical-align: 0; }
.wpv-drm.armed { width: auto; min-width: 96px; padding: 0 10px; font-size: 15px; font-weight: 700; line-height: 1.15; color: var(--white); background: var(--red); border-color: var(--red); }
.wpv-drs { flex: none; min-height: 48px; padding: 0 16px; font-size: 16px; }
.wpv-card > .wpv-hname { padding: 12px 0 2px; }
.wpv-gs { margin: 6px 2px 0; }
.wpv-addbtn { margin-top: 10px; }
.wpv-addwrap { z-index: 3; }
.wpv-in { font-weight: 700; color: var(--ink); }
.wpv-abtns { display: grid; gap: 10px; }
@media (min-width: 700px) { .wpv-abtns { grid-template-columns: 1fr 1fr; } }
.wpv-pick { margin: 0; cursor: pointer; }
.wpv-flist { display: grid; gap: 8px; }
.wpv-fr { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; background: var(--gray-1); border: 1px solid var(--line); border-radius: var(--radius); }
.wpv-flist:empty, .wpv-aerr:empty { display: none; }
.wpv-sb .field { margin-bottom: 0; }

/* Work plans look r1 — viewer (dfow-view.js). Phone look, also used on a computer: no card boxes, hairline rows (--line-soft), 8px radius, the
   brand blue on the header rule, the segment, the step numbers and the buttons. Risk tints always come from the app's limits (the class is chosen
   in dfow-view.js from PZ.DfowRisk.riskClass); nothing here knows 20 or 45. */
@media (min-width: 700px) { .wpv-panel { border-radius: 8px; } }
.wpv-panel { background: var(--white); }
.wpv .btn { border-radius: 8px; }
.wpv .card { margin: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.wpv-head { padding-bottom: 12px; border-bottom: 4px solid var(--blue); }
.wpv-title { font-size: 21px; font-weight: 700; }
.wpv-status { margin: 2px 0 0; font-size: 16px; color: var(--muted); }
.wpv-link { display: block; min-height: 48px; margin: 0; padding: 0; font: inherit; font-size: 16px; font-weight: 600; text-align: left; color: var(--blue); background: none; border: 0; cursor: pointer; }
.wpv-pg { gap: 0; padding: 4px 16px 24px; }
.wpv .wpv-h { margin: 18px 0 2px; font-size: 17px; font-weight: 700; color: var(--blue-dark); }
.wpv-gs { margin: 16px 0 0; }
.wpv-row, .wpv-row.hold, .wpv-row.static, .wpv-row.static.ok { background: transparent; border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; box-shadow: none; padding: 14px 0; }
.wpv-row:active { background: var(--canvas); }
.wpv-row.static.ok .wpv-sm { color: var(--green-dark); }
.wpv-no, .wpv-row.hold .wpv-no { flex: 0 0 32px; height: 32px; font-size: 16px; font-weight: 700; color: var(--blue-dark); background: var(--blue-tint); border-radius: 50%; font-variant-numeric: tabular-nums; }
.wpv-step .wpv-no { align-self: flex-start; }
.wpv-step.now { margin: 0 -16px; padding: 14px 16px 14px 13px; background: var(--blue-tint); border-bottom-color: var(--white); border-left: 3px solid var(--blue); }
.wpv-step.now .wpv-no { color: var(--white); background: var(--blue); }
.wpv-step.now .wpv-rt b { font-weight: 700; }
/* CR-0016: on the phone the tappable viewer rows (steps, hold points, More pages) are card buttons; the signature rows (.static) stay flat. */
@media (max-width: 699px) {
  .wpv-row:not(.static), .wpv-row.hold:not(.static) { margin-bottom: 8px; padding: 12px 14px; min-height: 64px; background: var(--white); border: 1px solid var(--gray-3); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
  .wpv-row.hold:not(.static) { border-left: 4px solid var(--gold); }
  .wpv-row:not(.static):active { background: var(--blue-tint); }
  .wpv-row:not(.static):focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
  .wpv-step.now { margin: 0 0 8px; padding: 12px 14px; background: var(--blue-tint); border-bottom-color: var(--gray-3); border-left: 4px solid var(--blue); }
  .wpv-row:not(.static) .wpv-chev { font-size: 30px; font-weight: 700; color: var(--blue); }
}
.wpv-rt b { font-weight: 600; }
.wpv-sm .wpv-pill { display: inline-block; margin-left: 2px; }
.wpv-worst { font-weight: 700; }
.wpv-worst.hi { color: var(--red); }
.wpv-worst.mid { color: var(--gold-ink); }
.wpv .wpv-pill { border: 0; }
.wpv-rp { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; border-radius: 999px; }
.wpv-rp.hi { color: var(--red); background: var(--red-tint); }
.wpv-rp.mid { color: var(--gold-ink); background: var(--gold-tint); }
.wpv-rp.ok { color: var(--green-dark); background: var(--green-tint); }
.wpv-more .wpv-n { flex: none; }
.wpv-tiles { gap: 8px; }
.wpv-tile { background: var(--canvas); border: 0; border-radius: 8px; box-shadow: none; }
.wpv-note, .wpv-sub { padding: 14px 0; background: transparent; border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; box-shadow: none; }
.wpv-card, .wpv-list { padding: 0; }
.wpv .wpv-haz { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.wpv .wpv-haz:last-child { border-bottom: 0; }
.wpv-hh .wpv-hname { flex: 1; min-width: 0; font-size: 17px; font-weight: 700; }
.wpv-hh .wpv-rp { margin-left: auto; padding: 2px 10px; }
.wpv-hi { width: 40px; height: 40px; }
.wpv-why { margin-top: 12px; padding: 10px 12px; font-size: 16px; line-height: 1.4; color: var(--muted); background: var(--canvas); border-radius: 8px; }
.wpv-why b { color: var(--ink); }
.wpv-why-next { display: block; margin-top: 4px; }
.wpv-sp { border: 0; border-radius: 8px; }
.wpv-bar { padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); box-shadow: none; }
.wpv-bar .btn { width: 100%; min-height: 48px; }
/* both buttons: one row, a short Edit beside the wide Daily Log button (stacked they took two rows off a phone's screen) */
.wpv-bar.wpv-bar2 .wpv-edit { flex: none; width: auto; padding: 0 22px; }
.wpv-bar.wpv-bar2 .btn-primary { min-width: 0; white-space: normal; line-height: 1.2; }
.wpv-sheet { border-radius: 8px 8px 0 0; }
.wpv-shead { display: block; padding: 6px 16px 12px; border-bottom: 4px solid var(--blue); }
.wpv-sh1, .wpv-sh2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wpv-sh1 { margin: 0 -8px; }
.wpv-shdone { padding: 0 8px; }
.wpv .wpv-dra { flex: none; min-height: 48px; margin: 0; padding: 0 20px; font-size: 16px; font-weight: 600; border-radius: 24px; }
.wpv .wpv-prevlink { flex: none; min-height: 48px; margin: 0 -4px 0 0; padding: 0 4px; font-size: 16px; font-weight: 600; color: var(--blue); }
.wpv .wpv-prevlink:disabled { opacity: .4; }
.wpv .wpv-shdone, .wpv .wpv-prevlink { background: transparent; border-color: transparent; box-shadow: none; }
.wpv .wpv-shdone { color: var(--blue); font-weight: 600; }
.wpv-stitle { display: block; margin: 2px 0 6px; font-size: 24px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.wpv-sb { gap: 0; padding: 4px 16px 20px; }
.wpv-sbar { padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); box-shadow: none; }
.wpv-sbar .btn.wpv-nextbtn { width: 100%; min-height: 50px; white-space: normal; line-height: 1.25; }

/* ============================================================
   Look-ahead (lookahead.js + lookahead-grid.js) — the 4-week plan grid.
   Modeled on docs/lookahead-mockup.html. Light box = planned, solid = done,
   dashed = planned and past without being done, hatched = weekend, shaded
   = last week. Only the checkbox and Activity columns are frozen. On a phone
   the grid scrolls sideways inside its own box; the page never does.
   ============================================================ */
.la-root { --la-plan: #F3B4A9; --la-done: #B8412F; --la-bar: #A6A8A3; --la-past: #F1F1EE; --la-today: #E6F0FF; --la-warn: #C98A1B; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }
/* minmax(0, 1fr): a grid track defaults to min-width auto, so the wide day table was stretching the
   whole column past the window and the toolbar / selection bar never wrapped — Save draft, Commit,
   Undo and Clear selection sat off-screen to the right (user, 2026-09-30). */
.la-bar .sub, .la-legend .sub, .la-pop .sub, .la-table .sub { margin: 0; font-size: 12.5px; }
.la-pill { font-size: 12px; padding: 2px 9px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.la-pill.draft { border-color: var(--la-warn); color: var(--la-warn); }
.la-pill.committed { border-color: var(--green); color: var(--green-dark); }
.la-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; }
.la-bar .btn { width: auto; }
.la-bar > * { flex: none; }
.la-bar > .la-grow { flex: 1 1 0; min-width: 0; }
.la-bar .btn, .la-ctl { white-space: nowrap; }
.la-bar .la-pill { flex: none; white-space: nowrap; }
.la-bar .la-ctl, .la-bar .la-ctl select { font-size: 12.5px; }
.la-bar #la_ver { width: 100px; text-overflow: ellipsis; }   /* the pill and the Window / Week of boxes carry the rest of the text */
.la-bar #la_win { width: 82px; }
.la-bar #la_week { width: 86px; }
.la-bar .la-seg button { font-size: 12.5px; padding: 3px 7px; }
.la-bar .la-ctl { gap: 4px; }
@media (min-width: 1500px) { .la-bar #la_ver { width: 190px; } }
.la-bar .btn-xs { padding: 4px 8px; }
.la-note { max-width: 24ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* "More ▾": Start from scratch, Start from last look-ahead, Pull from schedule, Delete / Uncommit / Remove… */
.la-more { position: relative; display: inline-block; }
.la-moremenu { position: absolute; right: 0; top: 100%; margin-top: 4px; z-index: 60; min-width: 230px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px 0; }
.la-moremenu .la-item:disabled { opacity: .45; cursor: default; }
/* one 44px line at 1100px and wider; narrower it wraps as before */
@media (min-width: 1100px) {
  .la-bar { flex-wrap: nowrap; min-height: 44px; padding-top: 4px; padding-bottom: 4px; gap: 6px; }
}
/* the sidebar takes 264px (56px collapsed) and the window-width rule above does not know it: wrap rather than clip "More" and "Commit this week" */
@media (min-width: 1100px) and (max-width: 1363px) { body.has-desk-side:not(.desk-side-collapsed) .la-bar { flex-wrap: wrap; } }
@media (min-width: 1100px) and (max-width: 1155px) { body.has-desk-side.desk-side-collapsed .la-bar { flex-wrap: wrap; } }
/* the Window, Week of and Version boxes already say what the pill's tail says, so under 1500px the pill is just its first word */
@media (min-width: 1100px) and (max-width: 1499px) {
  .la-bar .la-pill-more { display: none; }
}
.la-grow { flex: 1; }
.la-status { font-size: 12.5px; color: var(--gray-7); white-space: nowrap; }
.la-status.bad { color: var(--la-warn); }
.la-status .la-retry { background: none; border: 0; padding: 0; margin-left: 6px; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.la-ctl { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--gray-7); }
.la-ctl select { width: auto; font-size: 13.5px; padding: 4px 6px; border: 1px solid var(--gray-3); border-radius: 6px; background: var(--white); }
.la-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; max-height: 72vh; max-width: 100%; }
.la-table { border-collapse: separate; border-spacing: 0; font-size: 13px; }
.la-table th, .la-table td { border-bottom: 1px solid var(--line-soft); padding: 0; height: 30px; white-space: nowrap; }
.la-table thead th { position: sticky; top: 0; background: var(--white); z-index: 2; font-weight: 600; color: var(--muted); font-size: 12px; }
.la-table thead tr.la-wk th { height: 26px; border-bottom: 0; text-align: left; padding-left: 6px; border-left: 2px solid var(--gray-3); }
.la-table thead tr.la-wk th.f { border-left: 0; }
.la-table thead tr.la-dy th { top: 26px; height: 32px; text-align: center; font-size: 11px; min-width: 24px; line-height: 1.2; }
.la-table thead tr.la-dy th.we { color: var(--gray-3); background: #E9E8E2; }
.la-table thead th.today { background: var(--la-today); color: var(--ink); font-weight: 700; }
.la-table thead th.past { background: var(--la-past); }
.la-table th.f, .la-table td.f { background: var(--white); text-align: left; padding: 0 8px; border-right: 1px solid var(--line-soft); }
.la-table .f.c0, .la-table .f.c1 { position: sticky; z-index: 1; }
.la-table thead .f.c0, .la-table thead .f.c1 { z-index: 3; }
/* Column widths: drag the right edge of a text column's header (owner, 2026-09-30). The widths themselves are rules in #laColwStyle,
   written by lookahead-grid.js (applyWidths) from Configure's cfg.widths; a phone ignores them. */
.la-colrz { position: absolute; top: 0; right: 0; bottom: 0; width: 9px; cursor: col-resize; z-index: 2; touch-action: none; user-select: none; }
.la-colrz::after { content: ""; position: absolute; top: 4px; bottom: 4px; right: 3px; width: 2px; border-radius: 1px; background: transparent; }
.la-table thead th.f:hover .la-colrz::after { background: var(--gray-4); }
.la-colrz:hover::after, .la-colrz-drag::after { background: var(--blue); }
.la-table.la-colrz-on, .la-table.la-colrz-on th { cursor: col-resize; user-select: none; }
.la-table .f.c0 { left: 0; min-width: 34px; width: 34px; }
.la-table .f.c1 { left: 34px; min-width: 340px; max-width: 340px; overflow: hidden; text-overflow: ellipsis; border-right: 2px solid var(--line); }
.la-table .c-co { min-width: 130px; } .la-table .c-crew { min-width: 140px; } .la-table .c-eq { min-width: 130px; }
.la-table .c-p6s, .la-table .c-p6f, .la-table .c-bls, .la-table .c-blf { min-width: 78px; font-size: 12px; } .la-table .c-p6p { min-width: 60px; text-align: right; }
.la-table .c-done { min-width: 80px; text-align: right; font-size: 12px; }
.la-table .c-note { min-width: 220px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: 12px; }
.la-table .la-click { cursor: pointer; }
/* Columns a team adds itself (lookahead-cols.js): Cost code, Quantity and the job's own columns. Inputs sit in the cell; a drag-set width overrides the min. */
.la-table .c-cc { min-width: 150px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.la-table .c-qty { min-width: 170px; font-size: 12px; }
.la-table [class*="c-x-"] { min-width: 110px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.la-table .la-xin { font: inherit; font-size: 12px; height: 24px; box-sizing: border-box; width: 100%; min-width: 0; padding: 2px 4px; border: 1px solid transparent; border-radius: 5px; background: transparent; }
.la-table .la-xin:hover { border-color: var(--line); background: var(--white); }
.la-table .la-xin:focus { border-color: var(--blue); background: var(--white); outline: none; }
.la-table .la-xq { width: 72px; margin-right: 4px; }
.la-table td.c-qty .la-tag, .la-table td.c-cc .la-tag { margin: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.la-table td.la-xtd { text-align: center; }
/* The budget rate under a cost code (lookahead-cols.js): read-only, tap to set this row's hours per day; the P6 note is the warn style */
.la-table td.c-cc .la-tag { white-space: normal; overflow: visible; text-overflow: clip; }   /* the unit is the end of the text: wrap it, never cut it off */
.la-table .la-qctx { font-size: 11px; color: var(--muted); margin-right: 4px; }
.la-table .la-rate { display: block; margin-top: 2px; font-size: 11px; line-height: 1.3; color: var(--muted); white-space: normal; }
.la-table .la-rate.la-click:hover { color: var(--blue); }
.la-table .la-rate.over { color: var(--blue-dark); }
.la-table .la-rate-warn { color: var(--orange); font-weight: 600; }
.la-table .la-fillbtn { display: inline-block; margin-top: 3px; font: inherit; font-size: 11px; font-weight: 600; padding: 2px 8px; border: 1px solid var(--blue); border-radius: 999px; background: var(--white); color: var(--blue); cursor: pointer; white-space: nowrap; }
.la-table .la-fillbtn:hover { background: var(--blue); color: #fff; }
/* The cost-code planner (lookahead-cols.js plan): a wide window in the middle of the screen — codes left, crew + amount right, result + buttons at the foot */
.la-pop.la-plan { left: 50% !important; top: 4vh !important; transform: translateX(-50%); width: min(960px, calc(100vw - 24px)); min-width: 0; max-width: none; max-height: 92vh; padding: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; box-shadow: 0 0 0 100vmax rgba(20, 24, 31, .38), var(--shadow-lg); font-size: 14px; }
.lp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 20px 12px; border-bottom: 1px solid var(--line); }
.lp-title { font-size: 17px; font-weight: 700; color: var(--ink); }
.lp-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.lp-x { font: inherit; font-size: 22px; line-height: 1; width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.lp-x:hover { background: var(--gray-1); color: var(--ink); }
.lp-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; padding: 16px 20px; overflow-y: auto; flex: 1; min-height: 0; }
.lp-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lp-label { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }
.lp-codes .la-qw { margin: 0; } .lp-codes .la-q { width: 100%; box-sizing: border-box; height: 38px; font-size: 14px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; }
.lp-list { border: 1px solid var(--line); border-radius: 8px; overflow-y: auto; background: var(--white); }
.lp-cclist { height: 360px; }
.lp-crewlist { max-height: 210px; }
.lp-list .la-row { display: block; }
.lp-opt { display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); cursor: pointer; line-height: 1.35; }
.lp-list > :last-child .lp-opt, .lp-list > .lp-opt:last-child { border-bottom: 0; }
.lp-opt:hover { background: var(--gray-1); }
.lp-opt:has(input:checked) { background: var(--blue-tint); }
.lp-opt input { margin: 2px 0 0; flex-shrink: 0; }
.lp-opt-main { flex: 1; min-width: 0; }
.lp-opt-main .mono { font-weight: 600; margin-right: 4px; }
.lp-opt-meta { flex-shrink: 0; font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; padding-left: 8px; }
.lp-who { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.lp-group { padding: 8px 12px 4px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; background: var(--gray-1); border-bottom: 1px solid var(--line); }
.lp-empty { padding: 10px 12px; color: var(--muted); font-size: 13px; }
.la-plan .la-crewadd { display: flex; gap: 16px; padding: 0; margin: 0; border: 0; }
.la-plan .la-crewadd .la-item { width: auto; padding: 2px 0; color: var(--blue); font-weight: 600; font-size: 13px; }
.lp-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lp-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lp-field > span:first-child { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.lp-field small { font-size: 11.5px; color: var(--muted); min-height: 14px; }
.lp-inwrap { position: relative; display: block; }
.lp-in { width: 100%; box-sizing: border-box; height: 38px; padding: 0 10px; font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); }
.lp-in:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.lp-inwrap .lp-in { padding-right: 42px; }
.lp-unit { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--muted); pointer-events: none; }
.lp-foot { display: flex; align-items: center; gap: 16px; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--gray-1); }
.lp-out { flex: 1; min-width: 0; font-size: 13px; line-height: 1.4; }
.lp-out b { font-size: 15px; color: var(--ink); }
.lp-btns { display: flex; gap: 8px; flex-shrink: 0; }
.la-plan-b { font: inherit; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.la-plan-b.go { background: var(--blue); border-color: var(--blue); color: #fff; }
.la-plan-b:disabled { opacity: .45; cursor: default; }
.la-tag.req { border: 1px dashed var(--blue); background: transparent; color: var(--blue-dark); }   /* a requested crew: outlined, not filled like a crew that is on the job */
.la-plan .la-plan-b { padding: 9px 16px; font-size: 14px; border-radius: 8px; }
@media (max-width: 720px) {
  .la-pop.la-plan { left: 0 !important; top: 0 !important; transform: none; width: 100vw; height: 100dvh; max-height: none; border-radius: 0; }
  .lp-body { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .lp-cclist { height: 220px; }
  .lp-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-foot { flex-direction: column; align-items: stretch; }
  .lp-btns { justify-content: flex-end; flex-wrap: wrap; }
}
.la-table td.la-xd { min-width: 132px; }
.la-cxrow { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.la-cxrow .la-chk { flex: 1 1 auto; min-width: 0; }
.la-cxtools { display: inline-flex; align-items: center; gap: 4px; padding-right: 10px; flex: none; }
.la-cxtools .la-mv { cursor: pointer; padding: 0 5px; border-radius: 4px; color: var(--muted); font-size: 12px; line-height: 20px; user-select: none; }
.la-cxtools .la-mv:hover { background: var(--gray-2); color: var(--ink); }
.la-cxtools .la-mv.off { opacity: .25; cursor: default; pointer-events: none; }
.la-cxbtn { background: none; border: 0; padding: 2px 4px; font: inherit; font-size: 12px; color: var(--blue); cursor: pointer; text-decoration: underline; }
.la-cxed { padding: 4px 12px 8px; display: grid; gap: 6px; min-width: 240px; }
.la-cxed .la-cxf { display: grid; gap: 2px; font-size: 12px; color: var(--muted); }
.la-cxed input, .la-cxed select, .la-cxed textarea { font: inherit; font-size: 13px; padding: 4px 6px; border: 1px solid var(--gray-3); border-radius: 6px; background: var(--white); width: 100%; box-sizing: border-box; }
.la-cxbtns { display: flex; gap: 6px; flex-wrap: wrap; }
.la-cxbtns .btn { width: auto; }
.la-cxbtns .la-del { color: var(--red); margin-left: auto; }
.la-pop select.la-ask, .la-pop input.la-ask[type=number], .la-pop input.la-ask[type=date] { width: 260px; max-width: calc(100% - 24px); }
.la-table tbody tr:hover td { background: var(--gray-1); }
.la-table tr.la-parent td.f.c1 { font-weight: 700; }
.la-table td.lvl1 { padding-left: 20px; }
.la-table td.lvl2 { padding-left: 40px; }
.la-table input[type=checkbox] { width: auto; height: auto; margin: 0; vertical-align: middle; }
.la-caret { display: inline-block; width: 14px; color: var(--muted); font-size: 11px; cursor: pointer; user-select: none; }
.la-tag { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); margin-right: 4px; background: var(--gray-1); }
.la-tag.sub { border-color: var(--blue); color: var(--blue); }
.la-tag.eq { font-family: Consolas, monospace; }
.la-tag.eq.owned { background: var(--blue-tint); border-color: var(--blue); color: var(--blue-dark); }
.la-tag.eq.rental { background: var(--orange-tint); border-color: var(--orange); color: #A4501C; }
.la-tag.add { border-style: dashed; cursor: pointer; }
.la-tag.la-gone { border-color: var(--red); color: var(--red); background: var(--red-tint); }
.la-tag.la-notetag { border-color: var(--la-warn); color: var(--la-warn); cursor: pointer; }
/* Pull from schedule — review: what a pull would add and remove, ticked for approval (lookahead-flow.js) */
.la-pull { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 34px 8px 12px; font-size: 13px; display: grid; gap: 8px; min-width: 0; }
.la-pull .la-flagx { position: absolute; top: 4px; right: 6px; border: 0; background: none; color: inherit; font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 6px; }
.la-pull-sec { display: grid; gap: 4px; min-width: 0; }
.la-pull .sub { font-size: 12px; margin: 0; }
.la-pull-all { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.la-pull-list { max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); }
/* one grid for every row, so the code / name / DFOW / dates line up down the list */
.la-pull-row { display: grid; grid-template-columns: 16px 96px minmax(0, 5fr) minmax(0, 3fr) minmax(150px, 4fr); gap: 8px; align-items: center; cursor: pointer; padding: 3px 8px; border-bottom: 1px solid var(--gray-1); }
.la-pull-row:hover { background: var(--gray-1); }
.la-pull input[type=checkbox] { width: auto; height: auto; margin: 0; flex: none; }
.la-pull-row .la-src { margin-left: 0; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.la-pull-row .nm, .la-pull-row .dw { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.la-pull-row .tg { min-width: 0; font-size: 12px; }
.la-pull-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.la-pull-foot .btn { width: auto; }
.la-pull-foot .sub { flex: 1 1 280px; }
.la-tag.la-pdone { border-color: var(--la-warn); color: #7A5C00; background: var(--gold-tint); font-weight: 600; }
/* Build from a file — review (lookahead-import.js): the Pull review's rows, indented by level; "Unsure" and "Already here" lines grey */
.la-imp-row.lv1 .nm { padding-left: 14px; }
.la-imp-row.lv2 .nm { padding-left: 28px; }
.la-imp-row.unsure, .la-imp-row.here { color: var(--muted); }
.la-imp-row.here { cursor: default; }
.la-imp-row .tg { white-space: normal; }
.la-tag.la-nomatch { background: transparent; border-style: dashed; }
.la-imp-days { font-size: 12px; }
.la-imp-out { font-size: 12px; color: var(--orange); font-weight: 600; }
.la-imp-week { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.la-imp-week .la-chk input { width: auto; height: auto; margin: 0 4px 0 0; }
.toast .la-undo { pointer-events: auto; margin-left: 12px; background: none; border: 1px solid currentColor; color: inherit; border-radius: 12px; padding: 2px 10px; font: inherit; cursor: pointer; }
.toast:not(.show) .la-undo { pointer-events: none; }
.la-warn { color: var(--orange); margin-left: 4px; font-size: 10px; cursor: help; }
.la-src { font-family: Consolas, monospace; font-size: 10px; color: var(--muted); margin-left: 6px; }
.la-src.p6 { color: var(--blue); }
.la-stepic { display: inline-flex; align-items: center; }
.la-stepic .ic { width: 13px; height: 13px; }
/* Dragging a row up or down (lookahead-grid.js): a grab hand on the first column, the dragged lines dimmed, one line where it lands */
.la-table.la-dnd tbody tr[data-r] td.c1, .la-table.la-dnd tbody tr[data-r] td.c1 .la-nm.la-click { cursor: grab; }
.la-rowdrag, .la-rowdrag * { user-select: none; cursor: grabbing !important; }
.la-rowdrag tr.la-dragging td { opacity: .45; }
.la-dropline { position: fixed; z-index: 450; height: 3px; background: var(--blue); border-radius: 2px; pointer-events: none; display: none; }
.la-stk.la-click { color: var(--blue); cursor: pointer; }
.la-stk-ask { margin-left: 8px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.la-stk-b { border: 0; background: none; padding: 0 2px; font: inherit; color: var(--blue); text-decoration: underline; cursor: pointer; }
.la-table td.d, .la-table th.d { border-left: 1px solid #DCE1E8; }
.la-table td.d.mon, .la-table th.d.mon { border-left: 2px solid var(--gray-3); }
.la-table td.d { width: 24px; min-width: 24px; text-align: center; cursor: crosshair; position: relative; user-select: none; }
.la-table td.d.we { background: #E9E8E2 repeating-linear-gradient(135deg, transparent 0 4px, var(--line) 4px 5px); }   /* darker than the first cut: "make the weekend shading a little darker" (user, 2026-09-30) */
.la-table td.d.past { background-color: var(--la-past); }
.la-table td.d.hx { background-image: repeating-linear-gradient(45deg, var(--la-plan) 0 3px, transparent 3px 7px); }   /* budget days not planned yet: the other way round from the grey weekend hatch (135deg) */
.la-table td.d.hx.late { background-image: repeating-linear-gradient(45deg, var(--orange) 0 3px, transparent 3px 7px); }   /* past the linked P6 finish */
.la-table td.d.today { box-shadow: inset 2px 0 0 var(--blue); }
.la-table td.d .b { display: inline-block; width: 14px; height: 14px; border-radius: 3px; background: var(--la-plan); border: 1px solid var(--la-done); vertical-align: middle; }
.la-table td.d .b.e { opacity: 0; }
.la-table td.d .b.done { background: var(--la-done); border-color: #8F2E1F; }
.la-table td.d .b.miss { background: transparent; border: 1px dashed var(--la-done); opacity: .7; }
.la-table td.d .b.note::after { content: ""; position: absolute; right: 3px; top: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--la-warn); }
.la-table td.d.bar span { display: block; height: 8px; background: var(--la-bar); margin: 11px 0; }
.la-table td.d.bar span.l { border-radius: 4px 0 0 4px; } .la-table td.d.bar span.r { border-radius: 0 4px 4px 0; }
.la-table td.d.ru::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 8px; background: var(--la-bar); }   /* an activity's day with a sub-task painted and no paint of its own */
.la-table td.c-blv, .la-table td.c-scv { text-align: right; white-space: nowrap; }
.la-var.late { color: var(--red); font-weight: 600; } .la-var.early { color: var(--green-dark); font-weight: 600; } .la-var.zero { color: var(--muted); }
.la-p6link { color: var(--blue); }
.la-tag.la-copill { margin-left: 6px; font-weight: 600; cursor: pointer; border-color: var(--gray-3); }   /* a change-order heading's status: opens the CO */
.la-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); align-items: center; }
.la-k { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 5px; }
.la-k.plan { background: var(--la-plan); border: 1px solid var(--la-done); } .la-k.done { background: var(--la-done); }
.la-hxpop { padding: 8px 12px; min-width: 240px; font-size: 12.5px; }
.la-hxpop .l { margin: 2px 0; }
.la-hxpop .l.warn { color: var(--orange); font-weight: 600; }
.la-hxpop .la-item { margin-top: 6px; padding: 4px 0; }
.la-table .la-hxshow { display: inline-block; margin-top: 3px; padding: 0; border: 0; background: none; font: inherit; font-size: 11px; color: var(--muted); text-decoration: underline; cursor: pointer; white-space: nowrap; }
.la-k.miss { border: 1px dashed var(--la-done); } .la-k.note { background: var(--la-warn); border-radius: 50%; }
.la-k.eq.owned { background: var(--blue-tint); border: 1px solid var(--blue); } .la-k.eq.rental { background: var(--orange-tint); border: 1px solid var(--orange); }
.la-pop { position: fixed; z-index: 400; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px 0; min-width: 210px; max-width: 320px; max-height: 300px; overflow-y: auto; font-size: 13.5px; }
.la-pop-h { margin: 6px 12px 3px; font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.la-chk { display: flex; gap: 8px; align-items: center; padding: 5px 12px; cursor: pointer; }
.la-chk:hover, .la-item:hover { background: var(--gray-1); }
.la-chk input { width: auto; height: auto; margin: 0; }
.la-chk .mono { font-family: Consolas, monospace; font-size: 12px; }
.la-fixed { color: var(--muted); }
.la-item { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 7px 12px; font: inherit; color: var(--ink); cursor: pointer; }
.la-item.on { font-weight: 700; }
.la-tip { position: fixed; z-index: 500; pointer-events: none; background: var(--ink); color: #fff; font-size: 12px; padding: 6px 9px; border-radius: 6px; max-width: 260px; white-space: normal; box-shadow: var(--shadow-lg); display: none; }
.la-tip b { display: block; margin-bottom: 2px; }
/* Selection bar and ticked rows (lookahead-bulk.js) */
.la-selbar { display: none; gap: 8px; align-items: center; background: var(--gold-tint); border: 1px solid var(--la-warn); border-radius: var(--radius); padding: 6px 10px; font-size: 13px; }
.la-selbar.on { display: flex; flex-wrap: wrap; }
.la-selbar .btn { width: auto; }
.la-selbar .la-del { color: var(--red); }
.la-table tbody tr.la-sel td, .la-table tbody tr.la-sel td.f, .la-table tbody tr.la-sel td.d.we, .la-table tbody tr.la-sel td.d.past { background-color: var(--gold-tint); }
.la-shift { display: flex; gap: 6px; align-items: center; padding: 4px 12px 8px; }
.la-shift .btn { width: auto; }
.la-shift .la-num { width: 64px; font-size: 13.5px; padding: 4px 6px; border: 1px solid var(--gray-3); border-radius: 6px; }
.la-go { font-weight: 700; border-top: 1px solid var(--line-soft); }
.la-crewadd { border-top: 1px solid var(--line-soft); margin-top: 4px; }
/* Editing in place (lookahead-edit.js): the name line, the note cell, the add lines, the tool cluster, the DFOW picker. */
.la-nmw { display: flex; align-items: center; min-width: 0; }
.la-nmw > * { flex: none; }
.la-nmw > .la-nm { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.la-nmw > .la-in { flex: 1 1 auto; }
.la-nm.la-click:hover { text-decoration: underline dotted; }
.la-in, .la-ask { font: inherit; font-size: 13px; height: 24px; box-sizing: border-box; padding: 2px 6px; border: 1px solid var(--blue); border-radius: 5px; background: var(--white); min-width: 0; width: 100%; }
.la-ask { width: 260px; margin: 4px 12px 8px; display: block; }
.la-table td.c-note.la-click { cursor: text; }
.la-table td.c-note.la-click:hover { background: var(--blue-tint); }
.la-ph { color: var(--faint); font-style: italic; }
.la-rowbtn { flex: none; margin-left: auto; width: 28px; height: 24px; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--gray-5); font: inherit; font-size: 16px; font-weight: 700; line-height: 1; cursor: pointer; user-select: none; }
.la-table tr:hover .la-rowbtn { color: var(--ink); }
.la-rowbtn:hover, .la-rowbtn:focus-visible, .la-rowbtn[aria-expanded="true"] { background: var(--gray-2); color: var(--ink); }
.la-rowbtn:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.la-table .wp-btn.la-wp-issue { color: var(--red); border-color: var(--red); }
.la-rowmenu .la-item:disabled { opacity: .45; cursor: default; }
.la-rowmenu .la-item.armed, .la-rowmenu .la-item.armed:hover { background: var(--red); color: #fff; font-weight: 700; }
.la-table td.c0 .wp-btn { margin-left: 0; }   /* a work plan heading's icon sits in the tick column */
.la-addrow td { height: 26px; }
.la-table td.la-addline { color: var(--faint); font-size: 12.5px; cursor: text; }
.la-table td.la-addline:focus { outline: 2px solid var(--blue); outline-offset: -2px; color: var(--ink); }
@media (hover: hover) {
  .la-table td.la-addline { opacity: .45; }
  .la-addrow:hover td.la-addline { opacity: 1; }
}
.la-table td.la-dpick { white-space: normal; height: auto; padding: 8px; cursor: default; opacity: 1; color: var(--ink); }
.la-dps { width: 100%; font-size: 13px; }
.la-dpsteps { max-height: 150px; overflow-y: auto; margin: 4px 0; }
.la-dpick .la-chk { padding: 3px 0; white-space: normal; }
.la-dpbtn { display: flex; gap: 6px; margin-top: 4px; }
.la-dpbtn .btn, .la-dpick .btn { width: auto; }
.la-chip { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
/* look-ahead round 11: job locations and Group by DFOW | Location | None */
.la-seg { display: inline-flex; border: 1px solid var(--gray-3); border-radius: 6px; overflow: hidden; }
.la-seg button { font: inherit; font-size: 13px; padding: 3px 10px; border: 0; background: var(--white); color: var(--gray-7); cursor: pointer; }
.la-seg button + button { border-left: 1px solid var(--gray-3); }
.la-seg button.on { background: var(--blue-tint); color: var(--blue-dark); font-weight: 700; }
.la-table .c-loc, .la-table .c-dfow { min-width: 150px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.la-table .c-dfow { color: var(--muted); }
.la-loc-eff { color: var(--faint); font-style: italic; }
.la-loc-off, .la-table tr.la-moff td.f.c1 { color: var(--faint); }
.la-lcin { flex: 1 1 auto; min-width: 0; font: inherit; font-size: 13px; height: 26px; box-sizing: border-box; margin: 2px 0 2px 12px; padding: 2px 6px; border: 1px solid transparent; border-radius: 5px; background: transparent; }
.la-lcin:hover { border-color: var(--line); background: var(--white); }
.la-lcin:focus { border-color: var(--blue); background: var(--white); outline: none; }
.la-chip.owned { background: var(--blue); } .la-chip.rental { background: var(--orange); }
.la-pop-h.la-sub { text-transform: none; letter-spacing: 0; font-weight: 600; margin-left: 24px; }
.la-qw { position: sticky; top: 0; z-index: 1; background: var(--white); padding: 0 12px 6px; }
.la-q { font: inherit; font-size: 13px; height: 28px; box-sizing: border-box; width: 100%; padding: 2px 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); min-width: 0; }
.la-q:focus { outline: none; border-color: var(--blue); }
.la-pop .la-none { font-weight: 400; text-transform: none; letter-spacing: 0; }
.la-noncomp { color: var(--la-warn, #C98A1B); font-size: 11px; font-weight: 700; white-space: nowrap; }   /* company picker: a vendor not approved / out of compliance */
.la-else { color: var(--la-warn, #C98A1B);   /* the pop-over lives on <body>, outside .la-root where --la-warn is set */ font-size: 12px; padding: 0 12px 4px 38px; }
.la-flags { position: relative; border: 1px solid var(--la-warn); background: var(--gold-tint); color: #7A5C00; border-radius: var(--radius); padding: 4px 34px 4px 12px; font-size: 13px; }
.la-flagline { display: flex; align-items: center; gap: 6px; min-height: 24px; }
.la-flagtog { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.la-flags ul { margin: 4px 0 0; padding-left: 18px; } .la-flags li { margin: 2px 0; }
.la-flagx { position: absolute; top: 4px; right: 6px; border: 0; background: none; color: inherit; font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 6px; }
.la-else .tri, .la-legend .la-warn { font-size: 10px; }
.la-legend .la-warn { margin: 0 5px 0 0; cursor: default; }
@media (max-width: 560px) {
  .la-table .f.c1 { min-width: 200px; max-width: 200px; }
  .la-colrz { display: none; }
  .la-bar .la-grow { display: none; }
}

/* ============================================================
   DRA hazards-step redesign (dra.js sectionRenderers.hazards,
   redrawHazards/hazardCard/hazardRow), 2026-08-24. A 10-15 item hazard
   library used to be one long scroll of full cards; now unanswered (and
   answered-but-open) hazards stay full cards, answered-and-collapsed ones
   drop into a slim row list, a filter seg switches between "To answer" and
   "Answered", and a sticky bar tracks progress. .hazard-card/.hazard-head/
   .tg-yes/.tg-no/.hazard-controls/.present-toggle are untouched — every
   new class here is prefixed .hz- so nothing collides with them.
   ============================================================ */

/* Back, pulled out of the (now-hidden for this step, see .hz-active below)
   fixed step-nav so it stays reachable at the top of the section. */
.hz-back-slot .btn-back { width: auto; min-height: 44px; margin-bottom: var(--s3); }

/* Filter seg — "To answer" is the default, "Answered" mirrors it. Same
   on/off idea as the .seg-btn pairs elsewhere, sized for two wide buttons. */
.hz-seg { display: flex; gap: var(--s2); margin-bottom: var(--s4); }
.hz-seg-btn {
  flex: 1; min-height: 48px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-3);
  background: var(--white);
  font-size: 15px; font-weight: 700; color: var(--gray-7);
}
.hz-seg-btn.on { background: var(--blue); border-color: var(--blue); color: var(--white); }

/* Slim answered rows, listed inside a plain .card — tap one to put the full
   card (with its controls) back in place. */
.hz-row-list { display: flex; flex-direction: column; }
.hz-row {
  display: flex; align-items: center; gap: var(--s3);
  min-height: 52px; padding: var(--s2) var(--s4);
  border-top: 1px solid var(--gray-2);
  cursor: pointer;
}
.hz-row:first-child { border-top: none; }
.hz-row:active { background: var(--gray-1); }
.hz-row-name { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; }
.hz-row-pill {
  flex: none; font-size: 13px; font-weight: 700; color: var(--white);
  padding: 4px 12px; border-radius: 999px;
}
.hz-pill-yes { background: var(--orange); }
.hz-pill-no { background: var(--gray-7); }
.hz-row-chev { flex: none; width: 18px; height: 18px; color: var(--gray-5); }

/* Collapse affordance on an answered, open card — sits in the header next
   to present-toggle. Same chevron as .hz-row above, so open <-> collapsed
   reads as the same control either way. */
.hz-collapse {
  flex: none; width: 36px; height: 36px; margin-left: var(--s1);
  border: none; background: none; color: var(--gray-5);
  display: flex; align-items: center; justify-content: center;
}
.hz-collapse:active { color: var(--gray-7); }

/* Sticky progress bar — same pinned-bottom pattern as .tb-submit-bar
   (toolbox.js talk screen): position:sticky inside the document's own
   scroll, not a second scroll container. Left = counts, right = the
   step's real Next button, moved in here (see renderStep in dra.js). */
.hz-bar {
  position: sticky; bottom: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  background: var(--white); border-top: 1px solid var(--gray-2);
  box-shadow: 0 -2px 10px rgba(26, 26, 26, 0.08);
  padding: 10px var(--s4); margin-top: 12px;
}
.hz-bar-text { flex: 1 1 auto; min-width: 0; }
.hz-bar-count { font-size: 15px; font-weight: 800; }
.hz-bar-sub { font-size: 13px; color: var(--gray-5); }
.hz-bar-next { flex: 0 0 auto; }
.hz-bar-next .btn { width: auto; min-width: 140px; }

/* The hazards step relocates Back/Next into the section itself, so the
   always-fixed .step-nav footer would just be an empty white strip under
   the sticky bar above — hide it for this one step (renderStep stamps
   .hz-active on .screen only when step.key === "hazards"). */
.screen.hz-active { padding-bottom: var(--s4); }
.screen.hz-active + .step-nav { display: none; }

/* ---- Camera Site Audit — UI-audit fixes (2026-08-24) ----
   The form's readiness feedback rendered with no styling at all (camera.js
   emits .status-line.status-warn / .status-ok but only the .status-over
   variant ever had CSS), and the Yes/No/N-A answer buttons sat at the
   shared 48px instead of the 52px gloved-hand standard. */
.status-line { font-size: 15px; font-weight: 600; padding: var(--s3); border-radius: var(--radius-sm); margin: 6px 0; }
.status-line.status-warn { background: var(--gold-tint); color: #7A5C00; }
.status-line.status-ok { background: var(--green-tint); color: var(--green-dark); }

/* ---- DRA start screen: Option B single start card (2026-08-25) ----
   Replaces the old standalone .date-row bar + .start-list card stack with
   one card holding the date row, a 2x2 grid of start tiles, and a quiet
   Print row. The .date-row/.date-row-label rules above (~2382) stay as-is —
   they're shared with the Toolbox Talk screen (toolbox.js) — this only adds
   an in-card flattened variant on top. The old .start-list/.start-row rules
   above (~2396) are no longer used by this screen but are left in place. */
.date-row.in-card {
  border: none; box-shadow: none; padding: 0; min-height: 48px; margin-bottom: 0;
}
.start-divider { height: 1px; background: var(--gray-2); border: none; margin: 14px calc(-1 * var(--s4)); }
.start-grid-label { font-size: 15px; font-weight: 700; color: var(--gray-7); margin-bottom: 8px; }
.start-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.start-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 96px; padding: 10px; border-radius: var(--radius); border: none;
  font-family: var(--font); font-size: 16px; font-weight: 700; text-align: center; cursor: pointer;
}
.start-tile.btn-primary { background: var(--blue); color: var(--white); }
.start-tile-tint { background: var(--blue-tint); color: var(--blue); }
.start-tile .ic { width: 26px; height: 26px; }
.start-print-row {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 44px; background: var(--white); border: none;
  font-family: var(--font); font-size: 15px; font-weight: 600; color: var(--gray-7); cursor: pointer;
}
.cam-seg .seg-btn { min-height: 52px; }

/* ============================================================
   Review a scanned DRA (dra.js screenDraReviewOne) — read-only tags
   for what the AI read off the sheet. Not .chip: those are 44px
   buttons; nothing here is tappable.
   ============================================================ */
.rv-chip { display: inline-block; padding: 3px 10px; margin: 0 6px 6px 0; border-radius: 14px;
  background: var(--blue-tint); color: var(--blue); font-size: 13px; font-weight: 600; }
.rv-row { margin-bottom: var(--s2); }

/* ============================================================
   Workforce Planning (workforce.js) — everything else on these screens
   is .screen / .card / .section-bar / .chip-row / .field / .banner / the
   job-sheet classes, all reused as-is. Three things here didn't exist
   yet: a list row with a name, a muted sub-line and a right-side value
   (the project list, the Staff/Craft rows, a picker candidate); a status
   pill (Planned / Confirmed / Nobody yet / On this job); and a load bar
   (a candidate's current allocation in the picker).
   ============================================================ */
.wf-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  min-height: var(--tap); padding: 12px 2px; margin: 0; font: inherit;
  background: none; border: none; border-bottom: 1px solid var(--gray-1); cursor: pointer;
}
.wf-row:last-child { border-bottom: none; }
.wf-row:active { background: var(--gray-1); }
.wf-row.wf-past { opacity: 0.55; }
.wf-row-static { cursor: default; }
.wf-row-main { flex: 1; min-width: 0; }
.wf-row-name { display: block; font-weight: 700; font-size: 16px; }
.wf-row-name .jn { font-weight: 800; margin-right: 6px; }
.wf-row-sub { display: block; font-size: 13px; color: var(--gray-5); margin-top: 2px; }
.wf-row-right { flex: none; text-align: right; font-size: 14px; font-weight: 700; color: var(--gray-7); display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

.wf-pill { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 11px; font-weight: 800; letter-spacing: 0.02em; white-space: nowrap; }
.wf-pill-gold { background: var(--gold-tint); color: #7A5C00; }
.wf-pill-green { background: var(--green-tint); color: var(--green-dark); }
.wf-pill-red { background: var(--red-tint); color: var(--red); }
.wf-pill-grey { background: var(--gray-1); color: var(--gray-5); }

.wf-load { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.wf-load-track { flex: 0 0 70px; height: 6px; border-radius: 3px; background: var(--gray-2); overflow: hidden; }
.wf-load-fill { display: block; height: 100%; background: var(--green); border-radius: 3px; }
.wf-load-fill.wf-load-over { background: var(--red); }
.wf-load-text { font-size: 12px; font-weight: 700; color: var(--gray-5); white-space: nowrap; }
.wf-load-text.wf-load-over { color: var(--red); }

/* The one chip behind step 4 (Starting soon). */
.wf-soon { opacity: 0.5; }

/* step 3 — By person: the "Earlier" divider between upcoming and past
   assignments on the person screen. Everything else it needs (rows, pills,
   the load bar) is the same wf- furniture above. */
.wf-divider { font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gray-5); margin: 14px 0 2px; padding-top: 10px; border-top: 1px solid var(--gray-1); }

/* ============================================================
   Daily Quantity Log (Martins) — quantity.js / quantity-admin.js /
   quantity-billing.js. Generic furniture (back-btn, field-row, btn-link,
   the cp-list/photo-strip/recent-row shapes reused from the modal pattern
   concrete.js established) lives here because nothing upstream had defined
   it yet under these names.
   ============================================================ */
.back-btn { background: none; border: 0; color: var(--blue); font-weight: 700; font-size: 15px; padding: 0; margin-bottom: var(--s4); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.field-row { display: flex; gap: var(--s4); flex-wrap: wrap; }
.field-row .field { flex: 1 1 220px; }
.btn-link { background: none; border: 0; color: var(--blue); font-weight: 600; cursor: pointer; padding: 2px 0; font-size: 14px; }
.btn-link:hover { text-decoration: underline; }

.cp-list { max-height: 50vh; overflow-y: auto; margin: var(--s4) 0; }
.cp-list-item { display: block; width: 100%; text-align: left; background: var(--gray-0, #f7f7f7); border: 1px solid var(--gray-1); border-radius: var(--radius-sm, 8px); padding: 10px 12px; margin-bottom: 6px; cursor: pointer; }
.cp-search { width: 100%; padding: 10px 12px; border: 1px solid var(--gray-2); border-radius: var(--radius-sm, 8px); font-size: 15px; margin-bottom: var(--s3); }
.cp-photo-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--s3) 0; }
.cp-photo-thumb { position: relative; width: 74px; height: 74px; border-radius: 8px; overflow: hidden; display: inline-block; }
.cp-photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cp-photo-thumb button { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,.6); color: #fff; border: 0; border-radius: 50%; width: 20px; height: 20px; line-height: 18px; cursor: pointer; }
.cp-recent-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--gray-1); gap: 10px; flex-wrap: wrap; }
.cp-recent-actions { display: flex; gap: 12px; }
.cp-note.qty-import-preview { background: var(--gray-0, #f7f7f7); border-radius: var(--radius-sm, 8px); padding: 12px; margin: var(--s3) 0; }

/* Screen furniture. Back buttons are the app's usual .btn.btn-ghost.btn-sm
   (concrete.js / camera.js / dfow.js) — this just replaces the inline
   width/margin those screens carry. The wide screens (the grid, the items
   list, billing) get the same room as .df-wide / .au-wide. */
.qty-back { width: auto; margin-bottom: 10px; }
@media (min-width: 900px) { .screen.qty-wide { max-width: 980px; } }
.qty-section-head { margin-top: var(--s6); margin-bottom: var(--s3); }
/* Fields that wrap onto their own line on a phone already carry a bottom
   margin — the row gap on top of it left big holes between them. */
.qty-form-screen .field-row, .screen.qty-wide .field-row { row-gap: 0; }
.qty-btn-row { flex-wrap: wrap; margin: var(--s3) 0; }
.qty-btn-row .btn { flex: 1 1 160px; }
.qty-actions { display: flex; flex-direction: column; gap: var(--s3); margin-top: var(--s4); }
/* .qty-actions's own flex-direction:column stretches a child to full width
   by default (align-items:stretch) even with .btn-sm's width:auto — auto
   still triggers stretch. Anything explicitly .btn-sm in here (Add job,
   Save item, Cancel — 2026-09-24 fix pass) opts out to its own content width. */
.qty-actions .btn-sm { align-self: flex-start; }
.qty-link-danger { color: var(--red); }
.qty-past { background: var(--white); border: 1px solid var(--gray-2); border-radius: var(--radius); padding: 0 var(--s4); }
.qty-past .cp-recent-row { border-bottom-color: var(--gray-2); }
.qty-past .cp-recent-row:last-child { border-bottom: 0; }

/* Day / Night — the shared .seg control, "on" in the app blue. */
.qty-seg .seg-btn.qty-seg-on { background: var(--blue); border-color: var(--blue); color: var(--white); }
.qty-layout-toggle { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: var(--s3); }
/* Crew Shift + View on one row; wraps under each other on a narrow phone. */
.qty-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s3) var(--s4); flex-wrap: wrap; margin-bottom: var(--s3); }
.qty-tgroup label { display: block; font-weight: 600; margin-bottom: 4px; }
.qty-btns { display: flex; gap: 8px; }
.qty-btns .btn { min-width: 72px; }
/* Item picker: the description leads, line / item # / qty underneath. */
.qty-pick-desc { display: block; }
.qty-pick-meta { display: block; margin-top: 2px; }
/* The Summary's "Only items with quantity in this period" / "All contract
   items" — same control, labels long enough to wrap on a phone. */
/* Compact — matches .btn-sm's height/font rather than the seg control's
   phone-sized default (2026-09-24 fix pass: the two-line "Only items with
   quantity this month" button was oversized and out of line with the rest
   of the toolbar). Labels are short enough now to never wrap. */
.qty-bill-filter { margin-top: var(--s3); }
.qty-bill-filter .seg-btn { font-size: 14px; padding: 0 var(--s3); min-height: 40px; line-height: 1; white-space: nowrap; display: inline-flex; align-items: center; }
.qty-bill-hidden { margin: 0 0 var(--s2); }
.qty-billing .qty-grid-table td.qty-bill-empty { text-align: left; color: var(--gray-7); }

/* Tables scroll sideways inside their own box (au-gridwrap's convention)
   instead of being clipped by .screen's overflow-x: clip. */
.qty-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--white); border: 1px solid var(--gray-3); border-radius: var(--radius-sm); margin: var(--s3) 0; }
.qty-grid-table { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--white); }
.qty-grid-table th, .qty-grid-table td { border: 1px solid var(--gray-2); padding: 6px 8px; text-align: left; vertical-align: top; }
.qty-grid-table th { background: var(--gray-1); font-weight: 700; color: var(--ink); vertical-align: bottom; }
.qty-table-wrap .qty-grid-table tr > :first-child { border-left: 0; }
.qty-table-wrap .qty-grid-table tr > :last-child { border-right: 0; }
.qty-table-wrap .qty-grid-table thead tr:first-child > * { border-top: 0; }
.qty-table-wrap .qty-grid-table tbody tr:last-child > *, .qty-table-wrap .qty-grid-table tfoot tr:last-child > * { border-bottom: 0; }
.qty-grid-table .qty-desc-cell { min-width: 160px; }
.qty-grid-table tfoot td { background: var(--gray-1); }
.qty-grid-table td:nth-child(2) { white-space: nowrap; }
.qty-billing .qty-grid-table td:nth-child(n+4), .qty-billing .qty-grid-table th:nth-child(n+4) { text-align: right; }
.qty-billing .qty-grid-table td:nth-child(n+4) { white-space: nowrap; }
.qty-billing .qty-grid-table tfoot td:first-child { text-align: left; }

/* The daily sheet's grid — the paper form's 7 columns with its ruled lines:
   darker rules than the office tables, a centred header row, and the typed
   cells drawn as blanks to fill in. */
.qty-paper { font-size: 14px; min-width: 720px; }
.qty-paper th, .qty-paper td { border-color: var(--gray-3); }
.qty-paper th { text-align: center; font-size: 12.5px; }
.qty-paper .qty-num-cell { text-align: center; white-space: nowrap; }
.qty-paper .qty-input-cell { padding: 4px; }
.qty-paper td.qty-input-cell:nth-child(5) { width: 32%; min-width: 170px; }
.qty-paper td.qty-input-cell:nth-child(6) { width: 96px; }
.qty-paper .qty-grid-sub td { border-top: 0; background: var(--gray-1); padding: 3px 8px; }
.qty-grid-sub .qty-line-actions { float: right; display: inline-flex; gap: 14px; }
.qty-cell-input { width: 100%; min-height: 36px; border: 1px solid var(--gray-2); border-radius: 4px; background: var(--white); padding: 4px 6px; font-size: 14px; color: var(--ink); }
.qty-cell-input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 1px var(--blue); }
.qty-paper .qty-qty-input { min-width: 70px; }
.qty-todate { font-size: 12px; color: var(--gray-5); }
.qty-item-inactive { opacity: 0.5; }

/* Phone cards — white cards like concrete.js's .cp-line rows. */
.qty-line-card { background: var(--white); border: 1.5px solid var(--gray-2); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; }
.qty-line-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 16px; margin-bottom: 2px; }
.qty-line-card-desc { font-size: 15px; color: var(--ink); }
.qty-line-card-meta { font-size: 13px; color: var(--gray-5); margin-bottom: var(--s3); }
.qty-line-card .field { margin-bottom: var(--s3); }
.qty-line-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.qty-line-card .qty-cell-input { min-height: var(--tap); padding: var(--s3); font-size: 18px; border: 1.5px solid var(--gray-3); border-radius: var(--radius-sm); }

/* Photos — concrete.js's tile grid, with a little room under it. */
.qty-photos { margin: var(--s2) 0 var(--s4); }

/* Signatures sit in the shared .sig-block card: name, then the pad. */
.qty-sig-label { display: block; font-size: 15px; font-weight: 700; color: var(--gray-7); margin-bottom: var(--s1); }

/* Modals (item picker, line photos) */
.qty-item-modal .cp-list-item .sub { display: block; margin: 2px 0 0; font-size: 14px; }
.qty-item-modal .cp-list-item .sub + .sub { font-size: 13px; }
.qty-modal-sub { margin-bottom: var(--s3); }

/* "More" — reveals the one thing folded away (the Patches link) inline
   rather than opening a menu; qty-more-hidden starts [hidden] in markup. */
.qty-more-hidden { display: inline; }

/* Patch caption ("n patches · X sq ft") — same small grey line the to-date
   text already uses, sitting right beside it. */
.qty-patch-caption { font-size: 12px; color: var(--gray-5); margin-left: 10px; }
.qty-line-card .qty-patch-caption { display: block; margin: 2px 0 0; }

/* The patch worksheet modal (owner, 2026-09-24) — a wider sheet than the
   photo/item modals so the table doesn't cramp on a phone turned sideways. */
.qty-patch-modal .cp-sheet { max-width: 640px; }
.qty-patch-table th, .qty-patch-table td { text-align: center; padding: 4px 6px; }
.qty-patch-table td:first-child, .qty-patch-table th:first-child { text-align: left; }
.qty-patch-table input.qty-cell-input { min-width: 64px; text-align: center; }
.qty-patch-total-row td { font-weight: 700; background: var(--gray-1); }
.qty-patch-table + .btn { margin-top: var(--s2); }
#qtyPatchAnodeAction, #qtyPatchGroutAction { margin-top: var(--s2); }
#qtyPatchAnodeAction .btn, #qtyPatchGroutAction .btn { width: 100%; }

/* Import preview — the counts, then the Cancel / Apply row, stacked. The
   shared .cp-note is a one-line flex row, which laid this out sideways. */
.cp-note.qty-import-preview { display: block; }
.qty-import-preview p { margin: 0 0 6px; }
.qty-import-preview .sub { font-size: 14px; }

/* <input type="date"> (the Summary's From / To) isn't in the shared .field
   input list; match it. */
.qty-billing .field input[type="date"] {
  display: block; width: 100%; min-width: 0; max-width: 100%; min-height: var(--tap);
  padding: var(--s3); font-size: 18px; border: 1.5px solid var(--gray-3);
  border-radius: var(--radius-sm); background: var(--white); color: var(--ink);
}

/* Header fields filled from the sign-in and the job chip (Prepared By,
   Project Name, Day of Week, Project No., MCC Project No.) are locked —
   drawn like the app's other read-only inputs (.df-res-row input:disabled):
   grey fill, grey text, no focus ring, no caret. */
.qty-form-screen .field input[readonly] {
  background: var(--gray-1); color: var(--gray-7); border-color: var(--gray-2);
  cursor: default; caret-color: transparent;
}
.qty-form-screen .field input[readonly]:focus { border-color: var(--gray-2); box-shadow: none; outline: none; }

/* Past 100% of the contract quantity — --gold-ink, the app's amber for
   "somebody needs to look at this" (see .df-warn). */
.qty-todate.qty-over { color: var(--gold-ink); font-weight: 700; }
.qty-over-tag { display: inline-block; vertical-align: top; background: var(--gold-tint); border-radius: 4px; padding: 0 5px; }
.qty-over-tag .bi-tr { color: inherit; opacity: 0.8; }
.qty-billing .qty-grid-table td.qty-over { color: var(--gold-ink); background: var(--gold-tint); font-weight: 700; }

/* Jobs & Items. The one-item add/edit form folds behind "Add item" / a
   row's "Edit" at every width now (2026-09-24 fix pass — it used to open
   by default above 560px). iPad and wider: items in the bordered table.
   A phone: items become cards. */
.qty-collapse:not(.qty-open) { display: none; }
/* Edit scrolls the item form into view — clear of the sticky app header. */
.qty-collapse { scroll-margin-top: 96px; }
.qty-item-cards { display: none; }
.qty-item-actions { white-space: nowrap; }
.qty-items-table .qty-item-actions .btn-link + * { margin-left: 12px; }
.qty-item-card { background: var(--white); border: 1.5px solid var(--gray-2); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 8px; }
.qty-item-card-head { font-size: 15px; }
.qty-item-card-desc { font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.qty-item-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.qty-item-card-meta { font-size: 13px; color: var(--gray-5); }
.qty-item-card .qty-item-actions { display: inline-flex; align-items: center; gap: 16px; }
.qty-item-card .qty-item-actions .btn-link { font-size: 15px; padding: 6px 0; }
@media (max-width: 560px) {
  .qty-items-table { display: none; }
  .qty-item-cards { display: block; }
}

/* "Needs a quantity" fix rows in the import preview — iPad and wider get
   the bordered table, a phone gets qty-item-cards. Same convention as the
   Jobs & Items list just above: both markups render, this media query
   picks which shows. */
.qty-fix { margin: var(--s4) 0; }
.qty-fix-cards { display: none; }
.qty-fix-qty, .qty-fix-date { min-height: var(--tap); border: 1px solid var(--gray-2); border-radius: 4px; background: var(--white); padding: 4px 6px; font-size: 14px; color: var(--ink); width: 100%; box-sizing: border-box; }
.qty-fix-qty:focus, .qty-fix-date:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 1px var(--blue); }
.qty-fix-table th:last-child, .qty-fix-table td:last-child { min-width: 96px; }
.qty-fix-card .qty-item-card-desc { margin-bottom: 4px; }
.qty-fix-qty-label { display: block; font-size: 13px; color: var(--gray-5); margin-top: 6px; }
.qty-fix-qty-label .qty-fix-qty { display: block; margin-top: 2px; font-size: 18px; padding: var(--s3); }
@media (max-width: 560px) {
  .qty-fix-table-wrap { display: none; }
  .qty-fix-cards { display: block; }
}

/* ============================================================
   Summary (was Monthly Billing) — desktop page (owner, 2026-09-24: "assume it's done on
   the computer, use the space of the screen, controls across the top,
   more like the Job Resources tab"). Below 1100px the toolbar wraps and
   two columns (Item #, Unit Price) drop out; below 768px this rides the
   plain .qty-wide / .qty-table-wrap rules above, same as before this page
   existed — nothing here narrows further than that.
   ============================================================ */
.qty-bill-screen { overflow-x: visible; }
@media (min-width: 1100px) {
  .screen.qty-bill-screen { max-width: none; width: 100%; box-sizing: border-box; padding-left: 24px; padding-right: 24px; }
}

.qty-bill-header { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3) var(--s4); flex-wrap: wrap; margin-bottom: var(--s3); }
.qty-bill-title { margin: 0; }
.qty-bill-exports { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qty-bill-exports .btn-link { font-size: 14px; padding: 4px 0; }
.qty-bill-export-sep { color: var(--gray-4); }

/* Job / Dates / filter / search — one line at >=1100px (wf-screen.js's
   toolbar convention: quiet controls in a row, wrapping under each other
   below that). */
.qty-bill-toolbar { display: flex; align-items: flex-end; gap: var(--s3) var(--s4); flex-wrap: wrap; margin-bottom: var(--s4); }
.qty-bill-toolbar .field { margin-bottom: 0; }
.qty-bill-tb-job { flex: 1 1 220px; min-width: 180px; }
.qty-bill-tb-month { flex: 0 0 auto; }
.qty-bill-month-row { display: flex; align-items: center; gap: 6px; }
.qty-bill-month-row input[type="date"] { width: auto; min-width: 140px; }
.qty-bill-range-to { color: var(--gray-5); font-size: 14px; font-weight: 600; }
.qty-bill-tb-search { flex: 1 1 240px; min-width: 180px; }
.qty-bill-toolbar .qty-bill-filter { margin-top: 0; align-self: flex-end; }
.qty-bill-hidden { flex-basis: 100%; margin: 0; }
@media (min-width: 1100px) {
  .qty-bill-toolbar { flex-wrap: nowrap; }
  .qty-bill-tb-job, .qty-bill-tb-search { min-width: 0; }
  .qty-bill-hidden { flex-basis: auto; margin-left: auto; white-space: nowrap; }
}

/* Summary tiles — Contract value / Billed to date / This period / Previous
   / Sheets in this period, all read off the same SUMMARY the table uses. */
.qty-bill-tiles { display: grid; grid-template-columns: repeat(2, minmax(140px, 1fr)); gap: var(--s3); margin-bottom: var(--s4); }
@media (min-width: 700px) { .qty-bill-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.qty-bill-tile { background: var(--white); border: 1px solid var(--gray-2); border-radius: var(--radius-sm); padding: var(--s3); display: flex; flex-direction: column; gap: 4px; }
.qty-bill-tile-label { font-size: 12.5px; color: var(--gray-5); font-weight: 600; }
.qty-bill-tile-val { font-size: 20px; font-weight: 700; color: var(--ink); }
.qty-bill-tile-sub { display: inline-block; margin-left: 6px; font-size: 13px; font-weight: 600; color: var(--gray-5); }

/* The table itself — sticky header, sticky (pinned) totals row, right-
   aligned numbers, sortable headers, an amber pill on an over-contract
   % complete, and an expanding detail row under whichever row was clicked. */
.qty-bill-table-wrap { max-height: min(64vh, 620px); overflow: auto; }
.qty-bill-table { table-layout: fixed; font-size: 13px; }
.qty-bill-table th, .qty-bill-table td { padding: 4px 6px; }
.qty-bill-table thead th { position: sticky; top: 0; z-index: 1; white-space: normal; line-height: 1.2; vertical-align: bottom; }
.qty-bill-table tfoot td { position: sticky; bottom: 0; z-index: 1; }
.qty-bill-table th.qty-bill-sort { cursor: pointer; user-select: none; }
.qty-bill-table th.qty-bill-sort:hover { background: var(--gray-2); }
.qty-bill-row { cursor: pointer; }
.qty-bill-row:hover { background: var(--blue-tint); }
/* Description is the ONLY column allowed to shrink/ellipsize — every
   numeric or code column (Item #, dollars, quantities, %) gets its own
   natural nowrap width instead, so a value never truncates (2026-09-24
   fix pass: "513SD…", "$150,0…" etc. were unreadable). */
.qty-bill-table td.qty-bill-c-desc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qty-bill-table [class^="qty-bill-c-"]:not(.qty-bill-c-desc) { text-align: right; white-space: nowrap; overflow: visible; }
.qty-bill-table .qty-bill-c-line, .qty-bill-table .qty-bill-c-item, .qty-bill-table .qty-bill-c-unit { text-align: left; }
.qty-bill-table tfoot td:first-child { text-align: left; }
/* Widths sized to the widest real value this table shows (an item code
   like "513SD20-0001", "$1,852,500.00", "1235.0%" over-contract) plus a
   safety margin — Description takes whatever is left over. */
.qty-bill-c-line { width: 50px; }
.qty-bill-c-item { width: 110px; }
.qty-bill-c-unit { width: 36px; }
.qty-bill-c-cqty { width: 76px; }
.qty-bill-c-prev, .qty-bill-c-mo { width: 64px; }
.qty-bill-c-todate { width: 66px; }
.qty-bill-c-pct { width: 70px; }
.qty-bill-c-price { width: 98px; }
.qty-bill-c-amo, .qty-bill-c-aprev { width: 122px; }
.qty-bill-c-atodate { width: 128px; }
/* % complete over 100% of contract — the same amber as .qty-over, drawn as
   a pill (the app's .wf-pill convention) rather than a plain tinted cell. */
.qty-bill-pill { border-radius: 12px; }
.qty-bill-empty { text-align: left; color: var(--gray-7); }

/* Row-click detail: every line this item has for the period (or, with
   "Show all dates", every date loaded), sorted by date, a text-link PDF
   per line. */
.qty-bill-detail-row td { background: var(--gray-0, #f7f7f7); cursor: default; padding: var(--s3) var(--s4); }
.qty-bill-detail-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3) var(--s4); flex-wrap: wrap; margin-bottom: var(--s2); }
.qty-bill-showall { font-size: 13px; font-weight: 600; color: var(--gray-7); display: inline-flex; align-items: center; gap: 6px; }
.qty-bill-detail-table { background: var(--white); }
.qty-bill-detail-table th:nth-child(4), .qty-bill-detail-table td:nth-child(4) { text-align: right; }

/* iPad landscape and the low end of desktop: the toolbar already wraps
   (no rule needed below 1100px, .qty-bill-toolbar's own flex-wrap does
   it); these two columns are the ones spec'd to drop first so the rest
   keeps its room and nothing scrolls sideways. */
@media (max-width: 1099px) {
  .qty-bill-c-item, .qty-bill-c-price { display: none; }
}

/* Daily Quantity Log home — desktop header strip (D1, 2026-09-24): Home
   back button left, Jobs & Items / Monthly Billing right, when the screen
   picked "desktop" (quantity.js's screenQuantity, same window-width check
   as Grid/Cards). On phone the actions render in their old spot below
   New sheet / Copy previous instead — see quantity.js for which. */
.qty-home-header { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s2); }
.qty-home-header .qty-back { margin-bottom: 0; }
.qty-home-header .qty-home-actions { margin: 0; flex-wrap: nowrap; }
.qty-home-desktop .qty-home-actions .btn { flex: 0 0 auto; width: auto; }
/* Desktop New sheet / Copy previous — normal-sized, side by side, not the
   phone's two full-width btn-xl blocks (2026-09-24 fix pass). */
.qty-home-new-row { gap: var(--s3); }
.qty-home-new-row .btn { flex: 0 0 auto; width: auto; }
/* Desktop Past sheets — a full-width table instead of the phone's stacked
   cp-recent-row list. */
.qty-home-past-table { table-layout: auto; }
.qty-home-past-lines { text-align: right; }

/* Past sheets, desktop (owner, 2026-09-25: "this table is hard to read" —
   columns stretched the full width of a 1900px window). Capped and
   left-aligned instead of riding qty-bill-screen's full-width gutter;
   .qty-bill-table's own padding/font-size is overridden here (matching
   specificity, later in the sheet) rather than relying on source order. */
.qty-home-past-count { margin: 0 0 var(--s2); }
.qty-home-past-wrap { max-width: 1040px; margin-left: 0; margin-right: auto; }
.qty-home-past-table th, .qty-home-past-table td { padding: 9px 10px; font-size: 13.5px; }
.qty-home-past-table thead th { position: sticky; top: 0; }
.qty-home-past-table tbody tr:nth-child(even) { background: var(--gray-1); }
.qty-home-past-table tbody tr:hover { background: var(--blue-tint); }
.qty-home-past-table th:nth-child(1), .qty-home-past-table td:nth-child(1) { width: 110px; }
.qty-home-past-table th:nth-child(2), .qty-home-past-table td:nth-child(2) { width: 70px; }
.qty-home-past-table th:nth-child(3), .qty-home-past-table td:nth-child(3) { width: auto; }
.qty-home-past-table th:nth-child(4), .qty-home-past-table td:nth-child(4) { width: 60px; text-align: right; }
.qty-home-past-table th:nth-child(5), .qty-home-past-table td:nth-child(5) { width: 180px; text-align: right; white-space: nowrap; }
.qty-home-past-sep { color: var(--gray-4); margin: 0 8px; }

/* The in-page title on all four Quantity screens (home, Jobs & Items,
   Monthly Billing, the sheet form) — hidden once the header bar is showing
   its own title (PZ.setHeaderTitle, styles.css .hdr-title) at >=1100px, so
   there is exactly one "Daily Quantity Log" / "Jobs & Items" / "Monthly
   Billing" on screen at a time. Below that it's the only title there is,
   same as before this existed. */
@media (min-width: 1100px) {
  .qty-h1-narrow { display: none; }
}

/* Jobs & Items — desktop tabs (C, 2026-09-24), same visual language as
   Monthly Billing: qty-bill-screen (full width + gutter at >=1100px),
   qty-bill-header/-title (the header strip) and qty-bill-sort (sortable
   column headers) are reused as-is — only the tab bar and panel show/hide
   are new. */
/* Text-style tabs with an underline active-state indicator (2026-09-24 fix
   pass) — .seg-btn's base style is a filled, equal-width box (border,
   min-height 48, flex:1), which is right for Day/Night and the billing
   filter but wrong here; this overrides all of it for .qty-admin-tabs. */
.qty-admin-tabs { display: flex; gap: var(--s4); border-bottom: 1px solid var(--gray-2); margin: var(--s3) 0 var(--s4); }
.qty-admin-tabs .seg-btn {
  flex: 0 0 auto; min-height: 40px; border: none; border-bottom: 2px solid transparent;
  border-radius: 0; background: transparent; color: var(--gray-5);
  font-size: 15px; font-weight: 600; padding: 0 2px var(--s2); margin-bottom: -1px;
}
.qty-admin-tabs .seg-btn:hover { color: var(--ink); }
.qty-admin-tabs .seg-btn.qty-seg-on { background: transparent; border-color: transparent; border-bottom-color: var(--blue); color: var(--blue); font-weight: 700; }
.qty-admin-panel { display: none; }
.qty-admin-panel.qty-admin-panel-on { display: block; }
.qty-admin-jobpick { flex: 0 1 360px; margin-bottom: 0; }
.qty-admin-items-table th.qty-bill-sort:hover { background: var(--gray-2); }
.qty-admin-items-table { table-layout: auto; }
/* Right-aligned, formatted Contract Qty / Unit Price, Active as a tinted
   pill rather than plain text (2026-09-24 fix pass). */
.qty-admin-c-qty, .qty-admin-c-price { text-align: right; white-space: nowrap; }
.qty-admin-c-active { text-align: center; white-space: nowrap; }
.qty-admin-c-measured { white-space: nowrap; }
.qty-admin-pill { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 11px; font-weight: 800; letter-spacing: 0.02em; background: var(--gray-1); color: var(--gray-5); }
.qty-admin-pill-on { background: var(--green-tint); color: var(--green-dark); }

/* Contract items toolbar (2026-09-24 fix pass): Job picker on the left,
   Search + Download/Upload template + Add item — all compact, right-
   aligned, reusing qty-bill-toolbar's one-line-at->=1100px layout. */
.qty-admin-items-toolbar { align-items: flex-end; }
/* All four actions stay on the toolbar's own line together (2026-09-24 fix
   pass: this container's own flex-wrap:wrap was dropping "Add item" onto a
   second line by itself even though the outer .qty-bill-toolbar had room) —
   the search box is what shrinks first if space is tight. */
.qty-admin-toolbar-actions { display: flex; align-items: flex-end; gap: var(--s2); flex-wrap: nowrap; margin-left: auto; }
.qty-admin-search { width: auto; flex: 1 1 160px; min-width: 110px; margin: 0; }
.qty-admin-toolbar-actions .btn { width: auto; flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 1099px) {
  .qty-admin-toolbar-actions { flex-wrap: wrap; }
}

/* Previous quantities tab: a normal-sized "Choose file" button with help
   text beside it (wraps under it below ~700px, same field-row convention
   the rest of the app uses). */
.qty-admin-prevqty-row { display: flex; align-items: center; gap: var(--s3) var(--s4); flex-wrap: wrap; margin-bottom: var(--s3); }
.qty-admin-prevqty-row .btn { width: auto; flex: 0 0 auto; }

/* crew check — 2026-09-28, crew check — sql/migrations/workforce_crew_need_check.sql
   Check Your Job's weekly crew-check card, right after .team-card (reuses
   its wrapper). Rows wrap rather than scroll — this has to sit flat on a
   375px phone same as the team card above it. */
.cc-crew-groups { margin-bottom: 4px; }
.cc-crew-group + .cc-crew-group { margin-top: 12px; }
.cc-crew-heading { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; color: var(--gray-5); margin-bottom: 4px; }
.cc-person-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 7px 0; border-top: 1px solid var(--gray-2); }
.cc-crew-heading + .cc-person-row { border-top: none; }
.cc-person-main { flex: 1 1 160px; min-width: 0; }
.cc-person-name { display: block; font-size: 14px; color: var(--ink); }
/* 2026-09-28 — sql/migrations/workforce_crew_need_check.sql: a temp
   agency person's own small muted tag, inline right after the name —
   same quiet look as the admin console's .wf-temptag (wf-temp.js). */
.crewcheck-temp { font-size: 11px; font-weight: 700; color: var(--gray-5); background: var(--gray-1); border-radius: 999px; padding: 1px 7px; vertical-align: middle; }
.cc-person-role { display: block; font-size: 12px; color: var(--gray-5); }
.cc-person-dates { flex: 0 0 auto; font-size: 12px; color: var(--gray-5); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cc-pill { flex: 0 0 auto; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.cc-pill-new { background: var(--gold); color: var(--ink); }
.cc-pill-muted { background: var(--gray-1); color: var(--gray-5); }
.cc-status { font-size: 13px; color: var(--gray-5); margin: 10px 0 0; }
.cc-status-wrong { color: var(--gold-ink); font-weight: 600; }
.cc-status-note { font-size: 13px; color: var(--ink); margin: 4px 0 0; font-style: italic; }
.cc-status-handled { font-size: 12.5px; color: var(--gray-5); margin: 4px 0 0; }
.cc-status-muted { font-size: 13px; color: var(--gray-5); margin: 10px 0 0; }
.cc-actions { display: flex; gap: var(--s3); margin-top: var(--s3); flex-wrap: wrap; }
.cc-actions .btn { flex: 1 1 auto; min-width: 140px; }
/* 2026-09-30: Check Your Job's cards sit in three real columns (status.js
   loadAndRender draws them). Each .st-col stacks its own cards top to bottom,
   so a short card never leaves a hole beside a tall one — the old grid put
   the five cards into rows and the second row was two cards and a gap.
     phone (< 720px)    one column, in source order
     tablet (720–1119)  two columns: score + crews | team + crew list, and the
                        activity log full width underneath
     desktop (1120+)    score + crews | team + crew list | activity log
   The Back button, the heading, the job chip and the week nav stay full width
   above. An empty card (no crew-check schema, no activity) leaves no gap. */
.st-cols { display: grid; gap: var(--s4); align-items: start; grid-template-columns: minmax(0, 1fr); }
.st-col { min-width: 0; display: flex; flex-direction: column; gap: var(--s4); }
.st-col-item { min-width: 0; }
.st-col-item:empty, .st-col-item:has(> #crewCheckCard:empty), .st-col-item:has(> #stActivity:empty) { display: none; }
.st-col-log:has(> .st-col-item > #stActivity:empty) { display: none; }
@media (min-width: 720px) {
  .st-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-col-log { grid-column: 1 / -1; }
}
@media (min-width: 1120px) {
  .st-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .st-col-log { grid-column: auto; }
}
.st-col-item > .li-head, .st-col-item > .cc-card, .st-col-item > .team-card,
.st-col-item > #crewCheckCard > .team-card, .st-col-item > #stActivity > .team-card { margin-top: 0; margin-bottom: 0; }
@media (min-width: 760px) { .screen.st-wide { max-width: 1500px; } }
.qty-admin-prevqty-help { margin: 0; flex: 1 1 320px; }

/* job people
   2026-09-29 — sql/migrations/workforce_job_requests.sql
   job-people.js / job-people-add.js: the sheet a tap on a person (or "+ Add")
   opens from the crew card and the project team card, and the taps and pills
   on those two cards. Bottom sheet on a phone, centred 520px card from 700px.
   Sits above the header and above .job-sheet-wrap (1000). */
.jp-wrap {
  position: fixed; inset: 0; z-index: 1050; background: rgba(26, 26, 26, 0.5);
  display: flex; align-items: flex-end; justify-content: center;
}
.jp-sheet {
  background: var(--white); width: 100%; max-width: 100%; max-height: 88vh;
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0; box-shadow: var(--shadow-lg);
}
@media (min-width: 700px) {
  .jp-wrap { align-items: center; }
  .jp-sheet { width: 520px; border-radius: var(--radius); }
}
.jp-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: var(--s3) var(--s4) var(--s2); }
.jp-head h2 { margin: 0; font-size: 20px; min-width: 0; overflow-wrap: anywhere; }
.jp-close {
  flex: 0 0 auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  font-size: 30px; line-height: 1; color: var(--gray-7); border-radius: var(--radius-sm);
}
.jp-close:active { background: var(--gray-1); }
.jp-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--s4) var(--s6); }
.jp-who { margin: 0 0 var(--s2); font-size: 14px; color: var(--ink); }
.jp-mode { margin: 0 0 var(--s3); font-size: 13px; color: var(--gray-5); }
.jp-dates-read { margin: 0 0 var(--s2); font-size: 14px; color: var(--gray-7); font-variant-numeric: tabular-nums; }
.jp-answer { margin: 0 0 var(--s3); font-size: 13px; color: var(--gray-5); }
.jp-ask { margin: 0 0 var(--s3); padding: var(--s3); background: var(--gold-tint); border: 1px solid var(--gold); border-radius: var(--radius-sm); }
.jp-ask b { display: block; font-size: 14px; color: var(--ink); }
.jp-ask span { display: block; font-size: 13px; color: var(--gold-ink); margin-top: 2px; }
.jp-ask .btn-link { margin-top: var(--s2); }
.jp-dates { display: grid; grid-template-columns: 1fr; gap: 0 var(--s3); }
@media (min-width: 380px) { .jp-dates { grid-template-columns: 1fr 1fr; } }
.jp-err { margin: 0 0 var(--s3); font-size: 14px; font-weight: 600; color: var(--red); }
.jp-actions { display: flex; flex-direction: column; align-items: stretch; gap: var(--s2); margin-top: var(--s3); }
.jp-actions .btn-link { align-self: center; min-height: 40px; }
.jp-back { display: inline-block; min-height: 36px; margin-bottom: var(--s2); }
.jp-empty { margin: var(--s3) 0; font-size: 14px; color: var(--gray-5); }
.jp-choice {
  display: block; width: 100%; min-height: var(--tap); margin-bottom: var(--s2); padding: var(--s3) var(--s4);
  text-align: left; font: inherit; font-size: 17px; font-weight: 700; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--gray-3); border-radius: var(--radius); cursor: pointer;
}
.jp-choice:hover { border-color: var(--blue); }
.jp-choice:active { filter: brightness(0.96); }
.jp-list { margin-bottom: var(--s2); }
.jp-row {
  display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: var(--tap);
  padding: var(--s2) 2px; text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  background: none; border: 0; border-bottom: 1px solid var(--gray-2);
}
.jp-row:active { background: var(--gray-1); }
.jp-row:disabled { opacity: 0.55; cursor: default; }
.jp-row-main { flex: 1 1 auto; min-width: 0; }
.jp-row-name { display: block; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.jp-row-sub { display: block; font-size: 12.5px; color: var(--gray-5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jp-row-right { flex: 0 0 auto; font-size: 12.5px; font-weight: 700; color: var(--green-dark); text-align: right; }
.jp-row-right.jp-muted { color: var(--gray-5); font-weight: 600; }
.jp-row:focus-visible, .jp-choice:focus-visible, .jp-close:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
/* a new crew: tick people from the list, a Foreman radio beside each ticked one; a crew request's labour lines */
.jp-multi { cursor: default; }
.jp-multi-pick { display: flex; align-items: center; gap: var(--s3); flex: 1 1 auto; min-width: 0; cursor: pointer; }
.jp-multi-pick input { width: 20px; height: 20px; flex: 0 0 auto; }
.jp-multi-fm { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.jp-lines { width: 100%; border-collapse: collapse; margin-bottom: var(--s1); }
.jp-lines th { text-align: left; font-size: 12.5px; font-weight: 700; color: var(--gray-5); padding: 0 4px 4px 0; }
.jp-lines td { padding: 0 4px 6px 0; }
.jp-lines select { width: 100%; }
.jp-lines input[type=number] { width: 72px; }
.jp-line-x { font-size: 20px; line-height: 1; padding: 4px 8px; }
/* the trade search box on a crew request line: type, the matches drop down under the box */
.jp-tbox { position: relative; }
.jp-tbox .jp-tq { width: 100%; box-sizing: border-box; }
.jp-tlist { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; background: var(--white); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow-lg); max-height: 220px; overflow-y: auto; }
.jp-topt { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; font: inherit; color: var(--ink); cursor: pointer; }
.jp-topt:hover, .jp-topt:focus { background: var(--gray-1); outline: none; }

/* the taps on the crew card and the project team card */
.cc-person-tap {
  width: 100%; min-height: 44px; text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: none; border-left: 0; border-right: 0; border-bottom: 0;
}
.cc-person-tap:active, .tm-tap:active { filter: brightness(0.94); }
.cc-person-tap:focus-visible, .tm-tap:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.cc-chev, .tm-chev { flex: 0 0 auto; color: var(--gray-5); font-size: 20px; font-weight: 400; line-height: 1; }
.tm-chev { margin-left: 8px; }
.tm-tap {
  width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: none; border: 0; border-bottom: 1px solid var(--gray-1);
}
.cc-pill-ask { background: none; border: 1px solid var(--gold); color: var(--gold-ink); }
.tm-role .cc-pill-ask { display: inline-block; margin-left: 6px; }
.btn.cc-add { margin-top: var(--s3); min-height: 44px; font-size: 15px; }
.tm-addbtn { margin-top: var(--s2); }
/* 2026-09-29 (later): the Add / Request pair, side by side, wrapping to two
   lines on a narrow phone. */
.cc-addrow { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.cc-addrow .btn { flex: 1 1 auto; width: auto; margin-top: 0; }
.cc-addrow.tm-addrow { margin-top: var(--s2); }
/* 2026-09-29 — sql/migrations/division_crew_card.sql: "Crews per day" now has
   two buttons (Copy last week, Use Job Resources); the second sits right
   against the first instead of taking its own share of the free space. */
.cc-head > .btn + .btn { margin-left:0; }

/* "Asked for": people and crews somebody asked the planner for */
.jp-asked { margin-top: var(--s3); }
.jp-asked-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: 7px 0; border-top: 1px solid var(--gray-2); }
.jp-asked-row > div:first-child { min-width: 0; }
.jp-asked-main { display: block; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.jp-asked-sub { display: block; font-size: 12px; color: var(--gray-5); }
.jp-asked-right { flex: 0 0 auto; font-size: 12.5px; color: var(--gray-5); text-align: right; }
.jp-pill { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--gold-tint); color: var(--gold-ink); }
.jp-pill-accepted { background: var(--green-tint); color: var(--green-dark); }
.jp-pill-declined { background: var(--red-tint); color: var(--red); }
/* Billing detail: the patch sizes under a worksheet line's quantity. */
.qty-bill-patches { font-size: 12px; white-space: normal; }

/* ============================================================
   Summary: Status / Daily grid views, pay period, paid boxes
   (2026-09-29, from the office tracking workbook). Scoped qty-*.
   ============================================================ */
.qty-bill-viewbar { display: flex; align-items: center; gap: var(--s2) var(--s4); flex-wrap: wrap; margin-bottom: var(--s3); }
.qty-bill-view { margin-top: 0; }
.qty-bill-view .seg-btn { font-size: 14px; padding: 0 var(--s3); min-height: 40px; line-height: 1; white-space: nowrap; display: inline-flex; align-items: center; }
.qty-bill-period { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--gray-7); margin: 0; }
.qty-bill-period input[type="number"] { width: 64px; min-height: 36px; padding: 0 6px; text-align: center; }
.qty-bill-savenote { min-width: 64px; }
.qty-bill-view-extra { margin-left: auto; display: inline-flex; align-items: center; gap: var(--s2); }
.qty-bill-view-extra .sub { margin: 0; }

/* Seven tiles across on a desktop (five before Paid / Installed-not-paid). */
@media (min-width: 1100px) {
  .qty-bill-tiles { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .qty-bill-tile-val { font-size: 17px; }
  .qty-bill-tile-sub { margin-left: 4px; font-size: 12px; }
}

/* Paid columns in the Summary table. */
.qty-bill-c-paid { width: 84px; }
.qty-bill-c-ptd { width: 76px; }
/* Room for a six-figure quantity (297,081.66) in the Summary's quantity columns
   now that two paid columns share the row; the amounts and the price give a
   few pixels back. */
.qty-bill-c-item { width: 104px; }
.qty-bill-c-cqty { width: 78px; }
.qty-bill-c-prev, .qty-bill-c-mo, .qty-bill-c-todate { width: 84px; }
.qty-bill-c-price { width: 80px; }
.qty-bill-c-pct { width: 62px; }
.qty-bill-c-amo, .qty-bill-c-aprev { width: 104px; }
.qty-bill-c-atodate { width: 106px; }
.qty-bill-table th, .qty-bill-table td { padding-left: 4px; padding-right: 4px; }
.qty-bill-table .qty-bill-c-paid { padding-top: 2px; padding-bottom: 2px; }
.qty-paid-in { width: 100%; box-sizing: border-box; min-height: 0; height: 26px; padding: 0 4px; font-size: 13px; text-align: right; border: 1px solid var(--gray-3); border-radius: 4px; background: var(--white); }
.qty-paid-in:focus { outline: 2px solid var(--blue); outline-offset: 0; }

/* Pills shared by the Status view. */
.qty-st-pill { display: inline-block; padding: 0 8px; border-radius: 12px; font-size: 12.5px; font-weight: 700; line-height: 20px; white-space: nowrap; }
.qty-st-pill-amber { background: var(--gold-tint); color: var(--gold-ink); }
.qty-st-pill-ok { background: var(--green-tint); color: var(--green-dark); }
.qty-st-pill-blue { background: var(--blue-tint); color: var(--blue-dark); }
.qty-st-asof { margin: 0 0 var(--s2); }

/* Status: wide, scrolls inside its own box, Line # / Item # / Description
   stay put on the left. */
.qty-st-wrap, .qty-dg-wrap { overflow: auto; max-height: min(66vh, 680px); background: var(--white); border: 1px solid var(--gray-3); border-radius: var(--radius-sm); }
.qty-st-table, .qty-dg-table { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.qty-st-table th, .qty-st-table td, .qty-dg-table th, .qty-dg-table td { border-width: 0 1px 1px 0; }
.qty-st-table th, .qty-st-table td { padding: 4px 8px; white-space: nowrap; }
.qty-st-table thead th, .qty-dg-table thead th { position: sticky; top: 0; z-index: 2; line-height: 1.2; vertical-align: bottom; }
.qty-st-table thead th { white-space: normal; }
.qty-st-table tfoot td, .qty-dg-table tfoot td { position: sticky; bottom: 0; z-index: 2; background: var(--gray-1); border-top: 1px solid var(--gray-3); }
.qty-billing .qty-st-table td, .qty-billing .qty-st-table th { text-align: right; }
.qty-billing .qty-st-table td.qty-st-c-line, .qty-billing .qty-st-table th.qty-st-c-line,
.qty-billing .qty-st-table td.qty-st-c-item, .qty-billing .qty-st-table th.qty-st-c-item,
.qty-billing .qty-st-table td.qty-st-c-desc, .qty-billing .qty-st-table th.qty-st-c-desc,
.qty-billing .qty-st-table td.qty-st-c-unit, .qty-billing .qty-st-table th.qty-st-c-unit,
.qty-billing .qty-st-table td.qty-st-c-status, .qty-billing .qty-st-table th.qty-st-c-status { text-align: left; }
.qty-st-c-price { min-width: 84px; }
.qty-st-c-qty { min-width: 88px; }
.qty-st-c-money { min-width: 112px; }
.qty-st-c-year { min-width: 76px; }
.qty-st-c-unit { min-width: 44px; }
.qty-st-c-status { min-width: 170px; }
.qty-st-table .qty-st-c-line, .qty-st-table .qty-st-c-item, .qty-st-table .qty-st-c-desc { position: sticky; z-index: 1; background: var(--white); }
.qty-st-table thead .qty-st-c-line, .qty-st-table thead .qty-st-c-item, .qty-st-table thead .qty-st-c-desc { z-index: 4; background: var(--gray-1); }
.qty-st-table tfoot .qty-st-c-line, .qty-st-table tfoot .qty-st-c-item, .qty-st-table tfoot .qty-st-c-desc { z-index: 4; background: var(--gray-1); }
.qty-st-table .qty-st-c-line { left: 0; width: 56px; min-width: 56px; max-width: 56px; }
.qty-st-table .qty-st-c-item { left: 56px; width: 108px; min-width: 108px; max-width: 108px; }
.qty-st-table .qty-st-c-desc { left: 164px; width: 230px; min-width: 230px; max-width: 230px; overflow: hidden; text-overflow: ellipsis; box-shadow: 2px 0 0 var(--gray-3); }
.qty-st-table tbody tr:hover td { background: var(--blue-tint); }

/* Daily grid: one narrow column per day; Line # / Item # / Description on
   the left and Total Quantity / Total Amount on the right stay put. */
.qty-dg-table th, .qty-dg-table td { padding: 3px 4px; white-space: nowrap; }
.qty-dg-table thead tr:first-child th { height: 26px; box-sizing: border-box; }
.qty-dg-table thead tr:nth-child(2) th { top: 26px; height: 26px; box-sizing: border-box; }
.qty-billing .qty-dg-table td.qty-dg-c, .qty-billing .qty-dg-table th.qty-dg-day { text-align: center; }
.qty-billing .qty-dg-table th.qty-dg-month { text-align: left; padding-left: 8px; }
.qty-dg-day, .qty-dg-c { min-width: 34px; width: 34px; padding-left: 2px; padding-right: 2px; }
.qty-dg-table th.qty-dg-month { font-weight: 700; }
.qty-dg-we { background: var(--gray-1); }
.qty-dg-table thead th.qty-dg-we { background: var(--gray-2); }
.qty-dg-has { cursor: pointer; font-weight: 700; color: var(--blue-dark); }
.qty-dg-has:hover { background: var(--blue-tint); }
.qty-dg-picked { outline: 2px solid var(--blue); outline-offset: -2px; background: var(--blue-tint); }
.qty-dg-table .qty-dg-line, .qty-dg-table .qty-dg-item, .qty-dg-table .qty-dg-desc, .qty-dg-table .qty-dg-tq, .qty-dg-table .qty-dg-ta { position: sticky; z-index: 1; background: var(--white); }
.qty-dg-table thead .qty-dg-line, .qty-dg-table thead .qty-dg-item, .qty-dg-table thead .qty-dg-desc, .qty-dg-table thead .qty-dg-tq, .qty-dg-table thead .qty-dg-ta,
.qty-dg-table tfoot .qty-dg-line, .qty-dg-table tfoot .qty-dg-item, .qty-dg-table tfoot .qty-dg-desc, .qty-dg-table tfoot .qty-dg-tq, .qty-dg-table tfoot .qty-dg-ta { z-index: 4; background: var(--gray-1); }
.qty-dg-table .qty-dg-line { left: 0; width: 52px; min-width: 52px; max-width: 52px; }
.qty-dg-table .qty-dg-item { left: 52px; width: 104px; min-width: 104px; max-width: 104px; }
.qty-dg-table .qty-dg-desc { left: 156px; width: 210px; min-width: 210px; max-width: 210px; overflow: hidden; text-overflow: ellipsis; box-shadow: 2px 0 0 var(--gray-3); }
.qty-dg-table .qty-dg-tq { right: 118px; width: 86px; min-width: 86px; text-align: right; box-shadow: -2px 0 0 var(--gray-3); }
.qty-dg-table .qty-dg-ta { right: 0; width: 118px; min-width: 118px; text-align: right; }
.qty-billing .qty-dg-table td.qty-dg-tq, .qty-billing .qty-dg-table td.qty-dg-ta, .qty-billing .qty-dg-table th.qty-dg-tq, .qty-billing .qty-dg-table th.qty-dg-ta { text-align: right; }
.qty-dg-table tbody tr:hover td.qty-dg-line, .qty-dg-table tbody tr:hover td.qty-dg-item, .qty-dg-table tbody tr:hover td.qty-dg-desc { background: var(--blue-tint); }
/* Column widths: drag the right edge of a header (owner, 2026-09-30). The
   handle sits on the header's right edge; the widths themselves are written
   into #qtyColwStyle by quantity-billing.js (applyColWidths). */
.qty-colrz { position: absolute; top: 0; right: 0; bottom: 0; width: 9px; cursor: col-resize; z-index: 2; touch-action: none; user-select: none; }
.qty-colrz::after { content: ""; position: absolute; top: 4px; bottom: 4px; right: 3px; width: 2px; border-radius: 1px; background: transparent; }
th.qty-bill-sort:hover .qty-colrz::after, .qty-colrz:hover::after { background: var(--gray-4); }
.qty-colrz:hover::after, .qty-colrz-drag::after { background: var(--blue); }
.qty-colrz-on, .qty-colrz-on th { cursor: col-resize; user-select: none; }
.qty-dg-detail { margin-top: var(--s3); border: 1px solid var(--gray-3); border-radius: var(--radius-sm); background: var(--gray-0, #f7f7f7); padding: var(--s3) var(--s4); }

/* Pieces worksheet, piece types and the lump-sum schedule (owner, 2026-09-30).
   The pieces modal reuses the patch worksheet's table; it only needs a wider
   sheet for the piece-type select. */
.qty-pieces-modal .cp-sheet { max-width: 720px; }
.qty-pieces-table td { vertical-align: middle; }
.qty-pieces-table td:nth-child(3), .qty-pieces-table td:nth-child(4) { white-space: nowrap; }
.qty-pieces-table th:nth-child(n+2), .qty-pieces-table td:nth-child(n+2) { text-align: right; }
.qty-pieces-table th:nth-child(5), .qty-pieces-table td:nth-child(5) { text-align: center; }
.qty-pieces-table select.qty-piece-select { min-width: 200px; width: 100%; text-align: left; }
.qty-pieces-table input.qty-cell-input { min-width: 72px; text-align: right; }
#qtyPieceCyAction, #qtyPieceLbsAction { margin-top: var(--s2); }
#qtyPieceCyAction .btn, #qtyPieceLbsAction .btn { width: 100%; }
.qty-pieces-admin-table th, .qty-pieces-admin-table td { text-align: left; }
.qty-pieces-admin-table th.qty-bill-c-cqty, .qty-pieces-admin-table td.qty-bill-c-cqty { text-align: right; }
.qty-ls-plan { margin-top: var(--s4); scroll-margin-top: 96px; }
.qty-ls-plan .qty-table-wrap { max-width: 640px; }
.qty-ls-table th, .qty-ls-table td { text-align: left; padding: 2px 6px; vertical-align: middle; }
.qty-ls-table input.qty-cell-input { width: 100%; min-width: 72px; }
.qty-ls-table td:first-child input { max-width: 120px; }
.qty-ls-table td:nth-child(2) input { max-width: 90px; text-align: right; }
.qty-ls-actions { display: flex; gap: var(--s3); margin-top: var(--s3); }
.qty-ls-warn { color: var(--gold-ink); font-weight: 700; }
.qty-bill-plan { font-size: 11px; color: var(--gray-5); white-space: normal; }

/* ---- Specs (specs.js) -----------------------------------------------------
   The job's spec books, the upload form, and the read-only split proposal:
   status chips, a confidence dot per section and flag chips. */
.specs-back { width: auto; margin-bottom: 10px; }
.specs-up { margin-top: var(--s3); }
.specs-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); width: 100%; text-align: left;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  padding: 12px 14px; margin-top: var(--s3); font-family: var(--font); cursor: pointer; min-height: var(--tap); }
.specs-row:active { background: var(--gray-1); }
.specs-row-main { flex: 1 1 200px; min-width: 0; }
.specs-row-title { display: block; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.specs-row-sub { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.specs-progress { flex-basis: 100%; font-size: 13px; color: var(--blue-dark); }
.specs-progress:empty { display: none; }
.specs-note { flex-basis: 100%; font-size: 13px; color: var(--red); overflow-wrap: anywhere; }
.specs-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.specs-chip-busy { background: var(--blue-tint); color: var(--blue-dark); }
.specs-chip-review { background: var(--gold-tint); color: var(--gold-ink); }
.specs-chip-ok { background: var(--green-tint); color: var(--green-dark); }
.specs-chip-bad { background: var(--red-tint); color: var(--red); }
.specs-proposal-status { margin-bottom: var(--s3); }
.specs-coverage { font-weight: 700; color: var(--ink); margin-bottom: var(--s4); }
.specs-sec { display: flex; align-items: flex-start; gap: var(--s3); padding: 10px 0; border-top: 1px solid var(--line-soft); }
.specs-sec-main { flex: 1; min-width: 0; }
.specs-sec-num { display: block; font-weight: 700; color: var(--ink); }
.specs-sec-title { display: block; color: var(--gray-7); overflow-wrap: anywhere; }
.specs-sec-pages { font-size: 13px; color: var(--muted); white-space: nowrap; }
.specs-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; margin-top: 5px; }
.specs-dot-hi { background: var(--green); }
.specs-dot-mid { background: var(--amber); }
.specs-dot-lo { background: var(--red); }
.specs-flags { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s1); }
.specs-flag { padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--gray-1); color: var(--gray-7); border: 1px solid var(--gray-2); }

/* ===== Daily Log ===== */
/* dailylog.js + dailylog-lines.js (the laptop) and dailylog-phone.js (the phone, further down). One log per job per day: a week strip, a toolbar, a rail of sections and the sections as cards with tables inside (each in its own overflow-x box, so the page never scrolls sideways). Dressed like the rest of the app: Noto Sans, .card sections, .btn buttons, .banner notices, pills like .cp-badge. */
.screen.dl-wide { max-width: none; width: 100%; box-sizing: border-box; padding-left: 24px; padding-right: 24px; }   /* the whole page on a computer; 24 px gutters */
.dl-headrow { margin-bottom: 6px; }
.dl-headrow .btn { width: auto; }
.dl-top { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: var(--s3); }
.dl-chip { font-size: 13px; font-weight: 700; border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px; background: var(--white); color: var(--gray-7); max-width: 100%; overflow-wrap: anywhere; }
#dlBody { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }
.dl-weekrow { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 6px; align-items: stretch; min-width: 0; }
.dl-weekrow .dl-wk { width: auto; min-height: 56px; padding: 0; }
.dl-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; min-width: 0; }
.dl-day { min-width: 0; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 5px 2px 7px; font: inherit; color: var(--ink); background: var(--white); border: 1.5px solid var(--gray-2); border-radius: 9px; cursor: pointer; }
.dl-day b { display: block; font-size: 13px; font-weight: 700; line-height: 1.2; }
.dl-dword { font-size: 11px; font-weight: 700; color: var(--gray-5); }
.dl-dword.ok { color: var(--green-dark); } .dl-dword.wn { color: #8A6500; }
.dl-dot { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--gray-3); }
.dl-dot.ok { background: var(--green); } .dl-dot.wn { background: var(--gold); }
.dl-dshort { display: none; }
.dl-day.today b { text-decoration: underline; }
.dl-day.sel { border-color: var(--blue); background: var(--blue-tint); }
.dl-day:disabled { opacity: .45; cursor: default; }
.dl-m .dl-dfull, .dl-m .dl-dword { display: none; }
.dl-m .dl-dshort { display: inline-flex; flex-direction: column; align-items: center; font-size: 11px; font-weight: 700; color: var(--gray-5); line-height: 1.1; }
.dl-m .dl-dshort em { font-style: normal; font-size: 17px; color: var(--ink); line-height: 1.2; }
.dl-day:focus-visible, .dl-sh:focus-visible, .dl-rail-a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.dl-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--white); border: 1px solid var(--gray-2); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 12px; }
.dl-bar .btn { width: auto; }
.dl-grow { flex: 1; }
.dl-status { font-size: 14px; color: var(--gray-7); white-space: nowrap; }
.dl-status.bad { color: #7A5C00; font-weight: 600; }
.dl-status .dl-retry { background: none; border: 0; padding: 0; margin-left: 6px; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.dl-pill { display: inline-block; flex: none; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--gray-2); background: var(--gray-1); color: var(--gray-7); white-space: nowrap; vertical-align: middle; }
.dl-pill.open { background: var(--gold-tint); border-color: #E8C55A; color: #8A6500; }
.dl-pill.done, .dl-pill.ok { background: var(--green-tint); border-color: #B7D9A5; color: var(--green-dark); }
.dl-pill.warn { background: var(--orange-tint); border-color: #F3C3A6; color: #B5551F; }
.dl-pill.bad { background: var(--red-tint); border-color: #E5B5B7; color: var(--red); }
.dl-pill.info { background: var(--blue-tint); border-color: #BCD3EE; color: var(--blue-dark); }
.dl-donenote { margin: 0; }
.dl-notice { margin: 0; }
.dl-empty { background: var(--white); border: 1px solid var(--gray-2); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s6) var(--s4); text-align: center; }
.dl-empty .btn { width: auto; display: inline-flex; }
.dl-empty .sub { margin: var(--s3) 0 0; font-size: 15px; }
.dl-cols { display: grid; grid-template-columns: 184px minmax(0, 1fr); gap: 12px; align-items: start; }   /* 184 (was 200): the page gutters went from 16 to 24 px, and the Work table still has to fit at 1280 */
.dl-rail { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 8px); background: var(--white); border: 1px solid var(--gray-2); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 0; font-size: 15px; }
.dl-rail h4 { margin: 4px 14px 6px; font-size: 11px; font-weight: 700; color: var(--faint); letter-spacing: .08em; text-transform: uppercase; }
.dl-rail-a { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; width: 100%; min-height: 36px; padding: 6px 14px; background: none; border: 0; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.dl-rail-a:hover { background: var(--gray-1); }
.dl-rail-a i { font-style: normal; font-size: 13px; font-weight: 700; color: var(--muted); }
.dl-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.dl-sec { background: var(--white); border: 1px solid var(--gray-2); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.dl-sh { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; padding: 12px 16px; cursor: pointer; user-select: none; }
.dl-sh h2 { font-size: 18px; font-weight: 700; margin: 0; }
.dl-sh .dl-sum { color: var(--muted); font-size: 14px; }
.dl-car { color: var(--muted); font-size: 11px; width: 12px; transition: transform .12s; }
.dl-sec.shut .dl-car { transform: rotate(-90deg); }
.dl-sec.shut > .dl-body { display: none; }
.dl-body { border-top: 1px solid var(--gray-2); min-width: 0; }
.dl-line { padding: 12px 16px; color: var(--muted); font-size: 15px; }
.dl-tbl { overflow-x: auto; max-width: 100%; }
.dl-table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 15px; }
.dl-table th { font-weight: 700; color: var(--muted); font-size: 13px; text-align: left; padding: 8px 8px; border-bottom: 1px solid var(--gray-2); white-space: nowrap; }
.dl-table td { padding: 5px 4px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.dl-table tbody tr:hover td { background: var(--gray-1); }
.dl-table td.n, .dl-table th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dl-table tfoot td { border-bottom: 0; font-weight: 700; color: var(--gray-7); font-size: 15px; padding: 10px 8px; }
.dl-table tr.dl-none td { color: var(--muted); font-size: 15px; padding: 12px 16px; }
.dl-table .dl-foot-note { font-weight: 400; }
/* lowest specificity, so the named column widths below still win */
:where(.dl-table td) { min-width: 72px; }
:where(.dl-table td:first-child) { min-width: 110px; }
:where(.dl-t-items td:first-child) { min-width: 150px; }
.dl-c-act { min-width: 130px; } .dl-c-note { min-width: 100px; } .dl-c-pk { min-width: 140px; } .dl-c-unit { min-width: 180px; } .dl-c-comp { min-width: 150px; } .dl-c-po { min-width: 220px; } .dl-c-unitq { width: 80px; }
.dl-c-x { width: 34px; text-align: center; position: relative; }   /* position: relative keeps the screen-reader text inside its own scroll box */
.dl-pht { color: var(--muted); font-size: 14px; white-space: nowrap; }
.dl-in, .dl-sel { font: inherit; font-size: 16px; height: 40px; width: 100%; min-width: 0; padding: 4px 8px; border: 1.5px solid transparent; border-radius: var(--radius-sm); background: transparent; color: var(--ink); }
.dl-sel { width: auto; min-width: 110px; }
.dl-in:hover, .dl-sel:hover { border-color: var(--gray-3); background: var(--white); }
.dl-in:focus, .dl-sel:focus { border-color: var(--blue); background: var(--white); outline: none; box-shadow: 0 0 0 3px rgba(0, 87, 184, .15); }
.dl-num { width: 60px; padding-left: 4px; padding-right: 4px; text-align: right; font-variant-numeric: tabular-nums; }
.dl-table td.n { min-width: 0; }
input.dl-chk { width: auto; height: auto; margin: 0; }
.dra-wx { padding: 0; margin: 0 0 8px; }
.dra-wx:empty { display: none; }
.dra-wx > div { flex: 1 1 100px; }
.dra-wx i { font-style: normal; font-weight: 700; color: var(--gold-dark, #8A6500); }
.dl-ro { padding: 0 8px; overflow-wrap: anywhere; }
.dl-pick { font: inherit; font-size: 15px; min-height: 40px; min-width: 96px; max-width: 100%; text-align: left; padding: 4px 28px 4px 10px; border: 1.5px solid var(--gray-3); border-radius: var(--radius-sm); color: var(--ink); cursor: pointer; overflow-wrap: anywhere;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238A94A0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center; }
.dl-pick:hover { border-color: var(--gray-5); }
.dl-pick:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 87, 184, .15); }
.dl-ph { color: var(--faint); }
.dl-tog { font: inherit; font-size: 14px; font-weight: 700; min-width: 56px; min-height: 36px; border-radius: var(--radius-sm); border: 1.5px solid var(--gray-3); background: var(--white); color: var(--gray-7); cursor: pointer; padding: 0 12px; }
.dl-tog.yes { background: var(--green); border-color: var(--green); color: var(--white); }
.dl-tog.no { background: var(--gray-1); border-color: var(--gray-3); color: var(--gray-7); }   /* Off reads as a switch that is off, not a warning */
.dl-ok { color: var(--green-dark); } .dl-warn { color: #7A5C00; font-weight: 600; }
.dl-pick.dl-warn { border-color: #E8C55A; background-color: var(--gold-tint); }
.dl-table tr.dl-miss td { color: var(--muted); background: var(--gray-1); }
.dl-x { width: 32px; height: 32px; border-radius: var(--radius-sm); border: 1.5px solid var(--gray-3); background: var(--white); color: var(--gray-7); font-size: 20px; font-weight: 700; line-height: 1; cursor: pointer; padding: 0; }
.dl-x:hover { border-color: var(--red); background: var(--red-tint); color: var(--red); }
.dl-src { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 99px; margin-left: 8px; white-space: nowrap; vertical-align: middle; background: var(--gray-1); color: var(--gray-7); }
.dl-src.la { background: var(--blue-tint); color: var(--blue-dark); } .dl-src.new { background: var(--orange-tint); color: #B5551F; } .dl-src.tool { background: var(--gray-1); color: var(--gray-7); }
.dl-tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; border: 1px solid var(--gray-2); margin-right: 8px; white-space: nowrap; background: var(--gray-1); color: var(--gray-7); }
.dl-tag.own { background: var(--blue-tint); border-color: #BCD3EE; color: var(--blue-dark); }
.dl-tag.rent { background: var(--orange-tint); border-color: #F3C3A6; color: #B5551F; }
.dl-tag.sub { border-color: #BCD3EE; color: var(--blue-dark); background: var(--blue-tint); }
.dl-add { padding: 10px 16px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.dl-add .sub { margin: 0; font-size: 14px; }
.dl-add .btn { width: auto; }
.dl-note { padding: 12px 16px; border-bottom: 1px solid var(--gray-2); max-width: 78ch; font-size: 15px; }
.dl-who { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.dl-who b { color: var(--ink); font-weight: 700; }
.dl-nbody { overflow-wrap: anywhere; white-space: pre-wrap; }
.dl-nta { font: inherit; font-size: 16px; width: 100%; padding: 8px 10px; border: 1.5px solid var(--gray-3); border-radius: var(--radius-sm); background: var(--white); resize: vertical; }
.dl-nta:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(0, 87, 184, .15); }
.dl-nrm { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 14px; color: var(--blue); text-decoration: underline; cursor: pointer; }
.dl-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.dl-kv > div { padding: 10px 16px; border-right: 1px solid var(--gray-2); border-bottom: 1px solid var(--gray-2); }
.dl-kv span { display: block; font-size: 13px; color: var(--muted); }
.dl-kv b { font-weight: 700; font-size: 16px; }
.dl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dl-pop { position: fixed; z-index: 400; background: var(--white); border: 1px solid var(--gray-2); border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 320px; max-width: calc(100vw - 16px); font-size: 15px; display: flex; flex-direction: column; max-height: min(360px, 60vh); }
.dl-pop-q { margin: 8px; width: calc(100% - 16px); font: inherit; font-size: 16px; height: 40px; padding: 4px 10px; border: 1.5px solid var(--gray-3); border-radius: var(--radius-sm); flex: none; }
.dl-pop-list { overflow-y: auto; padding-bottom: 6px; position: relative; }
.dl-pop-typed { font-weight: 700; color: var(--blue-dark); background: var(--blue-tint); }
.dl-pop-h { margin: 6px 14px 3px; font-size: 11px; font-weight: 700; color: var(--faint); letter-spacing: .08em; text-transform: uppercase; }
.dl-pop-i { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 14px; font: inherit; color: var(--ink); cursor: pointer; overflow-wrap: anywhere; }
.dl-pop-i:hover, .dl-pop-i:focus-visible { background: var(--gray-1); outline: none; }
.dl-pop-none { color: var(--muted); }
.dl-pop-sub { color: var(--muted); font-size: 13px; }
.dl-pop-empty { padding: 12px 14px; color: var(--muted); }
.dl-tkts { display: grid; gap: 12px; padding: 12px 16px 0; min-width: 0; }
.dl-tkts > .dl-line { padding: 0; }
.dl-tkt { border: 1px solid var(--gray-2); border-radius: var(--radius); background: var(--white); min-width: 0; }
.dl-tkt-h { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 6px 12px; align-items: end; padding: 10px 12px; background: var(--gray-1); border-bottom: 1px solid var(--gray-2); border-radius: var(--radius) var(--radius) 0 0; position: relative; padding-right: 52px; }
.dl-tkt-h > .dl-x { position: absolute; top: 10px; right: 12px; }
.dl-tf { min-width: 0; display: grid; gap: 2px; }
.dl-tf-note { grid-column: span 2; }
.dl-tl { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.dl-tkt-h .dl-in { background: var(--white); border-color: var(--gray-3); }
.dl-t-items { min-width: 560px; }
.dl-tkt .dl-add { padding: 8px 12px; }
@media (max-width: 560px) { .dl-tf-note { grid-column: auto; } }
.dl-phbtn { min-width: 0; white-space: nowrap; }
/* in the Work table a pick sits on one line (a long name ends in an ellipsis) so DFOW, Location and Crew stay readable at 1280 px */
.dl-t-work .dl-pick { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 210px; display: block; width: 100%; }
.dl-phbtn.on { border-color: var(--blue); background-color: var(--blue-tint); }
.dl-pstrip td { background: var(--gray-1); padding: 8px 12px; }
.dl-pstrip-card { padding: 8px 12px; background: var(--gray-1); border-bottom: 1px solid var(--gray-2); }
.dl-pstripin { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dl-th { position: relative; display: inline-block; width: 88px; height: 68px; border: 1.5px solid var(--gray-2); border-radius: 8px; background: var(--white); overflow: hidden; }
.dl-th a { display: block; width: 100%; height: 100%; }
.dl-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dl-phpdf { display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--blue); text-decoration: none; }
.dl-phtag { position: absolute; left: 3px; bottom: 3px; font-style: normal; font-size: 10px; background: rgba(26, 26, 26, .7); color: #fff; border-radius: 3px; padding: 0 4px; }
.dl-phx { position: absolute; top: 2px; right: 2px; width: 24px; height: 24px; font-size: 16px; }
/* the day's photos: a crew / subcontractor line's album line, the camera count on its row, and the Photos section's grid */
.dl-table td.dl-c-ph, .dl-table th.dl-c-ph { min-width: 0; width: 1%; text-align: center; padding-left: 2px; padding-right: 2px; }
.dl-phc { display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-width: 40px; width: auto; padding: 4px 6px; background-image: none; }
/* with the Photos column on, the Work table's DFOW, Location and Crew give back the width it takes (not below 120 px) so it still fits at 1280 px */
.dl-t-work:has(th.dl-c-ph) .dl-c-pk { min-width: 120px; }
.dl-t-work:has(th.dl-c-ph) .dl-pick { max-width: 132px; }
.dl-phc svg { width: 16px; height: 16px; flex: none; }
.dl-phc b { font-size: 14px; }
.dl-phalbum { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.dl-phn { display: flex; }
.dl-phn .dl-pill { display: inline-flex; align-items: center; gap: 5px; }
.dl-phn .dl-pill svg { width: 15px; height: 15px; }
.dl-phsec { display: grid; gap: 12px; }
.dl-phsec > p { margin: 0; }
.dl-phgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 16px 12px; }
.dl-phcell { display: grid; gap: 4px; align-content: start; min-width: 0; }
.dl-phimg { position: relative; display: block; }
.dl-phimg a { display: block; aspect-ratio: 1; border: 1.5px solid var(--gray-2); border-radius: 8px; overflow: hidden; background: var(--white); }
.dl-phimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dl-phcap { font-size: 12px; line-height: 1.3; color: var(--muted); overflow-wrap: anywhere; }
.dl-phback { width: 100%; min-height: 48px; }
.dl-phoff { font-size: 14px; color: var(--muted); }
.dl-newtag { display: inline-block; font-size: 12px; font-weight: 700; margin-left: 8px; padding: 1px 8px; border-radius: 99px; background: var(--gold-tint); color: #8A6500; white-space: nowrap; }
.dl-flag { margin: 0; }
.dl-flagline { margin: 2px 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.dl-flagline .btn { width: auto; }
.dl-link { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--blue); text-decoration: underline; cursor: pointer; }
.dl-wxhead { padding: 10px 16px 0; font-size: 15px; font-weight: 700; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.dl-wxloc { padding: 10px 16px; display: grid; gap: 10px; }
.dl-wxask { margin: 0; font-size: 15px; color: var(--gray-7); }
.dl-wxways { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dl-wxll { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dl-wxll .dl-in { width: 130px; border-color: var(--gray-3); background: var(--white); }
.dl-wxpend, .dl-wxmsg { margin: 0; padding: 0 16px 10px; font-size: 15px; }
.dl-wxloc .dl-wxpend, .dl-wxloc .dl-wxmsg { padding: 0; }
.dl-wx { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 16px; }
.dl-wx > div { flex: 1 1 140px; padding: 10px 12px; background: var(--gray-1); border-radius: var(--radius-sm); min-width: 0; }
.dl-wx b { font-weight: 800; font-size: 20px; display: block; }
.dl-wx span { font-size: 13px; color: var(--muted); }
.dl-wxsrc { margin: 0; padding: 0 16px 12px; font-size: 13px; color: var(--muted); }
.dl-pill.dl-wxpill { background: var(--gold-tint); border-color: #E8C55A; color: #8A6500; }
.dl-tick { margin-left: 8px; font-size: 12px; font-weight: 700; color: var(--green-dark); white-space: nowrap; }
.dl-tkt-scan { padding: 14px; }
.dl-scanmsg { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 15px; }
.dl-scanhelp { flex-basis: 100%; }
.dl-twarn { margin: 0; padding: 8px 12px; display: flex; gap: 8px; align-items: center; justify-content: space-between; background: var(--gold-tint); border-bottom: 1px solid #EAD48A; font-size: 15px; font-weight: 600; color: #7A5C00; }
/* round 3: the sections editor, Export, and the ticket card / weather polish */
.dl-panel { background: var(--white); border: 1px solid var(--gray-2); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; }
.dl-expmenu { display: flex; flex-wrap: wrap; gap: 8px; }
.dl-exprange { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 10px; font-size: 15px; }
.dl-exprange .dl-in { width: auto; border-color: var(--gray-3); background: var(--white); }
.dl-exprange .btn { width: auto; }
.dl-expmsg { font-size: 14px; color: var(--gray-7); }
.dl-cfg .sub { font-size: 14px; margin: 0 0 10px; }
.dl-cfg-list { display: grid; gap: 6px; margin-bottom: 8px; }
.dl-cfg-row { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 8px 10px; border: 1px solid var(--gray-2); border-radius: var(--radius); min-width: 0; }
.dl-cfg-row.off .dl-cfg-name { color: var(--muted); }
.dl-cfg-row.gone { opacity: .6; }
.dl-cfg-mv { display: inline-flex; gap: 2px; }
.dl-cfg-b { border: 1.5px solid var(--gray-3); background: var(--white); border-radius: var(--radius-sm); width: 32px; height: 32px; cursor: pointer; font-size: 11px; padding: 0; color: var(--gray-7); }
.dl-cfg-b:disabled { opacity: .35; cursor: default; }
.dl-cfg-name { font-weight: 700; font-size: 15px; flex: 1 1 140px; min-width: 0; overflow-wrap: anywhere; }
.dl-cfg-nm { flex: 1 1 160px; border-color: var(--gray-3); background: var(--white); width: auto; }
.dl-cfg-fields { flex-basis: 100%; border-top: 1px solid var(--gray-2); padding-top: 10px; display: grid; gap: 8px; min-width: 0; }
.dl-cfg-f { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; min-width: 0; }
.dl-cfg-f .dl-in { flex: 1 1 140px; width: auto; border-color: var(--gray-3); background: var(--white); }
.dl-cfg-f .dl-sel { border-color: var(--gray-3); background: var(--white); }
.dl-cfg-ob { flex-basis: 100%; min-width: 0; }
.dl-cfg-ob h5 { margin: 4px 0; font-size: 13px; font-weight: 700; color: var(--gray-7); }
.dl-cfg-ol { display: grid; gap: 4px; min-width: 0; }
.dl-cfg-o { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; min-width: 0; }
.dl-cfg-o.off .dl-cfg-name { color: var(--muted); text-decoration: line-through; }
.dl-cfg-o .dl-in { flex: 1 1 140px; width: auto; border-color: var(--gray-3); background: var(--white); }
.dl-cfg-o .dl-cfg-name { flex: 1 1 120px; font-weight: 400; }
.dl-cfg-opts { flex: 1 1 200px; font: inherit; font-size: 15px; padding: 6px 8px; border: 1.5px solid var(--gray-3); border-radius: var(--radius-sm); background: var(--white); min-width: 0; }
.dl-cfg-wide { font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.dl-cfg-wide input { width: auto; height: auto; }
.dl-cfg-msg { margin: 10px 0 0; font-size: 15px; min-height: 1em; }
.dl-cfg-btns { display: flex; gap: 8px; margin-top: 10px; }
.dl-cfg-btns .btn { width: auto; }
.dl-tph { display: inline-flex; gap: 6px; align-items: center; }
.dl-hthumb { width: 48px; height: 36px; padding: 0; border: 1.5px solid var(--gray-2); border-radius: 6px; overflow: hidden; background: var(--white); cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; color: var(--blue); flex: none; }
.dl-hthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dl-posays { display: block; font-size: 13px; color: #7A5C00; margin-top: 2px; }
.dl-nb { white-space: nowrap; }
.dl-ta { resize: none; overflow: hidden; white-space: pre; line-height: 1.3; padding-top: 6px; padding-bottom: 6px; font-family: inherit; }
.dl-rail-mk { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
/* laptop: "None today" beside the add button, the confirmed state on the section, the checklist under the toolbar, a ticket's warnings */
.dl-nonebox { display: inline-flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.dl-add:has(> .dl-nonebox:only-child:empty) { display: none; }
.dl-noneok { font-size: 15px; font-weight: 600; color: var(--green-dark); }
.dl-sec.none-ok { border-left: 4px solid var(--green); }
.dl-chk { background: var(--white); }
.dl-chk .dl-chk-h { margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.dl-chk .dl-chkrows { max-width: 520px; margin: 10px 0; }
.dl-chk .dl-chkbtn { min-height: 48px; font-size: 16px; }
.dl-chk .dl-chk-btns { display: flex; gap: 8px; }
.dl-dup { border-top: 0; }
.dl-noqty { display: block; max-width: 120px; font-size: 12px; line-height: 1.25; text-align: left; white-space: normal; }
.dl-wxday { padding: 4px 16px 10px; display: flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 700; }
/* a compact Worked / Not worked on a table row, and Weather day: the two buttons of the app's .seg, 36px */
.dl-seg-s, .dl-wxday .dl-seg { display: inline-flex; margin: 0; gap: 4px; }
.dl-seg-s .seg-btn, .dl-wxday .dl-seg .seg-btn { flex: none; min-height: 36px; min-width: 48px; padding: 0 12px; font-size: 14px; }
/* ---- Daily Log on a phone (dailylog-phone.js; .screen.dl-m, and the sheets, which carry dl-m too) ----
   The Pour Log's pieces at the Pour Log's sizes: 52px fields with 18px text, 48px or taller buttons, white cards and rows with a coloured left edge, a slide-up sheet. */
.dl-m #dlBody { gap: 12px; }
.dl-m .card { margin-bottom: 0; }
.dl-m .eyebrow, .dl-sheetwrap .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 8px 2px -4px; }
.dl-ph-head { display: grid; gap: 6px; }
.dl-ph-head h1 { margin: 0; }
.dl-ph-head .sub { margin: 0; font-size: 16px; }
.dl-back { width: auto; justify-self: start; min-height: 48px; padding: 0 16px; }
.dl-ph-date { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.dl-m .dl-status { font-size: 13px; min-height: 1.2em; white-space: normal; }
.dl-m .dl-status .dl-retry { min-height: 44px; padding: 0 8px; }
.dl-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dl-two.one { grid-template-columns: 1fr; }
.dl-two .btn { min-height: 56px; font-size: 17px; padding: 8px 10px; }
.dl-m .dl-bn { margin-bottom: 0; }
.dl-hire { display: grid; gap: 10px; align-items: stretch; }
.dl-hireline { display: grid; gap: 8px; }
.dl-hireline .btn { justify-self: stretch; width: 100%; min-height: 48px; }
.dl-m .dl-notice { margin: 0; }
.dl-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dl-links .btn { width: 100%; min-height: 48px; padding-left: 6px; padding-right: 6px; white-space: nowrap; }
.dl-links .btn:last-child:nth-child(odd) { grid-column: 1 / -1; }
.dl-m .dl-panel { padding: 14px; }
/* the rows of the day, a ticket, a unit */
.dl-rows, .dl-list, .dl-adds { display: grid; gap: 11px; min-width: 0; }
.dl-row { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; min-height: 64px; padding: 13px 12px; text-align: left; font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); cursor: pointer; }
.dl-row:active { background: var(--gray-1); }
.dl-row.g { border-left-color: var(--green); } .dl-row.o { border-left-color: var(--orange); } .dl-row.y { border-left-color: var(--gold); }
.dl-row.n { border-left-color: var(--gray-3); } .dl-row.r { border-left-color: var(--red); }
.dl-static { cursor: default; }
.dl-ico { flex: 0 0 40px; height: 40px; border-radius: 10px; background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.dl-row.g .dl-ico { background: var(--green-tint); color: var(--green-dark); }
.dl-row.o .dl-ico { background: var(--orange-tint); color: #B5551F; }
.dl-row.y .dl-ico { background: var(--gold-tint); color: #8A6500; }
.dl-row.n .dl-ico { background: var(--gray-1); color: var(--gray-5); }
.dl-rt { flex: 1; min-width: 0; display: block; text-align: left; }
.dl-rt b { display: block; font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.dl-rt > span { display: block; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.dl-rt .dl-rowbtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dl-rowbtns .btn { min-height: 48px; }
.dl-chev { flex: none; color: var(--gray-3); font-size: 22px; font-weight: 700; line-height: 1; }
.dl-thumb { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 8px; overflow: hidden; background: var(--gray-1); border: 1px solid var(--gray-2); display: grid; place-items: center; color: var(--gray-3); }
.dl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dl-unit { flex: 0 0 auto; max-width: 42%; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line); overflow-wrap: anywhere; }
.dl-unit.own { background: var(--blue-tint); border-color: #BCD3EE; color: var(--blue-dark); }
.dl-unit.rent { background: var(--orange-tint); border-color: #F3C3A6; color: #B5551F; }
/* a line as a card: the title opens the sheet, Worked / Not worked is answered on the card */
.dl-m .cb { padding: 13px 13px 14px; display: grid; gap: 10px; }
.dl-lcard { cursor: pointer; }
.dl-lcard.miss { background: var(--gray-1); }
.dl-lt { display: flex; align-items: flex-start; gap: 10px; width: 100%; min-height: 48px; padding: 0; text-align: left; font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.dl-lt .dl-rt b { font-size: 17px; }
.dl-facts { font-size: 15px; font-weight: 700; }
/* PO quantities on a subcontractor's line (SLWS round 2): the laptop cell, the phone card's box and the editor's rows */
.dl-c-poq { min-width: 250px; }
.dl-poq { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; white-space: nowrap; }
.dl-poq .dl-poqin { width: 76px; }
.dl-poq-u { min-width: 30px; font-size: 12px; font-weight: 700; color: var(--muted); }
.dl-poq-d { max-width: 170px; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.dl-poq-v { font-variant-numeric: tabular-nums; }
.dl-poq-x { padding: 0 6px; font-size: 18px; line-height: 1; color: var(--muted); background: none; border: 0; cursor: pointer; }
.dl-poq-x:hover { color: var(--red); }
.dl-poq-add { margin-top: 2px; }
.dl-poqbox { margin-top: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--gray-1); }
.dl-poqbox.flag { padding: 0; border: 0; background: none; }
.dl-poqh { margin-bottom: 4px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.dl-poqr { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; font-size: 14px; }
.dl-poqr b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.dl-poqe { display: grid; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.dl-poqe-t { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 600; }
.dl-poqe-q { display: flex; align-items: center; gap: 10px; }
.dl-poqe-q .dl-in { width: 140px; text-align: right; font-variant-numeric: tabular-nums; }
.dl-poqe-q .dl-poq-u { font-size: 14px; }
.dl-facts small { font-weight: 400; color: var(--muted); font-size: 13px; white-space: nowrap; }
.dl-fill { background: var(--white); color: #7A5C00; border: 2px solid var(--gold); min-height: 52px; font-size: 17px; }
.dl-rt > .dl-rpill { margin-top: 5px; }
.dl-total { margin: 0; font-size: 16px; font-weight: 700; }
.dl-note2 { margin: 0; font-size: 13px; color: var(--muted); }
.dl-ncard { display: block; width: 100%; text-align: left; font: inherit; color: inherit; }
.dl-ncard .cb { display: grid; gap: 4px; }
.dl-ncard.mine { cursor: pointer; }
.dl-m .dl-who { display: block; font-size: 13px; color: var(--muted); margin: 0; }
.dl-m .dl-who b { color: var(--ink); font-weight: 700; }
.dl-m .dl-nbody, .dl-sheetwrap .dl-nbody { display: block; font-size: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
/* Worked / Not worked, Working / Idle / Down, Yes / No: the chosen one takes its colour */
.dl-m .dl-seg { margin-bottom: 0; }
.dl-seg .seg-btn { min-width: 0; padding: 0 6px; }
.dl-seg .seg-btn.g { background: var(--green); border-color: var(--green); color: var(--white); }
.dl-seg .seg-btn.r { background: var(--red); border-color: var(--red); color: var(--white); }
.dl-seg .seg-btn.y { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.dl-seg .seg-btn.n { background: var(--blue-tint); border-color: var(--blue); color: var(--blue-dark); }
/* fields: label above, 52px, 18px */
.dl-m .field { margin-bottom: 0; }
.dl-f label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 5px; }
.dl-m .dl-in, .dl-sheetwrap .dl-in { display: block; width: 100%; height: auto; min-height: 52px; padding: 12px; font: inherit; font-size: 18px; color: var(--ink); background: var(--white); border: 1.5px solid var(--gray-3); border-radius: var(--radius-sm); }
.dl-m .dl-in:focus, .dl-sheetwrap .dl-in:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 87, 184, .15); }
.dl-m .dl-ta, .dl-sheetwrap .dl-ta { resize: none; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.35; }
.dl-m input[type="date"].dl-in, .dl-sheetwrap input[type="date"].dl-in { -webkit-appearance: none; appearance: none; }
.dl-ro { padding: 4px 2px; font-size: 17px; white-space: pre-wrap; overflow-wrap: anywhere; }
.dl-ph { color: var(--faint); }
.dl-pickrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 52px; padding: 12px; text-align: left; font: inherit; font-size: 18px; color: var(--ink); background: var(--white); border: 1.5px solid var(--gray-3); border-radius: var(--radius-sm); cursor: pointer; overflow-wrap: anywhere; }
.dl-pickrow .dl-chev { font-size: 18px; }
.dl-pickrow.warn { border-color: #EAD48A; background: var(--gold-tint); color: #7A5C00; }
.dl-step { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; gap: 8px; align-items: center; }
.dl-stepb { height: 56px; padding: 0; font: 800 26px var(--font); color: var(--blue); background: var(--white); border: 1.5px solid var(--gray-3); border-radius: var(--radius-sm); cursor: pointer; }
.dl-stepb:active { background: var(--blue-tint); }
.dl-m .dl-f .dl-in.dl-stepin, .dl-sheetwrap .dl-f .dl-in.dl-stepin { height: 56px; padding: 0 6px; text-align: center; font-size: 24px; font-weight: 800; }
.dl-rm { justify-self: center; min-height: 48px; padding: 0 16px; font: 700 16px var(--font); color: var(--red); text-decoration: underline; background: none; border: 0; cursor: pointer; }
.dl-sheetwrap .btn-sm { min-height: 48px; }
.dl-sheetwrap .btn { margin: 0; }
/* the sheet: the Pour Log's truck editor */
.dl-sheetwrap { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center; background: rgba(26, 26, 26, .45); }
.dl-pickwrap { z-index: 1010; }
.dl-sheet { display: flex; flex-direction: column; width: 100%; max-width: 640px; max-height: 92vh; max-height: 92dvh; overflow: hidden; overflow: clip; background: var(--white); border-radius: 18px 18px 0 0; outline: none; }
.dl-shead { flex: none; display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; border-bottom: 1px solid var(--gray-2); }
.dl-shead .dl-rt b { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-shead .dl-rt > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-shead .dl-unit { max-width: 46%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-sb .field, .dl-sb .dl-in, .dl-sb .dl-pickrow { scroll-margin: 12px 0 20px; }
.dl-donebtm { min-height: 56px; }
.dl-sb [data-dupbox] { display: contents; }
.dl-wraptitle .dl-shead .dl-rt b { white-space: normal; }
.dl-wraptitle .dl-shead .dl-rt > span { white-space: normal; }
/* the Mark day complete checklist (a sheet on a phone, a panel under the toolbar on a laptop) */
.dl-chkrows { display: grid; gap: 10px; }
.dl-chkrow { display: grid; gap: 2px; justify-items: start; }
.dl-chkbtn { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 10px 14px; text-align: left; font: inherit; font-size: 18px; font-weight: 700; color: var(--ink); background: var(--white); border: 1.5px solid var(--gray-3); border-radius: var(--radius); cursor: pointer; }
.dl-chkbtn.on { background: var(--green-tint); border-color: var(--green); color: var(--green-dark); }
.dl-box { flex: none; width: 32px; height: 32px; display: grid; place-items: center; font-size: 22px; font-weight: 800; color: var(--white); background: var(--white); border: 2px solid var(--gray-3); border-radius: 8px; }
.dl-chkbtn.on .dl-box { background: var(--green); border-color: var(--green); }
.dl-chkrow .dl-link { min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px; }
.dl-chkgo { margin-top: 6px; }
.dl-noneline { align-items: center; justify-content: space-between; flex-wrap: wrap; }
.dl-noneline > span { flex: 1; min-width: 0; }
.dl-noneline .dl-link { min-height: 44px; }
.dl-shdone { flex: none; width: auto; min-height: 48px; padding: 0 22px; font-size: 16px; }
.dl-sb { flex: 1 1 auto; min-height: 0; display: grid; align-content: start; gap: 14px; padding: 14px 14px calc(26px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain; }
.dl-sb .banner { margin-bottom: 0; }
.dl-warnb { align-items: flex-start; }
.dl-warnb > span { flex: 1; min-width: 0; }
.dl-dismiss { flex: none; width: 44px; height: 44px; margin: -8px -10px -8px 0; font-size: 24px; line-height: 1; color: inherit; background: none; border: 0; cursor: pointer; }
.dl-posays { display: block; margin-top: 4px; font-size: 13px; color: #7A5C00; }
.dl-item { background: var(--white); border: 1px solid var(--gray-2); border-radius: var(--radius); }
.dl-item.open { border-color: var(--blue); }
.dl-itemh { display: grid; gap: 3px; width: 100%; min-height: 48px; padding: 10px 12px; text-align: left; font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.dl-itemh b { font-size: 16px; overflow-wrap: anywhere; }
.dl-itemh span { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.dl-itemh .m { color: var(--green-dark); font-weight: 700; } .dl-itemh .w { color: #B5551F; font-weight: 700; }
.dl-itemb { display: grid; gap: 12px; padding: 2px 12px 14px; }
.dl-two2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dl-two2 .field { min-width: 0; }
/* photos */
.dl-photos { display: grid; gap: 10px; }
.dl-pgrid { display: flex; flex-wrap: wrap; gap: 14px; }
.dl-pt { position: relative; width: 88px; height: 88px; }
.dl-pthumb { display: block; padding: 0; background: none; border: 0; }
.dl-pdf { display: flex; align-items: center; justify-content: center; width: 88px; height: 88px; font-weight: 700; color: var(--blue); text-decoration: none; border: 1.5px solid var(--gray-2); border-radius: 8px; }
.dl-ptx { position: absolute; top: -13px; right: -13px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; background: none; border: 0; cursor: pointer; }
.dl-ptx span { width: 26px; height: 26px; display: grid; place-items: center; font-size: 17px; line-height: 1; color: #fff; background: var(--red); border-radius: 50%; box-shadow: var(--shadow); }
.dl-phtag { position: absolute; left: 4px; bottom: 4px; font-style: normal; font-size: 11px; color: #fff; background: rgba(26, 26, 26, .7); border-radius: 4px; padding: 0 5px; }
.dl-pbusy { width: 88px; height: 88px; display: grid; place-items: center; }
.dl-addph { cursor: pointer; }
/* the list sheet (and the time sheet) */
.dl-pickwrap .dl-sb { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
.dl-pqw { flex: none; padding: 12px 14px 10px; }
.dl-plist { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; position: relative; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
.dl-pr { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 50px; padding: 6px 14px; text-align: left; font: inherit; font-size: 17px; color: var(--ink); background: none; border: 0; border-top: 1px solid var(--gray-2); cursor: pointer; overflow-wrap: anywhere; }
.dl-pr small { flex: none; font-size: 13px; color: var(--muted); }
.dl-pr.on { background: var(--blue-tint); font-weight: 700; color: var(--blue-dark); }
.dl-pr-typed { font-weight: 700; color: var(--blue-dark); background: var(--blue-tint); }
.dl-pr-none { color: var(--muted); }
.dl-pgh { padding: 12px 14px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.dl-pempty { margin: 0; padding: 14px; color: var(--muted); }
/* weather, the sections editor and Export, in the same look */
.dl-wxbox { display: grid; gap: 12px; padding: 14px; background: var(--white); border: 1px solid var(--gray-2); border-radius: var(--radius); box-shadow: var(--shadow); }
.dl-m .dl-wxhead, .dl-m .dl-wxloc, .dl-m .dl-wxpend, .dl-m .dl-wxmsg, .dl-m .dl-wxsrc, .dl-m .dl-wxday { padding: 0; }
.dl-m .dl-wxhead { font-size: 16px; display: grid; gap: 0; justify-items: start; }
.dl-m .dl-wxhead .dl-link { min-height: 44px; padding: 0; }
.dl-m .dl-wx { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; padding: 0; }
.dl-m .dl-wx > div { padding: 10px; background: var(--gray-1); border: 0; border-radius: var(--radius-sm); }
.dl-m .dl-wx b { font-family: inherit; font-weight: 800; font-size: 22px; }
.dl-m .dl-wx span { font-size: 13px; }
.dl-m .dl-wxday { display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: var(--muted); }
.dl-m .dl-wxday .dl-seg { display: flex; }
.dl-m .dl-wxday .dl-seg .seg-btn { flex: 1; min-height: 48px; font-size: 16px; }
.dl-m .dl-wxsrc, .dl-m .dl-wxpend, .dl-m .dl-wxmsg, .dl-m .dl-wxask { font-size: 14px; line-height: 1.4; }
.dl-m .dl-wxsrc { display: grid; gap: 0; justify-items: start; }
.dl-m .dl-wxsrc .dl-link { padding: 0; min-height: 44px; }
.dl-m .dl-wxways { display: grid; gap: 8px; }
.dl-m .dl-wxways .btn { width: 100%; min-height: 52px; }
.dl-m .dl-wxll { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dl-m .dl-wxll .dl-in { width: 100%; }
.dl-m .dl-wxll .btn { grid-column: 1 / -1; width: 100%; min-height: 52px; }
.dl-m .dl-link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 4px; font-size: 16px; }
.dl-m .dl-panel .dl-in, .dl-m .dl-panel .dl-sel, .dl-m .dl-cfg-opts { min-height: 52px; font-size: 18px; padding: 12px; }
.dl-m .dl-cfg-row, .dl-m .dl-cfg-f, .dl-m .dl-cfg-o { gap: 10px; }
.dl-m .dl-cfg-b, .dl-m .dl-x { width: 48px; height: 48px; font-size: 18px; }
.dl-m .dl-tog { min-height: 48px; min-width: 64px; font-size: 16px; padding: 0 14px; }
.dl-m .dl-pill { font-size: 12px; }
.dl-m .dl-cfg .btn, .dl-m .dl-cfg-btns .btn, .dl-m .dl-cfg .dl-addbtn { min-height: 48px; font-size: 16px; padding: 0 16px; }
.dl-m .dl-cfg-btns { display: grid; grid-template-columns: 1fr 1fr; }
.dl-m .dl-cfg-btns .btn { width: 100%; }
.dl-m .dl-cfg input[type="checkbox"], .dl-m .dl-cfg-wide input { width: 24px; height: 24px; }
.dl-m .dl-cfg-name { font-size: 16px; }
.dl-m .dl-expmenu { display: grid; gap: 10px; }
.dl-m .dl-expmenu .btn { width: 100%; min-height: 52px; font-size: 17px; }
.dl-m .dl-exprange { display: grid; gap: 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.dl-m .dl-exprange label { display: grid; gap: 5px; }
.dl-m .dl-exprange .btn { width: 100%; min-height: 52px; font-size: 17px; }
.dl-m .dl-expmsg { font-size: 14px; text-transform: none; letter-spacing: 0; }
.dl-m .dl-kv { display: grid; grid-template-columns: 1fr; background: var(--white); border: 1px solid var(--gray-2); border-radius: var(--radius); box-shadow: var(--shadow); }
.dl-m .dl-kv > div { padding: 12px 14px; }
.dl-m .dl-kv span { font-size: 13px; }
.dl-m .dl-kv b { font-size: 16px; }
body.dl-sheeted .toast { z-index: 1200; }
@media (prefers-reduced-motion: reduce) { .dl-car { transition: none; } }

/* ---- Daily Log, wide screen + simpler phone day (docs/daily-log-widescreen-spec.md, 2026-10-06) ---- */
/* Notes box with the camera at its right end (laptop); the same camera, 48 px, ends the note row on a phone card */
.dl-notebox { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dl-notebox { align-items: flex-start; }
.dl-notebox .dl-in { flex: 1 1 auto; min-width: 0; }
.dl-notebox .dl-ta, .dl-why .dl-ta { height: auto; min-height: 58px; white-space: pre-wrap; overflow-wrap: anywhere; }   /* wraps and grows with its text (dailylog-lines.js growNote), two rows at least */
.dl-why { margin-top: 4px; }
.dl-why .dl-ta { min-height: 40px; }
.dl-actro { display: block; margin-bottom: 4px; font-size: 15px; overflow-wrap: anywhere; }
.dl-fname { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }
.dl-dfowtag { display: flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 12px; color: var(--muted); }
.dl-table .dl-dfowpick { display: inline-block; width: auto; max-width: 100%; min-height: 0; height: auto; padding: 0 6px; font-size: 12px; line-height: 1.6; color: var(--muted); background: var(--gray-1); border: 1px solid var(--gray-2); border-radius: 99px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background-image: none; }
.dl-t-work .dl-c-crew { min-width: 150px; }
.dl-t-work .dl-c-note { min-width: 200px; }
.dl-t-work .dl-c-crew .dl-pick { display: inline-block; width: auto; max-width: 100%; }
.dl-cam { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1.5px solid var(--blue); border-radius: var(--radius-sm); background: var(--white); color: var(--blue); cursor: pointer; }
.dl-cam:hover { background: var(--blue-tint); }
.dl-cam svg { width: 22px; height: 22px; flex: none; }
.dl-cam b { position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box; border-radius: 99px; background: var(--blue); color: var(--white); font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.dl-cam-m { width: 48px; height: 48px; }
.dl-cam-m.busy { border-color: var(--gray-3); }
.dl-also { display: block; margin-top: 3px; font-size: 13px; line-height: 1.3; color: var(--muted); overflow-wrap: anywhere; }
.dl-tbc { display: block; width: fit-content; margin-top: 4px; }
.dl-t-subs .dl-c-comp { min-width: 150px; }
.dl-t-subs .dl-c-poq { width: 33%; min-width: 250px; }
.dl-t-subs .dl-c-note { min-width: 170px; }
.dl-t-subs .dl-poq-d { flex: 1 1 auto; min-width: 0; max-width: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-t-subs td.dl-c-poq { vertical-align: top; padding-top: 8px; }
/* Deliveries: one collapsed row per ticket; the open one shows its detail under the row */
.dl-tkts { gap: 0; padding: 0; }
.dl-tkt { border: 0; border-bottom: 1px solid var(--gray-2); border-radius: 0; }
.dl-tkt.open { background: var(--gray-1); }
.dl-trow { display: grid; grid-template-columns: minmax(90px, 140px) minmax(120px, 1.4fr) minmax(100px, 1fr) 80px minmax(0, 1.4fr) 64px 20px; gap: 12px; align-items: center; width: 100%; min-height: 48px; padding: 10px 16px; font: inherit; font-size: 15px; color: var(--ink); text-align: left; background: none; border: 0; cursor: pointer; }
.dl-trow:hover { background: var(--gray-1); }
.dl-tr-no { font-size: 16px; overflow-wrap: anywhere; }
.dl-tr-v { overflow-wrap: anywhere; }
.dl-tr-po { color: var(--green-dark); font-weight: 600; }
.dl-tr-po.none { color: var(--muted); font-weight: 400; }
.dl-tr-p { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.dl-tr-ph { display: inline-flex; align-items: center; gap: 4px; justify-content: flex-end; color: var(--muted); font-size: 14px; }
.dl-tr-ph svg { width: 16px; height: 16px; }
.dl-tr-c { color: var(--gray-5); font-size: 20px; font-weight: 700; line-height: 1; text-align: center; }
.dl-tdetail { padding: 0 16px 12px; }
.dl-tdetail .dl-tkt-h { border-radius: var(--radius-sm); border: 1px solid var(--gray-2); background: var(--white); }
.dl-tdetail .dl-tkt-h .dl-in { background: var(--gray-1); }
.dl-tdetail .dl-tbl { background: var(--white); }
.dl-tkt-scan { margin: 12px 16px; }
.dl-body > .dl-add { padding: 12px 16px; }
@media (max-width: 1100px) { .dl-trow { grid-template-columns: minmax(80px, 120px) minmax(100px, 1fr) minmax(90px, 1fr) 70px 20px; } .dl-tr-p, .dl-tr-ph { display: none; } }
/* the phone's day: Menu and the title on one row, three equal action buttons, the week strip stays */
.dl-ph-head.one { display: flex; align-items: center; gap: 8px; }
.dl-ph-head.one .btn { width: auto; flex: none; }
.dl-acts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.dl-acts .btn { width: 100%; min-height: 56px; padding: 6px 4px; font-size: 14px; line-height: 1.15; white-space: normal; }
.dl-noterow { display: flex; align-items: center; gap: 10px; }
.dl-noterow.in { align-items: flex-start; }
.dl-noterow.in .dl-in { flex: 1 1 auto; min-width: 0; }
.dl-notetxt { flex: 1; min-width: 0; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.dl-notetxt.ph { color: var(--faint); }
.dl-m .dl-poqbox { margin-top: 0; }
.dl-m .dl-poqbox.flag { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.dl-lcard .dl-lt.solo { margin-bottom: -24px; }   /* no sub-title under the name: the 44 px tap row would leave a blank gap before the next block */
.dl-tk { display: grid; gap: 0; min-width: 0; }
.dl-tk.open > .dl-row { border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: none; }
.dl-tkb { display: grid; gap: 10px; padding: 12px; background: var(--white); border: 1px solid var(--line); border-top: 0; border-left: 4px solid var(--blue); border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-card); }
.dl-ti { display: grid; gap: 2px; font-size: 15px; }
.dl-ti b { font-size: 16px; }
.dl-ti .w { color: #B5551F; font-size: 14px; } .dl-ti .m { color: var(--green-dark); font-size: 14px; }
.dl-tkb .btn { width: 100%; min-height: 48px; }

/* ---- Specs: Verify the split (specs-verify.js) ----------------------------
   Desktop first (office work): the table of contents, the sections and the
   pages side by side. Under 900px the three panes stack, each collapsible. */
.screen.specs-v-screen { max-width: none; width: 100%; box-sizing: border-box; padding-bottom: var(--s4); }
.specs-v-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-bottom: var(--s2); }
.specs-v-top .specs-back { margin-bottom: 0; }
.specs-v-title { flex: 1 1 200px; min-width: 0; margin: 0; font-size: 20px; overflow-wrap: anywhere; }
.specs-v-cov { display: flex; align-items: center; gap: var(--s2); flex: 0 1 280px; min-width: 200px; }
.specs-v-cov .specs-coverage { margin: 0; font-size: 13px; white-space: nowrap; }
.specs-v-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--gray-2); overflow: hidden; }
.specs-v-barfill { height: 100%; width: 0; background: var(--green); transition: width 0.2s; }
.specs-v-save { font-size: 13px; color: var(--muted); min-width: 120px; }
.specs-v-save.bad { color: var(--red); font-weight: 700; }
.specs-v-more { position: relative; }
.specs-v-more summary { list-style: none; cursor: pointer; padding: 4px 12px; border-radius: var(--radius-sm); border: 1px solid var(--gray-3); background: var(--gray-1); font-weight: 700; min-height: 40px; box-sizing: border-box; display: flex; align-items: center; }
.specs-v-more summary::-webkit-details-marker { display: none; }
.specs-v-menu { position: absolute; right: 0; top: 100%; z-index: 30; margin-top: 4px; padding: var(--s2); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); white-space: nowrap; }
.specs-v-block { margin: 0 0 var(--s3); font-weight: 700; color: var(--red); min-height: 1.4em; }
.specs-v-block.ok { color: var(--green-dark); font-weight: 600; }
.specs-v-placing { margin: 0 0 var(--s3); padding: var(--s2) var(--s3); background: var(--gold-tint); color: var(--gold-ink); border-radius: var(--radius-sm); font-weight: 600; }

.specs-v-panes { display: grid; grid-template-columns: minmax(240px, 300px) minmax(320px, 1fr) minmax(300px, 1fr); gap: var(--s3); align-items: start; }
.specs-v-pane { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); min-width: 0; display: flex; flex-direction: column; }
.specs-v-h { display: flex; align-items: baseline; gap: var(--s2); width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line-soft); padding: 10px 14px; font-family: var(--font); font-size: 15px; font-weight: 700; color: var(--ink); cursor: default; }
.specs-v-hsub { font-size: 12.5px; font-weight: 400; color: var(--muted); overflow-wrap: anywhere; }
.specs-v-body { padding: var(--s2) 14px var(--s3); overflow: auto; max-height: calc(100vh - 230px); min-height: 200px; }
.specs-v-note { margin: 0; font-size: 13px; color: var(--red); }
.specs-v-note:empty { display: none; }

.specs-v-toc-item { display: grid; grid-template-columns: auto 1fr auto; gap: 2px var(--s2); align-items: baseline; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line-soft); padding: 8px 0; font-family: var(--font); font-size: 13.5px; color: var(--ink); }
.specs-v-toc-item:first-child { border-top: 0; }
button.specs-v-toc-item { cursor: pointer; }
button.specs-v-toc-item:hover { background: var(--gray-1); }
.specs-v-toc-num { font-weight: 700; white-space: nowrap; }
.specs-v-toc-title { color: var(--gray-7); overflow-wrap: anywhere; }
.specs-v-toc-pg { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.specs-v-toc-item .specs-chip { grid-column: 1 / -1; justify-self: start; font-size: 11.5px; padding: 1px 8px; }
.specs-v-toc-item .btn { grid-column: 1 / -1; justify-self: start; min-height: 34px; padding: 4px 12px; }
.specs-v-warns { margin: var(--s3) 0 0; padding-left: 18px; font-size: 13px; color: var(--gold-ink); }

.specs-v-item { border-top: 1px solid var(--line-soft); }
.specs-v-item:first-child { border-top: 0; }
.specs-v-item.sel { background: var(--blue-tint); border-radius: var(--radius-sm); }
.specs-v-rowhead { display: flex; align-items: flex-start; gap: var(--s3); width: 100%; text-align: left; background: none; border: 0; padding: 10px 6px; font-family: var(--font); cursor: pointer; color: inherit; }
.specs-v-main { flex: 1; min-width: 0; display: block; }
.specs-v-main .specs-flags { display: flex; }
.specs-v-pseudo .specs-sec-title { font-weight: 600; color: var(--muted); }
.specs-v-pseudo.bad .specs-sec-title { color: var(--red); font-weight: 700; }
.specs-v-item.bad { background: var(--red-tint); border-radius: var(--radius-sm); }
.specs-v-editor { padding: var(--s2) 10px var(--s3) 10px; }
.specs-v-fields { display: grid; grid-template-columns: minmax(110px, 1fr) 2fr; gap: var(--s3); }
.specs-v-titles { display: flex; flex-direction: column; gap: var(--s2); margin-bottom: var(--s3); }
.specs-v-quote { display: block; margin: 2px 0 0 2px; font-size: 13px; color: var(--gray-7); overflow-wrap: anywhere; }
.specs-v-start { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-bottom: var(--s3); }
.specs-v-start .btn-sm { min-width: 40px; padding: var(--s1) var(--s3); }
.specs-v-check { display: flex; align-items: center; gap: var(--s2); font-size: 14px; }
.specs-v-evidence { margin-top: var(--s3); font-size: 12.5px; color: var(--muted); }
.specs-v-evidence ul { margin: 4px 0 0; padding-left: 18px; }
.specs-v-form { margin-top: var(--s3); padding: var(--s3); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }

.specs-v-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: var(--s3); }
.specs-v-thumb { cursor: pointer; border-radius: var(--radius-sm); outline-offset: 2px; }
.specs-v-thumb:focus-visible { outline: 2px solid var(--blue); }
.specs-v-thumbimg { position: relative; aspect-ratio: 8.5 / 11; background: var(--gray-1); border: 1px solid var(--gray-3); border-radius: 4px; overflow: hidden; }
.specs-v-thumb.bad .specs-v-thumbimg { border-color: var(--red); }
.specs-v-thumbimg img { display: block; width: 100%; height: 100%; object-fit: contain; }
.specs-v-thumbimg img:not([src]) { visibility: hidden; }
.specs-v-cut { position: absolute; left: 0; right: 0; border-top: 2px dashed var(--red); pointer-events: none; }
.specs-v-cap { margin-top: 2px; font-size: 12px; color: var(--muted); text-align: center; }
.specs-v-kind { display: block; font-size: 11px; color: var(--faint); }

.specs-v-bigback { position: fixed; inset: 0; z-index: 200; background: rgba(21, 27, 35, 0.55); display: flex; align-items: stretch; justify-content: center; padding: var(--s3); }
.specs-v-big { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 1200px; display: flex; flex-direction: column; min-height: 0; }
.specs-v-bigbar { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) var(--s3); border-bottom: 1px solid var(--line-soft); }
.specs-v-grow { flex: 1; }
.specs-v-bigbody { display: flex; gap: var(--s3); padding: var(--s3); min-height: 0; flex: 1; }
.specs-v-bigscroll { flex: 1 1 auto; min-width: 0; overflow: auto; text-align: center; }
.specs-v-bigwrap { position: relative; display: inline-block; max-width: 100%; vertical-align: top; box-shadow: var(--shadow-card); }
.specs-v-bigimg { display: block; max-width: 100%; max-height: calc(100vh - 150px); height: auto; width: auto; }
.specs-v-biglines, .specs-v-rules { position: absolute; inset: 0; pointer-events: none; }
.specs-v-line { position: absolute; left: 0; right: 0; pointer-events: auto; cursor: pointer; }
.specs-v-line:hover { background: rgba(0, 87, 184, 0.12); }
.specs-v-line.on { background: rgba(255, 192, 0, 0.35); }
.specs-v-biglines.placing .specs-v-line { cursor: crosshair; }
.specs-v-rule { position: absolute; left: 0; right: 0; height: 14px; margin-top: -7px; pointer-events: auto; cursor: ns-resize; touch-action: none; }
.specs-v-rule::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; border-top: 2px dashed var(--red); }
.specs-v-rule:focus-visible { outline: 2px solid var(--blue); }
.specs-v-rule-tag { position: absolute; right: 4px; top: -6px; max-width: 70%; padding: 0 6px; background: var(--red); color: var(--white); font-size: 11px; font-weight: 700; border-radius: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.specs-v-bigpanel { flex: 0 0 300px; overflow: auto; }
.specs-v-rulerow { margin-bottom: var(--s3); padding-bottom: var(--s3); border-bottom: 1px solid var(--line-soft); }
.specs-v-rulebtns { display: flex; gap: var(--s2); margin: var(--s2) 0; }
.specs-v-sline { margin-bottom: var(--s3); font-size: 13px; }
.specs-v-bigbtns { display: flex; flex-direction: column; gap: var(--s2); margin-bottom: var(--s3); }
.specs-v-bigbtns .btn { width: 100%; text-align: left; }

.specs-v-busy { position: fixed; inset: 0; z-index: 300; background: rgba(21, 27, 35, 0.55); display: flex; align-items: center; justify-content: center; }
.specs-v-busybox { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: var(--s6) var(--s8); font-weight: 700; color: var(--ink); }
.specs-v-busybox p { margin: 0; }
.specs-pdf-link { flex: none; font-size: 13px; font-weight: 700; color: var(--blue); text-decoration: underline; white-space: nowrap; }

@media (max-width: 899px) {
  .specs-v-panes { grid-template-columns: 1fr; }
  .specs-v-h { cursor: pointer; }
  .specs-v-h::after { content: "\25BE"; margin-left: auto; color: var(--muted); }
  .specs-v-pane.collapsed .specs-v-h::after { content: "\25B8"; }
  .specs-v-pane.collapsed .specs-v-body { display: none; }
  .specs-v-body { max-height: 60vh; }
  .specs-v-fields { grid-template-columns: 1fr; }
  .specs-v-bigback { padding: 0; }
  .specs-v-big { border-radius: 0; }
  .specs-v-bigbody { flex-direction: column; overflow: auto; }
  .specs-v-bigpanel { flex: 0 0 auto; overflow: visible; }
  .specs-v-bigimg { max-height: 70vh; }
}

/* Specs — the AI read card (build step 5): estimate, the three passes, totals and the proposed items. */
.specs-x-card { margin: 0 0 var(--s4); }
.specs-x-h { margin: 0 0 var(--s2); font-size: 18px; }
.specs-x-line { margin: 0 0 var(--s1); font-weight: 700; color: var(--ink); }
.specs-x-note { margin: var(--s2) 0 0; }
.specs-x-pass { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s3); padding: 10px 0; border-top: 1px solid var(--line-soft); }
.specs-x-pass:first-of-type { border-top: 0; }
.specs-x-pname { flex: 0 0 120px; font-weight: 700; color: var(--ink); }
.specs-x-pn { flex: 1 1 160px; font-size: 14px; color: var(--gray-7); }
.specs-x-pcost { flex: 0 0 auto; min-width: 56px; text-align: right; font-size: 14px; color: var(--muted); }
.specs-x-fail { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--line-soft); }
.specs-x-list { margin: 0 0 var(--s3); padding-left: 20px; font-size: 14px; overflow-wrap: anywhere; }
.specs-x-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--s2); margin-bottom: var(--s2); }
.specs-x-stat { display: flex; flex-direction: column; padding: var(--s2) var(--s3); background: var(--gray-1); border-radius: var(--radius-sm); }
.specs-x-stat b { font-size: 20px; color: var(--ink); }
.specs-x-stat span { font-size: 12.5px; color: var(--muted); }
.specs-x-group { border-top: 1px solid var(--line-soft); padding: 6px 0; }
.specs-x-group > summary { cursor: pointer; padding: 6px 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.specs-x-num { margin-right: var(--s1); }
.specs-x-count { margin-left: var(--s2); font-size: 12.5px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.specs-x-item { padding: var(--s2) 0 var(--s2) var(--s3); border-top: 1px dashed var(--line-soft); }
.specs-x-ihead { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1) var(--s2); }
.specs-x-type { flex: none; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--blue-tint); color: var(--blue-dark); }
.specs-x-title { min-width: 0; overflow-wrap: anywhere; color: var(--ink); }
.specs-x-quote { margin: var(--s1) 0 0; font-size: 14px; font-style: italic; color: var(--gray-7); overflow-wrap: anywhere; }
.specs-x-meta { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.specs-x-flag-quote_unverified, .specs-x-flag-disputed_by_audit { background: var(--gold-tint); color: var(--gold-ink); border-color: transparent; }
.specs-x-flag-general { background: var(--blue-tint); color: var(--blue-dark); border-color: transparent; }
@media (max-width: 480px) {
  .specs-x-pname { flex-basis: 100%; }
  .specs-x-pcost { margin-left: auto; }
}
.specs-r-barbtns { display: inline-flex; flex-wrap: wrap; gap: var(--s2); }
.specs-r-pop textarea { width: 100%; box-sizing: border-box; font-family: var(--font); font-size: 14px; padding: 6px 8px; border: 1px solid var(--gray-3); border-radius: var(--radius-sm); }
.specs-r-pagein { display: flex; align-items: center; gap: var(--s1); font-size: 13px; }
.specs-r-pagein input { width: 80px; font-family: var(--font); font-size: 14px; padding: 6px 8px; border: 1px solid var(--gray-3); border-radius: var(--radius-sm); }

/* ---- Specs & Submittals: Review submittals (specs-review.js, step 6a) ---- */
.specs-r-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-bottom: var(--s2); }
.specs-r-top .specs-back { margin-bottom: 0; }
.specs-r-title { flex: 1 1 220px; min-width: 0; margin: 0; font-size: 20px; overflow-wrap: anywhere; }
.specs-r-sub { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.specs-r-progress { font-size: 14px; font-weight: 600; color: var(--ink); }
.specs-r-filter { display: inline-flex; gap: var(--s1); }
.specs-r-filter .btn { min-height: 36px; }
.specs-r-why { margin: 0 0 var(--s3); min-height: 1.4em; font-size: 14px; font-weight: 600; color: var(--gold-ink); }
.specs-r-why:empty { display: none; }
.specs-r-panes { display: grid; grid-template-columns: minmax(220px, 280px) minmax(360px, 1.3fr) minmax(300px, 1fr); gap: var(--s3); align-items: start; }
.specs-r-pane { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); min-width: 0; display: flex; flex-direction: column; }
.specs-r-h { margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); font-size: 15px; font-weight: 700; }
.specs-r-body { padding: var(--s2) 14px var(--s3); overflow: auto; max-height: calc(100vh - 230px); min-height: 200px; }
.specs-r-sec { display: flex; align-items: flex-start; gap: var(--s2); width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line-soft); padding: 9px 4px; font-family: var(--font); color: var(--ink); cursor: pointer; }
.specs-r-sec:first-child { border-top: 0; }
.specs-r-sec:hover { background: var(--gray-1); }
.specs-r-sec.sel { background: var(--blue-tint); border-radius: var(--radius-sm); }
.specs-r-sec.muted .specs-r-secname { color: var(--muted); }
.specs-r-tick { flex: 0 0 18px; color: var(--green-dark); font-weight: 700; }
.specs-r-secmain { flex: 1; min-width: 0; }
.specs-r-secname { display: block; font-size: 14px; overflow-wrap: anywhere; }
.specs-r-counts { display: flex; flex-wrap: wrap; gap: 2px var(--s1); margin-top: 3px; }
.specs-r-count { padding: 0 7px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--gray-1); color: var(--gray-7); }
.specs-r-count.todo { background: var(--gold-tint); color: var(--gold-ink); }
.specs-r-count.acc { background: var(--green-tint); color: var(--green-dark); }
.specs-r-count.rej { background: var(--red-tint); color: var(--red); }
.specs-r-count.hit { background: var(--blue-tint); color: var(--blue-dark); }
.specs-r-count.nothing { background: none; font-weight: 400; color: var(--muted); }
.specs-r-head { padding-bottom: var(--s3); border-bottom: 1px solid var(--line-soft); margin-bottom: var(--s3); }
.specs-r-sech { margin: 0 0 var(--s1); font-size: 17px; overflow-wrap: anywhere; }
.specs-r-summary { margin: 0 0 var(--s2); color: var(--gray-7); }
.specs-r-meta { margin: 0 0 var(--s2); font-size: 13.5px; }
.specs-r-secnone { margin: 0 0 var(--s2); }
.specs-r-audit summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.specs-r-audit ul { margin: var(--s2) 0 0; padding: 0; list-style: none; }
.specs-r-audit li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--s2); padding: 6px 0; border-top: 1px solid var(--line-soft); font-size: 13.5px; }
.specs-r-auditlabel { font-weight: 600; flex: 1 1 220px; }
.specs-r-auditnote { flex: 1 1 100%; color: var(--gray-7); font-size: 13px; }
.specs-r-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); margin: var(--s2) 0; }
.specs-r-h3 { margin: 0; font-size: 15px; }
.specs-r-n { margin-left: var(--s1); padding: 0 8px; border-radius: 999px; background: var(--gray-1); font-size: 12.5px; font-weight: 700; color: var(--gray-7); }
.specs-r-empty { margin: var(--s2) 0; }
.specs-r-card { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3); margin-bottom: var(--s3); background: var(--white); }
.specs-r-card.proposed:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.specs-r-card.flagged { border-left: 4px solid var(--gold); }
.specs-r-card.decided { background: var(--gray-1); }
.specs-r-card.decided.accepted { border-left: 4px solid var(--green); }
.specs-r-card.decided.rejected { border-left: 4px solid var(--red); }
.specs-r-row1 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-bottom: var(--s2); }
.specs-r-card select, .specs-r-card input[type="text"], .specs-r-pop select, .specs-r-pop input[type="text"] { font-family: var(--font); font-size: 14px; padding: 6px 8px; border: 1px solid var(--gray-3); border-radius: var(--radius-sm); background: var(--white); min-width: 0; }
.specs-r-titlein { width: 100%; box-sizing: border-box; font-weight: 700; }
.specs-r-typetag { padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--blue-tint); color: var(--blue-dark); }
.specs-r-dtitle { overflow-wrap: anywhere; }
.specs-r-confwrap { display: inline-flex; align-items: center; gap: var(--s1); margin-left: auto; }
.specs-r-conf { display: inline-block; width: 64px; height: 8px; border-radius: 999px; background: var(--gray-2); overflow: hidden; }
.specs-r-conf i { display: block; height: 100%; background: var(--green); }
.specs-r-confn { font-size: 12.5px; color: var(--muted); }
.specs-r-quote { margin: var(--s2) 0; padding: var(--s2) var(--s3); border-left: 3px solid var(--gray-3); background: var(--gray-1); font-size: 14px; font-style: italic; color: var(--gray-7); overflow-wrap: anywhere; }
.specs-r-whereline { margin-bottom: var(--s2); font-size: 13px; color: var(--muted); }
.specs-r-pg { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--blue); text-decoration: underline; cursor: pointer; }
.specs-r-fields { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); margin-bottom: var(--s2); font-size: 13px; }
.specs-r-fields label { display: flex; align-items: center; gap: var(--s1); }
.specs-r-fields input[type="text"] { width: 150px; }
.specs-r-auditnote-box { margin: var(--s2) 0 0; padding: var(--s2) var(--s3); background: var(--gold-tint); color: var(--gold-ink); border-radius: var(--radius-sm); font-size: 13px; }
.specs-r-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); }
.specs-r-pop { margin-top: var(--s2); padding: var(--s3); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.specs-r-pop select { max-width: 100%; }
.specs-r-popq { margin: 0 0 var(--s2); font-weight: 600; }
.specs-r-reasons { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s2); }
.specs-r-typed { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.specs-r-typed input { flex: 1 1 180px; }
.specs-r-decision { margin: var(--s1) 0 0; font-size: 13.5px; }
.specs-r-decided > summary, .specs-r-handled > summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.specs-r-hit { display: flex; gap: var(--s2); padding: var(--s3) 0; border-top: 1px solid var(--line-soft); }
.specs-r-hitcheck { flex: 0 0 auto; padding-top: 2px; }
.specs-r-hitmain { flex: 1; min-width: 0; }
.specs-r-sentence { margin: 0 0 var(--s1); font-size: 14px; overflow-wrap: anywhere; }
.specs-r-hitmeta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.specs-r-handledas { font-size: 13px; color: var(--gray-7); }
.specs-r-pnav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-bottom: var(--s2); }
.specs-r-pdf { margin-left: auto; font-size: 13.5px; font-weight: 600; }
.specs-r-pagewrap { position: relative; display: inline-block; max-width: 100%; box-shadow: var(--shadow-card); }
.specs-r-img { display: block; max-width: 100%; height: auto; }
.specs-r-bands { position: absolute; inset: 0; pointer-events: none; }
.specs-r-band { position: absolute; background: rgba(255, 192, 0, 0.38); border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 160, 0, 0.55); }
.specs-r-nofind { margin: var(--s2) 0 0; font-size: 13px; color: var(--muted); }
.specs-r-hint { margin: 0 0 var(--s2); }
@media (max-width: 900px) {
  .specs-r-panes { grid-template-columns: 1fr; }
  .specs-r-body { max-height: none; }
  .specs-r-confwrap { margin-left: 0; }
}

/* ---- Specs: the submittal log's own bits (specs-register.js) -------------------------
   The page itself is the shared log look (.logp-*, docs/log-pages-look.md). Here only the People / Vendors
   picker and the approver step rows, which only this page has. Nothing below 14 px. */
.specs-g-pick { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--s3); }
.specs-g-pick-name { min-width: 0; font-size: 15px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.specs-g-pick-name.none { font-weight: 400; color: var(--muted); }
.specs-g-pickbox { flex-basis: 100%; margin-top: var(--s1); padding: var(--s2); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.specs-g-pick-search { width: 100%; box-sizing: border-box; min-height: 40px; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: var(--font); font-size: 15px; }
.specs-g-pick-list { max-height: 240px; overflow-y: auto; margin-top: var(--s2); }
.specs-g-pick-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px var(--s3); width: 100%; min-height: 44px; padding: 8px 10px; text-align: left; background: none; border: 0; border-top: 1px solid var(--line-soft); font-family: var(--font); font-size: 15px; color: var(--ink); cursor: pointer; }
.specs-g-pick-row:first-child { border-top: 0; }
.specs-g-pick-row:hover, .specs-g-pick-row:focus-visible { background: var(--blue-tint); }
.specs-g-pick-main { font-weight: 600; }
.specs-g-pick-sub { font-size: 14px; color: var(--muted); }
.specs-g-pick-empty, .specs-g-pick-help, .specs-g-pick-more { margin: var(--s2) 0 0; font-size: 14px; color: var(--muted); }
.specs-g-pick-err { margin: var(--s2) 0 0; font-size: 14px; color: var(--red); }
/* an approver step row opens its edit line under it */
.logp-steps tr.specs-g-steprow { cursor: pointer; }
.logp-steps tr.specs-g-steprow:hover td, .logp-steps tr.specs-g-steprow.on td { background: var(--gray-1); }
.logp-steps tr.specs-g-steprow:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.logp-steps tr.specs-g-stepedit > td { padding: var(--s3) 0 var(--s3); white-space: normal; }
.specs-g-stepedit .logp-row { align-items: flex-start; }
.specs-g-stepedit .logp-fact { margin: 0; }
.logp-detail .specs-g-stepedit input.specs-g-n { width: 100px; }
.specs-g-typewords { margin: var(--s1) 0 0; }
/* files on a revision (round 2): three headings, Sent / Returned / Other, each the shared files piece */
.specs-g-filekind + .specs-g-filekind { margin-top: var(--s3); }
.specs-g-stepedit .specs-g-who { min-width: 200px; }

/* ---- Delivery Log (deliverylog.js; .screen.dv-m on a phone, .screen.dv-wide on a laptop; its sheet is on the body) ----
   The app's own pieces (.btn, .seg-btn, .field, .chip, .banner) and the Pour Log's look: one column, 52 px fields, 48 px or more to tap,
   a card per ticket with a coloured left edge, a slide-up sheet. Above 820 px it is the computer log (the block after the phone rules). */
.screen.dv-wide { max-width: 1680px; padding-left: 24px; padding-right: 24px; }
.dv-headrow { margin-bottom: 6px; }
.dv-headrow .btn { width: auto; min-height: 48px; }
#dvAdd .btn { margin-bottom: 12px; }
#dvAdd .dv-goes { margin: -2px 2px 16px; }
.dv-seg { margin-bottom: 12px; }
.dv-seg .seg-btn.on { background: var(--blue); border-color: var(--blue); color: var(--white); }
.dv-seg .seg-btn:disabled { opacity: .45; }
.dv-search { margin-bottom: 12px; }
.dv-chips { margin: 0 0 12px; }
.chip.dv-flag { min-height: 48px; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.dv-flag .dv-n { display: inline-block; min-width: 24px; padding: 1px 7px; border-radius: 12px; background: var(--white); color: var(--blue); font-size: 13px; font-weight: 700; text-align: center; }
.dv-sum { margin: 4px 2px 12px; font-weight: 600; color: var(--gray-7); }
.dv-card { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 64px; padding: 15px 14px; text-align: left; font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); margin-bottom: 11px; cursor: pointer; }
.dv-card.bad { border-left-color: var(--red); }
.dv-card:active { background: var(--gray-1); }
.dv-ct { flex: 1; min-width: 0; display: block; }
.dv-ct b { display: block; font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.dv-cs { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.dv-chev { flex: none; color: var(--faint); font-size: 24px; line-height: 1; }
.dv-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.dv-pill { display: inline-block; flex: none; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; border: 1px solid var(--gray-2); background: var(--gray-1); color: var(--gray-7); white-space: nowrap; }
.dv-pill.ok { background: var(--green-tint); border-color: #B7D9A5; color: var(--green-dark); }
.dv-pill.warn { background: var(--orange-tint); border-color: #F3C3A6; color: #B5551F; }
.dv-pill.gold { background: var(--gold-tint); border-color: #E8C55A; color: #8A6500; }
.dv-pill.bad { background: var(--red-tint); border-color: #E5B5B7; color: var(--red); }
.dv-red { color: var(--red); font-weight: 700; }
/* the computer log: title row, summary cards that are the flag filters, a toolbar, the scan queue, the table */
.dv-wide .dv-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 14px; }
.dv-wide .dv-titlerow { display: flex; align-items: center; gap: 14px; }
.dv-wide .dv-titlerow h1 { margin: 0; }
.dv-wide .dv-titlerow .btn { width: auto; min-height: 36px; font-size: 14px; padding: 0 12px; }
.dv-wide .dv-lede { margin: 4px 0 0; font-size: 14px; }
.dv-wide .dv-tr2 { margin-left: auto; text-align: right; }
.dv-wide .dv-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.dv-wide #dvAdd .btn.dv-act { width: auto; min-width: 0; min-height: 40px; margin: 0; padding: 0 18px; font-size: 15px; }
.dv-wide #dvAdd .dv-goes { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.dv-cards { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.dv-stat { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding: 11px 16px 12px; font: inherit; color: var(--ink); text-align: left; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.dv-stat .dv-n { font-size: 28px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dv-stat > span { font-size: 13px; font-weight: 600; color: var(--muted); }
button.dv-fc { cursor: pointer; transition: background .1s; }
button.dv-fc:hover { background: var(--gray-1); }
.dv-fc.k-over, .dv-fc.k-vendor { border-left-color: var(--red); }
.dv-fc.k-not_on_po { border-left-color: var(--orange); }
.dv-fc.k-no_po { border-left-color: var(--gold); }
.dv-fc.zero { border-left-color: var(--gray-3); }
.dv-fc.zero .dv-n, .dv-fc.zero > span { color: var(--faint); }
.dv-fc.on { border-width: 1px 1px 1px 4px; }
.dv-fc.on::after { content: "✓"; position: absolute; top: 8px; right: 12px; font-size: 15px; font-weight: 800; color: inherit; }
.dv-fc.on.k-over, .dv-fc.on.k-vendor { background: var(--red-tint); border-color: var(--red); color: var(--red); }
.dv-fc.on.k-not_on_po { background: var(--orange-tint); border-color: var(--orange); color: #B5551F; }
.dv-fc.on.k-no_po { background: var(--gold-tint); border-color: var(--gold); color: #8A6500; }
.dv-fc.k-wrong { border-left-color: var(--purple); }
.dv-fc.on.k-wrong { background: #EFEAFA; border-color: var(--purple); color: var(--purple); }
.dv-fc.on > span { color: inherit; }
.dv-fc:focus-visible, .dv-vbtn:focus-visible, .dv-qbtn:focus-visible, .dv-sel:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.dv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 10px; }
.dv-views, .dv-quick { display: inline-flex; flex: none; overflow: hidden; background: var(--white); border: 1px solid var(--gray-3); border-radius: var(--radius-sm); }
.dv-vbtn, .dv-qbtn { height: 34px; padding: 0 14px; font-size: 14px; font-weight: 700; color: var(--gray-5); background: none; border: 0; cursor: pointer; white-space: nowrap; }
.dv-qbtn { padding: 0 10px; font-size: 13px; }
.dv-vbtn + .dv-vbtn, .dv-qbtn + .dv-qbtn { border-left: 1px solid var(--gray-3); }
.dv-vbtn:hover, .dv-qbtn:hover { background: var(--gray-1); }
.dv-vbtn.on, .dv-qbtn.on { background: var(--blue-tint); color: var(--blue); }
.dv-exp { display: inline-flex; flex: none; gap: 2px; }
.dv-lnk { height: 34px; padding: 0 8px; font-size: 14px; font-weight: 600; color: var(--blue); background: none; border: 0; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.dv-lnk:hover { background: var(--blue-tint); }
.dv-job { position: relative; flex: none; }
.dv-sel { display: inline-flex; align-items: center; gap: 8px; max-width: 260px; height: 36px; padding: 0 12px; font-size: 14px; font-weight: 600; color: var(--ink); background: var(--white); border: 1px solid var(--gray-3); border-radius: var(--radius-sm); cursor: pointer; }
.dv-sel span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dv-sel i { flex: none; font-size: 11px; font-style: normal; color: var(--muted); }
.dv-sel.on { color: var(--blue); background: var(--blue-tint); border-color: var(--blue); }
.dv-jobpanel { position: absolute; z-index: 60; top: 40px; left: 0; min-width: 320px; max-height: 340px; overflow-y: auto; padding: 6px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.dv-jopt { display: block; width: 100%; padding: 8px 10px; font-size: 14px; font-weight: 600; color: var(--blue); text-align: left; background: none; border: 0; border-radius: 6px; cursor: pointer; }
.dv-jopt:hover { background: var(--blue-tint); }
.dv-jsep { height: 1px; margin: 4px 0; background: var(--line); }
.dv-jchk { display: flex; align-items: center; gap: 10px; padding: 7px 10px; font-size: 14px; border-radius: 6px; cursor: pointer; }
.dv-jchk:hover { background: var(--gray-1); }
.dv-jchk input { flex: none; width: 16px; height: 16px; margin: 0; }
.dv-jchk span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dv-jchk i { flex: none; font-size: 12px; font-style: normal; color: var(--muted); }
.dv-dates { display: inline-flex; flex: none; align-items: center; gap: 6px; }
.dv-date { width: 120px; height: 36px; box-sizing: border-box; padding: 0 8px; font-size: 14px; color: var(--ink); background: var(--white); border: 1px solid var(--gray-3); border-radius: var(--radius-sm); }
.dv-dash { color: var(--faint); }
.dv-dates .dv-quick { margin-left: 4px; }
.dv-wsearch { flex: 1 1 260px; min-width: 260px; max-width: 420px; height: 36px; box-sizing: border-box; padding: 0 12px; font-size: 14px; color: var(--ink); background: var(--white); border: 1px solid var(--gray-3); border-radius: var(--radius-sm); }
.dv-wsearch:focus, .dv-date:focus { outline: none; border-color: var(--blue); }
.dv-wide .btn.dv-clear { width: auto; min-height: 36px; height: 36px; padding: 0 12px; font-size: 14px; }
.dv-queue { margin: 0 0 10px; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.dv-qhead { display: flex; align-items: center; gap: 14px; padding: 6px 8px 6px 14px; background: var(--gray-1); border-bottom: 1px solid var(--line); }
.dv-qhead b { font-size: 14px; }
.dv-qprog { flex: 1; max-width: 320px; height: 6px; overflow: hidden; background: var(--gray-2); border-radius: 3px; }
.dv-qprog i { display: block; height: 100%; background: var(--blue); transition: width .2s; }
.dv-queue:not(.run) .dv-qprog i { background: var(--green); }
.dv-qx { width: 28px; height: 28px; margin-left: auto; font-size: 20px; line-height: 1; color: var(--muted); background: none; border: 0; border-radius: 6px; cursor: pointer; }
.dv-qx:hover { background: var(--gray-2); }
.dv-qlist { position: relative; max-height: 190px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.dv-q { display: flex; align-items: baseline; gap: 16px; padding: 5px 14px; font-size: 13px; border-bottom: 1px solid var(--line-soft); }
.dv-q:last-child { border-bottom: 0; }
.dv-qn { flex: none; width: 240px; overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.dv-qs { flex: 1; min-width: 0; color: var(--muted); }
.dv-q.read .dv-qs { color: var(--blue); font-weight: 600; }
.dv-q.ok .dv-qs { color: var(--green-dark); }
.dv-q.gold .dv-qs { color: #8A6500; }
.dv-q.fail .dv-qs { color: var(--red); }
.dv-q .dv-lnk { height: 22px; padding: 0 6px; font-size: 13px; }
.dv-hint { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.dv-loading { opacity: .55; pointer-events: none; transition: opacity .15s; }
.dv-empty { display: grid; justify-items: center; gap: 8px; padding: 64px 24px; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.dv-empty b { font-size: 19px; }
.dv-empty p { margin: 0; font-size: 15px; color: var(--muted); }
/* the table: the page scrolls and the two header rows stay under the app's header (--dv-top, set by the screen) */
.dv-tablewrap { overflow: clip; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); }
@media (max-width: 1180px) { .dv-tablewrap { overflow-x: auto; } }
.dv-table { width: 100%; min-width: 1040px; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 14px; }
/* the sidebar takes 264px (56px collapsed) and the window-width rules above do not know it: a narrower table, and sideways scroll instead of a clipped edge */
body.has-desk-side:not(.desk-side-collapsed) .dv-table { min-width: 940px; }
@media (max-width: 1270px) { body.has-desk-side:not(.desk-side-collapsed) .dv-tablewrap { overflow-x: auto; } }
@media (max-width: 1236px) { body.has-desk-side.desk-side-collapsed .dv-tablewrap { overflow-x: auto; } }
.dv-table th { box-sizing: border-box; position: sticky; z-index: 3; padding: 0 10px; text-align: left; background: #FAFBFC; border-bottom: 1px solid var(--line); }
.dv-hrow th { top: var(--dv-top, 0px); height: 36px; overflow: hidden; text-overflow: ellipsis; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.dv-frow th { top: calc(var(--dv-top, 0px) + 36px); height: 36px; padding-top: 5px; padding-bottom: 5px; font-weight: 400; }
.dv-sortable { cursor: pointer; user-select: none; }
.dv-sortable:hover, .dv-sortable.on { color: var(--ink); }
.dv-arrow { display: inline-block; width: 12px; margin-left: 4px; font-size: 9px; color: var(--blue); }
.dv-arrow:empty { display: none; }
.dv-cfi { display: block; width: 100%; min-width: 0; height: 26px; box-sizing: border-box; padding: 0 8px; font-family: var(--font); font-size: 13px; color: var(--ink); background: #F1F3F6; border: 1px solid transparent; border-radius: 5px; }
.dv-cfi:focus { background: var(--white); border-color: var(--blue); outline: none; }
select.dv-cfi { padding: 0 2px; }
.dv-table td { height: 36px; padding: 3px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; border-bottom: 1px solid var(--line-soft); }
.dv-table th.n, .dv-table td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dv-nw { white-space: nowrap; }
.dv-table td.dv-cx { padding-left: 4px; padding-right: 0; }
.dv-table td.dv-cfl { white-space: normal; }
.dv-cj span { color: var(--muted); }
.dv-vc { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dv-vn { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.dv-vc .dv-pill { flex: none; }
.dv-vdot { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.dv-vdot.bad { background: var(--red); }
.dv-vdot.gold { background: var(--gold); }
.dv-pill.sm { padding: 0 7px; font-size: 11px; vertical-align: middle; }
.dv-table .dv-pills { margin: 0; gap: 4px; }
.dv-cpo { white-space: nowrap; }
.dv-nopo { font-weight: 700; color: #8A6500; }
.dv-ts { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.dv-tr { cursor: pointer; }
.dv-tr.ok td:first-child { box-shadow: inset 4px 0 var(--green); }
.dv-tr.bad td:first-child { box-shadow: inset 4px 0 var(--red); }
.dv-tr:hover td { background: #F1F5FB; }
.dv-tr.open td { background: #F7F9FC; border-bottom-color: transparent; }
.dv-tr:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.dv-tog { width: 26px; height: 26px; padding: 0; font-size: 13px; color: var(--muted); background: none; border: 0; border-radius: 6px; cursor: pointer; }
.dv-tog:hover { color: var(--ink); background: var(--gray-2); }
.dv-thumb { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; overflow: hidden; font-size: 11px; font-weight: 700; color: var(--blue); background: var(--gray-1); border: 1px solid var(--gray-3); border-radius: 6px; vertical-align: middle; }
.dv-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dv-none { padding: 32px 10px !important; text-align: center; color: var(--muted); }
.dv-table td.dv-xrow-c, .dv-xrow > td { height: auto; padding: 4px 14px 12px 44px; overflow: visible; white-space: normal; background: #F7F9FC; }
.dv-itbl { width: auto; min-width: 720px; max-width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.dv-itbl th { padding: 5px 12px; text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); background: #FAFBFC; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dv-itbl td { padding: 5px 12px; vertical-align: middle; border-bottom: 1px solid var(--line-soft); }
.dv-itbl tr:last-child td { border-bottom: 0; }
.dv-itbl th.n, .dv-itbl td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dv-itbl tr.flag td:first-child { box-shadow: inset 3px 0 var(--red); }
.dv-itbl .dv-none { padding: 14px 12px !important; }
.dv-prog { display: inline-flex; width: 88px; height: 8px; overflow: hidden; vertical-align: middle; background: var(--gray-2); border-radius: 4px; }
.dv-prog i { display: block; height: 100%; }
.dv-prog .b { background: var(--blue); }
.dv-prog .r { background: var(--red); }
.dv-pct { display: inline-block; min-width: 44px; margin-left: 8px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; vertical-align: middle; }
.dv-foot { margin: 8px 2px 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.dv-drop { position: fixed; inset: 0; z-index: 1100; background: rgba(0, 87, 184, .10); pointer-events: none; }
.dv-drop > div { position: absolute; inset: 14px; display: grid; place-items: center; border: 3px dashed var(--blue); border-radius: var(--radius-lg); }
.dv-drop b { padding: 14px 28px; font-size: 24px; color: var(--blue); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
/* the ticket sheet */
.dv-sheetwrap { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center; background: rgba(26, 26, 26, .45); }
.dv-sheet { display: flex; flex-direction: column; width: 100%; max-width: 640px; max-height: 92vh; max-height: 92dvh; overflow: hidden; overflow: clip; background: var(--white); border-radius: 18px 18px 0 0; outline: none; }
.dv-shead { flex: none; display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; border-bottom: 1px solid var(--gray-2); }
.dv-rt { flex: 1; min-width: 0; display: block; text-align: left; }
.dv-rt b { display: block; font-size: 18px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-rt > span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-shx { flex: none; width: auto; min-height: 48px; padding: 0 22px; font-size: 16px; }
.dv-sb { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 14px; padding: 14px 14px calc(26px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain; }
.dv-sb > * { flex: none; min-width: 0; }
.dv-sb .banner, .dv-sb .sub, .dv-sb .dv-pills { margin: 0; }
.dv-sb .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 4px 2px -6px; }
.dv-mrow { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.dv-mrow span { flex: none; font-size: 14px; color: var(--muted); }
.dv-mrow b { font-size: 16px; text-align: right; overflow-wrap: anywhere; }
.dv-photo { display: flex; align-items: center; justify-content: center; width: 88px; height: 88px; overflow: hidden; border: 1px solid var(--gray-3); border-radius: var(--radius-sm); background: var(--gray-1); color: var(--blue); font-weight: 700; text-decoration: none; }
.dv-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dv-item { padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius); background: var(--white); }
.dv-item.flag { border-left-color: var(--red); }
.dv-ihead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dv-ihead b { font-size: 16px; overflow-wrap: anywhere; }
.dv-ihead span { flex: none; font-size: 16px; font-weight: 700; }
.dv-note { padding: 12px 14px; font-size: 15px; background: var(--gray-1); border-radius: var(--radius); overflow-wrap: anywhere; white-space: pre-wrap; }
/* the computer's drawer: from the right, ~540 px, the table stays visible behind a light scrim */
.dv-sheetwrap.dv-drawer { align-items: stretch; justify-content: flex-end; background: rgba(26, 26, 26, .18); }
.dv-drawer .dv-sheet { width: min(580px, 100vw); max-width: none; height: 100%; max-height: none; border-radius: 0; box-shadow: var(--shadow-lg); animation: dv-in .18s ease-out; }
@keyframes dv-in { from { transform: translateX(32px); opacity: 0; } to { transform: none; opacity: 1; } }
.dv-drawer .dv-shead { padding: 14px 20px; }
.dv-drawer .dv-shx { min-height: 36px; padding: 0 16px; font-size: 15px; }
.dv-drawer .dv-sb { gap: 16px; padding: 18px 20px 28px; }
.dv-big { display: flex; justify-content: center; overflow: hidden; background: var(--gray-1); border: 1px solid var(--line); border-radius: var(--radius); }
.dv-big img { display: block; max-width: 100%; max-height: 320px; object-fit: contain; }
.dv-pdf { display: flex; align-items: center; justify-content: center; height: 110px; font-size: 16px; font-weight: 700; color: var(--blue); text-decoration: none; background: var(--gray-1); border: 1px dashed var(--gray-3); border-radius: var(--radius); }
.dv-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.dv-fact { display: grid; gap: 1px; min-width: 0; }
.dv-fact.w { grid-column: 1 / -1; }
.dv-fact span { font-size: 12px; font-weight: 700; color: var(--muted); }
.dv-fact b { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.dv-itbl-d { width: 100%; min-width: 0; table-layout: fixed; font-size: 13px; }
.dv-itbl-d th, .dv-itbl-d td { padding: 5px 6px; white-space: normal; overflow-wrap: break-word; }
.dv-itbl-d th.n, .dv-itbl-d td.n { white-space: normal; }
.dv-itbl-d.p7 th:nth-child(1) { width: 30%; } .dv-itbl-d.p7 th:nth-child(2) { width: 8%; } .dv-itbl-d.p7 th:nth-child(3) { width: 8%; } .dv-itbl-d.p7 th:nth-child(4) { width: 16%; } .dv-itbl-d.p7 th:nth-child(5) { width: 11%; } .dv-itbl-d.p7 th:nth-child(6) { width: 14%; } .dv-itbl-d.p7 th:nth-child(7) { width: 13%; }
.dv-itbl-d.p9 { font-size: 12px; } .dv-itbl-d.p9 th, .dv-itbl-d.p9 td { padding: 5px 4px; } .dv-itbl-d.p9 th:nth-child(1) { width: 18%; } .dv-itbl-d.p9 th:nth-child(2) { width: 7%; } .dv-itbl-d.p9 th:nth-child(3) { width: 6%; } .dv-itbl-d.p9 th:nth-child(4) { width: 12%; } .dv-itbl-d.p9 th:nth-child(5) { width: 10%; } .dv-itbl-d.p9 th:nth-child(6) { width: 9%; } .dv-itbl-d.p9 th:nth-child(7) { width: 11%; } .dv-itbl-d.p9 th:nth-child(8) { width: 11%; } .dv-itbl-d.p9 th:nth-child(9) { width: 16%; }
.dv-itbl-d .dv-pill { padding: 1px 6px; font-size: 11px; }
/* the action row of the drawer: a bar under the scrolling content with its own solid background, never over it */
.dv-dfoot { flex: none; display: flex; flex-direction: column; gap: 8px; padding: 12px 20px; background: var(--white); border-top: 1px solid var(--line); }
.dv-dact, .dv-dask { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.dv-dact .dv-rm { margin-left: auto; }
.dv-dask > span { font-size: 14px; font-weight: 700; color: var(--red); margin-right: auto; }
.dv-sb .btn.dv-dbtn, .dv-dfoot .btn.dv-dbtn { width: auto; min-height: 40px; padding: 0 20px; font-size: 15px; }
.dv-dfoot .dv-goes { font-size: 13px; color: var(--muted); }
.dv-tval { margin: 0; text-align: right; font-size: 14px; font-weight: 700; }
.dv-sheetwrap:not(.dv-drawer) .dv-dfoot { display: none; }
/* round 4: groups, POs, the vendor drill-in, the ticket form, the recycle bin */
.dv-pill.quiet { background: var(--gray-1); border-color: var(--gray-2); color: var(--muted); font-weight: 600; }
.dv-ctk { white-space: normal !important; }
.dv-ctk .dv-pill { margin-left: 6px; vertical-align: middle; }
.dv-grp { display: inline-flex; flex: none; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.dv-gsel { height: 36px; padding: 0 6px; font-family: var(--font); font-size: 14px; color: var(--ink); background: var(--white); border: 1px solid var(--gray-3); border-radius: var(--radius-sm); }
.dv-chk { display: inline-flex; flex: none; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--gray-7); cursor: pointer; }
.dv-chk input { width: 16px; height: 16px; margin: 0; }
.dv-gh td { padding: 0 10px; height: 36px; background: #F1F4F9; border-bottom: 1px solid var(--line); cursor: pointer; }
.dv-gh.lv1 td { background: #F7F9FC; }
.dv-gh.lv1 .dv-ghc { padding-left: 22px; }
.dv-gh.dv-gj td { cursor: default; background: #EAEFF6; }
.dv-gh:hover td { background: #E8EEF7; }
.dv-gh.dv-gj:hover td { background: #EAEFF6; }
.dv-ghc { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dv-ghc b { overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.dv-ghn { margin-left: auto; flex: none; font-size: 13px; font-weight: 600; color: var(--muted); }
.dv-gh:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.dv-table td.dv-lv1 { padding-left: 26px; }
.dv-table td.dv-lv2 { padding-left: 42px; }
.dv-table td.dv-lv3 { padding-left: 58px; }
.dv-table td.dv-pon, .dv-table td.dv-lnum { white-space: normal; }
.dv-poh { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; }
.dv-poh b { font-size: 14px; }
.dv-pod, .dv-pom { font-size: 13px; font-weight: 400; color: var(--muted); }
.dv-pom { margin-left: 10px; }
.dv-pov { flex-basis: 100%; font-size: 13px; font-weight: 600; color: var(--gray-7); }
.dv-po td { background: #FAFBFC; }
.dv-po:hover td { background: #F1F5FB; }
.dv-ln.q0 td { color: var(--muted); }
.dv-sub { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.dv-sub.dv-red { color: var(--red); }
.dv-lnum .dv-ts { display: block; }
.dv-binhead { display: flex; align-items: center; gap: 16px; margin: 0 0 4px; }
.dv-binhead h2 { margin: 0; font-size: 21px; }
.dv-binact { white-space: normal !important; text-align: right; }
.dv-binact .dv-rowbtn { width: auto; min-height: 30px; padding: 0 10px; margin-left: 6px; font-size: 13px; }
.dv-ask { margin-right: 6px; font-size: 13px; font-weight: 700; color: var(--red); }
.dv-binbtn.on { color: var(--blue); border-color: var(--blue); background: var(--blue-tint); }
.dv-wform .dv-sheet { width: min(680px, 100vw); }
.dv-drawer.dv-wprice .dv-sheet { width: min(720px, 100vw); }
.dv-form { display: flex; flex-direction: column; gap: 12px; }
.dv-form > * { flex: none; }
.dv-frow2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dv-form .field { margin: 0; min-width: 0; }
.dv-fnote { margin: -4px 0 0; font-size: 13px; color: var(--muted); }
.dv-drawer .dv-form .field label { margin: 0 0 3px; font-size: 12px; color: var(--muted); }
.dv-drawer .dv-form .field select, .dv-drawer .dv-form .field input[type="text"], .dv-drawer .dv-form .field input[type="date"] { min-height: 36px; height: 36px; padding: 0 8px; font-size: 14px; border-width: 1px; }
.dv-drawer .dv-form .field textarea { min-height: 56px; padding: 6px 8px; font-size: 14px; border-width: 1px; }
.dv-eitbl { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0 6px; }
.dv-eitbl th { padding: 0 4px; text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); }
.dv-eitbl th:nth-child(1) { width: 30%; } .dv-eitbl th:nth-child(2) { width: 12%; } .dv-eitbl th:nth-child(3) { width: 12%; } .dv-eitbl th:nth-child(4) { width: 38%; } .dv-eitbl th:nth-child(5) { width: 8%; }
.dv-eitbl td { padding: 0 4px; }
.dv-eitbl th.n { text-align: right; }
.dv-fin { display: block; width: 100%; min-width: 0; height: 34px; box-sizing: border-box; padding: 0 8px; font-family: var(--font); font-size: 14px; color: var(--ink); background: var(--white); border: 1px solid var(--gray-3); border-radius: var(--radius-sm); }
.dv-fin.n { text-align: right; }
.dv-fin:focus { outline: none; border-color: var(--blue); }
.dv-fin:disabled { background: var(--gray-1); color: var(--faint); }
.dv-fxc { text-align: center; }
.dv-fx { font-size: 18px; color: var(--muted); }
.dv-fadd { align-self: flex-start; }
.dv-fphoto { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; background: var(--gray-1); border: 1px dashed var(--gray-3); border-radius: var(--radius); }
.dv-fphoto .btn { width: auto; min-height: 32px; padding: 0 12px; font-size: 14px; }
.dv-fpn { font-size: 13px; color: var(--muted); }
/* job contacts: the project team over the drawer's content, or in a drawer of its own */
.dv-sheet { position: relative; }
.dv-shct { margin-left: auto; }
.dv-rt { margin-right: 4px; }
.dv-cpanel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; overflow-y: auto; padding: 18px 20px 24px; background: var(--white); animation: dv-in .16s ease-out; }
.dv-cbody { display: flex; flex-direction: column; gap: 10px; }
.dv-ch { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 8px; }
.dv-ch h3 { margin: 0; font-size: 17px; font-weight: 800; }
.dv-cl2 { list-style: none; margin: 0; padding: 0; }
.dv-cp { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.9fr) minmax(0, 1.1fr); gap: 4px 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.dv-cp b { font-size: 15px; overflow-wrap: anywhere; }
.dv-crole { font-size: 13px; color: var(--muted); }
.dv-cem, .dv-cph2 { color: var(--blue); text-decoration: none; overflow-wrap: anywhere; }
.dv-cem:hover, .dv-cph2:hover { text-decoration: underline; }
.dv-cno { font-size: 13px; font-style: italic; color: var(--faint); }
.dv-cact { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.dv-cact .btn.dv-ctbtn2 { width: auto; min-height: 40px; padding: 0 18px; font-size: 15px; text-decoration: none; }
.dv-cact span.dv-ctbtn2[aria-disabled] { opacity: .45; }
.dv-ctline { margin: 0; font-size: 14px; color: var(--muted); }
.dv-ctline .dv-ctbtn { height: auto; padding: 0 4px; font-size: 14px; text-decoration: underline; }
.dv-ctl { height: 24px; margin-left: 10px; padding: 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.dv-ctl:hover { color: var(--blue); }
.dv-sheetwrap:not(.dv-drawer) .dv-cp { grid-template-columns: 1fr; }
.dv-sheetwrap:not(.dv-drawer) .dv-cact .btn.dv-ctbtn2 { width: 100%; min-height: 52px; }
.dv-sheetwrap:not(.dv-drawer) .dv-ctline .dv-ctbtn { min-height: 48px; padding: 0 12px; }
.dv-sheetwrap:not(.dv-drawer) .dv-cpanel { padding: 14px 14px 26px; }
.dv-sheetwrap:not(.dv-drawer) .dv-cpanel .dv-lnk { min-height: 48px; padding: 0 10px; font-size: 16px; }
/* moving a ticket: the banners with their buttons, the small form, the bulk banner over the table */
.dv-mvb { flex-wrap: wrap; justify-content: space-between; }
.dv-mvb > span:first-child { flex: 1 1 220px; min-width: 0; }
.dv-mvacts { display: flex; flex-wrap: wrap; gap: 8px; }
.dv-mvb .btn.dv-mvbtn { margin-left: 0; min-height: 34px; padding: 0 12px; font-size: 14px; background: var(--white); }
.dv-mvq, .dv-moved { margin: 0; font-size: 13px; color: var(--muted); }
.dv-sheetwrap:not(.dv-drawer) .dv-mvb .btn { width: 100%; }
.dv-mvform { display: grid; gap: 10px; padding: 12px 14px; background: var(--gray-1); border: 1px solid var(--line); border-radius: var(--radius); }
.dv-mvform .field { margin: 0; }
.dv-mvrow { display: flex; gap: 10px; }
.dv-drawer .dv-mvform .field label { margin: 0 0 3px; font-size: 12px; color: var(--muted); }
.dv-drawer .dv-mvform .field select, .dv-drawer .dv-mvform .field input[type="date"] { min-height: 36px; height: 36px; padding: 0 8px; font-size: 14px; border-width: 1px; }
.dv-drawer .dv-mvrow .btn { width: auto; min-height: 36px; padding: 0 18px; font-size: 14px; }
.dv-bulk { margin: 0 0 10px; flex-wrap: wrap; }
.dv-bulk > span { flex: 1 1 300px; }
.dv-bulk .btn.dv-mvbtn { margin-left: auto; min-height: 34px; padding: 0 12px; font-size: 14px; background: var(--white); }
.dv-bulkwrap { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(26, 26, 26, .45); }
.dv-bulkbox { display: flex; flex-direction: column; width: 100%; max-width: 560px; max-height: 88vh; max-height: 88dvh; overflow: hidden; background: var(--white); border-radius: 14px; }
.dv-bulkhead { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--gray-2); font-size: 17px; }
.dv-bulkhead .btn.dv-bulkx { width: auto; min-height: 40px; padding: 0 14px; font-size: 16px; }
.dv-bulklist { flex: 1 1 auto; min-height: 0; margin: 0; padding: 0 14px; list-style: none; overflow-y: auto; }
.dv-bulkrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dv-bulkinfo { flex: 1; min-width: 0; font-size: 15px; overflow-wrap: anywhere; }
.dv-bulkrow .btn { flex: none; width: auto; min-height: 36px; padding: 0 16px; }
.dv-bulkstay { flex: none; max-width: 40%; text-align: right; }
.dv-bulkfoot { flex: none; padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--gray-2); }
.dv-bulkfoot .btn { width: 100%; }

/* ---- Invoices (invoices.js; .screen.iv-root) ----
   The computer screen first (the Delivery Log's look: summary cards that filter, a toolbar, the scan queue, a table, a drawer-like detail), then 820 px and
   narrower: the list full width, a picked invoice full screen with a "‹ Invoices" link. The page never scrolls sideways; a wide table sits in its own wrapper that does. */
.screen.iv-root { max-width: 1680px; padding-left: 24px; padding-right: 24px; }
.iv-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 14px; }
.iv-titlerow { display: flex; align-items: center; gap: 14px; }
.iv-titlerow h1 { margin: 0; }
.iv-titlerow .btn { width: auto; min-height: 36px; font-size: 14px; padding: 0 12px; }
.iv-lede { margin: 4px 0 0; max-width: 760px; font-size: 14px; }
.iv-tr2 { margin-left: auto; text-align: right; }
.iv-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
#ivAdd .btn.iv-act { width: auto; min-width: 0; min-height: 40px; margin: 0; padding: 0 18px; font-size: 15px; }
#ivAdd .iv-goes { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.iv-binbtn.on { color: var(--blue); border-color: var(--blue); background: var(--blue-tint); }
.iv-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.iv-stat { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding: 11px 16px 12px; font: inherit; color: var(--ink); text-align: left; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.iv-stat .iv-n { font-size: 28px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.iv-stat > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.iv-stat.k-ok { border-left-color: var(--green); }
button.iv-fc { cursor: pointer; transition: background .1s; }
button.iv-fc:hover { background: var(--gray-1); }
.iv-fc.k-look { border-left-color: var(--red); }
.iv-fc.k-tax { border-left-color: var(--purple); }
.iv-fc.k-hold { border-left-color: var(--gold); }
.iv-fc.zero { border-left-color: var(--gray-3); }
.iv-fc.zero .iv-n, .iv-fc.zero > span { color: var(--faint); }
.iv-fc.on { border-width: 1px 1px 1px 4px; }
.iv-fc.on::after { content: "✓"; position: absolute; top: 8px; right: 12px; font-size: 15px; font-weight: 800; color: inherit; }
.iv-fc.on.k-look { background: var(--red-tint); border-color: var(--red); color: var(--red); }
.iv-fc.on.k-tax { background: #EFEAFA; border-color: var(--purple); color: var(--purple); }
.iv-fc.on.k-hold { background: var(--gold-tint); border-color: var(--gold); color: #8A6500; }
.iv-fc.on > span { color: inherit; }
.iv-fc:focus-visible, .iv-vbtn:focus-visible, .iv-qbtn:focus-visible, .iv-sel:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.iv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 10px; }
.iv-views, .iv-quick { display: inline-flex; flex: none; overflow: hidden; background: var(--white); border: 1px solid var(--gray-3); border-radius: var(--radius-sm); }
.iv-vbtn, .iv-qbtn { height: 34px; padding: 0 14px; font-size: 14px; font-weight: 700; color: var(--gray-5); background: none; border: 0; cursor: pointer; white-space: nowrap; }
.iv-qbtn { padding: 0 10px; font-size: 13px; }
.iv-vbtn + .iv-vbtn, .iv-qbtn + .iv-qbtn { border-left: 1px solid var(--gray-3); }
.iv-vbtn:hover, .iv-qbtn:hover { background: var(--gray-1); }
.iv-vbtn.on, .iv-qbtn.on { background: var(--blue-tint); color: var(--blue); }
.iv-job { position: relative; flex: none; }
.iv-sel { display: inline-flex; align-items: center; gap: 8px; max-width: 260px; height: 36px; padding: 0 12px; font-size: 14px; font-weight: 600; color: var(--ink); background: var(--white); border: 1px solid var(--gray-3); border-radius: var(--radius-sm); cursor: pointer; }
.iv-sel span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iv-sel i { flex: none; font-size: 11px; font-style: normal; color: var(--muted); }
.iv-sel.on { color: var(--blue); background: var(--blue-tint); border-color: var(--blue); }
.iv-jobpanel { position: absolute; z-index: 60; top: 40px; left: 0; min-width: 320px; max-height: 340px; overflow-y: auto; padding: 6px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.iv-jopt { display: block; width: 100%; padding: 8px 10px; font-size: 14px; font-weight: 600; color: var(--blue); text-align: left; background: none; border: 0; border-radius: 6px; cursor: pointer; }
.iv-jopt:hover { background: var(--blue-tint); }
.iv-jsep { height: 1px; margin: 4px 0; background: var(--line); }
.iv-jchk { display: flex; align-items: center; gap: 10px; padding: 7px 10px; font-size: 14px; border-radius: 6px; cursor: pointer; }
.iv-jchk:hover { background: var(--gray-1); }
.iv-jchk input { flex: none; width: 16px; height: 16px; margin: 0; }
.iv-jchk span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iv-jchk i { flex: none; font-size: 12px; font-style: normal; color: var(--muted); }
.iv-grp { display: inline-flex; flex: none; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.iv-gsel { height: 36px; padding: 0 6px; font-family: var(--font); font-size: 14px; color: var(--ink); background: var(--white); border: 1px solid var(--gray-3); border-radius: var(--radius-sm); }
.iv-wsearch { flex: 1 1 240px; min-width: 200px; max-width: 420px; height: 36px; box-sizing: border-box; padding: 0 12px; font-size: 14px; color: var(--ink); background: var(--white); border: 1px solid var(--gray-3); border-radius: var(--radius-sm); }
.iv-wsearch:focus { outline: none; border-color: var(--blue); }
.iv-root .btn.iv-clear { width: auto; min-height: 36px; height: 36px; padding: 0 12px; font-size: 14px; }
.iv-queue { margin: 0 0 10px; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.iv-qhead { display: flex; align-items: center; gap: 14px; padding: 6px 8px 6px 14px; background: var(--gray-1); border-bottom: 1px solid var(--line); }
.iv-qhead b { font-size: 14px; }
.iv-qprog { flex: 1; max-width: 320px; height: 6px; overflow: hidden; background: var(--gray-2); border-radius: 3px; }
.iv-qprog i { display: block; height: 100%; background: var(--blue); transition: width .2s; }
.iv-queue:not(.run) .iv-qprog i { background: var(--green); }
.iv-qx { width: 28px; height: 28px; margin-left: auto; font-size: 20px; line-height: 1; color: var(--muted); background: none; border: 0; border-radius: 6px; cursor: pointer; }
.iv-qx:hover { background: var(--gray-2); }
.iv-qlist { position: relative; max-height: 190px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.iv-q { display: flex; align-items: baseline; gap: 16px; padding: 5px 14px; font-size: 13px; border-bottom: 1px solid var(--line-soft); }
.iv-q:last-child { border-bottom: 0; }
.iv-qn { flex: none; width: 240px; overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.iv-qs { flex: 1; min-width: 0; color: var(--muted); }
.iv-q.read .iv-qs { color: var(--blue); font-weight: 600; }
.iv-q.ok .iv-qs { color: var(--green-dark); }
.iv-q.gold .iv-qs { color: #8A6500; }
.iv-q.fail .iv-qs { color: var(--red); }
.iv-q .dv-lnk { height: 22px; padding: 0 6px; font-size: 13px; }
.iv-hint { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.iv-loading { opacity: .55; pointer-events: none; transition: opacity .15s; }
.iv-empty { display: grid; justify-items: center; gap: 8px; padding: 64px 24px; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.iv-empty b { font-size: 19px; }
.iv-drop { position: fixed; inset: 0; z-index: 1100; background: rgba(0, 87, 184, .10); pointer-events: none; }
.iv-drop > div { position: absolute; inset: 14px; display: grid; place-items: center; border: 3px dashed var(--blue); border-radius: var(--radius-lg); }
.iv-drop b { padding: 14px 28px; font-size: 24px; color: var(--blue); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
/* the list full width; a picked invoice replaces it (and the cards, the toolbar and the set-up card) with the review view: the paper on the left, the details on the right */
.iv-panes { display: block; }
.iv-listpane { min-width: 0; }
.iv-detailpane { display: none; min-width: 0; }
.iv-d .iv-detailpane { display: block; }
.iv-d .iv-top, .iv-d .iv-cards, .iv-d .iv-bar, .iv-d #ivSetup, .iv-d .iv-listpane { display: none; }
.screen.iv-root.iv-d { padding-top: 10px; padding-bottom: 12px; }
.iv-card { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.iv-tablewrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.iv-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.iv-table th { padding: 0 8px; height: 36px; text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; background: #FAFBFC; border-bottom: 1px solid var(--line); }
.iv-table td { padding: 8px; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.iv-table th.n, .iv-table td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.iv-sortable { cursor: pointer; user-select: none; }
.iv-sortable:hover, .iv-sortable.on { color: var(--ink); }
.iv-arrow { display: inline-block; width: 12px; margin-left: 4px; font-size: 9px; color: var(--blue); }
.iv-arrow:empty { display: none; }
.iv-tr { cursor: pointer; }
.iv-tr.ok td:first-child { box-shadow: inset 4px 0 var(--green); }
.iv-tr.bad td:first-child { box-shadow: inset 4px 0 var(--red); }
.iv-tr:hover td { background: #F1F5FB; }
.iv-tr.sel td { background: var(--blue-tint); }
.iv-tr:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.iv-vend { font-weight: 700; overflow-wrap: break-word; }
.iv-table td.iv-cinv, .iv-table th.iv-cinv { min-width: 128px; }
.iv-table td.iv-cchk, .iv-table th.iv-cchk { min-width: 126px; }
.iv-table td.iv-cappr, .iv-table th.iv-cappr { min-width: 96px; }
.iv-small { font-size: 12px; color: var(--muted); }
.iv-cjob span { color: var(--muted); }
.iv-cpo, .iv-ctot { white-space: nowrap; }
/* The list has no pills: a thing that needs a look is red letters, a reviewed one grey, the rest plain ink */
.iv-ft { font-size: 12.5px; line-height: 1.35; color: var(--ink); }
.iv-ft.iv-rd { color: var(--red); font-weight: 600; }
.iv-ft.iv-reviewed { color: var(--muted); }
.iv-og, .iv-ft.iv-og, .iv-lean .iv-og, .iv-polt .iv-og { color: #B5551F; font-weight: 600; }   /* over the PO, $5,000 to $25,000: orange (the SL Worksheet's orange) */
.iv-oy, .iv-ft.iv-oy, .iv-lean .iv-oy, .iv-polt .iv-oy { color: var(--gold-ink); font-weight: 600; }   /* over the PO, under $5,000: yellow; red past $25,000 is the usual red */
.iv-table td.iv-cdate, .iv-table th.iv-cdate { white-space: nowrap; }
.iv-table td.iv-cjob, .iv-table th.iv-cjob { min-width: 88px; }
.iv-table .iv-filterrow th { height: auto; padding: 4px 8px 6px; font-weight: 400; }
.iv-colq { width: 100%; min-width: 64px; height: 28px; box-sizing: border-box; padding: 0 8px; font-size: 12px; color: var(--ink); background: var(--white); border: 1px solid var(--gray-3); border-radius: var(--radius-sm); }
.iv-colq:focus { outline: none; border-color: var(--blue); }
.iv-pill { display: inline-block; flex: none; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--gray-2); background: var(--gray-1); color: var(--gray-7); }
.iv-pill.red { background: var(--red-tint); border-color: #E5B5B7; color: var(--red); }
.iv-pill.orange { background: var(--orange-tint); border-color: #F3C3A6; color: #B5551F; }
.iv-pill.gold { background: var(--gold-tint); border-color: #E8C55A; color: #8A6500; }
.iv-pill.green { background: var(--green-tint); border-color: #B7D9A5; color: var(--green-dark); }
.iv-pill.purple { background: #EFEAFA; border-color: #C9BBEC; color: var(--purple); }
.iv-pill.blue { background: var(--blue-tint); border-color: #BAD2EE; color: var(--blue); }
.iv-pill.grey { background: var(--gray-1); border-color: var(--gray-2); color: var(--muted); font-weight: 600; }
.iv-ai { display: inline-block; margin-left: 5px; padding: 0 4px; font-size: 10px; font-weight: 800; line-height: 1.4; color: var(--blue); border: 1px solid var(--blue); border-radius: 4px; vertical-align: 1px; }
.iv-foot { margin: 8px 2px 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.iv-none { padding: 32px 10px !important; text-align: center; color: var(--muted); }
.iv-none p { margin: 6px 0 0; font-size: 13px; font-weight: 400; }
.iv-nodetail { padding: 40px 24px; text-align: center; }
.iv-nodetail p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
/* the picked invoice */
.iv-detail { display: flex; flex-direction: column; gap: 16px; padding: 16px; }
.iv-back { display: none; align-self: flex-start; height: 40px; }
.iv-dhead { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px 14px; }
.iv-dtitle { min-width: 0; flex: 1 1 220px; }
.iv-dhead h2 { margin: 0; font-size: 19px; font-weight: 800; overflow-wrap: anywhere; }
.iv-eyebrow { margin: 0 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.iv-tkfacts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 12px; font-size: 14px; }
.iv-tkfacts dt { color: var(--muted); }
.iv-tkfacts dd { margin: 0; font-weight: 700; }
.iv-nw { white-space: nowrap; }
.iv-ok { color: var(--green-dark); font-weight: 700; }
.iv-decide { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.iv-decide .btn { width: auto; min-height: 38px; padding: 0 16px; font-size: 14px; }
.iv-note { flex: 1 1 240px; min-width: 0; height: 38px; padding: 0 10px; font: inherit; font-size: 14px; color: var(--ink); background: var(--white); border: 1px solid var(--gray-3); border-radius: var(--radius-sm); }
.iv-note.need { border-color: var(--red); background: var(--red-tint); }
.iv-note:focus { outline: none; border-color: var(--blue); }
.iv-dbtn.iv-red { color: var(--red); border-color: var(--red); }
.iv-waitline { flex: 1 1 240px; font-size: 14px; }
.iv-hint { color: var(--muted); }
.iv-paper { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 14px; font-size: 13px; background: var(--gray-1); border: 1px solid var(--line); border-radius: 8px; }
.iv-paperbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.iv-paper .btn { width: auto; min-height: 38px; padding: 0 16px; font-size: 14px; text-decoration: none; }
.iv-img { display: block; width: 100%; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.iv-page { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.iv-pg { position: relative; }
.iv-pg + .iv-pg { margin-top: 10px; }
.iv-spot { position: absolute; box-sizing: border-box; border: 2px solid var(--blue); border-radius: 8px; pointer-events: none; }
.iv-zoom { transform-origin: top left; }
/* the review view: a bar, then the paper (60%) and the details (40%), each scrolling on its own */
.iv-review { display: flex; flex-direction: column; gap: 8px; height: calc(100vh - var(--iv-top, 0px) - 24px); min-height: 420px; }
.iv-rvbar { display: flex; flex: none; align-items: center; gap: 10px; }
.iv-rvback { height: 36px; font-size: 15px; }
.iv-rvpos { font-size: 14px; font-weight: 700; color: var(--muted); }
.iv-rvnav { display: inline-flex; gap: 8px; margin-left: auto; }
.iv-rvbar .btn-sm, .iv-rvzoom .btn-sm { width: auto; min-width: 0; min-height: 34px; margin: 0; padding: 0 14px; font-size: 14px; }
.iv-rvpanes { display: grid; flex: 1; grid-template-columns: minmax(0, 60fr) 10px minmax(0, 40fr); gap: 0; min-height: 0; }
.iv-rvleft { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.iv-rvzoom { display: flex; flex: none; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.iv-rvpct { min-width: 48px; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); }
.iv-rvscroll { flex: 1; min-height: 0; overflow: auto; background: var(--gray-1); }
.iv-rvscroll .iv-paper { padding: 10px; background: none; border: 0; border-radius: 0; }
.iv-rvright { min-width: 0; min-height: 0; overflow-x: hidden; overflow-y: auto; }
.iv-dno { white-space: nowrap; }
/* the details, lean (the review view's right pane and the phone's stacked detail): plain lines, no boxes, red only where something is wrong */
.iv-detail.iv-lean { gap: 0; padding: 12px 16px 14px; }
.iv-h1 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.iv-h1 h2 { flex: 1 1 180px; min-width: 0; margin: 0; font-size: 17px; font-weight: 800; overflow-wrap: anywhere; }
.iv-h1t { flex: none; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.iv-h2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 26px; margin-top: 2px; }
.iv-fixbtn { width: auto; min-width: 0; min-height: 26px; margin: 0; padding: 0 10px; font-size: 12px; }
.iv-dupline { margin-top: 8px; font-size: 13px; }
.iv-dupline.bad { color: var(--red); }
.iv-sec { margin: 14px 0 4px; font-size: 15px; font-weight: 700; color: var(--ink); }
.iv-lean .bad { color: var(--red); font-weight: 600; }
.iv-revd { color: var(--muted); }
.iv-warnx { color: var(--gold-ink); font-weight: 600; }
.iv-lnkbtn { display: inline; width: auto; min-width: 0; min-height: 0; margin: 0; padding: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--blue); text-decoration: underline; background: none; border: 0; cursor: pointer; }
.iv-lnkbtn:disabled { opacity: .5; cursor: default; }
.iv-lnkbtn:focus-visible, .iv-tkno:focus-visible, .iv-rgbtn:focus-visible, .iv-fold > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.iv-revbtn { margin-left: 8px; font-size: 12px; white-space: nowrap; }
.iv-sendbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 10px; }
.iv-sendbar .btn { width: auto; min-height: 36px; padding: 0 18px; font-size: 14px; }
.iv-checked { font-size: 13px; color: var(--muted); }
/* Checks: a fixed 90px label, then the text; the Reviewed link at the end of the line */
.iv-ck { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; align-items: baseline; padding: 3px 0; font-size: 13px; }
.iv-cklab { color: var(--muted); }
.iv-cktx { min-width: 0; overflow-wrap: anywhere; }
/* Lines: Ticket, Description, Qty, Amount, Status (rows 32px, no sideways scroll) */
.iv-lt { width: 100%; border-collapse: collapse; font-size: 13px; }
.iv-lt th { padding: 2px 8px 4px 0; text-align: left; font-size: 11px; font-weight: 600; color: var(--faint); white-space: nowrap; border-bottom: 1px solid var(--line); }
.iv-lt td { height: 32px; padding: 3px 8px 3px 0; vertical-align: middle; border-bottom: 1px solid var(--line-soft); overflow-wrap: anywhere; }
.iv-lt th:last-child, .iv-lt td:last-child { padding-right: 0; }
.iv-lt th.n, .iv-lt td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.iv-lt th.n + th.n, .iv-lt td.n + td.n { padding-left: 0; }
.iv-ltk { white-space: normal; }
.iv-tkno { padding: 0; margin-right: 6px; font: inherit; font-weight: 600; color: var(--blue); text-decoration: underline; background: none; border: 0; white-space: nowrap; cursor: pointer; }
.iv-tkno::after { content: " ›"; display: inline-block; text-decoration: none; }
.iv-lck { line-height: 1.3; }
.iv-lt .iv-none { padding: 20px 10px; height: auto; }
/* Approval: a line a rung; tapping it opens its limit and full wording */
.iv-rgbtn { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 124px; align-items: baseline; gap: 8px; width: 100%; min-height: 28px; padding: 3px 0; font: inherit; font-size: 13px; text-align: left; color: var(--ink); background: none; border: 0; cursor: pointer; }
.iv-rgn { font-weight: 600; }
.iv-rgs { font-size: 12px; text-align: right; white-space: nowrap; color: var(--muted); }
.iv-rgd { padding: 0 0 4px; }
.iv-lean .iv-decide { margin-top: 8px; }
/* the folds at the bottom: a plain summary line each */
.iv-folds { margin-top: 12px; border-top: 1px solid var(--line); }
.iv-fold { border-bottom: 1px solid var(--line-soft); }
.iv-fold > summary { display: flex; align-items: center; gap: 6px; min-height: 32px; font-size: 13px; color: var(--muted); cursor: pointer; list-style: none; }
.iv-fold > summary::-webkit-details-marker { display: none; }
.iv-chev { display: inline-block; transition: transform .15s; }
.iv-fold[open] > summary .iv-chev { transform: rotate(90deg); }
.iv-fold > :not(summary) { padding: 4px 0 10px; }
.iv-fold .iv-kv { grid-template-columns: 110px minmax(0, 1fr); gap: 4px 12px; margin: 0; }
.iv-fold .iv-kv dt, .iv-fold .iv-kv dd { font-size: 13px; }
/* the handle between the panes */
.iv-rvsplit { position: relative; cursor: col-resize; touch-action: none; user-select: none; }
.iv-rvsplit::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; transform: translateX(-50%); border-radius: 2px; background: transparent; }
.iv-rvsplit:hover::before, .iv-rvsplit.on::before, .iv-rvsplit:focus-visible::before { background: var(--blue); }
.iv-rvsplit:focus-visible { outline: none; }
@media (min-width: 821px) {
  .iv-lean .iv-decide:has(.iv-note) { flex-wrap: wrap; }   /* the note box and the buttons are one row while the pane has room, and the last button drops to a second line when it does not (a 383 px pane at 1280 wide ran Job contacts off the edge, 2026-11-26); the waiting line wraps as it needs. Email the vendor lives in the contacts panel, not here: a fifth button overflowed this row sideways (2026-10-09) */
  .iv-lean .iv-note { flex: 1 1 140px; min-width: 120px; height: 34px; }
  .iv-lean .iv-decide .btn { flex: none; min-height: 34px; padding: 0 12px; font-size: 13px; }
}
.iv-pulled { margin: 0; }
/* Reviewed checks: accounting looked and it is no big deal: the check stays, grey (the pill in the list; in the details the line goes grey with who and when) */
.iv-revby { margin-top: 2px; }
.iv-goto { width: auto; min-height: 30px; margin: 2px 0 0 6px; padding: 0 10px; font-size: 13px; }
.iv-again { margin: 6px 0 0; }
/* the ticket viewer: a centred dialog on a computer, a full-screen slide-up on a phone */
.iv-tkwrap { position: fixed; inset: 0; z-index: 1050; display: flex; align-items: center; justify-content: center; background: rgba(26, 26, 26, .6); }
.iv-tkbox { display: flex; flex-direction: column; width: min(1000px, 94vw); height: min(92vh, 900px); overflow: hidden; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.iv-tkhead { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.iv-tkht { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.iv-tkht b { font-size: 18px; font-weight: 800; }
.iv-tkx { flex: none; width: 40px; height: 40px; font-size: 20px; line-height: 1; color: var(--ink); background: none; border: 0; border-radius: 8px; cursor: pointer; }
.iv-tkx:hover { background: var(--gray-2); }
.iv-tkbody { flex: 1; min-height: 0; padding: 10px 14px 16px; overflow: auto; }
.iv-tkzoombar { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.iv-tkzoombar .btn-sm { width: auto; min-width: 0; min-height: 34px; margin: 0; padding: 0 14px; font-size: 14px; }
.iv-tkpic { max-height: 62vh; overflow: auto; margin: 0 0 12px; background: var(--gray-1); border: 1px solid var(--line); border-radius: 8px; }
/* Wide screens: the ticket on the left, filling the height; what was delivered on the right. Phones keep the stacked layout. */
@media (min-width: 900px) {
  .iv-tkbox { width: min(1600px, 96vw); height: 94vh; }
  .iv-tkbody { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 16px; overflow: hidden; }
  .iv-tkleft { display: flex; flex-direction: column; min-height: 0; }
  .iv-tkleft .iv-tkpic { flex: 1; max-height: none; margin: 0; }
  .iv-tkright { min-height: 0; overflow: auto; padding-left: 16px; border-left: 1px solid var(--line); }
}
.iv-tkzoom { width: 100%; }
.iv-tkzoom .iv-img { border: 0; border-radius: 0; }
.iv-tknopic { margin: 4px 0 14px; font-size: 14px; }
.iv-tkitems { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.iv-tkitems li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
@keyframes iv-tkup { from { transform: translateY(100%); } to { transform: none; } }
.iv-hist { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13px; }
.iv-hist li { padding: 4px 0; border-bottom: 1px solid var(--line-soft); overflow-wrap: anywhere; }
.iv-hat { color: var(--muted); }
.iv-hnote { font-style: italic; }
/* job contacts: the project team under the buttons */
.iv-cpanel { padding: 12px 14px; background: var(--gray-1); border: 1px solid var(--line); border-radius: 8px; }
.iv-ch h3 { margin: 0 0 6px; font-size: 16px; font-weight: 800; }
.iv-cl { margin: 0; padding: 0; list-style: none; }
.iv-cp { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.9fr) minmax(0, 1.1fr); gap: 4px 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.iv-crole { font-size: 13px; color: var(--muted); }
.iv-cem { color: var(--blue); text-decoration: none; overflow-wrap: anywhere; }
.iv-cno { font-size: 13px; font-style: italic; color: var(--faint); }
.iv-cact { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.iv-cact .btn.iv-ctb2 { width: auto; min-height: 38px; padding: 0 16px; font-size: 14px; text-decoration: none; }
.iv-cact span.iv-ctb2[aria-disabled] { opacity: .45; }
.iv-vrow { display: flex; gap: 8px; margin: 2px 0; font-size: 14px; overflow-wrap: anywhere; }
.iv-vrow b { flex: 0 0 62px; color: var(--muted); }
.iv-vbody { margin: 10px 0 0; padding: 10px 12px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.iv-vline { margin-top: 8px; }
.iv-vline .btn { width: auto; min-height: 34px; padding: 0 12px; font-size: 13px; }
/* Fix: the detail as a form */
.iv-ff { margin: 0; min-width: 0; }
.iv-ff label { display: block; margin: 0 0 3px; font-size: 12px; font-weight: 600; color: var(--muted); }
.field.iv-ff input, .field.iv-ff select { width: 100%; min-width: 0; min-height: 36px; height: 36px; padding: 0 8px; font: inherit; font-size: 14px; color: var(--ink); background: var(--white); border: 1px solid var(--gray-3); border-radius: var(--radius-sm); }
.field.iv-ff input:focus, .field.iv-ff select:focus { outline: none; border-color: var(--blue); box-shadow: none; }
.iv-fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 12px; }
.iv-fline { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; }
.iv-fl-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.iv-flabel { display: block; margin: 0 0 3px; font-size: 12px; font-weight: 600; color: var(--muted); }
.iv-tklist { display: grid; gap: 2px; max-height: 168px; overflow-y: auto; padding: 4px; background: var(--gray-1); border: 1px solid var(--line); border-radius: 6px; }
.iv-tk { display: flex; align-items: center; gap: 8px; padding: 4px 6px; font-size: 13px; border-radius: 5px; cursor: pointer; }
.iv-tk:hover { background: var(--white); }
.iv-tk input { flex: none; width: 16px; height: 16px; margin: 0; }
.iv-showall { margin-top: 2px; height: 28px; font-size: 13px; }
.iv-warn { margin: 0; padding: 8px 12px; font-size: 14px; font-weight: 600; color: #7A5C00; background: var(--gold-tint); border: 1px solid #EAD48A; border-radius: 8px; }
.iv-factions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.iv-factions .btn { width: auto; min-height: 38px; padding: 0 16px; font-size: 14px; }
.iv-factions .iv-rm { margin-left: auto; }
.iv-ask { font-size: 13px; font-weight: 700; color: var(--red); }
/* the recycle bin */
.iv-binhead { display: flex; align-items: center; gap: 16px; margin: 0 0 4px; }
.iv-binhead h2 { margin: 0; font-size: 21px; }
.iv-t-bin { table-layout: fixed; min-width: 900px; }
.iv-t-bin td { vertical-align: middle; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iv-binact { text-align: right; }
.iv-binact .iv-rowbtn { width: auto; min-height: 30px; padding: 0 10px; font-size: 13px; }
/* set up: once per job, by accounting */
.iv-setup { margin-top: 18px; padding: 16px; }
.iv-setup h2 { margin: 0 0 4px; font-size: 17px; font-weight: 800; }
.iv-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px 28px; margin-top: 10px; }
.iv-stbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.iv-stbl th { padding: 6px 8px; text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); }
.iv-stbl td { padding: 7px 8px; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.iv-stbl th.n, .iv-stbl td.n { text-align: right; white-space: nowrap; }
.iv-ladnote { margin: 8px 0 0; }
.iv-kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 12px; margin: 0 0 10px; }
.iv-kv dt { font-size: 14px; font-weight: 600; color: var(--muted); }
.iv-kv dd { margin: 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.iv-nosetup { margin: 0 0 10px; padding: 8px 12px; font-weight: 600; color: #7A5C00; background: var(--gold-tint); border: 1px solid #EAD48A; border-radius: 8px; }
.iv-setup .btn-sm { width: auto; }
.iv-sform { display: grid; gap: 12px; }
/* 820 px and narrower: the list, then a picked invoice full screen */
@media (max-width: 820px) {
  .screen.iv-root { padding-left: 16px; padding-right: 16px; }
  .iv-top { gap: 6px; }
  .iv-tr2 { margin-left: 0; width: 100%; text-align: left; }
  .iv-acts { justify-content: flex-start; }
  .iv-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .iv-stat { padding: 9px 12px 10px; }
  .iv-stat .iv-n { font-size: 24px; }
  .iv-wsearch { flex: 1 1 100%; max-width: none; }
  .iv-jobpanel { min-width: 0; width: min(320px, calc(100vw - 32px)); }
  .iv-d #ivQueue { display: none; }
  .screen.iv-root.iv-d { padding-top: 16px; padding-bottom: 120px; }
  .iv-back { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; }
  .iv-detail { padding: 12px; }
  .iv-tablewrap { overflow: visible; background: none; border: 0; box-shadow: none; }
  .iv-table thead { display: none; }
  .iv-table td.iv-cappr::before { content: attr(data-l) ": "; color: var(--muted); font-size: 12px; }
  .iv-table td.iv-cappr .iv-ft { display: inline; }
  .iv-table td.iv-cdate { grid-column: 1; font-size: 12px; color: var(--muted); }
  .iv-table, .iv-table tbody { display: block; }
  .iv-table tr.iv-tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; margin-bottom: 10px; padding: 12px 12px 12px 14px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
  .iv-table tr.iv-tr.bad { border-left-color: var(--red); }
  .iv-table tr.iv-tr.sel { background: var(--white); }
  .iv-table tr.iv-tr td { display: block; padding: 0; border: 0; box-shadow: none !important; background: none !important; }
  .iv-table td.iv-cinv { grid-column: 1; }
  .iv-table td.iv-ctot { grid-column: 2; grid-row: 1; font-size: 16px; }
  .iv-table td.iv-cjob { grid-column: 1 / -1; font-size: 12px; }
  .iv-table td.iv-cpo { grid-column: 1 / -1; font-size: 12px; }
  .iv-table td.iv-cchk, .iv-table td.iv-cappr { grid-column: 1 / -1; }
  .iv-table tr.iv-tr td:first-child { box-shadow: none; }
  .iv-table tr:has(.iv-none) { display: block; }
  .iv-t-bin { min-width: 0; }
  .iv-tablewrap:has(.iv-t-bin) { overflow-x: auto; }
  .iv-rvsplit { display: none; }
  .iv-lt thead { display: none; }
  .iv-lt, .iv-lt tbody { display: block; }
  .iv-lt tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .iv-lt td { display: block; height: auto; padding: 0; border: 0; text-align: left; white-space: normal; }
  .iv-lt td.n { text-align: left; }
  .iv-lt td[data-l]::before { content: attr(data-l); display: block; font-size: 11px; font-weight: 700; color: var(--faint); }
  .iv-lt td.iv-lds { grid-column: 1 / -1; grid-row: 1; font-weight: 700; }
  .iv-lt td.iv-lst { grid-column: 1 / -1; }
  .iv-tkno { min-height: 32px; }
  .iv-lnkbtn { min-height: 44px; }
  .iv-lt .iv-lnkbtn, .iv-ck .iv-lnkbtn { min-height: 32px; }
  .iv-ck { grid-template-columns: 80px minmax(0, 1fr); }
  .iv-ck .iv-revbtn { grid-column: 2; justify-self: start; margin-left: 0; }
  .iv-rgbtn { min-height: 44px; grid-template-columns: minmax(0, 1fr) auto; }
  .iv-rgn { grid-column: 1 / -1; }
  .iv-fold > summary { min-height: 44px; }
  .iv-decide .btn, .iv-factions .btn, .iv-sendbar .btn { flex: 1 1 auto; min-height: 48px; }
  .iv-tkwrap { align-items: stretch; background: var(--white); }
  .iv-tkbox { width: 100%; height: 100%; max-height: none; border-radius: 0; box-shadow: none; animation: iv-tkup .2s ease-out; }
  .iv-tkx { width: 48px; height: 48px; }
  .iv-tkpic { max-height: 56vh; }
  .iv-tkzoombar .btn-sm { min-height: 44px; }
  .iv-note { flex-basis: 100%; height: 48px; }
  .iv-cp { grid-template-columns: minmax(0, 1fr); }
  .iv-cact .btn.iv-ctb2 { width: 100%; min-height: 48px; }
  .iv-fgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .field.iv-ff input, .field.iv-ff select { min-height: 44px; height: 44px; font-size: 16px; }
  .iv-kv { grid-template-columns: 110px minmax(0, 1fr); }
  .iv-q { flex-wrap: wrap; gap: 2px 10px; }
  .iv-qn { width: 100%; }
  .iv-spot { display: none; }   /* the page is ~300 px wide: the circles would be near-solid blobs over the numbers */
}

/* ===== Photos tool ===== */
/* photos.js: a job's photos in albums. Phone first (one column, 52 px fields, slide-up sheets); a laptop is the same screens, wider. */
@media (min-width: 821px) { .screen.ph-screen { max-width: 1100px; } }
.ph-headrow { margin-bottom: 6px; }
.ph-headrow .btn { width: auto; min-height: 48px; }
.ph-addrow { display: flex; gap: 12px; margin-bottom: 14px; }
.ph-addrow .ph-addbtn { flex: 1 1 0; min-width: 0; min-height: 74px; flex-direction: column; gap: 4px; padding: 10px 8px; line-height: 1.2; text-align: center; cursor: pointer; }
.ph-addrow .ph-addbtn .ic { width: 26px; height: 26px; }
.ph-seg { margin-bottom: 12px; }
.ph-seg .seg-btn.on { background: var(--blue); border-color: var(--blue); color: var(--white); }
.ph-eb { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 18px 2px 9px; }
.ph-gap { margin-top: 18px; }
.ph-list { display: grid; gap: 11px; }
@media (min-width: 821px) { .ph-list { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); } }
.ph-row { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 64px; padding: 15px 14px; text-align: left; font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); cursor: pointer; }
.ph-row:active { background: var(--gray-1); }
.ph-row.quiet { border-left-color: var(--line); box-shadow: none; background: var(--gray-1); }
.ph-rt { flex: 1; min-width: 0; }
.ph-rt b { display: block; font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.ph-rt > span { display: block; font-size: 13px; color: var(--muted); margin-top: 1px; }
.ph-chev { flex: none; color: var(--faint); font-size: 20px; }
.ph-cover { flex: none; width: 56px; height: 56px; border-radius: var(--radius-sm); overflow: hidden; background: var(--gray-2); display: flex; align-items: center; justify-content: center; }
.ph-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-cover-none { color: var(--faint); }
.ph-cover-none .ic { width: 24px; height: 24px; }
.ph-covers { flex: none; display: flex; gap: 4px; }
.ph-covers img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; background: var(--gray-2); }
.ph-chips { margin: 0 0 12px; }
.chip.ph-chip { min-height: 48px; font-size: 15px; }
.ph-dayh { margin: 16px 2px 8px; font-size: 15px; font-weight: 700; color: var(--gray-7); }
.ph-dayh span { font-weight: 600; color: var(--muted); }
.ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
@media (min-width: 821px) { .ph-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; } }
.ph-cell { display: block; width: 100%; aspect-ratio: 1 / 1; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: var(--gray-2); cursor: pointer; }
.ph-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* sheets (the Pour Log's .cp-modal > .cp-sheet) */
.ph-sheet { outline: none; overscroll-behavior: contain; }
.ph-sheet .ph-cancel { width: auto; min-height: 48px; padding: 0 20px; font-size: 16px; }
.ph-sheet .field label { font-size: 15px; font-weight: 700; }
.ph-sheet .btn { margin: 0; }
.ph-sthumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ph-sthumb { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); background: var(--gray-2); }
.ph-smore { display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--muted); }
.ph-pickrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 52px; padding: 12px; text-align: left; font: inherit; font-size: 18px; color: var(--ink); background: var(--white); border: 1.5px solid var(--gray-3); border-radius: var(--radius-sm); cursor: pointer; overflow-wrap: anywhere; }
.ph-pickrow small, .ph-ro small { display: block; font-size: 13px; color: var(--muted); }
.ph-ph { color: var(--faint); }
.ph-ro { min-height: 52px; display: flex; flex-direction: column; justify-content: center; padding: 6px 2px; font-size: 18px; overflow-wrap: anywhere; }
.ph-sheet .ph-seg { margin-bottom: 8px; }
.ph-save { margin-top: 8px; }
.ph-pq { margin-bottom: 8px; }
.ph-plist { display: grid; gap: 6px; }
.ph-pgh { margin: 10px 2px 2px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.ph-pr { display: block; width: 100%; min-height: 52px; padding: 12px 14px; text-align: left; font: inherit; font-size: 17px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; overflow-wrap: anywhere; }
.ph-pr.on { border-color: var(--blue); background: var(--blue-tint); font-weight: 700; }
.ph-pr-none { color: var(--muted); border-style: dashed; }
.ph-pempty { margin: 0; padding: 14px; color: var(--muted); }
/* the viewer */
.ph-viewer { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; background: var(--white); overflow-y: auto; overscroll-behavior: contain; outline: none; }
.ph-vbar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: var(--white); border-bottom: 1px solid var(--gray-2); position: sticky; top: 0; z-index: 2; }
.ph-vbar .btn { width: auto; min-height: 48px; padding: 0 22px; font-size: 16px; }
.ph-vpos { font-size: 15px; font-weight: 700; color: var(--muted); }
.ph-vimgwrap { flex: none; display: flex; align-items: center; justify-content: center; background: #111; min-height: 240px; }
.ph-vimg { display: block; max-width: 100%; max-height: 60vh; max-height: 60dvh; object-fit: contain; }
.ph-vnav { flex: none; display: flex; gap: 12px; padding: 12px 14px 0; width: 100%; max-width: 640px; margin: 0 auto; }
.ph-vnav .btn { flex: 1 1 0; min-width: 0; margin: 0; }
.ph-vbody { width: 100%; max-width: 640px; margin: 0 auto; padding: 14px 14px calc(30px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 0; }
.ph-vbody .field label { font-size: 15px; font-weight: 700; }
.ph-vbody .btn { margin: 0 0 12px; }
.ph-by { margin: 4px 2px 16px; font-size: 14px; color: var(--muted); }
.ph-remove.armed { background: var(--red); border-color: var(--red); color: var(--white); }
@media (min-width: 821px) { .ph-vimg { max-height: 62vh; } }

/* ---- Specs settings (specs-admin.js) --------------------------------------
   Step 8 of the Specs module: types, agencies, numbering and estimate, AI spend,
   behind one segmented control. An office screen, so wider than the phone column,
   but the same fields, buttons and cards as everywhere else. */
.screen.specs-a-screen { max-width: 960px; }
.specs-a-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-bottom: var(--s3); }
.specs-a-top .specs-back { margin-bottom: 0; }
.specs-a-title { margin: 0; font-size: 20px; flex: 1 1 auto; }
.specs-a-status { font-size: 13px; color: var(--muted); min-height: 1.2em; }
.specs-a-status.bad { color: var(--red); font-weight: 700; }
.specs-a-seg { margin-bottom: var(--s4); }
.specs-a-seg .seg-btn { font-size: 15px; padding: 0 var(--s2); }
.specs-a-seg .seg-btn.on { background: var(--blue); border-color: var(--blue); color: var(--white); }
.specs-a-note { margin: 0 0 var(--s3); font-size: 14px; color: var(--gray-7); }
.specs-a-hint { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.specs-a-list { display: flex; flex-direction: column; gap: var(--s3); margin-bottom: var(--s4); }
.specs-a-row, .specs-a-ag { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.specs-a-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 170px 88px auto; gap: 0 var(--s3); align-items: end; padding: 12px 14px 0; }
.specs-a-ag .specs-a-row { border: 0; box-shadow: none; border-radius: 0; }
.specs-a-row .field { margin-bottom: var(--s3); }
.specs-a-row.off, .specs-a-ag.off { background: var(--gray-1); }
.specs-a-code { align-self: center; margin-bottom: var(--s3); overflow-wrap: anywhere; }
.specs-a-off { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--gray-2); color: var(--gray-7); }
.specs-a-acts { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s3); }
.specs-a-chk { display: flex; align-items: center; gap: var(--s2); font-weight: 600; margin-bottom: var(--s3); min-height: 40px; }
.specs-a-chk input { width: 22px; height: 22px; }
.specs-a-ag-foot { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--s3); }
.specs-a-gen { border-top: 1px solid var(--line-soft); padding: 12px 14px var(--s3); }
.specs-a-g { display: grid; grid-template-columns: minmax(180px, 280px) minmax(0, 1fr) auto; gap: 0 var(--s3); align-items: start; padding-top: var(--s2); border-top: 1px dashed var(--line); }
.specs-a-g:first-of-type { border-top: 0; }
.specs-a-g .field textarea { min-height: 96px; font-size: 16px; }
.specs-a-g-acts { display: flex; flex-wrap: wrap; gap: var(--s2); padding-top: 26px; }
.specs-a-gbar { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); }
.specs-a-add { margin-top: var(--s4); }
.specs-a-addgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); gap: 0 var(--s3); }
.specs-a-card { max-width: 640px; }
.specs-a-tokens { margin: 0 0 var(--s3); padding-left: 18px; font-size: 14px; color: var(--gray-7); }
.specs-a-tokens code, .specs-a-card code { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--gray-1); padding: 1px 5px; border-radius: 4px; }
.specs-a-presets { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin: calc(var(--s2) * -1) 0 var(--s3); }
.specs-a-presets-l { font-size: 14px; font-weight: 700; color: var(--gray-7); }
.specs-a-presets .btn { font-family: ui-monospace, Menlo, Consolas, monospace; }
.specs-a-preview { margin: 0 0 var(--s3); font-size: 15px; color: var(--ink); }
.specs-a-preview strong { font-family: ui-monospace, Menlo, Consolas, monospace; }
.specs-a-err { margin: 0 0 var(--s3); font-size: 14px; font-weight: 700; color: var(--red); }
.specs-a-err:empty { display: none; }
.specs-a-missing { margin-bottom: var(--s4); }
.specs-a-empty { margin: var(--s4) 0; color: var(--gray-7); }
.specs-a-tablewrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.specs-a-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs-a-table th, .specs-a-table td { text-align: left; padding: 8px 10px; border-top: 1px solid var(--line-soft); vertical-align: middle; white-space: nowrap; }
.specs-a-table thead th { border-top: 0; background: var(--gray-1); font-weight: 700; color: var(--gray-7); }
.specs-a-table .r { text-align: right; font-variant-numeric: tabular-nums; }
.specs-a-table td.specs-a-ttl { white-space: normal; min-width: 180px; overflow-wrap: anywhere; }
.specs-a-table tfoot td { font-weight: 700; background: var(--gray-1); border-top: 2px solid var(--line); }
@media (max-width: 820px) {
  .specs-a-row, .specs-a-ag .specs-a-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .specs-a-code { grid-column: 1 / -1; margin-bottom: var(--s2); }
  .specs-a-f-label, .specs-a-acts, .specs-a-chk, .specs-a-ag-foot { grid-column: 1 / -1; }
  .specs-a-g { grid-template-columns: minmax(0, 1fr); }
  .specs-a-g-acts { padding-top: 0; margin-bottom: var(--s3); }
  .specs-a-addgrid { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   My time (mytime.js) — docs/mytime-START-HERE.md, docs/my-time-phone-mockup.html.
   The shared pieces (.screen, .btn, .field, .seg, .banner-*, .obs-nudge, .cp-modal > .cp-sheet with .cp-tk-head) do most of it;
   only what has no shared class is here: the pill, the week navigator, the total card, day / line rows, the steppers, the
   equipment tick rows, the pick-sheet rows.
   ============================================================ */
.mt .mt-headrow { margin-bottom: var(--s3); }
.mt .mt-headrow .btn { width: auto; }
.mt h1 { margin-bottom: var(--s2); }
.mt .sub { margin-bottom: var(--s4); }
.mt .mt-status { margin-top: -4px; }
.mt .eyebrow, .mt-modal .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 18px 2px 8px; }
.mt-pill { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 20px; padding: 2px 10px; vertical-align: middle; border: 1px solid transparent; }
.mt-pill-open { background: var(--gold-tint); color: #8A6500; border-color: #E8C55A; }
.mt-pill-ok { background: var(--green-tint); color: var(--green-dark); border-color: #B7D9A5; }
.mt-pill-bad { background: var(--red-tint); color: var(--red); border-color: #E5B5B7; }
.mt-pill-info { background: var(--blue-tint); color: var(--blue-dark); border-color: #BCD3EE; }
.mt-tabs .seg-btn.mt-on { background: var(--blue); border-color: var(--blue); color: var(--white); }
.mt-gap { margin-top: var(--s4); }
.mt-gap0 { margin-top: var(--s2); }
.mt-note { font-size: 13px; color: var(--muted); margin: var(--s2) 2px 0; }

/* the week navigator: ‹  Sep 28 – Oct 4  › */
.mt-wk { display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; gap: var(--s2); align-items: center; margin-bottom: var(--s3); }
.mt-wk button { height: 52px; border-radius: var(--radius-sm); border: 1.5px solid var(--gray-3); background: var(--white); font: 800 24px var(--font); color: var(--blue); }
.mt-wk button:disabled { color: var(--gray-3); cursor: default; }
.mt-wk div { text-align: center; background: var(--white); border: 1.5px solid var(--gray-3); border-radius: var(--radius-sm); min-height: 52px; display: grid; place-items: center; padding: 4px; }
.mt-wk div b { font-size: 17px; line-height: 1.2; }
.mt-wk div span { font-size: 12px; color: var(--muted); font-weight: 700; }


/* a day, a line, a person: one row style, a coloured left edge */
.mt-row { display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 64px; margin-bottom: 10px; padding: 13px 12px; text-align: left; font: inherit; color: var(--ink);
  background: var(--white); border: 0; border-left: 4px solid var(--blue); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
button.mt-row:active { filter: brightness(0.97); }
.mt-row.mt-g { border-left-color: var(--green); } .mt-row.mt-y { border-left-color: var(--gold); } .mt-row.mt-r { border-left-color: var(--red); } .mt-row.mt-n { border-left-color: var(--gray-3); }
.mt-rt { flex: 1; min-width: 0; }
.mt-rt b { display: block; font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.mt-rt span { display: block; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.mt-rt .mt-eq, .mt-eq { color: #8A6500; font-weight: 700; }
.mt-rt span .mt-eq { display: inline; }
.mt-hrs { font-size: 20px; font-weight: 800; white-space: nowrap; }
.mt-hrs small { font-size: 12px; color: var(--muted); font-weight: 700; }
.mt-chev { color: var(--gray-3); font-size: 22px; font-weight: 700; }

/* the line sheet and the pick sheets */
.mt-modal { z-index: 1000; }
.mt-modal.mt-pick { z-index: 1010; }
/* a refusal ("Pick a cost code.", the 24-hour stop) must show over the sheet it is about, as the Daily Log's does */
body:has(.mt-modal) .toast { z-index: 1200; }
/* a sticky head inside a padded scroller sits one padding lower than where it flowed, and then covers the first label: no top padding, the head carries it */
.mt-sheet { padding-top: 0; }
.mt-sheet .cp-tk-head { margin-top: 0; }
.mt-sheet .field { margin-bottom: var(--s4); }
.mt-sheet .field label { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.mt-pickbtn { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); width: 100%; min-height: 52px; padding: 8px 12px; text-align: left;
  font: inherit; font-size: 18px; color: var(--ink); background: var(--white); border: 1.5px solid var(--gray-3); border-radius: var(--radius-sm); }
.mt-pickbtn small { display: block; font-size: 13px; color: var(--muted); }
.mt-pickbtn span { min-width: 0; overflow-wrap: anywhere; }
.mt-pickbtn .mt-ph { color: var(--faint); }
.mt-pickbtn i { font-style: normal; font-weight: 700; color: var(--gray-3); font-size: 20px; }
.mt-check { display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 52px; margin-bottom: var(--s2); padding: 8px 12px; text-align: left; font: inherit; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--gray-3); border-radius: var(--radius-sm); }
.mt-check i { flex: 0 0 30px; height: 30px; border-radius: 6px; border: 2px solid var(--gray-3); display: grid; place-items: center; font-style: normal; font-weight: 800; color: var(--white); }
.mt-check.mt-on i { background: var(--blue); border-color: var(--blue); }
.mt-check > span { flex: 1; min-width: 0; }
.mt-check b { display: block; font-size: 16px; line-height: 1.2; overflow-wrap: anywhere; }
.mt-check small { display: block; font-size: 13px; color: var(--muted); }
.mt-tag { flex: none; font-style: normal; font-size: 11px; font-weight: 700; color: #8A6500; background: var(--gold-tint); border: 1px solid #E8C55A; border-radius: 12px; padding: 2px 8px; }
.mt-rm { display: block; margin: var(--s2) auto 0; min-height: 48px; padding: 6px 12px; background: none; border: 0; font: 700 15px var(--font); color: var(--red); text-decoration: underline; }
.mt-pk { margin: 0 -16px; }
.mt-prow { display: flex; flex-direction: column; justify-content: center; width: 100%; min-height: 54px; padding: 6px 16px; text-align: left; font: inherit; color: var(--ink);
  background: var(--white); border: 0; border-bottom: 1px solid var(--gray-2); }
.mt-prow b { font-size: 17px; overflow-wrap: anywhere; }
.mt-prow span { font-size: 13px; color: var(--muted); }
.mt-prow.mt-on { background: var(--blue-tint); color: var(--blue-dark); }
.mt-grp { min-height: 30px; display: flex; align-items: center; padding: 0 16px; background: var(--gray-1); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.mt-pk .sub, .mt-pk .mt-note { padding: 0 16px; }

/* ---- My time: the week on one screen (mytime.js; docs/my-time-one-screen-mockup.html) ----
   A card per job and cost code with a box per day. Boxes 50 px tall, 18 px bold text; seven across with 4 px gaps (about 43 px wide on a 390 px phone). */
.mt-saved { margin-left: 8px; font-size: 13px; font-weight: 700; color: var(--green-dark); opacity: 0; transition: opacity .15s; }
.mt-saved.on { opacity: 1; }
.mt-saved.bad { color: var(--red); }
.mt-rowc { display: grid; gap: 8px; margin-bottom: 12px; padding: 12px 10px; background: var(--white); border: 1px solid var(--gray-2); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.mt-rh { display: flex; align-items: flex-start; gap: 8px; }
.mt-rh .mt-rt { flex: 1; min-width: 0; }
.mt-rsum { padding-top: 2px; font-size: 18px; font-weight: 800; white-space: nowrap; }
.mt-more { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; font: 800 20px var(--font); line-height: 1; color: var(--gray-7); background: var(--white); border: 1.5px solid var(--gray-3); border-radius: var(--radius-sm); }
.mt-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.mt-box { display: grid; gap: 2px; min-width: 0; text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); }
.mt-box input { width: 100%; min-width: 0; height: 50px; padding: 0; text-align: center; font: 800 18px var(--font); color: var(--ink); background: var(--white); border: 1.5px solid var(--gray-3); border-radius: var(--radius-sm); }
.mt-box input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 87, 184, 0.15); }
.mt-box input.mt-we { background: var(--gray-1); }
.mt-ot .mt-box input { background: var(--gold-tint); border-color: #E8C55A; }
.mt-box input.mt-over, .mt-box input.mt-flash { color: var(--red); background: var(--red-tint); border-color: var(--red); }
.mt-box input[readonly] { color: var(--gray-7); background: var(--gray-1); border-color: var(--gray-2); }
.mt-rowlab { margin: 2px 2px -4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.mt-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.btn.mt-sm { min-height: 44px; font-size: 14px; }
.mt-rownote { padding: 6px 9px; font-size: 13px; color: var(--gray-7); background: var(--gray-1); border-radius: var(--radius-sm); overflow-wrap: anywhere; }
.mt-eqrow { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0; text-align: left; font: 600 14px var(--font); color: #8A6500; background: none; border: 0; }
.mt-eqrow i { flex: 0 0 28px; height: 28px; display: grid; place-items: center; font-style: normal; font-weight: 800; color: var(--white); background: var(--blue); border-radius: 6px; }
.mt-eqrow.off i { background: var(--white); border: 2px solid var(--gray-3); }
.mt-eqrow > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.mt-eqrow.ro { cursor: default; }
.mt-dayhead { display: none; }
.mt-copy { flex-direction: column; align-items: stretch; gap: 8px; }
.mt-copyrows { display: grid; }
.mt-sumrow { display: flex; justify-content: space-between; gap: 10px; padding: 8px 2px; font-size: 14px; border-bottom: 1px solid #BCD3EE; }
.mt-sumrow b { font-weight: 800; }
.mt-tot { display: grid; gap: 6px; margin-top: 12px; padding: 10px 10px 12px; background: var(--white); border: 1px solid var(--gray-2); border-radius: var(--radius); box-shadow: var(--shadow); }
.mt-tot .mt-days > div { text-align: center; font-size: 16px; font-weight: 800; }
.mt-tot small { display: block; font-size: 11px; font-weight: 700; color: var(--muted); }
.mt-tot .mt-bad { color: var(--red); }
.mt-big { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; }
.mt-big b { font-size: 26px; }
.mt-big b small { display: inline; font-size: 15px; }
.mt-big span { font-size: 13px; font-weight: 600; color: var(--muted); }
.mt-warn { font-size: 14px; font-weight: 700; color: var(--red); }
.mt-copywrap .mt-sheet .btn { margin-bottom: 0; }
/* wide: a card is ONE line — the job and cost code at the left, the seven boxes in day columns, the total, the buttons; the overtime boxes sit on a second line
   in the same columns; the day letters are said once above the first card and the totals line sits under the same columns */
@media (min-width: 1100px) {
  .screen.mt.mt-weekwide { max-width: 1320px; }
  .mt-rowc, .mt-tot, .mt-dayhead { --mtcols: minmax(0, 30%) repeat(7, minmax(0, 1fr)) 64px 52px 250px; }
  .mt-rowc { grid-template-columns: var(--mtcols); column-gap: 6px; row-gap: 4px; align-items: center; padding: 10px; }
  .mt-rh, .mt-days { display: contents; }
  .mt-rowc .mt-rt { grid-column: 1; grid-row: 1; padding-right: 8px; }
  .mt-rowc .mt-rsum { grid-column: 9; grid-row: 1; padding: 0; text-align: right; }
  .mt-rowc .mt-more { grid-column: 10; grid-row: 1; justify-self: end; }
  .mt-rowc .mt-acts { grid-column: 11; grid-row: 1; justify-content: flex-end; flex-wrap: nowrap; }
  .mt-rowc .mt-box > span { display: none; }
  .mt-rowc .mt-days > .mt-box:nth-child(1) { grid-column: 2; } .mt-rowc .mt-days > .mt-box:nth-child(2) { grid-column: 3; }
  .mt-rowc .mt-days > .mt-box:nth-child(3) { grid-column: 4; } .mt-rowc .mt-days > .mt-box:nth-child(4) { grid-column: 5; }
  .mt-rowc .mt-days > .mt-box:nth-child(5) { grid-column: 6; } .mt-rowc .mt-days > .mt-box:nth-child(6) { grid-column: 7; }
  .mt-rowc .mt-days > .mt-box:nth-child(7) { grid-column: 8; }
  .mt-rowc .mt-days[data-kind="reg"] > .mt-box { grid-row: 1; }
  .mt-rowc .mt-days[data-kind="ot"] > .mt-box { grid-row: 2; }
  .mt-rowc .mt-rowlab { grid-column: 1; grid-row: 2; margin: 0; text-align: right; padding-right: 8px; }
  .mt-rowc .mt-rownote, .mt-rowc .mt-eqrow { grid-column: 1 / -1; }
  .mt-dayhead { display: grid; grid-template-columns: var(--mtcols); column-gap: 6px; margin: 0 0 4px; padding: 0 11px; font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; }
  .mt-tot { grid-template-columns: var(--mtcols); column-gap: 6px; align-items: center; padding: 10px; }
  .mt-tot .mt-days { display: contents; }
  .mt-tot .mt-days > div { grid-row: 1; }
  .mt-tot .mt-days > div:nth-child(1) { grid-column: 2; } .mt-tot .mt-days > div:nth-child(2) { grid-column: 3; }
  .mt-tot .mt-days > div:nth-child(3) { grid-column: 4; } .mt-tot .mt-days > div:nth-child(4) { grid-column: 5; }
  .mt-tot .mt-days > div:nth-child(5) { grid-column: 6; } .mt-tot .mt-days > div:nth-child(6) { grid-column: 7; }
  .mt-tot .mt-days > div:nth-child(7) { grid-column: 8; }
  .mt-tot small { display: none; }
  .mt-tot .mt-big { grid-column: 1; grid-row: 1; flex-direction: column; align-items: flex-start; gap: 2px; }
  .mt-tot .mt-warn { grid-column: 1 / -1; }
}

/* ---- My time: the Payroll check (mytime-payroll.js) — an office screen: summary strip that filters, a dense table with a row per person.
   The page never scrolls sideways; the table sits in its own wrapper that does. Look taken from the Delivery Log's computer table (.dv-). ---- */
.screen.mt.mtp-wide { max-width: 1680px; }
@media (min-width: 821px) {
  .screen.mt.mtp-wide { padding-left: 24px; padding-right: 24px; }
  .mtp-wide .mt-wk, .mtp-wide .mt-tabs { max-width: 460px; }
}
.mtp-strip { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin-bottom: 12px; }
.mtp-stat { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; flex: 1 1 130px; max-width: 220px; min-width: 0; min-height: 64px; padding: 10px 14px 11px;
  font: inherit; color: var(--ink); text-align: left; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); box-shadow: var(--shadow-card); cursor: pointer; }
.mtp-stat b { font-size: 26px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.mtp-stat span { font-size: 13px; font-weight: 600; color: var(--muted); }
.mtp-stat:hover { background: var(--gray-1); }
.mtp-stat.k-all { border-left-color: var(--gray-5); } .mtp-stat.k-ready { border-left-color: var(--green); } .mtp-stat.k-returned { border-left-color: var(--red); }
.mtp-stat.k-notsent { border-left-color: var(--gold); } .mtp-stat.k-exported { border-left-color: var(--gray-3); }
.mtp-stat.zero b, .mtp-stat.zero span { color: var(--faint); }
.mtp-stat.on { background: var(--blue-tint); border-color: var(--blue); border-left-width: 4px; }
.mtp-stat.on::after { content: "✓"; position: absolute; top: 8px; right: 12px; font-size: 15px; font-weight: 800; color: var(--blue); }
.mtp-hours { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: 14px; color: var(--muted); }
.mtp-hours b { color: var(--ink); font-variant-numeric: tabular-nums; }
.mtp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 10px; }
.mtp-last { flex: 1 1 220px; margin: 0; font-size: 14px; color: var(--muted); }
.mtp-acts { margin-left: auto; }
.btn.mtp-export, .btn.mtp-woexport, .btn.mtp-retry { width: auto; padding-left: 24px; padding-right: 24px; }
.mtp-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.mtp-table { width: 100%; min-width: 1180px; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.mtp-table th { height: 36px; padding: 0 10px; text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; background: #FAFBFC; border-bottom: 1px solid var(--line); }
.mtp-table td { padding: 6px 10px; vertical-align: middle; border-bottom: 1px solid var(--line-soft, var(--line)); }
.mtp-table th.n, .mtp-table td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mtp-table td small { color: var(--muted); font-size: 11px; font-weight: 600; }
.mtp-sortable { cursor: pointer; user-select: none; }
.mtp-sortable:hover, .mtp-sortable.on { color: var(--ink); }
.mtp-arrow { display: inline-block; width: 12px; margin-left: 4px; font-size: 9px; color: var(--blue); }
.mtp-arrow:empty { display: none; }
.mtp-name { min-width: 150px; }
.mtp-name b { display: block; font-size: 14px; }
.mtp-name small { display: block; font-size: 12px; }
.mtp-st, .mtp-fl { min-width: 150px; }
.mtp-click { cursor: pointer; }
.mtp-click:hover td { background: var(--gray-1); }
.mtp-click:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.mtp-none { padding: 18px 10px; color: var(--muted); }
.mtp-table tfoot td { background: #FAFBFC; font-weight: 700; border-top: 2px solid var(--line); border-bottom: 0; }
.mtp-pill { display: inline-block; flex: none; font-size: 12px; font-weight: 700; padding: 1px 9px; border-radius: 99px; border: 1px solid var(--gray-2); background: var(--gray-1); color: var(--gray-7); white-space: nowrap; margin: 1px 0; }
.mtp-pill.quiet { color: var(--muted); font-weight: 600; }
.mtp-pill.ok { background: var(--green-tint); border-color: #B7D9A5; color: var(--green-dark); }
.mtp-pill.info { background: var(--blue-tint); border-color: #BCD3EE; color: var(--blue-dark); }
.mtp-pill.gold { background: var(--gold-tint); border-color: #E8C55A; color: #8A6500; }
.mtp-pill.warn { background: var(--orange-tint); border-color: #F3C3A6; color: #B5551F; }
.mtp-pill.bad { background: var(--red-tint); border-color: #E5B5B7; color: var(--red); }
.mtp-pill.dark { background: var(--gray-7); border-color: var(--gray-7); color: var(--white); }
.mtp-info { margin: 0 2px var(--s3); font-size: 14px; color: var(--muted); }
.mtp-radio i { border-radius: 50%; }
/* where the time was booked: a caret on the row, a tinted detail row per job and phase code under it (same columns as the table) */
.mtp-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.btn.mtp-expall { min-height: 40px; }
.mtp-nm { display: flex; align-items: flex-start; gap: 6px; }
.mtp-caret, .mtp-caret-sp { flex: none; width: 30px; height: 30px; margin: -2px 0 0 -6px; }
.mtp-caret { display: inline-flex; align-items: center; justify-content: center; padding: 0; font-size: 15px; line-height: 1; color: var(--blue); background: none; border: 1px solid transparent; border-radius: 6px; }
.mtp-caret:hover { background: var(--blue-tint); border-color: #BCD3EE; }
.mtp-caret:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
@media (max-width: 820px) { .mtp-caret, .mtp-caret-sp { width: 48px; height: 48px; margin: -8px 0 -8px -12px; font-size: 18px; } }
.mtp-d td { background: #F4F8FD; padding-top: 5px; padding-bottom: 5px; font-size: 13px; border-bottom: 1px solid var(--line-soft, var(--line)); }
.mtp-d .mtp-dname { padding-left: 44px; border-left: 3px solid var(--blue-tint); }
.mtp-d .mtp-dname b { display: block; font-size: 13px; }
.mtp-d .mtp-dname small { display: block; font-size: 12px; font-weight: 400; }
.mtp-d .mtp-dname .mtp-dnote { margin-top: 2px; font-style: italic; color: var(--gray-7); }
.mtp-dmsg { padding-left: 44px !important; color: var(--muted); }
.mtp-dmsg.bad { color: var(--red); }

/* ---- My time on a wide screen (1100px: where the app header shows the tool's own name, styles.css .hdr-title) ----
   The name "My time" is in the header, so the in-page heading goes; the way back, the tabs and the week navigator are ONE row, and the Payroll
   check's last export, hours and buttons are ONE row. A phone and anything narrower stack exactly as before. */
@media (min-width: 1100px) {
  .screen.mt { max-width: 900px; padding-top: 12px; }
  .screen.mt.mtp-wide { max-width: 1680px; }
  .mt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 8px; }
  .mt-bar .mt-headrow { margin: 0; }
  .mt-bar h1 { margin: 0; font-size: 22px; }
  .mt-bar h1.mt-h1-app { display: none; }
  .mt-bar .mt-tabs { display: inline-flex; flex: 0 0 auto; width: auto; max-width: none; margin: 0; }
  .mt-bar .mt-tabs .seg-btn { flex: 0 0 auto; padding: 0 22px; }
  .mt-bar .mt-wk { flex: 0 0 300px; width: 300px; max-width: 300px; margin: 0; grid-template-columns: 48px minmax(0, 1fr) 48px; }
  .mt-bar .mt-wk button, .mt-bar .mt-wk div { height: 48px; min-height: 48px; padding-top: 0; padding-bottom: 0; }
  .mt-bar .mt-wk div b { font-size: 15px; line-height: 1.15; }
  .mt-bar .mt-wk div span { font-size: 11px; line-height: 1.1; }
  .mt-bar .mt-status { order: 9; margin: 0; white-space: nowrap; }
  .mtp-strip { gap: 8px; margin-bottom: 8px; }
  .mtp-stat { flex: 0 0 auto; flex-direction: row; align-items: baseline; gap: 8px; min-height: 40px; padding: 6px 16px 6px 12px; }
  .mtp-stat b { font-size: 20px; }
  .mtp-stat span { font-size: 13px; }
  .mtp-stat.on::after { top: 2px; right: 5px; font-size: 11px; }
  .mtp-bar { flex-wrap: nowrap; gap: 8px 20px; margin-bottom: 8px; }
  .mtp-last { flex: 1 1 auto; min-width: 0; }
  .mtp-hours { flex: none; white-space: nowrap; }
  .mtp-acts { flex: none; }
  .btn.mtp-export, .btn.mtp-woexport { min-height: 40px; }
}

/* ---- SLWS (slws.js; .screen.slws-root) ----
   The monthly subcontractor worksheet, a desk tool: the job's subs on the left, the picked sub's worksheet on the right (docs/slws-monthly-mockup.html).
   820 px and narrower: the panes stack, list first. The page never scrolls sideways; the wide table sits in its own wrapper that does. */
.screen.slws-root { max-width: 1680px; padding-left: 24px; padding-right: 24px; font-size: 14px; line-height: 1.45; }
.slws-root .slws-small { font-size: 12px; color: var(--muted); font-weight: 400; margin: 0; }
.slws-root .slws-num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.slws-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 12px; }
.slws-titlerow { display: flex; align-items: center; gap: 14px; }
.slws-titlerow h1 { margin: 0; }
.slws-titlerow .btn { width: auto; min-height: 36px; font-size: 14px; padding: 0 12px; }
.slws-root .slws-lede { margin: 4px 0 0; max-width: 760px; font-size: 14px; }
.slws-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin-left: auto; }
.slws-acts .btn { width: auto; min-width: 0; min-height: 40px; margin: 0; padding: 0 18px; font-size: 15px; }
.slws-month { display: inline-flex; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.slws-month button { min-width: 40px; height: 40px; font-size: 18px; font-weight: 800; color: var(--blue); background: none; border: 0; }
.slws-month button:hover { background: var(--blue-tint); }
.slws-month b { padding: 0 10px; font-weight: 700; white-space: nowrap; }

.slws-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.slws-stat { min-width: 0; padding: 10px 16px 11px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.slws-stat b { display: block; font-size: 24px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.slws-stat span { font-size: 13px; font-weight: 600; color: var(--muted); }
.slws-stat.green { border-left-color: var(--green); }
.slws-stat.orange { border-left-color: var(--orange); }
.slws-stat.gold { border-left-color: var(--gold); }

.slws-panes { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 14px; align-items: start; }
.slws-card { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.slws-pill { display: inline-block; flex: none; margin: 1px 3px 1px 0; padding: 1px 9px; font-size: 11.5px; font-weight: 700; white-space: nowrap; border: 1px solid var(--gray-2); border-radius: 99px; background: var(--gray-1); color: var(--muted); }
.slws-pill.orange { background: var(--orange-tint); border-color: #F3C3A6; color: #B5551F; }
.slws-pill.red { background: var(--red-tint); border-color: #E4B7B9; color: var(--red); }
.slws-pill.yellow { background: #FFF6D1; border-color: #EBD27A; color: #8A6D00; }
.slws-pill.gold { background: var(--gold-tint); border-color: #E8C55A; color: #8A6500; }
.slws-pill.green { background: var(--green-tint); border-color: #B7D9A5; color: var(--green-dark); }
.slws-pill.blue { background: var(--blue-tint); border-color: #BAD2EE; color: var(--blue); }

.slws-lhead { padding: 10px 14px 8px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line); }
.slws-subrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; width: 100%; padding: 11px 14px; font: inherit; color: var(--ink); text-align: left; background: none; border: 0; border-top: 1px solid var(--line); box-shadow: inset 4px 0 0 transparent; cursor: pointer; }
.slws-lhead + .slws-subrow { border-top: 0; }
.slws-subrow:hover { background: var(--gray-1); }
.slws-subrow.sel { background: var(--blue-tint); box-shadow: inset 4px 0 0 var(--blue); }
.slws-subrow.flag { box-shadow: inset 4px 0 0 var(--orange); }
.slws-subrow .nm { font-weight: 700; overflow-wrap: anywhere; }
.slws-subrow .amt { font-weight: 800; font-variant-numeric: tabular-nums; }
.slws-subrow .pills { grid-column: 1 / -1; }
.slws-ltot { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; font-weight: 800; font-variant-numeric: tabular-nums; border-top: 2px solid var(--line); }

.slws-detail { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.slws-dhead { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.slws-dhead h2 { margin: 0; font-size: 19px; font-weight: 800; }
.slws-tot { margin-left: auto; text-align: right; }
.slws-tot b { display: block; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.slws-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.slws-sw { display: inline-block; width: 13px; height: 13px; margin-right: 6px; vertical-align: -2px; border: 1px solid var(--gray-3); border-radius: 4px; background: var(--white); }
.slws-sw.g { background: var(--green-tint); border-color: var(--green-dark); }
.slws-sw.y { background: var(--gold-tint); border-color: #8A6500; }
.slws-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; }
.slws-table { width: 100%; min-width: 960px; border-collapse: collapse; }
.slws-table th { padding: 8px 9px; font-size: 11.5px; font-weight: 700; color: var(--muted); text-align: left; white-space: nowrap; vertical-align: bottom; background: var(--gray-1); border-bottom: 1px solid var(--line); }
.slws-table th.slws-num { text-align: right; }
.slws-table th.hot { color: var(--blue); }
.slws-table td { padding: 8px 8px; vertical-align: top; border-bottom: 1px solid var(--line); }
.slws-table tr.slws-ln td:first-child { white-space: nowrap; }
.slws-table tbody tr:last-child td { border-bottom: 0; }
.slws-table tr.slws-ln td:nth-child(2) { min-width: 190px; }
.slws-table td.slws-q, .slws-table td.slws-c { min-width: 140px; text-align: right; }
.slws-table td.slws-q .qv, .slws-table td.slws-c .qv { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.slws-table td.slws-q .src, .slws-table td.slws-c .src { font-size: 12px; color: var(--muted); }
.slws-table td.slws-q.pulled { background: var(--green-tint); }
.slws-table td.slws-q.adjd { background: var(--gold-tint); }
.slws-table td.slws-q.adjd .src { color: #8A6500; font-weight: 600; }
.slws-qi { width: 112px; max-width: 100%; height: 34px; padding: 0 8px; font: 800 15px var(--font); font-variant-numeric: tabular-nums; text-align: right; color: var(--ink); background: var(--white); border: 1.5px solid var(--gray-3); border-radius: 6px; }
.slws-ri { width: 56px; height: 30px; padding: 0 6px; font: 700 14px var(--font); text-align: right; color: var(--ink); background: var(--white); border: 1.5px solid var(--gray-3); border-radius: 6px; }
.slws-qi:focus, .slws-ri:focus, .slws-root textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.slws-pre { margin-right: 4px; font-weight: 700; color: var(--muted); }
.slws-suf { margin-left: 4px; font-weight: 700; color: var(--muted); }
.slws-qwrap { display: inline-flex; align-items: center; }
.slws-lnk { padding: 0; font: inherit; font-size: 12px; font-weight: 700; color: var(--blue); text-decoration: underline; background: none; border: 0; cursor: pointer; }
.slws-cthis { font-weight: 700; }
.slws-table td.slws-c { min-width: 150px; }
.slws-pv { font-weight: 700; }
.slws-pv.over { color: #B5551F; }
.slws-bar { min-width: 64px; height: 6px; margin-top: 5px; overflow: hidden; border-radius: 6px; background: var(--line); }
.slws-bar i { display: block; height: 100%; background: var(--blue); }
.slws-bar.over i { background: var(--orange); }
.slws-table tr.slws-grp td { padding-block: 7px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); background: var(--gray-1); }
.slws-table tr.slws-sum td { font-weight: 800; background: var(--gray-1); }
.slws-table tr.slws-more td { padding-block: 7px; font-size: 13px; color: var(--muted); background: var(--gray-1); }
.slws-table tr.slws-more td b { color: var(--ink); }
.slws-edbox { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; padding: 4px 0; }
.slws-edbox .f { display: grid; gap: 4px; }
.slws-edbox .f.grow { flex: 1 1 280px; min-width: 0; }
.slws-edbox label { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.slws-edbox textarea { width: 100%; min-height: 34px; padding: 6px 8px; font: 14px var(--font); color: var(--ink); background: var(--white); border: 1.5px solid var(--gray-3); border-radius: 6px; resize: vertical; }
.slws-edbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.slws-err { flex-basis: 100%; margin: 0; font-size: 13px; font-weight: 700; color: var(--red); }
.slws-root .btn.sm { width: auto; min-height: 34px; padding: 0 12px; font-size: 13px; }
.slws-root .btn.quiet { color: var(--ink); background: var(--white); border: 1px solid var(--line); font-weight: 600; }
.slws-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.slws-tbox { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; }
.slws-tbox h3 { margin: 0 0 2px; font-size: 13px; font-weight: 800; }
.slws-tline { display: flex; justify-content: space-between; gap: 10px; font-variant-numeric: tabular-nums; }
.slws-tline span { color: var(--muted); }
.slws-tline.big { margin-top: 2px; padding-top: 5px; font-weight: 800; font-size: 16px; border-top: 1px solid var(--line); }
.slws-tline.big span { color: var(--ink); }
.slws-netmsg { margin: 0; padding: 8px 10px; font-weight: 700; color: #B5551F; background: var(--orange-tint); border: 1px solid #F3C3A6; border-radius: 8px; }
.slws-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.slws-foot .slws-small { flex: 1 1 260px; }
.slws-foot .btn { width: auto; min-height: 40px; padding: 0 18px; font-size: 15px; }
.slws-ready { font-weight: 700; color: var(--green-dark); }
.slws-empty { padding: 28px 18px; text-align: center; }
.slws-empty p { margin: 0 0 12px; }
.slws-empty .btn { width: auto; min-height: 40px; padding: 0 18px; font-size: 15px; }

.slws-imp { margin-bottom: 12px; padding: 14px 16px; display: grid; gap: 10px; }
.slws-imp h2 { margin: 0; font-size: 17px; font-weight: 800; }
.slws-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 20px 14px; text-align: center; font-weight: 600; color: var(--muted); border: 2px dashed var(--gray-3); border-radius: 10px; background: var(--gray-1); cursor: pointer; }
.slws-drop.over { color: var(--blue); border-color: var(--blue); background: var(--blue-tint); }
.slws-imp .slws-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.slws-imp .btn { width: auto; min-height: 38px; padding: 0 16px; font-size: 14px; }
.slws-imp table { width: 100%; border-collapse: collapse; }
.slws-imp th { padding: 6px 8px; font-size: 12px; text-align: left; color: var(--muted); background: var(--gray-1); border-bottom: 1px solid var(--line); }
.slws-imp th.slws-num { text-align: right; }
.slws-imp td { padding: 6px 8px; border-bottom: 1px solid var(--line); }
.slws-imp .slws-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; }
.slws-imp .slws-bad { margin: 0; font-weight: 700; color: var(--red); }
.slws-imp .slws-good { margin: 0; font-weight: 700; color: var(--green-dark); }
@media (max-width: 820px) {
  .screen.slws-root { padding-left: 16px; padding-right: 16px; }
  .slws-acts { justify-content: flex-start; margin-left: 0; width: 100%; }
  .slws-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .slws-stat { padding: 9px 12px 10px; }
  .slws-stat b { font-size: 20px; }
  .slws-panes { grid-template-columns: minmax(0, 1fr); }
  .slws-detail { padding: 12px; }
  .slws-tot { margin-left: 0; text-align: left; }
}

/* SLWS round 1b: This job | All jobs, the sub's invoice no. and date, the Vista panels. Everything stays inside .slws-root; the page never scrolls sideways. */
.slws-seg { margin: 0 0 12px; }
.slws-seg:empty { display: none; }
.slws-segs { display: inline-flex; background: var(--white); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.slws-segs button { min-height: 38px; padding: 0 18px; font: inherit; font-size: 14px; font-weight: 700; color: var(--blue); background: none; border: 0; cursor: pointer; }
.slws-segs button + button { border-left: 1px solid var(--line); }
.slws-segs button:hover { background: var(--blue-tint); }
.slws-segs button.on { color: var(--white); background: var(--blue); }
.slws-root.slws-all #slwsImport, .slws-root.slws-all #slwsVistaBox, .slws-root.slws-all #slwsVsetBox { display: none; }
.slws-coscroll { overflow-x: auto; }
.slws-table.slws-co { min-width: 940px; }
.slws-table.slws-co td { vertical-align: middle; }
.slws-corow { cursor: pointer; }
.slws-corow:hover td { background: var(--gray-1); }
.slws-co .slws-jn { font-size: 14px; }
.slws-co td.slws-ok { font-weight: 800; color: var(--green-dark); }
.slws-empty-co { margin: 0; padding: 22px 16px; text-align: center; color: var(--muted); }
.slws-nopo { margin-top: 12px; }
.slws-nohead { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 14px; font: inherit; font-weight: 700; color: var(--ink); text-align: left; background: none; border: 0; cursor: pointer; }
.slws-nohead .car { color: var(--muted); }
.slws-norow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; padding: 9px 14px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.slws-inv { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 14px; margin-top: 10px; }
.slws-inv.ro { gap: 4px 18px; margin-top: 6px; }
.slws-inv.ro b { color: var(--ink); }
/* the sub's invoice number and date sit on the vendor name's line, not under it */
.slws-namerow { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 18px; margin-bottom: 4px; }
.slws-dhead > div:first-child { flex: 1 1 560px; min-width: 0; }
.slws-namerow .slws-inv { margin-top: 0; flex-wrap: nowrap; }
.slws-namerow .slws-inv.ro { flex-wrap: wrap; }
.slws-namerow h2 { padding-bottom: 6px; }
.field.slws-ff { margin: 0; }
.field.slws-ff label { display: block; margin-bottom: 3px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.field.slws-ff input, .field.slws-ff select { width: 100%; min-width: 0; min-height: 36px; height: 36px; padding: 0 8px; font: inherit; font-size: 14px; color: var(--ink); background: var(--white); border: 1.5px solid var(--gray-3); border-radius: 6px; }
.field.slws-ff input:focus, .field.slws-ff select:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); box-shadow: none; }
.slws-inv .field.slws-ff { flex: 0 1 190px; }
.slws-inv .field.slws-ff input[type="date"] { flex: none; }
.slws-vx h3 { margin: 4px 0 0; font-size: 13px; font-weight: 800; }
.slws-vlist { margin: 0; padding-left: 18px; display: grid; gap: 2px; overflow-wrap: anywhere; }
.slws-vmiss { padding: 8px 12px; background: var(--orange-tint); border: 1px solid #F3C3A6; border-radius: 8px; color: #B5551F; }
.slws-vmiss ul { margin: 4px 0; padding-left: 18px; font-weight: 600; }
.slws-vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 14px; }
@media (max-width: 820px) {
  .slws-seg { width: 100%; }
  .slws-segs { display: flex; width: 100%; }
  .slws-segs button { flex: 1 1 0; }
  .slws-inv .field.slws-ff { flex: 1 1 140px; }
  .slws-namerow .slws-inv { flex-wrap: wrap; flex: 1 1 100%; }
  .slws-vgrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* ---- Meetings (meetings.js; .screen.mtg-root) ----
   Prefix .mtg- (My time already owns .mt-). The desk tool in the app's computer look (14 px text, 36 px inputs, white cards with --line borders): the
   meetings / action items list, the start dialog, the meeting page (attendance left, one card per section right), the templates editor. Under 900 px
   the meeting page is one column and its tables turn into stacked blocks; the list tables scroll inside their own card, never the page.
   Then the owner's phone screen (.screen.mtg-phone: My action items, big buttons, a slide-up sheet) and the print rules that make the meeting page the minutes. */
.screen.mtg-root { max-width: 1680px; padding-left: 24px; padding-right: 24px; font-size: 14px; line-height: 1.45; }
.mtg-root h1 { margin: 0; font-size: 26px; }
.mtg-root .mtg-sub { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.mtg-top { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 8px 14px; margin: 2px 0 14px; }
.mtg-tl { min-width: 0; }
.mtg-back { margin-bottom: 6px; }
.mtg-acts { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mtg-root .btn, .mtg-dlg .btn { width: auto; min-height: 36px; padding: 0 16px; font-size: 14px; font-weight: 700; border-radius: 9px; }
.mtg-root .btn.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.mtg-root .btn.mtg-sm { min-height: 30px; padding: 0 11px; font-size: 13px; }
.mtg-root .btn.btn-outline, .mtg-dlg .btn.btn-outline { border: 2px solid var(--blue); }
.mtg-root .btn.mtg-quiet, .mtg-dlg .btn.mtg-quiet { background: var(--white); color: var(--ink); border: 2px solid var(--line); font-weight: 600; }
.mtg-root .btn.mtg-redtxt { background: none; color: var(--red); font-weight: 700; border: 0; }
.mtg-dlg .btn.mtg-btn-red { background: var(--red); color: var(--white); }
.mtg-root a.btn { text-decoration: none; }
.mtg-root a.btn.mtg-teams { color: var(--blue); background: var(--white); border: 2px solid var(--blue); }
.mtg-lnk { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--blue); text-align: left; cursor: pointer; }
.mtg-lnk:hover { text-decoration: underline; }
.mtg-red { color: var(--red); font-weight: 700; }
.mtg-small { font-size: 12px; color: var(--muted); }
.mtg-dash { color: var(--faint); }
.mtg-nw { white-space: nowrap; }
.mtg-pre { white-space: pre-wrap; }
.mtg-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.mtg-stat { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 10px; padding: 10px 14px; }
.mtg-stat b { display: block; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.mtg-stat span { color: var(--muted); font-weight: 600; font-size: 13px; }
.mtg-stat.red { border-left-color: var(--red); } .mtg-stat.gold { border-left-color: var(--gold); } .mtg-stat.green { border-left-color: var(--green); }
.mtg-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.mtg-seg { display: inline-flex; flex: none; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.mtg-seg button { height: 34px; padding: 0 13px; font: inherit; font-weight: 700; color: var(--muted); background: none; border: 0; border-right: 1px solid var(--line); cursor: pointer; }
.mtg-seg button:last-child { border-right: 0; }
.mtg-seg button[aria-pressed="true"] { background: var(--blue-tint); color: var(--blue); }
.mtg-search { flex: 1 1 220px; min-width: 0; max-width: 420px; height: 36px; padding: 0 12px; font: 14px var(--font); color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.mtg-search:focus, .mtg-inp:focus { outline: none; border-color: var(--blue); }
.mtg-card { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.mtg-scroll { overflow-x: auto; }
.mtg-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mtg-table th { padding: 9px 10px; text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; border-bottom: 1px solid var(--line); }
.mtg-table td { padding: 9px 10px; vertical-align: top; border-bottom: 1px solid var(--line); }
.mtg-table tr:last-child td { border-bottom: 0; }
.mtg-table tr.mtg-grp td { padding: 7px 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--gray-1); }
.mtg-table tr.mtg-flag td:first-child { box-shadow: inset 4px 0 0 var(--red); }
.mtg-table tr.sel { background: var(--blue-tint); }
.mtg-table tr[data-mtg-tsel] { cursor: pointer; }
.mtg-table tr.mtg-retired td { color: var(--faint); }
.mtg-vend { font-weight: 700; }
.mtg-rowbtns { text-align: right; }
.mtg-donenote { margin-top: 3px; font-size: 13px; font-weight: 400; color: var(--muted); }
.mtg-empty { display: grid; justify-items: center; padding: 48px 24px; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.mtg-empty b { font-size: 16px; }
.mtg-pill { display: inline-block; margin: 1px 3px 1px 0; padding: 1px 9px; font-size: 11.5px; font-weight: 700; white-space: nowrap; border: 1px solid; border-radius: 12px; }
.mtg-pill.red { background: var(--red-tint); color: var(--red); border-color: var(--red); }
.mtg-pill.gold { background: var(--gold-tint); color: #8A6500; border-color: #8A6500; }
.mtg-pill.green { background: var(--green-tint); color: var(--green-dark); border-color: var(--green-dark); }
.mtg-pill.blue { background: var(--blue-tint); color: var(--blue); border-color: var(--blue); }
.mtg-tag { margin-left: 6px; padding: 0 4px; font-size: 10px; font-weight: 700; color: var(--faint); border: 1px solid var(--line); border-radius: 4px; vertical-align: 1px; white-space: nowrap; }
.mtg-saved { margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--green-dark); }
.mtg-finline { margin: 0 0 12px; padding: 9px 14px; background: var(--green-tint); border: 1px solid var(--green); border-radius: 10px; font-weight: 600; }
.mtg-info { padding: 9px 14px; font-size: 13px; background: var(--blue-tint); border-radius: 10px; }

/* inputs */
.mtg-inp { width: 100%; min-width: 0; height: 36px; padding: 0 10px; font: 14px var(--font); color: var(--ink); background: var(--white); border: 1px solid var(--gray-3); border-radius: 8px; }
textarea.mtg-inp { height: auto; padding: 8px 10px; line-height: 1.4; resize: vertical; display: block; }
.mtg-lab { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.mtg-fld { margin-bottom: 14px; min-width: 0; }
.mtg-fld .mtg-small { margin-top: 4px; }
.mtg-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mtg-w240 { max-width: 240px; }
.mtg-padb { padding: 10px 14px; }

/* the people combo */
.mtg-combo { position: relative; min-width: 0; }
.mtg-combo .mtg-cin { padding-right: 26px; }
.mtg-cx { position: absolute; top: 3px; right: 3px; width: 30px; height: 30px; font-size: 18px; line-height: 1; color: var(--faint); background: none; border: 0; border-radius: 6px; cursor: pointer; }
.mtg-cx:hover { color: var(--ink); background: var(--gray-1); }
.mtg-clist { position: absolute; z-index: 80; top: 38px; left: 0; right: 0; min-width: 220px; max-height: 240px; overflow-y: auto; padding: 4px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.mtg-copt { display: flex; flex-direction: column; padding: 6px 9px; border-radius: 6px; cursor: pointer; }
.mtg-copt span { font-size: 12px; color: var(--muted); }
.mtg-copt.hi, .mtg-copt:hover { background: var(--blue-tint); }
.mtg-combo.mtg-up .mtg-clist { top: auto; bottom: 38px; }
.mtg-cnone { padding: 8px 10px; font-size: 13px; color: var(--muted); }

/* check boxes and the Yes / No control */
.mtg-box { flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 1px; font-style: normal; font-size: 12px; font-weight: 800; color: var(--white); background: var(--white); border: 2px solid var(--faint); border-radius: 5px; }
.mtg-ck.on .mtg-box { background: var(--green); border-color: var(--green); }
.mtg-ck.on .mtg-box::after { content: "✓"; }
.mtg-ck { cursor: pointer; }
.mtg-ck.ro { cursor: default; }
.mtg-inline { display: inline-flex; align-items: center; gap: 9px; padding: 0 4px; font: inherit; font-weight: 600; background: none; border: 0; }
.mtg-arow { display: flex; align-items: flex-start; gap: 9px; width: 100%; padding: 8px 14px; font: inherit; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); }
button.mtg-arow:hover { background: var(--gray-1); }
.mtg-who { display: flex; flex-direction: column; min-width: 0; }
.mtg-who b { overflow-wrap: anywhere; }
.mtg-rule { height: 1px; background: var(--line); }
.mtg-yn { display: inline-flex; flex: none; white-space: nowrap; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.mtg-yn button { min-width: 56px; height: 34px; padding: 0 12px; font: inherit; font-weight: 700; color: var(--muted); background: none; border: 0; border-right: 1px solid var(--line); cursor: pointer; }
.mtg-yn button:last-child { border-right: 0; }
.mtg-yn button.yes { background: var(--green); color: var(--white); }
.mtg-yn button.no { background: var(--red); color: var(--white); }
.mtg-yn button.mid { background: var(--gold); color: var(--ink); }

/* the meeting page */
.mtg-panes { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 14px; align-items: start; }
.mtg-panes2 { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 14px; align-items: start; }
.mtg-stack { display: grid; gap: 14px; min-width: 0; }
.mtg-att { padding-bottom: 0; }
.mtg-att .mtg-arow:last-of-type { border-bottom: 0; }
.mtg-chead { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; font-weight: 800; border-bottom: 1px solid var(--line); }
.mtg-cnt { font-size: 13px; font-weight: 600; color: var(--muted); }
.mtg-hbar { padding: 9px 14px; font-size: 14px; font-weight: 700; color: var(--white); background: var(--blue); border-radius: var(--radius) var(--radius) 0 0; overflow-wrap: anywhere; }
.mtg-pm { width: 100%; border-collapse: collapse; font-size: 14px; }
.mtg-pm th { padding: 9px 10px; text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; border-bottom: 1px solid var(--line); }
.mtg-pm th:nth-child(2), .mtg-pm td:nth-child(2) { width: 200px; }
.mtg-pm th:nth-child(3), .mtg-pm td:nth-child(3) { width: 150px; }
.mtg-pm th:nth-child(4), .mtg-pm td:nth-child(4) { width: 200px; }
.mtg-pm td { padding: 9px 10px; vertical-align: middle; border-bottom: 1px solid var(--line); }
.mtg-pm tr:last-child td { border-bottom: 0; }
.mtg-pm td.mtg-it { font-size: 14px; overflow-wrap: anywhere; }
.mtg-pm tr.mtg-click { cursor: pointer; }
.mtg-pm tr.mtg-click:hover td { background: var(--gray-1); }
.mtg-pm tr.mtg-editing td, .mtg-pm tr.mtg-addtr td { background: var(--gray-1); }
.mtg-pm .mtg-act, .mtg-pm .mtg-eacts { white-space: nowrap; }
.mtg-pm .mtg-eacts .btn { margin-right: 2px; }
.mtg-q { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.2fr); align-items: center; gap: 12px; padding: 10px 14px; }
.mtg-qt { font-size: 14px; overflow-wrap: anywhere; }
.mtg-secs td { vertical-align: middle; }
.mtg-srow td { padding: 6px 10px; }
.mtg-secs th:nth-child(2), .mtg-secs td:nth-child(2) { width: 160px; }
.mtg-secs th:nth-child(3), .mtg-secs td:nth-child(3) { width: 230px; }
.mtg-secs th:nth-child(4), .mtg-secs td:nth-child(4) { width: 120px; }
.mtg-xbtn { width: 32px; height: 32px; font-size: 17px; line-height: 1; color: var(--muted); background: none; border: 0; border-radius: 6px; cursor: pointer; }
.mtg-xbtn:hover:not(:disabled) { color: var(--ink); background: var(--gray-1); }
.mtg-xbtn:disabled { opacity: .3; cursor: default; }
.mtg-edit { padding: 16px; }
.mtg-addsec { margin-top: 10px; }
.mtg-ftr { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* dialogs */
.mtg-ov { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(26, 26, 26, 0.5); font-size: 14px; line-height: 1.45; }
.mtg-dlg { display: flex; flex-direction: column; width: 100%; max-width: 860px; max-height: calc(100vh - 32px); overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.mtg-dlg.mtg-narrow { max-width: 520px; }
.mtg-dlg.mtg-small { max-width: 440px; }
.mtg-dh { padding: 14px 18px; font-size: 18px; font-weight: 800; border-bottom: 1px solid var(--line); }
.mtg-dbody { flex: 1 1 auto; overflow-y: auto; padding: 18px; }
.mtg-dcols { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; }
.mtg-dfoot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 14px 18px; background: var(--gray-1); border-top: 1px solid var(--line); }
.mtg-askmsg { font-size: 15px; }
.mtg-tpl { display: flex; align-items: flex-start; gap: 10px; width: 100%; margin-bottom: 8px; padding: 10px 12px; font: inherit; text-align: left; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.mtg-tpl > span { display: block; min-width: 0; }
.mtg-tpl b { display: block; }
.mtg-tpl.sel { padding: 9px 11px; background: var(--blue-tint); border: 2px solid var(--blue); }
.mtg-rad { flex: none; width: 16px; height: 16px; margin-top: 3px; border: 2px solid var(--faint); border-radius: 50%; }
.mtg-tpl.sel .mtg-rad { border-color: var(--blue); background: radial-gradient(var(--blue) 0 38%, transparent 42%); }
.mtg-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mtg-chiplist { display: contents; }
.mtg-chips .mtg-combo { flex: 1 1 170px; max-width: 260px; }
.mtg-pchip { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 6px 0 12px; font-size: 13px; font-weight: 700; color: var(--blue); background: var(--blue-tint); border: 1px solid var(--blue); border-radius: 14px; }
.mtg-pchip button { padding: 0 3px; font-size: 16px; line-height: 1; color: inherit; opacity: .8; background: none; border: 0; cursor: pointer; }

/* the home-screen notice for the next meeting (app.js meetingsNudge): the link inside it is a real link */
.mtg-nudge-static { cursor: default; }
.obs-nudge .mtg-nudge-join { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--blue); }

/* 900 px and narrower: the meeting page is one column and its tables become stacked blocks; the list tables scroll inside their card */
@media (max-width: 900px) {
  .screen.mtg-root { padding-left: 16px; padding-right: 16px; }
  .mtg-panes, .mtg-panes2 { grid-template-columns: minmax(0, 1fr); }
  .mtg-dcols { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .mtg-q { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .mtg-acts { margin-left: 0; }
  .mtg-pm thead { display: none; }
  .mtg-pm, .mtg-pm tbody, .mtg-pm tr, .mtg-pm td { display: block; width: auto; }
  .mtg-pm th:nth-child(n), .mtg-pm td:nth-child(n) { width: auto; }
  .mtg-pm tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .mtg-pm tr:last-child { border-bottom: 0; }
  .mtg-pm td { padding: 3px 0; border: 0; }
  .mtg-pm td[data-label]:not([data-label=""])::before { content: attr(data-label) ": "; font-size: 12px; font-weight: 700; color: var(--muted); }
  .mtg-pm tr.mtg-addtr td::before, .mtg-pm tr.mtg-editing td::before, .mtg-secs td::before { display: block; margin-bottom: 2px; }
  .mtg-pm td.mtg-nil { display: none; }
  .mtg-pm td.mtg-act:empty { display: none; }
  .mtg-pm .mtg-inp { height: 40px; }
  .mtg-root .mtg-pm .btn { min-height: 40px; }
}
@media (max-width: 520px) {
  .mtg-two { grid-template-columns: minmax(0, 1fr); }
  .mtg-ov { padding: 8px; }
  .mtg-dbody { padding: 14px; }
  .mtg-root h1 { font-size: 22px; }
}

/* ---- My action items: the phone screen (meetings.js PZ.screenMeetingItems), the app's phone look ---- */
.screen.mtg-phone { padding-top: var(--s4); }
.mtg-prow-head { margin-bottom: var(--s3); }
.mtg-plist { display: grid; gap: 11px; margin-bottom: var(--s4); }
.mtg-prow { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 64px; padding: 13px 12px; font: inherit; text-align: left; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); cursor: pointer; }
.mtg-prow:active { background: var(--gray-1); }
.mtg-prow.y { border-left-color: var(--gold); }
.mtg-prow.r { border-left-color: var(--red); }
.mtg-ico { flex: 0 0 40px; display: grid; place-items: center; height: 40px; font-size: 15px; font-weight: 800; color: var(--blue); background: var(--blue-tint); border-radius: 10px; }
.mtg-prow.y .mtg-ico { color: #8A6500; background: var(--gold-tint); }
.mtg-prow.r .mtg-ico { color: var(--red); background: var(--red-tint); }
.mtg-prt { flex: 1; min-width: 0; }
.mtg-prt b { display: block; font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.mtg-prt > span { display: block; font-size: 13px; color: var(--muted); }
.mtg-prt > .mtg-ppill { display: block; width: fit-content; margin-top: 4px; padding: 2px 10px; font-size: 13px; font-weight: 700; border: 1px solid; border-radius: 20px; }
.mtg-ppill.bad { color: var(--red); background: var(--red-tint); border-color: #E5B5B7; }
.mtg-ppill.open { color: #8A6500; background: var(--gold-tint); border-color: #E8C55A; }
.mtg-chev { font-size: 22px; font-weight: 700; color: var(--gray-3); }
.mtg-eb { margin: var(--s4) 2px var(--s2); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.mtg-upc { padding: 11px 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.mtg-upc b { display: block; font-size: 16px; }
.mtg-upc span { display: block; font-size: 14px; color: var(--muted); }
.mtg-upc .mtg-upj { display: inline-block; margin-top: 6px; font-size: 15px; font-weight: 700; color: var(--blue); }
.mtg-mgisheet .cp-tk-head { margin-bottom: 16px; }
.mtg-mgisheet .mtg-mgibody { margin: 0 0 var(--s4); font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.mtg-mgisheet .field textarea { font-size: 18px; }
.mtg-mgisheet .mtg-mgicancel { margin-top: var(--s3); }

/* ---- Meetings: sections that pull lines from other tools, and the look-ahead layer ---- */
.mtg-pullline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 6px 14px; font-size: 13px; color: var(--muted); background: var(--gray-1); border-bottom: 1px solid var(--line); }
.mtg-pullline .mtg-lnk { font-size: 13px; }
.mtg-pulled td.mtg-it { color: var(--muted); }
.mtg-pulltag { margin-left: 8px; padding: 0 5px; font-size: 13px; font-weight: 600; color: var(--faint); border: 1px solid var(--line); border-radius: 4px; white-space: nowrap; }
/* the caret on a SAFETY line, and the records under it */
.mtg-caret { display: inline-block; width: 22px; height: 22px; margin: 0 4px 0 -4px; padding: 0; font: 700 13px var(--font); line-height: 22px; text-align: center; color: var(--muted); background: none; border: 0; border-radius: 6px; cursor: pointer; transition: transform .15s; vertical-align: middle; }
.mtg-caret:hover { background: var(--blue-tint); color: var(--blue); }
.mtg-caret[aria-expanded="true"] { transform: rotate(90deg); }
.mtg-detail td { padding: 4px 14px 10px 40px; background: var(--gray-1); border-top: 0; }
.mtg-dmonth { margin: 6px 0 2px; font: 700 12px var(--font); letter-spacing: .02em; text-transform: uppercase; color: var(--faint); }
.mtg-dnote { padding: 4px 0; font-size: 13px; color: var(--muted); }
.mtg-drow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; width: 100%; margin: 0; padding: 4px 8px; font: 13px var(--font); text-align: left; color: var(--ink); background: none; border: 0; border-radius: 6px; }
button.mtg-drow { cursor: pointer; }
button.mtg-drow:hover, button.mtg-drow:focus-visible { background: var(--blue-tint); }
.mtg-don { flex: none; width: 52px; color: var(--muted); }
.mtg-dwho { font-weight: 600; }
.mtg-dsub { color: var(--muted); }
.mtg-dscore { margin-left: auto; padding: 0 7px; font-weight: 700; color: var(--blue); border: 1px solid var(--blue); border-radius: 10px; }
.mtg-drascreen { max-width: 760px; margin: 0 auto; padding-bottom: 24px; }
/* DFOW phase meetings: what a section covers, when the phase is held, and the work plan the meeting is about */
.mtg-hint { padding: 6px 14px 0; font-size: 13px; color: var(--muted); }
.mtg-yesno .mtg-hint { padding-bottom: 10px; }
.mtg-guide { display: block; margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.mtg-wpline { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 13px; }
.mtg-shint { margin-top: 6px; }
.mtg-hrow { display: flex; align-items: center; gap: 8px; background: var(--blue); border-radius: var(--radius) var(--radius) 0 0; }
.mtg-hrow .mtg-hbar { flex: 1 1 auto; min-width: 0; background: none; border-radius: 0; }
.mtg-hbtn { flex: none; margin-right: 8px; height: 30px; padding: 0 12px; font: 700 13px var(--font); color: var(--blue); background: var(--white); border: 0; border-radius: 8px; cursor: pointer; }
.mtg-hbtn:hover { background: var(--blue-tint); }
/* the layer: above the app header (z 50), below the look-ahead's own pop-overs (400, 500) and sheets (1000+), so those still open over it */
.mtg-look { position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; background: var(--gray-1); }
.mtg-return { flex: none; display: block; width: 100%; height: 48px; padding: 0 20px; font: 700 15px var(--font); text-align: left; color: var(--white); background: var(--blue); border: 0; cursor: pointer; }
.mtg-return:hover { background: var(--blue-dark); }
.mtg-return:focus-visible { outline: 3px solid var(--white); outline-offset: -5px; }
.mtg-lookscroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; }
body.mtg-looking .toast { z-index: 1200; }
@media (max-width: 900px) {
  .mtg-hbtn { height: 40px; }
}
@media (max-width: 520px) {
  .mtg-hrow { flex-wrap: wrap; padding-bottom: 8px; }
  .mtg-hrow .mtg-hbar { flex-basis: 100%; padding-bottom: 6px; }
  .mtg-hbtn { margin-left: 14px; }
}

/* ---- Meetings: the page prints as the minutes ---- */
@media print {
  .app-header, #toast, .mtg-noprint, .mtg-addtr, .mtg-ov, .mtg-cx, .mtg-clist, .mtg-back, .mtg-root .btn, .mtg-yn button:not(.yes):not(.no), .mtg-att .mtg-padb { display: none !important; }
  body { background: #fff; }
  .screen.mtg-root { max-width: none; padding: 0; overflow: visible; }
  .mtg-panes { display: block; }
  .mtg-att, .mtg-card { box-shadow: none; break-inside: avoid; margin-bottom: 10px; border-color: #999; }
  .mtg-hbar { color: #000; background: #fff; border-bottom: 2px solid #000; border-radius: 0; }
  .mtg-pm tr.mtg-click:hover td { background: none; }
  .mtg-inp { height: auto; padding: 0; border: 0; background: none; }
  .mtg-yn { border: 0; }
  .mtg-pill, .mtg-saved { color: #000 !important; background: none !important; border-color: #666 !important; }
  .mtg-saved { display: none; }
  .mtg-finline { background: none; border-color: #666; }
  .mtg-look { display: none !important; }
  .mtg-hrow { background: #fff; border-radius: 0; }
  .mtg-pullline { color: #000; background: none; border-bottom: 0; }
  .mtg-pulled td.mtg-it { color: #000; }
  .mtg-pulltag { display: none; }
}

/* ---- Meetings: the work plan review (a Preparatory meeting reads the work plan in parts; meetings.js "THE PLAN REVIEW") ----
   One column: attendance, then a card per part (banded top row with the name and the tick, the plan read only, then "From this meeting"), then the changes box. */
.mtg-pstatus { margin: 0 0 12px; font-weight: 700; }
.mtg-pstatus.done { color: var(--green-dark); }
.mtg-plandone { margin: 0 0 12px; padding: 10px 14px; font-weight: 600; background: var(--blue-tint); border-radius: 10px; }
.mtg-plpage, .mtg-plan { display: grid; gap: 14px; min-width: 0; }
.mtg-pgrp { margin: 8px 0 0; font-size: 19px; }
.mtg-planmsg { margin: 0; padding: 14px; color: var(--muted); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.mtg-part { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.mtg-phead { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 12px; padding: 12px 14px; background: var(--gray-1); border-radius: var(--radius) var(--radius) 0 0; }
.mtg-ptxt { flex: 1 1 260px; min-width: 0; }
.mtg-ptxt h3 { margin: 0; font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
.mtg-ptxt .mtg-lab { margin-bottom: 2px; }
.mtg-ptxt .mtg-small { margin: 2px 0 0; }
.mtg-ptick { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; font: 700 14px var(--font); color: var(--blue); background: var(--white); border: 2px solid var(--blue); border-radius: 9px; cursor: pointer; }
.mtg-ptick:hover { background: var(--blue-tint); }
.mtg-ptick:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.mtg-ptick.on { color: var(--green-dark); background: var(--green-tint); border-color: var(--green-dark); }
.mtg-ptick.on::before { content: "✓"; }
.mtg-ptick.ro { cursor: default; color: var(--muted); background: var(--white); border-color: var(--line); }
.mtg-ptick.ro.on { color: var(--green-dark); border-color: var(--green-dark); background: var(--green-tint); }
.mtg-pbody { padding: 4px 14px 6px; min-width: 0; overflow-wrap: anywhere; }
.mtg-pbody p { margin: 6px 0 0; }
.mtg-pitem { margin-top: 10px; min-width: 0; }
.mtg-pitem b { display: block; }
.mtg-pitem ul { margin: 2px 0 0; padding-left: 20px; }
.mtg-pitem li { margin-top: 2px; }
.mtg-hold { font-weight: 700; color: var(--red); }
.mtg-pcols { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 6px; }
.mtg-pcols > div { padding: 8px 0; min-width: 0; }
.mtg-pcols > div + div { border-top: 1px solid var(--line); }
.mtg-pcols h4 { margin: 0 0 4px; font-size: 15px; }
.mtg-fromplan { margin: 0; padding: 4px 14px 10px; font-size: 12.5px; color: var(--muted); }
.mtg-pmtg { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); }
.mtg-pmtg .mtg-lab, .mtg-pmtg .mtg-small { margin: 0; }
.mtg-pnote { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px; background: var(--gray-1); border-radius: 8px; overflow-wrap: anywhere; }
.mtg-pnote.change { background: #FDF1E7; }
.mtg-pnote.change .mtg-pk { color: #8F4410; }
.mtg-pwho { font-size: 13px; color: var(--muted); }
.mtg-padd { display: flex; flex-wrap: wrap; gap: 8px; }
.mtg-pform { display: grid; gap: 10px; padding: 12px; background: var(--white); border: 2px solid var(--blue); border-radius: var(--radius); }
.mtg-pform > div { min-width: 0; }
.mtg-pform .mtg-lab { margin-bottom: 4px; }
.mtg-pbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.mtg-changes { min-width: 0; padding: 16px; background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); }
.mtg-changes h3 { margin: 0; font-size: 18px; }
.mtg-changes > .mtg-small { margin: 4px 0 8px; }
.mtg-changes .mtg-table { min-width: 460px; }
.mtg-changes .mtg-table td { overflow-wrap: anywhere; }
@media (min-width: 760px) {
  .mtg-pcols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mtg-pcols > div + div { border-top: 0; border-left: 1px solid var(--line); padding-left: 14px; }
  .mtg-pcols > div:first-child { padding-right: 14px; }
}
@media (max-width: 759px) {
  .mtg-root .mtg-part .btn, .mtg-root .mtg-part .btn.mtg-sm, .mtg-root .mtg-planmsg .btn.mtg-sm { min-height: 44px; }
  .mtg-padd .btn { flex: 1 1 140px; }
}
@media print {
  .mtg-plpage, .mtg-plan { display: block; }
  .mtg-part, .mtg-changes { break-inside: avoid; box-shadow: none; border-color: #999; margin-bottom: 10px; }
  .mtg-phead { background: none; border-bottom: 1px solid #999; }
  .mtg-ptick, .mtg-ptick.on, .mtg-ptick.ro { color: #000; background: none; border-color: #666; }
  .mtg-ptick:not(.on):not(.ro) { font-size: 0; }
  .mtg-ptick:not(.on):not(.ro)::after { content: attr(data-print); font-size: 14px; }
  .mtg-pnote, .mtg-pnote.change { background: none; border: 1px solid #999; }
  .mtg-pnote.change .mtg-pk { color: #000; }
  .mtg-plandone { background: none; border: 1px solid #666; }
  .mtg-changes .mtg-table { min-width: 0; }
}

/* PO details pop-up on the invoice page (invoice_7_po_detail.sql) */
/* the invoice header: title left; the total, PO details and Fix on the right in one row (they wrap under the title when it is tight) */
.iv-h1 .iv-h1t { margin-left: auto; }
.iv-h1 .iv-fixbtn { align-self: center; }
@media (max-width: 820px) { .iv-h1 h2 { flex-basis: 100%; } .iv-h1 .iv-h1t { margin-left: 0; margin-right: auto; } }
/* "Open the invoice" in the zoom bar */
.iv-rvopen { margin-left: auto; }
.iv-rvzoom .iv-open { width: auto; min-width: 0; min-height: 34px; margin: 0; padding: 0 14px; font-size: 14px; text-decoration: none; }
.iv-pobody { overflow: auto; }
.iv-polt .bad { color: var(--red); font-weight: 600; }
@media (min-width: 821px) { .iv-pobox { width: min(1100px, 94vw); height: auto; max-height: 92vh; } .iv-pobody { display: block; } }
.iv-polt { font-size: 13px; }
.iv-polt td { vertical-align: middle; height: 30px; padding: 4px 10px 4px 0; border-bottom: 1px solid var(--line-soft); }
.iv-polt th { padding-right: 10px; }
.iv-polt th.n, .iv-polt td.n { padding-left: 0; }
.iv-polt th.g, .iv-polt td.g { padding-left: 14px; border-left: 1px solid var(--line-soft); }
.iv-polt thead tr.iv-pogh th { text-align: left; padding-top: 0; padding-bottom: 2px; border-bottom: 1px solid var(--line-soft); text-transform: none; }
.iv-polt .iv-polw { display: none; }
.iv-polt .iv-poln { width: 64px; white-space: nowrap; }
.iv-polt .iv-poln .iv-pocaret { margin-right: 2px; }
.iv-polt .iv-pods { min-width: 160px; }
.iv-polt .iv-pods b { font-weight: 600; }
.iv-polt td.iv-poz { color: var(--faint); }
.iv-polt tr.iv-poon > td:first-child { box-shadow: inset 3px 0 0 var(--blue); padding-left: 8px; }
.iv-polt tr.iv-poon .iv-poln { font-weight: 700; }
.iv-polt tr.iv-poex { cursor: pointer; }
.iv-polt tfoot td { border-top: 1px solid var(--ink, var(--line)); border-bottom: 0; }
.iv-polt tfoot td.g { border-left: 0; }
.iv-pocaret { display: inline-block; width: 20px; height: 20px; padding: 0; border: 0; background: none; color: var(--faint); font: inherit; font-size: 12px; line-height: 20px; text-align: center; vertical-align: middle; }
button.iv-pocaret { cursor: pointer; }
button.iv-pocaret:hover, button.iv-pocaret:focus-visible { color: var(--ink, inherit); }
.iv-posum { margin: 0 0 2px; font-size: 13px; color: var(--faint); }
.iv-pokey { margin: 0 0 8px; font-size: 11px; color: var(--faint); }
.iv-pobar { display: inline-block; width: 3px; height: 11px; margin-right: 5px; vertical-align: -1px; background: var(--blue); }
.iv-pobox .iv-tkht b { font-size: 22px; }
.iv-pobox .iv-tkht #ivPoSub { color: var(--faint); font-size: 13px; }
.iv-polt .iv-posub td { height: auto; padding: 2px 0 8px 64px; border-bottom: 1px solid var(--line-soft); }
.iv-poinv { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; font-size: 12px; color: var(--faint); }
.iv-poinv li { display: flex; flex-wrap: wrap; gap: 2px 12px; padding: 1px 0; }
.iv-poinv li.iv-poon b { color: var(--blue); }
.iv-poinv .iv-pox { text-decoration: line-through; }
@media (max-width: 820px) {
  .iv-polt tr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .iv-polt td { height: auto; padding: 0; border: 0; }
  .iv-polt td.n { white-space: normal; }
  .iv-polt th.g, .iv-polt td.g { padding-left: 0; border-left: 0; }
  .iv-polt tr.iv-poon { box-shadow: inset 3px 0 0 var(--blue); padding-left: 8px; }
  .iv-polt tr.iv-poon > td:first-child { box-shadow: none; padding-left: 0; }
  .iv-polt tr.iv-poex { cursor: pointer; }
  .iv-polt td.iv-poln { width: auto; white-space: nowrap; display: flex; align-items: center; gap: 4px; grid-column: 1 / -1; grid-row: 1; font-size: 11px; font-weight: 700; color: var(--faint); }
  .iv-polt .iv-polw { display: inline; }
  .iv-polt td.iv-pods { grid-column: 1 / -1; grid-row: 2; }
  .iv-polt td.c-oq { grid-row: 3; grid-column: 1; } .iv-polt td.c-bq { grid-row: 3; grid-column: 2; } .iv-polt td.c-rq { grid-row: 3; grid-column: 3; }
  .iv-polt td.c-oa { grid-row: 4; grid-column: 1; } .iv-polt td.c-ba { grid-row: 4; grid-column: 2; } .iv-polt td.c-ra { grid-row: 4; grid-column: 3; }
  .iv-polt td.c-uc { grid-row: 5; grid-column: 1; } .iv-polt td.c-dl { grid-row: 5; grid-column: 2; }
  .iv-polt td:empty { display: none; }
  .iv-polt tr.iv-posub { display: block; padding: 0 0 8px 8px; }
  .iv-polt .iv-posub td { padding: 0; }
  .iv-polt tfoot td { border-top: 0; }
  .iv-pocaret { width: 32px; height: 32px; line-height: 32px; margin: -6px 0; }
}


/* ---------- Quality Essentials (icon + name) ----------
   One circle for the icon wherever an essential shows: the walk's card, the
   work-plan editor's picker, the work-plan viewer. The picker is a single row
   that scrolls sideways on a phone; the chosen chip takes the app blue. */
.ess-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--white); border: 1.5px solid var(--look-essential, var(--gray-2)); overflow: hidden; }
.ess-ico img { display: block; object-fit: contain; }
.qw-ess-bar { display: flex; align-items: center; gap: 10px; }
/* Work plan builder round 3: a quality item's essential is one line (icon, name, caret) that opens the eight; a small
   plus (or quiet words once the item holds something) opens Note, Files and Links under it. Words and hairlines. */
.df-ess { position: relative; margin: 2px 0 6px; }
.df-ess-dd { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 10px 4px 6px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--white); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.df-ess-dd:disabled { cursor: default; border-color: transparent; padding-left: 0; }
.df-ess-dd svg { width: 16px; height: 16px; color: var(--muted); }
.df-ess-dd.none .df-ess-n { color: var(--red); font-weight: 600; }
.df-ess-dd .bi-tr, .df-ess-opt .bi-tr { display: none; }
.df-ess-list { position: absolute; z-index: 30; left: 0; top: calc(100% + 2px); min-width: 260px; margin: 0; padding: 0; list-style: none;
  background: var(--white); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.df-ess-list li + li { border-top: 1px solid var(--line-soft); }
.df-ess-opt { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 12px; border: 0; background: none; color: var(--ink);
  font: inherit; text-align: left; cursor: pointer; }
.df-ess-opt:hover, .df-ess-opt:focus-visible { background: var(--line-soft); }
.df-ess-opt.on { font-weight: 700; }
.df-qmore-plus { flex: none; width: 32px; height: 32px; border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.df-qmore-plus:hover { color: var(--ink); }
.df-qmore-words { flex: none; align-self: center; border: 0; background: none; padding: 4px 6px; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.df-qmore-words:hover { color: var(--ink); text-decoration: underline; }
.df-qmore { margin: 6px 0 10px; padding: 4px 0 4px 14px; border-left: 1px solid var(--line); }
.df-qmore-h { margin: 8px 0 4px; font-weight: 700; font-size: 13px; }
.df-qmore-ta { width: 100%; min-height: 56px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.df-qmore-note { margin: 0; white-space: pre-wrap; }
/* Rich text for a note (richtext.js, PZ.Rich): the editor looks like the app's text boxes; a rendered note shows its lists. */
.rt-wrap { width: 100%; }
.rt-bar { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.rt-b { min-width: 32px; min-height: 32px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); font: inherit; font-size: 14px; line-height: 1; cursor: pointer; }
.rt-b:hover { background: var(--canvas); }
.rt-b[aria-pressed="true"] { background: var(--canvas); border-color: var(--ink); }
.rt-b:focus-visible, .rt-ed:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.rt-ed { box-sizing: border-box; width: 100%; min-height: 74px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); font: inherit; overflow-wrap: anywhere; }
.rt-ed:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.rt-ed:empty::before { content: attr(data-ph); color: var(--muted); pointer-events: none; }
.rt-over .rt-ed { border-color: var(--red); }
.rt-warn { margin: 4px 0 0; color: var(--red); font-size: 13px; }
.rt-ed ul, .rt-ed ol, .rt-view ul, .rt-view ol, .wpv-qnote ul, .wpv-qnote ol { margin: 0; padding-left: 22px; }
.rt-ed ul, .rt-view ul, .wpv-qnote ul { list-style: disc; }
.rt-ed ol, .rt-view ol, .wpv-qnote ol { list-style: decimal; }
.df-plan.df-wide .df-sstep-body .rt-ed { padding: 6px 10px; font-size: 14px; }
.df-plan.df-wide .df-sstep-body .rt-b { min-height: 32px; padding: 4px 10px; font-size: 14px; }
.df-qmore-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; border-bottom: 1px solid var(--line-soft); }
.df-qmore-row a, .df-qmore-row span { overflow-wrap: anywhere; }
.df-qmore-sm { margin: 4px 0; font-size: 13px; }
.df-qmore-bad { margin: 4px 0; color: var(--red); font-size: 13px; }
.df-link-btn { display: inline-flex; align-items: center; min-height: 36px; border: 0; background: none; padding: 0; color: var(--blue); font: inherit; font-weight: 600; cursor: pointer; }
.df-link-btn:hover { text-decoration: underline; }
/* The Hazard and Quality essential look (R5): label + colour saved on Admin > Safety & Quality, set by dfow.js as --look-hazard /
   --look-essential and the html classes look-hz / look-es. Without them every rule here falls back to today's colours. */
.look-tag { display: inline-block; margin-right: 6px; padding: 1px 8px; border: 1px solid currentColor; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5; vertical-align: middle; color: var(--muted); }
.look-tag-hazard { color: var(--look-hazard, var(--muted)); }
.look-tag-essential { color: var(--look-essential, var(--muted)); }
.wpv-h .look-tag { margin: 0 0 0 8px; }
.look-hz-n { color: var(--look-hazard, inherit); }
html.look-hz .df-haz-ic, html.look-hz .look-hz-ic { border-radius: 50%; box-shadow: 0 0 0 2px var(--look-hazard); }
html.look-es .look-es-ic { border-radius: 50%; box-shadow: 0 0 0 2px var(--look-essential); }
.df-def { margin: -4px 0 6px; font-size: 12px; }
.wpv-ess-n { margin: 2px 0 0 60px; font-size: 14px; font-weight: 700; color: var(--blue); }
/* ============================================================
   The camera button (app.js, "THE CAMERA BUTTON"). A phone-only icon in the header, beside the job chip, that opens a bottom sheet:
   what are you taking a picture of? The sheet is the shared .cp-modal > .cp-sheet; only the rows are new. Hidden on anything wider than a phone.
   ============================================================ */
.cam-btn {
  display: none; align-items: center; justify-content: center;
  min-width: var(--tap); min-height: var(--tap);
  background: var(--white); border: 1px solid var(--gray-3);
  border-radius: var(--radius-sm); color: var(--blue);
}
.cam-btn > .ic { width: 22px; height: 22px; }
.cam-btn:active { background: var(--gray-1); }
@media (max-width: 820px) {
  .cam-btn { display: flex; margin-left: auto; }
  .cam-btn.hidden { display: none; }
}
/* up to 600px the job chip already takes the free space (margin-left: auto), so the camera sits right beside the menu button; on a 360px phone
   the camera and menu buttons shrink a little and the gaps close up so the chip keeps room for the job number */
@media (max-width: 600px) {
  .cam-btn { margin-left: 0; }
}
@media (max-width: 420px) {
  .app-header { gap: var(--s2); padding-left: var(--s3); padding-right: var(--s3); }
  .cam-btn, .app-header .menu-btn { min-width: 44px; min-height: 44px; }
}
.cam-sheet { outline: none; overscroll-behavior: contain; }
.cam-sheet .cam-cancel { width: auto; min-height: 48px; padding: 0 20px; font-size: 16px; }
.cam-list { display: flex; flex-direction: column; gap: 10px; }
.cam-row {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 10px 14px;
  text-align: left; font: inherit; font-size: 18px; font-weight: 700; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--gray-3); border-radius: var(--radius-sm); cursor: pointer;
}
.cam-row:active { background: var(--gray-1); }
.cam-row .ic { width: 26px; height: 26px; flex: 0 0 26px; color: var(--blue); }
.cam-row-more { min-height: 52px; font-size: 16px; font-weight: 600; color: var(--gray-7); justify-content: center; border-style: dashed; }
.cam-row-more .ic { width: 20px; height: 20px; flex-basis: 20px; color: var(--gray-7); }
.cam-more-list { display: flex; flex-direction: column; gap: 10px; }
.cam-strip { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; }
.cam-strip-n { font-size: 20px; font-weight: 700; text-align: center; margin: 4px 0 2px; }
.cam-strip .btn { margin: 0; min-height: 56px; }
.cam-busy { margin: 18px 0 8px; text-align: center; font-size: 18px; font-weight: 600; color: var(--gray-7); }
/* a toast raised while the sheet is up has to show above it */
body.cam-open .toast { z-index: 1200; }
/* the photo the camera button brought to the Observation type picker */
.ob-pending-photo { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; font-weight: 700; }
.ob-pending-photo img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); background: var(--gray-2); }

/* ---- Requisitions (requisition.js; .screen.req-root) ----
   The monthly bill to the owner, a desk tool built on the SLWS look: the cover's nine lines on the left, the continuation sheet on the right (docs/requisition-monthly-mockup.html).
   820 px and narrower: the panes stack, list first. The page never scrolls sideways; the wide table sits in its own wrapper that does. */
.screen.req-root { max-width: 1680px; padding-left: 24px; padding-right: 24px; font-size: 14px; line-height: 1.45; }
.req-root .req-small { font-size: 12px; color: var(--muted); font-weight: 400; margin: 0; }
.req-root .req-num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.req-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 12px; }
.req-titlerow { display: flex; align-items: center; gap: 14px; }
.req-titlerow h1 { margin: 0; }
.req-titlerow .btn { width: auto; min-height: 36px; font-size: 14px; padding: 0 12px; }
.req-root .req-lede { margin: 4px 0 0; max-width: 760px; font-size: 14px; }
.req-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin-left: auto; }
.req-acts .btn { width: auto; min-width: 0; min-height: 40px; margin: 0; padding: 0 18px; font-size: 15px; }

.req-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.req-stat { min-width: 0; padding: 10px 16px 11px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.req-stat b { display: block; font-size: 24px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.req-stat span { font-size: 13px; font-weight: 600; color: var(--muted); }
.req-stat.green { border-left-color: var(--green); }
.req-stat.orange { border-left-color: var(--orange); }
.req-stat.gold { border-left-color: var(--gold); }

.req-panes { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 14px; align-items: start; }
.req-card { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.req-pill { display: inline-block; flex: none; margin: 1px 3px 1px 0; padding: 1px 9px; font-size: 11.5px; font-weight: 700; white-space: nowrap; border: 1px solid var(--gray-2); border-radius: 99px; background: var(--gray-1); color: var(--muted); }
.req-pill.orange { background: var(--orange-tint); border-color: #F3C3A6; color: #B5551F; }
.req-pill.red { background: var(--red-tint); border-color: #E4B7B9; color: var(--red); }
.req-pill.yellow { background: #FFF6D1; border-color: #EBD27A; color: #8A6D00; }
.req-pill.gold { background: var(--gold-tint); border-color: #E8C55A; color: #8A6500; }
.req-pill.green { background: var(--green-tint); border-color: #B7D9A5; color: var(--green-dark); }
.req-pill.blue { background: var(--blue-tint); border-color: #BAD2EE; color: var(--blue); }

.req-lhead { padding: 10px 14px 8px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line); }
.req-subrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; width: 100%; padding: 11px 14px; font: inherit; color: var(--ink); text-align: left; background: none; border: 0; border-top: 1px solid var(--line); box-shadow: inset 4px 0 0 transparent; cursor: pointer; }
.req-lhead + .req-subrow { border-top: 0; }
.req-subrow:hover { background: var(--gray-1); }
.req-subrow.sel { background: var(--blue-tint); box-shadow: inset 4px 0 0 var(--blue); }
.req-subrow.flag { box-shadow: inset 4px 0 0 var(--orange); }
.req-subrow .nm { font-weight: 700; overflow-wrap: anywhere; }
.req-subrow .amt { font-weight: 800; font-variant-numeric: tabular-nums; }
.req-subrow .pills { grid-column: 1 / -1; }
.req-ltot { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; font-weight: 800; font-variant-numeric: tabular-nums; border-top: 2px solid var(--line); }

.req-detail { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.req-dhead { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.req-dhead h2 { margin: 0; font-size: 19px; font-weight: 800; }
.req-tot { margin-left: auto; text-align: right; }
.req-tot b { display: block; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.req-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.req-sw { display: inline-block; width: 13px; height: 13px; margin-right: 6px; vertical-align: -2px; border: 1px solid var(--gray-3); border-radius: 4px; background: var(--white); }
.req-sw.g { background: var(--green-tint); border-color: var(--green-dark); }
.req-sw.y { background: var(--gold-tint); border-color: #8A6500; }
.req-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; }
.req-table { width: 100%; min-width: 960px; border-collapse: collapse; }
.req-table th { padding: 8px 9px; font-size: 11.5px; font-weight: 700; color: var(--muted); text-align: left; white-space: nowrap; vertical-align: bottom; background: var(--gray-1); border-bottom: 1px solid var(--line); }
.req-table th.req-num { text-align: right; }
.req-table th.hot { color: var(--blue); }
.req-table td { padding: 8px 8px; vertical-align: top; border-bottom: 1px solid var(--line); }
.req-table tr.req-ln td:first-child { white-space: nowrap; }
.req-table tbody tr:last-child td { border-bottom: 0; }
.req-table tr.req-ln td:nth-child(2) { min-width: 190px; }
.req-table td.req-q, .req-table td.req-c { min-width: 140px; text-align: right; }
.req-table td.req-q .qv, .req-table td.req-c .qv { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.req-table td.req-q .src, .req-table td.req-c .src { font-size: 12px; color: var(--muted); }
.req-table td.req-q.pulled { background: var(--green-tint); }
.req-table td.req-q.adjd { background: var(--gold-tint); }
.req-table td.req-q.adjd .src { color: #8A6500; font-weight: 600; }
.req-qi { width: 112px; max-width: 100%; height: 34px; padding: 0 8px; font: 800 15px var(--font); font-variant-numeric: tabular-nums; text-align: right; color: var(--ink); background: var(--white); border: 1.5px solid var(--gray-3); border-radius: 6px; }
.req-ri { width: 56px; height: 30px; padding: 0 6px; font: 700 14px var(--font); text-align: right; color: var(--ink); background: var(--white); border: 1.5px solid var(--gray-3); border-radius: 6px; }
.req-qi:focus, .req-ri:focus, .req-root textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.req-pre { margin-right: 4px; font-weight: 700; color: var(--muted); }
.req-suf { margin-left: 4px; font-weight: 700; color: var(--muted); }
.req-qwrap { display: inline-flex; align-items: center; }
.req-lnk { padding: 0; font: inherit; font-size: 12px; font-weight: 700; color: var(--blue); text-decoration: underline; background: none; border: 0; cursor: pointer; }
.req-cthis { font-weight: 700; }
.req-table td.req-c { min-width: 150px; }
.req-pv { font-weight: 700; }
.req-pv.over { color: #B5551F; }
.req-bar { min-width: 64px; height: 6px; margin-top: 5px; overflow: hidden; border-radius: 6px; background: var(--line); }
.req-bar i { display: block; height: 100%; background: var(--blue); }
.req-bar.over i { background: var(--orange); }
.req-table tr.req-grp td { padding-block: 7px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); background: var(--gray-1); }
.req-table tr.req-sum td { font-weight: 800; background: var(--gray-1); }
.req-table tr.req-more td { padding-block: 7px; font-size: 13px; color: var(--muted); background: var(--gray-1); }
.req-table tr.req-more td b { color: var(--ink); }
.req-edbox { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; padding: 4px 0; }
.req-edbox .f { display: grid; gap: 4px; }
.req-edbox .f.grow { flex: 1 1 280px; min-width: 0; }
.req-edbox label { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.req-edbox textarea { width: 100%; min-height: 34px; padding: 6px 8px; font: 14px var(--font); color: var(--ink); background: var(--white); border: 1.5px solid var(--gray-3); border-radius: 6px; resize: vertical; }
.req-edbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.req-err { flex-basis: 100%; margin: 0; font-size: 13px; font-weight: 700; color: var(--red); }
.req-root .btn.sm { width: auto; min-height: 34px; padding: 0 12px; font-size: 13px; }
.req-root .btn.quiet { color: var(--ink); background: var(--white); border: 1px solid var(--line); font-weight: 600; }
.req-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.req-tbox { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; }
.req-tbox h3 { margin: 0 0 2px; font-size: 13px; font-weight: 800; }
.req-tline { display: flex; justify-content: space-between; gap: 10px; font-variant-numeric: tabular-nums; }
.req-tline span { color: var(--muted); }
.req-tline.big { margin-top: 2px; padding-top: 5px; font-weight: 800; font-size: 16px; border-top: 1px solid var(--line); }
.req-tline.big span { color: var(--ink); }
.req-netmsg { margin: 0; padding: 8px 10px; font-weight: 700; color: #B5551F; background: var(--orange-tint); border: 1px solid #F3C3A6; border-radius: 8px; }
.req-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.req-foot .req-small { flex: 1 1 260px; }
.req-foot .btn { width: auto; min-height: 40px; padding: 0 18px; font-size: 15px; }
.req-ready { font-weight: 700; color: var(--green-dark); }
.req-empty { padding: 28px 18px; text-align: center; }
.req-empty p { margin: 0 0 12px; }
.req-empty .btn { width: auto; min-height: 40px; padding: 0 18px; font-size: 15px; }

.req-imp { margin-bottom: 12px; padding: 14px 16px; display: grid; gap: 10px; }
.req-imp h2 { margin: 0; font-size: 17px; font-weight: 800; }
.req-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 20px 14px; text-align: center; font-weight: 600; color: var(--muted); border: 2px dashed var(--gray-3); border-radius: 10px; background: var(--gray-1); cursor: pointer; }
.req-drop.over { color: var(--blue); border-color: var(--blue); background: var(--blue-tint); }
.req-imp .req-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.req-imp .btn { width: auto; min-height: 38px; padding: 0 16px; font-size: 14px; }
.req-imp table { width: 100%; border-collapse: collapse; }
.req-imp th { padding: 6px 8px; font-size: 12px; text-align: left; color: var(--muted); background: var(--gray-1); border-bottom: 1px solid var(--line); }
.req-imp th.req-num { text-align: right; }
.req-imp td { padding: 6px 8px; border-bottom: 1px solid var(--line); }
.req-imp .req-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; }
.req-imp .req-bad { margin: 0; font-weight: 700; color: var(--red); }
.req-imp .req-good { margin: 0; font-weight: 700; color: var(--green-dark); }
@media (max-width: 820px) {
  .screen.req-root { padding-left: 16px; padding-right: 16px; }
  .req-acts { justify-content: flex-start; margin-left: 0; width: 100%; }
  .req-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .req-stat { padding: 9px 12px 10px; }
  .req-stat b { font-size: 20px; }
  .req-panes { grid-template-columns: minmax(0, 1fr); }
  .req-detail { padding: 12px; }
  .req-tot { margin-left: 0; text-align: left; }
}

.field.req-ff { margin: 0; }
.field.req-ff label { display: block; margin-bottom: 3px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.field.req-ff input, .field.req-ff select { width: 100%; min-width: 0; min-height: 36px; height: 36px; padding: 0 8px; font: inherit; font-size: 14px; color: var(--ink); background: var(--white); border: 1.5px solid var(--gray-3); border-radius: 6px; }
.field.req-ff input:focus, .field.req-ff select:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); box-shadow: none; }
.req-inv .field.req-ff { flex: 0 1 190px; }
.req-inv .field.req-ff input[type="date"] { flex: none; }
/* Requisitions: what the SL Worksheet does not have. The nine cover lines, the over-the-contract bands, the Job setup and Load items panels, past applications. */
.req-stat.over { display: flex; align-items: center; background: var(--orange-tint); border-color: var(--orange); }
.req-stat.over b { font-size: 17px; color: #B5551F; line-height: 1.25; }
.req-stat.over.yellow { background: #FFF6D1; border-color: #EBD27A; }
.req-stat.over.yellow b { color: #8A6D00; }
.req-stat.over.red { background: var(--red-tint); border-color: var(--red); }
.req-stat.over.red b { color: var(--red); }
.req-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 8px; }
.req-strip-legend { margin: 0 0 12px; font-size: 12px; color: var(--muted); }
.req-statusrow { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-top: 8px; }
.req-statusrow .req-pill { margin: 0; font-size: 12.5px; padding: 2px 11px; }
.req-statusrow .req-lnk { font-size: 13px; font-weight: 600; }
.req-actwrap { display: grid; gap: 6px; justify-items: end; margin-left: auto; }
.req-actwrap .req-acts { margin-left: 0; }
.req-hint { margin: 0; font-size: 12.5px; color: var(--muted); }
.req-period { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; white-space: nowrap; }
.req-period input[type="date"] { min-height: 40px; padding: 0 8px; font: inherit; font-size: 14px; color: var(--ink); background: var(--white); border: 1.5px solid var(--gray-3); border-radius: 6px; }
.req-pill.grey { background: var(--gray-1); color: var(--muted); }
.req-ln9 { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; padding: 8px 14px; border-top: 1px solid var(--line); align-items: baseline; }
.req-ln9 i { font-style: normal; font-weight: 800; color: var(--faint); font-size: 12px; }
.req-ln9 b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.req-ln9.due { background: var(--blue-tint); }
.req-ln9.due span, .req-ln9.due b { font-weight: 800; font-size: 15px; }
.req-lhead + .req-ln9 { border-top: 0; }
.req-subrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 11px 14px; border-top: 1px solid var(--line); }
.req-subrow .nm { font-weight: 700; overflow-wrap: anywhere; }
.req-subrow .amt { font-weight: 800; font-variant-numeric: tabular-nums; }
.req-subrow .req-small { grid-column: 1 / -1; }
.req-lnote { padding: 10px 14px; border-top: 1px solid var(--line); }
.req-table { min-width: 1180px; }
.req-table th small { display: block; font-size: 10px; font-weight: 800; color: var(--faint); }
.req-table .req-ovp { margin-top: 3px; }
.req-table .req-ovp .req-small { white-space: nowrap; }
.req-table tr.req-ln.ov-yellow td:first-child { box-shadow: inset 4px 0 0 #EBD27A; }
.req-table tr.req-ln.ov-orange td:first-child { box-shadow: inset 4px 0 0 #F3C3A6; }
.req-table tr.req-ln.ov-red td:first-child { box-shadow: inset 4px 0 0 #E4B7B9; }
.req-table tr.req-sum.grand td { border-top: 2px solid var(--line); }
.req-panel { margin-bottom: 12px; padding: 14px 16px; display: grid; gap: 10px; }
.req-panel h2 { margin: 0; font-size: 17px; font-weight: 800; }
.req-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 14px; }
.req-panel .req-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.req-panel .btn { width: auto; min-height: 38px; padding: 0 16px; font-size: 14px; }
.req-panel .req-bad { margin: 0; font-weight: 700; color: var(--red); }
.req-panel .req-good { margin: 0; font-weight: 700; color: var(--green-dark); }
.req-panel .req-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; }
.req-panel table { width: 100%; border-collapse: collapse; }
.req-panel th { padding: 6px 8px; font-size: 12px; text-align: left; color: var(--muted); background: var(--gray-1); border-bottom: 1px solid var(--line); }
.req-panel th.req-num { text-align: right; }
.req-panel td { padding: 6px 8px; border-bottom: 1px solid var(--line); }
.req-apps { margin-top: 14px; overflow-x: auto; }
.req-apps table { width: 100%; border-collapse: collapse; }
.req-apps th { padding: 8px 12px; font-size: 12px; text-align: left; color: var(--muted); background: var(--gray-1); border-bottom: 1px solid var(--line); }
.req-apps th.req-num { text-align: right; }
.req-apps td { padding: 8px 12px; border-bottom: 1px solid var(--line); }
.req-apps tr.req-arow { cursor: pointer; }
.req-apps tr.req-arow:hover td { background: var(--gray-1); }
.req-apps tr.req-arow.sel td { background: var(--blue-tint); }
.req-viewing { margin-bottom: 10px; padding: 8px 12px; font-weight: 600; background: var(--gold-tint); border: 1px solid #E8C55A; border-radius: 8px; }
@media (max-width: 1100px) { .req-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .req-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .req-actwrap { justify-items: start; margin-left: 0; width: 100%; }
}

/* ---- Daily Log: Contract quantities (dailylog-lines.js card, dailylog-phone.js cards and sheet; .dlcq-) ----
   Mocks: docs/requisition-daily-log-laptop-mockup.html, docs/requisition-phone-mockup.html. Quantities only, never dollars. */
.dl-t-contractqty { table-layout: fixed; }
.dl-t-contractqty .dlcq-c-item { width: 27%; }
.dl-t-contractqty .dlcq-c-qty { width: 17%; }
.dl-t-contractqty .dlcq-c-td { width: 21%; }
.dl-t-contractqty .dlcq-c-loc { width: 15%; }
.dl-t-contractqty .dlcq-c-note { width: 20%; }
.dl-t-contractqty td { vertical-align: top; }
.dl-t-contractqty .dl-pick { display: block; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlcq-r.over td:first-child { box-shadow: inset 4px 0 0 rgba(244, 126, 66, .5); }
.dlcq-no { display: inline-block; margin-right: 6px; padding: 1px 10px; font-size: 12px; font-weight: 700; border-radius: 99px; border: 1px solid var(--gray-2); background: var(--gray-1); color: var(--gray-7); white-space: nowrap; vertical-align: middle; }
.dlcq-c-item b { font-weight: 700; overflow-wrap: anywhere; }
.dlcq-co { margin-left: 4px; }
.dlcq-qr { display: flex; align-items: center; gap: 8px; }
.dlcq-qr .dlcq-in.dl-num { width: 90px; flex: none; font-weight: 700; border-color: var(--gray-3); background: var(--white); }
.dlcq-un { flex: none; min-width: 34px; font-size: 12px; font-weight: 700; color: var(--muted); }
.dlcq-todate { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dlcq-bar { height: 5px; max-width: 220px; margin-top: 5px; border-radius: 5px; background: var(--gray-2); overflow: hidden; }
.dlcq-bar i { display: block; height: 100%; background: var(--blue); }
.dlcq-bar.over i { background: var(--orange); }
.dlcq-flag { margin-top: 4px; }
.dlcq-c-note .dl-in { border-color: var(--gray-3); background: var(--white); }
.dlcq-c-note .dlcq-note.need { border-color: var(--orange); background: var(--orange-tint); }
.dlcq-why { display: block; margin-top: 3px; font-size: 12px; font-weight: 600; color: #B5551F; }
/* the pick lists (laptop pop-over, phone sheet): a lump sum is shown and cannot be picked; a change order carries a badge */
.dl-pop-i.off, .dl-pr.off { background: var(--gray-1); color: var(--gray-5); cursor: default; }
.dl-pop-i.off:hover { background: var(--gray-1); }
.dl-pr-badge { display: inline-block; margin-left: 4px; padding: 1px 8px; font-size: 12px; font-style: normal; font-weight: 700; border-radius: 99px; border: 1px solid #BCD3EE; background: var(--blue-tint); color: var(--blue-dark); vertical-align: middle; }
/* phone: a card for each entry */
.dlcq-card { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.dlcq-card .cb { display: grid; gap: 8px; }
.dlcq-top { display: flex; align-items: center; gap: 10px; }
.dlcq-amt { flex: none; text-align: right; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dlcq-amt small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.dlcq-facts { font-size: 13px; color: var(--muted); }
.dlcq-card.over { border-left: 4px solid var(--orange); }
/* phone: the entry sheet */
.dlcq-qentry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.dlcq-qentry .dlcq-qin.dl-in, .dlcq-qentry .dlcq-qin.ro { width: 100%; min-width: 0; height: 68px; min-height: 68px; padding: 0 12px; text-align: right; font: 800 32px var(--font); font-variant-numeric: tabular-nums; color: var(--ink); background: var(--white); border: 1.5px solid var(--blue); border-radius: var(--radius-sm); box-shadow: 0 0 0 3px rgba(0, 87, 184, .15); }
.dlcq-qentry .dlcq-qin.ro { display: flex; align-items: center; justify-content: flex-end; border-color: var(--gray-3); box-shadow: none; }
.dlcq-unit { min-width: 76px; display: grid; place-items: center; padding: 0 12px; font-size: 20px; font-weight: 800; color: var(--gray-7); background: var(--gray-1); border: 1.5px solid var(--gray-2); border-radius: var(--radius-sm); }
.dlcq-live { display: grid; gap: 10px; }
.dlcq-tally { display: grid; gap: 8px; padding: 11px 12px; background: var(--gray-1); border-radius: var(--radius-sm); }
.dlcq-trow { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.dlcq-trow b { font-variant-numeric: tabular-nums; text-align: right; }
.dlcq-trow.big { font-size: 16px; font-weight: 700; }
.dlcq-tally .dlcq-bar { display: flex; height: 10px; max-width: none; margin: 0; border-radius: 10px; }
.dlcq-tally .dlcq-bar i { flex: none; background: var(--gray-5); }
.dlcq-tally .dlcq-bar i.t { background: var(--green); }
.dlcq-tally .dlcq-bar.over i.t { background: var(--orange); }
.dlcq-over { display: grid; gap: 4px; padding: 11px 13px; font-size: 15px; font-weight: 600; color: #8A3F14; background: var(--orange-tint); border: 1px solid #F3C3A6; border-left: 5px solid var(--orange); border-radius: var(--radius); }
.dlcq-over small { font-size: 14px; font-weight: 400; }
.dl-f label.need { color: #B5551F; }
.dl-f .dlcq-why { font-size: 14px; margin: 5px 0 0; }

/* ---- Purchasing (purchasing.js, vendors.js, notes.js) ---- */
/* The tile and the shell (docs/purchasing-phase1a-spec.md). Reuses the Delivery Log (dv-) table, group-header and filter look and the Invoices (iv-) over-colours; the new classes are pu- (shell, PO view), vn- (vendors), nt- (notes). */
.home-tile[data-key="purchasing"] .home-ic { background: var(--blue); }
.screen.pu-wide { max-width: 1680px; padding-left: 24px; padding-right: 24px; }
.pu-titlerow { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.pu-titlerow h1 { margin: 0; }
.pu-titlerow .btn { width: auto; min-height: 36px; font-size: 14px; padding: 0 12px; }
.pu-m .pu-titlerow .btn { min-height: 48px; }
/* the view switch: a title-sized dropdown beside the Menu button; it takes the title's place in the Delivery Log's and the Invoices' root too */
.pu-bar { margin: 0; min-width: 0; }
.dv-m > .pu-bar, .iv-root > .pu-bar { margin-bottom: 12px; }
.pu-vsel { appearance: none; -webkit-appearance: none; font: inherit; font-size: 22px; font-weight: 800; color: var(--ink, #111); background: transparent; border: 0; padding: 4px 30px 4px 2px; cursor: pointer; max-width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 4.5l5 5 5-5' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 6px center; background-size: 14px; }
.pu-vsel:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.pu-bar-m .pu-vsel { font-size: 20px; min-height: 48px; }
.pu-vone { margin: 0; }
.pu-fold-m { width: auto; min-height: 48px; margin: 0 0 8px 6px; }
.iv-d .pu-bar { display: none; }
body.pu-nopos .dv-vbtn[data-dv-view="pos"] { display: none; }
/* Purchase orders, computer */
.pu-filters .pu-sel { max-width: 240px; }
.pu-wide .btn.dv-clear, .pu-wide .btn.pu-export, .pu-wide .btn.pu-fold { width: auto; min-height: 36px; height: 36px; padding: 0 12px; font-size: 14px; }
.pu-wide .btn.pu-export { margin-left: auto; }
.pu-table { min-width: 1100px; }
.pu-table td.pu-wrap, .pu-table td.pu-vend { white-space: normal; }
.pu-table .dv-vn { display: block; }
.pu-tr.pu-done td { color: var(--muted); }
.pu-dash { color: var(--faint); }
.pu-gsum { font-weight: 700; }
.pu-foot td { height: 40px; padding: 0 10px; font-weight: 700; background: #F1F4F9; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.pu-foot td.n { text-align: right; }
.pu-ov0 { color: var(--gold-ink); font-weight: 600; }
.pu-ov1 { color: #B5551F; font-weight: 600; }
.pu-ov2 { color: var(--red); font-weight: 600; }
.pu-red { color: var(--red); font-weight: 600; }
.pu-pill { display: inline-block; flex: none; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; border: 1px solid var(--gray-3); background: var(--gray-1); color: var(--gray-7); white-space: nowrap; vertical-align: middle; }
.pu-st-submitted, .pu-st-in_approval { background: var(--gold-tint); border-color: #E8C55A; color: #8A6500; }
.pu-st-approved, .pu-st-sent { background: var(--blue-tint); border-color: #BCD3EE; color: var(--blue-dark); }
.pu-st-signed, .pu-st-in_vista { background: var(--green-tint); border-color: #B7D9A5; color: var(--green-dark); }
.pu-st-void { background: var(--white); border: 1.5px solid var(--red); color: var(--red); }
.pu-chip { margin: 0 6px 0 0; }
.pu-ovp0 { background: var(--gold-tint); border-color: #E8C55A; color: #8A6500; }
.pu-ovp1 { background: var(--orange-tint); border-color: #F3C3A6; color: #B5551F; }
.pu-ovp2 { background: var(--red-tint); border-color: #E5B5B7; color: var(--red); }
/* an opened PO */
.pu-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.pu-nav .btn { width: auto; }
.pu-pos { margin-left: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.pu-pane { padding: 20px 24px 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.pu-h2 { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
.pu-meta { margin-bottom: 10px; font-size: 14px; color: var(--muted); }
.pu-path { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.pu-step { padding: 3px 12px; font-size: 13px; font-weight: 700; color: var(--muted); border: 1px solid var(--gray-3); border-radius: 99px; }
.pu-step.cur { color: var(--white); background: var(--blue); border-color: var(--blue); }
.pu-arrow { color: var(--faint); }
.pu-h { margin: 22px 0 8px; font-size: 16px; font-weight: 800; }
.pu-plain { display: grid; gap: 5px; font-size: 14px; }
.pu-muted { color: var(--muted); }
.pu-pane .dv-tablewrap { overflow-x: auto; }
.pu-lines { width: 100%; min-width: 980px; }
.pu-lines td.pu-ld { white-space: normal; }
.pu-lines tr.pu-total td { font-weight: 700; background: #FAFBFC; }
.pu-inv { height: auto; min-height: 28px; padding: 2px 6px; margin-left: -6px; text-align: left; }
/* Purchase orders, phone: summary rows */
.pu-m .pu-nav .btn { min-height: 48px; }
.pu-gchip { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; margin: 0 0 8px; padding: 0 14px; font-size: 16px; font-weight: 700; color: var(--blue-dark); background: var(--blue-tint); border: 1.5px solid var(--blue); border-radius: 24px; }
.pu-gchip select { min-height: 48px; font: inherit; font-size: 16px; font-weight: 700; color: inherit; background: transparent; border: 0; }
.pu-ghead { display: flex; align-items: baseline; gap: 8px; width: 100%; min-height: 48px; padding: 8px 6px 0; font: inherit; font-size: 16px; font-weight: 800; color: var(--ink); text-align: left; background: none; border: 0; cursor: pointer; }
.pu-caret { width: 14px; color: var(--muted); }
.pu-cnt { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--muted); }
.pu-prow { display: flex; align-items: flex-start; gap: 12px; width: 100%; min-height: 64px; margin-bottom: 10px; padding: 13px 12px; font: inherit; color: var(--ink); text-align: left; background: var(--white); border: 0; border-left: 4px solid var(--blue); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); cursor: pointer; }
.pu-prow.n { border-left-color: var(--gray-3); }
.pu-prow.y { border-left-color: var(--gold); }
.pu-prow.o { border-left-color: var(--orange); }
.pu-prow.r { border-left-color: var(--red); }
.pu-pline { cursor: default; }
.pu-prt { display: block; flex: 1; min-width: 0; }
.pu-prt b { display: block; font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.pu-prt > span { display: block; font-size: 13px; color: var(--muted); }
.pu-prt > .pu-chips { margin-top: 4px; }
.pu-side { display: grid; flex: none; justify-items: end; gap: 4px; }
.pu-bars { display: grid; gap: 3px; margin-top: 6px; }
.pu-bar1 { display: grid; grid-template-columns: 62px 1fr 34px; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.pu-bar1 i { position: relative; display: block; height: 5px; overflow: hidden; background: var(--gray-2); border-radius: 3px; }
.pu-bar1 s { position: absolute; top: 0; bottom: 0; left: 0; background: var(--blue); border-radius: 3px; text-decoration: none; }
.pu-bar1 em { font-style: normal; font-weight: 700; text-align: right; }
.pu-note { margin: 12px 2px 0; font-size: 13px; color: var(--muted); }
.pu-m .eyebrow { margin: 14px 2px 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.pu-table td.pu-po .dv-sub { white-space: normal; }
.pu-ph2 { margin: 6px 0 0; font-size: 26px; font-weight: 800; line-height: 1.15; }
.pu-psub { margin: 4px 0 8px; font-size: 15px; }
.pu-big { font-size: 30px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pu-big small { font-size: 14px; font-weight: 400; color: var(--muted); }
.pu-jobline { margin: 4px 0 8px; font-size: 14px; color: var(--muted); }
/* the notes thread (notes.js) */
.nt { margin-top: 22px; }
.nt-h { margin: 0 0 8px; font-size: 16px; font-weight: 800; }
.nt-n { font-weight: 600; color: var(--muted); }
.nt-add { display: grid; gap: 8px; margin-bottom: 14px; }
.nt-ta { width: 100%; box-sizing: border-box; min-height: 90px; padding: 10px 12px; font: inherit; font-size: 16px; border: 1.5px solid var(--gray-3); border-radius: var(--radius-sm); resize: vertical; }
.nt-ta:focus { outline: none; border-color: var(--blue); }
.nt-act { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.nt-act .btn { width: auto; min-height: 48px; padding: 0 20px; }
.nt-hint { font-size: 12px; color: var(--muted); }
.nt-err { font-size: 14px; font-weight: 600; color: var(--red); }
.nt-item { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.nt-meta { font-size: 13px; color: var(--muted); }
.nt-meta b { font-size: 14px; color: var(--ink); }
.nt-body { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.nt-body.open { display: block; overflow: visible; }
.nt-more { min-height: 32px; padding: 0 4px; font-size: 14px; font-weight: 600; color: var(--blue); background: none; border: 0; cursor: pointer; }
@media (max-width: 820px) { .nt-more { min-height: 48px; } }

/* ===== Quality Tour (quality.js, workpick.js) — phone-first: 52px fields, 48px+ taps, one column =====
   Reuses .obs-v2 .ob-row / .ob-chip, .progress-wrap, .seg-btn, .field, .card, .banner-*, .cp-modal / .cp-sheet.
   Only the pieces the app has no class for are here. */
.qt-screen .btn-sm, .qt-screen .qw-suggest-apply { min-height: 48px; }
.qt-back { width: auto; min-height: 48px; margin-bottom: 10px; padding: var(--s2) var(--s4); }
.qt-h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; line-height: 1.25; }
.qt-q { font-size: 16px; font-weight: 700; margin: 4px 0 8px; }
.qt-lab { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.qt-note { font-size: 14px; color: var(--muted); }
.qt-hold { margin: 8px 0 0; font-size: 14px; font-weight: 700; color: var(--red); }
.qt-hint .status-line { margin-top: 0; }

/* status pills on the work list and the steps list */
.qt-pills, .obs-v2 .ob-rtext .qt-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.obs-v2 .ob-rtext .qt-pill { display: inline-block; margin-top: 0; }
.qt-pill { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .03em; padding: 3px 10px; border-radius: 999px; background: var(--gray-1); color: var(--gray-5); }
.qt-pill.ok { background: var(--green-tint); color: var(--green-dark); }
.qt-pill.warn { background: var(--gold-tint); color: #7A5C00; }
.qt-pill.info { background: var(--blue-tint); color: var(--blue-dark); }
.qt-pill.bad { background: var(--red-tint); color: var(--red); }
.qt-pill.grey { background: var(--gray-1); color: var(--gray-5); }
.qt-steprow .ob-chip { font-size: 15px; font-weight: 800; }
.qt-steprow .ob-chip:not(.g):not(.d):not(.b) { background: var(--gray-2); color: var(--gray-7); }
.obs-v2 .qt-quiet { font-size: 14px; font-weight: 500; }
.wp-modal .ob-row { margin-bottom: 10px; }
.wp-sheet { min-height: 60vh; }
.wp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.wp-kind { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.wp-x { flex: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--gray-1); color: var(--gray-7); display: flex; align-items: center; justify-content: center; }
.wp-x .ic { width: 20px; height: 20px; }
.wp-modal .wp-plan-chip { background: var(--gray-2); color: var(--gray-7); }
/* "Which steps did you walk?" */
.wp-steptools { display: flex; gap: 8px; margin: 4px 0 10px; }
.wp-step { display: flex; align-items: flex-start; gap: 12px; min-height: 48px; padding: 12px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); font-size: 16px; line-height: 1.35; cursor: pointer; }
.wp-step input[type="checkbox"] { width: 24px; height: 24px; margin: 0; flex: none; }
.wp-steps-hint { margin: 4px 0 0; font-size: 14px; font-weight: 600; color: var(--red); }
.wp-steps-foot { position: sticky; bottom: 0; display: flex; gap: 10px; padding: 12px 0 4px; background: var(--white); }
.wp-steps-foot .btn { flex: 1; }

/* "The work" card */
.qt-kvs { display: grid; gap: 10px; }
.qt-kv small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.qt-kv b { font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }

/* one step: result buttons, the gold "what changed" box, reason chips */
.qt-seg { margin-bottom: 10px; }
.qt-seg .seg-btn { min-height: 48px; padding: 4px 6px; line-height: 1.2; }
.qt-seg .seg-btn.on-planned, .qt-seg .seg-btn.on-verified, .qt-seg .seg-btn.on-better, .qt-seg .seg-btn.on-good { background: var(--green); border-color: var(--green); color: var(--white); }
.qt-seg .seg-btn.on-changed, .qt-seg .seg-btn.on-okay { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.qt-seg .seg-btn.on-notdone, .qt-seg .seg-btn.on-na, .qt-seg .seg-btn.on-same { background: var(--gray-7); border-color: var(--gray-7); color: var(--white); }
.qt-seg .seg-btn.on-issue, .qt-seg .seg-btn.on-worse, .qt-seg .seg-btn.on-bad { background: var(--red); border-color: var(--red); color: var(--white); }
.qt-feel .seg-btn { min-height: 56px; font-size: 17px; }
.qt-nest { background: var(--gold-tint); border: 1px solid #E8C55A; border-left: 5px solid var(--gold); border-radius: var(--radius); padding: 12px; display: grid; gap: 12px; margin-top: 4px; }
.qt-nest .qt-seg { margin-bottom: 0; }
.qt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qt-chip { min-height: 48px; padding: 4px 14px; border-radius: 24px; border: 1.5px solid var(--gray-3); background: var(--white); font-size: 15px; font-weight: 700; color: var(--gray-7); }
.qt-chip.sel { background: var(--blue-tint); border-color: var(--blue); color: var(--blue-dark); }
.qt-risk .card-body { padding: 13px; }
.qt-risk-name { margin-bottom: 10px; font-size: 16px; line-height: 1.3; }
.qt-risk textarea { min-height: 90px; }
/* The step check: the work plan beside the answers (mock-up docs/quality-step-check-mockup.html).
   Phone: the plan folds above the question and each risk card carries its own answer. 1100 px and up: two columns,
   one grid row per risk so a risk's plan card and its answer line up. */
.qt-icons { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.qt-plan-head { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-align: left; cursor: pointer; }
.qt-plan-head .ic { width: 20px; height: 20px; transition: transform .15s; }
.qt-plan.folded .qt-plan-head .ic { transform: rotate(-90deg); }
.qt-plan.folded .qt-plan-body { display: none; }
.qt-colh { display: none; margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.qt-plan-desc { margin: 0 0 12px; font-size: 15px; white-space: pre-line; overflow-wrap: anywhere; }
.qt-empty { background: var(--white); border: 1px dashed var(--gray-3); border-radius: var(--radius); padding: 12px; margin-bottom: 12px; }
.qt-empty p { margin: 0 0 4px; font-size: 14px; color: var(--muted); }
.qt-plan-link { display: inline-block; min-height: 48px; line-height: 48px; font-size: 15px; font-weight: 700; color: var(--blue); }
.qt-plan-body > .qt-note { margin: 0 0 12px; }
.qt-risk:not(.card) { background: var(--white); border: 1px solid var(--gray-2); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden; }
.qt-rplan, .qt-rans { padding: 13px; }
.qt-rplan { padding-bottom: 0; }
.qt-rans { padding-top: 0; }
.qt-rplan:last-child { padding-bottom: 13px; }
.qt-rname { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 16px; line-height: 1.3; }
.qt-rname b { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.qt-rname .ess-ico { flex: none; }
.qt-ess-none { width: 44px; height: 44px; background: var(--gray-1); }
.qt-ctl { margin: 0 0 12px; padding-left: 20px; font-size: 15px; color: var(--gray-7); }
.qt-ctl li { margin-bottom: 2px; overflow-wrap: anywhere; }
.qt-rplan:last-child .qt-ctl { margin-bottom: 0; }
.qt-ans-name { display: none; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.qt-found { margin-top: 12px; }
.qt-found > .card { margin-bottom: 12px; }
@media (min-width: 1100px) {
  .qt-screen.qt-stepscreen { max-width: 1100px; }
  .qt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; align-items: start; }
  .qt-plan, .qt-plan .qt-plan-body, .qt-plan.folded .qt-plan-body { display: contents; }
  .qt-plan-head { display: none; }
  .qt-colh { display: block; }
  .qt-plan-top { grid-column: 1; grid-row: 1; }
  .qt-found { grid-column: 2; grid-row: 1; margin-top: 0; }
  .qt-risk, .qt-risk:not(.card) { display: contents; }
  .qt-rplan, .qt-rans { background: var(--white); border: 1px solid var(--gray-2); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; padding: 13px; align-self: stretch; }
  .qt-rplan { grid-column: 1; }
  .qt-rans { grid-column: 2; }
  .qt-rplan .qt-ctl { margin-bottom: 0; }
  .qt-ans-name { display: block; }
  .qt-rans .seg { max-width: 360px; }
  .qt-stepscreen .btn-row { max-width: 460px; }
}
.qt-select { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 52px; padding: var(--s3); font-size: 18px; text-align: left; border: 1.5px solid var(--gray-3); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); }
.qt-select span:first-child { min-width: 0; overflow-wrap: anywhere; }

/* "This walk" numbers */
.qt-bars { display: grid; gap: 10px; margin-top: 4px; }
.qt-bar { display: grid; grid-template-columns: 96px 1fr 44px; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.qt-bar i { display: block; height: 8px; border-radius: 4px; background: var(--gray-2); position: relative; overflow: hidden; }
.qt-bar i s { position: absolute; left: 0; top: 0; bottom: 0; background: var(--blue); border-radius: 4px; }
.qt-bar i s.o { background: var(--orange); }
.qt-bar em { font-style: normal; text-align: right; font-weight: 800; color: var(--ink); }
/* ---- Vendors (vendors.js) ----
   The Vendors view of the Purchasing tile. Reuses the Invoices look (.screen.iv-root, .iv-top, .iv-bar, .iv-sel + .iv-jobpanel for the category pickers, .iv-table, .iv-pill,
   .iv-small, .iv-ft, .iv-lnkbtn, .iv-empty) and the Delivery Log's side sheet (.dv-sheetwrap / .dv-sheet / .dv-sb). New classes are vn-. 820 px or less: summary rows
   (.vn-card), a read-only profile, 52 px / 18 px fields and 48 px taps. */
.vn-root { min-width: 0; }
.vn-boxed { padding: 0; }
.vn-bar { align-items: center; }
.vn-pickwrap { position: relative; flex: none; }
.vn-panel { min-width: 220px; }
.vn-barend { display: inline-flex; flex: none; gap: 8px; margin-left: auto; }
.vn-barend .btn { width: auto; min-height: 36px; padding: 0 14px; font-size: 14px; }
.vn-bar .btn.vn-clear { width: auto; min-height: 36px; padding: 0 12px; font-size: 14px; }
.vn-count { margin: 0 0 6px; }
.vn-emp { margin-top: 18px; }
.vn-foot { margin: 14px 2px 0; }
.vn-table td { vertical-align: top; }
.vn-table th .vn-sort { padding: 0; font: inherit; font-weight: 700; color: inherit; white-space: nowrap; background: none; border: 0; cursor: pointer; }
.vn-table th .vn-sort:hover { color: var(--blue); }
.vn-table th .vn-sort:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.vn-cn b { font-size: 14px; }
.vn-cd { white-space: nowrap; }
.vn-act { white-space: nowrap; text-align: right; }
.vn-act .btn { width: auto; min-height: 30px; margin-left: 4px; padding: 0 10px; font-size: 13px; }
.vn-gh td { padding: 0; background: #F4F6F9; border-bottom: 1px solid var(--line); }
.vn-ghb { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 34px; padding: 0 10px; font: inherit; font-size: 13px; text-align: left; background: none; border: 0; cursor: pointer; }
.vn-ghb:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.vn-caret { display: inline-block; width: 12px; color: var(--muted); }
.iv-pill.vn-out { background: var(--white); border-color: var(--red); color: var(--red); }
.vn-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.vn-chip { display: inline-block; padding: 1px 9px; font-size: 12px; font-weight: 600; color: var(--blue); background: var(--blue-tint); border: 1px solid #BAD2EE; border-radius: 99px; }
.vn-chip.vn-bad { color: var(--red); background: var(--red-tint); border-color: #E5B5B7; }
.vn-none { margin: 2px 0; }
.vn-hint { margin: 6px 0 0; }
.vn-binbar { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; }
.vn-binbar h2 { margin: 0; font-size: 20px; }
.vn-binbar .btn { width: auto; min-height: 36px; padding: 0 12px; font-size: 14px; }
/* the profile: plain lines, a hairline between sections */
.vn-ph { display: grid; gap: 8px; margin: 0 0 6px; }
.vn-pt { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.vn-name { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.2px; }
.vn-toggles { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 14px; }
.vn-tog { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.vn-tog input { flex: none; width: 18px; height: 18px; margin: 0; }
.vn-erp { font-size: 14px; }
.vn-erp input { width: 180px; height: 32px; box-sizing: border-box; padding: 0 10px; font-size: 14px; border: 1px solid var(--gray-3); border-radius: var(--radius-sm); }
.vn-sec { margin: 18px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.vn-sech { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 8px; }
.vn-sech h3 { margin: 0; font-size: 16px; }
.vn-cg { display: grid; grid-template-columns: 130px minmax(0, 1fr); align-items: baseline; gap: 8px; padding: 4px 0; font-size: 13px; }
.vn-cgl { color: var(--muted); font-weight: 600; }
.vn-comp { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.vn-dl b { font-size: 14px; }
.vn-hist td { padding-top: 0; border-bottom: 1px solid var(--line-soft); }
.vn-hist summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.vn-hist ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; }
.vn-file { font-size: 13px; font-weight: 600; color: var(--blue); overflow-wrap: anywhere; }
.vn-nofile { color: var(--muted); text-decoration: none; pointer-events: none; }
.vn-recycle { margin: 22px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.vn-recycle .btn { width: auto; min-height: 36px; padding: 0 14px; font-size: 14px; }
/* the side sheets */
.vn-sfoot { display: flex; gap: 10px; margin-top: 4px; }
.vn-sfoot .btn { flex: 1; }
.vn-err { margin: 0; padding: 10px 12px; font-size: 15px; font-weight: 600; color: var(--red); background: var(--red-tint); border-radius: var(--radius-sm); }
.vn-pickchip.on { background: var(--blue); color: var(--white); border-color: var(--blue); }
.field .vn-exp[type="date"] { width: 170px; min-height: 44px; padding: 4px 8px; font-size: 16px; }
/* a phone: summary rows, a read-only profile, 52 px fields and 48 px taps */
.vn-pbar .field { margin-bottom: 12px; }
.vn-card { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 72px; margin: 0 0 10px; padding: 14px; font: inherit; color: var(--ink); text-align: left; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 14px; box-shadow: var(--shadow-card); cursor: pointer; }
.vn-cmain { flex: 1; min-width: 0; display: grid; gap: 6px; }
.vn-cmain b { font-size: 17px; overflow-wrap: anywhere; }
.vn-cline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; }
.vn-chev { flex: none; font-size: 26px; color: var(--faint); }
.vn-prow { padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 16px; }
.vn-prl { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.vn-tap { display: flex; align-items: center; min-height: 48px; font-size: 18px; font-weight: 600; color: var(--blue); text-decoration: underline; overflow-wrap: anywhere; }
.vn-phone .vn-file { display: inline-flex; align-items: center; min-height: 48px; font-size: 16px; }
@media (max-width: 820px) {
  .vn-root .iv-titlerow .btn, .vn-binbar .btn { min-height: 48px; font-size: 16px; }
  .vn-name { font-size: 22px; }
  .vn-cg { grid-template-columns: 1fr; gap: 2px; }
}

/* ---- Purchasing phase 2 (purchasing.js, purchasing-requests.js): requests, quotes, bid leveling, the draft PO editor ---- */
.pu-seg { margin: 0 0 12px; max-width: 420px; }
.pu-seg .seg-btn { min-height: 40px; font-size: 15px; }
.pu-m .pu-seg .seg-btn { min-height: 48px; }
.pu-seg .seg-btn.pu-seg-on { background: var(--blue); border-color: var(--blue); color: var(--white); }
.pu-seg .seg-btn[disabled] { opacity: .55; }
.pu-rqchips { margin: 0 0 10px; }
.pu-rqchips .chip small { margin-left: 4px; font-weight: 400; opacity: .8; }
.pu-wide .btn.pu-rqnew { width: auto; min-height: 36px; height: 36px; padding: 0 14px; font-size: 14px; margin-left: auto; }
.pu-m .btn.pu-rqnew { width: 100%; margin: 0 0 10px; }
.pu-ncodes { color: #B5551F; font-weight: 600; }
.pu-ncodes-chip { background: var(--orange-tint); border-color: #F3C3A6; color: #B5551F; }
.pu-rq-open, .pu-rq-quoting { background: var(--gold-tint); border-color: #E8C55A; color: #8A6500; }
.pu-rq-awarded { background: var(--green-tint); border-color: #B7D9A5; color: var(--green-dark); }
.pu-rq-cancelled { background: var(--white); color: var(--muted); text-decoration: line-through; }
.pu-ins-compliant { background: var(--green-tint); border-color: #B7D9A5; color: var(--green-dark); }
.pu-ins-with_legal, .pu-ins-new { background: var(--gold-tint); border-color: #E8C55A; color: #8A6500; }
.pu-ins-lapsed, .pu-ins-suspended { background: var(--red-tint); border-color: #E5B5B7; color: var(--red); }
.pu-rqstate { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0 0; font-size: 14px; }
.pu-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 4px; }
.pu-wide .pu-actions .btn { width: auto; }
.pu-m .pu-actions .btn { flex: 1 1 140px; min-height: 48px; }
.pu-ask { font-size: 14px; font-weight: 600; }
.pu-fromreq { font-size: 14px; }
.pu-nocodes, .pu-needcodes, .pu-qwarn { margin: 10px 0 0; }
.pu-rq .pu-plain .pu-muted { font-size: 13px; }
.pu-qrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.pu-qrow .btn { width: auto; min-height: 32px; }
.pu-qtot { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.pu-qtax { font-size: 12px; }
.pu-lines tr.pu-total-sub td { color: var(--faint); font-size: 12px; background: #FAFBFC; }
.pu-pill.pu-similar { background: #FFF4CC; border-color: #E8C55A; color: #7A5B00; }
.pu-sim { margin-top: 4px; font-size: 12px; text-align: left; }
.pu-simnote { font-style: italic; }
.pu-na { color: var(--faint); font-style: normal; font-size: 12px; }
.pu-qinc { flex-basis: 100%; }
/* bid leveling: rows = lines, columns = vendors */
.pu-lvwrap { overflow-x: auto; }
.pu-level { min-width: 0; }
.pu-level th.pu-lvh { vertical-align: bottom; white-space: normal; min-width: 150px; }
.pu-level th.pu-lvh b, .pu-level th.pu-lvh span { display: block; }
.pu-level th.pu-lvh .pu-pill { margin-top: 3px; }
.pu-level td.pu-ld { min-width: 220px; }
.pu-level td.pu-ld .dv-sub { display: block; }
.pu-lv { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; font-variant-numeric: tabular-nums; }
.pu-lv.low { background: var(--green-tint); }
.pu-lv.on { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.pu-lv input { margin: 0; width: 18px; height: 18px; }
.pu-low { font-style: normal; font-size: 11px; font-weight: 700; color: var(--green-dark); text-transform: uppercase; letter-spacing: .04em; }
.pu-lvnote { margin-top: 6px; }
.pu-lvnote label { display: block; font-size: 12px; font-weight: 600; color: #B5551F; margin-bottom: 3px; }
.pu-lvnote input { width: 100%; min-height: 36px; padding: 0 8px; font-size: 14px; border: 1px solid var(--gray-3); border-radius: var(--radius-sm); }
.pu-lvcard { display: grid; gap: 6px; padding: 12px 14px; margin: 0 0 10px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.pu-lvopt { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; border-top: 1px solid var(--line-soft); }
.pu-lvopt .pu-lv { min-height: 44px; }
.pu-awardbar { gap: 12px; }
.pu-plan { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.pu-plan b { display: block; }
.pu-plan ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }
/* the request / quote sheets and the PO editor: one block per line */
.dv-drawer.pu-rqdrawer .dv-sheet { width: min(760px, 100vw); }
.pu-rqerr { margin: 0; padding: 10px 12px; font-size: 15px; font-weight: 600; color: var(--red); background: var(--red-tint); border-radius: var(--radius-sm); }
.pu-sfoot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.pu-sfoot .btn { flex: 1 1 140px; }
.pu-ln { padding: 10px 12px; margin: 0 0 10px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.pu-lnhead { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.pu-lnhead b { flex: 1; font-size: 14px; }
.pu-lnhead .btn { width: auto; min-height: 32px; }
.pu-lntot { font-weight: 700; font-variant-numeric: tabular-nums; }
.pu-lngrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 10px; }
.pu-lf { display: grid; gap: 3px; min-width: 0; font-size: 12px; color: var(--muted); }
.pu-lf > span { font-weight: 600; }
.pu-lf input, .pu-lf select { width: 100%; min-height: 40px; padding: 0 8px; font-size: 15px; color: var(--ink); border: 1px solid var(--gray-3); border-radius: var(--radius-sm); background: var(--white); }
.pu-lf.label, .pu-lf.cc { grid-column: 1 / -1; }
.pu-lf.cc select { margin-top: 4px; }
.pu-m .pu-lf input, .pu-m .pu-lf select, .pu-rqsheet-m .pu-lf input, .pu-rqsheet-m .pu-lf select { min-height: 48px; font-size: 16px; }
.btn.pu-addline { width: auto; }
.pu-pehead { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 14px; margin-top: 12px; }

/* ---- Change Orders (changeorders.js; .screen.co-root) ---- */
.co-actions { margin-bottom: 12px; }
.co-filters { flex-wrap: wrap; }
.co-filters .seg-btn.on, .co-types .seg-btn.on { background: var(--blue); border-color: var(--blue); color: var(--white); }
.co-list { display: flex; flex-direction: column; gap: 8px; }
.co-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; width: 100%; text-align: left; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font: inherit; color: var(--ink); }
.co-row:active { filter: brightness(0.97); }
.co-num { font-weight: 700; grid-column: 1; }
.co-num2 { margin-left: 8px; font-weight: 400; color: var(--gray-5); font-size: 13px; }
.co-title { grid-column: 1 / -1; grid-row: 2; }
.co-meta { display: block; font-size: 13px; }
.co-pill { grid-column: 2; grid-row: 1; justify-self: end; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--gray-2, #e6e8eb); color: var(--ink); }
.co-st-pco { background: var(--gold-tint); color: #7A5C00; }
.co-st-co, .co-st-submitted { background: #DCE9F9; color: var(--blue); }
.co-st-approved { background: #D9F0DF; color: var(--green); }
.co-st-rejected { background: #F8DADA; color: var(--red); }
.co-amt { grid-column: 2; grid-row: 2; justify-self: end; font-weight: 700; }
.co-foot { display: flex; justify-content: flex-end; gap: 24px; margin: 14px 0; font-size: 16px; }
.co-foot div { display: flex; gap: 10px; align-items: baseline; }
.co-foot span { color: var(--gray-5); }
.co-line { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; padding: 10px 0; border-bottom: 1px solid var(--line); position: relative; }
.co-line .co-l-descr { grid-column: 1 / -1; }
.co-calc { min-height: 52px; display: flex; align-items: center; font-weight: 700; }
.co-l-del { position: absolute; top: 6px; right: 0; }
.co-tick { display: flex; align-items: center; gap: 8px; min-height: 52px; }
.co-doc { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 0; }
.co-doc-open { background: none; border: 0; padding: 0; color: var(--blue); text-decoration: underline; font: inherit; cursor: pointer; text-align: left; }
.co-person { display: flex; align-items: center; gap: 10px; }
.co-person-name { font-weight: 700; }
.co-cxrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.co-cxtools { display: flex; gap: 4px; }
.co-cxed { display: flex; flex-direction: column; gap: 10px; }
.co-cxf { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.co-act { padding: 10px 0; border-bottom: 1px solid var(--line); }
.co-act-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 13px; }
.co-act-body { margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.co-act-sys .co-act-line { margin-top: 2px; font-size: 13px; color: var(--gray-5); }
.co-act-rm { background: none; border: 0; padding: 4px 0; min-height: 32px; color: var(--blue); text-decoration: underline; font: inherit; font-size: 13px; cursor: pointer; }

/* Log pages (docs/log-pages-look.md) — the RFI log and the Submittals log, and any later log tool.
   A page of words: no pills, badges or boxed cards; colour only for a problem (.logp-late) and the one
   main action (.btn-primary). Built from the Submittals log's .specs-g-* look; nothing here is below 14 px.
   Owned by the RFI round; the Submittals page uses it and asks for what is missing.
   Page:     .screen.logp-screen > .logp-head (+ .logp-filters + .logp-tablewrap > table.logp-table) or .logp-detail
   Head:     .logp-back · h1.logp-title · .logp-job · .logp-grow · .logp-saved · buttons (btn btn-sm) · .logp-menuwrap
   Filters:  .logp-q · .logp-sel · .logp-chk · .logp-count
   Table:    .logp-table (one line per cell) · .logp-wrap2 (title cell, two lines at most) · .logp-num · .logp-right
             .logp-stick (first two columns stay put when the table scrolls sideways; set --logp-c1 on the table
             to the first column's width) · .logp-sort / .logp-arrow (sortable header) · .logp-late · .logp-empty
   Detail:   .logp-dhead > h1.logp-dtitle (> .logp-kicker + .logp-subject) · .logp-dfacts · .logp-actions
             .logp-detail > .logp-main + .logp-facts > .logp-fact (> .logp-fact-l + .logp-fact-v); PZ.LogFiles.sideBar makes it
             .logp-detail.logp-lbar > .logp-facts + .logp-grip + .logp-main (facts on the left, width set by dragging the grip)
             Spec section: .logp-spec-list (.tm-pick-list) > .logp-spec-row (> .logp-spec-n + .logp-spec-t) · .logp-spec-what / -why
             .logp-section (heading + thin rule, no box) · .logp-reply · .logp-link · .logp-msg · .logp-steps
   Files:    .logp-files (dragover: .logp-files.drag) > .logp-file (> .logp-file-name + .logp-file-meta) · .logp-files-add
   Other:    .logp-settings (the shared column editor at normal type) · .logp-confirm (inside .cp-sheet) */
.logp-screen [hidden] { display: none !important; }
.screen.logp-screen { max-width: none; width: 100%; box-sizing: border-box; padding: var(--s4) var(--s6) var(--s8); }
.logp-screen h1, .logp-screen h2 { letter-spacing: 0; }
.logp-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-bottom: var(--s3); }
.logp-head .btn, .logp-actions .btn, .logp-filters .btn, .logp-section .btn, .logp-files .btn { width: auto; flex: none; }
.logp-back { margin: 0; }
.logp-title { margin: 0; font-size: 20px; font-weight: 700; }
.logp-job { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.logp-grow { flex: 1 1 auto; }
.logp-saved { font-size: 14px; color: var(--muted); }
.logp-saved.bad { color: var(--red); font-weight: 700; }
/* Export: one button, two plain choices under it */
.logp-menuwrap { position: relative; }
.logp-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 200px; padding: var(--s1) 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 12px 32px -10px rgba(20, 30, 50, .45); }
.logp-menu[hidden] { display: none; }
.logp-menu.logp-menu-left { left: 0; right: auto; }
.logp-menu-i { display: block; width: 100%; min-height: 40px; padding: 8px 14px; background: none; border: 0; text-align: left; font-family: var(--font); font-size: 15px; color: var(--ink); cursor: pointer; }
.logp-menu-i:hover, .logp-menu-i:focus-visible { background: var(--gray-1); outline: none; }
/* one note line under both choices, set apart from the last one by a thin rule */
.logp-menu-note { margin: var(--s1) 0 0; padding: 8px 14px 6px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--muted); }

.logp-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-bottom: var(--s3); }
/* the search box never changes width as you type: a fixed basis that does not grow (the count beside it does) */
.logp-q { flex: 0 1 560px; width: 560px; min-width: 0; box-sizing: border-box; min-height: 40px; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); font-family: var(--font); font-size: 15px; color: var(--ink); }
.logp-sel { display: flex; align-items: center; gap: var(--s2); font-size: 14px; color: var(--muted); }
.logp-sel select { min-height: 40px; padding: 4px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: var(--font); font-size: 15px; background: var(--white); color: var(--ink); }
.logp-chk { display: flex; align-items: center; gap: var(--s2); font-size: 15px; color: var(--gray-7); white-space: nowrap; cursor: pointer; }
.logp-chk input { width: 16px; height: 16px; margin: 0; }
.logp-count { margin-left: auto; font-size: 14px; color: var(--muted); white-space: nowrap; }
.logp-empty { margin: var(--s4) 0; font-size: 15px; color: var(--gray-7); }

.logp-tablewrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
/* a table wider than its frame says so: the sideways scrollbar is always drawn (a styled bar is never the overlay kind that
   hides), and while more of the table lies to the right the frame's right edge fades (.more, set by PZ.LogFiles.fade) */
.logp-tableframe { position: relative; }
.logp-tablewrap::-webkit-scrollbar { height: 12px; }
.logp-tablewrap::-webkit-scrollbar-track { background: var(--gray-1); border-top: 1px solid var(--line-soft); }
.logp-tablewrap::-webkit-scrollbar-thumb { background: var(--gray-3); border: 2px solid var(--gray-1); border-radius: 6px; }
.logp-tablewrap::-webkit-scrollbar-thumb:hover { background: var(--gray-5); }
@supports not selector(::-webkit-scrollbar) { .logp-tablewrap { scrollbar-width: auto; scrollbar-color: var(--gray-3) var(--gray-1); } }
.logp-tableframe::after { content: ""; position: absolute; top: 1px; right: 1px; bottom: 13px; width: 56px; pointer-events: none; opacity: 0;
  border-radius: 0 var(--radius-lg) 0 0; background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--white) 85%); transition: opacity .15s; }
.logp-tableframe.more::after { opacity: 1; }
.logp-table { --logp-c1: 110px; width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.logp-table th, .logp-table td { text-align: left; padding: 9px 12px; border-top: 1px solid var(--line-soft); vertical-align: middle; white-space: nowrap; background: var(--white); }
.logp-table thead th { border-top: 0; background: var(--gray-1); font-size: 14px; font-weight: 700; color: var(--gray-7); }
.logp-table tbody tr { cursor: pointer; }
.logp-table tbody tr:hover td { background: var(--gray-1); }
.logp-table tbody tr:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.logp-table td.logp-wrap2 { white-space: normal; min-width: 240px; max-width: 420px; }
.logp-wrap2 > .logp-clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.logp-num { font-weight: 700; }
.logp-right { text-align: right !important; }
.logp-table .logp-stick { position: sticky; left: 0; z-index: 1; }
.logp-table .logp-stick:first-child { width: var(--logp-c1); min-width: var(--logp-c1); max-width: var(--logp-c1); box-sizing: border-box; }
.logp-table .logp-stick + .logp-stick { left: var(--logp-c1); box-shadow: inset -1px 0 0 var(--line); }
.logp-sort { display: inline-flex; align-items: center; gap: var(--s1); padding: 0; background: none; border: 0; font: inherit; color: inherit; cursor: pointer; }
.logp-sort.on { color: var(--blue-dark); }
.logp-arrow { font-size: 14px; }
.logp-late { color: var(--red); font-weight: 700; }

/* the detail page: title block, then two columns (the facts at the left, 360 px unless the person drags it; then read and write) */
.logp-dhead { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s2) var(--s4); margin: var(--s2) 0 var(--s4); }
/* on a computer the title and its buttons stay in view while the page scrolls (Save is up here); 80 px = the app header */
@media (min-width: 900px) {
  .logp-dhead { position: sticky; top: 80px; z-index: 20; margin-top: 0; padding: var(--s2) 0 var(--s3); background: var(--gray-1); border-bottom: 1px solid var(--line); }
  /* both columns are plain content that scrolls with the page: the facts column never scrolls on its own and has no height cap.
     A field reached with Tab or a jump lands below the sticky title row, never under it. 280 px is an approximation (80 px app
     header + a title row of one title line and its facts line); a title that wraps to two lines needs more. */
  html:has(.logp-screen .logp-dhead) { scroll-padding-top: 280px; }
}
.logp-dhead-text { flex: 1 1 420px; min-width: 0; }
.logp-dtitle { margin: 0; font-size: 24px; font-weight: 700; overflow-wrap: anywhere; }
.logp-kicker { display: block; margin-bottom: 2px; font-size: 16px; font-weight: 600; color: var(--gray-7); }
.logp-subject { display: block; }
.logp-dfacts { margin: var(--s1) 0 0; font-size: 15px; color: var(--muted); }
.logp-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--s2) var(--s3); }
.logp-detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s6) var(--s8); align-items: start; }
.logp-main { min-width: 0; }
.logp-facts { min-width: 0; padding-left: var(--s6); border-left: 1px solid var(--line); }
/* the facts on the LEFT, their width set by the person (PZ.LogFiles.sideBar, log-files.js; docs/log-pages-look.md section 3):
   .logp-detail.logp-lbar > .logp-facts + .logp-grip + .logp-main. --logp-facts-w is the width the person set (280 to 560 px); the
   track is clamped here too, so the main column never drops under 480 px whatever the window. The grip is the thin rule on the
   facts' right edge: 16 px to grab, the rule darkens on hover, on focus and while dragging (.on). */
.logp-detail.logp-lbar { grid-template-columns: min(var(--logp-facts-w, 360px), max(280px, 100% - 496px)) 16px minmax(0, 1fr); column-gap: 0; }
.logp-lbar > .logp-facts { padding-left: 0; padding-right: var(--s5); border-left: 0; container: logp-facts / inline-size; }
.logp-lbar > .logp-main { padding-left: var(--s6); }
.logp-grip { position: relative; align-self: stretch; min-height: 100%; cursor: col-resize; touch-action: none; outline: none; }
.logp-grip::before { content: ""; position: absolute; top: 0; bottom: 0; left: 7px; width: 1px; background: var(--line); transition: background .12s, width .12s, left .12s; }
.logp-grip::after { content: ""; position: absolute; top: var(--s2); left: 5px; width: 5px; height: 40px; border-radius: 2px; background: var(--gray-3); }
.logp-grip:hover::before, .logp-grip.on::before, .logp-grip:focus-visible::before { left: 6px; width: 3px; background: var(--gray-5); }
.logp-grip:hover::after, .logp-grip.on::after { background: var(--gray-5); }
.logp-grip:focus-visible::after { background: var(--blue); }
.logp-grip.on::before { background: var(--blue); }
body.logp-resizing, body.logp-resizing * { cursor: col-resize !important; user-select: none !important; -webkit-user-select: none !important; }
/* Spec section (PZ.LogFiles.specField): the job's sections drop down under the box in the app's pick-list look (.tm-pick-list),
   one line each, number then title; the last line "Type another section"; the title of the section picked under the box */
.logp-detail .logp-spec-list { max-height: 300px; }
.logp-spec-list[hidden] { display: none; }
.logp-spec-row { align-items: baseline; gap: var(--s3); min-height: 40px; font-size: 15px; }
.logp-spec-row[aria-selected="true"] { background: var(--blue-tint); }
/* a number like "03 30 00" stays on one line; a long one ("Special Provision 000-001") may wrap, never past half the row */
.logp-spec-n { flex: 0 1 auto; min-width: 5.5em; max-width: 50%; font-weight: 700; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.logp-spec-t { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.logp-spec-other { border-top: 1px solid var(--line-soft); color: var(--blue); }
.logp-spec-what, .logp-spec-why { margin: 4px 0 0; }
.logp-spec-what[hidden] { display: none; }
.logp-spec-sub { display: block; font-size: 14px; color: var(--muted); font-weight: 400; }
.logp-fact { margin: 0 0 var(--s3); min-width: 0; }
.logp-fact-l { display: block; margin-bottom: 2px; font-size: 14px; font-weight: 700; color: var(--gray-7); }
.logp-fact-v { font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
.logp-fact-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s3); }
.logp-fact-two.logp-wide1 { grid-template-columns: 3fr 2fr; }
/* a narrow facts column (.logp-lbar, under 330 px of room): two facts side by side (the dates) go one under the other, never cut off */
@container logp-facts (max-width: 329px) { .logp-fact-two, .logp-fact-two.logp-wide1 { grid-template-columns: minmax(0, 1fr); } }
.logp-facts .logp-chk { white-space: normal; align-items: flex-start; }
.logp-facts .logp-chk input { margin-top: 3px; flex: none; }
.logp-detail input[type="text"], .logp-detail input[type="number"], .logp-detail input[type="date"], .logp-detail input[type="search"], .logp-detail select, .logp-detail textarea {
  width: 100%; min-width: 0; box-sizing: border-box; min-height: 40px; padding: 6px 10px; border: 1px solid var(--gray-3); border-radius: var(--radius-sm);
  background: var(--white); font-family: var(--font); font-size: 15px; color: var(--ink); }
.logp-detail textarea { min-height: 120px; line-height: 1.45; resize: vertical; }
.logp-detail input:disabled, .logp-detail select:disabled, .logp-detail textarea:disabled { background: var(--gray-1); color: var(--gray-7); }
.logp-subject-in { font-size: 17px !important; font-weight: 600; }
.logp-section { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--line); }
.logp-section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.logp-section > h2 { margin: 0 0 var(--s3); font-size: 17px; font-weight: 700; }
.logp-text { margin: 0; font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.logp-by { margin: 0 0 var(--s2); font-size: 14px; color: var(--muted); }
.logp-by b { color: var(--ink); }
.logp-reply { padding: var(--s3) 0; border-top: 1px solid var(--line-soft); }
.logp-reply:first-of-type { border-top: 0; padding-top: 0; }
.logp-reply-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1) var(--s3); margin-bottom: var(--s1); font-size: 14px; color: var(--muted); }
.logp-reply-head b { color: var(--ink); }
.logp-link { background: none; border: 0; padding: 2px 0; font: inherit; font-size: 14px; color: var(--blue); cursor: pointer; text-align: left; }
.logp-link:hover { text-decoration: underline; }
.logp-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); margin-top: var(--s2); }
.logp-radio { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--gray-7); cursor: pointer; }
.logp-msg { font-size: 15px; color: var(--red); font-weight: 600; }
.logp-msg:empty { display: none; }
.logp-msg.quiet { color: var(--muted); font-weight: 400; }
.logp-steps { width: 100%; border-collapse: collapse; font-size: 15px; }
.logp-steps th, .logp-steps td { text-align: left; padding: 8px 20px 8px 0; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.logp-steps th:last-child, .logp-steps td:last-child { padding-right: 0; }
.logp-steps .logp-right { padding-right: 28px; }   /* a right-aligned number column keeps clear of the column after it */
.logp-steps th { font-size: 14px; font-weight: 700; color: var(--gray-7); white-space: nowrap; }
/* a step being edited: its row and the edit line straight under it, in the table, read as one band (white, a blue rule at the left) */
.logp-steps th:first-child, .logp-steps td:first-child { padding-left: 12px; }
.logp-detail .logp-steps tr.logp-step-open > td, .logp-detail .logp-steps tr.logp-stepedit > td { background: var(--white); }
.logp-detail .logp-steps tr.logp-step-open > td { border-bottom-color: transparent; }
.logp-detail .logp-steps tr.logp-step-open > td:first-child, .logp-detail .logp-steps tr.logp-stepedit > td:first-child { box-shadow: inset 3px 0 0 var(--blue); }
.logp-detail .logp-steps tr.logp-stepedit > td { padding: 0 12px var(--s3); }
/* pickers inside the facts column */
.logp-picked { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--s2); padding: 2px 0; font-size: 15px; }
.logp-picked + .logp-picked { margin-top: 2px; }

/* Files (dra-app/log-files.js): one line per file; "Add a file" is a normal button and the area takes dropped files */
.logp-files { padding: var(--s1) 0; border-radius: var(--radius-sm); }
.logp-files.drag { outline: 2px dashed var(--blue); outline-offset: 4px; background: var(--blue-tint); }
.logp-file { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--s3); padding: 6px 0; border-top: 1px solid var(--line-soft); font-size: 15px; }
.logp-file:first-child { border-top: 0; }
.logp-file-name { min-width: 0; padding: 0; background: none; border: 0; font: inherit; color: var(--blue); text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.logp-file-name:hover { text-decoration: underline; }
.logp-file-meta { font-size: 14px; color: var(--muted); white-space: nowrap; }
.logp-file .logp-link { margin-left: auto; }
.logp-files-add { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-top: var(--s2); }
.logp-files-hint { font-size: 14px; color: var(--muted); }
.logp-files-none { margin: 0; font-size: 15px; color: var(--muted); }
/* a file line with a tick (RFIs, Release the answer: which answer files go to the sub): a long name wraps */
.logp-file > .logp-chk { min-width: 0; white-space: normal; overflow-wrap: anywhere; }

/* Settings: the shared column editor (job-settings.js) at normal type, no box around it */
.logp-settings { max-width: 760px; }
.logp-settings .la-cxrow { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 44px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.logp-settings .js-name, .logp-settings .js-name .sub { font-size: 15px; margin: 0; }
.logp-settings .la-cxtools { display: flex; align-items: center; gap: var(--s3); }
.logp-settings .la-mv { font-size: 14px; cursor: pointer; padding: 4px; }
/* inside .logp-settings only (Change Orders and the look-ahead keep the editor's own look): Edit is a quiet .logp-link,
   Add a column a normal button, the editor's labels as the other logp labels, its Save the primary button */
.logp-settings .la-cxbtn { padding: 2px 0; font-family: var(--font); font-size: 14px; color: var(--blue); text-decoration: none; }
.logp-settings .la-cxbtn:hover { text-decoration: underline; }
.logp-settings .la-item { display: inline-flex; align-items: center; width: auto; min-height: 40px; margin-top: var(--s3); padding: var(--s2) var(--s3);
  background: var(--gray-1); color: var(--gray-7); border: 1px solid var(--gray-3); border-radius: var(--radius); font-family: var(--font); font-size: 15px; font-weight: 600; }
.logp-settings .la-cxed { gap: var(--s3); padding: var(--s3) 0; min-width: 0; }
.logp-settings .la-cxed .la-cxf { gap: 2px; font-size: 14px; font-weight: 700; color: var(--gray-7); }
.logp-settings .la-cxed input, .logp-settings .la-cxed select, .logp-settings .la-cxed textarea { min-height: 40px; padding: 6px 10px; font-size: 15px; font-weight: 400; color: var(--ink); border-radius: var(--radius-sm); }
.logp-settings .la-cxbtns { gap: var(--s3); margin-top: var(--s1); }
.logp-settings .la-cxbtns .btn-xs { min-height: 40px; padding: var(--s2) var(--s3); font-size: 15px; font-weight: 600; }
.logp-settings .la-cxbtns [data-cxsave] { background: var(--blue); color: var(--white); }

/* the confirm sheet (PZ.LogFiles.confirm): a question, one line of what follows, two buttons */
.logp-confirm h2 { margin: 0 0 var(--s2); font-size: 19px; }
.logp-confirm p { margin: 0 0 var(--s4); font-size: 15px; color: var(--gray-7); }
/* lines (optional): what is about to go out, word for word above the question's one sentence (RFIs, Release the answer) */
.logp-confirm p.logp-confirm-line { margin-bottom: var(--s3); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.logp-confirm .logp-confirm-btns { display: flex; justify-content: flex-end; gap: var(--s3); }
.logp-confirm .btn { width: auto; }

/* the summary line above the table (log-files.js sumLine): "7 open · 6 closed · 2 late", then "Ball in court: Aaron Graham 3 · You 1",
   each a quiet button that filters, and Show all while a filter is on. Words and numbers, no blocks of colour; late is the red word. */
.logp-sum { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s5); margin: 0 0 var(--s3); font-size: 15px; color: var(--gray-7); }
.logp-sum-g { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--s1) 6px; }
.logp-sum-l { margin-right: 2px; color: var(--muted); }
.logp-sum-dot { color: var(--faint); }
.logp-sum-b { min-height: 32px; padding: 3px 10px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: var(--font); font-size: 15px; color: var(--ink); cursor: pointer; }
.logp-sum-b:hover { background: var(--gray-1); border-color: var(--gray-3); }
.logp-sum-b:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.logp-sum-b[aria-pressed="true"] { border-color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); font-weight: 700; }
.logp-sum-b.logp-sum-late { color: var(--red); font-weight: 700; }

@media (max-width: 899px) {
  .screen.logp-screen { padding-left: var(--s4); padding-right: var(--s4); }
  .logp-detail, .logp-detail.logp-lbar { grid-template-columns: minmax(0, 1fr); }
  .logp-facts { padding-left: 0; border-left: 0; }
  /* one column: the facts first (they come first in the page), no grip; a rule between them and the main column */
  .logp-grip { display: none; }
  .logp-lbar > .logp-facts { padding: 0 0 var(--s4); border-bottom: 1px solid var(--line); }
  .logp-lbar > .logp-main { padding-left: 0; }
  .logp-actions { justify-content: flex-start; }
  /* narrow, with a change not saved: the buttons ride along at the bottom, so Save is in reach of the field just changed */
  .logp-actions.dirty { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom, 0px)); background: var(--white); border-top: 1px solid var(--line); }
  .logp-screen:has(.logp-actions.dirty) { padding-bottom: 96px; }
  /* narrow: only the number stays put, so the subject never covers the columns it should scroll past */
  .logp-table .logp-stick + .logp-stick { position: static; box-shadow: none; }
  .logp-table td.logp-wrap2 { min-width: 200px; max-width: 260px; }
}

/* Log pages on a phone, Hard hat look (docs/log-pages-look.md section 8)
   The RFI log and the Submittal log below 700 px: drawn by rfis.js / specs-register.js with PZ.LogFiles.phone (log-files.js).
   Source: docs/log-pages-options/logs-phone-character.css, look C, chosen by the owner 2026-11-24.
   The brand-blue block carries on from the app header (back, title, open / closed / late and Ball in court, or where one item
   stands); gold is the one main action, ink on gold; white blocks on a soft blue page; 52 px fields with 18 px text, every
   control 48 px or more. Red only for late (on blue it is a light pink, 5.2:1). No pills, badges or status circles.
   Everything here is inside the one width query, so the computer pages cannot change by accident.
   Top:    .logm-top > .logm-titlerow (.logm-back, h1.logm-title) · .logm-counts > .logm-cnt (.logm-late-n) · .logm-bic-h ·
           .logm-bic > .logm-bi (.logm-bi-you) · .logm-ball1 / .logm-ball2 (an item's page); [aria-pressed=true] = chosen
   List:   .logm-btn (.logm-main gold, .logm-quiet, .logm-small) · .logm-new · .logm-search · .logm-filterbar · .logm-rows > .logm-row
           (.logm-a, .logm-s, .logm-c, .logm-you) · .logm-grp (.logm-bad) · .logm-fold
   Page:   .logm-page · .logm-dtop · .logm-dtitle · .logm-block (.logm-resp: the official response) · .logm-h · .logm-by ·
           .logm-words · .logm-kv · .logm-steps · .logm-foot (fixed at the bottom; .dirty) · .logm-tools
   Form:   .logm-form > .logm-f (label above) · .logm-inp / .logm-pickbtn · .logm-photos · .logm-more · .logm-chk · .logm-hint
   Sheet:  .cp-modal.logm-sheetwrap > .cp-sheet.logm-sheet (.logm-sheet-q, .logm-sheet-g, .logm-pickrow) */
@media (max-width: 699px) {
  .logp-screen, .logm-sheetwrap {
    --logm-page: #EDF2F9; --logm-line: #D9E1EC; --logm-field: #C3CFDD; --logm-rule: #E4E8EE;
    --logm-on-blue: #FFFFFF; --logm-on-blue-2: #DCE8F7; --logm-on-blue-line: rgba(255, 255, 255, .26); --logm-on-blue-on: #00458F;
    --logm-late-on-blue: #FFD6D9;   /* 5.19:1 on #0057B8, 7.06:1 on the chosen #00458F */
    --logm-you-on-blue: #FFD54D;    /* the brand gold lightened to pass on blue: 4.87:1 (#FFC000 is 4.19:1) */
    --logm-gold-lip: #C99700; --logm-gold-line: #F0D684;
  }
  body:has(.screen.logp-screen) { background: #EDF2F9; }
  .screen.logp-screen { padding-top: var(--s4); }
  .logp-screen:has(.logm-foot) { padding-bottom: 132px; }
  .logp-screen .ic, .logm-sheetwrap .ic { width: 24px; height: 24px; flex: none; }

  /* buttons: gold is the one main action */
  .logm-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 16px; border: 0;
    border-radius: var(--radius); font-family: var(--font); font-size: 18px; font-weight: 700; line-height: 1.2; text-align: center; color: var(--ink); cursor: pointer; }
  .logm-btn .ic { width: 22px; height: 22px; }
  .logm-main { background: var(--gold); color: var(--ink); box-shadow: 0 3px 0 var(--logm-gold-lip); }
  .logm-quiet { background: var(--white); border: 1.5px solid var(--logm-field); box-shadow: 0 2px 0 var(--logm-field); }
  .logm-small { width: auto; min-height: 48px; padding: 0 14px; font-size: 16px; }
  .logm-btn:disabled { opacity: .5; cursor: default; }
  .logm-btn:focus-visible, .logm-row:focus-visible, .logm-cnt:focus-visible, .logm-bi:focus-visible, .logm-back:focus-visible, .logm-more:focus-visible, .logm-fold:focus-visible, .logm-pickrow:focus-visible {
    outline: 3px solid var(--gold); outline-offset: 2px; }
  .logm-grow { flex: 1; min-width: 0; }

  /* the brand-blue block: the app header carries on into the top of the screen */
  .logm-top { margin: calc(-1 * var(--s4)) calc(-1 * var(--s4)) var(--s4); padding: 6px var(--s4) var(--s4); background: var(--blue); color: var(--logm-on-blue);
    box-shadow: 0 6px 12px -8px rgba(0, 40, 90, .5); }
  .logm-titlerow { display: flex; align-items: center; gap: var(--s3); min-height: 60px; }
  .logm-back { display: flex; align-items: center; justify-content: center; flex: none; width: 52px; height: 52px; padding: 0; background: transparent;
    border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 8px; color: var(--logm-on-blue); cursor: pointer; }
  .logm-title { flex: 1; min-width: 0; margin: 0; font-size: 22px; font-weight: 800; line-height: 1.2; color: var(--logm-on-blue); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .logm-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--s2); }
  .logm-cnt { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: 64px; padding: 6px 12px 6px 6px; background: none; border: 0;
    border-radius: 0; font-family: var(--font); color: var(--logm-on-blue); text-align: left; cursor: pointer; }
  .logm-cnt + .logm-cnt { border-left: 1px solid var(--logm-on-blue-line); padding-left: 14px; }
  .logm-cnt b { font-size: 34px; line-height: 40px; font-weight: 800; font-variant-numeric: tabular-nums; }
  .logm-cnt span { font-size: 16px; line-height: 20px; font-weight: 600; color: var(--logm-on-blue-2); }
  .logm-cnt.logm-late-n b, .logm-cnt.logm-late-n span { color: var(--logm-late-on-blue); }
  .logm-cnt.logm-late-n span { font-weight: 800; }
  .logm-bic-h, .logm-h, .logm-grp { display: block; width: max-content; max-width: 100%; margin: 0; padding-bottom: 5px; font-size: 14px; line-height: 18px; font-weight: 800;
    letter-spacing: .08em; text-transform: uppercase; background: linear-gradient(var(--gold), var(--gold)) left bottom / 28px 3px no-repeat; }
  .logm-bic-h { margin-top: 10px; color: var(--logm-on-blue-2); }
  .logm-bic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 6px -6px 0; }
  .logm-bi { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 6px; background: none; border: 0; border-top: 1px solid var(--logm-on-blue-line);
    border-radius: 0; font-family: var(--font); color: var(--logm-on-blue); text-align: left; cursor: pointer; }
  .logm-bic .logm-bi:nth-child(-n+2) { border-top: 0; }
  .logm-bi > b { flex: none; min-width: 18px; font-size: 24px; line-height: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
  .logm-bi > span { min-width: 0; font-size: 15px; line-height: 19px; font-weight: 600; overflow-wrap: anywhere; }
  .logm-bi > span b { font-weight: 600; }
  .logm-bi-you > b, .logm-bi-you > span, .logm-bi-you > span b { color: var(--logm-you-on-blue); font-weight: 800; }
  .logm-cnt[aria-pressed="true"], .logm-bi[aria-pressed="true"] { background: var(--logm-on-blue-on); box-shadow: inset 0 -4px 0 var(--gold); }
  .logm-bic-none { margin: 6px 0 0; font-size: 15px; color: var(--logm-on-blue-2); }
  .logm-ball1 { margin: 6px 0 0; font-size: 23px; line-height: 30px; font-weight: 800; color: var(--logm-on-blue); overflow-wrap: anywhere; }
  .logm-ball1 b { font-weight: 800; }
  .logm-ball2 { margin: 4px 0 0; font-size: 16px; line-height: 22px; color: var(--logm-on-blue-2); }
  .logm-top .logm-late { color: var(--logm-late-on-blue); }
  .logm-top .logm-you { color: var(--logm-you-on-blue); }

  /* the list */
  .logm-new { margin: 0; }
  .logm-search { position: relative; margin-top: 14px; }
  .logm-search .ic { position: absolute; left: 15px; top: 16px; color: var(--muted); pointer-events: none; }
  .logp-screen .logm-search input { width: 100%; min-height: 56px; padding: 0 16px 0 50px; border: 1.5px solid var(--logm-field); border-radius: var(--radius); background: var(--white);
    font-family: var(--font); font-size: 18px; color: var(--ink); box-sizing: border-box; }
  .logm-filterbar { display: flex; align-items: center; gap: var(--s3); margin: 14px 0 0; }
  .logm-what { flex: 1; min-width: 0; font-size: 17px; line-height: 23px; font-weight: 700; color: var(--blue-dark); }
  .logm-showall { width: auto; flex: none; min-height: 48px; padding: 0 14px; font-size: 16px; }
  .logm-rows { margin-top: 14px; overflow: hidden; background: var(--white); border: 1px solid var(--logm-line); border-radius: 12px; box-shadow: 0 1px 3px rgba(22, 24, 28, .08); }
  .logm-grp + .logm-rows { margin-top: 0; }
  .logm-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 64px; padding: 12px 10px 12px 14px; background: var(--white); border: 0;
    border-top: 1px solid var(--logm-rule); font-family: var(--font); color: var(--ink); text-align: left; cursor: pointer; }
  .logm-row:first-child { border-top: 0; }
  .logm-row > .ic { color: #9AA2AC; }
  .logm-a { display: block; font-size: 15px; line-height: 20px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .logm-a b { font-weight: 700; color: var(--ink); }
  .logm-s { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; margin-top: 2px; font-size: 17px; line-height: 23px; font-weight: 600; overflow-wrap: anywhere; }
  .logm-c { display: block; margin-top: 3px; font-size: 15px; line-height: 21px; color: var(--muted); }
  .logm-c b { font-weight: 700; color: var(--ink); }
  .logm-late { color: var(--red); font-weight: 700; }
  .logm-c .logm-you, .logm-words .logm-you { font-weight: 800; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 4px; }
  .logm-grp { margin: 20px 2px 10px; color: var(--ink); }
  .logm-grp.logm-bad { color: var(--red); background-image: linear-gradient(var(--red), var(--red)); }
  .logm-fold { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; margin-top: 12px; padding: 0 14px; background: var(--white);
    border: 1px solid var(--logm-field); border-radius: 12px; font-family: var(--font); font-size: 17px; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer; }
  .logm-fold .ic { color: var(--muted); }

  /* one item */
  .logm-saved { margin: 0 0 6px; }
  .logm-saved:empty { display: none; }
  .logm-dtop { margin: 0; font-size: 16px; line-height: 22px; color: var(--muted); }
  .logm-dtop b { font-weight: 700; color: var(--ink); }
  .logm-dtitle { margin: 2px 0 0; font-size: 24px; line-height: 30px; font-weight: 700; overflow-wrap: anywhere; }
  .logm-block, .logm-page .logp-section { margin-top: 14px; padding: 14px; background: var(--white); border: 1px solid var(--logm-line); border-radius: 12px; }
  .logm-block.logm-resp { background: var(--gold-tint); border-color: var(--logm-gold-line); }
  .logm-h { margin-bottom: 12px; color: var(--ink); }
  .logm-by { margin: 0; font-size: 15px; line-height: 20px; color: var(--muted); }
  .logm-by b { font-weight: 700; color: var(--ink); }
  .logm-words { margin: 6px 0 0; font-size: 17px; line-height: 25px; white-space: pre-wrap; overflow-wrap: anywhere; }
  .logm-none, .logm-hint { margin: 6px 0 0; font-size: 15px; line-height: 20px; color: var(--muted); }
  .logm-block > .logm-btn, .logm-block > .logm-fold, .logm-reply > .logm-btn { margin-top: 14px; }
  .logm-reply { padding: 12px 0 0; margin-top: 12px; border-top: 1px solid var(--logm-line); }
  .logm-kv { display: grid; grid-template-columns: 136px minmax(0, 1fr); margin: 0; }
  .logm-kv dt, .logm-kv dd { margin: 0; padding: 11px 0; border-top: 1px solid var(--logm-rule); font-size: 16px; line-height: 22px; }
  .logm-kv dt { padding-right: 12px; color: var(--muted); }
  .logm-kv dd { font-weight: 600; overflow-wrap: anywhere; }
  .logm-kv dt:first-of-type, .logm-kv dt:first-of-type + dd { border-top: 0; padding-top: 0; }
  .logm-steps { margin: 0; padding: 0; list-style: none; }
  .logm-steps li { padding: 10px 0; border-top: 1px solid var(--logm-rule); }
  .logm-steps li:first-child { padding-top: 0; border-top: 0; }
  .logm-step-who { display: block; font-size: 17px; line-height: 23px; font-weight: 600; }
  .logm-step-what { display: block; margin-top: 1px; font-size: 15px; line-height: 21px; color: var(--muted); }
  .logm-steps li.logm-now .logm-step-who { font-weight: 800; }
  .logm-tools { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-top: 14px; }
  .logm-tools > :only-child { grid-column: 1 / -1; }
  .logm-tools .logp-menu { top: auto; bottom: calc(100% + 4px); }   /* the Export choices open upward, above the button */
  .logm-tools .logp-menu-i { min-height: 48px; font-size: 17px; }
  /* fixed at the bottom while the page is open: Save draft / Send on a form; PDF, Email it and the step action on a page */
  .logm-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3);
    padding: var(--s3) var(--s4) calc(var(--s4) + env(safe-area-inset-bottom, 0px)); background: var(--white); border-top: 1px solid var(--logm-rule); box-shadow: 0 -2px 10px rgba(26, 26, 26, .06); }
  .logm-foot .logm-btn { flex: 1 1 auto; width: auto; min-width: 0; padding: 0 12px; font-size: 17px; white-space: nowrap; }
  .logm-foot .logp-msg { flex: 1 0 100%; margin: 0; }
  /* a form's two buttons, as the mock-up: the quiet one, then the main one a third wider */
  .logm-foot.logm-foot-form { display: grid; grid-template-columns: 1fr 1.35fr; }
  .logm-foot.logm-foot-form .logp-msg { grid-column: 1 / -1; }
  .logm-foot.dirty #rfiPdf, .logm-foot.dirty #rfiEmail { display: none; }

  /* the form: one column, label above a 52 px field with 18 px text */
  .logm-form .logm-f { margin-top: 16px; }
  .logm-form .logm-f:first-child { margin-top: 0; }
  .logm-f > label, .logm-f > .logm-lab { display: block; margin-bottom: 6px; font-size: 16px; line-height: 22px; font-weight: 700; color: var(--ink); }
  .logm-page input[type="text"], .logm-page input[type="number"], .logm-page input[type="date"], .logm-page select, .logm-page textarea, .logm-inp {
    display: block; width: 100%; min-width: 0; min-height: 52px; box-sizing: border-box; padding: 0 14px; background: var(--white); border: 1.5px solid var(--logm-field);
    border-radius: var(--radius); font-family: var(--font); font-size: 18px; line-height: 1.35; color: var(--ink); }
  .logm-page textarea { min-height: 100px; padding: 12px 14px; resize: vertical; }
  .logm-page input:focus, .logm-page select:focus, .logm-page textarea:focus, .logm-inp:focus-visible { outline: 3px solid var(--blue-tint); border-color: var(--blue); }
  .logm-pickbtn { display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; }
  .logm-pickbtn .ic { color: var(--muted); }
  .logm-ph { flex: 1; min-width: 0; color: var(--muted); }
  .logm-val { flex: 1; min-width: 0; overflow-wrap: anywhere; }
  .logm-photos { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
  .logm-photo { flex: 1 1 160px; width: auto; }
  .logm-thumb { position: relative; flex: none; width: 96px; height: 96px; overflow: hidden; border-radius: 8px; background: var(--gray-2); }
  .logm-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .logm-thumb-x { position: absolute; top: 0; right: 0; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0;
    background: rgba(22, 24, 28, .55); border: 0; border-radius: 0 0 0 8px; color: var(--white); cursor: pointer; }
  .logm-more { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; margin-top: 18px; padding: 10px 14px; background: var(--white);
    border: 1.5px solid var(--logm-field); border-radius: var(--radius); box-shadow: 0 2px 0 var(--logm-field); font-family: var(--font); color: var(--ink); text-align: left; cursor: pointer; }
  .logm-more b { display: block; font-size: 18px; font-weight: 700; }
  .logm-more small { display: block; margin-top: 2px; font-size: 15px; line-height: 20px; color: var(--muted); }
  .logm-more .ic { color: var(--muted); }
  .logm-chk { display: flex; align-items: flex-start; gap: 12px; min-height: 48px; margin-top: 16px; font-size: 16px; line-height: 22px; cursor: pointer; }
  .logm-chk input { flex: none; width: 24px; height: 24px; margin: 0; }

  /* the shared pieces inside a phone page: the reply box, the files, the confirm sheet, the submittal facts when editing */
  .logm-block > h2:not(.logm-h) { margin: 0 0 12px; color: var(--ink); }
  .logm-page .logp-text { font-size: 17px; line-height: 25px; }
  .logm-page .btn-ghost { background: var(--white); color: var(--ink); border: 1.5px solid var(--logm-field); box-shadow: 0 2px 0 var(--logm-field); }
  /* a picked person or company in the submittal forms: the field's frame, the name, then Choose / Change and Clear (they open the sheet) */
  .logm-page .specs-g-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s3); min-height: 52px; padding: 0 0 0 14px; background: var(--white);
    border: 1.5px solid var(--logm-field); border-radius: var(--radius); font-size: 18px; }
  .logm-page .specs-g-pick-name { flex: 1; min-width: 0; font-size: 18px; }
  .logm-page .specs-g-pick .logp-link { padding: 0 12px; }
  .logm-block > h2:not(.logm-h), .logm-page .logp-section > h2 { display: block; width: max-content; padding-bottom: 5px; font-size: 14px; line-height: 18px; font-weight: 800; letter-spacing: .08em;
    text-transform: uppercase; background: linear-gradient(var(--gold), var(--gold)) left bottom / 28px 3px no-repeat; }
  .logm-page .logp-fact-l { font-size: 16px; color: var(--ink); }
  .logm-page .btn { width: auto; min-height: 52px; font-size: 18px; }
  .logm-page .logp-row .btn { flex: 1 1 auto; }
  .logm-page .logp-radio, .logm-page .logp-chk { min-height: 48px; font-size: 16px; white-space: normal; }
  .logm-page .logp-radio input, .logm-page .logp-chk input { width: 22px; height: 22px; }
  /* the reply's "From": three full-width rows, the whole row is the target; the chosen one has the blue frame and a blue rule at the left */
  .logm-page .logp-choices { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  .logm-page .logp-choices .logp-radio { display: flex; width: 100%; min-height: 56px; gap: 12px; padding: 8px 14px; box-sizing: border-box; background: var(--white);
    border: 1.5px solid var(--logm-field); border-radius: var(--radius); font-size: 17px; line-height: 22px; color: var(--ink); }
  .logm-page .logp-choices .logp-radio input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--blue); }
  .logm-page .logp-choices .logp-radio:has(input:checked) { border-color: var(--blue); box-shadow: inset 5px 0 0 var(--blue); background: var(--blue-tint); font-weight: 700; }
  .logm-page .logp-choices .logp-radio:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
  .logm-page .logp-link { min-height: 48px; padding: 0 4px; font-size: 16px; }
  .logm-page .logp-files-list { overflow: hidden; background: var(--white); border: 1px solid var(--logm-line); border-radius: 12px; }
  .logm-page .logp-file { align-items: center; min-height: 52px; padding: 4px 12px; font-size: 16px; border-top-color: var(--logm-rule); }
  .logm-page .logp-file-name { min-height: 48px; font-size: 16px; font-weight: 600; }
  .logm-page .logp-files-hint { display: none; }
  .logm-page .specs-g-filekind > .logp-fact-l { margin: 14px 0 6px; font-size: 15px; color: var(--muted); }
  .logm-page .specs-g-filekind:first-of-type > .logp-fact-l { margin-top: 0; }
  .logm-page .logp-steps { display: block; overflow-x: auto; }
  .logp-confirmwrap .btn { min-height: 52px; font-size: 18px; }
}

/* the people / company sheet (the project inbox page opens it on a computer too, so these rules are not phone-only; same rules as the phone block had) */
.logm-sheetwrap { --logm-field: #C3CFDD; --logm-rule: #E4E8EE; }
.logm-sheet:focus { outline: none; }
.logm-sheet { display: flex; flex-direction: column; max-height: 86vh; padding: 14px 16px 16px; }
.logm-sheet-head { display: flex; align-items: center; gap: var(--s3); }
.logm-sheet-head h2 { flex: 1; min-width: 0; margin: 0; font-size: 20px; }
.logm-sheet-head .logm-btn { width: auto; min-height: 48px; padding: 0 16px; font-size: 16px; }
.logm-sheet-q { width: 100%; min-height: 52px; margin-top: var(--s3); padding: 0 14px; box-sizing: border-box; border: 1.5px solid var(--logm-field); border-radius: var(--radius);
  font-family: var(--font); font-size: 18px; color: var(--ink); background: var(--white); }
.logm-sheet-list { flex: 1; min-height: 0; overflow-y: auto; margin-top: var(--s2); }
.logm-sheet-g { margin: 14px 0 4px; font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.logm-pickrow { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 8px 4px; background: none; border: 0; border-bottom: 1px solid var(--logm-rule);
  font-family: var(--font); color: var(--ink); text-align: left; cursor: pointer; }
.logm-pick-n { display: block; font-size: 18px; line-height: 24px; font-weight: 600; }
.logm-pick-s { display: block; font-size: 15px; line-height: 20px; color: var(--muted); }
.logm-pick-none .logm-pick-n { color: var(--muted); }
.logm-pickrow[aria-pressed="true"] { background: var(--blue-tint); }
.logm-tick { display: flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; color: var(--blue); }
.logm-sheet-none { margin: 14px 0 4px; font-size: 17px; font-weight: 600; }
.logm-sheet-help { margin: 6px 0; font-size: 15px; color: var(--muted); }

@media (min-width: 900px) {
  .co-row { grid-template-columns: 150px 1fr 140px 140px; align-items: center; }
  .co-num, .co-pill, .co-amt, .co-title { grid-row: 1; }
  .co-num { grid-column: 1; }
  .co-title { grid-column: 2; }
  .co-pill { grid-column: 3; justify-self: start; }
  .co-amt { grid-column: 4; }
  .co-line { grid-template-columns: 3fr 1fr 1fr 1fr 1fr 40px; align-items: end; padding-right: 40px; }
  .co-line .co-l-descr { grid-column: auto; }
  .co-l-del { top: auto; bottom: 10px; }
}

/* ---- Quality Logs (dra-app/qlogs.js; .screen.qlog-root) — docs/quality-logs-options/desk.html. The page shell is the
   log pages' (.logp-*, and .logm-* below 700 px); these are the views switch, the template builder and the phone preview. */
.qlog-root .logp-row .btn.qlog-auto { width: auto; }
.qlog-views, .qlog-scope { display: flex; flex-wrap: wrap; gap: var(--s2); }
.qlog-views { margin: 0 0 var(--s3); }
.qlog-view { min-height: 40px; padding: 6px 18px; background: var(--white); border: 1px solid var(--gray-3); border-radius: var(--radius-sm); font-family: var(--font); font-size: 15px; color: var(--ink); cursor: pointer; }
.qlog-scope .qlog-view { padding-left: 11px; padding-right: 11px; }
.qlog-view.on { font-weight: 700; border-color: var(--blue); box-shadow: inset 0 -3px 0 var(--blue); }
.qlog-view:disabled { cursor: default; }
.qlog-view:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.qlog-retired { color: var(--gray-5); }
.qlog-undo { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2); font-size: 14px; color: var(--muted); }
.qlog-sechead { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin: 0 0 var(--s2); }
.qlog-root .logp-detail .qlog-sechead input.qlog-secname { flex: 1 1 200px; width: auto; font-size: 17px; font-weight: 700; }
.qlog-root .logp-section .btn.qlog-s { min-height: 36px; padding: 4px 8px; font-size: 14px; }
/* beside the sidebar at 1280 px the mock-up's two columns are tight: a narrower facts column leaves the question its room */
@media (min-width: 900px) { .qlog-root .logp-detail { grid-template-columns: minmax(0, 1fr) 280px; gap: var(--s6) var(--s4); } }
.qlog-root .logp-main { container: qlog / inline-size; }
.qlog-q { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 15px; }
.qlog-q th, .qlog-q td { padding: 6px 4px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: middle; }
.qlog-q th { font-size: 14px; font-weight: 700; color: var(--gray-7); white-space: nowrap; }
.qlog-q .qlog-n { padding-right: 10px; text-align: right; color: var(--muted); }
.qlog-c-n { width: 30px; }
.qlog-c-type { width: 118px; }
.qlog-c-unit { width: 56px; }
.qlog-c-req { width: 100px; }
.qlog-c-act { width: 180px; }
.qlog-root .logp-detail .qlog-q input[type="text"], .qlog-root .logp-detail .qlog-q select { padding-left: 6px; padding-right: 4px; }
.qlog-read .qlog-label { overflow-wrap: anywhere; }
.qlog-optline { font-size: 14px; color: var(--muted); }
.qlog-act { display: flex; justify-content: flex-end; gap: 6px; }
.qlog-req { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; cursor: pointer; }
.qlog-req input { width: 18px; height: 18px; margin: 0; }
.qlog-q tr.logp-step-open > td { border-bottom-color: transparent; }
.qlog-q tr.logp-step-open > td:first-child, .qlog-q tr.logp-stepedit > td:first-child { box-shadow: inset 3px 0 0 var(--blue); }
.qlog-q tr.logp-stepedit > td { padding: 0 12px var(--s3) 42px; }
.qlog-choices { max-width: 520px; }
.qlog-choices h3 { margin: var(--s2) 0; font-size: 14px; font-weight: 700; letter-spacing: 0; color: var(--gray-7); }
.qlog-choice { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s2); }
.qlog-root .logp-detail .qlog-choice input { flex: 1 1 auto; }
.qlog-add { margin: var(--s3) 0 0; }
.qlog-none { margin: 0; font-size: 15px; color: var(--muted); }
.qlog-note { margin: var(--s4) 0 0; font-size: 15px; color: var(--muted); }
/* the preview: the page's title and buttons at the left, a picture of the foreman's phone at the right */
.qlog-split { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: var(--s8); align-items: start; }
.qlog-split .logp-dhead { position: static; border-bottom: 0; }
.qlog-ph-cap { margin: 0 0 var(--s2); font-size: 15px; font-weight: 700; color: var(--gray-7); }
.qlog-phone { overflow: hidden; border: 1px solid var(--gray-3); border-radius: 18px; background: #EDF2F9; }
.qlog-ph-top { padding: 18px 16px 16px; background: var(--blue); color: var(--white); }
.qlog-ph-top b { display: block; font-size: 22px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.qlog-ph-top span { display: block; margin-top: 2px; font-size: 16px; color: #DCE8F7; }
.qlog-ph-block { margin: 12px 12px 0; padding: 14px; background: var(--white); border: 1px solid #D9E1EC; border-radius: 12px; }
.qlog-ph-block h3 { margin: 0 0 12px; padding-bottom: 5px; font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: linear-gradient(var(--gold), var(--gold)) left bottom / 28px 3px no-repeat; overflow-wrap: anywhere; }
.qlog-ph-f + .qlog-ph-f { margin-top: 14px; }
.qlog-ph-lab { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 16px; font-weight: 700; line-height: 22px; overflow-wrap: anywhere; }
.qlog-ph-lab i { flex: none; font-style: normal; font-weight: 400; font-size: 14px; color: var(--muted); }
.qlog-ph-in { display: flex; align-items: center; min-height: 52px; padding: 0 14px; background: var(--white); border: 1.5px solid #C3CFDD; border-radius: var(--radius); font-size: 18px; color: var(--muted); }
.qlog-ph-in.tall { min-height: 100px; align-items: flex-start; padding-top: 12px; }
.qlog-ph-in.act { justify-content: center; font-weight: 700; color: var(--ink); }
.qlog-ph-bar { display: grid; grid-template-columns: 1fr 1.35fr; gap: 12px; margin-top: 12px; padding: 12px 12px 16px; background: var(--white); border-top: 1px solid #E4E8EE; }
.qlog-ph-btn { display: flex; align-items: center; justify-content: center; min-height: 52px; border: 1.5px solid #C3CFDD; border-radius: var(--radius); font-size: 17px; font-weight: 700; color: var(--ink); }
.qlog-ph-btn.main { border-color: var(--gold); background: var(--gold); }
@media (max-width: 1099px) { .qlog-split { grid-template-columns: minmax(0, 1fr); } }
/* the builder's table needs room: with less than that, each question is a short block of its own */
@container qlog (max-width: 619px) {
  .qlog-q, .qlog-q tbody, .qlog-q tr.qlog-q-row { display: block; }
  .qlog-q colgroup, .qlog-q thead { display: none; }
  .qlog-q tr.qlog-q-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); padding: var(--s2) 0; border-bottom: 1px solid var(--line-soft); }
  .qlog-q tr.qlog-q-row > td { padding: 0; border: 0; box-shadow: none; }
  .qlog-q tr.qlog-q-row > .qlog-n { width: 28px; padding-right: 4px; }
  .qlog-q tr.qlog-q-row > .qlog-label { flex: 1 1 calc(100% - 40px); min-width: 0; }
  .qlog-q tr.qlog-q-row > .qlog-type { flex: 0 1 160px; }
  .qlog-q tr.qlog-q-row > .qlog-unit { flex: 0 1 90px; }
  .qlog-q tr.qlog-q-row > .qlog-actcell { flex: 1 0 100%; }
  .qlog-act { justify-content: flex-start; }
  .qlog-q tr.logp-stepedit:not([hidden]) { display: block; }
  .qlog-q tr.logp-stepedit > td { display: block; padding: 0 0 var(--s3) 32px; }
}
/* below 700 px: the list's top block and rows are the log pages' phone ones */
.qlog-jobline { margin: 0; font-size: 15px; color: #DCE8F7; overflow-wrap: anywhere; }
@media (max-width: 699px) {
  .qlog-root .qlog-new { margin: 0 0 var(--s3); }
  .qlog-root .qlog-view { flex: 1 1 0; min-height: 48px; font-size: 17px; }
  .qlog-root .logm-row .logm-s, .qlog-root .logm-row .logm-c { overflow-wrap: anywhere; }
  .qlog-root .logp-filters .logp-q { flex: 1 0 100%; width: 100%; min-height: 48px; }
  .qlog-root .logp-filters .logp-sel { flex: 1 1 100%; min-width: 0; }
  .qlog-root .logp-filters .logp-sel select { width: 100%; min-width: 0; min-height: 48px; }
  .qlog-root .logp-filters .logp-count { margin-left: 0; }
}

/* counts in the phone list's blue block, and the quiet Templates button under the logs */
.qlog-counts { display: flex; gap: var(--s6); margin-top: var(--s2); font-size: 16px; font-weight: 600; color: #DCE8F7; }
.qlog-counts b { margin-right: 6px; font-size: 30px; font-weight: 800; color: var(--white); }
@media (max-width: 699px) { .qlog-root .qlog-totpl { margin-top: 14px; } }

/* one log (qlog-entry.js): one column at every width, the Hard hat phone look (docs/quality-logs-options/phone.css) */
.screen.qlog-root.qlog-onentry { max-width: 640px; margin-left: auto; margin-right: auto; }
.qlog-e { --qlog-line: #D9E1EC; --qlog-field: #C3CFDD; --qlog-rule: #E4E8EE; }
.qlog-e-top { margin: 0 0 14px; padding: 12px 16px 16px; background: var(--blue); border-radius: 12px; color: var(--white); }
.qlog-e-back { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 14px; background: transparent; border: 1.5px solid rgba(255, 255, 255, .55);
  border-radius: 8px; font-family: var(--font); font-size: 17px; font-weight: 700; color: var(--white); cursor: pointer; }
.qlog-e-back .ic { width: 22px; height: 22px; }
.qlog-e-title { margin: 10px 0 0; font-size: 22px; font-weight: 800; line-height: 1.2; color: var(--white); overflow-wrap: anywhere; }
.qlog-e-stands { margin: 8px 0 0; font-size: 16px; line-height: 22px; color: #DCE8F7; }
.qlog-e-block { margin: 14px 0 0; padding: 14px; background: var(--white); border: 1px solid var(--qlog-line); border-radius: 12px; }
.qlog-e-top + .qlog-e-block { margin-top: 0; }
.qlog-e-h { display: block; width: max-content; max-width: 100%; margin: 0 0 12px; padding-bottom: 5px; font-size: 14px; line-height: 18px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; overflow-wrap: anywhere; background: linear-gradient(var(--gold), var(--gold)) left bottom / 28px 3px no-repeat; }
.qlog-e-f + .qlog-e-f { margin-top: 16px; }
.qlog-e-lab { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 6px; font-size: 16px; line-height: 22px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.qlog-e-unit { font-weight: 400; color: var(--muted); }
.qlog-e-req { flex: none; font-size: 14px; font-weight: 400; color: var(--muted); }
.qlog-e-f.bad .qlog-e-req { font-weight: 700; color: var(--red); }
.qlog-e .qlog-e-in, .qlog-sheet .qlog-e-in { display: block; width: 100%; min-width: 0; min-height: 52px; box-sizing: border-box; padding: 0 14px; background: var(--white);
  border: 1.5px solid var(--qlog-field, #C3CFDD); border-radius: var(--radius); font-family: var(--font); font-size: 18px; line-height: 1.35; color: var(--ink); }
.qlog-e textarea.qlog-e-in.tall { min-height: 100px; padding-top: 12px; padding-bottom: 12px; resize: vertical; }
.qlog-e .qlog-e-in:focus, .qlog-sheet .qlog-e-in:focus { outline: 3px solid var(--blue-tint); border-color: var(--blue); }
.qlog-e-f.bad .qlog-e-in, .qlog-e-f.bad .qlog-e-choice, .qlog-e-f.bad .qlog-e-sign, .qlog-e-f.bad .qlog-e-add, .qlog-e-f.bad .qlog-e-tick { border: 2px solid var(--red); }
.qlog-e-errw { margin: 6px 0 0; font-size: 15px; line-height: 20px; font-weight: 700; color: var(--red); }
.qlog-e-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; box-sizing: border-box; padding: 0 16px; border: 0;
  border-radius: var(--radius); font-family: var(--font); font-size: 18px; font-weight: 700; line-height: 1.2; text-align: center; color: var(--ink); cursor: pointer; }
.qlog-e-btn .ic { width: 22px; height: 22px; }
.qlog-e-main { background: var(--gold); box-shadow: 0 3px 0 #C99700; }
.qlog-e-quiet { background: var(--white); border: 1.5px solid #C3CFDD; box-shadow: 0 2px 0 #C3CFDD; }
.qlog-e-small { flex: none; width: auto; min-height: 48px; padding: 0 14px; font-size: 16px; }
.qlog-e-btn:disabled { opacity: .5; cursor: default; }
.qlog-e-btn:focus-visible, .qlog-e-back:focus-visible, .qlog-e-sign:focus-visible, .qlog-e-signed:focus-visible, .qlog-pickrow:focus-visible, .qlog-e-add:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.qlog-e-yn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qlog-e-choice[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); }
.qlog-e-tick { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; border: 1.5px solid #C3CFDD; border-radius: var(--radius); font-size: 18px; cursor: pointer; }
.qlog-e-tick input { flex: none; width: 24px; height: 24px; margin: 0; }
.qlog-e-photos { display: flex; flex-wrap: wrap; gap: 10px; }
.qlog-e-photos:not(:empty) + .qlog-e-add { margin-top: 10px; }
.qlog-e-add input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.qlog-e-thumb { position: relative; flex: none; width: 96px; height: 96px; overflow: hidden; border-radius: 8px; background: var(--gray-2); }
.qlog-e-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.qlog-e-x { position: absolute; top: 0; right: 0; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; background: rgba(22, 24, 28, .55);
  border: 0; border-radius: 0 0 0 8px; color: var(--white); cursor: pointer; }
.qlog-e-sign, .qlog-e-signed { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 88px; padding: 8px; background: var(--white);
  border: 1.5px dashed #C3CFDD; border-radius: var(--radius); font-family: var(--font); font-size: 18px; font-weight: 700; color: var(--ink); cursor: pointer; }
.qlog-e-signed img, .qlog-e-sigimg { display: block; width: 100%; max-width: 300px; aspect-ratio: 5 / 2; object-fit: contain; background: var(--white); border: 1px solid #E4E8EE; border-radius: 8px; }
.qlog-e-signed span { font-size: 15px; font-weight: 400; color: var(--blue); text-decoration: underline; }
.qlog-e-pickrow { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 6px 6px 14px; border: 1.5px solid #C3CFDD; border-radius: var(--radius); }
.qlog-e-grow { flex: 1; min-width: 0; font-size: 17px; line-height: 22px; overflow-wrap: anywhere; }
.qlog-e-del { margin: 18px 0 0; text-align: center; }
.qlog-e-del .logp-link { min-height: 48px; }
/* the foot stays in reach while the log scrolls */
.qlog-e-foot { position: sticky; bottom: 0; z-index: 5; display: grid; grid-template-columns: 1fr 1.35fr; gap: 6px 12px; margin-top: 14px; padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--white); border-top: 1px solid #E4E8EE; box-shadow: 0 -2px 10px rgba(26, 26, 26, .06); }
/* a screen with its own bottom buttons: the phone's bottom bar steps aside (phone-bar.css does the same for .logm-foot) */
body.has-phone-bar:has(.qlog-e-foot) { --pbar-h: 0px; }
body.has-phone-bar:has(.qlog-e-foot) #phoneBar { display: none; }
.qlog-e-foot.one { grid-template-columns: 1fr; }
.qlog-e-foot:not(.one):has(#qlogEPdf) { grid-template-columns: 1fr 1fr; }
.qlog-e-msg { grid-column: 1 / -1; margin: 0; font-size: 16px; line-height: 22px; font-weight: 700; color: var(--red); }
.qlog-e-msg:empty { display: none; }
.qlog-e-note { margin: 12px 0; font-size: 16px; color: var(--muted); }
.qlog-e-kv { display: grid; grid-template-columns: 136px minmax(0, 1fr); margin: 0; }
.qlog-e-kv dt, .qlog-e-kv dd { margin: 0; padding: 11px 0; border-top: 1px solid #E4E8EE; font-size: 16px; line-height: 22px; overflow-wrap: anywhere; }
.qlog-e-kv dt { padding-right: 12px; color: var(--muted); }
.qlog-e-kv dd { font-weight: 600; white-space: pre-wrap; }
.qlog-e-kv dt:first-of-type, .qlog-e-kv dt:first-of-type + dd { border-top: 0; padding-top: 0; }
/* its sheets: the log to start, the work plan and step, the signature */
.qlog-sheet { display: flex; flex-direction: column; gap: 10px; max-height: 86vh; padding: 14px 16px 18px; }
.qlog-sheet:focus { outline: none; }
.qlog-sheet-head { display: flex; align-items: center; gap: var(--s3); }
.qlog-sheet-head h2 { flex: 1; min-width: 0; margin: 0; font-size: 20px; }
.qlog-sheet-list { flex: 1; min-height: 0; overflow-y: auto; }
.qlog-pickrow { display: block; width: 100%; min-height: 56px; padding: 8px 4px; background: var(--white); border: 0; border-bottom: 1px solid #E4E8EE; font-family: var(--font); color: var(--ink); text-align: left; cursor: pointer; }
.qlog-pick-n { display: block; font-size: 18px; line-height: 24px; font-weight: 600; overflow-wrap: anywhere; }
.qlog-pick-s { display: block; font-size: 15px; line-height: 20px; color: var(--muted); }

/* ---- SOP Builder (guide.js, guide-edit.js; .screen.gd-root) — docs/sop-builder-mockup.html screens 1-3.
   The page (.gd-page) is drawn 760 px wide at the PDF's own sizes: 1 pt = 760/612 px, so 10 pt body = 12.4 px. ---- */
.screen.gd-root { max-width: none; padding: 0; font-size: 15px; line-height: 1.45; color: var(--ink); }
/* the app header: "SOP Builder  Library › …" and the screen's buttons, from 900 px; the job chip has nothing to say here */
.gd-crumb { display: flex; align-items: center; gap: 14px; min-width: 0; }
.gd-tool { font-weight: 700; font-size: 18px; flex: none; }
.gd-cr { color: var(--muted); font-size: 14px; font-weight: 400; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-cr b { color: var(--ink); font-weight: 600; }
.gd-crlink { color: var(--muted); text-decoration: none; }
.gd-crlink:hover { color: var(--blue); text-decoration: underline; }
.gd-cr-right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.app-header:has(.gd-crumb) .job-chip { display: none !important; }
@media (min-width: 900px) {
  .hdr-title:has(.gd-crumb) { display: block; }
  .hdr-vr:has(+ #hdrTitle .gd-crumb) { display: block; }
}
.gd-btn { border: 1px solid var(--line); background: var(--white); border-radius: 8px; padding: 8px 14px; font: inherit; font-weight: 600; font-size: 14px; line-height: 1.3; color: var(--ink); cursor: pointer; }
.gd-btn:hover { border-color: #B9C8DA; }
.gd-btn:disabled { opacity: 0.4; cursor: default; }
.gd-btn-pri { background: var(--blue); border-color: var(--blue); color: var(--white); }
.gd-btn-pri:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.gd-btn-ghost { border-color: transparent; background: transparent; color: var(--blue); }
.gd-btn-ghost:hover { border-color: transparent; background: var(--blue-tint); }
.gd-btn-sm { padding: 5px 10px; font-size: 13px; }
.gd-btn-danger { color: var(--red); border-color: var(--red-tint); }
.gd-btn-danger:hover { background: var(--red-tint); border-color: var(--red); }
.gd-pill { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 9px; line-height: 1.5; white-space: nowrap; }
.gd-pill-rev { background: var(--green-tint); color: #2F6A1A; }
.gd-pill-chg { background: var(--gold-tint); color: var(--gold-ink); }
.gd-pill-draft { background: var(--line-soft); color: var(--muted); }
.gd-chip { display: inline-block; font-size: 12px; border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; color: var(--muted); background: var(--white); }
.gd-empty { color: var(--muted); padding: 18px 2px; }
.gd-err { color: var(--red); }

/* 1. the Library */
.gd-lib { padding: 18px 22px 60px; }
.gd-top { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.gd-top h1 { font-size: 22px; font-weight: 700; letter-spacing: 0; margin: 0 12px 0 0; }
.gd-top select, .gd-top input { border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: var(--white); font: inherit; font-size: 14px; color: var(--ink); }
.gd-top input { width: 260px; }
.gd-spacer { flex: 1; }
.gd-sect { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--faint); margin: 22px 0 10px; }
.gd-sect:first-child { margin-top: 4px; }
.gd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.gd-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-card); cursor: pointer; transition: transform .12s, box-shadow .12s; }
.gd-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -10px rgba(20, 40, 80, .35); }
.gd-card:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.gd-thumb { height: 132px; background: var(--line-soft); border-bottom: 1px solid var(--line); overflow: hidden; }
.gd-thumb canvas { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.gd-thumb-blank { display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 13px; }
.gd-cbody { padding: 12px 14px 14px; }
.gd-cbody h3 { font-size: 15px; font-weight: 700; margin: 0 0 6px; line-height: 1.3; }
.gd-cmeta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.gd-cfoot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.gd-card-new { border: 2px dashed #B9C4D0; background: transparent; box-shadow: none; display: flex; align-items: center; justify-content: center; min-height: 230px; color: var(--blue); font-weight: 600; font-size: 15px; }
.gd-card-new:hover { background: var(--blue-tint); }

/* 2. the New guide chooser */
.gd-chooser { padding: 36px 22px; max-width: 1060px; margin: 0 auto; }
.gd-chooser h1 { font-size: 24px; font-weight: 700; letter-spacing: 0; margin: 0 0 4px; }
.gd-lead { color: var(--muted); margin: 0 0 26px; }
.gd-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gd-way { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 20px; box-shadow: var(--shadow-card); cursor: pointer; display: flex; flex-direction: column; min-height: 300px; transition: transform .12s, box-shadow .12s; }
.gd-way:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(20, 40, 80, .4); border-color: #B9C8DA; }
.gd-way:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.gd-way-off { cursor: default; opacity: 0.62; }
.gd-way-off:hover { transform: none; box-shadow: var(--shadow-card); border-color: var(--line); }
.gd-ico { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.gd-ico-blue { background: var(--blue-tint); color: var(--blue); }
.gd-ico-purple { background: #F1EDFA; color: var(--purple); }
.gd-ico-green { background: var(--green-tint); color: var(--green); }
.gd-way h2 { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.gd-way p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.gd-way ul { margin: 0 0 auto; padding-left: 18px; font-size: 14px; }
.gd-way li { margin: 3px 0; }
.gd-go { margin-top: 14px; align-self: flex-start; }
.gd-later { margin-top: 14px; align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--line-soft); border-radius: 999px; padding: 4px 10px; }
.gd-narrow { padding: 60px 20px; text-align: center; font-size: 16px; }
.gd-narrow p { margin: 0 0 16px; }

/* 3. the editor: toolbar row over rail | page | inspector; each column scrolls on its own (guide-edit.js fitHeight) */
.gd-ed { display: grid; grid-template-columns: 230px minmax(0, 1fr) 290px; grid-template-rows: auto minmax(0, 1fr); background: var(--canvas); min-height: 480px; }
.gd-ed[hidden] { display: none; }
.gd-ed-narrow { display: none; }
@media (max-width: 899px) { .gd-ed { display: none !important; } .gd-ed-narrow { display: block; } }
.gd-tb { grid-column: 1 / -1; background: var(--white); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; padding: 8px 18px; font-size: 13px; color: var(--muted); min-width: 0; }
.gd-ins { display: flex; gap: 4px; flex: none; }
.gd-ins button { border: 1px solid var(--line); border-radius: 6px; padding: 3px 9px; color: var(--ink); background: var(--white); font: inherit; font-size: 13px; cursor: pointer; }
.gd-ins button:hover { background: var(--blue-tint); border-color: #B9C8DA; }
.gd-hint { margin-left: 10px; color: var(--faint); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-saved { margin-left: auto; flex: none; display: flex; align-items: center; gap: 6px; }
.gd-saved i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; }
.gd-saved[data-state="saving"] i { background: var(--faint); }
.gd-saved[data-state="err"] { color: var(--red); font-weight: 600; }
.gd-saved[data-state="err"] i { background: var(--red); }

.gd-rail { background: var(--white); border-right: 1px solid var(--line); padding: 14px 10px; font-size: 13px; overflow: auto; }
.gd-rh, .gd-ih { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--faint); }
.gd-rh { padding: 0 8px; margin: 6px 0 8px; }
.gd-ri { display: flex; align-items: center; gap: 8px; padding: 5px 8px 5px 22px; color: var(--muted); border-radius: 6px; cursor: pointer; user-select: none; }
.gd-ri-section { font-weight: 700; color: var(--ink); padding: 6px 8px; }
.gd-ri-text .gd-rl, .gd-ri-bullets .gd-rl, .gd-ri-tip .gd-rl, .gd-ri-warn .gd-rl { color: var(--faint); font-size: 12px; }
.gd-ri:hover { background: var(--line-soft); }
.gd-ri.on { background: var(--blue-tint); color: var(--blue-dark); font-weight: 600; }
.gd-rn { font-variant-numeric: tabular-nums; color: var(--faint); width: 18px; flex: none; }
.gd-rl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-ri .gd-grip { color: #C4CBD3; margin-left: auto; font-size: 14px; cursor: grab; flex: none; }
.gd-dragging { opacity: 0.45; }
.gd-drop-b { box-shadow: inset 0 2px 0 var(--blue); }
.gd-drop-a { box-shadow: inset 0 -2px 0 var(--blue); }
.gd-radd { display: block; color: var(--blue); padding: 8px; font: inherit; font-weight: 600; background: none; border: 0; cursor: pointer; }

.gd-canvas { padding: 22px 26px 40px; overflow: auto; }
.gd-page { background: var(--white); width: 760px; min-height: 983px; margin: 0 auto; box-shadow: 0 2px 14px rgba(20, 40, 80, .14); padding: 67px 67px 40px; display: flex; flex-direction: column; font-size: 12.4px; line-height: 1.35; }
.gd-page > #gdBlocks { margin-bottom: 30px; }
.gd-ph { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border-bottom: 2.5px solid var(--blue); padding-bottom: 10px; margin-bottom: 15px; }
.gd-ph img { height: 35px; display: block; }
.gd-co { font-weight: 700; font-size: 17.4px; }
.gd-kind { font-size: 9.3px; font-weight: 700; letter-spacing: 0.14em; color: var(--blue); text-align: right; }
.gd-kind small { display: block; color: var(--muted); font-weight: 400; letter-spacing: 0; font-size: 9.3px; margin-top: 3px; }
.gd-ce { outline: none; white-space: pre-wrap; overflow-wrap: anywhere; cursor: text; border-radius: 3px; }
.gd-ce:focus { background: rgba(0, 87, 184, 0.04); }
.gd-ce.gd-e::before, .gd-bul li:only-child:empty::before { content: attr(data-ph); color: var(--faint); font-weight: 400; pointer-events: none; }
/* an empty step detail prints nothing, so its hint shows only on the selected step */
.gd-blk:not(.sel) .gd-det.gd-e:not(:focus)::before { content: none; }
.gd-t { font-size: 24.8px; font-weight: 700; letter-spacing: 0; line-height: 1.15; margin: 0 0 6px; }
.gd-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; font-size: 11.2px; color: var(--muted); margin-bottom: 12px; }
.gd-mv, .gd-for, .gd-date { font: inherit; font-weight: 600; color: var(--ink); background: none; border: 0; border-bottom: 1px dashed #B9C4D0; border-radius: 0; padding: 0 1px; }
.gd-mv { cursor: pointer; }
.gd-mv:hover, .gd-mv:focus-visible { color: var(--blue); border-bottom-color: var(--blue); outline: none; }
.gd-mv-none { color: var(--faint); font-weight: 400; }
.gd-for { display: inline-block; min-width: 50px; }
.gd-date { font-size: 11.2px; }
.gd-purpose { font-size: 12.4px; margin: 0 0 18px; }

/* -11.5 px = the 10 px padding plus the 1.5 px border, so a block's content is exactly the 626 px text width the PDF prints */
.gd-blk { position: relative; border-radius: 8px; margin: 0 -11.5px 2px; padding: 6px 10px; border: 1.5px solid transparent; }
.gd-blk:hover { border-color: #CFD8E3; }
.gd-blk.sel { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.gd-blk > .gd-grip { position: absolute; left: -20px; top: 8px; color: #C4CBD3; font-size: 16px; line-height: 1; opacity: 0; user-select: none; cursor: grab; padding: 4px 6px; margin: -4px -6px; }
.gd-blk:hover > .gd-grip { opacity: 1; }
.gd-blk > .gd-grip:hover { color: #8E99A6; }
.gd-blk.gd-drop-b { box-shadow: 0 -2px 0 var(--blue); }
.gd-blk.gd-drop-a { box-shadow: 0 2px 0 var(--blue); }
.gd-s { display: flex; gap: 6px; font-size: 14.9px; font-weight: 700; letter-spacing: 0; margin: 14px 0 0; padding: 7px 10px; background: var(--blue-tint); color: var(--blue-dark); border-radius: 6px; line-height: 1.3; }
.gd-sn { flex: none; }
.gd-st { flex: 1; min-width: 0; }
.gd-step { display: grid; grid-template-columns: 37px minmax(0, 1fr); }
.gd-n { width: 25px; height: 25px; border-radius: 50%; background: var(--blue); color: var(--white); font-weight: 700; font-size: 12.4px; display: flex; align-items: center; justify-content: center; }
.gd-act { font-weight: 700; font-size: 13.7px; margin: 3px 0 2px; }
.gd-det { color: #2E3742; }
.gd-bul { margin: 0; padding-left: 20px; outline: none; white-space: pre-wrap; }
.gd-bul li { margin: 2px 0; }
.gd-chk { list-style: square; }
.gd-chk li.gd-chk-h { list-style: none; font-weight: 700; margin-left: -20px; }
/* round 4j: a step's detail is a list lettered a. b. c. by a counter; a line that carries a callout shows the red disc with its letter (as the picture does) */
.gd-lst { list-style: none; padding: 0; margin: 2px 0 0; counter-reset: gdln; }
.gd-lst li { position: relative; padding-left: 24px; counter-increment: gdln; }
.gd-lst li::before { content: counter(gdln, lower-alpha) "."; position: absolute; left: 0; top: 0; width: 18px; text-align: right; color: var(--muted); user-select: none; }
.gd-lst li.gd-called.gd-c-amber::before { background: var(--amber); }
.gd-lst li.gd-called.gd-c-green::before { background: var(--green); }
.gd-lst li.gd-called.gd-c-blue::before { background: var(--blue); }
.gd-lst li.gd-called.gd-c-purple::before { background: var(--purple); }
.gd-lst li.gd-called::before { content: counter(gdln, lower-alpha); left: 1px; top: 1px; width: 16px; height: 16px; line-height: 16px; border-radius: 50%; background: var(--red); color: var(--white); font-weight: 700; font-size: 10.5px; text-align: center; }
.gd-lst li:has(> br:only-child) { counter-increment: none; }   /* an empty line the writer has just opened is not a line yet: no letter, and it does not take one */
.gd-lst li:has(> br:only-child)::before { content: none; }
.gd-lst li:only-child:not(.gd-called) { padding-left: 0; }
.gd-lst li:only-child:not(.gd-called)::before { content: none; }
.gd-lst li:only-child:empty::before { content: attr(data-ph); position: static; width: auto; color: var(--faint); font-weight: 400; text-align: left; }
.gd-blk:not(.sel) .gd-lst li:only-child:empty:not(:focus)::before { content: none; }
.gd-bul b, .gd-ce b { font-weight: 700; }
.gd-callout { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; padding: 9px 12px; border-radius: 6px; }
.gd-tip { background: var(--green-tint); border-left: 3.7px solid var(--green); }
.gd-warn { background: var(--gold-tint); border-left: 3.7px solid var(--gold); }
.gd-callout b { display: block; font-size: 8.7px; letter-spacing: 0.06em; }
.gd-tip b { color: #2F6A1A; }
.gd-warn b { color: var(--gold-ink); }
.gd-ci { font-size: 15px; line-height: 1.2; }
.gd-first { border: 2px dashed #B9C4D0; border-radius: 10px; padding: 22px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; font-size: 14px; }
.gd-pf { margin-top: auto; padding-top: 8px; border-top: 0.6px solid var(--line); display: flex; justify-content: space-between; gap: 12px; font-size: 9.3px; color: var(--muted); }
.gd-pf b { color: var(--ink); font-weight: 600; }

/* pictures: a canvas drawn by PZ.guideDrawMarks with a transparent layer over it for the handles */
.gd-pics { display: flex; flex-wrap: wrap; gap: 8px 15px; margin: 10px 0 4px; }
/* round 4j: the markup toolbar sits in the flow above the selected picture (it pushes the picture down, never covers text) and is never wider than it */
.gd-pic { position: relative; margin: 0; }
.gd-pbox { position: relative; overflow: hidden; border-radius: 4px; background: var(--line-soft); box-shadow: 0 0 0 1px var(--line); }
.gd-pic.sel .gd-pbox { outline: 2px solid var(--blue); outline-offset: 2px; }
.gd-pbox canvas { position: absolute; left: 0; top: 0; display: block; }
.gd-play { position: absolute; inset: 0; outline: none; }
.gd-pic.sel .gd-play { touch-action: none; }
.gd-play.gd-tool { cursor: crosshair; }
.gd-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .7); pointer-events: none; }
.gd-prog i { display: block; height: 100%; width: 0; background: var(--blue); animation: gd-up 4s ease-out forwards; }
@keyframes gd-up { to { width: 90%; } }
.gd-pfail { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--red); color: var(--white); border: 0; border-radius: 8px; padding: 8px 12px; font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; z-index: 2; }
.gd-pna { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 13px; pointer-events: none; }
.gd-cap { font-size: 9.9px; color: var(--muted); margin-top: 5px; min-height: 1.3em; }
.gd-pic:not(.sel) .gd-cap.gd-e:not(:focus) { display: none; }
.gd-mtb { position: static; display: flex; flex-direction: column; gap: 3px; width: fit-content; max-width: 100%; margin: 0 0 8px; background: #1A1A1A; color: var(--white); border-radius: 8px; padding: 4px; font-size: 12px; line-height: 1.3; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.gd-mtr { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.gd-mtr2 { border-top: 1px solid #444; padding-top: 4px; min-height: 30px; }
.gd-mhint { color: #aaa; font-size: 11px; padding: 0 6px; }
.gd-mtb button { background: transparent; border: 0; color: var(--white); padding: 4px 9px; border-radius: 5px; display: flex; align-items: center; gap: 5px; font: inherit; cursor: pointer; }
.gd-mtb button:hover { background: #333; }
.gd-mtb button.on { background: var(--red); }
.gd-mtb i { width: 12px; height: 12px; border: 2px solid var(--white); border-radius: 2px; display: inline-block; }
.gd-mtb i.c { border-radius: 50%; }
.gd-mtb i.a { border: 0; border-top: 2px solid var(--white); width: 14px; height: 0; }
.gd-mtb i.b { border: 0; background: repeating-linear-gradient(45deg, var(--white) 0 2px, transparent 2px 4px); }
.gd-mtb i.x { border-style: dashed; }
.gd-mc { display: flex; align-items: center; gap: 6px; margin-left: 6px; }
.gd-mtb .gd-mc button { width: 18px; height: 18px; padding: 0; border-radius: 50%; border: 0; display: block; }
.gd-mtb .gd-mc button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--white); }
.gd-mtb .gd-mc .gd-mc-red { background: var(--red); }
.gd-mtb .gd-mc .gd-mc-amber { background: var(--amber); }
.gd-mtb .gd-mc .gd-mc-green { background: var(--green); }
.gd-mtb .gd-mc .gd-mc-blue { background: var(--blue); }
.gd-mtb .gd-mc .gd-mc-purple { background: var(--purple); }
.gd-sep { width: 1px; background: #444; margin: 2px 4px; align-self: stretch; }
/* round 4f: a selected callout's Line and Note controls in the toolbar, and the legend under a picture with callouts */
.gd-mtb .gd-mf { display: flex; align-items: center; gap: 5px; padding: 0 4px; color: #ccc; }
.gd-mtb .gd-mf select, .gd-mtb .gd-mf input { background: #333; color: var(--white); border: 1px solid #555; border-radius: 4px; font: inherit; padding: 2px 5px; height: 24px; }
.gd-mtb .gd-mf input { width: 130px; }
.gd-legend { display: flex; flex-wrap: wrap; gap: 3px 12px; margin-top: 5px; font-size: 9.9px; color: var(--ink); }
.gd-legend:empty { display: none; }
.gd-lgi { display: inline-flex; align-items: center; gap: 4px; }
.gd-lgb { display: inline-flex; align-items: center; justify-content: center; min-width: 13px; height: 13px; padding: 0 3px; border-radius: 7px; background: var(--red); color: var(--white); font-style: normal; font-weight: 700; font-size: 8.5px; }
.gd-msel { position: absolute; outline: 1px dashed var(--blue); outline-offset: 3px; pointer-events: none; }
.gd-hd { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; background: var(--white); border: 1.5px solid var(--blue); border-radius: 2px; pointer-events: auto; touch-action: none; }
.gd-hd::after { content: ""; position: absolute; inset: -8px; }
.gd-hd[data-hd="nw"] { left: 0; top: 0; cursor: nwse-resize; }
.gd-hd[data-hd="n"] { left: 50%; top: 0; cursor: ns-resize; }
.gd-hd[data-hd="ne"] { left: 100%; top: 0; cursor: nesw-resize; }
.gd-hd[data-hd="e"] { left: 100%; top: 50%; cursor: ew-resize; }
.gd-hd[data-hd="se"] { left: 100%; top: 100%; cursor: nwse-resize; }
.gd-hd[data-hd="s"] { left: 50%; top: 100%; cursor: ns-resize; }
.gd-hd[data-hd="sw"] { left: 0; top: 100%; cursor: nesw-resize; }
.gd-hd[data-hd="w"] { left: 0; top: 50%; cursor: ew-resize; }
.gd-hd-pt { width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; cursor: move; }
.gd-cropbox { position: absolute; box-shadow: 0 0 0 9999px rgba(15, 20, 30, .5); outline: 1.5px dashed var(--white); pointer-events: none; }
.gd-crophint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--white); background: rgba(15, 20, 30, .35); font-weight: 600; font-size: 13px; pointer-events: none; }

.gd-insp { background: var(--white); border-left: 1px solid var(--line); padding: 16px; font-size: 13px; overflow: auto; }
.gd-ih { margin: 16px 0 8px; }
.gd-ih:first-child { margin-top: 0; }
.gd-irow { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.gd-irow > span:last-child { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.gd-irow-stack { display: block; }
.gd-irow-stack > span { display: block; }
.gd-irow-stack > span:last-child { text-align: left; font-weight: 600; margin-top: 2px; }
.gd-irow select { border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; font: inherit; font-size: 13px; background: var(--white); }
.gd-imove { display: flex; gap: 4px; }
.gd-ipic { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto auto; gap: 6px; align-items: center; padding: 4px; margin: 0 -4px; border-radius: 6px; }
.gd-ipic.on { background: var(--blue-tint); }
.gd-ithumb { display: block; width: 72px; height: 42px; background: var(--line-soft); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; cursor: pointer; }
.gd-ithumb img { width: 100%; height: 100%; object-fit: cover; object-position: left top; display: block; }
.gd-ipn { cursor: pointer; }
.gd-ipn em { font-style: normal; color: var(--red); font-size: 11px; }
.gd-ib { width: 26px; height: 26px; border: 1px solid var(--line); background: var(--white); border-radius: 6px; font: inherit; font-size: 11px; color: var(--ink); padding: 0; cursor: pointer; }
.gd-ib:disabled { opacity: 0.35; cursor: default; }
.gd-ix { color: var(--red); font-size: 15px; }
.gd-iadd { margin-top: 8px; }
.gd-inote { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.gd-ibtns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
/* round 4h: "Pick from the video" — a centred dialog; a full-screen sheet under 700 px */
.gd-fdwrap { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.gd-fdback { position: absolute; inset: 0; background: rgba(26, 26, 26, .55); }
.gd-fd { position: relative; display: flex; flex-direction: column; gap: 10px; width: min(960px, 96vw); max-height: 94vh; max-height: 94dvh; overflow: auto; background: var(--white); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow-lg); outline: none; }
.gd-fdh { font-size: 17px; font-weight: 700; }
.gd-fdplay { background: #111; border-radius: 8px; overflow: hidden; min-height: 80px; display: flex; align-items: center; justify-content: center; }
.gd-fdplay .gd-inote { color: #ccc; margin: 24px; }
.gd-fdvid { display: block; width: 100%; max-height: 56vh; background: #000; }
.gd-fdna { margin: 0; padding: 18px; color: var(--ink); background: var(--blue-tint); width: 100%; font-size: 14px; }
.gd-fdnudge { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.gd-fdnudge[hidden], .gd-fdcands[hidden], .gd-fd .gd-btn[hidden] { display: none; }
.gd-fdtime { min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; font-size: 16px; }
.gd-fdrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.gd-fdc { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 3px; background: var(--white); border: 2px solid var(--line); border-radius: 8px; cursor: pointer; font: inherit; }
.gd-fdc img { display: block; width: 150px; height: auto; border-radius: 4px; }
.gd-fdc small { color: var(--muted); font-size: 12px; }
.gd-fdc.on { border-color: var(--blue); }
.gd-fdfoot { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 8px; padding-top: 10px; background: var(--white); border-top: 1px solid var(--line); }
.gd-fnote { margin: 6px 0 0; padding: 6px 10px; border-radius: 6px; background: #FFF4D6; color: #6B4A00; font-size: 12.5px; }
@media (max-width: 699px) {
  .gd-fd { width: 100vw; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; }
  .gd-fdnudge .gd-btn, .gd-fdfoot .gd-btn { min-height: 44px; }
}
.gd-idel { display: block; width: 100%; margin-top: 18px; }

/* the Department / Software / Owner pickers */
.gd-pop { position: fixed; z-index: 200; width: 280px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 8px; font-size: 14px; }
.gd-pop-q { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font: inherit; margin-bottom: 6px; }
.gd-pop-list { max-height: 260px; overflow: auto; display: flex; flex-direction: column; }
.gd-pop-it { text-align: left; background: none; border: 0; padding: 7px 10px; border-radius: 6px; font: inherit; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; }
.gd-pop-it:hover, .gd-pop-it.on { background: var(--blue-tint); }
.gd-pop-it.cur { font-weight: 700; }
.gd-pop-it small { color: var(--muted); font-size: 12px; }
.gd-pop-add { color: var(--blue); font-weight: 600; }
.gd-pop-none, .gd-pop-help { margin: 6px 10px; color: var(--muted); font-size: 12.5px; }
.gd-pvhost { min-height: 60vh; }

/* under 900 px: the Library as one column; the editor is not offered */
@media (max-width: 899px) {
  .gd-lib { padding: 14px 16px 60px; }
  .gd-top h1 { width: 100%; margin: 0; }
  .gd-top select, .gd-top input { flex: 1 1 140px; width: auto; min-width: 0; }
  .gd-spacer { display: none; }
  .gd-cards { grid-template-columns: 1fr; }
  .gd-ways { grid-template-columns: 1fr; }
}

/* ---- SOP Builder round 2: import an existing document (guide-import.js) and the editor's check mode
   (docs/sop-builder-mockup.html screen 4). Blue = goes with the selected block, red = not placed yet, amber = the AI was unsure. ---- */
.gd-pill-imp { background: var(--blue-tint); color: var(--blue-dark); }
.gd-pill-fail { background: var(--red-tint); color: var(--red); }
.gd-imp { max-width: 760px; margin: 0 auto; padding: 36px 22px 60px; }
.gd-imp h1 { font-size: 24px; font-weight: 700; margin: 0 0 6px; }
.gd-imp .gd-lead { margin-bottom: 20px; }
.gd-drop { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 42px 20px; border: 2px dashed #B9C8DA; border-radius: 14px; background: var(--white); text-align: center; cursor: pointer; color: var(--muted); transition: border-color .15s, background .15s; }
.gd-drop svg { color: var(--green-dark); }
.gd-drop:hover, .gd-drop:focus-visible, .gd-drop-on { border-color: var(--blue); background: var(--blue-tint); outline: none; }
.gd-drop-busy { cursor: progress; opacity: .7; }
.gd-drop-big { font-size: 17px; color: var(--ink); }
.gd-drop-big b { color: var(--blue); }
.gd-drop-small { font-size: 13.5px; }
.gd-imp-err { margin: 10px 0 0; color: var(--red); font-weight: 600; }
.gd-imp-ai { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--gold-tint); color: var(--gold-ink); font-size: 14px; }
.gd-imp-ai span { margin-right: 4px; }
.gd-imp-how { list-style: none; counter-reset: gdhow; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gd-imp-how li { counter-increment: gdhow; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: 13.5px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.gd-imp-how li b { color: var(--ink); font-size: 14.5px; }
.gd-imp-how li b::before { content: counter(gdhow) " · "; color: var(--faint); }
.gd-stages { list-style: none; padding: 0; margin: 22px 0 16px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.gd-stg { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-top: 1px solid var(--line-soft); color: var(--faint); }
.gd-stg:first-child { border-top: 0; }
.gd-stg-i { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; margin-top: 1px; }
.gd-stg-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gd-stg-t small { font-size: 12.5px; color: var(--muted); }
.gd-stg-run { color: var(--ink); font-weight: 600; }
.gd-stg-run .gd-stg-i { border-color: var(--blue); border-top-color: transparent; animation: gdspin 0.9s linear infinite; }
.gd-stg-done { color: var(--ink); }
.gd-stg-done .gd-stg-i { background: var(--green); border-color: var(--green); color: var(--white); }
.gd-stg-skip { color: var(--muted); }
.gd-stg-skip .gd-stg-i { border-color: var(--line); color: var(--faint); }
.gd-stg-fail { color: var(--red); font-weight: 600; }
.gd-stg-fail .gd-stg-i { background: var(--red); border-color: var(--red); color: var(--white); }
.gd-stg-fail small { color: var(--red); font-weight: 400; }
@keyframes gdspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gd-stg-run .gd-stg-i { animation: none; } }
.gd-imp-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.gd-imp-pv { margin-top: 22px; opacity: .75; }
.gd-imp-pv ol { list-style: none; padding: 0; margin: 6px 0 0; font-size: 13.5px; }
.gd-imp-pv li { padding: 3px 0; display: flex; gap: 8px; }
.gd-imp-pv li span { color: var(--faint); min-width: 18px; text-align: right; }
.gd-imp-pv li.gd-pv-sec { font-weight: 700; margin-top: 6px; }

/* check mode: the ORIGINAL pane replaces the outline rail */
.gd-ed-check { grid-template-columns: minmax(300px, 400px) minmax(0, 1fr) 300px; }
.gd-ck-prog { margin-left: auto; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.gd-ck-bar { display: inline-block; width: 120px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.gd-ck-bar i { display: block; height: 100%; width: 0; background: var(--green); transition: width .2s; }
.gd-ed-check .gd-saved { margin-left: 8px; }
.gd-src { background: #E9ECF0; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; overflow: hidden; font-size: 13px; }
.gd-src-h { display: flex; align-items: center; gap: 8px; padding: 12px 14px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--faint); }
.gd-src-h > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-src-h b { letter-spacing: 0; color: var(--ink); font-size: 12.5px; }
.gd-src-open { margin-left: auto; flex: none; font-weight: 600; letter-spacing: 0; font-size: 12.5px; color: var(--blue); }
.gd-src-legend { padding: 0 14px 8px; font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.gd-lg { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.gd-lg-b { background: var(--blue); }
.gd-lg-r { background: var(--red); margin-left: 6px; }
.gd-src-skip { margin: 0 14px 8px; font-size: 12px; color: var(--muted); }
.gd-src-doc { flex: 1 1 auto; overflow: auto; margin: 0 10px; padding: 18px 20px; background: var(--white); box-shadow: 0 2px 10px rgba(20, 40, 80, .12); font-family: Georgia, "Times New Roman", serif; font-size: 13px; line-height: 1.5; color: #222; position: relative; }
.gd-src-pg { font-family: var(--font); font-size: 11px; color: var(--faint); text-align: center; margin: 14px 0 8px; border-top: 1px solid var(--line); padding-top: 4px; }
.gd-src-pg:first-child { margin-top: 0; }
.gd-si { margin: 0 0 7px; padding: 2px 6px; border-radius: 4px; border-left: 3px solid transparent; cursor: pointer; white-space: pre-wrap; overflow-wrap: anywhere; }
.gd-si:hover { background: var(--canvas); }
.gd-si:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.gd-si-h1 { font-family: var(--font); font-weight: 700; font-size: 16px; }
.gd-si-h2 { font-family: var(--font); font-weight: 700; font-size: 14.5px; }
.gd-si-h3 { font-family: var(--font); font-weight: 700; }
.gd-si-li::before { content: "• "; }
.gd-si-row { font-family: ui-monospace, Consolas, monospace; font-size: 12px; background: #FAFBFC; }
.gd-si-pic img { display: block; max-width: 100%; max-height: 120px; border: 1px solid var(--line); border-radius: 3px; }
.gd-si-pic i { display: inline-block; padding: 18px 26px; background: var(--line-soft); color: var(--faint); font-family: var(--font); }
.gd-si-alt { display: block; font-size: 11.5px; color: var(--muted); font-family: var(--font); }
.gd-si-linked { background: var(--blue-tint); border-left-color: var(--blue); }
.gd-si-unp { background: var(--red-tint); border-left-color: var(--red); }
.gd-si-ok { border-left-color: #CFE4C6; }
.gd-si-disc { color: var(--faint); text-decoration: line-through; position: relative; }
.gd-si-disc .gd-si-pic img { opacity: .4; }
.gd-si-undo { display: none; position: absolute; right: 4px; top: 2px; font: inherit; font-family: var(--font); font-size: 12px; text-decoration: none; border: 1px solid var(--line); background: var(--white); border-radius: 6px; padding: 1px 8px; color: var(--blue); cursor: pointer; }
.gd-si-disc:hover .gd-si-undo, .gd-si-disc:focus-within .gd-si-undo { display: inline-block; }
.gd-si-skipped { cursor: default; color: var(--faint); font-family: var(--font); font-size: 12px; font-style: italic; }
.gd-si-flash { animation: gdflash 0.8s ease-in-out 3; }
@keyframes gdflash { 50% { box-shadow: 0 0 0 3px var(--red); } }
.gd-tray { flex: none; max-height: 42%; overflow: auto; margin: 10px; background: var(--white); border: 1px solid var(--red); border-radius: 10px; padding: 10px 12px; }
.gd-tray > b { color: var(--red); font-size: 12px; letter-spacing: .04em; }
.gd-tray-ok { border-color: var(--green); display: flex; flex-direction: column; gap: 2px; }
.gd-tray-ok > b { color: var(--green-dark); }
.gd-tray-ok > span { color: var(--muted); }
.gd-tray-it { padding: 8px 0; border-top: 1px solid var(--line-soft); }
.gd-tray-it:first-of-type { border-top: 0; margin-top: 4px; }
.gd-tray-q { display: block; font-style: italic; color: #2E3742; margin-bottom: 6px; overflow-wrap: anywhere; }
.gd-tray-pic img { display: block; max-height: 70px; max-width: 100%; border: 1px solid var(--line); border-radius: 3px; margin-bottom: 6px; }
.gd-tray-btns { display: flex; flex-wrap: wrap; gap: 5px; }
.gd-tray-btns .gd-btn-sm { padding: 3px 8px; font-size: 12px; }
.gd-place .gd-place-disc { color: var(--red); border-top: 1px solid var(--line-soft); }

/* AI work on the page: a tag until a person edits or accepts it; amber + a why-row where it merged, split or moved */
.gd-aitag { position: absolute; right: 6px; top: -9px; z-index: 1; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; color: var(--amber); background: var(--white); border: 1.5px solid var(--amber); border-radius: 999px; padding: 0 7px; line-height: 15px; pointer-events: none; }
/* round 4d: the tag row of an AI block (tag, Reviewed, Archive), the archived fold, the inspector's Archive / Delete pair, the Library's Archived chip */
.gd-aibar { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin: 0 0 4px; }   /* round 4j: on its own row at the top right, inside the block's padding */
.gd-aibar .gd-aitag { position: static; }
.gd-aibtn { padding: 0 8px; font-size: 11px; line-height: 18px; min-height: 0; background: var(--white); }
.gd-btn-quiet { color: var(--muted); }
.gd-idelrow { display: flex; gap: 8px; margin-top: 18px; }
.gd-idelrow .gd-btn-pri { flex: 1; }
.gd-arch { width: 760px; max-width: 100%; margin: 18px auto 0; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; font-size: 13px; }
.gd-arch summary { cursor: pointer; font-weight: 600; color: var(--muted); }
.gd-arch-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.gd-arch-row:first-of-type { margin-top: 8px; }
.gd-arch-t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.gd-arch-t small, .gd-arch-gt small { display: block; color: var(--faint); font-size: 12px; }
.gd-fchip.on { background: var(--blue-tint); border-color: var(--blue); color: var(--blue-dark); }
.gd-arch-list { display: flex; flex-direction: column; }
.gd-arch-g { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.gd-arch-gt { flex: 1; min-width: 200px; overflow-wrap: anywhere; }
.gd-blk-amber { border-color: var(--amber); background: #FFF9EE; }
.gd-blk-amber.sel { border-color: var(--amber); box-shadow: 0 0 0 3px #FCEBD0; }
.gd-why { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12.5px; color: #7A4E00; flex-wrap: wrap; font-family: var(--font); }
.gd-why .gd-btn-sm { padding: 2px 9px; font-size: 12px; }
.gd-why-t { flex: 1; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gd-blk-new { animation: gdnew 1.2s ease-out; }
@keyframes gdnew { from { background: var(--blue-tint); } }

/* the check inspector */
.gd-ck-card { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.gd-ck-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gd-ck-h .gd-ih { margin: 0; }
.gd-ck-q { margin: 8px 0; padding: 6px 10px; border-left: 3px solid var(--blue); background: var(--blue-tint); font-family: Georgia, "Times New Roman", serif; font-size: 12.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.gd-ck-pic img { display: block; max-width: 100%; max-height: 140px; margin: 8px 0; border: 1px solid var(--line); border-radius: 4px; }
.gd-ck-why { margin: 6px 0; color: #7A4E00; font-size: 12.5px; }
.gd-ck-done { color: var(--green-dark); font-weight: 600; font-size: 12.5px; }
.gd-ck-miss { color: var(--faint); font-size: 12px; }
.gd-ck-line { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 2px 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.gd-ck-line > span { color: var(--muted); }
.gd-ck-line > b { overflow-wrap: anywhere; font-weight: 600; }
.gd-ck-line > :nth-child(3) { grid-column: 2; justify-self: start; }
.gd-ck-sug { padding: 8px 0; border-top: 1px solid var(--line-soft); }
.gd-ck-sug p { margin: 0 0 6px; }
.gd-ck-pics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.gd-ck-thumb { border: 1px solid var(--line); border-radius: 6px; background: var(--white); padding: 3px; cursor: pointer; }
.gd-ck-thumb:hover { border-color: var(--blue); }
.gd-ck-thumb img { display: block; width: 100%; height: 70px; object-fit: cover; }

/* ---- Purchasing: the quote drop zone (New request / Add quote) and what the AI filled ---- */
.pu-qd { display: block; width: 100%; border: 2px dashed var(--gray-3); border-radius: var(--radius-lg); background: var(--gray-1); padding: 18px 14px; text-align: center; cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, background .15s; }
.pu-qd:hover, .pu-qd:focus-visible { border-color: var(--blue); }
.pu-qd.over { border-color: var(--blue); background: var(--blue-tint); }
.pu-qd.busy { border-color: var(--blue); cursor: progress; }
.pu-qd-in { display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; }
.pu-qd-in b { font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
.pu-qd-in span { font-size: 12.5px; color: var(--muted); }
.pu-qd-msg { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.pu-qd-msg.err { color: var(--red); }
.pu-aiban { margin: 8px 0 0; }
.pu-ai { background: var(--blue-tint) !important; box-shadow: 0 0 0 2px var(--blue); }
@media (max-width: 820px) { .pu-qd { padding: 22px 14px; min-height: 76px; } }
/* Purchasing request attachments (reuses the .pu-qd drop zone look) */
.pu-ad { padding: 14px 12px; }
.pu-adlist, .pu-adfiles { display: flex; flex-direction: column; gap: 6px; }
.pu-adlist { margin-top: 8px; }
.pu-adrow { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--gray-2); }
.pu-adrow:last-child { border-bottom: 0; }
.pu-adn { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pu-adn b, .pu-adn .dv-lnk { overflow-wrap: anywhere; text-align: left; }
.pu-adn small { color: var(--muted); font-size: 12.5px; }
.pu-adkind { flex: 0 0 auto; max-width: 130px; }
.pu-adx { flex: 0 0 auto; }
.pu-adadd { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.pu-adadd .pu-adkind { align-self: flex-start; }
@media (max-width: 820px) { .pu-ad { padding: 18px 12px; min-height: 68px; } }
.pu-adwhat { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }

/* ---- SLWS sub change orders (round 5b) ---- */
.slws-root .slws-co { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.slws-root .slws-cohead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.slws-root .slws-co h3 { margin: 0; font-size: 16px; font-weight: 800; }
.slws-root .slws-cohead .btn, .slws-root .slws-co .btn-sm { width: auto; min-height: 36px; padding: 0 14px; font-size: 14px; }
.slws-root .slws-colist { display: grid; gap: 8px; }
.slws-root .slws-coitem { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; display: grid; gap: 4px; }
.slws-root .slws-coitem.void { opacity: .65; }
.slws-root .slws-coitem.void .slws-coamt { text-decoration: line-through; }
.slws-root .slws-cotop { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.slws-root .slws-coamt { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
.slws-root .slws-coamt.neg { color: var(--red); }
.slws-root .slws-conote { font-weight: 700; color: #B5551F; }
.slws-root .slws-colines { margin: 2px 0 0; padding: 0; list-style: none; display: grid; gap: 2px; font-size: 13.5px; }
.slws-root .slws-colines li { display: flex; flex-wrap: wrap; gap: 2px 10px; justify-content: space-between; }
.slws-root .slws-colines li > span:first-child { flex: 1 1 180px; }
.slws-root .slws-coacts, .slws-root .slws-coask { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.slws-root .slws-coask input { flex: 1 1 220px; min-height: 36px; }
.slws-root .slws-cosheet { padding: 12px; border: 1px solid var(--blue); border-radius: 10px; background: var(--blue-tint); display: grid; gap: 10px; }
.slws-root .slws-cosheet h4 { margin: 0; font-size: 15px; font-weight: 800; }
.slws-root .slws-cofields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.slws-root .slws-colines-edit { display: grid; gap: 6px; }
.slws-root .slws-coline { display: grid; grid-template-columns: minmax(110px, 1.6fr) minmax(150px, 3fr) 1fr .6fr .8fr .9fr 1fr .6fr auto; gap: 6px; align-items: center; }
.slws-root .slws-coline input { min-width: 0; min-height: 36px; padding: 0 8px; }
.slws-root .slws-coline select { min-width: 0; min-height: 36px; padding: 0 6px; }
.slws-root .slws-cobar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.slws-root .slws-cototal { margin-left: auto; font-weight: 700; }
.slws-root .slws-vsub { margin: 10px 0 0; font-size: 14px; font-weight: 800; }
@media (max-width: 820px) { .slws-root .slws-coline { grid-template-columns: 1fr 1fr 1fr; } .slws-root .slws-coline input.d, .slws-root .slws-coline select { grid-column: 1 / -1; } }

/* One risk rule (dfow.js, docs/rounds/risk-score-one-rule-2026-10-15.md): the "worst: <hazard> NN%" line under the chip's
   headline, on the Work Plans list card and on the breakdown sheet, coloured by the Safety-editable limits (df-risk-mid / -hi). */
.st-badge.df-risk .df-risk-worst { display: block; font-size: 11px; font-weight: 600; opacity: .9; margin-top: 1px; }
.obs-v2 .ob-rtext .df-worst { font-weight: 600; }
.obs-v2 .ob-rtext .df-worst.df-risk-mid { color: var(--gold-ink); }
.obs-v2 .ob-rtext .df-worst.df-risk-hi { color: var(--red); }
.df-rb-worst { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--gray-7); }
.df-rb-worst.df-risk-mid { color: var(--gold-ink); }
.df-rb-worst.df-risk-hi { color: var(--red); }

/* Purchasing: vendors invited to quote through the portal (purchasing-requests.js) */
.pu-newpq { background: var(--blue-tint); border-color: #BCD3EE; color: var(--blue-dark); margin-left: 6px; }
.pu-portal { background: var(--blue-tint); border-color: #BCD3EE; color: var(--blue-dark); }
.pu-lead { font-size: 12.5px; }
.pu-inv .field { margin-bottom: 10px; }
.pu-inv textarea { width: 100%; min-height: 72px; }
.pu-invrow .btn { width: auto; min-height: 32px; }
.pu-inv-invited { background: var(--gold-tint); border-color: #E8C55A; color: #8A6500; }
.pu-inv-sent { background: var(--blue-tint); border-color: #BCD3EE; color: var(--blue-dark); }
.pu-inv-awarded { background: var(--green-tint); border-color: #B7D9A5; color: var(--green-dark); }
.pu-invadd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.pu-invadd select { flex: 1 1 200px; min-width: 0; }
.pu-invadd .btn { width: auto; }
.pu-shr { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 400; color: var(--ink); white-space: nowrap; }
.pu-shr input { margin: 0; }
/* the attachment list: the Share tick leads each row, a "Share" heading sits over the ticks, a Shared pill follows the file name */
.pu-adhd { padding: 0 0 2px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.pu-shared { margin-left: 6px; background: var(--green-tint); color: var(--ink); }
.pu-adn > span:first-child { overflow-wrap: anywhere; }
/* the cost code box on a request line (type, the matches drop down, x clears) uses .jp-tbox / .jp-tlist / .jp-topt above */
.pu-ccbox .pr-l-ccq { padding-right: 30px; }
.pu-ccx { position: absolute; right: 2px; top: 0; bottom: 0; min-width: 30px; background: none; border: 0; font-size: 20px; line-height: 1; color: var(--gray-5); cursor: pointer; }
.pu-ccopt .pu-muted { margin-left: 6px; font-size: 12px; }
.pu-ccopt.pu-active { background: var(--gray-1); }

/* ============================================================
   Day plan (dayplan.js) — one day of the look-ahead as crew and sub cards. Phone first: cards stack; 2 columns at 900+, 3 at 1400+.
   Mock-up: docs/day-plan-mockup.html (v2). The Shifts rows in Job settings (job-settings.js) share the .js-shift rule.
   ============================================================ */
.js-shift { display:flex; flex-wrap:wrap; gap:6px 10px; align-items:flex-end; padding:6px 0; border-top:1px solid var(--line-soft); }
.js-shift:first-child { border-top:0; }
.js-shift > .la-lcin[data-sf="name"] { flex:1 1 140px; margin-left:0; }
.js-shift label { display:flex; flex-direction:column; gap:2px; font-size:11.5px; color:var(--muted); }
.js-shift label .la-lcin { margin-left:0; width:96px; }
.js-shift label .la-lcin[data-sf="hours"] { width:70px; }
.dp-root { --dp-accent:var(--blue); --dp-soft:var(--blue-tint); --dp-sub:#6C8FB3; --dp-subsoft:#DFE9F4; display:grid; grid-template-columns:minmax(0,1fr); gap:10px; min-width:0; }
.dp-ctl { display:flex; flex-wrap:wrap; gap:8px 12px; align-items:center; }
.dp-datebar { display:inline-flex; align-items:center; gap:4px; flex-wrap:wrap; }
.dp-arrow { width:36px; height:36px; border:1px solid var(--line); border-radius:6px; background:var(--white); color:var(--ink); font:600 18px/1 var(--font); cursor:pointer; padding:0; }
.dp-datepill { background:var(--dp-accent); color:#fff; border-radius:99px; padding:7px 14px; font-weight:700; font-size:14px; white-space:nowrap; }
.dp-datebox { font:inherit; font-size:13px; padding:5px 6px; border:1px solid var(--line); border-radius:6px; background:var(--white); color:var(--ink); width:auto; }
.dp-chips { display:inline-flex; gap:6px; }
.dp-chip { border:1px solid var(--line); border-radius:99px; padding:5px 11px; font:inherit; font-size:13px; background:var(--white); color:var(--ink); cursor:pointer; }
.dp-chip.on { border-color:var(--dp-accent); color:var(--blue-dark); background:var(--dp-soft); font-weight:600; }
.dp-seg { display:inline-flex; align-items:center; flex-wrap:wrap; }
.dp-seglab { font-size:12px; color:var(--muted); margin-right:6px; }
.dp-segb { border:1px solid var(--line); padding:5px 11px; font:inherit; font-size:13px; background:var(--white); color:var(--ink); margin-left:-1px; cursor:pointer; }
.dp-seglab + .dp-segb { margin-left:0; border-radius:6px 0 0 6px; }
.dp-segb:last-child { border-radius:0 6px 6px 0; }
.dp-segb.on { background:var(--dp-accent); border-color:var(--dp-accent); color:#fff; font-weight:600; }
.dp-head { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.dp-notebox { flex:1 1 260px; display:flex; align-items:center; gap:8px; min-width:0; }
.dp-notelab { font-size:12px; color:var(--muted); white-space:nowrap; }
.dp-in, .dp-ta { font:inherit; font-size:13px; line-height:1.4; color:var(--ink); background:var(--white); border:1px solid var(--line); border-radius:6px; padding:6px 9px; min-width:0; width:auto; }
.dp-notebox .dp-in { flex:1; }
.dp-ta { width:100%; display:block; resize:vertical; font-family:ui-monospace, Consolas, monospace; font-size:12.5px; min-height:0; }
.dp-btns { display:flex; flex-wrap:wrap; gap:8px; margin-left:auto; }
.dp-btn { font:inherit; font-weight:600; font-size:13px; line-height:1; border-radius:6px; padding:10px 13px; border:1px solid var(--dp-accent); background:var(--dp-accent); color:#fff; cursor:pointer; width:auto; }
.dp-btn.dp-ghost { background:transparent; color:var(--blue-dark); }
.dp-src { margin:0; font-size:12px; color:var(--muted); }
.dp-status { margin-left:6px; font-weight:600; color:var(--green-dark); white-space:nowrap; }
.dp-status.bad { color:var(--red); }
.dp-cards { display:grid; gap:10px; grid-template-columns:minmax(0,1fr); align-items:start; }
.dp-shift { grid-column:1 / -1; margin:4px 0 -2px; font-size:12px; font-weight:700; color:var(--muted); letter-spacing:.04em; text-transform:uppercase; }
.dp-card { background:var(--white); border:1px solid var(--line); border-radius:8px; padding:10px 12px; min-width:0; }
.dp-gap { border-style:dashed; }
.dp-chead h3 { margin:0 0 8px; font-size:15px; font-weight:700; }
.dp-dot { color:var(--muted); font-weight:400; }
.dp-fm { font-weight:600; }
.dp-n { color:var(--muted); font-weight:400; font-size:13px; }
.dp-crewsec + .dp-crewsec { margin-top:10px; padding-top:8px; border-top:1px solid var(--line); }
.dp-crewh { margin:0 0 6px; font-size:13.5px; font-weight:700; }
.dp-crewtag { font-size:12.5px; font-weight:600; color:var(--blue-dark); margin-bottom:2px; }
.dp-pnames { font-size:12px; color:var(--muted); margin-top:3px; }
.dp-acts, .dp-ppl { list-style:none; margin:0; padding:0; }
.dp-act { padding:9px 0; border-top:1px solid var(--line-soft); position:relative; }
.dp-act:first-child { border-top:0; padding-top:0; }
.dp-actrow { display:flex; gap:9px; }
.dp-tick { flex:none; width:20px; height:20px; border:1.5px solid var(--gray-3); border-radius:50%; display:grid; place-items:center; font-size:12px; font-weight:700; color:#fff; margin-top:1px; }
.dp-done .dp-tick { background:var(--green); border-color:var(--green); }
.dp-tick.dp-warn { border-color:var(--amber); color:var(--amber); background:transparent; }
.dp-tick.dp-idle { border-style:dashed; }
.dp-actbody { min-width:0; flex:1; }
.dp-codeline { font-size:14px; }
.dp-codeline b { font-family:ui-monospace, Consolas, monospace; font-size:13px; font-weight:700; }
.dp-actname { font-weight:500; font-size:13.5px; margin-top:1px; }
.dp-meta { display:flex; flex-wrap:wrap; gap:2px 10px; font-size:12px; color:var(--muted); margin-top:2px; }
.dp-tags { margin-top:4px; }
.dp-tag { display:inline-block; font-family:ui-monospace, Consolas, monospace; font-size:11px; padding:1px 6px; border-radius:4px; border:1px solid var(--line); color:var(--muted); margin:0 4px 2px 0; background:var(--canvas); }
.dp-amber { display:inline-block; font-size:11px; padding:1px 6px; border-radius:4px; border:1px solid var(--amber); color:var(--amber); margin-left:6px; white-space:nowrap; font-weight:600; }
.dp-boxes { margin-top:7px; display:grid; gap:6px; }
.dp-boxlab { display:block; font-size:11px; color:var(--muted); margin-bottom:2px; }
.dp-qbox { display:inline-flex; align-items:center; gap:6px; font-size:13px; border:1px solid var(--line); border-radius:6px; padding:4px 8px; background:var(--canvas); justify-self:start; }
.dp-qbox .dp-in { width:84px; padding:3px 6px; text-align:right; font-family:ui-monospace, Consolas, monospace; font-weight:600; }
.dp-qbox .dp-in.dp-dflt { color:var(--muted); font-weight:400; font-style:italic; }
.dp-x { position:absolute; right:0; top:6px; width:28px; height:28px; border:0; background:none; color:var(--faint); font-size:20px; line-height:1; cursor:pointer; }
.dp-x:hover { color:var(--red); }
.dp-subcard h3 .dp-x { position:static; margin-left:auto; }
.dp-link { background:none; border:0; padding:0; font:inherit; font-size:13px; color:var(--blue-dark); text-decoration:none; cursor:pointer; }
.dp-link:hover { text-decoration:underline; }
.dp-addcode { display:inline-block; margin-top:8px; }
.dp-addsub { padding:2px 0 0; grid-column:1 / -1; }
.dp-ppl { margin-top:8px; padding-top:8px; border-top:1px solid var(--line); font-size:13px; }
.dp-ppl li { padding:3px 0; }
.dp-ppl li span { color:var(--muted); }
.dp-ppl li.dp-tap { cursor:pointer; }
.dp-ppl li.dp-tap:hover { background:var(--canvas); }
.dp-fore { font-weight:700; }
.dp-fore span { font-weight:400; }
.dp-pc { display:inline-block; font-family:ui-monospace, Consolas, monospace; font-size:10.5px; padding:0 5px; margin-left:4px; border-radius:4px; background:var(--canvas); border:1px solid var(--line-soft); color:var(--muted); }
.dp-subtag { margin-left:8px; }
.dp-pick { display:grid; gap:2px; margin:4px 0 6px 12px; padding:6px 8px; border:1px solid var(--line); border-radius:6px; background:var(--canvas); font-weight:400; }
.dp-pick .la-chk { padding:3px 0; }
.dp-pcap { margin:8px 0 0; font-size:12px; color:var(--muted); }
.dp-subcard { border-color:var(--dp-sub); }
.dp-subcard .dp-chead { margin:-10px -12px 8px; padding:9px 12px; background:var(--dp-subsoft); border-bottom:1px solid var(--line); border-radius:7px 7px 0 0; }
.dp-subcard .dp-chead h3 { margin:0; display:flex; flex-wrap:wrap; align-items:center; }
.dp-headcount { display:inline-flex; align-items:center; gap:6px; font-size:13px; margin-bottom:6px; }
.dp-headcount .dp-in { width:64px; padding:3px 6px; text-align:right; font-family:ui-monospace, Consolas, monospace; font-weight:600; }
.dp-pop { max-height:340px; overflow-y:auto; }
.df-seg { flex-wrap:wrap; }   /* five view buttons (List Table Gantt Look-ahead Day plan) wrap on a phone instead of pushing the page sideways */
@media (max-width: 560px) {
  .dp-btns { margin-left:0; width:100%; }
  .dp-btn { flex:1 1 140px; }
  .dp-qbox { display:flex; justify-self:stretch; }
  .dp-datebox { width:100%; }
}
@media (min-width: 900px) { .dp-cards { grid-template-columns:repeat(2, minmax(0,1fr)); } .dp-ppl { columns:2; column-gap:16px; } .dp-ppl li { break-inside:avoid; } }
@media (min-width: 1400px) { .dp-cards { grid-template-columns:repeat(3, minmax(0,1fr)); } }
/* Day plan round 2: the DRA hand-off on a crew card's header (button, then a status chip + a small menu) */
.dp-chead { display:flex; flex-wrap:wrap; align-items:flex-start; gap:0 8px; }
.dp-chead h3 { flex:1 1 auto; }
.dp-dra { display:inline-flex; align-items:center; gap:4px; margin:0 0 8px; }
.dp-crewsec > .dp-dra { margin:0 0 6px; }
.dp-dra:empty { display:none; }
.dp-drabtn { font:inherit; font-size:12.5px; font-weight:600; border:1px solid var(--dp-accent); background:var(--dp-soft); color:var(--blue-dark); border-radius:99px; padding:5px 12px; min-height:40px; cursor:pointer; width:auto; }
.dp-drachip { display:inline-flex; align-items:center; font:inherit; font-size:12.5px; font-weight:600; border-radius:99px; padding:4px 12px; min-height:36px; border:1px solid var(--line); background:var(--white); color:var(--ink); white-space:nowrap; width:auto; }
button.dp-drachip { cursor:pointer; }
.dp-dra-sent { border-color:var(--dp-accent); color:var(--blue-dark); background:var(--dp-soft); }
.dp-dra-started { border-color:var(--amber); color:var(--amber); background:#FFF6E5; }
.dp-dra-filed { border-color:var(--green); color:var(--green-dark); background:var(--green-tint); }
.dp-dra-late { border-color:var(--red); color:var(--red); background:var(--red-tint); }
.dp-dra-changed { border-color:var(--amber); color:var(--amber); background:var(--white); border-style:dashed; }
.dp-dramenu { font:inherit; font-size:16px; line-height:1; border:0; background:none; color:var(--muted); padding:4px 8px; min-height:40px; min-width:40px; cursor:pointer; width:auto; }
.dp-menuitem { display:block; width:100%; text-align:left; font:inherit; font-size:14px; padding:10px 12px; min-height:44px; border:0; background:none; cursor:pointer; color:var(--ink); }
.dp-menuitem:hover { background:var(--canvas); }
.dp-menu-red { color:var(--red); }
.dp-drapick { min-height:44px; align-items:center; }
.dp-dramodal .cp-sheet { max-width:640px; }
.dp-dramodal-h { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px; }
/* Day plan round 3: the no-crew card ("Work for the day") with its made DRAs, and the Make DRAs sheet (.cp-modal > .cp-sheet) */
.dp-nc-meta { font-size:13px; color:var(--muted); margin:-4px 0 6px; }
.dp-nc-ph { font-size:12px; font-weight:700; color:var(--blue-dark); text-transform:uppercase; letter-spacing:.04em; margin:12px 0 4px; }
.dp-nc-lines, .dp-nc-made, .dp-nc-dra ul { list-style:none; margin:0; padding:0; }
.dp-nc-lines li { padding:8px 0; border-top:1px solid var(--line-soft); }
.dp-nc-act { font-weight:600; font-size:14px; }
.dp-nc-q { font-size:12.5px; color:var(--muted); margin-top:2px; }
.dp-nc-made { border-top:1px solid var(--line); margin:4px 0 6px; }
.dp-nc-made li { display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid var(--line); min-height:56px; }
.dp-nc-n { flex:1; min-width:0; font-size:14.5px; }
.dp-nc-n b, .dp-nc-n small { display:block; }
.dp-nc-n small { font-size:13px; color:var(--gray-7); }
.dp-nc-late { color:var(--red); font-weight:700; }
.dp-nc-ok { color:var(--green-dark); font-weight:700; }
.dp-nc-loose { font-size:13px; font-weight:600; margin:2px 0 6px; }
.dp-nc-acts { margin-top:12px; display:flex; gap:8px; flex-wrap:wrap; }
.dp-nc-hint, .dp-nc-sub { font-size:13px; color:var(--gray-7); margin:8px 0 0; }
.dp-nc-sub { font-size:14.5px; margin:0 0 14px; }
.dp-nc-btn { font:inherit; font-weight:700; font-size:15px; line-height:1.2; border-radius:8px; padding:9px 16px; min-height:44px; border:1.5px solid var(--blue); cursor:pointer; width:auto; text-align:center; }
.dp-nc-primary { background:var(--blue); color:#fff; }
.dp-nc-line { background:var(--white); color:var(--blue-dark); }
.dp-nc-sm { padding:8px 14px; flex:none; }
.dp-nc-btn:disabled { opacity:.45; cursor:default; }
.dp-pjmodal .dp-nc-btn { display:block; width:100%; margin-top:10px; }
.dp-pjmodal .dp-nc-sm { display:inline-block; width:auto; margin:0 0 6px; }
.dp-pjmodal .cp-sheet h2 { margin:6px 0 8px; }
.dp-nc-pick { display:block; width:100%; text-align:left; background:var(--white); border:1.5px solid var(--gray-2); border-radius:12px; padding:14px; margin-bottom:10px; font:inherit; min-height:64px; cursor:pointer; color:var(--ink); }
.dp-nc-pick b { display:block; font-size:18px; }
.dp-nc-pick span { display:block; font-size:14.5px; color:var(--gray-7); margin-top:2px; }
.dp-nc-pick.on { border-color:var(--blue); background:var(--blue-tint); }
.dp-nc-seg { display:flex; border:1.5px solid var(--blue); border-radius:10px; overflow:hidden; margin:0 0 14px; }
.dp-nc-segb { flex:1; font:inherit; font-size:14.5px; font-weight:700; padding:11px 4px; min-height:46px; border:0; border-right:1px solid var(--blue); background:var(--white); color:var(--blue-dark); cursor:pointer; }
.dp-nc-segb:last-child { border-right:0; }
.dp-nc-segb.on { background:var(--blue); color:#fff; }
.dp-nc-dra { border:1px solid var(--line); border-radius:12px; margin-bottom:10px; overflow:hidden; }
.dp-nc-dh { display:flex; align-items:center; justify-content:space-between; gap:8px; background:var(--gray-1); padding:8px 12px; font-weight:800; font-size:15px; }
.dp-nc-dh span { font-weight:600; color:var(--gray-7); font-size:13.5px; text-align:right; }
.dp-nc-item { display:flex; align-items:center; gap:10px; padding:9px 12px; border-top:1px solid var(--line); font-size:15px; min-height:50px; }
.dp-nc-item small { display:block; color:var(--muted); font-size:13px; }
.dp-nc-move { flex:none; width:auto; max-width:50%; border:1px solid var(--gray-2); border-radius:8px; background:var(--white); padding:7px 10px; font:inherit; font-size:14px; font-weight:700; color:var(--blue-dark); min-height:44px; cursor:pointer; }
.dp-nc-add { display:block; width:100%; border:1.5px dashed #B9C2CE; border-radius:12px; background:var(--white); padding:12px; font:inherit; font-size:15.5px; font-weight:700; color:var(--blue-dark); margin-bottom:14px; min-height:48px; cursor:pointer; }
.dp-nc-add:disabled { opacity:.45; }
.dp-nc-err { border:1px solid var(--red); background:var(--red-tint); color:var(--red); border-radius:8px; padding:8px 12px; font-size:14px; margin:8px 0; }
.dp-nc-foot { display:flex; gap:10px; position:sticky; bottom:-24px; margin:12px -16px -24px; padding:12px 16px 24px; background:var(--white); border-top:1px solid var(--line); }
.dp-pjmodal .dp-nc-foot .dp-nc-btn { margin-top:0; flex:1; }
.dp-pjmodal .dp-nc-foot .dp-nc-line { flex:0 0 35%; }
@media (max-width: 560px) { .dp-dra { flex:1 1 100%; } .dp-drabtn, .dp-dramenu, button.dp-drachip { min-height:44px; } }
/* the foreman's ready card at the top of the DRA start screen (dra.js readyCardHtml) */
.dp-ready { border:2px solid var(--blue); }
.dp-ready-later { border:1px solid var(--line); opacity:.7; }
.dp-ready-k { font-size:13px; font-weight:700; color:var(--blue-dark); text-transform:uppercase; letter-spacing:.05em; }
.dp-ready-h { margin:4px 0 2px; font-size:20px; }
.dp-ready-meta { color:var(--gray-7); font-size:14.5px; margin-bottom:10px; }
.dp-ready-plans { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 10px; }
.dp-ready-plans span { background:var(--blue-tint); color:var(--blue-dark); border-radius:99px; padding:3px 10px; font-size:13.5px; font-weight:600; }
.dp-ready-lines { list-style:none; margin:0 0 14px; padding:0; border-top:1px solid var(--line); }
.dp-ready-lines li { padding:9px 0; border-bottom:1px solid var(--line); font-size:15px; }
.dp-ready-cc { font-weight:700; }
.dp-ready-st { color:var(--gray-7); font-size:14px; margin-top:2px; white-space:pre-line; }
.dp-ready-q { font-size:13.5px; color:var(--muted); margin-top:2px; }
.dra-steps-plan { font-size:13px; font-weight:700; color:var(--blue-dark); margin:10px 0 6px; text-transform:uppercase; letter-spacing:.04em; }
.dl-actsx { margin-top: 8px; }
.dl-actsx .btn { width: 100%; min-height: 44px; font-size: 14px; }

/* Look-ahead on a phone (lookahead-phone.js): one card per activity, blue planned / green done / amber only for notes and the P6 tag (owner 2026-10-17: "too red"). */
.lap-root { --lap-blue: #0057b8; --lap-ink: #00438f; --lap-fill: #e8f0fb; --lap-done: #2e7d32; --lap-warn: #c98a1b; display: grid; gap: 10px; min-width: 0; padding-bottom: 8px; }
.lap-ctl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lap-datebar { display: inline-flex; align-items: center; gap: 4px; }
.lap-arrow { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--gray-7); font: 600 18px/1 inherit; cursor: pointer; }
.lap-arrow:disabled { opacity: .35; cursor: default; }
.lap-datepill { background: var(--lap-blue); color: #fff; border: 0; border-radius: 99px; padding: 8px 14px; font: 600 14px/1 inherit; white-space: nowrap; cursor: pointer; }
.lap-status { display: inline-block; font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--lap-warn); color: var(--lap-warn); white-space: nowrap; }
.lap-status.committed { border-color: var(--lap-done); color: var(--lap-done); }
.lap-status.superseded { border-color: var(--line); color: var(--muted); }
.lap-seg { display: inline-flex; align-items: center; }
.lap-seglab { font-size: 12px; color: var(--muted); margin-right: 6px; }
.lap-segb { border: 1px solid var(--line); padding: 6px 11px; font: 13px/1.2 inherit; background: var(--white); color: var(--gray-7); margin-left: -1px; cursor: pointer; }
.lap-seglab + .lap-segb { margin-left: 0; border-radius: 6px 0 0 6px; }
.lap-segb:last-child { border-radius: 0 6px 6px 0; }
.lap-segb.on { background: var(--lap-blue); border-color: var(--lap-blue); color: #fff; font-weight: 600; }
.lap-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.lap-chip { border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; font: 13px/1.2 inherit; background: var(--white); color: var(--gray-7); cursor: pointer; }
.lap-chip.on { border-color: var(--lap-blue); color: var(--lap-ink); background: var(--lap-fill); font-weight: 600; }
.lap-sect { display: grid; gap: 8px; }
.lap-dfow { margin: 2px 0 0; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; display: flex; justify-content: space-between; gap: 8px; }
.lap-cnt { font-weight: 400; letter-spacing: 0; text-transform: none; }
.lap-where { margin-top: -4px; font-size: 12px; color: var(--muted); }
.lap-cards { display: grid; gap: 10px; }
.lap-card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; min-width: 0; }
.lap-name { font-weight: 700; font-size: 14.5px; overflow-wrap: anywhere; }
.lap-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.lap-sub b { font-family: Consolas, monospace; font-size: 11.5px; font-weight: 500; color: var(--gray-7); }
.lap-tags { margin-top: 6px; }
.lap-subs { list-style: none; margin: 6px 0 0; padding: 0 0 0 10px; border-left: 2px solid var(--line); font-size: 12.5px; }
.lap-subs li { display: flex; justify-content: space-between; gap: 8px; padding: 1px 0; }
.lap-subs .lap-subrng { color: var(--muted); white-space: nowrap; }
.lap-tag, .lap-tags .la-tag { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; font-size: 11px; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); margin: 0 4px 3px 0; background: var(--gray-1); }
.lap-tag.crew { font-weight: 600; color: var(--lap-ink); border-color: #6c8fb3; background: #dfe9f4; }
.lap-tags .la-tag.req { border-style: dashed; background: transparent; }
.lap-tag.eq { font-family: Consolas, monospace; }
.lap-tag.warn { border-color: var(--lap-warn); color: #7a5c00; background: var(--gold-tint); font-weight: 600; }
.lap-stat { margin: 8px 0 5px; font-size: 12.5px; color: var(--gray-7); }
.lap-stat .lap-tag { margin: 0 0 0 4px; }
.lap-bl { margin: 0 0 5px; font-size: 12.5px; color: var(--gray-7); } .lap-bl .late { color: var(--red); font-weight: 600; } .lap-bl .early { color: var(--green-dark); font-weight: 600; }
.lap-prog { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.lap-prog i { display: block; height: 100%; background: var(--lap-blue); }
.lap-prog.full i { background: var(--lap-done); }
.lap-foot { position: sticky; bottom: 0; padding: 10px 12px; background: var(--white); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); text-align: center; }
.lap-none { margin: 12px 0; text-align: center; }

/* ============================================================
   Schedule push + start from scratch (2026-10-19, docs/rounds/schedule-push-and-build-2026-10-19.md).
   The ghost is an imported (file) date under a field-date bar; the wash marks the rows a pending
   push would move; the push bar is the one line that says what moves, with Save and Undo.
   ============================================================ */
.df-gantt-ghost {
  position: absolute; height: 22px; border-radius: 6px; border: 1.5px dashed var(--gray-5);
  background: transparent; pointer-events: none; box-sizing: border-box;
}
.df-gantt-bar.df-gantt-bar-field { box-shadow: 0 0 0 2px var(--gold) inset, 0 1px 2px rgba(26, 26, 26, 0.15); }
.sg-tr.sg-push-wash, .df-gantt-label-row.sg-push-wash { background: var(--blue-tint); }
.df-gantt-bar.sg-push-wash { outline: 2px solid var(--blue-dark); outline-offset: 1px; }
.sg-push-row { position: absolute; left: 0; right: 0; background: var(--blue-tint); pointer-events: none; }
.sg-pushbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 10px;
  padding: 8px 12px; border: 1px solid var(--blue); border-radius: var(--radius-lg); background: var(--blue-tint);
  font-size: 14px; color: var(--ink);
}
.sg-pushbar .btn { width: auto; margin: 0; }
.sg-pushbar-text { flex: 1 1 260px; min-width: 0; }
/* The Gantt's Change history drawer (sched-history.js): fixed to the right under the app header, no backdrop so the chart stays usable; a phone gets a full-screen sheet */
.sg-hist {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); z-index: 45; box-sizing: border-box;
  display: flex; flex-direction: column; overflow-y: auto; padding: 10px 14px 16px;
  background: var(--white); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: 13px;
}
.sg-hist-phone { left: 0; width: auto; z-index: 70; border-left: 0; box-shadow: none; }
.sg-hist-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 16px; }
.sg-hist-x { border: 0; background: none; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; padding: 2px 8px; }
.sg-hist .sub { margin: 4px 0; font-size: 12.5px; }
.sg-hist-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 6px 0 2px; font-size: 13px; color: var(--gray-7); }
.sg-hist-pick select, .sg-hist-pick input[type="date"] { width: auto; max-width: 100%; font-size: 13px; padding: 4px 6px; border: 1px solid var(--gray-3); border-radius: 6px; background: var(--white); }
.sg-hist-btns { display: flex; gap: 8px; margin: 6px 0 4px; }
.sg-hist-btns .btn { width: auto; flex: none; margin: 0; }
.sg-hist-list { margin-top: 6px; }
.sg-hist-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 8px 10px; margin: 0 0 8px; }
.sg-hist-head { font-weight: 700; color: var(--ink); }
.sg-hist-meta { font-size: 12px; color: var(--muted); margin: 1px 0 4px; }
.sg-hist-note { font-size: 13px; color: var(--ink); margin: 1px 0 2px; white-space: pre-wrap; }
.sg-hist-t { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.sg-hist-t td { padding: 3px 8px 3px 0; border-top: 1px solid var(--line-soft); vertical-align: top; }
.sg-hist-t td.id { font-weight: 700; white-space: nowrap; }
.sg-hist-t td.d { text-align: right; white-space: nowrap; font-weight: 700; padding-right: 0; }
.sg-hist-t .ch { color: var(--muted); white-space: pre-wrap; }
.sg-hist-t .why { font-style: italic; }
.df-gantt-link {
  position: absolute; top: 50%; right: -7px; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%;
  background: var(--white, #fff); border: 2px solid var(--blue-dark); cursor: crosshair; touch-action: none; z-index: 3;
}
.df-gantt-bar.df-gantt-bar-linkable { overflow: visible; }
.df-gantt-bar.df-gantt-bar-linkable .df-gantt-fill { border-radius: 6px 0 0 6px; }
.sg-linkline { position: absolute; height: 2px; background: var(--blue-dark); transform-origin: 0 50%; pointer-events: none; z-index: 4; }
.sg-addrow {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px; margin: 10px 0 0;
  padding: 10px 12px; border: 1px dashed var(--line); border-radius: var(--radius-lg); background: var(--gray-1);
}
.sg-addrow label { display: flex; flex-direction: column; gap: 2px; font-size: 12px; font-weight: 700; color: var(--gray-6, var(--ink)); }
.sg-addrow input, .sg-addrow select { font-size: 14px; padding: 5px 7px; min-width: 0; }
.sg-addrow .sg-add-name { flex: 2 1 200px; }
.sg-addrow .sg-add-name input, .sg-addrow .sg-add-pred input { width: 100%; }
.sg-addrow .sg-add-pred { flex: 2 1 200px; }
.sg-addrow .sg-add-num input { width: 72px; }
.sg-addrow .btn { width: auto; margin: 0; }
.sg-scratch { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sg-scratch .btn { width: auto; margin: 0; }
/* The bar popup (dfow.js schedPopupHtml): ONE fixed element on the body, so the chart never moves under it. A
   popover beside the bar on a laptop; on a phone the app's li-sheet bottom sheet carries the same body. */
.sg-pop {
  position: fixed; z-index: 190; width: 380px; max-width: calc(100vw - 16px); max-height: calc(100vh - 16px);
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); font-size: 14px; color: var(--ink);
}
.sg-pop-sheet { z-index: 190; }
.sg-pop-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px 14px; }
.sg-pop-foot { flex: 0 0 auto; display: flex; justify-content: flex-end; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); }
.sg-pop .btn, .sg-pop-sheet .btn { width: auto; margin: 0; }
.sg-pop .field label { font-size: 12px; }
.sg-pop input, .sg-pop select { min-height: 36px; font-size: 14px; padding: 4px 8px; }
.sg-pop .btn-sm { min-height: 36px; padding: 4px 12px; }
.sg-pop-sheet .df-pick-bar { display: flex; gap: 8px; }
.sg-pop-sheet .df-pick-bar .btn { flex: 1 1 0; width: auto; }
.sg-pop-x { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  border: 0; background: none; color: var(--muted); cursor: pointer; }
.sg-pop-x svg { width: 16px; height: 16px; }
.sg-pop-namerow input, .sg-pop-links input, .sg-pop-links select { font: inherit; font-size: 15px; min-height: 40px; padding: 4px 10px; border: 1.5px solid var(--gray-3); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); }
.sg-pop-head { padding-right: 26px; }
.sg-pop-name { margin: 0; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.sg-pop-namerow { display: flex; gap: 8px; align-items: center; }
.sg-pop-namerow input { flex: 1 1 auto; min-width: 0; font-weight: 700; }
.sg-pop-id { color: var(--muted); font-weight: 600; }
.sg-pop-wbs { margin: 2px 0 0; font-size: 12.5px; }
.sg-pop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; margin: 10px 0; }
.sg-pop-grid .field { margin-bottom: 0; }
.sg-pop-dur { min-height: 36px; display: flex; align-items: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.sg-pop-wait { margin: 8px 0 0; padding: 6px 10px; border-left: 4px solid var(--gold); border-radius: 0 6px 6px 0; background: var(--gold-tint); font-size: 13.5px; }
.sg-pop-sec { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.sg-pop-imp { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin: 10px 0 0; }
.sg-pop-imp .sub { margin: 0; font-size: 13px; }
.sg-pop-links { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.sg-pop-links ul { list-style: none; margin: 4px 0; padding: 0; }
.sg-pop-links li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 0; }
.sg-pop-rm { margin: 10px 0 0; }
/* Also moves: the followers a date change would carry along (sg-pop-sec in the popup, under the push bar's Show) */
.sg-moves { list-style: none; margin: 4px 0 0; padding: 0; }
.sg-moves li { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; padding: 4px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.sg-mv-id { font-weight: 700; font-variant-numeric: tabular-nums; }
.sg-mv-name { min-width: 0; overflow-wrap: anywhere; }
.sg-mv-what { grid-column: 2; color: var(--muted); font-size: 12.5px; }
.sg-moves-none { margin: 4px 0 0; font-size: 13.5px; }
.sg-moves-err { margin: 4px 0 0; padding: 6px 10px; border-radius: 6px; background: var(--red-tint); color: var(--red); font-size: 13.5px; }
.sg-moves-more { margin-top: 6px; }
.sg-pushlist { margin: -4px 0 10px; padding: 6px 12px; border: 1px solid var(--blue); border-radius: var(--radius-lg); background: var(--white); }
/* The look-ahead as a prompt (dfow.js schedLa*): a dot in the grid's Start cell, a thin line on the phone's bar, the line in the bar
   popup, the toolbar chip and its review list (the bar popup's sg-pop classes carry the shell). Purple: the Gantt's other marks are
   gold (field dates), red (critical) and blue (a waiting push). */
.sg-la-dot { display: inline-block; width: 7px; height: 7px; margin-left: 5px; border-radius: 50%; background: var(--purple); vertical-align: middle; cursor: help; }
.df-gantt-bar.df-gantt-bar-la { border-bottom: 3px solid var(--purple); }
.sg-la-chip { width: auto; margin: 0; border-color: var(--purple); color: var(--purple); font-weight: 600; }
.sg-la-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.sg-la-row .btn { width: auto; margin: 0; }
.sg-pop-la { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin: 10px 0 0; padding: 6px 10px; border-left: 4px solid var(--purple); border-radius: 0 6px 6px 0; background: #EFEAFA; font-size: 13.5px; }
.sg-la-pop { width: 460px; }
.sg-la-top { display: flex; justify-content: flex-end; }
.sg-la-note { margin: 4px 0 0; font-size: 12.5px; }
.sg-la-note:empty { display: none; }
.sg-la-list { list-style: none; margin: 6px 0 0; padding: 0; }
.sg-la-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.sg-la-who { grid-column: 1 / -1; font-weight: 600; overflow-wrap: anywhere; }
.sg-la-dates { display: flex; flex-direction: column; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.sg-la-btns { display: flex; gap: 6px; align-items: center; }

/* Standard work plans r1a (dfow.js stdPanel / stdStepCtl, dfow-view.js pageMore). The stage pill, the Launch
   section's lists, the per-step marks, the More notes box, the list number. Colours are the app's tokens:
   grey = Assigned, blue = PMT intake, amber = QS review, green = Ready. Phone first. */
.std-stage { display: inline-block; align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: var(--line); color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.std-stage[data-stage="pmt_intake"] { background: var(--blue-tint); color: var(--blue-dark); }
.std-stage[data-stage="qs_review"] { background: var(--gold-tint); color: var(--gold-ink); }
.std-stage[data-stage="ready"] { background: var(--green-tint); color: var(--green-dark); }

/* plan page: the Launch section */
.std-panel { max-width: 760px; }
.std-stageline { margin: 0 0 12px; font-size: 16px; font-weight: 600; color: var(--ink); }
.std-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.df-wide .std-acts .btn { width: auto; min-height: 36px; padding: 0 14px; border-radius: 6px; }
.std-h { margin: 22px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--muted); }
.std-h2 { margin: 14px 0 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.std-flaglist, .std-hist { list-style: none; margin: 0; padding: 0; }
.std-flag { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.std-flag-type { margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--gold-tint); color: var(--gold-ink); font-size: 12px; font-weight: 600; }
.std-flag-by { color: var(--muted); font-size: 13px; }
.std-flag-done { opacity: .65; }
.std-flag .std-flag-resolve { width: auto; justify-self: start; margin-top: 4px; }
.std-flagadd { margin-top: 10px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 8px; background: var(--canvas); }
.std-flagadd .field { margin-bottom: 8px; }
.std-flagadd .btn { width: auto; }
.std-hist li { padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; color: var(--ink); }

/* steps */
.std-tick { color: var(--green-dark); font-weight: 800; }
.std-stepline { flex: 0 0 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 2px 0 6px 38px; font-size: 14px; }
.df-stepc .std-stepline { margin: 4px 0 0 24px; }
.std-ctl { display: inline-flex; align-items: center; gap: 14px; }
.std-rev { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--ink); }
.std-rev-toggle { width: 18px; height: 18px; margin: 0; accent-color: var(--green); cursor: pointer; }
.std-na-toggle { padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.std-na-toggle.on { background: var(--line); color: var(--ink); }
.std-naline { flex: 0 0 100%; color: var(--muted); font-style: italic; }
.std-na .df-step-in, .std-na .df-stepw { color: var(--faint); text-decoration: line-through; }
.std-na .df-step-in { background: var(--canvas); }
.std-readyline { margin: 0 0 10px; font-weight: 600; color: var(--green-dark); }

/* the standard number on a plan's row in the Work plans list (dfow.js renderList) */
.df-table th.df-num, .df-table td.df-num { width: 1%; padding-right: 4px; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.df-pnm .df-num { margin-right: 4px; font-weight: 700; color: var(--blue-dark); font-variant-numeric: tabular-nums; }

/* the detail box on a step (dfow.js stepPlusHtml / stepDetailHtml): a round + at the row's right edge opens one big box under the row; closed, the first line shows muted */
.df-step-plus { flex: 0 0 auto; width: 28px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--muted); font: inherit; font-size: 18px; line-height: 1; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.df-step-plus:hover { color: var(--ink); border-color: var(--muted); }
.df-step-plus.has { background: var(--blue); border-color: var(--blue); color: var(--white); }
.df-step-plus[aria-expanded="true"] { box-shadow: 0 0 0 3px rgba(0, 87, 184, 0.15); }
.df-step .df-step-in { flex: 1 1 150px; }
.df-step-detail[hidden], .df-step-detail-peek[hidden] { display: none; }
.df-step-detail { flex: 0 0 100%; box-sizing: border-box; margin: 8px 0 6px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); }
.df-step-detail-in { display: block; width: 100%; min-height: 9em; box-sizing: border-box; font: inherit; font-size: 14px; resize: vertical; }
.df-step-detail-acts { display: flex; justify-content: flex-end; gap: 14px; margin-top: 6px; }
.df-step-survey { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; }
.df-step-survey-tag { display: inline-block; flex: 0 0 auto; margin-left: 6px; padding: 2px 6px; border: 1px solid var(--blue); border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 1.2; color: var(--blue); white-space: nowrap; }
.df-step-survey-tag[hidden] { display: none; }
.df-step-detail-acts button { padding: 2px 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--blue-dark); cursor: pointer; }
.df-step-detail-peek { flex: 0 0 calc(100% - 38px); min-width: 0; box-sizing: border-box; margin: 0 0 4px 38px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.df-step-detail-ro { flex: 0 0 calc(100% - 38px); min-width: 0; box-sizing: border-box; margin: 2px 0 6px 38px; font-size: 14px; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.df-stepc .df-step-detail-ro { margin: 4px 0 0 24px; }

/* phone viewer, More segment */
.wpv-stage { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.wpv-stage .wpv-sm { display: inline; font-size: 14px; }
.wpv-na { font-style: italic; }

/* ---------- Facility Quantities (facility.js, facility-admin.js) ---------- */
/* the tile's own facility chip: the header job chip's look, in the page flow */
.fq-chip {
  display: flex; align-items: center; gap: 6px; min-height: 36px; max-width: 100%; margin-bottom: var(--s3);
  padding: 4px 10px; border: 1px solid var(--blue); border-radius: 999px; background: var(--blue);
  font: inherit; font-size: 13px; color: var(--white); cursor: pointer;
}
.fq-chip svg { flex: 0 0 16px; color: rgba(255, 255, 255, 0.85); }
.fq-chip-num { font-weight: 800; white-space: nowrap; }
.fq-chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--blue-tint); }
.fq-chip-car { color: var(--blue-tint); }
.fq-grp { margin: var(--s3) 0 var(--s1); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
/* a machine with nothing saved for the day: one line, a tap opens it */
.fq-collapsed { display: block; width: 100%; padding: var(--s3) var(--s4); text-align: left; font: inherit; font-weight: 700; color: var(--ink); background: none; border: 0; cursor: pointer; }
.fq-collapsed span { color: var(--faint); }
/* Set up on a computer: facilities | equipment cards | edit panel */
.fq-setup { display: grid; grid-template-columns: 230px minmax(0, 1fr) 300px; gap: var(--s3); align-items: start; }
.fq-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; padding-bottom: var(--s2); }
.fq-ph { display: flex; align-items: center; gap: var(--s2); padding: 10px 12px; border-bottom: 1px solid var(--line-soft); font-weight: 700; }
.fq-ph-t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.fq-ph-t .sub { font-weight: 400; }
.fq-pad { padding: 0 12px; }
.fq-panel .fq-grp { padding: 0 12px; margin-top: var(--s3); }
.fq-fac { display: block; width: 100%; padding: 9px 12px; text-align: left; font: inherit; font-size: 13px; color: var(--ink); background: none; border: 0; border-top: 1px solid var(--line-soft); cursor: pointer; }
.fq-fac.on { background: var(--blue-tint); box-shadow: inset 3px 0 0 var(--blue); }
.fq-dim { color: var(--faint); }
.fq-eq { border: 1px solid var(--line); border-radius: 9px; margin: 10px 12px; }
.fq-eq.sel { border-color: var(--gold); }
.fq-eqh { display: flex; align-items: center; gap: var(--s2); padding: 9px 12px; background: #FAFBFC; border-bottom: 1px solid var(--line-soft); border-radius: 9px 9px 0 0; cursor: pointer; }
.fq-sp { flex: 1; }
.fq-it { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: var(--s2); align-items: center; padding: 7px 12px; border-top: 1px solid var(--line-soft); font-size: 13px; cursor: pointer; }
.fq-it.s { padding-left: 32px; }
.fq-it.sel { background: var(--gold-tint); }
.fq-it .unit { color: var(--faint); font-size: 12px; }
.fq-lnk { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--blue); cursor: pointer; }
.fq-offhead { display: block; margin: 0 12px 10px; }
.fq-sectag { padding: 1px 7px; border-radius: 99px; background: #E3F3F3; color: var(--teal); font-size: 11px; font-weight: 700; }
.fq-tg { position: relative; display: inline-block; width: 34px; height: 20px; flex: 0 0 auto; cursor: pointer; }
.fq-tg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.fq-tg span { position: absolute; inset: 0; border-radius: 99px; background: var(--gray-3); transition: background 0.15s; }
.fq-tg span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); transition: left 0.15s; }
.fq-tg input:checked + span { background: var(--green); }
.fq-tg input:checked + span::after { left: 17px; }
.fq-tg input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.fq-tgrow { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s4); font-weight: 600; }
.fq-form { padding: 12px; }
.fq-form .field { margin-bottom: var(--s3); }
.fq-form .seg { margin-bottom: 0; }
.fq-form .seg-btn { min-height: 38px; font-size: 14px; }
.fq-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fq-mk { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--white); font-size: 13px; font-weight: 400; cursor: pointer; }
.fq-mk.on { background: var(--blue-tint); border-color: var(--blue); color: var(--blue-dark); font-weight: 600; }
.fq-mk.s { border-style: dashed; margin-left: 10px; }
.fq-note { margin-top: var(--s3); padding: 8px 10px; border-radius: 8px; background: var(--gold-tint); font-size: 12px; color: var(--muted); }
.fq-fac .sub, .fq-eq .sub, .fq-it .sub, .fq-pad.sub, .fq-ph-t .sub, .fq-form .sub { font-size: 12px; margin: 0; line-height: 1.35; }
/* the app's .sub carries a 20px bottom margin, which lifted these labels off the line */
.fq-seclist { display: grid; gap: 4px; margin: 0 0 6px; font-size: 13px; }
.fq-seclist span { color: var(--gray-7); }

/* ---------- Facility Processes (facops.js, facops-admin.js): a facility drop-down bar over two cards; quiet buttons, one blue ---------- */
@media (min-width: 900px) { .screen.fo-screen { max-width: 1680px; } }
.fo-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; margin-bottom: var(--s3); }
.fo-fl { font-size: 13px; font-weight: 700; color: var(--muted); }
.fo-top select { min-width: 320px; max-width: 100%; padding: 8px 10px; font: inherit; font-size: 15px; color: var(--ink); background: var(--white); border: 1px solid var(--gray-3); border-radius: 8px; }
.fo-top .sub, .fo-fsub { margin: 0; font-size: 13px; }
.fo-cols { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: var(--s3); align-items: start; }
.fo-lcard { position: sticky; top: calc(var(--viewas-h, 0px) + 76px); display: flex; flex-direction: column; max-height: calc(100vh - 92px); }
.fo-lcard .fo-rows { flex: 1; min-height: 0; overflow-y: auto; }
.fo-empty { margin: 0; padding-top: 12px; padding-bottom: 12px; }
.fo-rows { padding: 8px 12px 0; }
.fo-row { display: block; width: 100%; margin: 0 0 6px; padding: 9px 12px; text-align: left; font: inherit; font-size: 13px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.fo-row.on { background: var(--blue-tint); border-color: var(--blue); }
.fo-row .sub { font-size: 12px; margin: 0; line-height: 1.35; }
.fo-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 12px 10px; }
/* quiet by default (white, thin gray edge); .main = the one filled act per area; .warn = red words, only on a button that takes something away */
.fo-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600; line-height: 1.2; color: var(--ink); background: var(--white); border: 1px solid var(--gray-3); border-radius: 8px; cursor: pointer; white-space: nowrap; }
.fo-btn:hover { background: var(--gray-1); }
.fo-btn:active { filter: brightness(0.95); }
.fo-btn.main { color: var(--white); background: var(--blue); border-color: var(--blue); }
.fo-btn.main:hover { background: var(--blue); filter: brightness(0.94); }
.fo-btn.warn { color: var(--red); }
.fo-btn.sq { min-width: 34px; padding: 6px 0; font-size: 15px; }
.fo-gap { flex: 1; }
.fo-flow .fo-grp, .fo-flow .fo-list, .fo-flow .fo-sub { padding-left: 0; padding-right: 0; margin-left: 0; margin-right: 0; }
.fo-g { margin-bottom: 18px; }
.fo-sub { margin: 8px 12px 2px; font-size: 13px; }
.fo-list { margin: 0; padding: 0 12px; list-style: none; }
.fo-it { display: flex; align-items: flex-start; gap: 8px; padding: 5px 0; font-size: 14px; }
.fo-ic { flex: 0 0 22px; width: 22px; height: 22px; }
.fo-edtop { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--s3); }
.fo-edrow { padding: 6px 0; }
.fo-edrow select { margin-bottom: 6px; }
.fo-edline { display: flex; align-items: flex-start; gap: 8px; }
.fo-edline textarea { flex: 1; min-width: 0; }
.fo-edbtns { display: flex; gap: 4px; flex: none; }
.fo-savebar { margin-top: var(--s4); }
.fo-savebar .btn { flex: none; width: auto; min-width: 110px; min-height: 40px; font-size: 15px; }
.fo-h2 { margin: var(--s3) 0 var(--s1); font-size: 18px; }
@media (min-width: 900px) {
  .fq-panel > .fo-flow { padding: 12px 12px 0; }
  .fo-flow { column-width: 360px; column-gap: 40px; }
  .fo-g { break-inside: avoid; }
  .fo-g > .fo-grp { margin-top: 0; }
  .fo-edline textarea, .fo-edrow select { font-size: 15px; }
  .fo-savebar { position: sticky; bottom: 0; z-index: 3; padding: 10px 0; background: var(--white); border-top: 1px solid var(--line); }
}
@media (max-width: 899px) { .fo-rows { padding: 8px 0 0; } .fo-list, .fo-grp, .fo-sub { padding-left: 0; padding-right: 0; margin-left: 0; margin-right: 0; } .screen.fo-screen .fq-pad { padding: 0; } }

/* QHSE Process Walk (facwalk.js, facwalk-view.js): one scrolling form in a centred column. Quiet buttons, one filled button per area, words not shapes; red only for Not in place and stop now. */
.screen.fw-screen { max-width: 760px; margin-left: auto; margin-right: auto; }
@media (min-width: 900px) { .screen.fw-screen.fw-view { max-width: 1100px; } }
.fw-sec { margin: 0 0 var(--s4); }
.fw-h { margin: var(--s3) 0 var(--s2); font-size: 17px; }
.fw-grph { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fw-ctx { margin: 0 0 var(--s2); font-size: 16px; }
.fw-lab { display: block; margin: 12px 0 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.fw-det { margin: 0 0 var(--s3); border: 1px solid var(--gray-3); border-radius: 8px; background: var(--white); }
.fw-det > summary { display: flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 14px; font-weight: 700; cursor: pointer; }
.fw-det[open] > summary { border-bottom: 1px solid var(--line); }
.fw-det > div { padding: 8px 12px 4px; }
.fw-line { padding: 10px 0; border-bottom: 1px solid var(--line); }
.fw-lt { margin: 0 0 8px; font-size: 15px; }
.fw-seg { display: flex; }
.fw-seg.wrap { flex-wrap: wrap; gap: 6px; }
.fw-opt { flex: 1 1 0; min-height: 44px; padding: 6px 8px; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--ink); background: var(--white); border: 1px solid var(--gray-3); cursor: pointer; }
.fw-seg:not(.wrap) .fw-opt + .fw-opt { margin-left: -1px; }
.fw-seg:not(.wrap) .fw-opt:first-child { border-radius: 8px 0 0 8px; }
.fw-seg:not(.wrap) .fw-opt:last-child { border-radius: 0 8px 8px 0; }
.fw-seg.wrap .fw-opt { flex: 0 1 auto; padding: 6px 14px; border-radius: 8px; }
.fw-opt.on { position: relative; z-index: 1; background: var(--blue-tint); border-color: var(--blue); }
.fw-opt.on.bad { color: var(--red); background: var(--white); border-color: var(--red); }
.fw-gapbox { margin-top: 10px; padding: 4px 12px 12px; border: 1px solid var(--gray-3); border-radius: 8px; background: var(--white); }
.fw-gapbox textarea, .fw-gapbox input[type="date"], #fwForm textarea { display: block; width: 100%; box-sizing: border-box; padding: 8px 10px; font: inherit; font-size: 16px; color: var(--ink); background: var(--white); border: 1px solid var(--gray-3); border-radius: 8px; }
.fw-gapbox input[type="date"] { max-width: 220px; min-height: 40px; }
.fw-who { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; }
.fw-red { color: var(--red); font-weight: 700; }
.fw-rows { padding: 0; }
.fw-all { margin-top: 6px; }
.fw-file { width: 100%; min-height: 48px; font-size: 16px; }
.fo-btn:disabled { opacity: 0.45; cursor: default; }
.fw-sel { display: block; width: 100%; max-width: 100%; padding: 8px 10px; font: inherit; font-size: 16px; color: var(--ink); background: var(--white); border: 1px solid var(--gray-3); border-radius: 8px; }
.fw-big { font-size: 20px; font-weight: 700; }
.fw-pwalk { margin: 0 0 12px; }
.fw-done { text-align: center; padding-top: var(--s5, 32px); }
.fw-doneb { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: var(--s3); }
.fw-vlist .fw-vline { display: block; padding: 6px 0; font-size: 14px; }
.fw-gapview { margin: 6px 0 4px; padding: 8px 12px; }
.fw-gapview p { margin: 2px 0; }
.fw-phs { display: flex; flex-wrap: wrap; gap: 8px; }
.fw-ph { width: 96px; height: 96px; object-fit: cover; border: 1px solid var(--gray-3); border-radius: 8px; cursor: pointer; }
/* Gaps followed to the end (facgap.js): the open list, the gap page. Same look: bordered rows, quiet buttons, red only for stop now, overdue, Not fixed and a refusal. */
.fg-block { margin-bottom: var(--s4); }
.fg-block .fw-seg { margin-bottom: 8px; }
.fg-row { font-size: 14px; }
.fg-closedw { margin-top: 10px; }
.fg-closedw [data-sec] { margin-top: 6px; }
.fg-page .fg-h1 { margin: 2px 0 8px; font-size: 22px; }
.fg-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.fg-form { margin: 8px 0; padding: 4px 12px 12px; border: 1px solid var(--gray-3); border-radius: 8px; background: var(--white); }
.fg-form textarea, .fg-form input[type="date"] { display: block; width: 100%; box-sizing: border-box; padding: 8px 10px; font: inherit; font-size: 16px; color: var(--ink); background: var(--white); border: 1px solid var(--gray-3); border-radius: 8px; }
.fg-form input[type="date"] { max-width: 220px; min-height: 40px; }
.fg-ev { padding: 8px 0; border-bottom: 1px solid var(--line); }
.fg-ev p { margin: 2px 0; white-space: pre-line; }
.fg-gaprow { cursor: pointer; }
.fg-nrow { padding-top: 6px; padding-bottom: 6px; }

/* ============================================================
   Equipment tile (equipment.js) — round 1. Shared Purchasing / Delivery Log classes first (pu-*, dv-*); these are the extras.
   ============================================================ */
.eq-filters { flex-wrap: wrap; }
.eq-grow { flex: 1 1 auto; }
.eq-tabs { margin-bottom: 0; }
.eq-tab { flex: 0 0 auto; min-height: 44px; padding: 0 18px; font-size: 15px; white-space: nowrap; cursor: pointer; }
.eq-tab[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); }
.eq-tab:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.eq-m .eq-tabs { overflow-x: auto; flex-wrap: nowrap; }
.eq-tick { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gray-7); white-space: nowrap; }
.eq-vista { font-size: 13px; white-space: nowrap; }
.eq-table td { vertical-align: top; }
.eq-table .eq-c-flags { white-space: normal; }
.eq-rqtable .eq-acts { white-space: normal; min-width: 260px; }
.eq-acts .btn { width: auto; margin: 0 4px 4px 0; padding-left: 10px; padding-right: 10px; }
.eq-pill.eq-on_job, .eq-pill.eq-on_rent, .eq-pill.eq-rq-sent, .eq-pill.eq-rq-filled { background: var(--green-tint); border-color: #B7D9A5; color: var(--green-dark); }
.eq-pill.eq-available, .eq-pill.eq-confirmed, .eq-pill.eq-rq-rental_requested, .eq-pill.eq-rq-rental_on_order { background: var(--blue-tint); border-color: #BCD3EE; color: var(--blue-dark); }
.eq-pill.eq-in_shop, .eq-pill.eq-off_rent, .eq-pill.eq-requested, .eq-pill.eq-rq-requested { background: var(--gold-tint); border-color: #E8C55A; color: #8A6500; }
.eq-pill.eq-down, .eq-pill.eq-rq-declined { background: var(--red-tint); border-color: #E5B5B7; color: var(--red); }
.eq-flag-nopo { background: var(--red-tint); border-color: #E5B5B7; color: var(--red); }
.eq-flag-idle { background: var(--orange-tint); border-color: #F3C3A6; color: #B5551F; }
.eq-flag-off { background: var(--gold-tint); border-color: #E8C55A; color: #8A6500; }
.eq-jobchip { background: var(--white); }
.eq-headrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.eq-actions .btn { width: auto; }
.eq-dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0 0 8px; font-size: 14px; }
.eq-dl dt { color: var(--gray-7); }
.eq-dl dd { margin: 0; }
.eq-hist, .eq-logs { margin-bottom: 8px; }
.eq-pick { display: block; width: 100%; text-align: left; font: inherit; padding: 8px 10px; margin: 0 0 6px; background: var(--white); border: 1px solid var(--gray-3); border-radius: 8px; cursor: pointer; }
.eq-pick:hover { background: #F1F5FB; }
.eq-pick .dv-sub { display: block; }
.eq-saved { text-align: center; padding: 16px 0; }
.eq-rnum { font-size: 28px; font-weight: 800; letter-spacing: .02em; margin: 6px 0; }
/* the person's columns (equipment-cols.js, round 4a): the look-ahead's drag handle and popover classes */
.eq-table thead th { position: relative; }
.eq-table thead th:hover .la-colrz::after { background: var(--gray-4); }
.eq-table.la-colrz-on, .eq-table.la-colrz-on th { cursor: col-resize; user-select: none; }
.la-pop.eq-colpop { max-height: 440px; min-width: 260px; }
.eq-colrow { display: flex; align-items: center; }
.eq-colrow .la-chk { flex: 1 1 auto; min-width: 0; }
.eq-colmv { flex: 0 0 auto; width: 28px; height: 28px; margin-right: 2px; padding: 0; font: inherit; background: none; border: 0; border-radius: var(--radius); color: var(--blue); cursor: pointer; }
.eq-colmv:hover:not(:disabled) { background: var(--gray-1); }
.eq-colmv:disabled { color: var(--gray-4); cursor: default; }
/* Equipment round 3a: the Costs tab */
.eq-cost-nudges { margin: 0 0 10px; }
.eq-cost-over { color: var(--red); font-weight: 700; }
.eq-costtable tfoot td { font-weight: 700; border-top: 2px solid var(--gray-3); }
.eq-costtable .eq-cost-child td { background: var(--gray-1); }
.eq-costtable .eq-cost-child .eq-c-code { padding-left: 32px; }
.eq-costtable tr[data-cost-code] { cursor: pointer; }
.eq-cost-note { margin-top: 8px; }
/* the shop (equipment-shop.js, round 4a) */
.eq-tabn { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: var(--red); color: var(--white); font-size: 12px; font-weight: 700; line-height: 18px; text-align: center; }
.eq-gear { margin-left: auto; }
.eq-amber { color: #8A5A00; font-weight: 600; }
.eq-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.eq-chip { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 12px; font: inherit; font-size: 13.5px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; color: var(--ink); cursor: pointer; }
.eq-chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); }
.eq-chipn { font-weight: 700; }
.eq-chip-red:not([aria-pressed="true"]) .eq-chipn { color: var(--red); }
.eq-chip-on { cursor: default; background: var(--gray-1); }
.eq-wp-down, .eq-ws-requested { background: var(--red); border-color: var(--red); color: var(--white); }
.eq-wp-soon, .eq-ws-waiting_parts, .eq-sd-due_soon { background: #FFF3D6; border-color: #E8C979; color: #6B4A00; }
.eq-ws-in_progress { background: #E3EEFB; border-color: #A9C8EE; color: #123F75; }
.eq-ws-done, .eq-sd-ok { background: #E4F4E8; border-color: #A9D8B5; color: #17572B; }
.eq-sd-overdue { background: var(--red); border-color: var(--red); color: var(--white); }
.eq-wosteps { display: inline-flex; flex-wrap: wrap; margin: 0; }
.eq-wosteps .eq-tab { min-height: 40px; padding: 0 14px; font-size: 14px; }
.eq-wosteps .eq-tab[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); opacity: 1; }
.eq-problem { white-space: pre-wrap; margin: 0 0 8px; }
.eq-photos { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.eq-photos img { display: block; width: 84px; height: 84px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.eq-phadd { cursor: pointer; }
.eq-check { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.eq-check .eq-tick { white-space: normal; }
.eq-addrow { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin: 8px 0 12px; }
.eq-addrow .field { flex: 1 1 130px; min-width: 110px; margin: 0; }
.eq-addrow .btn { flex: 0 0 auto; }
.eq-total td { font-weight: 700; border-top: 2px solid var(--line); }
.eq-events { list-style: none; margin: 0; padding: 0; }
.eq-ev { display: flex; flex-direction: column; gap: 1px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.eq-evt { font-size: 14px; }
.eq-wolist { list-style: none; margin: 0 0 8px; padding: 0; }
.eq-wolink { padding: 4px 0; }
.eq-chosen { padding: 8px 10px; background: var(--gray-1); border-radius: var(--radius); }
#woUnitList { max-height: 220px; overflow-y: auto; margin-top: 6px; }
.eq-codewrap { max-height: 360px; overflow-y: auto; margin-top: 6px; }
.eq-codein { width: 160px; min-height: 34px; }
.eq-m .eq-wocard .pu-chips { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 4px; }
.eq-m .eq-wosteps { display: flex; width: 100%; }
.eq-m .eq-wosteps .eq-tab { flex: 1 1 40%; min-height: 48px; }
.eq-m .eq-addrow .btn { width: 100%; min-height: 48px; }
.eq-table td.eq-acts .btn { white-space: nowrap; }
.eq-table[data-eq-cols="service"] .eq-col-acts { width: 220px; }
.eq-table[data-eq-cols="workorders"] .eq-col-wo { width: 96px; }
.eq-table[data-eq-cols="workorders"] .eq-col-unit { width: 170px; }
.eq-table[data-eq-cols="workorders"] .eq-col-problem { width: 280px; }
.eq-table[data-eq-cols="workorders"] .eq-col-priority { width: 92px; }
.eq-table[data-eq-cols="workorders"] .eq-col-status { width: 150px; }
.eq-table[data-eq-cols="workorders"] .eq-col-charged { width: 230px; }
.eq-table[data-eq-cols="workorders"] .eq-col-mech { width: 140px; }
.eq-table[data-eq-cols="workorders"] .eq-col-hours { width: 100px; }
.eq-table[data-eq-cols="workorders"] .eq-col-age { width: 64px; }
.eq-table th.eq-col-hours, .eq-table th.eq-col-age, .eq-table th.eq-col-labor, .eq-table th.eq-col-parts, .eq-table th.eq-col-meter { text-align: right; }
.dl-eqwo { font-weight: 600; color: var(--ink); }
.mt-wo { padding: 10px 12px; background: var(--gray-1); border-radius: var(--radius); }
.mt-woday { padding: 4px 0; }
.mt-woline { font-size: 14px; }
/* the look-ahead's Equipment cell: unit chips and request chips (lookahead-cols.js) */
.la-eqchips { display: flex; flex-wrap: wrap; gap: 3px; }
.la-eqchip { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 99px; border: 1px solid var(--gray-3); background: var(--gray-1); color: var(--gray-7); white-space: nowrap; }
.la-eqchip.rq-requested { background: var(--gray-1); color: var(--gray-7); }
.la-eqchip.rq-sent_owned, .la-eqchip.rq-filled { background: var(--green-tint); border-color: #B7D9A5; color: var(--green-dark); }
.la-eqchip.rq-rental_requested, .la-eqchip.rq-rental_on_order { background: var(--blue-tint); border-color: #BCD3EE; color: var(--blue-dark); }
.la-eqchip.rq-declined { background: var(--red-tint); border-color: #E5B5B7; color: var(--red); }
.la-eqmenu { display: flex; gap: 4px; margin: 0 0 8px; }
.la-eqmenu .btn { width: auto; }
.la-eqform .field { margin-bottom: 6px; }
/* the PO page: a rental line's units (purchasing.js) */
.pu-eqrow { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.pu-eqrow .dv-lnk { font-size: 12px; }
/* ---- gd-vid: SOP Builder from a video ---- */
.gd-vid { max-width: 760px; margin: 0 auto; padding: 32px 22px 80px; }
.gd-vid h1 { font-size: 24px; font-weight: 700; letter-spacing: 0; margin: 0 0 4px; }
.gd-vsub { color: var(--muted); font-size: 14px; margin: 0 0 18px; overflow-wrap: anywhere; }
.gd-vdrop { border: 2px dashed #B9C4D0; border-radius: 14px; background: var(--white); padding: 38px 20px; text-align: center; transition: background .12s, border-color .12s; }
.gd-vdrop p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.gd-vdrop.over { background: var(--blue-tint); border-color: var(--blue); }
.gd-vdrop.busy { opacity: 0.5; pointer-events: none; }
.gd-vcost, .gd-vsoft { margin: 16px 0 0; padding: 10px 14px; border-radius: 8px; background: var(--gold-tint); color: var(--gold-ink); font-size: 14px; line-height: 1.45; }
.gd-vid .gd-err { margin: 12px 0; font-weight: 600; }
.gd-vstages { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.gd-vstages li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--faint); }
.gd-vstages li i { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #C9D2DC; box-sizing: border-box; }
.gd-vstages li[data-state="busy"] { color: var(--ink); font-weight: 600; }
.gd-vstages li[data-state="busy"] i { border-color: rgba(0, 87, 184, 0.25); border-top-color: var(--blue); animation: spin 0.8s linear infinite; }
.gd-vstages li[data-state="done"] { color: var(--ink); }
.gd-vstages li[data-state="done"] i { background: var(--green); border-color: var(--green); }
.gd-vstages li[data-state="fail"] { color: var(--red); font-weight: 600; }
.gd-vstages li[data-state="fail"] i { background: var(--red); border-color: var(--red); }
.gd-vsteps { margin-top: 22px; display: grid; gap: 8px; }
.gd-vstep { display: grid; grid-template-columns: 28px minmax(0, 1fr) 120px; gap: 12px; align-items: start; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.gd-vn { width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: var(--white); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.gd-vt b { display: block; font-size: 15px; line-height: 1.35; }
.gd-vt span { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.gd-vth { width: 120px; height: 68px; border-radius: 6px; background: var(--line-soft); border: 1px dashed var(--line); overflow: hidden; box-sizing: border-box; }
.gd-vth img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.gd-vline { padding: 4px 12px; font-size: 13px; color: var(--muted); }
.gd-vline i { font-style: normal; font-weight: 700; font-size: 11px; letter-spacing: 0.06em; color: var(--faint); margin-right: 4px; }
.gd-vk-section { font-weight: 700; color: var(--ink); font-size: 14px; padding-top: 10px; }
.gd-vk-warn { color: var(--red); }
.gd-vsugg { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.gd-vsugg h2 { font-size: 16px; font-weight: 700; margin: 0 0 2px; }
.gd-vsugg p { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.gd-vsugg ul { list-style: none; margin: 0 0 12px; padding: 0; }
.gd-vsugg li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.gd-vsugg li span { flex: 1; min-width: 0; }
.gd-vask { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 22px; background: var(--gold-tint); border-bottom: 1px solid var(--line); }
.gd-pill-vid { background: var(--blue-tint); color: var(--blue-dark); }
/* round 3b: the documents zone on the pick screen, and the inspector's Sources card and From line */
.gd-vdocs { margin-top: 18px; }
.gd-vdocs-h { margin: 0 0 8px; font-weight: 600; font-size: 15px; }
.gd-vnotes { margin-top: 18px; }
.gd-vdrop-sm { padding: 18px 16px; }
.gd-vdrop-sm p { font-size: 14px; margin-bottom: 8px; }
.gd-vchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.gd-vchips:empty { display: none; }
.gd-vchip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 6px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: 13px; }
.gd-vcn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-vbadge { flex: none; border: 0; border-radius: 999px; padding: 2px 8px; font: inherit; font-size: 11px; font-weight: 700; background: var(--line-soft); color: var(--ink); cursor: pointer; }
.gd-vbadge:disabled { cursor: default; }
.gd-vbadge-slides { background: var(--blue-tint); color: var(--blue-dark); }
.gd-vbadge-other { background: var(--green-tint); color: var(--green-dark); }
.gd-vx { flex: none; width: 22px; height: 22px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; padding: 0; }
.gd-vx:hover { background: var(--line-soft); color: var(--red); }
.gd-vhelp { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.gd-isrc { list-style: none; margin: 0; padding: 0; }
.gd-isrc li { padding: 6px 0; border-bottom: 1px solid var(--line-soft); overflow-wrap: anywhere; }
.gd-ifl { padding: 4px 0 2px; font-weight: 600; overflow-wrap: anywhere; }
.gd-ifq { display: block; margin: 2px 0 6px; padding-left: 8px; border-left: 2px solid var(--line); color: var(--muted); font-size: 12px; quotes: none; }

/* Equipment round 1b (2026-11-01) */
/* the look-ahead's Equipment pop-over (lookahead-edit.js equipPop): On this job | Anywhere in the fleet | Request equipment.
   The chips (.la-eqchips / .la-eqchip.rq-*), .la-eqmenu and .la-eqform are already in styles.css; this adds what they lacked. */
.la-pop.la-eqpop { width: 340px; max-width: calc(100vw - 16px); max-height: 420px; }
.la-eqpop .la-eqmenu { flex-wrap: wrap; padding: 4px 12px 0; }
.la-eqmenu .btn.on { background: var(--blue-tint); border-color: var(--blue); color: var(--blue-dark); font-weight: 700; }
.la-eqpop .la-eqcc { max-height: 150px; overflow-y: auto; border: 1px solid var(--gray-3); border-radius: 6px; padding-bottom: 4px; }
.la-eqpop .la-eqcc .la-qw { padding: 4px 6px; }
.la-eqdet .la-cxf b { color: var(--ink); font-weight: 600; font-size: 13px; }
.la-table td.c-eq .la-eqchip { white-space: normal; }
/* the PO page: Add the unit button inside a rental line's unit row (purchasing.js eqRow) */
.pu-eqrow .btn { width: auto; }
/* SOP Builder round 4: the recording is kept (the quiet upload line on the run screen, "Watch the recording" on a published card) */
.gd-vstages li.gd-vquiet { font-size: 13px; color: var(--muted); font-weight: 400; }
.gd-vstages li.gd-vquiet i { width: 14px; height: 14px; }
.gd-vstages li.gd-vquiet[data-state="busy"] { color: var(--muted); font-weight: 400; }
.gd-watch { display: inline-block; margin-top: 6px; padding: 0; background: none; border: 0; color: var(--blue); font: inherit; font-size: 12.5px; text-decoration: underline; cursor: pointer; }
.gd-watch:hover { color: var(--ink); }
.gd-track { max-width: 110px; }
/* SOP Builder round 4: the amber dot on a step the check pass was unsure of (the sentence is its title) */
.gd-vt .gd-vamber { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; background: var(--amber); vertical-align: 1px; cursor: help; }

/* SOP Builder: how detailed the drafted guide is (short / medium / long) on the video pick screen */
.gd-vdetail { margin: 16px 0 0; }
.gd-vdet-row { display: flex; gap: 10px; flex-wrap: wrap; }
.gd-vdet { flex: 1 1 180px; text-align: left; border: 1px solid var(--line); border-radius: 10px; background: var(--white); padding: 10px 12px; font: inherit; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.gd-vdet b { font-size: 15px; }
.gd-vdet span { font-size: 13px; line-height: 1.35; color: var(--muted); }
.gd-vdet.on { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); background: var(--line-soft); }

/* SOP Builder round 4b: the question card after the drop, and the run bar while a draft goes on in the background */
.gd-toc { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.gd-vfile { margin: 8px 0 0; font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }
.gd-vfile b { color: var(--ink); }
.gd-vtoc { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font-size: 15px; font-weight: 600; cursor: pointer; }
.gd-vtoc input { width: 18px; height: 18px; }
.gd-vbtns { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 0; }
.gd-vaway { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.gd-runbar { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; z-index: 190; padding: 10px 14px; border-radius: 12px;
  background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--blue); box-shadow: var(--shadow-lg); color: var(--ink); }
.gd-runbar[hidden] { display: none; }
.gd-runbar[data-state="ready"] { border-left-color: var(--green); background: var(--green-tint); }
.gd-runbar[data-state="fail"] { border-left-color: var(--red); background: var(--red-tint); }
.gd-rb-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gd-rb-row b { font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.gd-runbar small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.gd-runbar small:empty { display: none; }
/* Equipment round 2: Daily Log hours (the phone's unit cards, dailylog-phone.js; docs/equipment-mockup.html tab 1) */
.dl-eqcard { border-left: 4px solid var(--blue); }
.dl-eqcard.rent { border-left-color: var(--gold); }
.dl-eqh { display: flex; gap: 10px; align-items: flex-start; }
.dl-eqh .dl-unit { max-width: 40%; }
.dl-eqh .dl-rt b { font-size: 17px; }
.dl-equtot { flex: none; font-size: 13px; font-weight: 800; background: var(--blue-tint); color: var(--blue-dark); border-radius: 8px; padding: 4px 9px; }
.dl-equtot[hidden] { display: none; }
.dl-eqmore { flex: none; width: 48px; height: 48px; margin: -8px -8px 0 0; padding: 0; font: 800 22px var(--font); color: var(--gray-7); background: none; border: 0; cursor: pointer; }
.dl-eqwhy { color: var(--muted); font-style: italic; }
.dl-eqchip { display: inline-block; margin-top: 5px; min-height: 0; font: 700 12px var(--font); border-radius: 20px; padding: 3px 10px; background: var(--gold-tint); color: #8A6500; border: 1px solid #E8C55A; }
button.dl-eqchip { cursor: pointer; min-height: 44px; }
.dl-eqmenu { display: flex; justify-content: flex-end; }
.dl-eqask { display: grid; gap: 8px; padding: 11px 13px; background: var(--gold-tint); border: 1px solid #E8C55A; border-left: 5px solid var(--gold); border-radius: var(--radius); }
.dl-eqask b { font-size: 16px; }
.dl-eqask .btn { min-height: 48px; font-size: 16px; }
.dl-eqsp { display: grid; gap: 10px; }
.dl-eqsp + .dl-eqsp { padding-top: 12px; border-top: 1px dashed var(--gray-3); }
.dl-eqsph { display: flex; justify-content: space-between; align-items: center; }
.dl-eqsph b { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.dl-eqsph .dl-rm { min-height: 44px; padding: 0 4px; font-size: 14px; }
.dl-eqhrs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dl-m .dl-eqin { text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.dl-eqpick { justify-content: flex-start; font-size: 16px; }
.dl-eqpick .dl-chev { margin-left: auto; }
.dl-eqk { flex: none; font-size: 14px; color: var(--muted); }
.dl-eqv { flex: 1; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.dl-equfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.dl-eqdwn { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 2px; font: 700 15px var(--font); color: var(--gray-7); background: none; border: 0; cursor: pointer; }
.dl-eqsw { position: relative; flex: none; width: 52px; height: 30px; border-radius: 30px; background: var(--gray-3); transition: background .12s; }
.dl-eqsw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow); transition: left .12s; }
.dl-eqdwn[aria-checked="true"] { color: var(--red); }
.dl-eqdwn[aria-checked="true"] .dl-eqsw { background: var(--red); }
.dl-eqdwn[aria-checked="true"] .dl-eqsw::after { left: 25px; }
.dl-eqdown { display: grid; gap: 10px; padding: 12px; background: var(--red-tint); border: 1px solid #E5B5B7; border-radius: var(--radius); }

/* Equipment round 2: the computer's table (dailylog-lines.js renderEq; docs/equipment-mockup.html tab 3) */
.dl-eqhint { margin: 0 0 8px; }
.dl-eqt { min-width: 0; }
.dl-eqt th, .dl-eqt td { position: relative; }   /* the screen-reader label in a header cell stays inside the table's own scroll */
.dl-eqt th.dl-eqc, .dl-eqt td.dl-eqc { text-align: center; min-width: 0; width: 1%; white-space: nowrap; }
.dl-eqt th.dl-c-unit, .dl-eqt td.dl-c-unit { min-width: 120px; }
.dl-eqt th.dl-c-pk, .dl-eqt td.dl-c-pk { min-width: 0; }
.dl-eqt td.dl-eqdesc { min-width: 130px; }
.dl-eqt td.dl-c-note { min-width: 110px; }
.dl-eqt tr.dl-eqg td { background: var(--gray-1); padding: 8px 10px; border-bottom: 1px solid var(--gray-2); }
.dl-eqt tr.dl-eqg td b { font-size: 15px; }
.dl-eqt tr.dl-eqg td span { margin-left: 10px; font-size: 13px; color: var(--muted); }
.dl-eqt tr.dl-eqcont td { border-top: 1px dashed var(--gray-3); }
.dl-eqt tr.dl-eqtot td { font-weight: 700; color: var(--gray-7); background: var(--blue-tint); font-variant-numeric: tabular-nums; }
.dl-eqt tr.isdown td { background: var(--red-tint); }
.dl-eqt .dl-eqin { width: 76px; }
.dl-eqt .dl-eqpick { display: block; width: 100%; min-width: 112px; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-eqt .dl-eqdwn { min-height: 36px; padding: 0; }
.dl-eqt .dl-ta { min-width: 110px; }
.dl-eqsub { display: block; font-size: 12px; color: var(--muted); }
.dl-eqsub.dl-eqnopo { color: #B5551F; font-weight: 700; }
.dl-eqt .dl-eqwhy { display: block; font-size: 13px; }
.dl-eqsame { color: var(--faint); font-size: 13px; white-space: nowrap; }
.dl-eqacts { white-space: nowrap; }
.dl-eqacts > * + * { margin-left: 4px; }
.dl-eqplus, .dl-eqdots { width: 32px; height: 32px; border-radius: var(--radius-sm); border: 1.5px solid var(--gray-3); background: var(--white); color: var(--gray-7); font: 700 18px/1 var(--font); cursor: pointer; padding: 0; }
.dl-eqplus:hover, .dl-eqdots:hover { border-color: var(--blue); color: var(--blue-dark); background: var(--blue-tint); }
.dl-pop.dl-eqmenu { width: 190px; padding: 4px 0; }
.dl-pop.dl-eqask { width: 300px; padding: 12px 14px; gap: 8px; }
.dl-pop.dl-eqask .btn { min-height: 40px; font-size: 15px; }
.gd-blk-todo { border: 1.5px dashed var(--amber); }
.gd-todo-note { font-size: 12.5px; opacity: .75; margin-top: 6px; }

/* Work plan builder round 2 (2026-11-24): cost codes and schedule activities on a step, the Split pop-up.
   Computer: words, hairlines and whitespace only; grey for the extra words, red only for a split that does not add up. */
.df-step-sum { flex: 0 0 calc(100% - 38px); min-width: 0; box-sizing: border-box; margin: 0 0 4px 38px; padding: 0; border: 0; background: none; font: inherit; font-size: 12px; color: var(--muted); text-align: left; cursor: default; }
button.df-step-sum { cursor: pointer; }
button.df-step-sum:hover .df-sum-k { text-decoration: underline; }
.df-sum-k { font-weight: 600; }
.df-sum-split { color: var(--muted); font-style: italic; }
.df-sl { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 12px; }
.df-wide .df-sl { grid-template-columns: 1fr 1fr; gap: 28px; }
.df-sl-h { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.df-sl-line { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.df-sl-main { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.df-sl-mut { color: var(--muted); }
.df-sl-acts { flex: 0 0 auto; white-space: nowrap; color: var(--muted); }
.df-sl-note { margin: 4px 0; font-size: 13px; color: var(--muted); }
.df-sl-add { display: block; margin-top: 8px; }
.df-sl-every { display: block; margin-top: 6px; text-decoration: underline; font-weight: 400; }
.df-sl-apick[hidden] { display: none; }
.df-sl-apick { margin-top: 6px; }
.df-sl-afind { width: 100%; box-sizing: border-box; margin-bottom: 6px; }
.df-sl-alist { max-height: 260px; overflow-y: auto; }
.df-split .li-panel { max-width: 560px; }
.df-split-lead { margin: 0 0 12px; }
.df-split-mode { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--muted); }
.df-split-mode button { padding: 2px 0; border: 0; background: none; font: inherit; color: var(--muted); cursor: pointer; }
.df-split-mode button[aria-pressed="true"] { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.df-split-mode button:disabled { opacity: .5; cursor: default; }
.df-split-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.df-split-row label { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.df-split-in { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; }
.df-split-in input { width: 84px; text-align: right; }
.df-split-u { min-width: 36px; color: var(--muted); }
.df-split-eq { flex: 0 0 96px; color: var(--muted); font-size: 13px; }
.df-split-total { margin: 12px 0 6px; font-weight: 700; }
.df-split-total.bad { color: var(--red); }
.df-prod-steps td:nth-child(3) { white-space: normal; }
@media (max-width: 560px) { .df-split-eq { flex-basis: 100%; padding-left: 0; } .df-split-row { flex-wrap: wrap; } }

/* ---------- Request a change (requests.js) and the markup canvas (markup.js, shared) ---------- */
.mk-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.mk-tools .btn { width: auto; }
.mk-tools .mk-tool[aria-pressed="true"] { background: var(--blue-tint); color: var(--blue); border-color: var(--blue); }
.mk-gap { flex: 1 1 8px; }
.mk-stage { position: relative; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--gray-1); }
.mk-canvas { display: block; width: 100%; height: auto; touch-action: none; cursor: crosshair; }
.mk-canvas.mk-pan { touch-action: auto; cursor: grab; }
.mk-tools [hidden] { display: none; }
.mk-zoom { display: inline-flex; align-items: center; gap: 4px; }
.mk-pct { min-width: 44px; text-align: center; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
/* the enlarged view: the same canvas over the whole screen (above the sidebar, menus and sheets at 1000) */
.mk-big { position: fixed; inset: 0; z-index: 1010; display: flex; flex-direction: column; padding: 10px; background: var(--white); }
.mk-big .mk-tools { flex: none; }
.mk-big .mk-stage { flex: 1 1 0; min-height: 0; overflow: auto; }
.mk-note { position: absolute; min-width: 160px; max-width: 70%; font: inherit; font-size: 15px; padding: 4px 6px; border: 2px solid var(--red); border-radius: var(--radius-sm); background: var(--white); color: var(--red); }
.cr-shot-note:empty { display: none; }
.cr-shot-note { margin-bottom: 6px; }
.cr-shot img { display: block; max-width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.cr-shot-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.cr-filebtn { width: auto; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.cr-notes { min-height: 180px; }
.cr-files { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.cr-files:empty { display: none; }
.cr-file { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line-soft); }
.cr-file-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-file .btn-xs { width: auto; }
/* My requests (round 4): the log pages' table (.logp-table, docs/log-pages-look.md) with each row a bordered, clickable row; the filter
   buttons above it are outlined and the picked one is filled. Status is a word: gold highlighter only on Ready for review, green on Done. */
.cr-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.cr-filter { min-height: 44px; padding: 0 14px; border: 1px solid var(--gray-5); border-radius: var(--radius); background: var(--white); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.cr-filter:hover { background: var(--gray-1); }
.cr-filter[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); }
.cr-table { border-spacing: 0 8px; }
.cr-table tbody td { border-top: 1px solid var(--gray-3); border-bottom: 1px solid var(--gray-3); }
.cr-table tbody td:first-child { border-left: 1px solid var(--gray-3); border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.cr-table tbody td:last-child { border-right: 1px solid var(--gray-3); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.cr-table tbody tr:hover td { background: var(--blue-tint); }
.cr-table .cr-c-reply { color: var(--muted); }
/* Computer: fixed columns so the seven always fit the page (no sideways scroll); long words are cut with an ellipsis. */
@media (min-width: 700px) {
  .cr-table { table-layout: fixed; }
  .cr-table th, .cr-table td { overflow: hidden; text-overflow: ellipsis; }
  .cr-table td.logp-wrap2 { min-width: 0; max-width: none; }
  .cr-table th:nth-child(1) { width: 100px; }
  .cr-table th.cr-c-screen { width: 150px; }
  .cr-table th.cr-c-sent, .cr-table th:nth-child(6) { width: 130px; }
  .cr-table th:nth-child(5) { width: 170px; }
  .cr-table th:nth-child(7) { width: 22%; }   /* Request takes what is left */
}
@media (min-width: 700px) and (max-width: 1499px) { .cr-table .cr-c-screen { display: none; } }
@media (min-width: 700px) and (max-width: 1299px) { .cr-table .cr-c-sent { display: none; } }
.cr-row.cr-news .cr-t { font-weight: 700; }
.cr-dot { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: var(--gold); border: 1px solid var(--gold-ink); vertical-align: middle; }
.cr-status { font-weight: 600; color: var(--ink); }
.cr-status[data-status="done"] { color: var(--green-dark); }
.cr-status[data-status="check"] { background: linear-gradient(to top, var(--gold) 60%, transparent 60%); padding: 0 3px; }
.cr-path { margin: 0 0 4px; font-size: 15px; color: var(--muted); }
.cr-path b { color: var(--ink); }
.cr-answer { border-left: 5px solid var(--gold); }
.cr-ask { margin-bottom: 10px; font-size: 18px; font-weight: 700; color: var(--ink); }
.cr-ans-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cr-ans { min-height: 48px; width: auto; flex: 1 1 220px; font-size: 17px; }
.cr-ans-note { min-height: 110px; }
.cr-said { margin: 0 0 12px; padding: 10px 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 699px) {
  .cr-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .cr-filter { flex: none; white-space: nowrap; }
  .cr-ans { flex-basis: 100%; }
  .cr-tableframe .logp-tablewrap { border: 0; background: none; overflow: visible; }
  .cr-table, .cr-table tbody { display: block; }
  .cr-table thead, .cr-table tr.cr-row td.cr-c-screen, .cr-table tr.cr-row td.cr-c-sent { display: none; }
  .cr-table { border-spacing: 0; }
  .cr-table tr.cr-row { display: grid; grid-template-columns: auto auto 1fr; column-gap: 8px; margin-bottom: 8px; padding: 10px 12px; border: 1px solid var(--gray-3); border-radius: var(--radius); background: var(--white); min-height: 48px; }
  .cr-table tr.cr-row td { display: block; padding: 0; border: 0; border-radius: 0; background: none; white-space: normal; max-width: none; min-width: 0; }
  .cr-table tr.cr-row .cr-c-no { grid-column: 1; grid-row: 1; }
  .cr-table tr.cr-row .cr-c-title { grid-column: 2 / -1; grid-row: 1; }
  .cr-table tr.cr-row .cr-c-status { grid-column: 2; grid-row: 2; }
  .cr-table tr.cr-row .cr-c-upd { grid-column: 3; grid-row: 2; color: var(--muted); }
  .cr-table tr.cr-row .cr-c-upd::before { content: "· "; }
  .cr-table tr.cr-row .cr-c-reply { grid-column: 2 / -1; grid-row: 3; font-size: 14px; }
  .cr-table tr.cr-row .cr-c-reply:empty { display: none; }
}
.cr-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.cr-one .card { margin-bottom: 12px; }
/* A work plan's Submittals and RFIs pages and the step words (dfow-logs.js; docs/rounds/logs-links-work-plans-meetings-2026-11-24.md).
   The table is the log pages' (.logp-table); words only, red only for Late. */
.dfl-acts { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; min-height: 32px; }
.dfl-acts .btn { width: auto; }
.dfl-ok { color: var(--gray-7); font-weight: 400; }
.dfl-quiet { color: var(--gray-7); font-size: 14px; }
.dfl-older { margin-top: 16px; }
.dfl-table td.logp-wrap2 { min-width: 200px; }
.dfl-pick { margin: 0 0 16px; padding: 12px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.dfl-pickrow { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 8px; }
.dfl-pickrow .logp-sel select { width: auto; max-width: 320px; }
.dfl-find.logp-q { flex: 0 1 420px; width: 420px; }
.dfl-picklist { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
.dfl-picklist li { padding: 4px 0; }
.dfl-picklist .logp-link { font-size: 15px; color: inherit; }
.dfl-picklist .logp-link b { color: var(--blue); }
.df-step-logs:empty { display: none; }
/* on the computer's Work sequence row the words sit on their own line under the step name, never squeezing it */
.df-plan.df-wide .df-step2 .df-step-main:has(> .df-step-logs:not(:empty)) { flex-wrap: wrap; }
.df-plan.df-wide .df-step2 .df-step-main > .df-step-logs:not(:empty) { flex-basis: 100%; order: 10; }
.df-step-log { display: inline-block; margin: 2px 10px 0 0; font-size: 14px; font-weight: 700; color: var(--gray-7); }

/* Meetings: an RFI line (meetings.js rfiLine / openRfiPick; brief C of docs/rounds/logs-links-work-plans-meetings-2026-11-24.md) */
.mtg-rfiline { margin-top: 3px; font-size: 14px; font-weight: 400; color: var(--muted); }
.mtg-it > .mtg-rfiline:first-child { margin-top: 0; }
.mtg-rfiline .mtg-lnk { font-size: 14px; }
.mtg-rfilist { list-style: none; margin: 12px 0 0; padding: 0; max-height: 50vh; overflow-y: auto; }
.mtg-rfilist li { padding: 5px 0; }
.mtg-rfilist .mtg-lnk { font-weight: 400; color: inherit; }
.mtg-rfilist .mtg-lnk b { color: var(--blue); }
.mtg-rfiquiet { color: var(--muted); }
