/* The Concierge portal's design (Support portal design planning/build/web/src/izp.css,
   tokens from design_handoff_support_portal/README.md), applied to the staff hub. */
:root {
  --o: #F39200; --oh: #DE8500; --ot: #FEF8EF; --dark: #17191E;
  --chart: #F39200; --chart-h: #DE8500; /* a single-series chart's bars (Small Works); checked with the dataviz validator */
  --i2: #4A5158; --i3: #69727D; --i4: #8A9199; --i5: #A6ADB5;
  --b1: #E4E7EA; --b2: #DDE1E5; --b3: #EDEFF1; --b4: #F1F3F4; --row: #FAFBFB;
  --link: #337AB7; --pos: #2E9E6B; --neg: #D0453B;
  --bg: #F5F6F7;
  --panel: #ffffff;
  --ink: #14161A;
  --sb: rgba(20, 22, 26, .2);   /* a scroll bar's handle */
  --muted: #69727D;
  --line: #E4E7EA;
  --line-strong: #DDE1E5;
  --field: #ffffff; --field-line: #DDE1E5; /* a box to type or choose in, on a popup */
  --scrim: rgba(16, 24, 40, .35); /* the page behind a popup */
  --accent: #F39200;
  --today: #FEF8EF;
  --weekend: #F1F3F4;
  --over: #FBECEA;
  --over-line: #D0453B;
  --warn: #8A6413;
  --side-bg: #17191E; --top-bg: #1E2228; --top-sub: #2A2F36; --top-fg: #C9CED6; --top-line: #4A515B;
  --ot-fg: #A35F00;
  --amber-bg: #FBF4E9; --amber-fg: #8A6413; --blue-bg: #EAF1F8; --blue-fg: #2A6394;
  --green-bg: #EAF6F0; --green-fg: #1F7A54; --red-bg: #FBECEA; --red-fg: #B03A30;
  --teal-bg: #E6F4F3; --teal-fg: #1D6F6A; --purple-bg: #F2ECF8; --purple-fg: #6B3FA0;
  --note-bg: #FFF7E3; --note-line: #F1D9A0; --stripe: #FBE3B8;
  --shadow: 0 10px 30px rgba(16, 24, 40, .14);
  --sel-bg: #17191E; --sel-fg: #fff; /* a selected tab or toggle */
  --toast-bg: #17191E; --toast-fg: #fff; --toast-link: #9ab0ff; /* the message at the bottom of the page */
  --zebra: #F4F6F8; --rule: #8A9199; --wk-line: #A6ADB5; /* every other planner row (lighter again, James, 6 Nov 2026), the line between people, where each week starts (James, 5 Nov 2026) */
  --zebra-line: #D3D8DE;
  --team-bg: #BCBDBF; /* a team's heading on the planner: 30% of the portal's dark (James, 6 Nov 2026) */ /* a day's line on a shaded row, which --line doesn't show on (James, 6 Nov 2026) */
  --side: 248px;   /* the planner's people column */
  --head: 44px;   /* weeks (and the month where it changes) over the days: two rows, not three (James, 22 Oct 2026) */
  font-family: 'Assistant', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
/* Dark mode: follows the computer's setting, unless Theme is set to Light or Dark
   in the sidebar (data-theme on <html>, kept per browser; app.js). */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --dark: #0C0D10; --side-bg: #0C0D10; --top-bg: #0C0D10; --top-sub: #16191D;
  --ot: #33270F; --ot-fg: #F3B65C; --chart: #D17A00; --chart-h: #E08A14;
  --bg: #111317; --panel: #1A1D22; --ink: #ECEEF0; --i2: #C3C8CE; --i3: #9AA2AB; --i4: #7D858E; --i5: #6A727B; --muted: #9AA2AB;
  --b1: #2A2E35; --b2: #363B43; --b3: #23272D; --b4: #262A30; --row: #1E2126; --link: #7FB2E5;
  --line: #2A2E35; --line-strong: #363B43;
  --field: #111317; --field-line: #4A515B; --scrim: rgba(0, 0, 0, .6);
  --today: #2A2416; --weekend: #16191D; --over: #3A1F1D; --warn: #E8C27A;
  --amber-bg: #3A2F1A; --amber-fg: #E8C27A; --blue-bg: #1C2C3D; --blue-fg: #8DB9E3;
  --green-bg: #17322A; --green-fg: #7FD1A9; --red-bg: #3A1F1D; --red-fg: #F0948C;
  --teal-bg: #163331; --teal-fg: #7CCFC8; --purple-bg: #2C2238; --purple-fg: #C3A3E8;
  --note-bg: #2C2614; --note-line: #5A4A22; --stripe: #4A3A1E;
  --pos: #5CC796; --neg: #F0948C;
  --shadow: 0 10px 30px rgba(0, 0, 0, .5);
  --sel-bg: #ECEEF0; --sel-fg: #14161A;
  --toast-bg: #ECEEF0; --toast-fg: #14161A; --toast-link: #2A6394;
  --zebra: #202329; --rule: #6A727B; --wk-line: #5A626D; --zebra-line: #3A414B; --team-bg: #595C60;
  --sb: rgba(236, 238, 240, .2);
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --dark: #0C0D10; --side-bg: #0C0D10; --top-bg: #0C0D10; --top-sub: #16191D;
  --ot: #33270F; --ot-fg: #F3B65C; --chart: #D17A00; --chart-h: #E08A14;
  --bg: #111317; --panel: #1A1D22; --ink: #ECEEF0; --i2: #C3C8CE; --i3: #9AA2AB; --i4: #7D858E; --i5: #6A727B; --muted: #9AA2AB;
  --b1: #2A2E35; --b2: #363B43; --b3: #23272D; --b4: #262A30; --row: #1E2126; --link: #7FB2E5;
  --line: #2A2E35; --line-strong: #363B43;
  --field: #111317; --field-line: #4A515B; --scrim: rgba(0, 0, 0, .6);
  --today: #2A2416; --weekend: #16191D; --over: #3A1F1D; --warn: #E8C27A;
  --amber-bg: #3A2F1A; --amber-fg: #E8C27A; --blue-bg: #1C2C3D; --blue-fg: #8DB9E3;
  --green-bg: #17322A; --green-fg: #7FD1A9; --red-bg: #3A1F1D; --red-fg: #F0948C;
  --teal-bg: #163331; --teal-fg: #7CCFC8; --purple-bg: #2C2238; --purple-fg: #C3A3E8;
  --note-bg: #2C2614; --note-line: #5A4A22; --stripe: #4A3A1E;
  --pos: #5CC796; --neg: #F0948C;
  --shadow: 0 10px 30px rgba(0, 0, 0, .5);
  --sel-bg: #ECEEF0; --sel-fg: #14161A;
  --toast-bg: #ECEEF0; --toast-fg: #14161A; --toast-link: #2A6394;
  --zebra: #202329; --rule: #6A727B; --wk-line: #5A626D; --zebra-line: #3A414B; --team-bg: #595C60;
  --sb: rgba(236, 238, 240, .2);
  color-scheme: dark;
}
html, body { background: var(--bg); }
/* Scroll bars thin and pale, in the theme chosen (James, 9 Nov 2026: in Light on a computer set to dark they came out
   dark and heavy, the browser going by the computer's setting). The dark panels (the menu, Zoho Calendar's side) pale. */
:root { color-scheme: light; scrollbar-color: var(--sb) transparent; scrollbar-width: thin; }
.app-side, body[data-cal-look="zoho"] .cv-side { scrollbar-color: rgba(236, 238, 240, .2) transparent; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); display: flex; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--o); }
:focus-visible { outline: 2px solid rgba(243, 146, 0, .35); outline-offset: 1px; }

/* ---------------------------------------------------------------- app shell */

.app-side { width: 232px; flex: 0 0 232px; background: var(--dark); padding: 22px 16px; display: flex; flex-direction: column; gap: 8px; height: 100vh; overflow-y: auto; }
.app-brand { padding: 0 8px 18px; color: #fff; line-height: 1.25; }
.app-brand img { display: block; height: 30px; width: auto; margin-bottom: 6px; } /* the client portal's logo (build.js copies it) */
.app-brand span { font-size: 11px; letter-spacing: .14em; color: var(--i4); text-transform: uppercase; }
.app-nav { display: flex; flex-direction: column; gap: 2px; }
.app-nav a { display: flex; align-items: center; padding: 10px 12px; font-size: 15px; border-radius: 4px; color: var(--i4); font-weight: 500; }
.app-nav a:hover { color: #fff; }
.app-nav a.on { margin-right: -16px; border-radius: 4px 0 0 4px; background: var(--bg); color: var(--ink); font-weight: 700; }
.app-nav a.soon { color: #50565E; cursor: default; }
.app-nav a.soon small { margin-left: auto; font-size: 11px; }
/* Menu sections (app.js drawMenu): a heading that opens its pages */
.nav-head { display: flex; align-items: center; width: 100%; padding: 10px 12px; margin-top: 6px; font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--i4); background: none; border: 0; border-radius: 4px; cursor: pointer; text-align: left; }
.nav-head::after { content: ''; margin-left: auto; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.nav-group.open .nav-head::after { transform: rotate(45deg); }
.nav-head:hover, .nav-group.has-on .nav-head { color: #fff; }
.nav-head:focus-visible { outline: 2px solid var(--o); outline-offset: 1px; }
/* Support's heading is its link: no arrow, and chosen like a page when you're on Support (Phil, 30 Oct 2026). */
.app-nav a.nav-head { font-size: 13px; font-weight: 700; }
.app-nav a.nav-head::after { content: none; }
.app-nav a.nav-head.on { color: var(--ink); }
/* A section with a badge in it, while it's closed (app.js drawDots): a dot, the counts are on its pages. */
.nav-dot { flex: none; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: var(--o); }
[data-group-toggle].open .nav-dot { display: none; }
.nav-sub { display: none; flex-direction: column; gap: 2px; margin-bottom: 4px; }
.nav-group.open .nav-sub { display: flex; }
.app-nav .nav-sub a { padding-left: 22px; }
/* My schedule and Planner on their own, a line above the sections */
.app-nav > a + .nav-group { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .1); }
.app-top-sub { display: none; }
.app-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.theme-pick { display: flex; align-items: center; gap: 4px; padding: 0 4px; font-size: 12px; color: var(--i4); }
.theme-pick span { margin-right: auto; font-weight: 600; }
.theme-pick button { background: none; border: 1px solid transparent; color: var(--i4); border-radius: 4px; padding: 3px 7px; font: inherit; font-size: 12px; cursor: pointer; }
.theme-pick button:hover { color: #fff; }
.theme-pick button.on { border-color: #4A515B; color: #fff; font-weight: 600; }
.side-card { background: rgba(255, 255, 255, .05); border-radius: 4px; padding: 14px; }
.side-card .l { font-size: 13px; font-weight: 600; color: var(--i3); }
.side-card .v { color: #fff; font-size: 15px; font-weight: 700; margin-top: 5px; }
.side-card button { margin-top: 8px; color: var(--i4); background: none; border: 0; padding: 0; cursor: pointer; font-size: 13px; font-weight: 600; }
.side-card button:hover { color: #fff; }
/* An admin's View as someone… and View as log (viewas.js), each on its own line above Sign out. */
.side-card [data-act="viewas"]:not([hidden]), .side-card [data-act="valog"]:not([hidden]) { display: block; }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; height: 100vh; }
.view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.view.scroll { overflow-y: auto; display: block; }
.page-head { background: var(--panel); border-bottom: 1px solid var(--b1); padding: 18px 28px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 22px; font-weight: 700; }
.page-head .sub { color: var(--i3); font-size: 14px; margin-top: 2px; }
.page-head .grow { flex: 1; }
/* The window's whole width, not 1,280px (Nicolai and James, 17 Nov 2026). A page that reads better narrower sets its own. */
.page-body { padding: 24px 28px 48px; }

/* ---------------------------------------------------------------- controls */

.top { display: flex; align-items: center; gap: 16px; padding: 12px 20px; background: var(--panel); border-bottom: 1px solid var(--b1); flex-wrap: wrap; }
.brand { display: flex; flex-direction: column; line-height: 1.2; min-width: 120px; }
.brand strong { font-size: 20px; }
.brand span { color: var(--muted); font-size: 12px; }
.tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.group { display: flex; gap: 6px; align-items: center; }
.tools button, .tools select, .tools input[type=search], .tools input[type=date] {
  height: 34px; padding: 0 12px; border: 1px solid var(--b2); border-radius: 4px; background: var(--panel); cursor: pointer; font-weight: 600; color: var(--i2);
}
.tools input[type=search] { width: 210px; cursor: text; font-weight: 400; color: var(--ink); }
.tools button:hover, .tools select:hover { border-color: var(--o); }
.seg { gap: 0; }
.seg button { border-radius: 0; margin-left: -1px; }
.seg button:first-child { border-radius: 4px 0 0 4px; margin-left: 0; }
.seg button:last-child { border-radius: 0 4px 4px 0; }
.seg button[aria-pressed=true] { background: var(--sel-bg); color: var(--sel-fg); border-color: var(--sel-bg); }
.check { display: flex; gap: 4px; align-items: center; color: var(--muted); cursor: pointer; }
#changes { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--b4); font-size: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 4px; font-weight: 700; font-size: 14px; padding: 9px 16px; white-space: nowrap; border: 1px solid transparent; cursor: pointer; background: none; }
.btn-p { background: var(--o); color: var(--ink); }
.btn-p:hover { background: var(--oh); color: var(--ink); }
.btn-o { border-color: var(--b2); color: var(--ink); font-weight: 600; background: var(--panel); }
.btn-o:hover { border-color: var(--o); color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn-q { color: var(--i3); font-weight: 600; }
.btn-q:hover { color: var(--ink); }

/* Key and tips, behind the ? button on the planner toolbar */
.help-wrap { position: relative; margin-left: auto; }
/* Round in every browser (James, 21 Oct 2026: Safari squashed them): a fixed size both ways, never shrunk, none of the browser's own button look. */
.help-btn, .tools button.help-btn { -webkit-appearance: none; appearance: none; box-sizing: border-box; width: 32px; height: 32px; min-width: 32px; min-height: 32px; aspect-ratio: 1; flex: none; align-self: center; display: inline-flex; align-items: center; justify-content: center; line-height: 1; font-weight: 700; border-radius: 50% !important; padding: 0 !important; }
.help-btn[aria-expanded=true] { background: var(--sel-bg); color: var(--sel-fg); border-color: var(--sel-bg); }
.help-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 80; width: min(340px, calc(100vw - 24px)); max-height: calc(100vh - 160px); overflow-y: auto; overscroll-behavior: contain; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: var(--shadow); padding: 12px 16px; font-size: 13px; }
.help-pop h3 { margin: 4px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.help-pop ul { margin: 0 0 8px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.help-key { display: grid !important; grid-template-columns: 1fr 1fr; }
.help-key li { display: flex; align-items: center; gap: 8px; }
.help-key i { width: 22px; height: 14px; border-radius: 3px; flex: none; }
.help-key .k-solid { background: #5B7FE0; }
.help-key .k-outline { border: 2px solid #5B7FE0; background: var(--panel); }
.help-key .k-over { background: var(--red-bg); border-bottom: 3px solid var(--over-line); }
.help-key .k-oc { background: repeating-linear-gradient(135deg, var(--ot) 0 4px, #F7C97A 4px 7px); border: 1px solid #F39200; }
/* The kinds of booking (planner.js kindOf), each with its icon. */
.help-kinds i { width: 28px; height: 16px; display: grid; place-items: center; color: #fff; }
.help-kinds i.k-outline { color: var(--ink); }
.help-kinds .k-zcal { background: color-mix(in srgb, #F39200 30%, var(--panel)); color: var(--ink); }
.help-kinds .k-busy { background: color-mix(in srgb, var(--muted) 24%, var(--panel)); color: var(--ink); }
.help-kinds .k-invite { border: 1.5px dashed #F39200; background: var(--panel); color: var(--ink); }
.help-kinds svg { width: 11px; height: 11px; }
/* Leave (planner.js isLeave): shown, never opened or moved here; it's managed on Leave. */
.block.leave { cursor: default; }
.block.leave .edge { display: none; }
.cell .oc-mark { position: absolute; left: 2px; right: 2px; bottom: 12px; height: 14px; border-radius: 3px; background: repeating-linear-gradient(135deg, var(--ot) 0 6px, var(--stripe) 6px 12px); box-shadow: inset 0 0 0 1px #F39200; color: var(--ot-fg); font-size: 10px; font-weight: 700; line-height: 14px; padding: 0 4px; overflow: hidden; white-space: nowrap; pointer-events: none; }
/* On-call rota (oncall.js) */
.oc-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.oc-grid { display: flex; flex-direction: column; gap: 8px; }
.oc-week, .oc-days { display: grid; grid-template-columns: 96px repeat(7, minmax(0, 1fr)); gap: 6px; }
.oc-days div { font-size: 12px; font-weight: 700; color: var(--i3); padding: 0 4px; }
.oc-wk { display: flex; flex-direction: column; justify-content: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--i2); }
.oc-wk .btn { align-self: flex-start; }
.oc-cell { position: relative; text-align: left; border: 1px solid var(--b1); background: var(--panel); border-radius: 6px; padding: 8px 8px 8px 13px; min-height: 92px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; overflow: hidden; min-width: 0; font: inherit; color: var(--ink); }
.oc-cell::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--pc, transparent); }
.oc-cell:hover { border-color: var(--o); }
.oc-cell.we { background: var(--row); }
.oc-cell.today { box-shadow: inset 0 0 0 2px var(--o); }
.oc-cell.sel { border-color: var(--o); background: var(--ot); }
.oc-cell.draft { border-style: dashed; }
.oc-cell.off .oc-pn { text-decoration: line-through; color: var(--i3); }
.oc-cell.out .oc-dn { color: var(--i4); }
.oc-dn { font-size: 12px; color: var(--i3); font-weight: 700; }
.oc-pn { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-tm { font-size: 12px; color: var(--i2); font-variant-numeric: tabular-nums; }
.oc-cal { font-size: 11px; font-weight: 600; }
.oc-cal.ok { color: var(--green-fg); }
.oc-cal.warn { color: var(--amber-fg); }
.oc-note { font-size: 11px; color: var(--i3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-ed { margin-bottom: 14px; border-color: var(--o); }
.oc-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.oc-form > * { min-width: 0; }
.oc-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; color: var(--i2); }
.oc-form .oc-wide { grid-column: 1 / -1; }
.oc-skip { display: inline-flex !important; flex-direction: row !important; gap: 4px; margin-right: 10px; font-weight: 400 !important; }
/* Set up project: a needed field, one left empty, and the form's own headings (sold.js) */
.sd-req { color: var(--neg); }
.sd-miss { border-color: var(--neg) !important; }
.sd-sub { margin: 6px 0 0; font-size: 13px; color: var(--i2); }
/* Sold in CRM, awaiting a project manager (sold.js) */
.sd-card { margin-bottom: 16px; border-color: var(--o); }
.sd-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--b3); }
.sd-row:first-child { padding-top: 0; }
.sd-row:last-child { border-bottom: 0; padding-bottom: 0; }
.sd-main { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sd-btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sd-form { flex: 1 1 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; background: var(--b4); border-radius: 6px; padding: 14px; }
.sd-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; color: var(--i2); }
.sd-form .sd-wide { grid-column: 1 / -1; }
.sd-acts { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
/* Support overview (overview.js) */
.ov-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 16px; }
.ov-stat { text-align: left; background: var(--panel); border: 1px solid var(--b1); border-radius: 6px; padding: 16px 18px; cursor: pointer; font: inherit; color: var(--ink); }
.ov-stat:hover { border-color: var(--o); }
.ov-stat .l { font-size: 13px; color: var(--i4); font-weight: 600; }
.ov-stat .v { font-size: 28px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.ov-stat .n { font-size: 13px; color: var(--i3); margin-top: 2px; }
.ov-stat.alert { border-color: var(--neg); background: var(--red-bg); }
.ov-stat.alert .v { color: var(--neg); }
.ov-cols { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .ov-cols { grid-template-columns: minmax(0, 1fr); } }
.ov-cols .stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ov-row { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--b3); color: var(--ink); text-decoration: none; }
.ov-row:first-child { padding-top: 0; }
.ov-row:last-child { border-bottom: 0; padding-bottom: 0; }
a.ov-row:hover b { color: var(--o); }
.ov-row .grow { flex: 1; min-width: 0; }
.ov-row b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-tags { display: flex; gap: 8px; align-items: center; flex: none; }
.ov-time { width: 44px; flex: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.ov-dn { width: 92px; flex: none; }
.ov-day.today { font-weight: 700; }
.ov-day.past { opacity: .55; }
.ov-wait { border-color: var(--o); }
/* Swaps (oncall.js) */
.oc-swap { font-size: 11px; font-weight: 700; color: var(--purple-fg); }
/* Leave on the rota (lib/rotaleave.js): a day whose person is on leave, and who else is off. */
.oc-cell.clash { border-color: var(--neg); background: var(--red-bg); }
.oc-leave { font-size: 11px; font-weight: 700; color: var(--amber-fg); }
.oc-leave.bad { color: var(--neg); }
.oc-off { font-size: 11px; color: var(--i3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Bank holidays and closed days (Leave → Holidays) and their day shift (oncall.js). */
.oc-cell.hol { background: var(--blue-bg); }
.oc-hol { align-self: flex-start; max-width: 100%; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-hol.bank { background: var(--teal-bg); color: var(--teal-fg); border: 1px solid currentColor; }
.oc-hol.shut { background: var(--amber-bg); color: var(--amber-fg); border: 1px solid currentColor; }
.oc-hol.split { background: var(--purple-bg); color: var(--purple-fg); border: 1px solid currentColor; }
.oc-dsh { font-size: 11px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-dsh.none { color: var(--neg); font-weight: 700; }
.oc-dsh.draft { font-style: italic; }
.oc-shut { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.oc-shut .f-in { flex: 1 1 200px; max-width: 280px; }
.oc-clashes { margin-bottom: 16px; border-left: 3px solid var(--amber-fg); }
.oc-clashes.bad { border-left-color: var(--neg); }
.oc-clash { padding: 4px 0; font-size: 13px; }
.oc-clash.bad b { color: var(--neg); }
.oc-leavenote { padding: 8px 10px; background: var(--amber-bg); border-radius: 6px; color: var(--amber-fg); }
/* A draft month sent to the team to check (Phil, 30 Oct 2026, oncall.js). */
.oc-draftnote { margin-bottom: 14px; }
.oc-draftto { margin: 4px 0 8px; padding-left: 18px; }
.oc-notteam { color: var(--amber-fg); }
.sw-lay { display: flex; flex-direction: column; gap: 16px; max-width: 980px; }
.sw-days { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 6px; }
.sw-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--b3); }
.sw-row:first-child { padding-top: 0; }
.sw-row:last-child { border-bottom: 0; padding-bottom: 0; }
.sw-main { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sw-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sw-pick { width: auto; height: 28px; font-size: 13px; padding: 0 6px; }
[data-nav] .nb { margin-left: 6px; }
.lv-h { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--i3); }
/* My leave: a card a kind, what's left first, then a bar of used, waiting (striped) and left. Side by side in a
   wrapping row, not .cards, so the two are always the same height (James, 26 Oct 2026). */
.lv-bals { display: flex; flex-wrap: wrap; gap: 16px; }
.lv-bals > .card { flex: 1 1 340px; }
.lv-bal { padding: 14px 18px; display: flex; flex-direction: column; gap: 8px; }
.lv-bal .lv-h { margin: 0; }
.lv-bal-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.lv-left { color: var(--i3); font-size: 13px; white-space: nowrap; }
.lv-left b { font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }
.lv-left.neg, .lv-left.neg b { color: var(--neg); }
.lv-bar { display: flex; height: 8px; border-radius: 4px; background: var(--b2); overflow: hidden; }
.lv-bar i { display: block; height: 100%; }
.lv-used { background: var(--o); }
.lv-wait { background: repeating-linear-gradient(135deg, var(--o) 0 2px, var(--b2) 2px 4px); }
.lv-key { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--i3); }
.lv-key span { display: inline-flex; align-items: center; gap: 6px; }
.lv-key b { color: var(--ink); font-variant-numeric: tabular-nums; }
.lv-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--b2); flex: none; }
.lv-dot.lv-used { background: var(--o); }
.lv-dot.lv-wait { background: repeating-linear-gradient(135deg, var(--o) 0 2px, var(--b2) 2px 4px); }
.lv-sum { padding: 10px 12px; border-radius: 4px; background: var(--row); color: var(--i2); font-weight: 400; line-height: 1.5; }
.lv-sum:empty { display: none; }
.lv-year { display: flex; gap: 8px; align-items: center; }
.lv-scope { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.lv-scope [aria-pressed="true"] { background: var(--sel-bg); border-color: var(--sel-bg); color: var(--sel-fg); }
.lv-year label { display: flex; gap: 8px; align-items: center; font-weight: 600; color: var(--i3); white-space: nowrap; }
.lv-year select { width: auto; height: 38px; }
.lv-change { margin: 4px 0 2px; padding: 8px 10px; border-left: 3px solid var(--amber-fg); background: var(--amber-bg); border-radius: 4px; font-size: 13px; }
.lv-diff { margin-top: 3px; }
.lv-crowd { margin-top: 4px; font-weight: 600; }
.lv-clash { margin: 4px 0 2px; padding: 8px 10px; border-left: 3px solid var(--red-fg); background: var(--red-bg); color: var(--ink); border-radius: 4px; font-size: 13px; }
.sw-row.wide .sw-main { flex-basis: 100%; }
.sw-row.lv-compact { padding: 8px 0; }
.sw-row.lv-focus { outline: 2px solid var(--o); outline-offset: 6px; border-radius: 4px; }
.sw-row.wide .sw-acts { margin-left: auto; }
.lv-diff s { color: var(--i4); }
.lv-edit { width: 100%; padding: 12px; border-radius: 6px; background: var(--b4); }
.lv-open { padding: 6px 20px 14px 40px; border-bottom: 1px solid var(--b4); background: var(--row); }
.tr.on { background: var(--row); }
.lv-steps { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 10px; font-weight: 400; }
.lv-step { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lv-step .f-in { width: 84px; height: 32px; }
/* Leave settings, the ⚙ popup (leave.js): wide enough for each person's allowances. Labels in a
   dialog stack by default; tick boxes, radios and the year sit on one line here. */
.lv-dlg { width: min(1100px, calc(100vw - 32px)); }
.lv-dhead { display: flex; gap: 10px 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.lv-dhead h3 { margin: 0; }
.lv-dlg label.lv-dyear { flex-direction: row; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--i3); white-space: nowrap; }
.lv-dyear select { width: auto; }
.lv-dlg .hol-ask label, .lv-dlg label.hol-off { flex-direction: row; }
.nb { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: var(--o); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.oc-tots { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.oc-tot { display: flex; flex-direction: column; gap: 2px; padding-left: 10px; box-shadow: inset 4px 0 0 var(--pc); }
.oc-dr { color: var(--amber-fg); }
/* Hours and pay: a month, or the year month by month. Published pay is a solid bar, draft
   pay the same colour striped after it (one series, two states; never colour alone: the
   key and each bar's title say which). */
.oc-paybar { margin-bottom: 12px; }
/* The rota's ⚙ payroll email popup (oncall.js payrollDialog): a block per pay month. */
.op-month { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1px solid var(--b1); border-radius: 8px; }
.op-mh { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.op-when { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-end; }
.op-when label { display: flex; flex-direction: column; gap: 4px; }
.op-ch ul { margin: 4px 0 0; padding-left: 18px; }
.op-prev { display: flex; flex-direction: column; gap: 6px; }
.op-prev iframe { width: 100%; height: 420px; border: 1px solid var(--b1); border-radius: 6px; background: #fff; }
.oc-bar-c { display: flex; gap: 2px; height: 12px; align-items: stretch; }
.oc-bar-l, .oc-bar-d { display: block; min-width: 3px; border-radius: 0 4px 4px 0; }
.oc-bar-l { background: var(--chart); }
.oc-bar-d { background: repeating-linear-gradient(135deg, var(--chart) 0 3px, transparent 3px 6px); box-shadow: inset 0 0 0 1px var(--chart); }
.oc-bar-c .oc-bar-l + .oc-bar-d { border-radius: 0 4px 4px 0; }
.oc-bar-c .oc-bar-l:not(:last-child) { border-radius: 0; }
.oc-key { display: inline-flex; align-items: center; gap: 5px; font-weight: 400; margin-right: 10px; }
.oc-key i { width: 14px; height: 10px; border-radius: 2px; }
a.tr.oc-yr { color: inherit; text-decoration: none; }
a.tr.oc-yr:hover { background: var(--row); }
.oc-yr.now { box-shadow: inset 3px 0 0 var(--o); }
@media (max-width: 760px) {
  .oc-days { display: none; }
  .oc-week { grid-template-columns: 1fr; gap: 4px; }
  .oc-wk { flex-direction: row; justify-content: space-between; align-items: center; }
  .oc-cell { min-height: 0; }
}
.help-key .k-hol { background: repeating-linear-gradient(45deg, var(--b4) 0 3px, var(--panel) 3px 6px); border: 1px solid var(--line); }
.help-tips li::before { content: '· '; color: var(--muted); }
.help-sc li { display: grid; grid-template-columns: 112px 1fr; gap: 8px; align-items: baseline; }
.help-sc kbd { display: inline-block; min-width: 18px; padding: 1px 5px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 4px; background: var(--panel); font-family: inherit; font-size: 11px; font-weight: 600; line-height: 1.4; text-align: center; }
.help-note { margin: 4px 0 2px; padding: 8px 10px; background: var(--amber-bg); border-radius: 6px; color: var(--amber-fg); }

/* ---------------------------------------------------------------- grid */

.planner { flex: 1; overflow: auto; overflow-anchor: none; position: relative; outline: none; background: var(--panel); }
.grid { position: relative; min-width: 100%; }

.head { position: sticky; top: 0; z-index: 30; display: flex; background: var(--panel); border-bottom: 1px solid var(--line-strong); height: var(--head); }
.corner { position: sticky; left: 0; z-index: 31; width: var(--side); flex: none; background: var(--panel); border-right: 1px solid var(--line-strong); padding: 4px 12px; display: flex; flex-direction: column; justify-content: flex-end; }
.corner .team { font-size: 12px; line-height: 16px; color: var(--muted); }
.corner .team b { color: var(--ink); }
.cols { position: relative; flex: none; }
.cols .band { position: absolute; top: 0; height: 22px; border-left: 1px solid var(--line); padding: 3px 6px; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.cols .band.week { top: 0; font-weight: 400; color: var(--muted); }
.cols .band.week b { color: var(--ink); font-weight: 600; }
.cols .day { position: absolute; top: 22px; height: 22px; text-align: center; font-size: 11px; color: var(--muted); border-left: 1px solid var(--line); line-height: 22px; overflow: hidden; white-space: nowrap; }
.cols .day.today { color: var(--accent); font-weight: 700; background: var(--today); }
.cols .day.weekend { background: var(--weekend); }

/* Telling the rows apart (James, 5 Nov 2026, from Tom's "hard to read"): a firm line between people and every
   other row shaded, names and days alike. */
.prow { display: flex; border-bottom: 1px solid var(--rule); }   /* 1px again (James, 6 Nov 2026), the 12px clear above and below kept */
.prow.alt .side, .prow.alt .lane { background: var(--zebra); }
.prow.alt .cell:not(.wk) { border-left-color: var(--zebra-line); }
.prow.dim { opacity: .35; }
/* A row they see but can't book on (Planner settings, hub_api lib/pscope.js). */
.prow.no-book .lane { opacity: .6; }
.side { position: sticky; left: 0; z-index: 20; width: var(--side); flex: none; background: var(--panel); border-right: 1px solid var(--line-strong); padding: 8px 10px; display: grid; grid-template-columns: 34px 1fr auto; gap: 2px 8px; align-items: start; align-content: start; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--b2); display: grid; place-items: center; font-size: 12px; font-weight: 600; overflow: hidden; grid-row: span 3; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.side .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side .title { color: var(--muted); font-size: 12px; grid-column: 2; }   /* wraps: the column is only as wide as the longest name (planner.js fitSide) */
.side .tags { grid-column: 2 / span 2; display: flex; gap: 3px; flex-wrap: wrap; }
.side .tag { font-size: 10px; padding: 1px 5px; border-radius: 3px; background: var(--b4); color: var(--i2); }
.side .nosign { font-size: 10px; color: var(--muted); }

.lane { position: relative; flex: none; cursor: crosshair; }
/* Bookings taller than a row on days off screen stay in it, or they showed through the line between the names
   (James, 22 Oct 2026); not while one is dragged, as it crosses into other rows. */
.lane:not(:has(.dragging)) { overflow: clip; }
/* The room left under a row's bookings (addRoom): a + where a click or a drag books. */
body:not(.touch-locked) .lane.can-book .cell:hover::after { content: '+'; position: absolute; left: 0; right: 0; bottom: 1px; text-align: center; font-size: 15px; line-height: 16px; font-weight: 600; color: var(--muted); opacity: .7; pointer-events: none; }
.cell { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--line); }
/* Where each week starts, firmer than the days' own lines (planner.js cellsHtml). */
.cell.wk { border-left: 3px solid var(--wk-line); }
.cols .day.wk-start, .cols .band.week { border-left: 3px solid var(--wk-line); }
.cell.weekend { background: var(--weekend); }
.cell.today { background: var(--today); }
/* Overbooked: shaded with a red line at its foot, both stopping 12px above the line between people, level with the
   on-call strip (James, 5 Nov 2026). */
.cell.over { background: linear-gradient(to top, transparent 0 12px, var(--over-line) 12px 15px, var(--over) 15px); }
.cell.away { background: repeating-linear-gradient(135deg, var(--b4) 0 6px, var(--b2) 6px 12px); }
.sel-range { position: absolute; top: 2px; bottom: 2px; background: rgba(59, 91, 219, .15); border: 1px dashed var(--accent); border-radius: 4px; pointer-events: none; z-index: 5; }

/* ---------------------------------------------------------------- blocks */

.block {
  position: absolute; z-index: 10; border-radius: 4px; padding: 2px 5px; overflow: hidden; cursor: grab;
  font-size: 11px; line-height: 14px; user-select: none; touch-action: none;
  background: var(--c); color: var(--fg); border: 1px solid rgba(0, 0, 0, .12);
}
.block.tentative { background: color-mix(in srgb, var(--c) 14%, var(--panel)); color: var(--ink); border: 2px solid var(--c); padding: 1px 4px; }
/* What kind it is (planner.js kindOf, James, 5 Nov 2026): from Zoho Calendar pale, with no edge; an invitation
   not answered yet dashed. */
.block.zcal { background: color-mix(in srgb, var(--c) 30%, var(--panel)); color: var(--ink); border-color: transparent; }
/* Someone else's from Zoho Calendar not shared with you: "Busy", grey (James, 11 Nov 2026). */
.block.zcal.busy { background: color-mix(in srgb, var(--muted) 24%, var(--panel)); color: var(--ink); }
.block.invite { background: var(--panel); color: var(--ink); border: 1.5px dashed var(--c); padding: 1.5px 4.5px; }
.block .ki { flex: none; width: 12px; height: 12px; align-self: center; }
/* Its time, or its hours, on the far right in a pale tag. */
.block .l1 .h.tm { flex: none; font-size: 10px; font-weight: 700; line-height: 12px; padding: 0 3px; border-radius: 3px; align-self: center;
  background: rgba(255, 255, 255, .62); color: #1d2433; }
.block.tentative .l1 .h.tm, .block.zcal .l1 .h.tm, .block.invite .l1 .h.tm { background: color-mix(in srgb, currentColor 13%, transparent); color: inherit; }
/* Months: just a short word about the job. */
.planner.z-month .block { padding: 2px 3px; font-size: 10px; }
.planner.z-month .block.tentative { padding: 1px 2px; }
.block.selected { outline: 2px solid var(--accent); outline-offset: 1px; z-index: 12; }
.block.dragging { opacity: .85; cursor: grabbing; z-index: 40; pointer-events: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.block.ghost { opacity: .3; }
/* A copy being dragged (Alt): the booking stays put, the copy has a + on its left, clear of its words. */
.block.copying { cursor: copy; padding-left: 20px; }
.block .copy-mark { position: absolute; top: 1px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 12px/14px system-ui, sans-serif; text-align: center; }
.reorder-line { position: absolute; height: 3px; border-radius: 2px; background: var(--accent); z-index: 41; pointer-events: none; }
.block.hidden-by-filter { opacity: .15; pointer-events: none; }
.block .l1 { display: flex; gap: 4px; white-space: nowrap; font-weight: 600; }
.block .l1 .h { margin-left: auto; font-weight: 400; }
.block .l1 > span { flex: none; }
.block .l1 > .n { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.block .tm { font-variant-numeric: tabular-nums; letter-spacing: -0.2px; }
.block .l2, .block .l3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.block .l3 { opacity: .8; }
/* Density (planner.js DENSITY): taller rows give a booking's name and client room to wrap. */
.planner.dens-comfortable .block { font-size: 12px; line-height: 15px; padding: 3px 6px; }
.planner.dens-comfortable .block.tentative { padding: 2px 5px; }
.planner.dens-spacious .block { font-size: 12.5px; line-height: 16px; padding: 4px 7px; }
.planner.dens-spacious .block.tentative { padding: 3px 6px; }
.planner.dens-spacious .block.wide .l2, .planner.dens-spacious .block.wide .l3 { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.planner.dens-spacious .block .l2 { margin-top: 2px; }
.block .edge { position: absolute; top: 0; bottom: 0; width: 7px; cursor: ew-resize; }
.block .edge.left { left: 0; }
.block .edge.right { right: 0; }
/* The bottom edge changes its hours (planner.js dragHours): between the side edges, a short bar on hover. */
.block .edge.bottom { top: auto; left: 7px; right: 7px; width: auto; height: 7px; cursor: ns-resize; }
.block:hover .edge.bottom::after, .block.dragging .edge.bottom::after { content: ''; position: absolute; left: 50%; bottom: 1px; width: 16px; margin-left: -8px; height: 2px; border-radius: 1px; background: currentColor; opacity: .5; }

/* Flags (planner.js flagHtml): working from home, an appointment, home by a time, all day in Zoho Calendar (its grey). A thin,
   rounded, hatched strip at the top of the day, so nobody mistakes one for a booking. */
.flag-wfh { --fc: #1FA396; } .flag-appt { --fc: #C8579F; } .flag-home { --fc: #D98612; } .flag-car { --fc: #4F7FD6; } .flag-zcal { --fc: #7A8597; }
.flag {
  position: absolute; z-index: 11; display: flex; align-items: center; gap: 3px; padding: 0 6px 0 3px; overflow: hidden;
  border-radius: 999px; border: 1px dashed var(--fc); cursor: pointer; user-select: none;
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--fc) 22%, var(--panel)) 0 4px, color-mix(in srgb, var(--fc) 9%, var(--panel)) 4px 8px);
  color: color-mix(in srgb, var(--fc) 55%, var(--ink)); font-size: 10px; font-weight: 700; line-height: 13px; white-space: nowrap;
}
.flag .fi { font-size: 10px; flex: none; }
.flag .ft { overflow: hidden; text-overflow: ellipsis; }
.flag:hover { border-style: solid; }
.flag.hidden-by-filter { opacity: .15; pointer-events: none; }
.flag-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.flag-offer .flag-pick { border: 1px dashed var(--fc); border-radius: 999px; padding: 3px 10px; font-size: 12px; background: color-mix(in srgb, var(--fc) 10%, var(--panel)); color: var(--ink); cursor: pointer; }
.flag-dlg { width: min(520px, calc(100vw - 32px)); }
/* The flag popup's choice: the booking form's chips, the chosen one solid and filled. */
.flag-offer .flag-pick[aria-pressed="true"] { border-style: solid; background: color-mix(in srgb, var(--fc) 32%, var(--panel)); font-weight: 700; }
.flag-offer .flag-pick:hover { border-style: solid; }
.flag-warn { margin: 0; color: var(--warn); font-size: 13px; }
.flag-warn:empty { display: none; }
.flag-hint { margin: -4px 0 0; }
/* Small Works (smallworks.js): hours against budget, and an opened job's budget and status. */
.sw-bar { position: relative; }
.sw-budget { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--ink); border-radius: 1px; }
.sw-over { color: var(--neg); font-weight: 600; }
/* A Small Works job's own page (projects.js renderSmall): the client above the site in one card, and the diary's card. */
.swp-h { margin: 0; padding: 14px 20px 0; font-size: 13px; font-weight: 700; color: var(--i4); }
.swp-h + .card-body { padding-top: 8px; }
.swp-of { font-size: 14px; font-weight: 500; color: var(--i4); }
/* Money with and without VAT (money.js, James, 12 Nov 2026): the with-VAT figure under the net, smaller and grey, and
   the VAT check (hub_api lib/vat.js) when the VAT invoiced isn't in step with the quote's. */
.vat-g { display: block; font-size: 12px; font-weight: 400; color: var(--i3); white-space: nowrap; }
.stat .v .vat-g { font-size: 13px; margin-top: 2px; }
.vat-sum { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.card-body > .vat-sum:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.vat-sum .k { font-size: 12px; color: var(--i3); }
.vat-sum .v { font-weight: 600; }
.vat-warn { margin: 10px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--amber-bg); color: var(--amber-fg); font-size: 13px; }
.vat-warn.vat-quiet { background: var(--b4); color: var(--i3); }
.vat-flag { color: var(--amber-fg); font-weight: 600; }
.swp-bar { margin-top: 8px; }
.swp-pm { padding: 14px 20px 4px; }
.swp-pm:empty { display: none; }
/* Its Invoices card (projects.js smallInvoices): flex rows, which wrap on a phone, not the Invoicing tab's grid. */
.swi-row { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.kv + .swi-row { margin-top: 12px; }
.swi-main { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.swi-end { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.swi-void { color: var(--i4); }
.swi-none { margin: 12px 0 0; }
.swi-h { padding: 14px 0 0; }
.swi-src { margin: 12px 0 0; }
.fl-in { padding: 12px 20px; border-top: 1px solid var(--b3); }
.fl .card > .fl-crm { margin: 12px 20px; }
.sw-detail { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 12px 20px 14px; background: var(--row); border-bottom: 1px solid var(--b4); }
.sw-detail .spacer { flex: 1; }
.sw-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.sw-field input { width: 120px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 6px 8px; font-size: 14px; color: var(--ink); background: var(--panel); }
.sw-msg { flex-basis: 100%; color: var(--warn); }
/* Small Works jobs list: the quote number, Sort by beside Live/Completed/All, and Set it up in a row. */
.swj-q { font-weight: 600; font-variant-numeric: tabular-nums; }
.swj-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 12px; }
.swj-bar .subswitch { margin: 0; }
.swj-set { margin-top: 4px; }
.sw-detail > .sd-form { background: transparent; padding: 0; }
/* Small Works overview: jobs each month (columns), a bar per kind or client, and lists. One hue: the portal's orange. */
.sw-cols { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; align-items: end; height: 170px; }
.sw-col { display: flex; flex-direction: column; align-items: stretch; height: 100%; min-width: 0; }
.sw-colv { font-size: 11px; color: var(--i3); text-align: center; height: 16px; font-variant-numeric: tabular-nums; }
.sw-colbar { flex: 1; display: flex; align-items: flex-end; border-bottom: 1px solid var(--b2); padding: 0 3px; }
.sw-colbar i { display: block; width: 100%; min-height: 0; background: var(--chart); border-radius: 4px 4px 0 0; }
.sw-col:hover .sw-colbar i { background: var(--chart-h); }
.sw-colm { font-size: 11px; color: var(--i4); text-align: center; margin-top: 4px; }
.sw-hrow { display: grid; grid-template-columns: minmax(110px, 38%) 1fr auto; gap: 10px; align-items: center; padding: 5px 0; font-size: 13px; }
.sw-hl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-hbar { height: 10px; background: var(--b4); border-radius: 0 4px 4px 0; overflow: hidden; }
.sw-hbar i { display: block; height: 100%; background: var(--chart); border-radius: 0 4px 4px 0; }
.sw-hrow:hover .sw-hbar i { background: var(--chart-h); }
.sw-hv { color: var(--i3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sw-hrs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.sw-hrs .l { font-size: 12px; color: var(--i4); font-weight: 600; }
.sw-hrs .v { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sw-hrs .n { font-size: 12px; color: var(--i3); }
.sw-line { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--b4); font-size: 13px; color: inherit; }
.sw-line:last-child { border-bottom: 0; }
.sw-line .s2 { display: block; color: var(--i4); font-size: 12px; }
.sw-rr { display: flex; gap: 10px; align-items: center; flex: none; text-align: right; font-variant-numeric: tabular-nums; }
.sw-msg:empty { display: none; }
/* The Overviews on Projects and Quotes (overviews.js): whose, a thin meter, the live projects and the won/lost table. */
.ovw-bar { justify-content: flex-end; }
.ovw-bar .ovw-who { display: flex; align-items: center; gap: 8px; margin-right: auto; color: var(--i3); font-weight: 600; }
.ovw-meter { height: 6px; background: var(--b4); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.ovw-meter i { display: block; height: 100%; background: var(--chart); border-radius: 3px; }
.ovw-h { font-size: 16px; margin: 4px 0 10px; }
.ovw-tbl { margin-bottom: 12px; }
.ovw-row { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr) minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 1fr); color: inherit; }
.ovw-row.ovw-all { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 1fr); }
a.tr.ovw-row:hover { background: var(--row); color: inherit; }
.ovw-per { font-size: 13px; }
.ovw-pr { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--b4); font-variant-numeric: tabular-nums; }
.ovw-pr:last-child { border-bottom: 0; }
.ovw-pr.th { color: var(--i4); font-weight: 600; font-size: 12px; }
.ovw-pr i { display: block; font-style: normal; color: var(--i4); font-size: 12px; }
@media (max-width: 860px) {
  .tr.ovw-row { display: flex; flex-wrap: wrap; min-width: 0; gap: 6px 14px; }
  .tr.ovw-row > :first-child { flex-basis: 100%; }
  .tr.ovw-row.th { display: none; }
}
/* Repeats (planner.js fillRepeat): the days to choose, and what it comes to. */
.repeat-days { flex-wrap: wrap; gap: 10px; }
.repeat-more { align-items: flex-end; }
/* The booking form (James, 14 Oct 2026: less cluttered): what it's for on one row, the project widest. */
dialog .row.bf-what > .bf-project { flex: 3 1 280px; }
dialog .row.bf-what > #phaseWrap, dialog .row.bf-what > #labelWrap { flex: 2 1 180px; }
/* A select is otherwise as wide as its longest project's name, which pushed the phase onto a line of its own. */
dialog .row.bf-what > label { min-width: 0; }
dialog .row.bf-what select { width: 100%; min-width: 0; }
.flag-offer .flag-pick { padding: 2px 9px; font-size: 12px; }
dialog .row > .repeat-every { flex: 0 0 140px; }
dialog .row > .repeat-days { flex: 1 1 320px; }
dialog .row.bf-when > .seg-field { flex: 0 0 auto; }
dialog .row.bf-when .seg-field label { white-space: nowrap; }
/* On a phone Time has a line of its own, Start and End time (or Hours a day) under it. */
@media (max-width: 520px) { dialog .row.bf-when > .seg-field { flex: 1 1 100%; } }
.repeat-sum { flex-basis: 100%; margin: 0; }
.repeat-sum:empty { display: none; }
/* Work booked on a flagged day (planner.js check): clear, in the flag's own look. */
.warnings li.flag-clash { list-style: none; margin: 0 0 4px -18px; padding: 6px 10px; border-radius: 6px; border: 1px dashed var(--o); background: var(--amber-bg); color: var(--amber-fg); font-weight: 700; }
.flag-hint:empty { display: none; }

/* ---------------------------------------------------------------- dialog */

/* The portal's own colours, not the browser's: in dark mode those were near black, with grey boxes (James, 15 Oct 2026). */
dialog { border: none; border-radius: 10px; padding: 0; width: min(640px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); background: var(--panel); color: var(--ink); }
dialog::backdrop { background: var(--scrim); }
/* The chosen project's colour on the booking popup (planner.js formChanged): a band across the top, a dot by the title. */
#form { border-top: 6px solid var(--pc, transparent); }
#form.has-colour #formTitle::before { content: ''; display: inline-block; width: 11px; height: 11px; margin-right: 8px; border-radius: 50%; background: var(--pc); vertical-align: 1px; }
dialog form { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow: auto; }
dialog h2 { margin: 0; font-size: 18px; }
dialog label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
dialog input, dialog select, dialog textarea { border: 1px solid var(--field-line); background-color: var(--field); border-radius: 6px; padding: 6px 8px; color: var(--ink); font-size: 14px; }
dialog select[size] { padding: 2px; }
/* Tick boxes and radio buttons drawn in the portal's colours: the browser's own were solid black squares
   in light mode, with a blue tick (James, 15 Oct 2026). Orange when ticked, with a dark tick, as on .today. */
input[type=checkbox], input[type=radio] { -webkit-appearance: none; appearance: none; flex: none; width: 16px; height: 16px; min-width: 16px; min-height: 16px; margin: 0 2px; padding: 0;
  border: 1.5px solid var(--i4); border-radius: 4px; background: var(--field) no-repeat center / 12px 12px; vertical-align: -3px; cursor: pointer; }
input[type=radio] { border-radius: 50%; }
input[type=checkbox]:hover:not(:disabled), input[type=radio]:hover:not(:disabled) { border-color: var(--o); }
input[type=checkbox]:checked, input[type=checkbox]:indeterminate, input[type=radio]:checked { border-color: var(--o); background-color: var(--o); }
input[type=checkbox]:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.5-5' fill='none' stroke='%2314161A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
input[type=checkbox]:indeterminate { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6h6' stroke='%2314161A' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
input[type=radio]:checked { box-shadow: inset 0 0 0 3px var(--field); }
input[type=checkbox]:disabled, input[type=radio]:disabled { opacity: .45; cursor: default; }
dialog .row { display: flex; gap: 10px; flex-wrap: wrap; }
dialog .row > * { flex: 1 1 120px; }
fieldset { border: 1px solid var(--line); border-radius: 6px; margin: 0; padding: 6px 10px 8px; }
legend { font-size: 12px; color: var(--muted); padding: 0 4px; }
.seg-field label, .people label { flex-direction: row; align-items: center; gap: 6px; color: var(--ink); font-size: 13px; }
.seg-field { display: flex; gap: 14px; }
.people > .xp { display: flex; }
.people > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px; }
.site { background: var(--bg); border-radius: 6px; padding: 8px 10px; font-size: 13px; }
.site .addr { font-weight: 600; }
.site .muted { color: var(--muted); }
.site .budget { margin-top: 4px; color: var(--muted); font-size: 12px; }
/* Someone else changed the booking open in the form, just now (live.js). */
.live-note { margin: 0 0 10px; padding: 6px 10px; border-radius: 6px; border: 1px dashed var(--o); background: var(--amber-bg); color: var(--amber-fg); font-size: 13px; font-weight: 700; }
.warnings { margin: 0; padding: 0 0 0 18px; color: var(--warn); font-size: 13px; }
.warnings:empty { display: none; }
.actions { display: flex; gap: 8px; align-items: center; }
.actions .spacer { flex: 1; }
.actions button { height: 34px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--panel); cursor: pointer; }
.actions .primary { background: var(--o); color: var(--ink); border-color: var(--o); font-weight: 700; }
.actions .danger { color: var(--over-line); border-color: var(--red-bg); }

/* ---------------------------------------------------------------- drawer, toast */

.drawer { position: fixed; right: 0; top: 0; bottom: 0; width: min(420px, 100vw); background: var(--panel); box-shadow: -8px 0 30px rgba(0, 0, 0, .15); z-index: 50; display: flex; flex-direction: column; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 16px; }
.drawer-head button { border: none; background: none; font-size: 22px; cursor: pointer; }
.drawer ol { margin: 0; padding: 12px 16px 12px 36px; overflow: auto; font-size: 13px; }
.drawer li { margin-bottom: 8px; }
.drawer li time { display: block; color: var(--muted); font-size: 11px; }

.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--toast-bg); color: var(--toast-fg); box-shadow: var(--shadow); padding: 9px 14px; border-radius: 8px; z-index: 60; font-size: 13px; display: flex; gap: 12px; align-items: center; }
.toast button { background: none; border: none; color: var(--toast-link); cursor: pointer; font-weight: 600; }

/* Phones: no names column. Each person's name and free hours sit in a slim bar across the top of
   their row, pinned to the left while the days scroll, so the calendar gets the whole width. */
.pname-m, .team-m { display: none; }
@media (max-width: 700px) {
  :root { --side: 0px; }
  .side, .corner { display: none; }
  .prow { flex-wrap: wrap; }
  /* 32px, the name centred in it (James, 5 Nov 2026: at 24px a phone's bigger name sat on the line). */
  .pname-m { display: flex; align-items: center; flex: 0 0 100%; height: 32px; background: var(--b3); border-bottom: 1px solid var(--line); }
  .pname-m span { position: sticky; left: 0; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 15px; line-height: 20px; white-space: nowrap; }
  .team-m { display: block; height: 26px; }
  .team-m span { position: sticky; left: 0; display: inline-block; padding: 5px 10px; font-size: 12px; color: var(--muted); white-space: nowrap; }
  .side .tags, .side .title { display: none; }
  .tools input[type=search] { width: 140px; }
}

/* ---------------------------------------------------------------- staff app */

.who { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 13px; color: var(--muted); }
.who b { color: var(--ink); font-weight: 600; }
.who button { height: 30px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--panel); cursor: pointer; }
.readonly .lane { cursor: default; }
.readonly .block { cursor: pointer; }
.readonly .block .edge { display: none; }
.saving { position: fixed; top: 10px; right: 16px; z-index: 60; font-size: 12px; color: var(--muted); }

.signin { position: fixed; inset: 0; z-index: 70; background: var(--bg); display: grid; place-items: center; padding: 16px; }
.signin form { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 28px; width: min(380px, 100%); display: flex; flex-direction: column; gap: 14px; box-shadow: 0 10px 30px rgba(16, 24, 40, .08); }
.signin h1 { margin: 0; font-size: 20px; }
.signin p { margin: 0; color: var(--muted); font-size: 14px; }
.signin label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.signin label.inline { flex-direction: row; align-items: center; gap: 6px; font-size: 13px; color: var(--ink); }
.signin input[type=email], .signin input[type=text] { height: 40px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 0 10px; font-size: 16px; color: var(--ink); }
.signin input.code { letter-spacing: .3em; font-size: 22px; text-align: center; }
.signin button { height: 40px; border-radius: 6px; border: 1px solid var(--sel-bg); background: var(--sel-bg); color: var(--sel-fg); font-weight: 600; cursor: pointer; }
.signin button.link { background: none; border: none; color: var(--accent); height: auto; font-weight: 400; padding: 0; text-align: left; }
.signin button.zoho { width: 100%; background: var(--o); border-color: var(--o); color: var(--ink); font-weight: 700; }
.signin button.zoho:hover { background: var(--oh); border-color: var(--oh); }
.signin .zoho-step { display: flex; flex-direction: column; gap: 10px; }
.signin .zoho-step[hidden] { display: none; }
.signin .or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 600; margin-top: 4px; }
.signin .or::before, .signin .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.side-card .zl { margin-top: 6px; font-size: 13px; font-weight: 600; color: #4CC08A; }
.side-card .zl a { color: var(--o); }
.signin .err { color: var(--over-line); font-size: 13px; }
.signin .err:empty { display: none; }
.signin form > div { display: flex; flex-direction: column; gap: 12px; }

/* ---------------------------------------------------------------- projects (portal cards and tables) */

.card { background: var(--panel); border: 1px solid var(--b1); border-radius: 6px; }
.card-head { padding: 14px 20px; border-bottom: 1px solid var(--b3); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-head h2 { margin: 0; font-size: 16px; font-weight: 700; }
/* A heading keeps its own width: what's beside it goes underneath when there isn't room, rather than squeezing it onto two lines. */
.card-head { flex-wrap: wrap; row-gap: 6px; }
.card-head > h2:first-child, .card-head > h3:first-child { flex-shrink: 0; max-width: 100%; }
.card-body { padding: 16px 20px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
/* Cards side by side: each runs down a column as tall as it needs, then the next column, so a short card never
   leaves a gap under it as a grid's rows do. A phone has one column, in order. Use this, not .grid2, for cards. */
.cards { columns: 340px; column-gap: 16px; }
.cards > * { break-inside: avoid; margin: 0 0 16px; }
/* Safari only (the test is one only it passes): it carries the bottom margin of a column's last card to the top of the
   next column, so that column starts 16px lower (James, 21 Oct 2026). As an inline block it doesn't. Not for Chrome,
   which would then balance the columns differently. */
@supports (font: -apple-system-body) and (-webkit-appearance: none) {
  .cards > * { display: inline-block; width: 100%; vertical-align: top; }
}
.cards > :empty { display: none; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px 18px; }
.kv .k { font-size: 13px; color: var(--i4); font-weight: 600; }
.kv .v { font-size: 15px; margin-top: 3px; }
.muted { color: var(--i3); }
.small { font-size: 13px; }

.tbl { background: var(--panel); border: 1px solid var(--b1); border-radius: 6px; overflow-x: auto; }
.tbl.inner { border: 0; border-radius: 0; }
.tr { display: grid; gap: 12px; padding: 13px 20px; border-bottom: 1px solid var(--b4); align-items: center; font-size: 14px; min-width: 640px; }
.tr.th { padding: 11px 20px; background: var(--row); border-bottom: 1px solid var(--b3); font-size: 13px; font-weight: 600; color: var(--i3); }
.tr.click { cursor: pointer; color: inherit; }
.tr.click:hover { background: var(--row); color: inherit; }
/* Schedule → By phase: a phase opened to each person's hours on it (projects.js) */
.tr.pj-who { padding-top: 8px; padding-bottom: 8px; background: var(--row); }
.tr.pj-who[hidden] { display: none; }
.tr.pj-who > :first-child { padding-left: 14px; }
.tr:last-child { border-bottom: 0; }
.tr .nm { font-weight: 600; }
.tr .s2 { color: var(--i4); font-size: 13px; margin-top: 2px; }
/* Every row of a table is its own grid: its cells can be narrower than their words (which wrap), so a long name never
   widens its column on one row and the rows line up with the heading (James, 21 Oct 2026). */
.tbl .tr > * { min-width: 0; overflow-wrap: anywhere; }
/* A table's heading moves down with the page while its table is on screen, under whatever is held at the top
   (stickyheads.js sets --sh-y; James, 11 Nov 2026). Not sticky: tables scroll sideways, which pins sticky to the table.
   A <thead> with no background of its own gets the panel's while it's moved, so rows don't show through it. */
.tbl .tr.th:not(.grp), thead > tr > * { position: relative; z-index: 2; transform: translateY(var(--sh-y, 0px)); }
:where(thead[data-stuck] > tr) > * { background: var(--panel); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.empty { padding: 22px 20px; color: var(--i3); }

.pill { display: inline-block; padding: 3px 9px; border-radius: 3px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--b4); color: var(--i2); }
.pill.amber { background: var(--amber-bg); color: var(--amber-fg); }
.pill.blue { background: var(--blue-bg); color: var(--blue-fg); }
.pill.green { background: var(--green-bg); color: var(--green-fg); }
.pill.red { background: var(--red-bg); color: var(--red-fg); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; vertical-align: -1px; }

.note { padding: 12px 14px; border-radius: 4px; background: var(--amber-bg); border: 1px solid var(--note-line); color: var(--amber-fg); font-size: 14px; }
.note.blue { background: var(--blue-bg); border-color: var(--b2); color: var(--blue-fg); }

.ptabs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 22px; background: var(--b3); box-shadow: inset 0 0 0 1px var(--b1); max-width: 100%; margin: 0 0 18px; }
.ptabs a { padding: 6px 18px; border-radius: 999px; color: var(--i3); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s; }
.ptabs a:hover { color: var(--ink); }
.ptabs a.on, .ptabs a[aria-current=page] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(16, 24, 40, .16), 0 0 0 1px var(--b1); }
.ptabs a:focus-visible { outline: 2px solid var(--o); outline-offset: 1px; }
@media (max-width: 520px) { .ptabs a { padding: 6px 12px; } }
/* A project's tabs as folder tabs: the chosen one opens into a tray holding its parts (Summary, Schedule…) and what
   they show, so the parts read as inside it (James, 26 Oct 2026, option B; projects.js renderProject). The parts keep
   .subswitch for touch.js's sideways scroll and fades, restyled as underlined words a size down from the tabs. */
.ptabs.pj-tabs { display: flex; gap: 2px; padding: 0; margin: 0 0 -1px; border-radius: 0; background: none; box-shadow: none; position: relative; z-index: 1; }
.pj-tabs a { padding: 8px 16px; border: 1px solid transparent; border-bottom: 0; border-radius: 10px 10px 0 0; font-size: 16px; font-weight: 700; }
.pj-tabs a.on, .pj-tabs a[aria-current=page] { background: var(--row); border-color: var(--b1); box-shadow: none; }
.pj-tray { background: var(--row); border: 1px solid var(--b1); border-radius: 10px; padding: 16px; }
.pj-tabs:has(> a.on:first-child) + .pj-tray { border-top-left-radius: 0; }
.pj-tray.pj-tray-subs { padding-top: 0; }
.pj-subs { margin: 0 -16px 16px; padding: 0 16px; border-bottom: 1px solid var(--b1); }
.pj-tray .pj-parts, .pj-tray .fl-seg, .pj-tray .proc-tracks { display: flex; gap: 20px; padding: 0; border-radius: 0; background: none; box-shadow: none; }
.pj-tray .pj-parts button, .pj-tray .fl-seg button, .pj-tray .proc-tracks button { padding: 10px 0 9px; border-radius: 0; font-size: 13.5px; font-weight: 500; }
.pj-tray .pj-parts button[aria-pressed=true], .pj-tray .fl-seg button[aria-pressed=true], .pj-tray .proc-tracks button[aria-pressed=true] { background: none; font-weight: 600; box-shadow: inset 0 -2px 0 var(--o); }
/* A one-part tab whose page has parts of its own (Site's Task lists, Snags…; Process's AV, Lighting): the same strip
   along the tray's top, drawn by the page itself (field.js, process.js). */
.pj-tray .fl-seg, .pj-tray .proc-tracks { max-width: none; margin: -16px -16px 16px; padding: 0 16px; border-bottom: 1px solid var(--b1); }
@media (max-width: 860px) {
  .pj-tray { padding: 12px 10px; }
  .pj-subs { margin: 0 -10px 12px; padding: 0 10px; }
  .pj-tray .fl-seg, .pj-tray .proc-tracks { margin: -12px -10px 12px; padding: 0 10px; }
}
@media (max-width: 520px) { .pj-tabs a { padding: 8px 12px; font-size: 15px; } .pj-tray .pj-parts, .pj-tray .fl-seg, .pj-tray .proc-tracks { gap: 16px; } }

.bar { height: 10px; border-radius: 5px; background: var(--b4); overflow: hidden; display: flex; }
.bar i { display: block; height: 100%; }
.bar .c { background: var(--o); }
.bar .t { background: repeating-linear-gradient(135deg, #F7C97A 0 4px, var(--stripe) 4px 8px); }
.bar.over .c { background: var(--neg); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--i3); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

.stat { padding: 16px 20px; }
.stat .l { font-size: 13px; color: var(--i4); font-weight: 600; }
.stat .v { font-size: 24px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .n { font-size: 13px; color: var(--i3); margin-top: 2px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }

.back { display: inline-block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--i3); }
/* A project page in its colour (projects.js renderProject): a strip along the top that stays there as the page scrolls, and
   once the heading scrolls away it opens into a band with the project's name (.pj-stuck, bandWatch). Only the top, not an
   edge round the whole page (James, 27 Oct 2026), so the colour is on screen at any scroll. */
.pj-band { position: sticky; top: 0; z-index: 25; height: 6px; background: var(--pc); }
.pj-band > * { display: none; }
.pj-stuck .pj-band { display: flex; align-items: center; gap: 6px; height: 32px; margin: 0 0 -26px; padding: 0 12px; color: var(--pc-ink); font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; }
.pj-stuck .pj-band > * { display: inline; }
.pj-band > :first-child { overflow: hidden; text-overflow: ellipsis; }
.pj-band-at { font-weight: 500; opacity: .85; }
/* A project page's ‹ Projects and the box to switch to another project (projects.js). */
.pj-jump { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; margin-bottom: 6px; }
.pj-jump .back { margin-bottom: 0; }
/* The Projects list (projects.js): ten columns, so its rows slide sideways in their box sooner than most. The
   lighting designer has its own column, with small Lighting only and AV only pills (James, 11 Nov 2026). */
.tr.pj-list { min-width: 960px; }
.pill.pj-ld, .pill.pj-av { padding: 1px 6px; font-size: 11px; }
.pj-jump-sel { width: 280px; max-width: 100%; min-width: 0; height: 30px; padding: 0 8px; border: 1px solid var(--b2); border-radius: 4px; background: var(--panel); color: var(--ink); font-size: 13px; }
.toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar input[type=search] { height: 40px; width: min(360px, 100%); border: 1px solid var(--b2); border-radius: 4px; padding: 0 12px; background: var(--panel); }
.toolbar select { height: 40px; border: 1px solid var(--b2); border-radius: 4px; padding: 0 10px; background: var(--panel); }

@media (max-width: 860px) {
  .app-side { display: none; }
  .page-head, .page-body { padding-left: 16px; padding-right: 16px; }
}
.f-in { height: 40px; border: 1px solid var(--b2); border-radius: 4px; padding: 0 10px; background: var(--panel); font-size: 14px; font-weight: 400; color: var(--ink); width: 100%; }
textarea.f-in { height: auto; padding: 8px 10px; resize: vertical; }
.f-in:focus { border-color: var(--o); outline: none; }

/* Project page: CRM line under the name */
.pj-crm { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; min-height: 30px; }
.pj-links { display: inline-flex; gap: 6px; flex-wrap: wrap; }
/* Mark as complete or Reopen, at the right of Progress's status card heading (progress.js doneButton). */
.pg-done { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
/* Its fields: as many 220px columns as fit, or one as wide as a phone; Current state the whole width (James, 17 Nov
   2026: on a phone its span of two made a second column and the page zoomed out). */
.pg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.pg-grid > * { min-width: 0; }
.pg-grid input, .pg-grid select { width: 100%; min-width: 0; }
.pg-grid > .pg-wide { grid-column: 1 / -1; }
/* CRM's Supply Only tick (supplyonly.js): the box beside Mark as complete, and Projects' warnings. */
.so-host { margin-left: auto; display: inline-flex; align-items: center; }
.so-host + .pg-done { margin-left: 12px; }
.so-box { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; cursor: pointer; }
.so-box input { width: 16px; height: 16px; margin: 0; }
.so-card { margin-bottom: 16px; }
.so-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.so-row > div:first-child { flex: 1 1 320px; min-width: 0; }
.so-acts { display: flex; flex-wrap: wrap; gap: 8px; }
/* Phase invoice dates to sort (phasecheck.js): the rows share Supply Only's layout. */
.phc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 0; }
.phc-row > div:first-child { flex: 1 1 320px; min-width: 0; }
.phc-list { margin: 4px 0 0; padding-left: 18px; }
.phc-box { margin-bottom: 12px; }
.phc-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; color: var(--i2); }
.phc-chg { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 12px; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 13px; display: inline-flex; align-items: center; }
.tr.grp { background: var(--b4); }

/* ---------------------------------------------------------------- team, my schedule, phones */

body:not(.editor) .pm-only { display: none; }
body:not(.can-team) .team-only { display: none; }
body:not(.can-forecast) .forecast-only { display: none; }
body:not(.can-support) .support-only { display: none; }
body:not(.can-billing) .billing-only { display: none; }
/* The Manager's view: its overview, or only its Quarterly reports tab (Phil, 22 Oct 2026). */
body:not(.can-manager):not(.can-reports) .mgrview-only { display: none; }
/* A client's portal access (clientaccess.js). */
.ca-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px 12px; flex-wrap: wrap; min-width: 0; }
.ca-row > div:first-child { flex: 1 1 220px; }
.ca-act { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ca-act .ca-level { width: auto; min-width: 0; }
.ca-headr { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.ca-target { border-bottom: 1px solid var(--b4); overflow-wrap: anywhere; }
.ca-target.bad { color: var(--neg); }
.ca-warn { color: var(--neg); }
.ca-h { margin: 0 0 4px; font-size: 15px; }
/* What they see folds away, unless this home differs from its plan (clientaccess.js). */
.ca-what > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ca-what > summary::-webkit-details-marker { display: none; }
.ca-what > summary::before { content: "▸"; color: var(--i3); font-size: 13px; width: 12px; }
.ca-what[open] > summary::before { content: "▾"; }
.ca-what > summary .ca-h { margin: 0; }
.ca-what[open] > summary { margin-bottom: 8px; }
.ca-what .qh { margin-left: 0; }
.ca-screens { display: flex; flex-direction: column; }
.ca-screen { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--b4); cursor: pointer; }
.ca-screen:first-child { border-top: 0; }
.ca-screen .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ca-screen .s2 { font-weight: 400; }
.ca-grid { display: grid; gap: 0; align-items: center; overflow-x: auto; }
.ca-grid > div { padding: 7px 6px; border-top: 1px solid var(--b4); }
.ca-gh { font-size: 12.5px; font-weight: 700; text-align: center; border-top: 0 !important; }
.ca-gl { font-size: 14px; }
.ca-gc { text-align: center; }
.cl-billing-links { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 20px; border-bottom: 1px solid var(--b4); }
/* A client's own folder, at the top of Documents (clients.js clientFolder; Phil, 30 Oct 2026). */
.cl-folder { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 20px; border-bottom: 1px solid var(--b4); }
.cl-folder .grow { min-width: 180px; }
.tk-folder { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Remote systems (systems.js): OvrC's locations, and the card on a client's page and passport. */
.rs-info { margin: 0 0 12px; }
.rs-list { padding-top: 4px; padding-bottom: 4px; }
.rs-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--b4); }
.rs-row:last-child { border-bottom: 0; }
.rs-what { flex: 1 1 260px; min-width: 0; }
.rs-what b { overflow-wrap: anywhere; }
.rs-act { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.rs-client { margin-right: 4px; color: var(--ink); }
.rs-gone > summary { cursor: pointer; list-style: none; }
.rs-gone > summary::-webkit-details-marker { display: none; }
.rs-gone { margin-bottom: 16px; }
.rs-sec + .rs-sec, .kv + .rs-sec { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--b4); }
.rs-sec > .k { font-size: 13px; color: var(--i4); font-weight: 600; margin-bottom: 6px; }
/* On a ticket's Monitoring card each part's name opens its tab on Monitoring (systems.js card, 16 Nov 2026). */
.rs-sec > a.k { display: inline-block; text-decoration: none; }
.rs-sec > a.k:hover { color: var(--link); text-decoration: underline; }
.rs-linkbtn { margin-top: 8px; }
.rs-sec .ov-row b { white-space: normal; overflow-wrap: anywhere; }
.rs-uuid { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.rs-uuid code { overflow-wrap: anywhere; }
.rs-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.rs-stat { flex: 1 1 180px; background: var(--panel); border: 1px solid var(--b1); border-radius: 6px; padding: 12px 16px; }
.rs-stat > span { display: block; }
.rs-stat .k { font-size: 13px; color: var(--i4); font-weight: 600; }
.rs-stat .n { font-size: 26px; font-weight: 700; margin: 2px 0; }
.rs-stat.amber .n { color: var(--amber-fg); }
.rs-stat.red .n { color: var(--red-fg); }
/* Monitoring → Homes (systems.js): a light for each part, what's down under the home's name. */
.hm-issues { margin-top: 4px; display: grid; gap: 2px; }
.hm-issues a { font-weight: 600; }
/* Not linked: the plain grey pill, its words faded, as on the other pages (Phil, 27 Oct 2026: no dotted boxes). */
.hm-none { color: var(--i4); font-weight: 600; }
.hm-row.hm-down { box-shadow: inset 3px 0 0 var(--red-fg); padding-left: 10px; }
.hm-row.hm-attention { box-shadow: inset 3px 0 0 var(--amber-fg); padding-left: 10px; }
/* UniFi: a site's devices, opened under its row (systems.js). */
.un-devs { flex: 1 1 100%; min-width: 0; }
.un-devs > summary { cursor: pointer; color: var(--i3); }
.un-dev { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--b4); }
.un-dev:last-child { border-bottom: 0; }
.un-dev .grow { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.un-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red-fg); flex: none; }
.un-dot.on { background: var(--green-fg); }
.un-flap { color: var(--amber-fg); font-weight: 600; }
/* A device's Restart and PoE ports…. */
.un-ctl { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.un-dot.un-idle { background: var(--b4); }
/* The UniFi board (homes that need a look as cards, the rest as tiles), and one home's page (Phil, 12 Nov 2026). */
.un-h { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--i3); }
.un-h span { font-weight: 600; color: var(--i4); }
.un-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin: 20px 0 10px; }
.un-bar:first-of-type { margin-top: 8px; }
.un-bar .subswitch { margin: 0; }
.un-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.un-card { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 10px; border: 1px solid var(--b1); background: var(--panel); min-width: 0; overflow-wrap: anywhere; }
.un-card.red { background: var(--red-bg); border-color: transparent; }
.un-card.amber { background: var(--amber-bg); border-color: transparent; }
.un-card.blue { background: var(--blue-bg); border-color: transparent; }
.un-card .k { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.un-card.red .k { color: var(--red-fg); }
.un-card.amber .k { color: var(--amber-fg); }
.un-card.blue .k { color: var(--blue-fg); }
.un-card h3 { margin: 0; font-size: 17px; }
.un-card .rs-act { justify-content: flex-start; margin-top: auto; padding-top: 4px; }
.un-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 8px; }
.un-tile { display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--b1); background: var(--panel); color: var(--ink); text-decoration: none; min-width: 0; }
.un-tile:hover, .un-setup:hover { border-color: var(--accent); }
.un-tile > span:last-child { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.un-setup { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin-top: 20px; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--b1); background: var(--panel); color: var(--ink); text-decoration: none; }
.un-crumb { margin: 0 0 12px; }
.un-hhead { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 16px 18px; margin-bottom: 12px; }
.un-hhead .grow { flex: 1 1 280px; min-width: 0; overflow-wrap: anywhere; }
.un-hhead h2 { margin: 0 0 4px; font-size: 20px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.un-home { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.un-main { flex: 999 1 520px; min-width: 0; }
.un-side { flex: 1 1 300px; min-width: 0; }
.un-hlist { display: grid; gap: 4px; }
.un-hdev { padding: 12px 0; border-bottom: 1px solid var(--b4); display: grid; gap: 10px; }
.un-hdev:last-child { border-bottom: 0; }
.un-hrow { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.un-hrow .grow { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
/* A switch's ports (Phil, 13 Nov 2026: "make it clearer where ports are live", "which is the main uplink, and also
   downlink to other switches", "clearer when ports are SFP", "some more colour"): each coloured by what it's for, its
   speed under its number, ⚡ where PoE is powering something, the SFP cages squared off in a group of their own. */
.un-portbox { display: grid; gap: 10px; padding: 12px; border-radius: 8px; background: var(--row); border: 1px solid var(--b4); }
.un-pbhead { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; justify-content: space-between; }
.un-portrow { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.un-portrow > .un-ports { flex: 1 1 300px; }
.un-ports { display: flex; flex-wrap: wrap; gap: 6px; }
.un-sfpgrp { display: grid; gap: 4px; padding-left: 14px; border-left: 2px dashed var(--b2); }
.un-sfph { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--i3); }
.un-port, .un-key { --pc: var(--b2); --pb: transparent; --pf: var(--i4); }
.un-port.up, .un-key.up { --pc: var(--green-fg); --pb: var(--green-bg); --pf: var(--green-fg); }
.un-port.sw, .un-key.sw { --pc: var(--blue-fg); --pb: var(--blue-bg); --pf: var(--blue-fg); }
.un-port.ap, .un-key.ap { --pc: var(--teal-fg); --pb: var(--teal-bg); --pf: var(--teal-fg); }
.un-port.kit, .un-key.kit { --pc: var(--purple-fg); --pb: var(--purple-bg); --pf: var(--purple-fg); }
.un-port.down, .un-key.down { --pc: var(--red-fg); --pb: var(--red-bg); --pf: var(--red-fg); }
.un-port.upl, .un-key.upl { --pc: var(--o); --pb: var(--o); --pf: #17191E; }
.un-port { position: relative; width: 44px; height: 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; box-sizing: border-box;
  border-radius: 7px; border: 1.5px solid var(--pc); background: var(--pb); color: var(--pf); font: inherit; padding: 0; line-height: 1.1; }
.un-port:not(.up):not(.sw):not(.ap):not(.kit):not(.down):not(.upl) { border-style: dashed; }
.un-port.pow:not(.up):not(.sw):not(.ap):not(.kit):not(.down):not(.upl) { --pc: var(--green-fg); }
.un-port .n { font-size: 14px; font-weight: 700; }
.un-port .s { font-size: 10px; font-weight: 600; opacity: .9; white-space: nowrap; }
.un-port .z { position: absolute; top: -7px; right: -6px; font-size: 11px; line-height: 1; padding: 1px 2px; border-radius: 6px; background: var(--panel); box-shadow: 0 0 0 1px var(--b1); }
.un-port.sfp, .un-key.sfp { border-radius: 2px; box-shadow: inset 0 0 0 3px var(--panel), inset 0 0 0 4.5px var(--pc); }
.un-port.sfp { width: 52px; }
.un-port.upl .s { font-weight: 800; }
/* A port that can't be switched off from here (to the router or another switch, or locked by its tick): a padlock. */
.un-port.lock::after { content: "\1F512"; position: absolute; top: -7px; left: -6px; font-size: 10px; line-height: 1; padding: 1px 2px; border-radius: 6px; background: var(--panel); box-shadow: 0 0 0 1px var(--b1); }
.un-key.lock { border: 0; background: none; font-style: normal; font-size: 10px; }
button.un-port { cursor: pointer; }
button.un-port:hover, button.un-port:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.un-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.un-legend span { display: inline-flex; gap: 6px; align-items: center; }
.un-key { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; box-sizing: border-box; border-radius: 3px; border: 1.5px solid var(--pc); background: var(--pb); flex: none; font-style: normal; }
.un-key.nil { border-style: dashed; }
.un-key.zap { border: 0; width: auto; font-size: 12px; }
.un-key.sfp { --pc: var(--i3); width: 16px; }
/* What's plugged into a switch: its uplink, then the switches below it, Wi-Fi points, other UniFi kit and the rest. */
.un-on { display: grid; gap: 12px; }
.un-up { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 8px; background: color-mix(in srgb, var(--o) 14%, var(--panel)); border: 1px solid color-mix(in srgb, var(--o) 50%, var(--panel)); overflow-wrap: anywhere; }
.un-up .grow { flex: 1 1 auto; min-width: 0; }
.un-grp { --gc: var(--i3); display: grid; gap: 0; padding-left: 10px; border-left: 3px solid var(--gc); }
.un-grp.sw { --gc: var(--blue-fg); } .un-grp.ap { --gc: var(--teal-fg); } .un-grp.kit { --gc: var(--purple-fg); } .un-grp.up { --gc: var(--green-fg); }
.un-gh { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--gc); margin-bottom: 2px; }
.un-gh .muted { font-weight: 600; }
.un-or { display: flex; gap: 8px; align-items: center; padding: 4px 0; min-width: 0; }
.un-or .grow { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.un-or.off .grow b { color: var(--amber-fg); }
.un-wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 0 18px; }
/* A home's Wi-Fi networks, everything connected, a port's number on a chip (Phil, 13 Nov 2026). */
.un-wf { padding: 8px 0; border-bottom: 1px solid var(--b4); display: grid; gap: 6px; }
.un-wf:first-child { padding-top: 0; }
.un-wf:last-child { border-bottom: 0; padding-bottom: 0; }
.un-passrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.un-passrow[hidden] { display: none; }
.un-pass { padding: 4px 8px; border-radius: 6px; background: var(--row); border: 1px solid var(--b4); font-size: 14px; overflow-wrap: anywhere; user-select: all; }
.un-clbar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; }
.un-clbar .subswitch { margin: 0; }
.un-clbar input { flex: 1 1 220px; max-width: 340px; min-width: 0; }
/* Connected now, in columns, sortable (Phil, 13 Nov 2026); wired along a green edge, Wi-Fi a blue one. */
.un-sortrow { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 10px; }
.un-sort button { padding: 5px 12px; font-size: 13px; }
.un-dir { font-weight: 500; color: var(--i3); }
.un-clients { max-height: 560px; overflow-y: auto; container-type: inline-size; }
.un-cl { display: grid; grid-template-columns: minmax(0, 1.3fr) 118px minmax(0, 1.7fr); gap: 2px 16px; align-items: center; padding: 8px 6px 8px 10px; border-bottom: 1px solid var(--b4); border-left: 3px solid transparent; }
.un-cl.wired { border-left-color: var(--green-fg); }
.un-cl.wifi { border-left-color: var(--blue-fg); }
.un-cl:last-child { border-bottom: 0; }
.un-cl .grow { min-width: 0; overflow-wrap: anywhere; }
.un-ip { font-variant-numeric: tabular-nums; color: var(--i2); overflow-wrap: anywhere; }
.un-clw { min-width: 0; overflow-wrap: anywhere; }
.un-clw .un-pn { margin-right: 6px; }
@container (max-width: 560px) { .un-cl { grid-template-columns: minmax(0, 1fr); } }
.un-bars { display: inline-flex; align-items: flex-end; gap: 1px; height: 12px; margin-right: 6px; vertical-align: -1px; }
.un-bars i { width: 3px; border-radius: 1px; background: var(--b2); }
.un-bars i:nth-child(1) { height: 4px; } .un-bars i:nth-child(2) { height: 6px; } .un-bars i:nth-child(3) { height: 9px; } .un-bars i:nth-child(4) { height: 12px; }
.un-bars.good i.on { background: var(--green-fg); } .un-bars.fair i.on { background: var(--amber-fg); } .un-bars.weak i.on { background: var(--red-fg); }
.un-pn { --pc: var(--b2); --pb: var(--b4); --pf: var(--i2); display: inline-block; flex: none; min-width: 26px; box-sizing: border-box; padding: 2px 5px; border-radius: 5px; border: 1px solid var(--pc); background: var(--pb); color: var(--pf); font-size: 12px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.un-pn.up { --pc: var(--green-fg); --pb: var(--green-bg); --pf: var(--green-fg); }
.un-pn.sw { --pc: var(--blue-fg); --pb: var(--blue-bg); --pf: var(--blue-fg); }
.un-pn.ap { --pc: var(--teal-fg); --pb: var(--teal-bg); --pf: var(--teal-fg); }
.un-pn.kit { --pc: var(--purple-fg); --pb: var(--purple-bg); --pf: var(--purple-fg); }
.un-pn.upl { --pc: var(--o); --pb: var(--o); --pf: #17191E; }
/* Colour for a home (Phil, 13 Nov 2026: "any chance of adding some more colour? it all feels a bit boring"): a kind's
   picture in its own colour, each section's colour along its top, the numbers along the top tinted by what they say. */
.un-ico { --ic: var(--i3); --ib: var(--b4); display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: var(--ib); color: var(--ic); flex: none; }
.un-ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.un-ico svg .f { fill: currentColor; stroke: none; }
.un-ico.purple { --ic: var(--purple-fg); --ib: var(--purple-bg); } .un-ico.blue { --ic: var(--blue-fg); --ib: var(--blue-bg); }
.un-ico.teal { --ic: var(--teal-fg); --ib: var(--teal-bg); } .un-ico.green { --ic: var(--green-fg); --ib: var(--green-bg); }
.un-ico.amber { --ic: var(--amber-fg); --ib: var(--amber-bg); } .un-ico.red { --ic: var(--red-fg); --ib: var(--red-bg); }
.un-kind { position: relative; display: inline-flex; flex: none; }
.un-kind .un-ico { width: 34px; height: 34px; border-radius: 9px; }
.un-kind .un-ico svg { width: 20px; height: 20px; }
.un-kind .un-dot { position: absolute; right: -3px; bottom: -3px; width: 11px; height: 11px; box-shadow: 0 0 0 2px var(--panel); }
.un-sec { --tone: var(--b1); border-top: 3px solid var(--tone); }
.un-sec.purple { --tone: var(--purple-fg); } .un-sec.blue { --tone: var(--blue-fg); } .un-sec.teal { --tone: var(--teal-fg); }
.un-sec.green { --tone: var(--green-fg); } .un-sec.amber { --tone: var(--amber-fg); } .un-sec.red { --tone: var(--red-fg); } .un-sec.grey { --tone: var(--i5); }
.un-sec > .card-head h2 { display: flex; align-items: center; gap: 10px; }
.un-n { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--b4); color: var(--i2); font-size: 12px; font-weight: 700; }
.un-stats .rs-stat { border-top: 3px solid var(--tc, var(--b1)); }
.un-stats .rs-stat .n { color: var(--tc, inherit); }
.un-stats .t-blue { --tc: var(--blue-fg); } .un-stats .t-teal { --tc: var(--teal-fg); } .un-stats .t-green { --tc: var(--green-fg); }
.un-stats .t-amber { --tc: var(--amber-fg); } .un-stats .t-red { --tc: var(--red-fg); }
.un-wfsub { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin-top: 3px; }
.un-band { padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--b4); color: var(--i2); }
.un-band.b24 { background: var(--amber-bg); color: var(--amber-fg); } .un-band.b5 { background: var(--blue-bg); color: var(--blue-fg); } .un-band.b6 { background: var(--purple-bg); color: var(--purple-fg); }
.un-wf.off b { color: var(--i3); }
.un-uplnote { padding: 6px 10px; border-radius: 6px; background: color-mix(in srgb, var(--o) 14%, var(--panel)); }
/* The board: an all-online home's tile along a green edge, amber with updates waiting, grey with no tickets. */
.un-tile { border-left: 4px solid var(--green-fg); }
.un-tile.upd { border-left-color: var(--amber-fg); }
.un-tile.quiet { border-left-color: var(--b2); }
.un-h.amber { color: var(--amber-fg); } .un-h.green { color: var(--green-fg); }
.un-h.amber span, .un-h.green span { display: inline-block; padding: 0 8px; border-radius: 999px; background: var(--amber-bg); color: var(--amber-fg); }
.un-h.green span { background: var(--green-bg); color: var(--green-fg); }
.un-setup { background: var(--blue-bg); border-color: transparent; }
/* A client's Monitoring tab (systems.js monitoring): the switch between Network, Control4 and OvrC, and each part's bar. */
.mw-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mw-bar .subswitch { margin: 0; }
.mw-bar .grow { flex: 1 1 240px; min-width: 0; overflow-wrap: anywhere; }
.un-act { padding: 8px 0; border-bottom: 1px solid var(--b4); }
.un-act:first-child { padding-top: 0; }
.un-act:last-child { border-bottom: 0; padding-bottom: 0; }
/* Watch… (systems.js): a tick a device, wrapping on a phone. */
.un-watch { display: grid; gap: 2px; max-height: 50vh; overflow-y: auto; margin-top: 6px; }
.un-wd, dialog label.un-wd { display: flex; flex-direction: row; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 14px; color: var(--ink); }
.un-wd input { flex: none; margin-top: 3px; }
/* Monitoring → Watch lists (systems.js): a home, then a line for each controller and UniFi site it has. */
.wl-pick { flex: none; align-self: flex-start; padding-top: 2px; }
.wl-lines { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.wl-line { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 14px; }
.un-wd > span { min-width: 0; overflow-wrap: anywhere; }
.rs-tally { margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rs-tally:last-of-type { margin-bottom: 14px; }
/* Monitoring: a summary tile, and an OS, model or driver in the tallies, filters the page (Phil, 27 Oct 2026). */
button.rs-stat { font: inherit; color: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; justify-content: flex-start; }
button.rs-stat:hover { border-color: var(--b2); }
button.rs-stat[aria-pressed=true] { border-color: var(--o); box-shadow: inset 0 0 0 1px var(--o); }
button.rs-stat:focus-visible, .rs-tally button.pill:focus-visible { outline: 2px solid var(--o); outline-offset: 1px; }
.rs-tally button.pill { border: 0; font-family: inherit; cursor: pointer; }
.rs-tally button.pill:hover { box-shadow: inset 0 0 0 1px var(--b2); }
.rs-tally button.pill[aria-pressed=true] { background: var(--sel-bg); color: var(--sel-fg); }
.rs-strip { display: flex; gap: 2px; height: 18px; align-items: stretch; }
.rs-strip i { flex: 1 1 0; max-width: 10px; border-radius: 2px; }
/* A controller's performance (systems.js perfChart): lines over an hour-a-step SVG, the labels in HTML so they stay readable at any width. */
.rs-pf-chart { position: relative; margin-top: 10px; padding-left: 40px; }
.rs-pf-plot { position: relative; height: 140px; }
.rs-pf-plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.rs-pf-plot .grid { stroke: var(--b2); stroke-width: 1; }
.rs-pf-plot rect { fill: transparent; }
.rs-pf-plot rect:hover { fill: var(--b4); }
.rs-pf-plot polyline { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; pointer-events: none; }
.rs-pf-plot polyline.avg { stroke: var(--chart); }
.rs-pf-plot polyline.peak { stroke: var(--i5); stroke-width: 1.5; }
.rs-pf-y { position: absolute; left: 0; top: 0; width: 34px; height: 140px; }
.rs-pf-y span { position: absolute; right: 0; transform: translateY(-50%); font-size: 12px; color: var(--i4); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rs-pf-days { position: relative; height: 18px; margin-top: 4px; }
.rs-pf-days span { position: absolute; transform: translateX(-50%); font-size: 12px; color: var(--i4); white-space: nowrap; }
.rs-pf-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; font-size: 13px; color: var(--i3); }
.rs-pf-key i { display: inline-block; width: 16px; height: 2px; margin-right: 6px; vertical-align: middle; background: var(--chart); border-radius: 1px; }
.rs-pf-key i.peak { background: var(--i5); }
.tr.rs-netrow { grid-template-columns: 1.6fr 1fr 1.2fr .9fr .9fr; min-width: 0; }
.rs-mac { font-variant-numeric: tabular-nums; word-break: break-all; }
/* What's offline at the ticket's home, above everything (tickets.js liveHtml), and the mark on its tickets (offPill). */
.tk-live { border: 1px solid var(--amber-fg); border-left-width: 4px; background: var(--panel); border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
.tk-live.down { border-color: var(--neg); }
.tk-live.good { border-color: var(--b1); border-left-color: var(--pos); flex-direction: row; align-items: center; gap: 8px; padding: 6px 12px; }
.tk-live-h { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.tk-live-i { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 14px; }
.tk-offpill { margin-left: 6px; font-weight: 400; vertical-align: 1px; }
.rs-lic { padding: 10px 0; border-bottom: 1px solid var(--b4); }
.rs-lic:first-child { padding-top: 0; }
.rs-lic:last-of-type { border-bottom: 0; }
.rs-lic-h { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px; }
.rs-lic-h b { margin-right: auto; }
.rs-lic code { overflow-wrap: anywhere; }
/* A controller's page: Needs you above the cards, worst first; a filled mark is bad, a hollow one a warning. */
.rs-needs { background: var(--card, var(--b5)); border: 1px solid var(--b4); border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; }
.rs-needs.ok { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--i3); }
.rs-needs .mark-ok { width: 9px; height: 9px; border-radius: 50%; background: #2F9E6B; flex: none; }
.rs-needs-h { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.rs-need { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--b4); font-size: 14px; }
.rs-need:first-of-type { border-top: 0; }
.rs-need .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.rs-mk { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.rs-need.bad .rs-mk { background: #D24B3E; }
.rs-need.warn .rs-mk { border: 2px solid #E8A33A; }
/* What the client sees: their Support screen, in the driver's own colours (Concierge 2.11.0, www/contents). */
.cs-dlg { max-width: 460px; }
.cs-phone { background: #000; border-radius: 28px; padding: 10px; border: 1px solid #2a2a2a; }
.cs-screen { background: #000; color: #fff; border-radius: 20px; padding: 16px 14px 18px; font-family: Assistant, "Helvetica Neue", Arial, sans-serif; font-weight: 300; max-height: 62vh; overflow: auto; }
.cs-brand { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.cs-brand > span:first-child { font-weight: 700; font-size: 16px; }
.cs-i { color: #B2B2B2; } .cs-z { color: #F39200; }
.cs-site { font-size: 12px; color: #868484; }
.cs-hello { font-size: 21px; font-weight: 200; margin: 0 0 12px; line-height: 1.2; } .cs-hello b { font-weight: 600; }
.cs-card { border: 1px solid rgba(243, 146, 0, .38); border-radius: 14px; padding: 16px 14px; background: #0D0D0D; }
.cs-card.tier-premium { border-color: #1E1E1E; }
.cs-card.tier-signature { border-color: #F39200; box-shadow: 0 0 22px rgba(243, 146, 0, .16); }
.cs-tier { font-size: 26px; font-weight: 200; } .cs-holder { color: #B2B2B2; margin-top: 6px; } .cs-cover { font-size: 13px; color: #868484; }
.cs-rule { height: 1px; background: #1E1E1E; margin: 12px 0; }
.cs-status { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.cs-mark { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: #F39200; }
.cs-mark.warn { background: transparent; box-shadow: inset 0 0 0 2px #F39200; } .cs-mark.bad { box-shadow: 0 0 0 4px rgba(243, 146, 0, .28); } .cs-mark.unknown { background: #868484; }
.cs-note { font-size: 13px; color: #868484; } .cs-note b { color: #B2B2B2; }
.cs-otw { display: flex; gap: 10px; align-items: center; margin-top: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(243, 146, 0, .38); background: #0D0D0D; font-size: 14px; }
.cs-otw span span { color: #B2B2B2; font-size: 12px; }
.cs-av { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #161616; text-align: center; line-height: 34px; font-weight: 600; }
.cs-eta { text-align: right; font-size: 10px; color: #868484; text-transform: uppercase; } .cs-eta b { display: block; font-size: 20px; color: #fff; }
.cs-msg { margin-top: 14px; border-left: 2px solid #F39200; padding-left: 12px; font-size: 14px; color: #B2B2B2; } .cs-from { font-size: 11px; color: #868484; }
.cs-h { margin-top: 16px; font-weight: 600; font-size: 15px; }
.cs-rq { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid #1E1E1E; font-size: 13px; } .cs-rq span { color: #F39200; white-space: nowrap; }
/* The QR label for a controller's rack. */
.qr-label { display: flex; gap: 14px; align-items: center; background: #fff; color: #000; border: 1px dashed #999; border-radius: 6px; padding: 12px; }
.qr-code svg { display: block; width: 140px; height: 140px; }
.qr-text { display: flex; flex-direction: column; gap: 2px; font-size: 13px; min-width: 0; overflow-wrap: anywhere; }
.qr-text b { font-size: 16px; } .qr-by { margin-top: 6px; font-size: 11px; color: #444; }
/* A controller's page in tabs (systems.js, Phil 4 Nov 2026): two fixed columns a card never leaves, so nothing jumps
   when a card grows; one column on a narrow screen, in order. */
.ct-tabs { margin-bottom: 16px; }
.ct-pane[hidden] { display: none; }
.ct-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.ct-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ct-under { margin-top: 16px; }
@media (max-width: 900px) { .ct-cols { grid-template-columns: minmax(0, 1fr); } }
/* Changes on their way to the controller, over the tabs. */
.ct-onway { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: var(--card, var(--b5)); border: 1px solid var(--b4); border-radius: 10px; padding: 8px 14px; margin-bottom: 16px; }
/* Any card that folds by its heading (HubApp.folds: the passport, a client's page, a ticket's side). */
.card[data-fold] > .card-head { cursor: pointer; user-select: none; -webkit-user-select: none; }
.card[data-fold] > .card-head:focus-visible { outline: 2px solid var(--sel-bg); outline-offset: -2px; }
.card[data-fold] > .card-head > h2::before { content: "▾"; display: inline-block; width: 16px; color: var(--i3); font-size: 13px; }
.card[data-fold].folded > .card-head > h2::before { content: "▸"; }
/* !important: a card body drawn with its own inline display (a ticket's Support contract and Time on this ticket, 16 Nov
   2026) stayed open when folded. */
.card[data-fold].folded > :not(.card-head) { display: none !important; }
.card[data-fold].folded > .card-head, .card > .card-head:last-child { border-bottom: 0; }
/* What a page or part is for, behind a small ? beside its heading (HubApp.help). */
.qh { display: inline-flex; vertical-align: middle; margin-left: 8px; }
.qh-btn.help-btn { width: 22px; height: 22px; min-width: 22px; min-height: 22px; font-size: 12px; font-family: inherit; background: transparent; color: var(--i3); border: 1px solid var(--line-strong); cursor: pointer; }
.qh-btn.help-btn:hover { color: var(--ink); border-color: var(--i3); }
.qh-btn.help-btn[aria-expanded=true] { background: var(--sel-bg); color: var(--sel-fg); border-color: var(--sel-bg); }
.qh-pop { position: fixed; z-index: 90; font-weight: 400; line-height: 1.5; color: var(--ink); text-transform: none; letter-spacing: normal; }
.qh-pop p { margin: 0 0 8px; } .qh-pop p:last-child { margin-bottom: 0; }
.qh-pop ul { display: block; list-style: disc; padding-left: 18px; }
.qh-pop .qh-meta { color: var(--muted); }
/* A controller's settings, and its diagnostic report (Remote systems, Concierge 2.9.0). */
.rs-setrow { display: flex; gap: 8px 12px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--b4); }
.rs-setrow:last-child { border-bottom: 0; }
.rs-setrow .grow { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.rs-setrow > :not(.grow) { flex: none; }
.rs-diag pre { margin: 8px 0 0; max-height: 420px; overflow: auto; font: 12px/1.45 ui-monospace, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bg); padding: 10px; border-radius: 4px; }
/* A controller's monitored devices (Remote systems, Concierge 2.8.0). */
.rs-mon-list { max-height: 420px; overflow-y: auto; border-top: 1px solid var(--b4); }
.rs-mon { display: flex; gap: 8px 14px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--b4); }
.rs-mon-n { flex: 1 1 auto; min-width: 0; display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.rs-mon-n input, .rs-mon-s input { width: auto; margin-top: 3px; }
.rs-mon-n b { display: block; overflow-wrap: anywhere; font-weight: 600; }
.rs-mon-n .small { display: block; }
.rs-mon-s { flex: 0 0 auto; display: flex; gap: 6px; align-items: center; color: var(--i3); cursor: pointer; }
/* Other devices (Concierge 3.2.0): one row per device in its popup; two to a line on a phone. */
.rs-ox-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 76px auto auto; gap: 8px 10px; align-items: end; padding: 8px 0; border-bottom: 1px solid var(--b4); }
.rs-ox-row .f-in { width: 100%; min-width: 0; }
.rs-ox-sl { display: flex; flex-direction: row; gap: 6px; align-items: center; padding-bottom: 9px; color: var(--i3); cursor: pointer; white-space: nowrap; }
.rs-ox-sl input { display: inline-block; width: auto; margin: 0; }
@media (max-width: 860px) { .rs-ox-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
/* Remote systems, Upgrades: a site that opens to its kit */
.up-row > summary { cursor: pointer; list-style: none; }
.up-row > summary::-webkit-details-marker { display: none; }
.up-row[open] > summary { border-bottom: 0; }
.up-row:not(:last-child) { border-bottom: 1px solid var(--b4); }
.up-row > summary.rs-row { border-bottom: 0; }
.up-body { padding: 0 0 12px; }
.up-item { display: flex; gap: 10px; padding: 6px 0; }
.up-item .grow { min-width: 0; overflow-wrap: anywhere; }
.up-n { flex: 0 0 34px; font-weight: 600; color: var(--i4); }
.up-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.up-quote { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--b4); border-radius: 6px; }
.up-quote .up-links { margin-top: 6px; }
/* The upgrade quote popup: a line each, ticked, with its product and how many */
.uq-line { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--b4); }
.uq-line:last-child { border-bottom: 0; }
.uq-tick { flex: none; padding-top: 6px; }
.uq-what { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.uq-what select { width: 100%; }
.uq-qty { flex: 0 0 64px; width: 64px; }
.uq-left { margin: 0; padding-left: 18px; }
.uq-room { margin-bottom: 4px; overflow-wrap: anywhere; }
.uq-count { margin: 10px 0 0; font-weight: 600; }
.uq-sec { margin-top: 12px; }
.uq-kept { color: var(--ink); font-weight: 600; }
.uq-keptnote { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
/* Upgrades: choosing sites for Create quotes for several sites */
.up-wrap { display: flex; align-items: flex-start; gap: 6px; }
.up-wrap > details { flex: 1 1 auto; min-width: 0; }
.up-pick { flex: 0 0 22px; padding-top: 14px; display: flex; justify-content: center; }
.up-bulk { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 16px; border-bottom: 1px solid var(--b4); }
.up-bulk .lb-check { flex-direction: row; align-items: center; gap: 6px; }
.uq-sec > .lb-check { padding-bottom: 4px; border-bottom: 1px solid var(--b4); }
.up-swap { margin: 2px 0; }
/* Upgrades ⚙: each model, with what to do with it and what replaces it */
.labour-dlg label.us-kind { font-size: 15px; font-weight: 700; justify-content: flex-start; cursor: pointer; }
.us-model { display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 8px 0; border-bottom: 1px solid var(--b4); }
.us-model:last-child { border-bottom: 0; }
.us-name { flex: 1 1 180px; min-width: 0; overflow-wrap: anywhere; }
.us-pick { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.us-pick select { width: 100%; min-width: 0; }
body:not(.can-surveys) .surveys-only { display: none; }
body:not(.can-support):not(.can-surveys) .siterec-only { display: none; }
/* Tickets (tickets.js) */
.tk-ctl { display: flex; gap: 12px 16px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.tk-ctl label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; color: var(--i2); }
.tk-lay { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .tk-lay { grid-template-columns: minmax(0, 1fr); } }
/* A ticket's conversation (Phil, 15 Oct 2026): bubbles, the client's on the left and ours on the
   right, private notes in amber, a line for each day. */
.tk-convo-head { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 4px; }
.tk-convo-head h2 { margin: 0; font-size: 16px; }
.tk-convo { display: flex; flex-direction: column; gap: 12px; }
.tk-day { display: flex; align-items: center; gap: 10px; color: var(--i4); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.tk-day::before, .tk-day::after { content: ''; flex: 1; border-top: 1px solid var(--b1); }
.tk-msg { display: flex; gap: 10px; align-items: flex-start; max-width: 88%; }
.tk-msg.out { flex-direction: row-reverse; align-self: flex-end; }
.tk-msg.is-note { max-width: 100%; }
.tk-av { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--b3); color: var(--i2); }
.tk-msg.out .tk-av { background: var(--o); color: #fff; }
.tk-msg.is-note .tk-av { background: var(--note-line); color: var(--ink); }
.tk-bub { flex: 1; min-width: 0; background: var(--panel); border: 1px solid var(--b1); border-radius: 4px 12px 12px 12px; padding: 10px 14px; }
.tk-msg.out .tk-bub { background: var(--ot); border-color: color-mix(in srgb, var(--o) 30%, var(--b1)); border-radius: 12px 4px 12px 12px; }
.tk-msg.is-note .tk-bub { background: var(--note-bg); border-color: var(--note-line); }
.tk-who { font-size: 12px; color: var(--i3); }
.tk-mh { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: 4px; font-size: 14px; }
.tk-mh .grow { flex: 1; }
.tk-mb { white-space: pre-wrap; line-height: 1.5; overflow-wrap: anywhere; font-size: 14px; }
@media (max-width: 700px) { .tk-msg { max-width: 100%; } .tk-av { display: none; } }
/* A ticket's visits, each opening its own page. */
.tk-visit { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--b4); color: inherit; text-decoration: none; }
a.tk-visit:hover b { color: var(--link); }
/* The Tickets list: headings that sort it, and room for the columns chosen. */
/* Every table's headings sort it (sorttable.js; James, 11 Nov 2026): pressed again, the other way round. */
.srt { cursor: pointer; user-select: none; }
.srt:hover, .srt.on { color: var(--ink); }
.srt:focus-visible { outline: 2px solid var(--o); outline-offset: 2px; border-radius: 2px; }
.srt-ar { font-size: 10px; }
.srt-phone { margin-bottom: 10px; }
.srt-phone select { width: 100%; max-width: 360px; height: 40px; border: 1px solid var(--b2); border-radius: 4px; padding: 0 10px; background: var(--panel); color: var(--ink); }
.tk-sorth { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.tk-sorth:hover, .tk-sorth.on { color: var(--ink); }
.tk-dh { margin: 6px 0 0; font-size: 14px; }
.tk-sortrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tk-sortrow > span { min-width: 64px; }
.tk-sortrow select { flex: 1 1 160px; width: auto; }
.ord-row .lb-check { flex: 1; }
.tk-sigsrc { width: 100%; font-family: Consolas, Menlo, monospace; font-size: 12px; line-height: 1.4; padding: 8px 10px; resize: vertical; }
.tk-sigprev { border: 1px solid var(--b1); border-radius: 6px; overflow: hidden; }
/* A list to put in order (app.js listEditor). */
.ord-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ord-row { display: flex; gap: 6px; align-items: center; padding: 6px 8px; border: 1px solid var(--b1); border-radius: 6px; background: var(--panel); font-size: 14px; }
.ord-row .grow { flex: 1; }
.ord-row.off { color: var(--i4); background: var(--row); }
.tk-compose { background: var(--panel); border: 1px solid var(--b2); border-radius: 6px; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.tk-compose.note { background: var(--note-bg); border-color: var(--note-line); }
/* Visits (visits.js) */
.vs-wrap { border: 0; border-radius: 0; }
.vs-grid { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 13px; }
.vs-grid th, .vs-grid td { border-bottom: 1px solid var(--b4); border-left: 1px solid var(--b4); padding: 8px; vertical-align: top; text-align: left; }
.vs-grid thead th { background: var(--row); color: var(--i3); font-weight: 600; white-space: nowrap; }
.vs-grid tbody th { font-weight: 600; width: 170px; border-left: 0; }
.vs-grid .today { background: var(--today); }
.vs-chip { border-radius: 4px; padding: 4px 7px; margin-bottom: 4px; font-weight: 600; background: var(--b4); box-shadow: inset 3px 0 0 var(--c, #888); line-height: 1.3; }
.vs-chip small { display: block; font-weight: 400; color: var(--i3); }
.vs-chip.fsm { background: var(--teal-bg); color: var(--teal-fg); box-shadow: inset 3px 0 0 #1D6F6A; }
.vs-free { color: var(--i5); }
/* The FSM workspace (visits.js): the head's switch, filters, chips, engineers, steps. */
.fs-head { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
a.vs-chip { display: block; text-decoration: none; }
a.vs-chip:hover { filter: brightness(.97); outline: 1px solid var(--teal-fg); }
a.fs-row { color: inherit; text-decoration: none; }
a.fs-row:hover { background: var(--row); }
.fs-filters { margin-bottom: 16px; }
.fs-filters .card-body { display: flex; flex-direction: column; gap: 10px; }
.fs-line { display: flex; gap: 8px 12px; flex-wrap: wrap; align-items: center; }
.fs-line > label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; color: var(--i2); }
.fs-line > label.sf-check { flex-direction: row; }
dialog label.sf-check { flex-direction: row; align-items: flex-start; gap: 8px; color: var(--ink); }
.fs-grow { flex: 1 1 220px; }
.fs-chip { border: 1px solid var(--b1); background: var(--panel); color: var(--i2); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.fs-chip[aria-pressed=true] { background: var(--ot); border-color: var(--o); color: var(--ink); }
.fs-save { border-top: 1px solid var(--b4); padding-top: 10px; }
.fs-save .f-in { width: 220px; }
.fs-engs { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.fs-eng, .bk-form .fs-eng { display: flex; flex-direction: row; gap: 6px; align-items: center; font-weight: 400; font-size: 14px; }
.fs-eng input { width: auto; }
.fs-steps { display: flex; gap: 8px; flex-wrap: wrap; }
.fs-steps [aria-pressed=true] { box-shadow: 0 0 0 2px var(--o); }
.fs-found { display: flex; flex-direction: column; border: 1px solid var(--b2); border-radius: 6px; overflow: hidden; }
.fs-found .ov-row { border: 0; border-bottom: 1px solid var(--b4); background: var(--panel); text-align: left; font: inherit; cursor: pointer; padding: 8px 12px; }
.fs-found .ov-row:hover { background: var(--row); }
@media (max-width: 640px) { .fs-save .f-in { width: 100%; } }
/* Visits, made easier to look at (Phil, 14 Oct 2026). Each kind of visit has the pill colours
   the portal already has for light and dark, and always its name with them, never colour alone. */
.k-call { --kb: var(--blue-bg); --kf: var(--blue-fg); }
.k-maint { --kb: var(--green-bg); --kf: var(--green-fg); }
.k-remote { --kb: var(--teal-bg); --kf: var(--teal-fg); }
.k-install { --kb: var(--purple-bg); --kf: var(--purple-fg); }
.k-other { --kb: var(--ot); --kf: var(--ot-fg); }
.vk { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--kb); color: var(--kf); }
.vk-chip i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--kf); margin-right: 6px; vertical-align: 0; }
.vs-tabs { padding: 12px 28px 0; }
@media (max-width: 640px) { .vs-tabs { padding: 12px 16px 0; } }
.vs-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.vs-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 12px 16px; border: 1px solid var(--b1); border-radius: 6px; background: var(--panel); font: inherit; color: var(--ink); cursor: pointer; box-shadow: inset 0 3px 0 var(--tc, var(--b2)); }
.vs-tile:hover { background: var(--row); }
.vs-tile.on { border-color: var(--o); box-shadow: inset 0 3px 0 var(--o), 0 0 0 1px var(--o); }
.vs-tile .l { font-size: 13px; color: var(--i3); font-weight: 600; }
.vs-tile .v { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.vs-tile .n { font-size: 12px; color: var(--i4); }
.vs-tile.t-ready, .vs-tile.t-assign { --tc: var(--amber-fg); }
.vs-tile.t-progress { --tc: var(--purple-fg); }
.vs-tile.t-done { --tc: var(--green-fg); }
.vs-tile.t-today { --tc: var(--blue-fg); }
.vs-kindbar { padding: 10px 20px; border-bottom: 1px solid var(--b3); }
.vs-kinds { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.vs-legend { display: inline-flex; gap: 6px; align-items: center; }
.vs-legend .vs-chip { display: inline-block; margin: 0; }
.vs-chip.fsm.k-call, .vs-chip.fsm.k-maint, .vs-chip.fsm.k-remote, .vs-chip.fsm.k-install, .vs-chip.fsm.k-other { background: var(--kb); color: var(--kf); box-shadow: inset 3px 0 0 var(--kf); }
.vs-chip.fsm small { color: inherit; opacity: .85; }
.vs-chip .vs-t { font-variant-numeric: tabular-nums; }
.vs-chip .vs-wait { font-style: italic; }
.vs-grid tbody th .vs-av { margin-right: 8px; vertical-align: middle; }
.vs-av { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--b3); color: var(--i2); font-size: 11px; font-weight: 700; flex: none; box-shadow: 0 0 0 2px var(--panel); }
.vs-av::before { content: attr(data-i); }
.vs-crew { display: inline-flex; align-items: center; gap: 0; }
.vs-crew .vs-av + .vs-av { margin-left: -6px; }
.vs-crew .small { margin-left: 8px; }
/* minmax(0, …): a long address mustn't widen its own row's columns (each row is its own grid). */
.vs-list .tr, .tbl .vs-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr) minmax(0, 1.4fr) minmax(0, 1.3fr) minmax(0, 1fr) 92px; min-width: 760px; }
.vs-list .tr.sel { grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1.9fr) minmax(0, 1.4fr) minmax(0, 1.3fr) minmax(0, 1fr) 92px; }
.vs-row > div { min-width: 0; }
.vs-list .tr.grp { grid-template-columns: 1fr; padding: 8px 20px; font-weight: 700; font-size: 13px; color: var(--i2); }
.vs-row { cursor: pointer; box-shadow: inset 3px 0 0 var(--kf); }
.vs-row:hover { background: var(--row); }
.vs-row.vs-off { opacity: .6; }
.vs-row .vs-link { color: inherit; text-decoration: none; display: block; }
.vs-row .vs-link:hover { color: var(--o); }
.vs-row .s2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-pick input { width: 18px; height: 18px; }
.vs-act { text-align: right; }
.vs-open { color: var(--i4); font-size: 18px; }
.vs-bulk { display: flex; gap: 8px; align-items: center; }
.fs-lab { min-width: 46px; }
.fs-views summary { cursor: pointer; color: var(--i2); font-weight: 600; }
.fs-views[open] summary { margin-bottom: 8px; }
.vs-last .card-body { display: flex; flex-direction: column; gap: 4px; }
.vs-res.bad { color: var(--neg); }
.vs-res .neg { color: var(--neg); }
.vs-ahead { box-shadow: inset 0 -3px 0 var(--kf); }
.vs-ahead .sub .vk { margin-right: 4px; }
.vs-quick { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.vs-flow { display: flex; list-style: none; margin: 0 0 16px; padding: 0; gap: 0; flex-wrap: wrap; }
.vs-flow li { flex: 1 1 0; min-width: 110px; position: relative; padding: 8px 12px 8px 22px; background: var(--b4); color: var(--i3); font-size: 13px; font-weight: 600; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%); margin-right: -6px; }
.vs-flow li:first-child { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); border-radius: 4px 0 0 4px; padding-left: 14px; }
.vs-flow li.past { background: var(--green-bg); color: var(--green-fg); }
.vs-flow li.past span::before { content: '✓ '; }
.vs-flow li.now { background: var(--sel-bg); color: var(--sel-fg); }
.vs-flow li.now.bad { background: var(--red-bg); color: var(--red-fg); }
.vs-flow.off li:not(.bad) { opacity: .55; }
.vs-cal { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.vs-steps .fs-steps .btn { min-height: 40px; }
.vs-mine-wrap { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.vs-mine-list { display: flex; flex-direction: column; gap: 12px; }
.vs-mine { display: flex; gap: 14px; padding: 12px 14px; border: 1px solid var(--b1); border-radius: 6px; box-shadow: inset 4px 0 0 var(--kf); }
.vs-mine .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.vs-mt { display: flex; flex-direction: column; min-width: 54px; font-size: 18px; font-variant-numeric: tabular-nums; }
.vs-mh { display: flex; gap: 6px; flex-wrap: wrap; }
.vs-mc { font-size: 16px; font-weight: 700; color: var(--ink); text-decoration: none; }
.vs-mc:hover { color: var(--o); }
.vs-ma { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.vs-ma .btn { min-height: 36px; }
/* On a phone a visit's row wraps instead of scrolling sideways. */
@media (max-width: 700px) {
  .vs-list .tr:not(.grp), .tbl .vs-row { display: flex; flex-wrap: wrap; min-width: 0; gap: 6px 12px; }
  .vs-row > div { flex: 1 1 40%; min-width: 0; }
  .vs-row > .vs-pick { flex: 0 0 22px; }
  .vs-row > .vs-act { flex: 0 0 auto; }
  .vs-flow li { min-width: 0; font-size: 12px; padding-left: 16px; }
}
/* SLA watch (visits.js, overview.js; Phil, 14 Oct 2026): the words always say what it is, the colour only backs them up. */
.sla { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 6px; border-radius: 3px; white-space: nowrap; }
.sla.s-ok { color: var(--i3); font-weight: 600; padding-left: 0; }
.sla.s-met { color: var(--green-fg); padding-left: 0; }
.sla.s-none { color: var(--i4); font-weight: 400; padding-left: 0; }
.sla.s-risk { background: var(--amber-bg); color: var(--amber-fg); }
.sla.s-breached, .sla.s-late, .sla.s-missed { background: var(--red-bg); color: var(--red-fg); }
.vs-sla { margin-top: 3px; }
.vs-row.sla-bad, .vp-blk.sla-bad { box-shadow: inset 3px 0 0 var(--neg); }
.vp-blk.sla-bad { outline: 2px solid var(--neg); outline-offset: -2px; }
.vs-tile.t-sla { --tc: var(--neg); }
.ov-sla { border-left: 3px solid var(--amber-fg); }
.ov-sla.bad { border-left-color: var(--neg); }
/* Support profitability (supportprofit.js, Phil, 14 Oct 2026). Margin bars: one series in --chart, losses in the red
   text colour with a minus sign and the words, so it's never colour alone. */
.spf-row { grid-template-columns: minmax(0, 1.8fr) minmax(0, .9fr) minmax(0, 1fr) minmax(0, .9fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1.6fr); min-width: 860px; }
.spf-erow { grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1.6fr) minmax(0, .9fr); min-width: 680px; }
.spf-bar { display: flex; align-items: center; gap: 8px; }
.spf-bar > span { display: block; height: 10px; border-radius: 0 4px 4px 0; background: var(--chart); min-width: 2px; }
.spf-bar.neg > span { background: transparent; box-shadow: inset 0 0 0 2px var(--neg); }
.spf-bar b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.spf-neg { color: var(--neg); }
.spf-notes { margin: 0; padding-left: 18px; }
/* Van stock (vanstock.js, Phil, 14 Oct 2026). */
.vk-row { min-width: 560px; }
.vk-row.low { box-shadow: inset 3px 0 0 var(--neg); }
.vk-q { font-size: 17px; font-variant-numeric: tabular-nums; }
.vk-count { width: 76px; text-align: right; }
.vk-edit { border-top: 1px solid var(--b4); background: var(--row); display: flex; flex-direction: column; gap: 10px; }
.vk-edit .f-in { width: auto; }
.vk-log { padding: 3px 0; }
/* Site passport (sites.js, Phil, 14 Oct 2026). */
.sp-repeats { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.sp-repeat { border-left: 3px solid var(--neg); }
.sp-ev { margin: 6px 0; padding-left: 18px; }
.sp-people { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; border-top: 1px solid var(--b4); padding-top: 12px; }
.sp-fault { display: grid; grid-template-columns: minmax(120px, 1.2fr) 2fr 28px; gap: 10px; align-items: center; padding: 4px 0; font-size: 14px; }
.sp-fb { height: 10px; background: var(--b4); border-radius: 0 4px 4px 0; overflow: hidden; }
.sp-fb i { display: block; height: 100%; background: var(--chart); border-radius: 0 4px 4px 0; }
.sp-fault b { text-align: right; font-variant-numeric: tabular-nums; }
.sp-kit { margin-bottom: 8px; }
.sp-kit summary { cursor: pointer; padding: 4px 0; }
/* The client page's Right now card: what's down, one line each (clients.js, 25 Oct 2026). */
.cl-now { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.cl-now .pill { margin-right: 4px; }
/* Site setup (sitesetup.js): a client's checklist, its progress on the Clients list, and the ⚙'s list of tasks. */
.stup-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stup-bar { display: inline-block; width: 90px; height: 8px; border-radius: 4px; background: var(--b2); overflow: hidden; vertical-align: middle; flex: none; }
.stup-bar i { display: block; height: 100%; background: var(--chart); }
.stup-bar.full i { background: var(--pos); }
.stup-list { display: flex; flex-direction: column; }
.stup-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 20px; border-top: 1px solid var(--b4); min-width: 0; }
/* The task and its tick are one label; its button (sitesetup.js action) sits outside it, so pressing it never ticks. */
.stup-lbl { display: flex; gap: 12px; align-items: flex-start; flex: 1 1 auto; min-width: 0; cursor: pointer; }
.stup-act { flex: none; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.stup-quick { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 20px; border-bottom: 1px solid var(--b4); }
.stup-hide { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.stup-row:first-child { border-top: 0; }
.stup-row input { margin-top: 3px; flex: none; width: 16px; height: 16px; }
.stup-row input:disabled { cursor: default; }
.stup-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.stup-row.done .stup-txt > span:first-child { color: var(--i3); }
.stup-cell { display: flex; align-items: center; gap: 8px; }
.stup-edit { display: flex; flex-direction: column; gap: 8px; }
.stup-erow { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; padding-bottom: 8px; border-bottom: 1px solid var(--b4); }
.stup-n { width: 22px; flex: none; padding-top: 10px; font-size: 12px; color: var(--i3); text-align: right; }
.stup-ef { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.stup-eb { display: flex; gap: 6px; flex: none; padding-top: 4px; }
/* The passport's Network card: each UniFi site, then its devices two lines each, offline first (sites.js). */
.sp-uni + .sp-uni { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--b4); }
.sp-nethead { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.sp-nethead .grow { flex: 1; min-width: 160px; }
.sp-dev { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 7px 0 7px 10px; border-left: 3px solid var(--green-bg); border-bottom: 1px solid var(--b4); font-size: 14px; }
.sp-dev:last-child { border-bottom: 0; }
.sp-dev.off { border-left-color: var(--neg); }
.sp-dev .grow { flex: 1; min-width: 180px; overflow-wrap: anywhere; }
.rs-sec .sp-dev { border-left-color: var(--b4); }
.rs-sec .sp-uni .sp-dev { border-left-color: var(--green-bg); }
.rs-sec .sp-uni .sp-dev.off { border-left-color: var(--neg); }
.sp-devflags { display: flex; gap: 4px; flex-wrap: wrap; }
.sp-more summary { cursor: pointer; padding: 8px 0 4px; color: var(--i3); }
.sp-alerts { margin-top: 10px; }
.sp-alerts > .k { font-size: 12px; color: var(--i4); margin-bottom: 4px; }
.sp-sheet { padding: 8px 0; border-bottom: 1px solid var(--b4); display: flex; flex-direction: column; gap: 3px; }
.sp-sheet:last-child { border-bottom: 0; }
.sp-sheet a { color: inherit; }
.sp-rf { margin-bottom: 10px; }
.sp-rf ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }
.sp-rep { margin-bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.sp-brief summary { cursor: pointer; }
.sp-brief pre { white-space: pre-wrap; font: 13px/1.5 inherit; font-family: inherit; background: var(--row); border: 1px solid var(--b3); border-radius: 6px; padding: 10px 12px; margin: 8px 0; max-height: 420px; overflow: auto; }
/* Tune-ups (tuneups.js, Phil, 14 Oct 2026): run days by area, and every contract's year. */
.tu-card { margin-bottom: 16px; }
.tu-runs { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 12px; }
@media (max-width: 640px) { .tu-runs { grid-template-columns: minmax(0, 1fr); } }
.tu-run { border: 1px solid var(--b1); border-radius: 6px; padding: 12px 14px; box-shadow: inset 3px 0 0 var(--green-fg); }
.tu-run.booked { opacity: .75; box-shadow: inset 3px 0 0 var(--pos); }
.tu-rh { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.tu-pick .f-in { width: auto; }
.tu-stops { margin: 10px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.tu-stops a { color: inherit; text-decoration: none; }
.tu-stops a:hover b { color: var(--o); }
.tu-t { display: inline-block; min-width: 44px; font-variant-numeric: tabular-nums; color: var(--i3); }
.tu-dots { display: inline-flex; gap: 3px; font-size: 14px; }
.tu-d.done { color: var(--pos); }
.tu-d.booked { color: var(--blue-fg); }
.tu-d.left { color: var(--i4); }
.vs-tile.t-overdue, .vs-tile.t-todo { --tc: var(--neg); }
.vs-tile.t-due { --tc: var(--blue-fg); }
/* Plan the day (visitsplan.js, Phil, 14 Oct 2026): a timeline per engineer and the map. Each
   engineer's colour comes with their initials and stop numbers, never colour alone. */
.vs-chip.pending, .vp-blk.pending { outline: 2px dashed var(--o); outline-offset: 1px; }
a.vs-chip[draggable], .vs-row[draggable], .vp-blk[draggable], .vp-tr[draggable] { cursor: grab; }
.dragging { opacity: .45; }
td.over, .vp-track.over { background: var(--ot) !important; box-shadow: inset 0 0 0 2px var(--o); }
.vs-dayl { color: inherit; text-decoration: none; }
.vs-dayl:hover { color: var(--o); text-decoration: underline; }
.vs-draghint { margin: 0 0 12px; }
.vp-bar { position: sticky; top: 0; z-index: 6; background: var(--panel); border: 1px solid var(--o); border-radius: 6px; padding: 10px 14px; margin-bottom: 16px; box-shadow: 0 4px 12px rgba(16, 24, 40, .08); }
.vp-bar.done { border-color: var(--pos); }
.vp-bar-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.vp-bar-top b { flex: 1 1 auto; }
.vp-changes { margin: 8px 0 0; padding-left: 18px; font-size: 13px; }
.vp-changes li { margin-bottom: 4px; }
.vp-warn { margin-top: 8px; font-size: 13px; color: var(--amber-fg); background: var(--amber-bg); border-radius: 4px; padding: 6px 10px; }
/* The map beside the timeline only on a wide screen; otherwise under it, so the timeline has room. */
.vp-lay { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 1800px) { .vp-lay { grid-template-columns: minmax(0, 1.6fr) minmax(420px, 1fr); } }
#vpDate { width: auto; }
.vp-left { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.vp-right { min-width: 0; }
@media (min-width: 1800px) { .vp-right { position: sticky; top: 0; } }
.vp-trayl { display: flex; flex-wrap: wrap; gap: 8px; }
.vp-tr { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 6px 10px; border: 1px dashed var(--kf); border-radius: 6px; background: var(--kb); color: var(--kf); font: inherit; font-size: 13px; cursor: pointer; max-width: 260px; }
.vp-tr small { color: inherit; opacity: .85; }
.vp-tr.sel, .vp-blk.sel { box-shadow: 0 0 0 2px var(--ink); }
.vp-tl { overflow-x: auto; }
.vp-row { display: grid; grid-template-columns: 190px minmax(560px, 1fr); border-bottom: 1px solid var(--b4); }
.vp-row.leave .vp-track { background: repeating-linear-gradient(135deg, var(--red-bg) 0 6px, transparent 6px 12px); }
.vp-head { border-bottom: 1px solid var(--b3); background: var(--row); }
.vp-head .vp-track { height: 26px; }
.vp-who { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px 8px 16px; min-width: 0; }
.vp-who b { font-size: 14px; }
.vp-pl { color: var(--i3); }
.vp-sw { width: 12px; height: 12px; border-radius: 3px; background: var(--pc); flex: none; margin-top: 4px; }
.vp-track { position: relative; height: 62px; border-left: 1px solid var(--b4); }
.vp-hr { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--b4); }
.vp-hl { position: absolute; top: 5px; transform: translateX(-50%); font-size: 11px; color: var(--i4); font-variant-numeric: tabular-nums; }
.vp-blk { position: absolute; top: 7px; height: 48px; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 4px 6px 4px 30px; border: 0; border-radius: 4px; background: var(--kb); color: var(--kf); box-shadow: inset 3px 0 0 var(--kf); font: inherit; font-size: 12px; line-height: 1.25; cursor: pointer; white-space: nowrap; }
.vp-blk small { opacity: .85; }
.vp-blk.ready { background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(127, 127, 127, .12) 6px 12px); }
.vp-n { position: absolute; left: 6px; top: 6px; width: 19px; height: 19px; border-radius: 50%; background: var(--pc); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--panel); }
.vp-side .card-body { display: flex; flex-direction: column; gap: 4px; }
.vp-sidek { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.vp-fit { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.vp-fitrow { display: flex; gap: 8px; align-items: center; }
.vp-fitrow .grow { flex: 1; }
.vp-moveto { margin-top: 10px; }
.vp-moveto .fs-line { margin-top: 4px; }
.vp-moveto .f-in { width: auto; }
.vp-map { height: 460px; background: var(--row); position: relative; }
@media (max-width: 640px) { .vp-map { height: 340px; } }
:root[data-theme="dark"] .vp-map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .vp-map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9); } }
.vp-pin-wrap { background: none; border: 0; }
.vp-pin { width: 28px; height: 28px; border-radius: 50%; background: var(--pc, #666); color: #fff; font: 700 12px/1 system-ui, sans-serif; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0, 0, 0, .35); }
.vp-pin i { font-style: normal; font-size: 8px; opacity: .9; margin-top: 1px; }
.vp-pin.loose { background: #fff; color: #333; border: 2px dashed #666; }
.vp-pin.home { background: #333; border-radius: 6px; font-size: 15px; }
.vp-svg { width: 100%; height: 100%; display: block; }
.vp-svg .vp-svgv { cursor: pointer; }
.vp-svgstop { stroke: var(--panel); stroke-width: 2; }
.vp-svgloose { fill: var(--panel); stroke: var(--i3); stroke-width: 2; stroke-dasharray: 3 2; }
.vp-svghome { fill: var(--ink); }
.vp-svgn { fill: #fff; font: 700 12px system-ui, sans-serif; pointer-events: none; }
.vp-svgt { fill: var(--panel); font: 700 12px system-ui, sans-serif; pointer-events: none; }
.vp-svgloose + .vp-svgt { fill: var(--i2); }
.vp-nomap { display: flex; align-items: center; justify-content: center; height: 100%; }
.vp-nomap-note { position: absolute; left: 10px; bottom: 6px; right: 10px; }
.vp-legend { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--b4); }
.vp-lg { display: flex; gap: 10px; align-items: flex-start; }
.vp-lg .grow { flex: 1; min-width: 0; }
.vp-better { margin-top: 4px; color: var(--green-fg); }
.vp-startrow { align-items: center; }
.vp-startrow .f-in { width: 140px; }
/* Job sheets (jobsheets.js): big targets, as they're filled in on a phone or iPad on site. */
.fs-pills { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.js-page .card { margin-bottom: 16px; }
.js-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 18px; }
.js-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.js-wide { grid-column: 1 / -1; }
.js-label { font-weight: 600; color: var(--i2); }
.js-field textarea { width: 100%; resize: vertical; line-height: 1.45; }
.js-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.js-seg button { border: 1px solid var(--b1); background: var(--panel); color: var(--i2); border-radius: 6px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; min-height: 40px; }
.js-seg button[aria-pressed=true] { background: var(--ot); border-color: var(--o); color: var(--ink); }
.js-checks { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.js-checks .sf-check { font-weight: 400; }
.js-list { display: flex; flex-direction: column; }
.js-item { display: grid; grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr); gap: 8px 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--b4); }
.js-iname { font-weight: 600; }
@media (max-width: 860px) { .js-item { grid-template-columns: 1fr; } }
.js-parts { display: flex; flex-direction: column; gap: 6px; }
.js-sig canvas { width: 100%; max-width: 600px; aspect-ratio: 3 / 1; border: 1px dashed var(--b1); border-radius: 6px; background: #fff; touch-action: none; display: block; margin-bottom: 8px; }
/* Typed or drawn (jobsheets.js wireSig): the switch, the name, then the box with a line to sign on (not in the picture). */
.js-sig .js-sigmode { margin-bottom: 10px; }
.js-sig [data-signame] { width: 100%; max-width: 600px; margin-bottom: 8px; }
.js-sig canvas { background-image: linear-gradient(var(--b2), var(--b2)); background-size: 86% 1px; background-position: center 72%; background-repeat: no-repeat; }
.js-sig[data-sigmode-on="draw"] canvas { cursor: crosshair; }
.js-sig[data-sigmode-on="type"] canvas { border-style: solid; }
.js-signed img { max-width: 300px; width: 100%; background: #fff; border-radius: 6px; border: 1px solid var(--b2); display: block; margin-bottom: 4px; }
.js-result { border-left: 3px solid var(--o); }
.js-res { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
/* A popup's width is the dialog's (dialog, .labour-dlg, or a class on it like .vd-dlg): never a min-width here, or a narrower popup scrolls sideways and hides its padding. */
.js-dlg { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
dialog.js-dlg-wide { width: min(900px, 96vw); }
.js-frame iframe { width: 100%; height: 70vh; border: 1px solid var(--b2); border-radius: 6px; background: #fff; }
/* A sheet, made easier to work with (Phil, 14 Oct 2026): how much is left, sticky as you go; each
   section ticked when done; big Arrived and Left with Now; what's left to finish. */
.js-listbar { display: flex; gap: 12px 16px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 8px; }
.js-listbar label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; color: var(--i2); }
.js-prog { position: sticky; top: 0; z-index: 5; background: var(--panel); border: 1px solid var(--b1); border-radius: 6px; padding: 12px 16px; margin-bottom: 16px; box-shadow: 0 4px 12px rgba(16, 24, 40, .06); }
.js-prog-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.js-bar { height: 8px; border-radius: 4px; background: var(--b3); margin: 8px 0 10px; overflow: hidden; }
.js-bar span { display: block; height: 100%; background: var(--pos); border-radius: 4px; transition: width .3s; }
@media (prefers-reduced-motion: reduce) { .js-bar span { transition: none; } }
.js-secnav { display: flex; gap: 6px; flex-wrap: wrap; }
.js-secnav a { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--b1); color: var(--i2); text-decoration: none; font-size: 13px; font-weight: 600; background: var(--panel); }
.js-secnav a:hover { border-color: var(--o); color: var(--ink); }
.js-secnav a.ok { background: var(--green-bg); color: var(--green-fg); border-color: transparent; }
.js-secnav a.left { background: var(--amber-bg); color: var(--amber-fg); border-color: transparent; }
.js-secnav a .small { font-weight: 400; }
.js-todo { font-size: 11px; font-weight: 700; color: var(--amber-fg); background: var(--amber-bg); border-radius: 3px; padding: 1px 6px; margin-left: 4px; }
.js-done { color: var(--pos); font-weight: 700; margin-left: 4px; }
.js-field.js-miss > .js-label { color: var(--ink); }
.js-sec, .js-visit { scroll-margin-top: 150px; }
.js-field { scroll-margin-top: 160px; }
.js-vhead { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 18px; margin-bottom: 14px; }
.js-times { display: flex; gap: 12px 24px; flex-wrap: wrap; padding: 12px 14px; background: var(--row); border: 1px solid var(--b3); border-radius: 6px; }
.js-time { display: flex; flex-direction: column; gap: 5px; }
.js-time .f-in { font-size: 17px; min-height: 42px; width: auto; }
.js-time .btn-sm { height: 42px; }
.js-brand { display: flex; gap: 12px 16px; flex-wrap: wrap; margin-top: 14px; }
.js-brand label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; color: var(--i2); }
.js-tick { padding: 8px 12px; border: 1px solid var(--b1); border-radius: 6px; min-height: 40px; align-items: center; }
.js-tick:has(input:checked) { background: var(--ot); border-color: var(--o); }
.js-item.st-ok .js-iname::before { content: '✓ '; color: var(--pos); }
.js-item.st-needs-attention .js-iname::before { content: '! '; color: var(--amber-fg); }
.js-item.st-fixed .js-iname::before { content: '✓ '; color: var(--blue-fg); }
.js-note { padding: 10px 12px; background: var(--row); border-radius: 6px; }
.js-sig-off { padding: 18px; border: 1px dashed var(--b1); border-radius: 6px; max-width: 600px; text-align: center; }
.js-finish { border-left: 3px solid var(--amber-fg); }
.js-finish.ready { border-left-color: var(--pos); }
.js-finish .card-body { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.js-finish .grow { flex: 1 1 280px; }
.js-missing { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.js-missing a { font-size: 13px; padding: 3px 9px; border-radius: 999px; background: var(--amber-bg); color: var(--amber-fg); text-decoration: none; font-weight: 600; }
.js-res .ok { color: var(--ink); }
.js-res .bad { color: var(--neg); }
/* A job sheet a step at a time, made for a phone (jobsheets.js drawSheet; Phil, 30 Oct 2026: "imagine you are a field
   engineer and using your phone"): the steps along the top, one step's card, Back and Next at the bottom. A finished
   sheet is one page to read. On a PC it keeps ordinary sizes: buttons as wide as their words, the checklist a line an
   item, the steps wrapping (Phil, 4 Nov 2026: "a little too mobile looking ... on a pc it looks a bit comical"); the
   big buttons and 16px boxes are for a phone or small tablet, below. */
.js-page > * { max-width: 1040px; }
.js-step[hidden] { display: none !important; }
.js-step, .js-sec, .js-visit, .js-field { scroll-margin-top: 140px; }
.js-page .card-head h2 { font-size: 18px; }
.js-stepping .js-prog { padding: 10px 12px 8px; }
.js-stepping .js-bar { margin: 6px 0 8px; height: 6px; }
.js-secnav a { display: inline-flex; align-items: center; gap: 6px; flex: none; white-space: nowrap; padding: 6px 12px 6px 6px; }
.js-sn { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--b3); color: var(--i2); font-size: 12px; font-weight: 700; flex: none; }
.js-secnav a.ok .js-sn { background: var(--pos); color: #fff; }
.js-secnav a[aria-current] { border-color: var(--o); background: var(--ot); color: var(--ink); }
.js-secnav a[aria-current] .js-sn { background: var(--o); color: #fff; }
.js-big { min-height: 42px; padding-left: 18px; padding-right: 18px; font-size: 15px; justify-content: center; }
.js-go { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.js-started { margin-bottom: 14px; }
.js-where { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--b3); border-radius: 8px; background: var(--row); margin-bottom: 14px; }
.js-where .grow { flex: 1 1 200px; min-width: 0; }
.js-page .js-times { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 12px 24px; padding: 0; background: none; border: 0; }
.js-page .js-time .fs-line { display: flex; gap: 6px; flex-wrap: nowrap; }
.js-page .js-time .f-in { flex: 1 1 auto; min-width: 0; width: 100%; font-variant-numeric: tabular-nums; }
.js-tip { margin: 8px 0 12px; }
.js-page .js-parking { margin-top: 12px; max-width: 260px; }
.js-page .js-parking .js-label .pill { font-weight: 400; }
.js-more { border-top: 1px solid var(--b4); padding-top: 10px; }
.js-more summary { cursor: pointer; font-weight: 600; color: var(--i2); min-height: 36px; display: flex; align-items: center; }
.js-moregrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 18px; margin-top: 10px; }
.js-page .js-item .js-seg button[data-val="OK"][aria-pressed=true] { background: var(--green-bg); border-color: var(--pos); color: var(--green-fg); }
.js-page .js-item .js-seg button[data-val="Needs attention"][aria-pressed=true] { background: var(--amber-bg); border-color: var(--amber-fg); color: var(--amber-fg); }
.js-page .js-item .js-seg button[data-val="Fixed"][aria-pressed=true] { background: var(--blue-bg); border-color: var(--blue-fg); color: var(--blue-fg); }
.js-page .js-sig .fs-line { flex-wrap: wrap; }
/* A part box is wrapped in its picker (.cp), so the picker is what grows; a choice of buttons has the row to itself. */
.js-page .js-part > .cp { flex: 1 1 220px; min-width: 0; }
.js-page .js-part > .cp .f-in { width: 100%; }
.js-page .js-grid > .js-field:has(> .js-seg) { grid-column: 1 / -1; }
/* The last step reads down: what is still to do, what finishing does, then Finish and send. */
.js-page .js-finish .card-body { display: block; }
.js-page .js-finish .js-missing { margin-bottom: 4px; }
.js-then { margin: 12px 0 4px; }
.js-then-list { margin: 0 0 16px; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.js-del { margin: 4px 0 12px; }
.js-nav { position: sticky; bottom: 0; z-index: 6; display: flex; justify-content: space-between; gap: 10px; margin: 8px 0 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: var(--row); border-top: 1px solid var(--b4); }
.js-nav .btn { min-height: 42px; font-size: 15px; }
.js-nav .btn-p { flex: 0 1 auto; }
/* A phone or small tablet: thumb-sized everything, a step's buttons the screen's width, the steps scrolling sideways. */
@media (max-width: 860px) {
  .js-stepping .js-secnav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; margin: 0 -4px; padding: 0 4px 2px; }
  .js-stepping .js-secnav::-webkit-scrollbar { display: none; }
  .js-go { flex-direction: column; }
  .js-big { width: 100%; min-height: 52px; font-size: 16px; }
  .js-where .btn { min-height: 44px; }
  .js-page .js-times { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .js-page .js-time .f-in { min-height: 52px; font-size: 20px; }
  .js-page .js-time .btn-sm { height: 52px; min-width: 56px; padding-left: 10px; padding-right: 10px; font-size: 15px; }
  .js-page .js-parking { max-width: calc(50% - 6px); }
  .js-moregrid .js-time .f-in { font-size: 16px; min-height: 44px; }
  .js-page .js-label { font-size: 15px; }
  .js-page .js-grid { gap: 18px; }
  .js-page .js-field .f-in { min-height: 44px; }
  .js-page .js-seg { display: flex; width: 100%; }
  .js-page .js-seg button { flex: 1 1 0; min-height: 48px; font-size: 15px; }
  .js-page .js-item { grid-template-columns: 1fr; gap: 8px; padding: 12px 0; }
  .js-page .js-item .js-seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
  .js-page .js-checks { flex-direction: column; gap: 6px; }
  .js-page .js-tick { min-height: 48px; }
  .js-page .js-part { display: grid; grid-template-columns: 76px 1fr; gap: 6px; }
  .js-page .js-part > * { width: 100% !important; min-width: 0; }
  .js-page .js-part [data-pp="part"], .js-page .js-part .cp { grid-column: 1 / -1; }
  .js-page .js-upd { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .js-page .js-upd > * { width: 100% !important; min-width: 0; }
  .js-page .js-upd [data-up="name"] { grid-column: 1 / -1; }
  .js-page .js-sig canvas { max-width: none; aspect-ratio: 2 / 1; }
  .js-nav .btn { min-height: 50px; font-size: 16px; }
}
/* A narrow phone: Arrived above Left, so each time has room beside its Now. */
@media (max-width: 420px) { .js-page .js-parking { max-width: none; } .js-page .js-times { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) {
  /* All the screen for the sheet: no folder tabs or tray around it. */
  #viewJobsheets:has(.js-page) > .sup-tabs, body:has(#viewJobsheets:not([hidden]) .js-stepping) .find-bar { display: none; }
  .sup-tabs + .page-body.js-page, .page-body.js-page { margin: 0; padding: 10px 10px 0; background: none; border: 0; border-radius: 0; }
  .js-head { padding-top: 12px; padding-bottom: 10px; }
  .js-head h1 { font-size: 22px; }
  .js-head .fs-head { width: 100%; }
  .js-page .card-head, .js-page .card-body { padding-left: 14px; padding-right: 14px; }
  .js-nav { background: var(--bg); margin: 8px -10px 0; padding-left: 10px; padding-right: 10px; }
  .js-nav .btn-p { flex: 1 1 auto; }
  .js-page .js-qrow { grid-template-columns: 1fr 1fr; }
}
/* Templates (Phil, 14 Oct 2026: "editing and creating templates is a bit confusing"): the templates
   down the side; each field one line until it's opened; Add a field shows every kind with what it's for. */
.jt-lay { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .jt-lay { grid-template-columns: minmax(0, 1fr); } }
.jt-side { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 0; }
@media (max-width: 900px) { .jt-side { position: static; flex-direction: row; flex-wrap: wrap; } }
.jt-sidehead { font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 12px; }
@media (max-width: 900px) { .jt-sidehead { width: 100%; } }
.jt-tpl { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 10px 12px; border: 1px solid var(--b1); border-radius: 6px; background: var(--panel); color: var(--ink); font: inherit; cursor: pointer; }
.jt-tpl:hover { border-color: var(--b2); background: var(--row); }
.jt-tpl.on { border-color: var(--o); box-shadow: inset 3px 0 0 var(--o); }
.jt-main { min-width: 0; }
.jt-main > .card { margin-bottom: 16px; }
.jt-top .card-body { display: flex; gap: 12px 16px; flex-wrap: wrap; align-items: flex-end; }
.jt-top label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; color: var(--i2); }
.jt-top #jtName { min-width: 240px; }
.jt-sec .card-head { gap: 10px; flex-wrap: wrap; }
.jt-title { font-weight: 700; font-size: 16px; flex: 1 1 240px; }
.jt-fields { display: flex; flex-direction: column; gap: 6px; }
.jt-fields.drop-end { outline: 2px dashed var(--o); outline-offset: -4px; }
.jt-empty { padding: 10px 0; }
.jt-field { border: 1px solid var(--b3); border-radius: 6px; background: var(--panel); }
.jt-field.open { border-color: var(--o); box-shadow: 0 0 0 1px var(--o); }
.jt-field.dragging { opacity: .4; }
.jt-field.drop-before { box-shadow: 0 -3px 0 var(--o); }
.jt-line { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 10px; min-height: 46px; }
.jt-grip { cursor: grab; color: var(--i5); letter-spacing: -2px; user-select: none; }
.jt-mark { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 26px; padding: 0 4px; border-radius: 4px; background: var(--b4); color: var(--i2); font-size: 12px; font-weight: 700; flex: none; }
.jt-name { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; padding: 2px 0; }
.jt-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.jt-name:hover b { color: var(--o); }
.jt-badges { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.jt-btns { display: flex; gap: 4px; }
@media (max-width: 640px) { .jt-badges { display: none; } .jt-grip { display: none; } }
.jt-edit { border-top: 1px solid var(--b3); padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--row); border-radius: 0 0 6px 6px; }
.jt-edit label.small { display: flex; flex-direction: column; gap: 4px; font-weight: 600; color: var(--i2); }
.jt-edit label.sf-check { flex-direction: row; font-weight: 400; }
.jt-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 10px 14px; }
@media (max-width: 640px) { .jt-grid { grid-template-columns: minmax(0, 1fr); } }
.jt-toggles { display: flex; flex-direction: column; gap: 8px; }
.jt-editfoot { display: flex; justify-content: flex-end; }
.jt-addf { align-self: flex-start; margin-top: 4px; }
.jt-palette { border: 1px solid var(--o); border-radius: 6px; padding: 12px; margin-top: 4px; background: var(--row); }
.jt-ph { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.jt-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.jt-type { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; row-gap: 2px; align-items: center; text-align: left; padding: 10px; border: 1px solid var(--b1); border-radius: 6px; background: var(--panel); color: var(--ink); font: inherit; cursor: pointer; }
.jt-type .jt-mark { grid-row: 1 / 3; }
.jt-type:hover { border-color: var(--o); }
.jt-preview .card { margin-bottom: 16px; }
/* Book a visit (tickets.js) */
.bk { margin-bottom: 16px; border-color: var(--o); }
.bk-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.bk-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; color: var(--i2); }
.bk-form .bk-notes { grid-column: 1 / -1; }
.bk-form .sf-wide { grid-column: 1 / -1; }
.sf-body { display: flex; flex-direction: column; gap: 12px; }
.sf-col { display: flex; flex-direction: column; gap: 4px; font-weight: 600; color: var(--i2); }
.sf-check { display: flex; gap: 8px; align-items: center; }
.sf-check input { width: auto; }
.sf-actions { display: flex; gap: 10px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.bk-free { margin-top: 14px; padding: 10px 12px; background: var(--row); border-radius: 6px; display: flex; flex-direction: column; gap: 6px; }
.bk-eng { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13px; }
.bk-eng b { min-width: 140px; }
/* New visit or link one, the client's work orders, find the account, and what clashes (Phil, 13 Nov 2026) */
.bk-mode { margin-bottom: 12px; }
.bk-visit { margin-bottom: 12px; font-weight: 600; }
.bk-wos { display: flex; flex-direction: column; gap: 6px; }
.bk-wo { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--b1); border-radius: 6px; cursor: pointer; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.bk-wo input { width: auto; margin-top: 3px; flex: none; }
.bk-wo:has(input:checked) { border-color: var(--o); background: var(--row); }
.bk-acct { margin-bottom: 12px; padding: 10px 12px; border: 1px dashed var(--o); border-radius: 6px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bk-acq { display: flex; gap: 6px; flex-wrap: wrap; }
.bk-acq input { flex: 1 1 140px; min-width: 0; }
.bk-acl { display: flex; flex-direction: column; gap: 6px; }
.bk-acr { display: flex; gap: 8px; align-items: center; min-width: 0; overflow-wrap: anywhere; }
.vs-chip.clash { outline: 2px solid var(--neg); outline-offset: 1px; }
.vs-chip .bk-clash { color: var(--neg); font-weight: 700; }
.tk-full { margin-top: 8px; }
.tk-full summary { cursor: pointer; color: var(--link); }
.tk-full .tk-mb { margin-top: 6px; }
.tk-compose textarea { width: 100%; resize: vertical; min-height: 120px; padding: 10px; line-height: 1.45; }
/* WhatsApp tickets (tickets.js waComposer, chatItemHtml; 13 Nov 2026). */
.tk-wa-compose textarea { min-height: 84px; }
.tk-wa-line { margin: 0 0 8px; }
.tk-wa-closed { margin: 0; }
.tk-wa-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.tk-wa-st { margin-top: 4px; text-align: right; color: var(--muted); }
.tk-wa-st.bad { color: var(--neg); }
.tk-wa-file { display: inline-block; margin-top: 6px; padding: 0; border: 0; background: none; color: var(--link); font: inherit; font-size: 14px; cursor: pointer; text-align: left; overflow-wrap: anywhere; }
.wa-tpls { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; max-height: 50vh; overflow-y: auto; }
.wa-tpl { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--b1); border-radius: 6px; cursor: pointer; }
.wa-tpl input { margin-top: 3px; width: 16px; height: 16px; flex: none; }
.wa-tpl-text { display: block; margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.app-top { display: none; }
@media (max-width: 860px) {
  /* On a phone the page scrolls as a whole, so the top bar and the planner's
     tools move up out of the way; the planner grid then fills the screen and
     scrolls inside itself. */
  html, body { height: auto; }
  body { display: block; overflow: visible; }
  .app-main { height: auto; display: block; }
  .view, .view.scroll { display: block; overflow: visible; }
  .planner { height: 100vh; height: 100dvh; }
  .top { padding: 10px 12px; gap: 10px; }
  .tools { gap: 8px; width: 100%; }
  .tools .group { flex-wrap: wrap; max-width: 100%; }
  .tools input[type=search] { width: 100%; }
  /* Kept at the top (James, 15 Oct 2026): on an iPhone, Safari colours the strip behind the clock from what's
     pinned there, and with nothing pinned it faded the page's light background over the menu. */
  .app-top { display: flex; }
  /* What sticks to the top of a page sits under it. */
  .vp-bar, .js-prog, .jt-side { top: 52px; }
  /* A project's colour strip and band under the top bar. */
  .pj-band { top: 52px; }
  .app-top-sub { display: flex; }
  .app-top-sub.shut { display: none; }
}
/* The top bar (shown on a phone, and on a computer set to Menu across the top: .menu-top below). */
.app-top { align-items: center; gap: 12px; padding: 0 12px; height: 52px; background: var(--top-bg); color: #fff; flex: none; position: sticky; top: 0; z-index: 40; }
.app-top .app-logo { height: 20px; width: auto; flex: none; }
.app-top .top-nav { position: relative; flex: 1; min-width: 0; display: flex; }
.app-top nav { display: flex; gap: 4px; overflow-x: auto; flex: 1; min-width: 0; scrollbar-width: none; }
.app-top nav::-webkit-scrollbar { display: none; }
/* More sections off either end: a fade over the edge, with an arrow to tap. */
.app-top .top-more { position: absolute; top: 0; bottom: 0; width: 44px; height: auto; border: 0; border-radius: 0; padding: 0 6px; display: flex; align-items: center; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.app-top .top-more[hidden] { display: none; }
.app-top .top-more-r { right: 0; justify-content: flex-end; background: linear-gradient(to right, transparent, var(--top-bg) 55%); }
.app-top .top-more-l { left: 0; justify-content: flex-start; background: linear-gradient(to left, transparent, var(--top-bg) 55%); }
.app-top nav a { color: var(--top-fg); text-decoration: none; padding: 8px 10px; border-radius: 4px; white-space: nowrap; font-size: 14px; }
.app-top nav a.on { background: var(--panel); color: var(--ink); font-weight: 600; }
.app-top nav a.top-group { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 8px 10px; }
.app-top button { background: none; border: 1px solid var(--top-line); color: var(--top-fg); border-radius: 4px; height: 32px; padding: 0 10px; flex: none; }
.app-top nav button.top-group { border: 0; height: auto; padding: 8px 10px; font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.app-top nav button.top-group::after { content: ''; width: 5px; height: 5px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -3px; }
.app-top nav button.top-group.open::after { transform: rotate(-135deg); margin-top: 3px; }
.app-top nav button.top-group.has-on { color: #fff; }
.app-top nav button.top-group.open { background: rgba(255, 255, 255, .12); }
.app-top nav button.top-group .nav-dot { margin-left: 0; }
.app-top-sub { gap: 4px; overflow-x: auto; padding: 6px 12px; background: var(--top-sub); }
.app-top-sub .nav-group { display: none; gap: 4px; }
.app-top-sub .nav-group.open { display: flex; }
.app-top-sub a { color: var(--top-fg); text-decoration: none; padding: 6px 10px; border-radius: 4px; white-space: nowrap; font-size: 14px; }
.app-top-sub a.on { background: var(--panel); color: var(--ink); font-weight: 600; }
.my { max-width: 720px; }
.my-day { margin-bottom: 22px; }
.my-day h2 { font-size: 16px; margin: 0 0 10px; display: flex; gap: 8px; align-items: center; }
.my-day.past { opacity: .6; }
/* Annual leave in the next two weeks (my.js offHtml): a slim strip of name chips, not a card. */
.my-away { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; background: var(--teal-bg); color: var(--teal-fg); border-radius: 8px; padding: 7px 10px; margin-bottom: 18px; font-size: 13px; }
.my-away-h { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.my-away ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.my-away li { background: var(--panel); color: var(--i2); border-radius: 999px; padding: 2px 9px; line-height: 1.5; }
.my-away li b { color: var(--ink); font-weight: 600; }
.my-away li.now { background: var(--teal-fg); color: var(--teal-bg); }
.my-away li.now b { color: inherit; }
.my-away-none { color: var(--i2); }
.my-card.my-oc { border-left-color: #F39200; background: repeating-linear-gradient(135deg, var(--panel) 0 10px, var(--ot) 10px 20px); }
.my-card { background: var(--panel); border: 1px solid var(--b1); border-left: 5px solid var(--o); border-radius: 6px; padding: 14px 16px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 8px; }
/* A flag on My schedule (my.js flagRow): the planner's hatched strip (.flag), in the flow and a size to read on a phone. */
.my-flag.flag { position: static; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 10px; padding: 6px 14px 6px 10px; border-radius: 999px; font-size: 14px; line-height: 1.35; white-space: normal; cursor: default; }
.my-flag.flag .fi { font-size: 14px; }
.my-flag.flag:hover { border-style: dashed; }
.my-flag-note { font-weight: 400; color: var(--ink); }
.my-flag-note::before { content: "· "; color: var(--i3); }
.my-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.my-name { font-weight: 700; font-size: 17px; }
.my-sub { color: var(--i2); font-size: 14px; margin-top: 2px; }
.my-row { display: flex; gap: 10px; font-size: 15px; color: var(--ink); text-decoration: none; line-height: 1.35; }
.my-row > span:first-child { width: 20px; flex: none; text-align: center; color: var(--i3); }
a.my-row { color: var(--link); }
.my-row a { color: var(--link); }
.my-notes { background: var(--b4); border-radius: 4px; padding: 8px 10px; font-size: 14px; white-space: pre-wrap; }
/* The snags given to a booking, under it on My schedule (field.js mine). */
.my-snags { border-top: 1px solid var(--line); padding-top: 8px; }
.my-snags-h { font-size: 14px; }
.my-snags .fl-snag { padding: 10px 0; }
.my-snags .my-snags-h + .fl-snag { border-top: 0; }
/* A project booking's snags in the booking form (planner.js snagsPart): the ones on it, one to a line with its ✕, and
   the popup's to tick (.fsn-pick). */
#fSnags { display: flex; flex-direction: column; gap: 6px; }
#fSnags .fsn-row { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; }
#fSnags .fsn-row > span { flex: 1; min-width: 0; overflow-wrap: anywhere; padding-top: 4px; }
#fSnags .fsn-row .btn-sm { flex: none; width: 28px; padding: 0; justify-content: center; }
#fSnags p { margin: 4px 0 0; }
.labour-dlg label.fsn-pick { align-items: flex-start; padding: 4px 0; }
.fsn-pick > span { min-width: 0; overflow-wrap: anywhere; }
/* Put right a Zoho Calendar meeting's address (my.js fixRow, planner.js zohoWhere), under it. */
.my-fix { font-size: 13px; color: var(--i2); margin-top: -4px; }
.where-line { font-size: 14px; line-height: 1.4; }
.where-fix { border: 0; background: none; padding: 0; color: var(--link); font: inherit; cursor: pointer; text-decoration: underline; }
.my-open { font-size: 14px; color: var(--i2); text-decoration: none; }
/* A site diary entry from My schedule (my.js). */
.my-acts { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.my-diary-form { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.my-diary-form .my-acts { justify-content: flex-start; }
.my-with { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.my-done { font-size: 14px; color: var(--pos); font-weight: 600; }
.my-done a { font-weight: 400; }
/* Leave by on a day's first job, the day's miles, the day's order and whose schedule (my.js; James, 9 Nov 2026). */
.my-leave { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; font-size: 15px; background: var(--teal-bg); color: var(--teal-fg); border-radius: 6px; padding: 6px 10px; }
.my-leave b { font-weight: 700; }
.my-leave .small { color: inherit; opacity: .85; }
.my-miles { font-size: 13px; font-weight: 400; color: var(--i2); }
.my-ord { display: inline-flex; gap: 4px; }
.my-ord .btn { min-width: 34px; padding: 2px 8px; }
.my-whose { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; font-size: 14px; }
.my-whose select { max-width: 260px; }
/* A Street View thumbnail (streetview.js): no taller than the lines beside it; pressed, the photo large. */
.stv-thumb { flex: none; width: 56px; height: 38px; border: 1px solid var(--b1); border-radius: 4px; padding: 0; background: var(--b4) center / cover no-repeat; cursor: zoom-in; }
.stv-thumb[hidden] { display: none; }
/* The name takes the room, so a pill and the thumbnail stay together on the right. */
.my-top > div:first-child { flex: 1; min-width: 0; }
.labour-dlg.stv-dlg { width: min(720px, calc(100vw - 32px)); }
.stv-big { display: block; width: 100%; height: auto; border-radius: 6px; }
/* A Process draft sent from your own email (process.js). */
.proc-mail { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin-bottom: 8px; }
.proc-mail label { display: flex; flex-direction: column; gap: 3px; font-weight: 600; color: var(--i2); }
.proc-mail label:first-child, .proc-mail label:nth-child(4) { grid-column: 1 / -1; }
.proc-sent { font-size: 14px; color: var(--pos); font-weight: 600; padding: 6px 0; }
@media (max-width: 700px) { .proc-mail { grid-template-columns: 1fr; } }

/* The diary entry a Cliq link opens on (field.js focusDiary). */
.fl-diary.fl-focus { outline: 2px solid var(--o); outline-offset: 4px; border-radius: 4px; }
/* Photos picked with a snag or diary entry (field.js photoPicker). */
.fl-pick { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fl-picked { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.fl-thumb.picked { position: relative; display: inline-block; }
.fl-thumb.picked img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; display: block; }
.fl-thumb.picked button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--ink); color: var(--panel); font-size: 13px; line-height: 20px; padding: 0; cursor: pointer; }
/* On a phone: the initials at the right of the top bar, opening who's signed in, Zoho,
   Theme and Sign out under the bar (the menu's foot on a computer). An orange dot while
   Zoho needs linking or allowing again. */
.top-me-panel { display: none; }
@media (max-width: 860px) {
  .top-me-panel:not([hidden]) { display: flex; flex-direction: column; gap: 10px; padding: 12px; background: var(--dark); border-bottom: 1px solid var(--top-line); }
}
/* The initials and what they open, as above. */
.app-top .top-me { width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 1px solid var(--top-line); background: rgba(255, 255, 255, .1); color: #fff; font-weight: 700; font-size: 12.5px; letter-spacing: .02em; position: relative; cursor: pointer; }
.app-top .top-me.open { background: var(--panel); color: var(--ink); }
.app-top .top-me.zoho-due::after { content: ''; position: absolute; top: -1px; right: -1px; width: 9px; height: 9px; border-radius: 50%; background: var(--o); border: 2px solid var(--top-bg); }
.top-me-panel .theme-pick { font-size: 13px; }
.top-me-panel .theme-pick button { font-size: 13px; padding: 5px 10px; }
.top-me-out { align-self: flex-start; background: none; border: 1px solid var(--top-line); color: var(--top-fg); border-radius: 4px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; }
/* Shrinking the menu on a computer (James, 8 Nov 2026; a strip of icons rather than hidden, 9 Nov 2026): « by the logo
   shrinks it to the strip (.menu-rail), with » to widen it again; ⋯ beside it puts the menu across the top instead, as on
   a phone, and the initials there bring it back. On <html>, kept per browser (app.js setMenu, index.html before the page
   draws). A phone keeps its own top bar. */
.app-brand { position: relative; }
.app-brand-row { display: flex; align-items: center; gap: 6px; }
.menu-tools { margin-left: auto; display: flex; gap: 2px; }
.menu-tools button { width: 24px; height: 22px; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--i4); font: inherit; font-size: 15px; font-weight: 700; line-height: 1; cursor: pointer; }
.menu-tools button:hover, .menu-tools .menu-more[aria-expanded="true"] { color: #fff; background: rgba(255, 255, 255, .1); }
.menu-more-pop { position: absolute; top: calc(100% - 12px); right: 0; z-index: 50; width: 200px; padding: 4px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 6px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.menu-more-pop button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; border-radius: 4px; background: none; color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.menu-more-pop button:hover { background: var(--b4); }
.menu-more-pop .mm-i { width: 14px; flex: none; color: var(--i3); text-align: center; font-size: 14px; letter-spacing: 0; text-transform: none; }
.menu-more-pop kbd { margin-left: auto; min-width: 18px; padding: 0 5px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 4px; font-family: inherit; font-size: 11px; font-weight: 600; color: var(--i3); text-align: center; }
.menu-show, .menu-side-btn, .rail-me, .rail-top, .nav-i, .app-brand img.app-brand-mark { display: none; }
/* The initials' panel is only a panel in the strip: down the side, what's in it sits in the menu's foot as it always did. */
.rail-me-panel { display: contents; }
@media (min-width: 861px) {
  /* The strip: the IZ mark, », the pages' and sections' icons, and the initials at the foot. Nothing in it scrolls, so
     what opens beside it isn't cut off. */
  .menu-rail .app-side { width: 56px; flex-basis: 56px; padding: 12px 8px; align-items: center; gap: 6px; overflow: visible; position: relative; z-index: 45; }
  .menu-rail .app-brand { padding: 0; }
  .menu-rail .app-brand-logo, .menu-rail .app-brand-row, .menu-rail .menu-more-pop { display: none; }
  .menu-rail .app-brand img.app-brand-mark { display: block; width: 32px; height: 32px; margin: 0; border-radius: 7px; }
  .menu-rail .menu-show { display: flex; align-items: center; justify-content: center; width: 32px; height: 28px; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--i4); font: inherit; font-size: 18px; font-weight: 700; line-height: 1; cursor: pointer; }
  .menu-rail .menu-show:hover { color: #fff; background: rgba(255, 255, 255, .1); }
  .menu-rail .app-nav { width: 40px; align-items: center; gap: 4px; }
  .menu-rail .app-nav > a, .menu-rail .nav-head { position: relative; width: 40px; height: 40px; padding: 0; margin: 0; justify-content: center; border-radius: 6px; }
  .menu-rail .nav-i { display: block; flex: none; }
  .menu-rail .nav-t, .menu-rail .nav-head::after { display: none; }
  .menu-rail .app-nav > a:hover, .menu-rail .nav-head:hover { color: #fff; background: rgba(255, 255, 255, .1); }
  .menu-rail .nav-group.has-on > .nav-head { color: #fff; background: rgba(255, 255, 255, .14); }
  .menu-rail .app-nav > a.on, .menu-rail .app-nav a.nav-head.on { margin-right: 0; border-radius: 6px; background: var(--bg); color: var(--ink); }
  .menu-rail .app-nav > a + .nav-group { margin-top: 4px; padding-top: 6px; }
  /* A page's name, beside its icon while pointed at. */
  .menu-rail .app-nav > a:hover > .nav-t, .menu-rail .app-nav > a:focus-visible > .nav-t, .menu-rail a.nav-head:hover > .nav-t, .menu-rail a.nav-head:focus-visible > .nav-t { display: block; position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); z-index: 60; padding: 6px 10px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 4px; background: var(--dark); color: #fff; font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; white-space: nowrap; box-shadow: var(--shadow); pointer-events: none; }
  /* Counts and dots on the icons' corners; a section's dot stays while its pages are open beside it. */
  .menu-rail .app-nav > a > .nb { position: absolute; top: -3px; right: -5px; min-width: 16px; padding: 0 4px; margin: 0; font-size: 10px; line-height: 16px; }
  .menu-rail .nav-head .nav-dot, .menu-rail [data-group-toggle].open .nav-dot { display: block; position: absolute; top: 5px; right: 5px; width: 10px; height: 10px; margin: 0; border: 2px solid var(--side-bg); }
  /* A section's pages, beside the strip while its icon is pointed at, clicked (.fly, app.js) or tabbed to. The ::after
     bridges the gap, so the pointer can cross to them. */
  .menu-rail .nav-group { position: relative; }
  .menu-rail .nav-group::after { content: ''; position: absolute; left: 100%; top: 0; width: 12px; height: 40px; }
  .menu-rail .nav-sub, .menu-rail .nav-group.open .nav-sub { display: none; position: absolute; left: calc(100% + 12px); top: 0; z-index: 60; min-width: 200px; margin: 0; padding: 6px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 6px; background: var(--dark); box-shadow: var(--shadow); }
  .menu-rail .nav-group:hover .nav-sub, .menu-rail .nav-group.fly .nav-sub, .menu-rail .nav-group:has(:focus-visible) .nav-sub { display: flex; }
  .menu-rail .nav-sub::before { content: attr(data-title); padding: 4px 10px 6px; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  .menu-rail .app-nav .nav-sub a { padding: 8px 10px; font-size: 14px; white-space: nowrap; }
  .menu-rail .app-nav .nav-sub a:hover { background: rgba(255, 255, 255, .08); }
  .menu-rail .app-nav .nav-sub a.on { margin-right: 0; border-radius: 4px; }
  /* The initials, and what they open beside the strip: Theme, Report an issue, who's signed in, Menu across the top. */
  .menu-rail .app-side-foot { position: relative; align-items: center; }
  .menu-rail .rail-me:not([hidden]) { display: flex; align-items: center; justify-content: center; position: relative; width: 36px; height: 36px; padding: 0; border: 1px solid var(--top-line); border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; cursor: pointer; }
  .menu-rail .rail-me.open { background: var(--panel); color: var(--ink); }
  .menu-rail .rail-me.zoho-due::after, .menu-rail .rail-me.fb-due::after { content: ''; position: absolute; top: -1px; right: -1px; width: 9px; height: 9px; border-radius: 50%; background: var(--o); border: 2px solid var(--side-bg); }
  .menu-rail .rail-me-panel { display: none; }
  .menu-rail .rail-me-panel.open { display: flex; flex-direction: column; gap: 10px; position: absolute; left: calc(100% + 12px); bottom: 0; z-index: 60; width: 270px; padding: 14px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 6px; background: var(--dark); box-shadow: var(--shadow); }
  .menu-top body { flex-direction: column; }
  .menu-top .app-side { display: none; }
  .menu-top .app-top, .menu-top .app-top-sub { display: flex; }
  .menu-top .app-top-sub.shut { display: none; }
  .menu-top .app-main { height: auto; min-height: 0; }
  .menu-top .top-me-panel:not([hidden]) { display: flex; flex-direction: column; gap: 10px; position: absolute; top: 56px; right: 12px; z-index: 60; width: 280px; padding: 14px; background: var(--dark); border-radius: 6px; box-shadow: var(--shadow); }
  .menu-top .menu-side-btn, .menu-rail .rail-top { display: flex; align-items: center; gap: 8px; align-self: flex-start; background: none; border: 1px solid var(--top-line); color: var(--top-fg); border-radius: 4px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; }
  .menu-top .menu-side-btn:hover, .menu-top .top-me-out:hover, .menu-rail .rail-top:hover { color: #fff; }
}
@media (max-width: 420px) {
  .app-top .app-logo { display: none; }
  .app-top nav a, .app-top nav button.top-group { padding: 8px 8px; }
}


/* Names column: drag handle, and a compact look when narrow */
.corner { position: sticky; }
.side-grip { position: absolute; top: 0; right: -4px; width: 8px; height: 100%; cursor: col-resize; z-index: 40; touch-action: none; }
.side-grip::after { content: ''; position: absolute; top: 30%; bottom: 30%; left: 3px; width: 2px; border-radius: 1px; background: var(--b2); }
.side-grip:hover::after { background: var(--o); }
.side-narrow .side { grid-template-columns: 28px 1fr; padding: 6px; }
.side-narrow .side .free, .side-narrow .side .title, .side-narrow .side .tags { display: none; }
.side-narrow .side .avatar { width: 28px; height: 28px; font-size: 11px; }
.side-narrow .corner .team { font-size: 11px; }
/* Collapsible groups */
.grp-body[hidden] { display: none !important; }
.fold { display: inline-block; width: 14px; color: var(--i3); }
.grp .tr.th a[data-fold]:hover b { text-decoration: underline; }

/* Timesheets (timesheets.js). James, 26 Oct 2026: easier on the eyes; each line in its project's colour
   (--c), each day with its part of the planner beside it, and the week shown plainly at the top. */
.ts { max-width: 1040px; }
.ts-head .ts-headbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.ts-head h1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ts-head h1 .pill { font-size: 12px; font-weight: 600; }
/* The week: ‹ the dates and how far from this week › and, away from it, Go to this week (logic.js weekNav;
   Timesheets, Team timesheets, Visits, and the planner's toolbar). */
.weeknav { flex-basis: 100%; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wk-arrow { width: 40px; height: 40px; padding: 0; border-radius: 50%; font-size: 20px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.wk-box { display: flex; flex-direction: column; justify-content: center; min-height: 40px; padding: 4px 16px; border-radius: 10px; background: var(--b3); box-shadow: inset 0 0 0 1px var(--b1); min-width: 0; }
.wk-box b { font-size: 16px; color: var(--ink); }
.wk-box span { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--i3); }
.wk-box.now span { color: var(--o); }
.wk-now { margin-left: 4px; }
.wk-arrow.off { opacity: .35; cursor: not-allowed; }
/* In the planner's toolbar: the toolbar's size, on the same line as its other buttons. */
.tools .weeknav { flex-basis: auto; display: inline-flex; gap: 6px; flex-wrap: nowrap; }
.tools .wk-arrow { width: 32px; min-width: 32px; height: 32px; padding: 0; border-radius: 50%; font-size: 18px; }
.tools .wk-box { min-height: 32px; padding: 2px 12px; border-radius: 8px; white-space: nowrap; }
.tools .wk-box b { font-size: 13px; line-height: 16px; }
.tools .wk-box span { font-size: 10px; line-height: 12px; }
.tools .wk-now { margin-left: 0; }
.ts-day { background: var(--panel); border: 1px solid var(--b1); border-radius: 10px; padding: 14px 18px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 12px; }
.ts-day:not(.open):not(.sent) { background: var(--row); }
.ts-day.today { border-color: var(--o); }
.ts-day.weekend { opacity: .75; }
.ts-day h2 { margin: 0; font-size: 15px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ts-day h2[data-day] { cursor: pointer; min-height: 32px; }
.ts-dt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ts-dt.over { color: var(--neg); }
.ts-daybody { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 18px; align-items: start; }
.ts-lines { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ts-none { margin: 0; }
.ts-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr) 140px 40px; gap: 6px 8px; align-items: center; padding: 8px 8px 8px 12px; border-left: 4px solid var(--c, var(--b1)); border-radius: 6px; background: color-mix(in srgb, var(--c, transparent) 6%, var(--panel)); box-shadow: inset 0 0 0 1px var(--b3); }
.ts-row .tsN, .ts-row .tsL, .ts-row .ts-meta { grid-column: 1 / -1; }
.ts-row.flash { animation: ts-flash 1.2s ease-out; }
@keyframes ts-flash { 0% { box-shadow: inset 0 0 0 2px var(--c, var(--accent)); } 100% { box-shadow: inset 0 0 0 1px var(--b3); } }
.ts-meta { display: flex; gap: 12px; align-items: center; }
.ts-meta:empty { display: none; }
.ts-meta .pill:not(.teal) { background: none; padding: 0; color: var(--i3); font-weight: 600; }
.ts-hrs { display: grid; grid-template-columns: 36px 1fr 36px; gap: 4px; }
.ts-hrs .btn { padding: 0; height: 40px; font-size: 18px; }
.ts-hrs .tsH { text-align: center; padding: 0 4px; }
.ts-row.ro { grid-template-columns: minmax(0, 1fr) auto; padding: 8px 12px; }
.ts-ph { color: var(--i3); font-weight: 400; }
.ts-ph::before { content: '· '; }
.ts-h { font-weight: 600; font-variant-numeric: tabular-nums; }
.ts-add { align-self: flex-start; padding: 4px 0; }
/* Each day is saved on its own: + Add time and Save under the day's lines; a saved day is green-edged and locked. */
.ts-dayfoot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ts-day.sent { border-left: 4px solid var(--pos); }
/* A day's part of the planner: its bookings as the planner draws them (.block), stacked by hours,
   a dashed line at the hours worked that day; on a day being logged, the bottom edge drags the hours. */
.ts-strip { position: relative; z-index: 0; border-radius: 8px; background: var(--b4); box-shadow: inset 0 0 0 1px var(--b1); overflow: hidden; }
.ts-strip .block { left: 4px; right: 4px; cursor: default; touch-action: pan-y; }
.ts-strip.edit .block { cursor: pointer; }
.ts-strip .block.one { display: flex; align-items: center; }
.ts-strip .block.one .l1 { flex: 1; min-width: 0; }
.ts-strip .block.one .l2 { display: none; }
.ts-strip .block.sizing { box-shadow: 0 4px 14px rgba(0, 0, 0, .25); z-index: 12; }
.ts-cap { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--i4); z-index: 11; pointer-events: none; }
.ts-cap span { position: absolute; right: 4px; top: 1px; font-size: 10px; line-height: 12px; color: var(--i3); background: var(--b4); padding: 0 3px; border-radius: 3px; }
.ts-grip { position: absolute; left: 0; right: 0; bottom: 0; height: 9px; cursor: ns-resize; touch-action: none; }
.ts-grip::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 18px; margin-left: -9px; height: 3px; border-radius: 2px; background: currentColor; opacity: .55; }
/* With a mouse, the bar shows on hover (it would cover a short booking's name); on a touch screen, always. */
@media (hover: hover) { .ts-grip::after { opacity: 0; } .ts-strip .block:hover .ts-grip::after, .ts-strip .block.sizing .ts-grip::after { opacity: .85; } }
@media (hover: none) { .ts-strip .block.one:not(.sizing) .ts-grip::after { opacity: 0; } }
.ts-strip-none { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; }
.ts-stripwrap { min-width: 0; }
.ts-strip-cap { margin-top: 4px; text-align: center; }
#tsLeft { flex-basis: 100%; }
.ts-foot { position: sticky; bottom: 0; z-index: 5; border-radius: 10px; }
/* While a day is open its own Save sticks instead (.pin-foot; James, 17 Nov 2026): one bar at a time, and Submit waits
   for every day to be saved anyway. */
.ts:has(.ts-dayfoot.pin-foot) > .ts-foot { position: static; }
.ts-foot .card-body { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
/* Team timesheets: the week's counts as chips, each person's row edged in their week's status. */
.ts-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.ts-chip { padding: 6px 12px; border-radius: 999px; font-size: 13px; background: var(--b3); color: var(--i2); }
.ts-chip b { font-size: 15px; }
.ts-chip.blue { background: var(--blue-bg); color: var(--blue-fg); }
.ts-chip.amber { background: var(--amber-bg); color: var(--amber-fg); }
.ts-chip.green { background: var(--green-bg); color: var(--green-fg); }
.ts-chip.red { background: var(--red-bg); color: var(--red-fg); }
.ts-chip.none { background: var(--b3); color: var(--i3); }
.ts-team .tbl { border-radius: 10px; }
.ts-tr { box-shadow: inset 4px 0 0 var(--b1); }
.ts-tr.submitted { box-shadow: inset 4px 0 0 var(--blue-fg); }
.ts-tr.approved { box-shadow: inset 4px 0 0 var(--pos); }
.ts-tr.returned, .ts-tr.open { box-shadow: inset 4px 0 0 var(--amber-fg); }
@media (max-width: 860px) {
  .ts-day { padding: 12px; }
  .ts-daybody { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ts-grip { height: 16px; }
  .ts-row { grid-template-columns: minmax(0, 1fr) 44px; }
  .ts-row .tsP { grid-column: 1; }
  .ts-row .tsX { grid-column: 2; grid-row: 1; height: 40px; }
  .ts-row .tsPh, .ts-row .tsW, .ts-row .ts-hrs { grid-column: 1 / -1; }
  .ts-hrs { grid-template-columns: 48px 1fr 48px; }
  .ts-hrs .btn { height: 44px; }
  .ts-row .f-in { height: 44px; font-size: 16px; }
  .weeknav { gap: 6px; }
  .wk-box { flex: 1; padding: 4px 10px; }
  .wk-box b { font-size: 14px; }
  /* On the toolbar's first line with Filters, as This week was; Go to this week under it when it's there. */
  .tools .weeknav { flex: 1 1 0; min-width: 0; flex-wrap: wrap; }
  .tools .wk-box { flex: 1 1 0; min-width: 0; padding: 2px 8px; }
  .tools .wk-box b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
  .tools .wk-now { flex-basis: 100%; height: 36px; }
  .tools .wk-arrow { width: 36px; min-width: 36px; height: 36px; }
  .wk-now { flex-basis: 100%; margin-left: 0; height: 40px; display: inline-flex; align-items: center; justify-content: center; }
  .ts-foot .card-body { padding: 10px 12px; }
  .ts-foot .btn { flex: 1; height: 44px; }
  .ts-foot .grow { flex-basis: 100%; }
  .ts-dayfoot .btn { height: 44px; flex: 1 1 100%; }
}

/* Touch screens: fingers scroll the planner unless "Drag to edit" is on */
.touch-locked .block { touch-action: pan-x pan-y; cursor: pointer; }
.touch-locked .block .edge { display: none; }
#touchEdit.on { background: var(--o); border-color: var(--o); color: #fff; }

/* Tools */
.page-body.tools { max-width: 860px; }
.page-body.tools h3 { margin: 8px 0 0; font-size: 15px; }
.steps-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; line-height: 1.45; }

/* Process (the delivery process maps) */
.pill.orange { background: var(--ot); color: var(--ot-fg); }
.pill.purple { background: var(--purple-bg); color: var(--purple-fg); }
.pill.teal { background: var(--teal-bg); color: var(--teal-fg); }
.proc-now { display: flex; gap: 28px; flex-wrap: wrap; }
/* A project's Rooms (rooms.js): room cards by floor. */
.rm-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
/* Each floor stands out from its rooms (James, 25 Oct 2026): an orange rule under its heading, and in a list an orange band. */
.rm-floor { margin: 22px 0 10px; padding-bottom: 8px; font-size: 15px; border-bottom: 2px solid var(--o); }
.rm-building { margin: 30px 0 2px; font-size: 19px; }
.rm-building + .rm-floor { margin-top: 8px; }
.rm-lbuilding { padding: 14px 20px 6px; font-weight: 800; font-size: 15px; border-top: 2px solid var(--line); }
.rm-room .card-head h2 { overflow-wrap: anywhere; }
.rm-notes { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.rm-prods summary { cursor: pointer; margin-top: 6px; }
.rm-kit { display: flex; flex-direction: column; gap: 6px; }
.rm-kit-it { display: flex; align-items: stretch; background: var(--b4); border: 1px solid var(--b1); border-radius: 8px; }
.rm-kit-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 44px; box-sizing: border-box; padding: 6px 10px; font: inherit; font-size: 14px; text-align: left; color: var(--ink); background: none; border: 0; border-radius: 8px; }
button.rm-kit-main { cursor: pointer; }
.rm-kit-pen { flex: none; width: 40px; font: inherit; font-size: 15px; color: var(--muted); background: none; border: 0; border-left: 1px solid var(--b1); border-radius: 0 8px 8px 0; cursor: pointer; }
.rm-kit-pen:hover { color: var(--ink); }
.rm-kit-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 0 2px; }
.rm-kit-edit .f-in { flex: 1 1 200px; min-width: 0; }
.rm-kit-hint, .rm-kit-msg { flex-basis: 100%; }
.rm-kit-msg:empty { display: none; }
.rm-kit-main img { width: 30px; height: 30px; flex: none; }
.rm-kit-main img.pw { opacity: .45; }
.rm-kit-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rm-kit-name { font-weight: 600; overflow-wrap: anywhere; }
.rm-kit-n { flex: none; }
.rm-kit-chev { flex: none; width: 12px; color: var(--muted); font-size: 18px; line-height: 1; transition: transform .15s; }
.rm-kit-main[aria-expanded="true"] .rm-kit-chev { transform: rotate(90deg); }
.rm-kit-prods { margin: 0; padding: 2px 10px 4px 50px; list-style: none; }
.rm-kit-prods li + li { margin-top: 2px; }
.rm-also { margin: 10px 0 0; }
.rm-prods ul, .rm-plist { margin: 6px 0 0; padding-left: 18px; font-size: 13px; }
/* The list (rooms.js listHtml): a row a room, its requirements as icons, what each is on hover. */
.rm-list { padding: 4px 0; }
.rm-lfloor { display: flex; align-items: center; gap: 8px; padding: 9px 20px; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .05em;
  background: color-mix(in srgb, var(--o) 10%, transparent); border-top: 2px solid var(--o); border-bottom: 1px solid color-mix(in srgb, var(--o) 35%, transparent); }
.rm-lfloor .muted { text-transform: none; letter-spacing: 0; font-weight: 600; }
.rm-lfloor + .rm-row, .rm-lfloor + .lt-row, .rm-lfloor + .lt-room { border-top: 0; }
.rm-row { display: grid; grid-template-columns: auto minmax(140px, 220px) minmax(0, 1fr); align-items: center; gap: 6px 14px; padding: 10px 20px; border-top: 1px solid var(--line); }
.rm-row.rm-click { cursor: pointer; }
.rm-row.rm-click:hover, .rm-row:focus-visible { background: var(--row); outline: none; }
.rm-rname { min-width: 0; overflow-wrap: anywhere; }
.rm-ics { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.rm-ic { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; border: 0; padding: 0; background: var(--b4); color: var(--ink); cursor: help; }
.rm-ic .rm-svg { width: 20px; height: 20px; }
.rm-kic { width: 40px; height: 40px; background: none; }
.rm-kic img, .rm-kchip img { width: 30px; height: 30px; }
.rm-kchip img { width: 22px; height: 22px; flex: none; }
.rm-kic img.pw, .rm-kchip img.pw { opacity: .45; }
.rm-also-l { align-self: center; }
.rm-ic.g-control .rm-svg { color: var(--blue-fg); }
.rm-ic.g-av .rm-svg { color: var(--purple-fg); }
.rm-ic.g-door .rm-svg, .rm-ic.g-network .rm-svg { color: var(--teal-fg); }
.rm-ic.g-lighting .rm-svg { color: var(--amber-fg); }
.rm-ic.g-climate .rm-svg { color: var(--red-fg); }
.rm-ic.g-security .rm-svg { color: var(--green-fg); }
.rm-ic.g-other .rm-svg { color: var(--o); }
.rm-ic:focus-visible { outline: 2px solid var(--o); outline-offset: 1px; }
.rm-mark { position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--o); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
.rm-cap { grid-column: 1 / -1; color: var(--ink); padding: 2px 0 0; white-space: pre-line; }
.rm-ico.rm-ico-xs { width: 26px; height: 26px; min-width: 26px; border-radius: 7px; }
.rm-ico.rm-ico-xs .rm-svg { width: 16px; height: 16px; }
@media (hover: hover) {
  /* A line a product under what it is (rooms.js tipOf), so it wraps at the newlines and past 360px. */
  .rm-ic:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: pre-line; width: max-content; max-width: min(360px, 80vw); text-align: left; background: var(--ink); color: var(--panel); font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 6px; z-index: 5; pointer-events: none; }
}
@media (max-width: 640px) {
  .rm-row { grid-template-columns: auto minmax(0, 1fr); padding: 10px 16px; }
  .rm-ics { grid-column: 1 / -1; }
}
.rm-diffs .rm-diff { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; }
.rm-log .rm-logrow { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 3fr); }
.rm-log summary { cursor: pointer; }
/* Select rooms: a tick on each room and floor, and the bar (inventory's .iv-bulk) with Remove */
.rm-sel { display: inline-flex; align-items: center; gap: 6px; padding: 6px; margin: -6px 0; cursor: pointer; flex: none; }
.rm-sel input { width: 18px; height: 18px; }
.rm-selfloor { margin-left: auto; font-weight: 600; text-transform: none; letter-spacing: 0; }
.rm-room.rm-picking { cursor: pointer; }
.rm-room.sel { outline: 2px solid var(--o); outline-offset: -2px; }
.rm-row.rm-picking { grid-template-columns: auto auto minmax(140px, 220px) minmax(0, 1fr); }
.rm-room.sel, .rm-row.sel { background: var(--ot); }
.rm-bulk-go { display: inline-flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
@media (max-width: 640px) { .rm-row.rm-picking { grid-template-columns: auto auto minmax(0, 1fr); } }
@media (max-width: 860px) { .rm-diffs .rm-diff, .rm-log .rm-logrow { grid-template-columns: minmax(0, 1fr); } }
/* Rooms icons (roomicons.js): a tile for each room and floor, a chip for each requirement, tinted by its group. */
.rm-svg { width: 18px; height: 18px; flex: none; }
.rm-ico { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; min-width: 40px; border-radius: 10px; background: var(--ot); color: var(--o); border: 0; padding: 0; }
.rm-ico .rm-svg { width: 24px; height: 24px; }
.rm-ico-sm { width: 30px; height: 30px; min-width: 30px; border-radius: 8px; }
.rm-ico-sm .rm-svg { width: 18px; height: 18px; }
.rm-ico-lg { width: 52px; height: 52px; min-width: 52px; border-radius: 12px; }
.rm-ico-lg .rm-svg { width: 30px; height: 30px; }
button.rm-ico { cursor: pointer; }
button.rm-ico:hover, button.rm-ico:focus-visible { outline: 2px solid var(--o); outline-offset: 2px; }
.rm-floor { display: flex; align-items: center; gap: 10px; }
.rm-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rm-title h2 { margin: 0; overflow-wrap: anywhere; }
.rm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; font-size: 13px; line-height: 1.3; background: var(--b4); color: var(--ink); max-width: 100%; }
.rm-chip > span { overflow-wrap: anywhere; }
.rm-chip .rm-svg { width: 16px; height: 16px; }
.rm-chip.g-control .rm-svg { color: var(--blue-fg); }
.rm-chip.g-av .rm-svg { color: var(--purple-fg); }
.rm-chip.g-door .rm-svg, .rm-chip.g-network .rm-svg { color: var(--teal-fg); }
.rm-chip.g-lighting .rm-svg { color: var(--amber-fg); }
.rm-chip.g-climate .rm-svg { color: var(--red-fg); }
.rm-chip.g-security .rm-svg { color: var(--green-fg); }
.rm-chip.g-other .rm-svg { color: var(--o); }
.rm-lab { display: inline-flex; align-items: center; gap: 6px; }
.rm-lab .rm-svg { width: 15px; height: 15px; color: var(--i4); }
.rm-dlg-head { display: flex; align-items: center; gap: 14px; }
.rm-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.rm-pick button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; font-size: 12px; cursor: pointer; text-align: center; min-width: 0; }
.rm-pick button .rm-svg { width: 24px; height: 24px; color: var(--o); }
.rm-pick button[aria-checked="true"] { border-color: var(--o); background: var(--ot); }
.rm-pick button:hover { border-color: var(--o); }
.rm-pick button span { overflow-wrap: anywhere; }
/* Rooms → Lighting (lighting.js): circuits as icons of their kind of light with their number, or listed in full. */
.lt-ic .rm-svg { color: var(--amber-fg); }
/* A circuit's number under its icon: room for one of its own, like GF-L01. */
.rm-ic.lt-ic { flex-direction: column; width: auto; min-width: 44px; height: 46px; padding: 3px 5px 2px; gap: 1px; }
.rm-mark.lt-no { position: static; min-width: 0; height: auto; padding: 0; background: none; color: var(--i2); font-size: 10px; line-height: 12px; white-space: nowrap; }
.rm-ic.lt-add { height: 46px; }
.lt-add { font-size: 20px; font-weight: 600; color: var(--i4); border: 1px dashed var(--line); background: transparent; cursor: pointer; }
.lt-add:hover { color: var(--o); border-color: var(--o); }
.rm-ic.lt-ic[data-ltc] { cursor: pointer; }
.lt-room + .lt-room { border-top: 2px solid var(--line); }
.lt-roomhead { border-top: 0; }
.lt-circuit { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 14px; align-items: start; padding: 10px 20px 10px 64px; border-top: 1px solid var(--line); }
.lt-circuit.rm-click { cursor: pointer; }
.lt-circuit.rm-click:hover, .lt-circuit:focus-visible { background: var(--row); outline: none; }
.lt-main { min-width: 0; overflow-wrap: anywhere; }
.lt-fx { margin-top: 4px; display: flex; flex-direction: column; gap: 2px; }
.lt-load { font-weight: 700; white-space: nowrap; }
.labour-dlg.lt-dlg { width: min(860px, calc(100vw - 32px)); }
.lt-fxed { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.pd-row.lt-prodrow { grid-template-columns: 170px minmax(0, 1fr) 110px; }
.pd-row.lt-prodrow.lt-len { grid-template-columns: 170px minmax(0, 1fr) 110px 110px; }
.lt-hint { margin: -4px 0 0; }
.lt-unfit { border-color: var(--neg); }
.lt-warn { color: var(--neg); }
.lt-opts { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.lt-opts legend { padding: 0; margin-bottom: 4px; color: var(--i3); }
.lt-code { overflow-wrap: anywhere; }
.lt-code b, .lt-fx .lt-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.lt-fx .lt-code { font-size: 12px; color: var(--i3); }
.lt-note { color: var(--amber-fg); }
/* Lighting circuits from a CSV (lightingcsv.js). */
.ltc-opts { margin-top: 10px; }
.ltc-hint { margin: 0 0 8px; }
.ltc-list { max-height: 260px; overflow-y: auto; }
/* Which quotes count on Rooms and Kit (quoteuse.js). */
.qu-list { display: flex; flex-direction: column; gap: 6px; }
.labour-dlg .qu-row { display: flex; flex-direction: row; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.labour-dlg .qu-row input { width: auto; margin: 3px 0 0; flex: none; }
.qu-row > span { min-width: 0; overflow-wrap: anywhere; }
.qu-row.qu-off { opacity: .7; }
.qu-note { display: block; }
.qu-bar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 16px; }
.lt-fxinfo { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; color: var(--i3); }
.lt-total { font-size: 14px; }
@media (max-width: 640px) {
  .lt-circuit { padding: 10px 16px; }
  .pd-row.lt-prodrow, .pd-row.lt-prodrow.lt-len { grid-template-columns: minmax(0, 1fr); }
}
/* The stakeholders reminder (process.js reminderHtml). */
.proc-rm { border-left: 4px solid var(--o); margin-bottom: 16px; }
.proc-rm-parts { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.proc-rm-part { min-width: 0; flex: 1 1 220px; }
.proc-rm-part .k { font-size: 13px; color: var(--i4); font-weight: 600; margin-bottom: 2px; }
.proc-rm-part ul { margin: 0; padding-left: 18px; font-size: 14px; }
.proc-rm-text { font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.proc-now .k { font-size: 13px; color: var(--i4); font-weight: 600; }
.proc-now .v { font-size: 18px; font-weight: 700; margin-top: 2px; }
.proc-bars { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px 16px; margin-top: 14px; }
.proc-bar { display: grid; grid-template-columns: 76px 1fr auto; gap: 8px; align-items: center; color: var(--i2); font-weight: 600; font-size: 14px; }
.proc-bar i { display: block; height: 8px; background: var(--b4); border-radius: 4px; overflow: hidden; }
.proc-bar b { display: block; height: 100%; background: var(--pos); }
.proc-bar.on span:first-child { color: var(--ink); text-decoration: underline; text-decoration-color: var(--o); text-underline-offset: 3px; }
.proc-opts { display: flex; gap: 10px 18px; flex-wrap: wrap; align-items: center; margin-top: 14px; font-size: 14px; }
.proc-opts label { display: flex; gap: 6px; align-items: center; }
/* The Process tab's filters: a label and a select each; one in use is marked (process.js). */
.proc-filter span { color: var(--i3); font-size: 13px; font-weight: 600; }
.proc-filter select { height: 32px; padding: 0 8px; border: 1px solid var(--b2); border-radius: 4px; background: var(--panel); color: var(--ink); font-size: 13px; }
.proc-filter.on select { border-color: var(--o); background: var(--ot); color: var(--ot-fg); font-weight: 600; }
.proc-filter select:focus-visible { outline: 2px solid var(--o); outline-offset: 1px; }
.proc-off-link { margin-left: auto; }
@media (max-width: 700px) { .proc-filter { flex: 1 1 100%; justify-content: space-between; } .proc-filter select { flex: 1; max-width: 220px; } .proc-off-link { margin-left: 0; } }
.proc-stage { margin-bottom: 12px; }
.proc-stage > summary { cursor: pointer; list-style: none; }
.proc-stage > summary::-webkit-details-marker { display: none; }
.proc-stage > summary h2::before { content: '▸'; display: inline-block; width: 16px; color: var(--i3); }
.proc-stage[open] > summary h2::before { content: '▾'; }
.proc-stage:not([open]) > summary { border-bottom: 0; }
.proc-step { display: flex; gap: 12px; padding: 10px 20px; border-top: 1px solid var(--b3); border-left: 3px solid transparent; }
.proc-steps .proc-step:first-child { border-top: 0; }
.proc-step.k-client, .proc-step.k-approval { border-left-color: var(--o); }
.proc-step.k-invoice { border-left-color: var(--pos); }
.proc-step.closed .proc-title { color: var(--i3); }
.proc-tick { flex: none; width: 26px; height: 26px; border: 2px solid var(--b2); border-radius: 5px; background: var(--panel); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; cursor: pointer; margin-top: 1px; }
.proc-tick:hover { border-color: var(--pos); }
.proc-tick.on { background: var(--pos); border-color: var(--pos); }
.proc-tick.ro { cursor: default; border-style: dashed; }
.proc-tick.ro.on { border-style: solid; }
.proc-main { flex: 1; min-width: 0; }
.proc-titlerow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.proc-titlerow .proc-link { flex: none; }
.proc-title { font-size: 15px; line-height: 1.35; min-width: 0; }
.proc-rev .proc-link { font-size: 13px; }
.proc-rev .proc-del { color: var(--neg); }
.proc-meta { display: flex; gap: 6px 12px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--i3); margin-top: 4px; }
/* What the portal already knows about a step (lib/process.js evidence): borne out, or a tick it doesn't bear out. */
.proc-ev { font-size: 13px; color: var(--i3); margin-top: 3px; }
.proc-ev.ok { color: var(--pos, #2F7D4F); }
.proc-ev.bad { color: var(--neg); font-weight: 600; }
.proc-ms { color: var(--ot-fg); font-weight: 600; }
.proc-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.proc-appr { margin-top: 8px; font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.proc-rev { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.proc-panel { margin-top: 8px; }
.proc-panel input[type=text] { width: 100%; margin-top: 4px; }
.proc-draft { width: 100%; font-size: 14px; line-height: 1.45; }
/* The Process tab's parts: AV, Lighting (process.js). */
/* The sub-switch (design principle, James, 11 Oct 2026): switching between views or
   sections inside a page (Process AV/Lighting, Site's parts, Documents' folders, Forecast's
   view, Leave's teams, Reports' quarter) is this rounded switch, never the boxed tab buttons
   used for a page's own tabs: a soft track, the chosen side a raised pill. Buttons inside
   it carry aria-pressed. Choices inside a form (Major or Minor) stay segmented buttons. */
.subswitch { display: inline-flex; flex: none; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 22px; background: var(--b3); box-shadow: inset 0 0 0 1px var(--b1); max-width: 100%; }
.subswitch button { border: 0; background: none; color: var(--i3); font: inherit; font-size: 14px; font-weight: 600; padding: 6px 18px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s; }
.subswitch button:hover { color: var(--ink); }
.subswitch button[aria-pressed=true] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(16, 24, 40, .16), 0 0 0 1px var(--b1); }
.subswitch button:focus-visible { outline: 2px solid var(--o); outline-offset: 1px; }
.subswitch button .small { font-weight: 400; color: var(--i4); margin-left: 4px; }
.subswitch button:disabled { opacity: .5; cursor: default; }
@media (max-width: 520px) { .subswitch button { padding: 6px 12px; } }
.proc-tracks { margin-bottom: 14px; }
/* Support: the department above (Tickets and the overview), then Tickets' queues. */
.tk-depts { display: inline-flex; margin: 0; }
.tk-queues { display: inline-flex; margin: 0; }
/* The queues with whose tickets beside them, then the department's statuses (Phil, 14 Oct 2026). */
.tk-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 10px; }
.tk-row .tk-queues { max-width: 100%; }
.tk-stats { display: inline-flex; margin: 0; }
.tk-row.tk-bar { margin-bottom: 12px; flex-wrap: nowrap; align-items: flex-start; }
.tk-row.tk-bar > .subswitch { flex: 0 1 auto; min-width: 0; }
.tk-row.tk-stbar { margin-bottom: 16px; }
/* Arrange a bar: its order, and which show (each person's own). Quiet until it's wanted. */
.bar-arrange { flex: none; align-self: center; width: 30px; height: 30px; border-radius: 50%; border: 0; background: none; color: var(--i4); font-size: 15px; cursor: pointer; opacity: .55; }
.bar-arrange:hover, .bar-arrange:focus-visible { opacity: 1; background: var(--b3); color: var(--ink); }
.tk-stats button.none { color: var(--i4); }
/* Tickets' filter panel (tickets.js filterRow; Phil, 5 Nov 2026: "looks quite messy"): Department, Queue and Status
   as labelled rows, each switch starting at the same place and each ⇅ in the same column at the right, the rows a
   step smaller as they narrow down, so it reads top to bottom as one set of choices rather than three loose bars. */
.tk-filters { display: flex; flex-direction: column; margin: 0 0 16px; padding: 4px 6px 4px 14px; background: var(--panel); border: 1px solid var(--b1); border-radius: 12px; }
.tk-frow { display: grid; grid-template-columns: 92px minmax(0, 1fr) 30px; gap: 10px; align-items: center; padding: 6px 0; }
.tk-frow + .tk-frow { border-top: 1px solid var(--b1); }
.tk-flab { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--i4); }
.tk-fsw { min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tk-fsw > .subswitch { margin: 0; }
.tk-frow .bar-arrange { justify-self: end; }
/* People at the far end of the Queue row, its list opening leftwards. */
.tk-fsw > .tk-who { margin-left: auto; }
.tk-fsw > .tk-who .tk-who-pop { left: auto; right: 0; }
/* The statuses are the longest list, so a size down: most departments' fit on one line. */
.tk-fsw > .tk-stats button { font-size: 13px; padding: 5px 12px; }
/* Tickets' top kept tight (Phil, 13 Nov 2026: "can the top be shifted up to make more room"): less room round the
   heading, when it was checked beside it, the folder tabs nearer, and the panel's rows slimmer. Every switch stays. */
.page-head.tk-head { padding-top: 10px; padding-bottom: 10px; gap: 8px 16px; }
.tk-head > .grow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.tk-head h1 { font-size: 20px; white-space: nowrap; }
.tk-head .sub { font-size: 13px; margin-top: 0; white-space: nowrap; }
.tk-hbtns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tk-hbtns > .subswitch button { padding: 6px 14px; }
/* The department dropdown in a Support page's heading (tickets.js deptSwitch; Tickets and the Dashboard, 16 Nov 2026),
   with Tickets' ⇅ beside it, and People's list opening leftwards from the heading's right. */
/* A ticket the client has written on since you last opened it (tickets.js isNew): its subject bold, with a blue dot, as
   Desk shows an unread one; the rest a weight lighter, so the bold ones stand out (Phil, 16 Nov 2026). */
.tk-list .tr.click .nm, .tk-bcard .tk-btop b { font-weight: 400; }
.tk-list .tr.tk-new .nm, .tk-bcard.tk-new .tk-btop b { font-weight: 800; }
.tk-newdot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--blue-fg); vertical-align: 1px; }
.dept-pick { display: inline-flex; align-items: center; gap: 2px; }
.dept-pick select { width: auto; min-width: 140px; max-width: 220px; font-weight: 600; }
/* Department, People and Search (tickets.js .tk-hpick) sit by the title when the heading has room for them and the
   buttons on one line; when it hasn't (a laptop), they drop to one row of their own under the title, the buttons staying
   beside it (James, 16 Nov 2026: they'd stacked in a narrow column, so the list started lower). 1320px is what the
   title, the three and the buttons take on one line. */
#viewTickets { container: tkview / inline-size; }
.page-head.tk-head > .grow { flex: 0 1 auto; align-items: center; }
.tk-hpick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.page-head.tk-head > .tk-hbtns { margin-left: auto; }
@container tkview (max-width: 1320px) {
  .page-head.tk-head > .tk-hbtns { order: 1; }
  .page-head.tk-head > .tk-hpick { order: 2; flex: 1 0 100%; }
  /* When it was checked goes under the title here, so the buttons keep to one line beside it: with New ticket (#749)
     there were only 19px to spare at 1100px, and "Checked 19 Nov, 09:42" (not today) is about 50px longer than
     "Checked 09:42", so Check again and ⚙ dropped to a line of their own (James, 19 Nov 2026). */
  .page-head.tk-head > .grow { flex-direction: column; align-items: flex-start; gap: 0; }
  .page-head.tk-head > .grow h1 { line-height: 1.15; }
  .page-head.tk-head > .grow .sub { line-height: 1.2; }
}
/* People looks as Department's dropdown beside it does: the same box, words and arrow (Phil, 16 Nov 2026). */
.tk-who > summary.tk-who-sel { display: block; width: auto; min-width: 140px; max-width: 220px; line-height: 38px; padding: 0 30px 0 10px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background-repeat: no-repeat; background-position: right 12px center; background-size: 9px 5px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0h10L5 6z' fill='%238b919b'/%3E%3C/svg%3E"); }
.tk-who > summary.tk-who-sel:focus-visible, .tk-who[open] > summary.tk-who-sel { border-color: var(--o); outline: none; }
#viewTickets > .sup-tabs { margin-top: 10px; }
#viewTickets > .sup-tabs + .page-body { padding-top: 12px; }
#viewTickets .tk-filters { margin-bottom: 10px; padding-top: 2px; padding-bottom: 2px; }
#viewTickets .tk-frow { padding: 3px 0; }
.tk-fsw > .subswitch button { font-size: 13px; padding: 4px 12px; }
.tk-fsw > .tk-who > summary { padding-top: 4px; padding-bottom: 4px; font-size: 13px; }
/* Tickets ⚙'s parts in two labelled sets: Just you (Your view), and For everyone (tickets.js drawSetup). */
.tk-setparts { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: flex-end; margin: 4px 0; }
.tk-setgrp { display: flex; flex-direction: column; gap: 3px; min-width: 0; max-width: 100%; }
@media (max-width: 700px) {
  .tk-filters { padding: 4px 4px 4px 10px; }
  .tk-frow { grid-template-columns: minmax(0, 1fr) 30px; gap: 4px 6px; }
  .tk-flab { grid-column: 1 / -1; }
}
.tk-who { position: relative; }
.tk-who > summary { list-style: none; cursor: pointer; }
.tk-who > summary::-webkit-details-marker { display: none; }
.tk-who-pop { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 240px; max-height: 320px; overflow-y: auto; background: var(--panel); border: 1px solid var(--b1); border-radius: 8px; box-shadow: 0 8px 24px rgba(16, 24, 40, .16); padding: 8px 12px; display: flex; flex-direction: column; gap: 6px; }
.tk-who-pop .sf-check { white-space: nowrap; }
/* Tickets as a board, a column for each status (tickets.js boardHtml; Phil, 25 Oct 2026). The board scrolls
   sideways by itself, so the page never gets wider than the screen. Each column is as long as its tickets and the
   page scrolls down, not the column (Phil, 5 Nov 2026: "the area that has been created for the tickets is quite
   short, so you then have to scroll down within the section"). The columns share out the width there is, so a few
   statuses fill the screen rather than leave it empty (Phil, 30 Oct 2026). */
.page-body.tk-wide { max-width: none; }
.page-body.lds-wide { max-width: none; } /* the lighting schedule's sheet, the window's width (Nicolai, 17 Nov 2026) */
.tk-board { position: relative; display: flex; gap: 12px; align-items: flex-start; overflow-x: auto; overflow-y: hidden; padding-bottom: 10px; max-width: 100%; overscroll-behavior-x: contain; }
.tk-bcol { flex: 1 0 280px; min-width: 0; display: flex; flex-direction: column; background: var(--b3); border-radius: 10px; border-top: 3px solid var(--blue-fg); }
.tk-bcol.hold { border-top-color: var(--amber-fg); }
.tk-bcol.done { border-top-color: var(--pos); }
.tk-bhead { margin: 0; padding: 10px 12px 8px; font-size: 14px; display: flex; gap: 6px; align-items: baseline; cursor: grab; user-select: none; }
.tk-bhead .small { font-weight: 400; color: var(--i3); }
/* A column's handle: drag it (or its heading with a mouse), or the arrow keys, to move the column (tickets.js wireBoard).
   The board is position: relative so each column's offsetLeft is in the board's own terms, whatever its scroll. */
.tk-bgrip { flex: none; align-self: center; border: 0; background: none; padding: 2px 4px; margin-left: -4px; border-radius: 4px; color: var(--i3); font-size: 15px; line-height: 1; cursor: grab; touch-action: none; }
.tk-bgrip:hover, .tk-bgrip:focus-visible { color: var(--i2); background: var(--b2); }
.tk-bgrip:focus-visible { outline: 2px solid var(--o); outline-offset: 1px; }
.tk-bcol.tk-bdrag { position: relative; z-index: 2; opacity: .85; box-shadow: 0 10px 28px rgba(16, 24, 40, .22); }
.tk-board.tk-bdragging, .tk-board.tk-bdragging * { cursor: grabbing; user-select: none; }
.tk-bcards { display: flex; flex-direction: column; gap: 8px; padding: 0 8px 8px; }
.tk-bnone { padding: 4px 4px 8px; }
.tk-bcard { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; background: var(--panel); border: 1px solid var(--b1); border-radius: 8px; color: inherit; text-decoration: none; }
.tk-bcard:hover { border-color: var(--b2); box-shadow: 0 2px 8px rgba(16, 24, 40, .08); }
.tk-bcard:hover b { color: var(--link); }
.tk-bcard:focus-visible { outline: 2px solid var(--o); outline-offset: 1px; }
.tk-btop { display: flex; gap: 8px; align-items: flex-start; }
.tk-btop b { font-size: 14px; line-height: 1.35; font-weight: 600; overflow-wrap: anywhere; }
.tk-bav { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--o); color: #fff; }
.tk-bav.none { background: var(--b3); color: var(--i4); }
.tk-bfoot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
@media (max-width: 700px) { .tk-bcol { flex-basis: 250px; } }
/* A status with no tickets: a narrow strip at the board's end, its name upright, as Desk's board (13 Nov 2026). */
.tk-bcol.tk-bempty { flex: 0 0 40px; align-self: stretch; min-height: 140px; }
.tk-bempty .tk-bhead { writing-mode: vertical-rl; padding: 12px 0; align-items: center; cursor: default; font-size: 13px; font-weight: 600; color: var(--i3); white-space: nowrap; }
/* A job sheet's Quote card: an item a line (jobsheets.js quoteCard). */
.js-qitems { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.js-qrow { display: grid; grid-template-columns: 1fr 1fr 1.4fr 72px 1.6fr auto; gap: 6px; align-items: center; min-width: 0; }
.js-qrow > * { min-width: 0; }
@media (max-width: 700px) { .js-qrow { grid-template-columns: 1fr 1fr; } .js-qrow [data-qi="model"], .js-qrow [data-qi="note"] { grid-column: span 2; } }
/* A survey item's Quote tick (surveys.js quoteTick), and the client as picked from CRM. */
.sv-qt { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--i3); margin-right: 6px; white-space: nowrap; }
.sv-crm-on { margin: 8px 0 0; }
/* Records → Quote requests (quotereqs.js): a line a row, wrapping on a phone. */
.qrq-list { display: flex; flex-direction: column; gap: 10px; }
.qrq-line { display: grid; grid-template-columns: 28px minmax(160px, 1.6fr) 1fr 70px 1.1fr 1.3fr; gap: 6px 10px; align-items: end; padding: 10px 0; border-top: 1px solid var(--b1); min-width: 0; }
.qrq-line > * { min-width: 0; }
.qrq-line:first-child { border-top: 0; }
.qrq-line.off { opacity: .55; }
.qrq-on { align-self: center; }
.qrq-what { align-self: center; }
.qrq-sku { display: flex; gap: 4px; }
.qrq-sku .f-in { flex: 1; min-width: 0; }
.qrq-how, .qrq-new { grid-column: 2 / -1; font-size: 13px; }
.qrq-how:empty { display: none; }
.qrq-ok { color: var(--pos, #2e9e6b); }
.qrq-bad { color: var(--neg); }
@media (max-width: 860px) {
  .qrq-line { grid-template-columns: 28px 1fr 1fr; }
  .qrq-what, .qrq-cat, .qrq-skul { grid-column: 2 / -1; }
  .qrq-room { grid-column: 2; }
  .qrq-qty { grid-column: 3; }
}
/* Records → New job sheet: a visit a row (jobsheets.js newSheet). */
.jsn-row { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0 0 8px; padding: 10px 12px; text-align: left; font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--b1); border-radius: 8px; cursor: pointer; }
.jsn-row:hover, .jsn-row:focus-visible { border-color: var(--o); }
.jsn-row:disabled { opacity: .6; cursor: default; }
/* Remote systems: search every system from any tab (systems.js frame). */
.oc-tabs { margin: 0 0 18px; }
/* Finance → Overview (finance.js): its 12 months' figures, every other one on a phone, so they don't run together. */
/* Its bars all the same length, whatever the figure beside them. */
.fin-bars .sw-hrow { grid-template-columns: minmax(90px, 34%) 1fr 8.5em; }
.fin-bars .sw-hv { text-align: right; }
@media (max-width: 600px) { .fin-cols .sw-col:nth-child(even) .sw-colv { visibility: hidden; } }
/* Support: the manager's view (supportmanager.js). */
/* Cards stacked in two columns with no gaps under the shorter ones, as the Overview does. */
.sm-grid { columns: 2 420px; column-gap: 16px; }
.sm-card { break-inside: avoid; display: inline-block; width: 100%; margin: 0 0 16px; }
.sm-alerts { display: flex; flex-direction: column; }
.sm-alert { display: flex; align-items: center; gap: 10px; padding: 10px 20px; border: 0; border-top: 1px solid var(--b4); background: none; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; width: 100%; }
.sm-alert:hover { background: var(--row); }
.sm-alert .grow { flex: 1; }
.sm-go { color: var(--i4); }
.sm-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--i4); }
.sm-dot.bad { background: var(--neg); }
.sm-dot.warn { background: var(--o); }
.sm-dot.ok { background: var(--pos); }
.sm-list { display: flex; flex-direction: column; }
.sm-line { display: flex; align-items: center; gap: 12px; padding: 9px 20px; border-top: 1px solid var(--b4); color: inherit; text-decoration: none; }
a.sm-line:hover { background: var(--row); }
.sm-line .grow { flex: 1; min-width: 0; }
.sm-right { text-align: right; flex: none; font-variant-numeric: tabular-nums; }
.sm-bad { color: var(--neg); }
.sm-sub { padding: 12px 20px 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--i3); border-top: 1px solid var(--b4); }
.sm-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.sm-figs > div { display: flex; flex-direction: column; gap: 2px; }
.sm-figs b { font-size: 18px; font-variant-numeric: tabular-nums; }
.sm-tiers { display: flex; flex-wrap: wrap; gap: 6px; }
.vs-sheet { margin-top: 4px; font-size: 12.5px; }
/* A completed work order, actioned here: check, invoice, close (visits.js woDialog). */
.wo-dlg { width: min(640px, calc(100vw - 32px)); padding: 18px 22px; max-height: calc(100dvh - 48px); overflow: auto; }
.wo-step { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--b4); }
.wo-step .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.wo-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--b3); color: var(--i2); }
.wo-step.done .wo-n { background: var(--green-bg); color: var(--green-fg); }
.wo-lines .wo-l { grid-template-columns: minmax(0, 1fr) 90px minmax(0, 120px); padding: 6px 10px; font-size: 13px; }
.wo-lines .wo-l > :first-child { overflow-wrap: break-word; } /* a part's name wraps at its spaces, not mid-word */
.wo-v { display: flex; flex-direction: column; gap: 3px; padding: 6px 0; }
.wo-v + .wo-v { border-top: 1px dashed var(--b4); }
/* Why a visit couldn't be completed (visits.js woWhy; Phil, 30 Oct 2026). */
.wo-why { padding: 6px 10px; border-left: 3px solid var(--amber-fg); background: var(--amber-bg, var(--b3)); border-radius: 0 6px 6px 0; }
.wo-ans { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 12px; margin: 2px 0; }
.wo-ans dt { color: var(--i3); }
.wo-ans dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.wo-edit .wo-e { grid-template-columns: minmax(0, 1fr) 70px 96px 118px 84px; gap: 8px; align-items: center; padding: 6px 10px; font-size: 13px; }
.wo-off { display: flex; gap: 4px; }
.wo-edit .wo-off input.f-in { flex: 1; min-width: 0; width: auto; }
.wo-edit .wo-off select.f-in { width: 50px; flex: none; padding-inline: 6px; }
.wo-addh { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; }
.wo-add #woPartDesc { flex: 1; min-width: 160px; }
.wo-edit .wo-e.sub > div:first-child { padding-left: 14px; }
.wo-edit .wo-e .f-in { width: 100%; min-width: 0; }
.wo-dlg .tr { min-width: 0; }
.wo-dlg .js-dlg { min-width: 0; }
.wo-edit .wo-e label { display: flex; flex-direction: row; align-items: center; gap: 6px; }
.wo-dlg .neg { color: var(--neg); }
.wo-add { flex-wrap: wrap; }
.wo-add #woPart { flex: 1; min-width: 180px; }
.wo-pdf { width: 100%; height: min(70vh, 640px); border: 1px solid var(--b4); border-radius: 8px; background: #fff; }
.wo-cancel summary { cursor: pointer; }
.wo-cancel[open] { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 560px) {
  .wo-edit .wo-e { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .wo-edit .wo-e > div:first-child { grid-column: 1 / -1; }
  .wo-ans { grid-template-columns: minmax(0, 1fr); }
  .wo-dlg { padding: 14px 16px; --pin-pad: 14px; }
}
.vk-vans { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 14px; }
/* Tune-ups: each stop's time can be changed, and stops moved between days. */
.tu-stops li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tu-stops .tu-time { width: 96px; padding: 4px 6px; }
.tu-stops .tu-who { flex: 1; min-width: 180px; }
.tu-add { margin-top: 8px; }
.tu-add select { max-width: 100%; }
.wo-row { grid-template-columns: minmax(0, .8fr) minmax(0, 1.8fr) minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, 1fr) auto; min-width: 700px; }
.wo-row > div { min-width: 0; }
.proc-off { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
@media (prefers-reduced-motion: reduce) { .subswitch button { transition: none; } }

/* A design revision's major changes: used of included (process.js). */
.proc-major { margin-top: 6px; color: var(--i3); font-weight: 600; }
.proc-major.over { color: var(--neg); }

/* The contact list under To, Cc and Bcc (process.js contactPicker): under the box, always. */
.cp { position: relative; }
.cp .f-in { padding-right: 34px; }
.cp-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: 0; border-radius: 4px; background: none; color: var(--i3); font-size: 12px; cursor: pointer; }
.cp-btn:hover { background: var(--b4); color: var(--ink); }
.cp-menu { position: absolute; left: 0; right: 0; top: calc(100% + 2px); z-index: 40; list-style: none; margin: 0; padding: 4px; max-height: 240px; overflow-y: auto;
  background: var(--panel); border: 1px solid var(--b2); border-radius: 6px; box-shadow: var(--shadow); }
.cp-menu li { padding: 7px 10px; border-radius: 4px; cursor: pointer; font-size: 14px; font-weight: 400; color: var(--ink); display: flex; flex-wrap: wrap; gap: 0 8px; }
.cp-menu li span { color: var(--i3); }
.cp-menu li:hover, .cp-menu li.on { background: var(--ot); }
/* A video call on a booking or event, and the address search's credit (calls.js). */
.vc-place > input { width: 100%; box-sizing: border-box; }
.vc-note { margin: 4px 0 0; color: var(--i3); }
.vc-note:empty { display: none; }
.cp-menu li.vc-by { cursor: default; font-size: 11px; color: var(--i3); justify-content: flex-end; padding: 2px 8px; }
.cp-menu li.vc-by:hover { background: none; }
/* select.js: every dropdown opens the list above, with a search box when it's long, and has the same ▾. */
select:not([multiple]):not([size]):not([data-native]) { -webkit-appearance: none; appearance: none; padding-right: 30px; background-repeat: no-repeat; background-position: right 12px center; background-size: 9px 5px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0h10L5 6z' fill='%238b919b'/%3E%3C/svg%3E"); }
.hs { position: fixed; z-index: 1000; padding: 4px; background: var(--panel); border: 1px solid var(--b2); border-radius: 6px; box-shadow: var(--shadow); }
.hs .hs-q { height: 34px; margin-bottom: 4px; }
/* On a phone or iPad: rows big enough for a finger, and 16px to type in, or an iPhone zooms in on the box. */
@media (pointer: coarse) {
  .hs .hs-q { height: 40px; font-size: 16px; }
  .hs .hs-list li { padding: 10px 12px; font-size: 15px; }
}
/* Not the supplier box's offset under its box: some browsers would push the list a whole box down. */
/* A long name wraps beside its dot, the dot level with the first line (not on a line of its own, as .cp-menu li's wrap
   put it). */
.hs .hs-list li { flex-wrap: nowrap; line-height: 1.35; }
.hs .hs-dot { display: inline-block; width: 9px; height: 9px; margin: calc(.675em - 4.5px) 7px 0 0; border-radius: 50%; vertical-align: middle; align-self: flex-start; flex: none; }
.hs .hs-list { position: relative; inset: auto; max-height: 280px; border: 0; box-shadow: none; padding: 0; background: none; }
.hs-list li[aria-selected="true"] { font-weight: 700; }
.hs-list li[aria-disabled="true"] { color: var(--i4); cursor: default; }
.hs-list .hs-group { padding: 8px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--i3); cursor: default; }
.hs-list .hs-none { color: var(--i3); cursor: default; }
.hs-list .hs-group:hover, .hs-list .hs-none:hover { background: none; }
/* datepick.js: every date box opens the portal's own calendar, so the browser's own button goes and a calendar mark stands in
   (not in Firefox, which keeps a button of its own that can't be hidden). */
input[type=date]:not([data-native])::-webkit-calendar-picker-indicator { display: none; }
/* An iPhone gives a date box a width of its own, wider than half a phone, and a taller box when it's empty: it fits its
   column and matches the boxes beside it, like any other. */
input[type=date]:not([data-native]) { -webkit-appearance: none; appearance: none; min-width: 0; }
input[type=date]:not([data-native])::-webkit-date-and-time-value { text-align: left; min-height: 1.2em; }
@supports not (-moz-appearance: none) {
  input[type=date]:not([data-native]) { padding-right: 30px; background-repeat: no-repeat; background-position: right 10px center; background-size: 13px 13px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' fill='none' stroke='%238b919b' stroke-width='1.4'%3E%3Crect x='1' y='2.2' width='11' height='10' rx='1.5'/%3E%3Cpath d='M1 5.5h11M4 .5v3M9 .5v3'/%3E%3C/svg%3E"); }
}
.dp { position: fixed; z-index: 1000; width: 272px; padding: 8px; background: var(--panel); border: 1px solid var(--b2); border-radius: 6px; box-shadow: var(--shadow); color: var(--ink); }
.dp-head { display: flex; align-items: center; gap: 2px; margin-bottom: 4px; }
.dp-title { flex: 1; text-align: center; font-size: 14px; }
.dp-nav, .dp-day, .dp-link { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; border-radius: 4px; }
.dp-nav { width: 30px; height: 30px; font-size: 16px; color: var(--i2); }
.dp-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.dp-grid th { font-size: 11px; font-weight: 600; color: var(--i3); padding: 4px 0; text-align: center; }
.dp-grid td { padding: 1px; text-align: center; }
.dp-day { width: 100%; height: 32px; font-size: 13px; }
.dp-we { color: var(--i3); }
.dp-out { color: var(--i5); }
.dp-today { box-shadow: inset 0 0 0 1px var(--o); font-weight: 700; }
.dp-nav:hover, .dp-day:hover, .dp-day.on, .dp-link:hover { background: var(--ot); }
.dp-day.dp-sel, .dp-day.dp-sel:hover { background: var(--o); color: #14161A; font-weight: 700; }
.dp-day:disabled, .dp-link:disabled { color: var(--i5); background: none; cursor: default; text-decoration: line-through; }
.dp-link:disabled { text-decoration: none; }
.dp-foot { display: flex; justify-content: space-between; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--b3); }
.dp-link { padding: 6px 10px; font-size: 13px; font-weight: 600; color: var(--o); }
/* On a phone or iPad: days big enough for a finger. */
@media (pointer: coarse) {
  .dp { width: 304px; }
  .dp-day { height: 40px; font-size: 15px; }
  .dp-nav { width: 40px; height: 40px; }
  .dp-link { padding: 10px 12px; font-size: 15px; }
}

/* Attachments on a draft (process.js) and a template's files (projsettings.js). */
.proc-files { margin-top: 8px; }
.proc-files-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.proc-files-h .btn { cursor: pointer; }
.proc-flist { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.proc-flist li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.proc-flist label { display: inline-flex; align-items: center; gap: 6px; }
.proc-ferr { color: var(--neg); }

/* Projects settings (projsettings.js): stages and steps on the left, the one being changed on the right. */
.ps-dlg { width: min(1120px, calc(100vw - 32px)); }
.ps { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow: hidden; }
.ps-head { display: flex; align-items: center; gap: 8px; }
.ps-head h2 { margin: 0; flex: 1; font-size: 20px; }
.ps-sec h3 { margin: 0 0 2px; font-size: 16px; }
.ps-sec p { margin: 0; }
.ps-grid { display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); gap: 16px; min-height: 0; flex: 1; }
.ps-nav, .ps-edit { overflow-y: auto; min-height: 0; max-height: calc(100dvh - 230px); }
.ps-nav { border-right: 1px solid var(--b1); padding-right: 12px; display: flex; flex-direction: column; gap: 10px; }
.ps-st ol { list-style: none; margin: 2px 0 0; padding: 0 0 0 10px; border-left: 2px solid var(--b3); }
.ps-nav button.ps-stname, .ps-nav button.ps-step { display: block; width: 100%; text-align: left; border: 0; background: none; color: var(--ink); font: inherit; padding: 5px 8px; border-radius: 4px; cursor: pointer; }
.ps-nav button.ps-stname { font-weight: 700; }
.ps-nav button.ps-step { font-size: 13px; color: var(--i2); }
.ps-nav button:hover { background: var(--b4); }
.ps-nav button.on { background: var(--ot); color: var(--ot-fg); }
.ps-nav button:focus-visible { outline: 2px solid var(--o); outline-offset: -2px; }
.ps-tag { font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 9px; background: var(--b3); color: var(--i3); }
.ps-ico { font-size: 11px; color: var(--i4); }
.ps-add { border: 0; background: none; color: var(--link); font: inherit; font-size: 13px; padding: 4px 8px 0 18px; cursor: pointer; }
.ps-addstage { align-self: flex-start; }
.ps-edit h3 { margin: 0 0 10px; font-size: 16px; }
.ps-edit h4 { margin: 0 0 8px; font-size: 15px; }
.ps-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.ps-form label, .ps-tpl > label { display: flex; flex-direction: column; gap: 3px; font-size: 13px; font-weight: 600; color: var(--i2); }
.ps-form .ps-wide, .ps-form .ps-check, .ps-tpl .ps-wide { grid-column: 1 / -1; }
.ps-dlg label.ps-check { flex-direction: row; align-items: baseline; gap: 6px; font-weight: 400; color: var(--ink); }
.ps-dlg label.ps-check { flex-wrap: wrap; }
.ps-dlg label.ps-check .small { flex-basis: 100%; padding-left: 22px; }
.ps-dlg label.ps-inline { flex-direction: row; align-items: center; gap: 6px; font-weight: 400; color: var(--ink); font-size: 13px; }
.ps-inline select { width: auto; height: 32px; }
.ps-tpl { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--b1); display: flex; flex-direction: column; gap: 8px; }
.ps-tplbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ps-src { font-family: ui-monospace, Consolas, monospace; font-size: 13px; min-height: 220px; }
.ps-tpl .proc-link { align-self: flex-start; }
.ps-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--b1); }
.ps-row .spacer, .ps-acts .spacer { flex: 1; }
.ps-del { color: var(--neg); }
.ps-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (max-width: 760px) {
  .ps { overflow-y: auto; }
  .ps-grid { grid-template-columns: minmax(0, 1fr); flex: none; }
  .ps-acts { position: sticky; bottom: -18px; margin: 0 -20px -18px; padding: 10px 20px 14px; background: var(--panel); border-top: 1px solid var(--b1); }
  .ps-nav, .ps-edit { max-height: none; overflow: visible; }
  .ps-nav { border-right: 0; border-bottom: 1px solid var(--b1); padding: 0 0 12px; }
  .ps-form { grid-template-columns: minmax(0, 1fr); }
}

/* A draft's message box, with formatting buttons (process.js). */
.proc-rich { border: 1px solid var(--b2); border-radius: 4px; background: var(--panel); }
.proc-rich:focus-within { border-color: var(--o); }
.proc-tools { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-bottom: 1px solid var(--b3); }
.proc-tools button { min-width: 32px; height: 30px; padding: 0 8px; border: 0; border-radius: 4px; background: none; color: var(--i2); font-size: 13px; cursor: pointer; }
.proc-tools button:hover { background: var(--b4); color: var(--ink); }
.proc-tools button[aria-pressed="true"] { background: var(--ot); color: var(--ot-fg); }
.proc-tools button:focus-visible { outline: 2px solid var(--o); outline-offset: -2px; }
.proc-tools select { height: 30px; padding: 0 4px; border: 1px solid var(--b2); border-radius: 4px; background: var(--panel); color: var(--ink); font-size: 13px; }
.proc-tools select[data-font] { width: 136px; }
.proc-tools select:focus-visible { outline: 2px solid var(--o); outline-offset: -1px; }
.proc-sep { width: 1px; margin: 4px; background: var(--b2); }
/* The signature picker at the end of the bar (process.js editorHtml withSig). */
.proc-tools .proc-sigrow { display: flex; align-items: center; gap: 6px; margin-left: auto; padding-left: 8px; font-size: 13px; color: var(--i2); }
.proc-tools .proc-sigrow[hidden] { display: none; }
.proc-tools .proc-sigrow select { min-width: 130px; }
/* The message and its signature scroll together, as one email. */
.proc-body { max-height: 420px; overflow-y: auto; cursor: text; }
/* As the email goes (hub_api lib/zmail.js BASE and SIZES): Calibri 10, sizes in points. */
.proc-rich .proc-draft { font-family: Calibri, Carlito, Arial, sans-serif; font-size: 10pt; }
.proc-rich .proc-draft font[size="1"] { font-size: 7pt; }
.proc-rich .proc-draft font[size="2"] { font-size: 8pt; }
.proc-rich .proc-draft font[size="3"] { font-size: 10pt; }
.proc-rich .proc-draft font[size="4"] { font-size: 14pt; }
.proc-rich .proc-draft font[size="5"] { font-size: 18pt; }
.proc-rich .proc-draft font[size="6"] { font-size: 24pt; }
.proc-rich .proc-draft font[size="7"] { font-size: 32pt; }
.proc-rich .proc-draft { min-height: 160px; padding: 8px 10px; color: var(--ink); outline: none; overflow-wrap: anywhere; }
.proc-rich .proc-draft ul, .proc-rich .proc-draft ol { margin: 4px 0; padding-left: 24px; }
.proc-rich .proc-draft a { color: var(--link); }
/* With a signature, the message needs less room: the signature follows a blank line after it, as sent. */
.proc-body.has-sig .proc-draft { min-height: 4.5em; padding-bottom: 0; }
.proc-sig { padding: 1.45em 10px 8px; font-size: 10pt; cursor: default; }
.proc-sig iframe { display: block; width: 100%; height: 90px; border: 0; background: var(--panel); }
@media (max-width: 640px) {
  .proc-step { padding: 10px 12px; }
  .proc-tick { width: 30px; height: 30px; }
}
.proc-link { border: 0; background: none; padding: 4px 2px; color: var(--link); font-size: 13px; cursor: pointer; }
.proc-link:hover { text-decoration: underline; }

/* Forecast */
body:not(.approver) .approver-only { display: none; }
.fc-wrap { overflow-x: auto; }
.fc-t { border-collapse: collapse; width: 100%; font-size: 13px; }
.fc-t th, .fc-t td { padding: 7px 10px; border-bottom: 1px solid var(--b4); white-space: nowrap; }
.fc-t thead th { font-size: 12px; color: var(--i3); font-weight: 700; background: var(--b4); position: sticky; top: 0; }
.fc-t tbody th { text-align: left; font-weight: 600; position: sticky; left: 0; background: var(--panel); min-width: 170px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.fc-t .num { text-align: right; font-variant-numeric: tabular-nums; }
.fc-t .fc-over { color: var(--neg); }
.fc-t .fc-dim { color: var(--i3); }
.fc-t .fc-tot { font-weight: 700; border-left: 1px solid var(--b3); }
.fc-t .fc-neg { color: var(--neg); font-weight: 700; }
.fc-t tr.fc-group th { background: var(--b4); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--i3); }
.fc-t tr.fc-free th, .fc-t tr.fc-free td { font-weight: 700; }
/* A part of the line above it (retention within invoicing): smaller and quieter, indented. */
.fc-t tr.fc-sub th, .fc-t tr.fc-sub td { font-size: 12px; color: var(--i3); font-weight: 400; }
.fc-t tr.fc-sub th { padding-left: 22px; }
/* What reaches the bank: set apart from the net lines above it. */
.fc-t tr.fc-cash th, .fc-t tr.fc-cash td { border-bottom: 1px dashed var(--b3); font-style: italic; }
.fc-t tr.fc-chart th, .fc-t tr.fc-chart td { padding: 16px 10px 8px; border-bottom: 0; background: var(--panel); position: static; vertical-align: bottom; }
.fc-t tr.fc-chart th { position: sticky; left: 0; z-index: 1; }
.fc-bars { height: 130px; display: flex; gap: 2px; align-items: flex-end; justify-content: flex-end; }
.fc-bars i { display: block; width: 40%; max-width: 22px; border-radius: 2px 2px 0 0; min-height: 1px; }
.fc-bars i.inv, .fc-key.inv { background: var(--pos); }
.fc-bars i.kit, .fc-key.kit { background: var(--o); }
.fc-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 10px; vertical-align: -1px; }
.fc-miss { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }

/* On site: task lists, snags, diary (field.js) */
.fl-seg { margin-bottom: 14px; }
.fl-seg .fl-badge { margin-left: 6px; }
.fl-badge { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 9px; background: var(--o); color: var(--ink); font-size: 11px; font-weight: 700; }
.fl-top { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.fl-panel.card { padding: 14px 18px; margin-bottom: 12px; }
/* A room's card in the Inventory (inventory.js). */
.fl-list { margin-bottom: 12px; }
.fl-prog { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--i3); white-space: nowrap; }
.fl-prog i { display: block; width: 90px; height: 6px; border-radius: 3px; background: var(--b4); overflow: hidden; }
.fl-prog b { display: block; height: 100%; background: var(--pos); }
.fl-task { display: flex; gap: 12px; padding: 10px 20px; border-top: 1px solid var(--b3); }
.fl-tick { flex: none; width: 34px; height: 34px; border: 2px solid var(--b2); border-radius: 6px; background: var(--panel); font-weight: 800; font-size: 17px; color: #fff; cursor: pointer; }
.fl-task.st-done .fl-tick { background: var(--pos); border-color: var(--pos); }
.fl-task.st-cant .fl-tick { background: var(--neg); border-color: var(--neg); }
.fl-task.st-done .fl-title { color: var(--i3); text-decoration: line-through; }
.fl-main { flex: 1; min-width: 0; }
.fl-title { border: 0; background: none; padding: 6px 0 0; text-align: left; cursor: pointer; font-size: 15px; line-height: 1.35; color: var(--ink); width: 100%; }
.fl-count { font-size: 12px; color: var(--i3); white-space: nowrap; }
.fl-meta { font-size: 13px; color: var(--i3); margin-top: 3px; }
.fl-task.st-cant .fl-meta { color: var(--neg); }
.fl-more { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.fl-detail { font-size: 14px; color: var(--i2); white-space: pre-wrap; }
.fl-note { font-size: 14px; }
.fl-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fl-del { color: var(--neg); }
/* Site tasks (tasks.js): a room's, phase by phase, on the Site tab; in the booking form; under a booking on My schedule;
   Projects ⚙ → Site tasks. The rows are the fl-task ones above. */
.stk-room { margin-bottom: 12px; }
.stk-phase { padding: 8px 20px 2px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--i3); }
.stk-gone { opacity: .6; }
.fl-task.st-cant .stk-kit { color: var(--i3); }
.stk-desc { display: block; color: var(--i3); }
/* Select on the Tasks page (tasks.js page): a tick box on each task and room, and the bar with what to do with them. */
.stk-sel { display: inline-flex; align-items: center; padding: 0 8px 0 0; }
.stk-sel input { width: 18px; height: 18px; }
.stk-room .card-head .stk-sel { padding-right: 4px; }
.stk-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 14px; margin-bottom: 12px; position: sticky; top: 0; z-index: 2; }
/* More tasks on a booking than its people can work (the booking form and Assign tasks). */
.stk-over { color: var(--neg); }
.fl-top [data-tk-room] { width: auto; max-width: 260px; }
.stk-head { display: flex; align-items: center; min-width: 0; }
/* A room's site tasks on the Rooms page (rooms.js tasksLink). */
.rm-tasks { display: block; margin-top: 8px; text-align: left; }
.rm-rname .rm-tasks { margin-top: 2px; }
.rm-tasks-cant { color: var(--neg); }
.stk-bk-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.stk-bk-acts { display: flex; gap: 8px; }
.stk-bk-filter { margin-top: 8px; }
.stk-bk-room { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.stk-bk-room .stk-phase { padding: 4px 0 0 26px; }
.stk-bk-task { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.stk-bk-room > b + .stk-phase, #fTasks .stk-bk-room .stk-phase { padding-left: 0; }
#fTasks { display: flex; flex-direction: column; gap: 6px; }
/* Assign site tasks (tasks.js assignPopup): the project's, ticked, a room at a time or one by one. */
.stk-pick { display: flex; flex-direction: column; }
.stk-pick .stk-bk-room .stk-phase { padding: 4px 0 0 26px; }
.stk-pk-task { align-items: flex-start; padding-left: 22px; }
#fTasks p { margin: 4px 0 0; }
.my-tasks { display: flex; flex-direction: column; }
.my-tasks + .my-snags-h { margin-top: 8px; }
.my-tasks .fl-task { padding: 10px 0; }
.my-tasks .stk-phase { padding: 4px 0 0; }
.stk-mine-room { font-weight: 600; font-size: 14px; margin-top: 8px; }
.stk-kind .stk-tpl-row { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.stk-tpl-row select { flex: 0 0 170px; }
.stk-tpl-row input { flex: 1; min-width: 0; }
@media (max-width: 520px) { .stk-phase { padding-left: 12px; } .stk-tpl-row { flex-wrap: wrap; } .stk-tpl-row select { flex: 1 1 100%; } }
.fl-photos { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0; }
.fl-thumb { width: 72px; height: 72px; padding: 0; border: 1px solid var(--b2); border-radius: 6px; overflow: hidden; background: var(--b4); cursor: zoom-in; }
.fl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fl-add { width: 72px; height: 72px; border: 2px dashed var(--b2); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--i3); cursor: pointer; text-align: center; }
.fl-add:hover { border-color: var(--o); color: var(--ink); }
.fl-snag, .fl-diary { padding: 12px 20px; border-top: 1px solid var(--b3); }
/* The booking a snag is on (field.js snagRow). */
.fl-onbk { color: var(--i2); }
/* RFIs (field.js): the answer stands out; overdue ones are marked; the email checked before it goes. */
.fl-send { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; padding: 14px; border: 1px solid var(--b2); border-radius: 6px; background: var(--row); }
.fl-send h3 { margin: 0; font-size: 15px; }
.fl-attached { color: var(--i2); }
.fl-attach-h { margin-top: 4px; }

.fl-rfi.over { box-shadow: inset 3px 0 0 var(--neg); }
.fl-answer { margin-top: 6px; padding: 8px 12px; border-radius: 6px; background: var(--green-bg); color: var(--ink); font-size: 14px; white-space: pre-wrap; }
.fl-files { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; margin: 8px 0; }
.fl-files .btn { cursor: pointer; }
.fl-row { display: flex; gap: 12px; flex-wrap: wrap; }
.fl-row label.small { flex: 1; min-width: 160px; }
.fl-form label.small.fl-check { flex-direction: row; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.fl-pick .btn { cursor: pointer; }
.fl-snag .fl-title { padding: 0; }
.fl-snag.st-fixed .fl-title b { color: var(--i3); }
.fl-diary-h { margin-bottom: 4px; }
.fl-form { display: flex; flex-direction: column; gap: 10px; }
.fl-form label.small { display: flex; flex-direction: column; gap: 4px; }
.fl-who { margin-top: 6px; }
.fl-viewer { position: fixed; inset: 0; background: rgba(10,12,16,.85); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.fl-viewer-in { max-width: 100%; max-height: 100%; display: flex; flex-direction: column; gap: 10px; }
.fl-viewer-in img { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; border-radius: 4px; background: #222; }
.fl-viewer-pic { position: relative; display: flex; justify-content: center; }
.fl-viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; font-size: 30px; line-height: 40px; cursor: pointer; }
.fl-viewer-nav.prev { left: 8px; }
.fl-viewer-nav.next { right: 8px; }
.fl-viewer-nav:hover { background: rgba(0,0,0,.75); }
.fl-viewer-nav:disabled { opacity: .25; cursor: default; }
.fl-viewer-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: #fff; font-size: 13px; }
.fl-viewer-bar span { flex: 1; }
@media (max-width: 640px) {
  .fl-task { padding: 10px 12px; }
  .fl-snag, .fl-diary { padding-left: 12px; padding-right: 12px; }
  .fl-tick { width: 40px; height: 40px; }
}

/* ---------------------------------------------------------------- phone planner (5 Oct 2026)
   One scroller: the page stays put and the planner fills the screen under a compact toolbar,
   so a swipe never has to choose between moving the page and moving the planner. */
.more-btn { display: none; }
@media (max-width: 860px) {
  .more-btn { display: inline-block; }
  .top .brand { display: none; }
  .tools .more-group, .tools .more-item { display: none; }
  body.tools-open .tools .more-group { display: flex; }
  body.tools-open .tools .more-item { display: inline-block; }
  body.on-planner { height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
  body.on-planner .app-main { flex: 1; min-height: 0; height: auto; display: flex; flex-direction: column; }
  body.on-planner #viewPlanner { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  body.on-planner .planner { height: auto; flex: 1; min-height: 0; }
  /* Days settle on a column edge; the bottom row can be scrolled clear of the browser's bars. */
  .planner { overscroll-behavior: contain; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .planner .cols .day { scroll-snap-align: start; }
  .planner .grid { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  /* The booking form comes up from the bottom, with Save always in reach. */
  dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 14px 14px 0 0; }
  dialog form { max-height: 88vh; max-height: 88dvh; padding-bottom: 0; --pin-pad: 0px; }
  dialog .actions { position: sticky; bottom: 0; background: var(--panel); padding: 10px 0 calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); margin-top: 4px; }
}
.fc-t tr.fc-total th, .fc-t tr.fc-total td { font-weight: 700; border-top: 2px solid var(--line-strong); background: var(--b4); }
.fc-t tr.fc-total th { background: var(--b4); }
.fc-t tr.fc-all th { color: var(--ink); }
.fc-t tfoot th { text-align: left; position: sticky; left: 0; min-width: 170px; }

/* Inventory */
.iv-head .iv-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 12px; }
.iv-head .k { font-size: 13px; color: var(--i4); font-weight: 600; }
.iv-head .v { font-size: 20px; font-weight: 700; }
.iv-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.iv-filters .f-in { width: auto; min-width: 150px; height: 36px; }
.iv-filters input[type=search] { flex: 1; min-width: 200px; }
.iv-dev { display: flex; gap: 12px; padding: 10px 20px; border-top: 1px solid var(--b3); }
.iv-dev.on .fl-tick { background: var(--pos); border-color: var(--pos); }
.iv-dev.gone { opacity: .7; }
.iv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.iv-form label.small { display: flex; flex-direction: column; gap: 4px; }
.iv-in { display: flex; gap: 6px; }
.iv-in .f-in { flex: 1; min-width: 0; }
.iv-scan { cursor: pointer; flex: none; }
@media (max-width: 640px) { .iv-dev { padding: 10px 12px; } }

/* Profit */
.stat .v.neg { color: var(--neg); }
.pf-rate { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
/* The quote's margins (Profit): four figures in a row, as the stats; two to a row, then one, on smaller screens. */
.qm { margin-bottom: 16px; }
.qm-row { display: flex; flex-wrap: wrap; gap: 18px 28px; padding: 16px 20px; }
.qm-part { flex: 1 1 200px; min-width: 0; }
.qm-part .l { display: flex; align-items: center; gap: 6px; min-height: 24px; font-size: 13px; color: var(--i4); font-weight: 600; }
.qm-part .v { font-size: 24px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.qm-part .v.neg { color: var(--neg); }
.qm-gt { border-left: 1px solid var(--b1); padding-left: 28px; }
.qm-sub { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 6px; font-size: 14px; font-variant-numeric: tabular-nums; }
.qm-sub .k { font-size: 13px; color: var(--i4); font-weight: 600; }
@media (max-width: 860px) { .qm-gt { border-left: 0; padding-left: 0; border-top: 1px solid var(--b1); padding-top: 14px; flex-basis: 100%; } }

/* Deliveries */
.dl-stage { border-top: 1px solid var(--b3); }
.dl-head { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 20px; border: 0; background: none; cursor: pointer; text-align: left; font-size: 14px; }
.dl-stage.done .dl-head b { color: var(--i3); }
.dl-lines { padding: 0 20px 10px; }
.dl-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px dashed var(--b3); flex-wrap: wrap; }
.dl-q { white-space: nowrap; }

/* Emails to the team (Staff page, Admin) */
.msg-prev { margin-top: 12px; padding: 12px; background: var(--b4); border-radius: 6px; font-size: 14px; }
.msg-prev details { margin-top: 8px; background: var(--panel); border: 1px solid var(--b2); border-radius: 6px; padding: 8px 12px; }
.msg-prev summary { cursor: pointer; font-weight: 600; }
.msg-html { margin-top: 10px; overflow-x: auto; }

/* Timeline */
.tl-wrap { overflow-x: auto; padding: 8px 12px 0; }
.tl { width: 100%; min-width: 720px; height: auto; display: block; }
.tl text { font-family: inherit; }
.tl .tl-m { font-size: 11px; fill: #8A9199; }
.tl .tl-row { font-size: 12px; fill: #4A5158; font-weight: 600; }
.tl .tl-l { font-size: 11px; fill: #14161A; }
.tl .tl-today { font-size: 11px; fill: #F39200; font-weight: 700; }
.tl-key { display: flex; gap: 6px 16px; flex-wrap: wrap; padding: 6px 20px 14px; font-size: 12px; color: var(--i3); }
.tl-key span { display: inline-flex; align-items: center; gap: 6px; }
.tl-key i { display: inline-block; width: 14px; height: 10px; border-radius: 2px; }
.tl-key i.ms { width: 10px; border-radius: 50%; background: #2E9E6B; }
.tl-key i.dia { width: 9px; height: 9px; background: var(--ink); transform: rotate(45deg); border-radius: 0; }

/* Documents */
.dc-crumbs { font-size: 14px; }
.dc-pick { display: flex; align-items: center; gap: 8px; flex: 1 1 260px; max-width: 460px; min-width: 0; }
.dc-row { display: grid; grid-template-columns: 28px 1fr auto auto; gap: 10px; align-items: center; padding: 10px 20px; border-top: 1px solid var(--b3); color: var(--ink); text-decoration: none; }
.dc-row:hover { background: var(--b4); }
.dc-nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Choose folders popup (docs.js): the folders found or inside one, scrolling down only. */
.dc-list { max-height: 48vh; overflow-x: hidden; overflow-y: auto; border: 1px solid var(--b3); border-radius: 8px; margin-top: 10px; }
.dc-list .dc-row { grid-template-columns: 24px 1fr auto; padding: 8px 12px; }
.dc-list .dc-row:first-child { border-top: 0; }
.dc-list .dc-row.on { background: var(--b4); }
.dc-where { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.dc-find { display: flex; gap: 8px; } .dc-find .f-in { flex: 1 1 auto; min-width: 0; }
@media (max-width: 640px) { .dc-row { grid-template-columns: 24px 1fr auto; padding: 10px 12px; } .dc-row > .small.muted { display: none; } }
/* A file viewed from Documents (docs.js view): the box fills the popup and a sheet or Word file scrolls inside it, so the
   popup itself never scrolls sideways. A sheet is on white, as in Excel, in the dark theme too. */
.labour-dlg.dv-dlg { width: min(1180px, calc(100vw - 32px)); }
.dv-title { overflow-wrap: anywhere; }
.dv-box { height: min(70vh, 860px); height: min(70dvh, 860px); min-width: 0; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--b4); display: flex; align-items: flex-start; justify-content: center; }
.dv-box > .empty { align-self: center; }
.dv-box.pdf { overflow: hidden; }
.dv-box iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.dv-box img { display: block; max-width: 100%; height: auto; cursor: zoom-in; }
.dv-box.zoom { justify-content: flex-start; }
.dv-box.zoom img { max-width: none; cursor: zoom-out; }
.dv-box.sheet, .dv-box.word { display: block; }
.dv-box.word { background: #808080; }
.dv-box.word .docx-wrapper { padding: 16px; }
.dv-sheet { background: #fff; color: #000; min-width: 100%; min-height: 100%; width: max-content; }
.dv-sheet table { border-collapse: collapse; table-layout: fixed; font: 14.7px Calibri, Carlito, Arial, sans-serif; }
/* Gridlines are drawn, not borders, so a cell's own borders always show over them. */
.dv-sheet td { overflow: hidden; white-space: nowrap; padding: 0 3px; height: 20px; line-height: 1.25; vertical-align: bottom; color: #000;
  background-image: linear-gradient(#e2e2e2, #e2e2e2), linear-gradient(#e2e2e2, #e2e2e2); background-size: 1px 100%, 100% 1px; background-position: right top, left bottom; background-repeat: no-repeat; }
.dv-sheet.no-grid td { background-image: none; }
.dv-sheet td.ov { overflow: visible; }
.dv-sheet td a { color: inherit; }
.dv-sheet th { position: sticky; z-index: 2; background: #f3f3f3; color: #555; font: 12px system-ui, sans-serif; text-align: center; padding: 0 4px; border: 1px solid #d4d4d4; }
.dv-sheet thead th { top: 0; height: 20px; }
.dv-sheet tbody th { left: 0; }
.dv-sheet thead th:first-child { left: 0; z-index: 4; }
@media (max-width: 860px) { .dv-box { height: calc(100dvh - 210px); } }

/* Inventory: floors and rooms that fold, selection and the bulk bar */
.iv-floor { margin-bottom: 14px; }
.iv-floor-h { display: flex; align-items: center; gap: 10px; padding: 6px 4px 8px; }
.iv-fold { border: 0; background: none; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-align: left; flex: 1; min-width: 0; font-size: 16px; color: var(--ink); }
.iv-fold h2 { margin: 0; font-size: 15px; }
.iv-room .card-head { gap: 10px; padding: 10px 16px; }
.iv-sel { display: inline-flex; align-items: center; padding: 6px; margin: -6px 0; cursor: pointer; flex: none; }
.iv-sel input { width: 18px; height: 18px; }
.iv-dev .iv-sel { margin-top: 2px; align-self: flex-start; }
.iv-dev.sel { background: var(--ot); }
.iv-foldall { margin-left: auto; font-size: 13px; }
.iv-bulk { position: sticky; bottom: 0; z-index: 30; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 16px; background: var(--toast-bg); color: var(--toast-fg); border-radius: 8px; margin-top: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.iv-bulk .proc-link { color: var(--toast-link); }
.iv-cats { margin-top: 12px; padding: 12px; background: var(--b4); border-radius: 6px; }
.iv-cat-sys { margin-bottom: 8px; }
.iv-cat-sys > b { display: block; font-size: 13px; margin-bottom: 4px; }
.iv-cat { display: flex; align-items: center; gap: 6px; font-size: 14px; padding: 2px 0; }

/* Team · roles and permissions grid */
.rl-wrap { overflow-x: auto; border: 1px solid var(--b1); border-radius: 6px; }
table.rl { border-collapse: collapse; width: 100%; font-size: 14px; }
table.rl th, table.rl td { padding: 8px 10px; border-bottom: 1px solid var(--b3); text-align: center; vertical-align: middle; }
/* The role names move down with the page while the grid is on screen (stickyheads.js; James, 4 Nov 2026). */
table.rl thead th { background: var(--b4); vertical-align: bottom; min-width: 112px; font-weight: 600; box-shadow: inset 0 -1px 0 var(--b3); }
table.rl tbody th { text-align: left; font-weight: 500; min-width: 220px; max-width: 320px; }
table.rl th:first-child { position: sticky; left: 0; background: var(--panel); z-index: 1; box-shadow: 1px 0 0 var(--b1); }
table.rl thead th:first-child { z-index: 3; background: var(--b4); box-shadow: 1px 0 0 var(--b1), inset 0 -1px 0 var(--b3); }
table.rl tr.rl-group th { background: var(--b4); text-align: left; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--i3); font-weight: 700; }
table.rl input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--o); }
table.rl .rl-name { font-size: 14px; color: var(--ink); }
table.rl .rl-work { font-size: 13px; padding: 4px 6px; min-width: 120px; }
.rl-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 12px; margin-bottom: 12px; background: var(--b4); border-radius: 6px; }
.rl-form label { display: flex; flex-direction: column; gap: 4px; min-width: 180px; }
.rl-form-acts { display: flex; gap: 8px; }
.rl-remove { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding-top: 10px; border-top: 1px solid var(--b2); }
.rl-danger { color: var(--neg); border-color: var(--neg); }
@media (max-width: 700px) {
  table.rl tbody th { min-width: 150px; font-size: 13px; }
  table.rl tbody th .small { display: none; }
  table.rl thead th { min-width: 92px; }
}

/* Quarterly reports (reports.js) */
.rp-lede { margin: 0 0 12px; font-size: 13px; }
.rp-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 12px; }
.rp-bar .f-in { width: min(240px, 100%); }
/* Reviewing a report on the page (reports.js): the report as the client gets it, its
   holds above and the buttons to send or skip it below. */
dialog.rp-dlg { width: min(980px, calc(100vw - 32px)); height: calc(100vh - 48px); height: calc(100dvh - 48px); background: var(--panel); color: var(--ink); }
dialog.rp-dlg[open] { display: flex; flex-direction: column; }
.rv-head { display: flex; gap: 8px; align-items: flex-start; padding: 14px 18px 10px; border-bottom: 1px solid var(--b3); }
.rv-head .grow { flex: 1; min-width: 0; }
.rv-head h2 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rv-info { margin: 0; padding: 8px 18px; border-bottom: 1px solid var(--b3); }
.rv-frame { flex: 1; min-height: 0; background: #f4f4f5; }
.rv-frame iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.rv-foot { display: flex; gap: 8px; justify-content: flex-end; align-items: center; flex-wrap: wrap; padding: 12px 18px; border-top: 1px solid var(--b3); }
.rv-foot .f-in { width: min(280px, 100%); }
.rp-row { display: grid; grid-template-columns: minmax(0, 1fr) 80px minmax(0, 460px); gap: 8px 16px; align-items: start; padding: 14px 20px; border-top: 1px solid var(--b3); }
.rp-row:first-child { border-top: 0; }
.rp-who .nm { font-weight: 600; }
.rp-who .s2 { color: var(--i4); font-size: 13px; margin-top: 2px; overflow-wrap: anywhere; }
.rp-info { font-size: 12.5px; color: var(--i3); margin-top: 6px; line-height: 1.45; }
.rp-hold, .rp-warn { color: var(--amber-fg); }
.rp-st { padding-top: 2px; }
.rp-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.rp-acts .f-in { height: 28px; width: 220px; font-size: 13px; }
@media (max-width: 760px) {
  .rp-row { grid-template-columns: minmax(0, 1fr) auto; }
  .rp-acts { grid-column: 1 / -1; justify-content: flex-start; }
  .rp-acts .f-in { width: 100%; }
}

/* Row order: ⋮⋮ beside each name (planner.js moveRow). Shown on hover or focus; always on touch screens. */
.side .row-grip { position: absolute; left: 0; top: 50%; transform: translateY(-50%); }
.row-grip { border: 0; background: none; padding: 2px 3px; margin: 0; font: 700 12px/1 system-ui, sans-serif; letter-spacing: -2px;
  color: var(--muted); cursor: grab; touch-action: none; opacity: 0; border-radius: 3px; }
.prow:hover .row-grip, .row-grip:focus-visible { opacity: 1; }
.row-grip:hover, .row-grip:focus-visible { color: var(--o); background: var(--b4); outline: none; }
@media (any-pointer: coarse) { .row-grip { opacity: .7; } }
.pname-m .row-grip { margin-right: 4px; }
.prow.row-moving { opacity: .55; }
.prow.row-moving .row-grip { cursor: grabbing; }
.prow.drop-before { box-shadow: inset 0 3px 0 var(--o); }
.prow.drop-after { box-shadow: inset 0 -3px 0 var(--o); }

/* A header above each team's rows when more than one team is showing (planner.js render). */
/* A team's heading in the portal's dark, so it stands apart from the shaded rows (James, 6 Nov 2026). */
/* 40% of the portal's dark (James, 6 Nov 2026), so the words are dark too. */
.team-head { height: 34px; display: flex; align-items: center; background: var(--team-bg); }
.team-head span { position: sticky; left: 0; padding: 0 12px; font-size: 13px; color: var(--ink); white-space: nowrap; }
.team-head b { color: var(--ink); font-size: 15px; margin-right: 8px; letter-spacing: .02em; }

/* Open an address in Apple Maps or Google Maps, on Apple devices (app.js). */
.map-pick { position: fixed; z-index: 90; min-width: 180px; display: flex; flex-direction: column; padding: 6px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: var(--shadow); font-size: 13px; }
.map-pick .l { padding: 4px 10px 6px; font-size: 11.5px; color: var(--muted); }
.map-pick a { padding: 8px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 600; }
.map-pick a:hover, .map-pick a:focus { background: var(--b4); outline: none; }

/* Other labour (James, 9 Oct 2026): a team's row for subcontractors (lib/labour.js). */
.prow.labour .side { background: var(--b4); }
.prow.labour .side .avatar { background: none; border: 1px dashed var(--b2); color: var(--muted); }
.prow.labour .lane { background-image: repeating-linear-gradient(135deg, transparent 0 10px, rgba(127, 127, 127, .05) 10px 20px); }
.prow.labour .pname-m i { font-style: normal; font-size: 12px; color: var(--muted); }
.sub-wrap { display: flex; flex-direction: column; gap: 6px; }
.sub-wrap p { margin: 0; }
.sub-wrap .row { align-items: flex-end; }
.sub-wrap .row > button { flex: 0 0 auto; }

/* Planner settings (labour.js). */
.labour-dlg { width: min(720px, calc(100vw - 32px)); background: var(--panel); color: var(--ink); }
/* One of a repeat: this one, this and the ones after, or all of them (planner.js askScope). */
.labour-dlg.scope-dlg { width: min(420px, calc(100vw - 32px)); }
.scope-opts { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 4px; }
.scope-opts .btn { justify-content: center; }
.lb { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow: auto; }
.lb h3 { margin: 0 0 4px; font-size: 15px; }
.lb p { margin: 0; }
.lb-sec { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.lb-team, .lb-ph, .lb-new, .lb-addrate, .lb-subhead { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lb-team { padding: 6px 0; }
.lb-team .lb-check { min-width: 180px; }
/* The team's emails, team by team (teamemails.js). */
.tem-on { margin: 4px 0 8px; }
.tem-h { margin: 14px 0 4px; font-size: 14px; }
.tem-row select { width: auto; }
.labour-dlg label.lb-check, .labour-dlg label.lb-inline { flex-direction: row; align-items: center; gap: 6px; color: var(--ink); font-size: 13px; }
.lb-sub { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.lb-sub.off { opacity: .6; }
.lb-sub .lbName { font-weight: 600; flex: 1 1 200px; }
.lb-rates { list-style: none; margin: 0; padding: 0; font-size: 13px; display: flex; flex-direction: column; gap: 2px; }
.lb-x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 15px; padding: 0 4px; }
.lb-x:hover { color: var(--neg); }
.lb-addrate input[type=number], .lb-new input[type=number] { width: 100px; }
.lb-new #lbNewName { flex: 1 1 220px; }
.lb .actions { background: var(--panel); padding: 10px 0; }
/* A popup's buttons stay in sight (James, 17 Nov 2026: Add a product's Save was only at the very bottom). The last button row
   of a popup, or of the form that ends it, sticks to the bottom of whatever scrolls; a row part way down stays put.
   However deep (an expense's form beside its receipt): nothing shown after it, or after any box it's in, up to what
   scrolls. The Report an issue button floating over a popup doesn't count. --pin-pad is the scrolling box's bottom
   padding, so the row sits on its edge. */
.lb, dialog form, .wo-dlg { --pin-pad: 18px; }
:is(.lb, dialog form, .wo-dlg) :is(.sf-actions, .actions):not(:has(~ :not([hidden], .fb-pop))):not(:is(.lb, dialog form, .wo-dlg) :has(~ :not([hidden], .fb-pop)) *) {
  position: sticky; bottom: calc(-1 * var(--pin-pad)); z-index: 2; background: var(--panel); padding: 10px 0; border-top: 1px solid var(--line); }
/* The same on a page, for a long form (James, 17 Nov 2026: a new order, Leave, a project's Progress and Raise a REQ, a
   timesheet's day): its button row sticks to the bottom of the screen while the form is on it, and goes with the form
   once it's scrolled past. The row must be the form's own last child, so it never sticks over the next one. */
.pin-foot { position: sticky; bottom: 0; z-index: 3; background: var(--panel); border-top: 1px solid var(--line); padding-block: 10px calc(10px + env(safe-area-inset-bottom, 0px)); }
.lb .spacer { flex: 1; }
/* Subcontractors on the PM's timesheet (timesheets.js). */
.ts-subs .card-body { display: flex; flex-direction: column; gap: 10px; }
.ts-sub { display: grid; grid-template-columns: 112px minmax(120px, 1fr) minmax(120px, 1fr) minmax(170px, 1.2fr) 136px 40px; gap: 8px; align-items: center; }
.ts-sub.ro { grid-template-columns: 120px 1.2fr 1.4fr 1fr 70px; font-size: 14px; }
.ts-sub { border-left: 4px solid var(--c, var(--b1)); padding-left: 10px; border-radius: 4px; }
.ts-sub .tsSN { grid-column: 1 / -1; }
@media (max-width: 860px) {
  .ts-sub, .ts-sub.ro { grid-template-columns: 1fr 1fr; }
  .ts-sub .ts-hrs { grid-column: 1; }
}

/* Leave → Holidays (leave.js). */
.hol-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hol-row.off { opacity: .55; }
.hol-row .grow { flex: 1 1 200px; }
.hol-when { min-width: 150px; font-weight: 600; font-size: 13px; }
.hol-who { flex-basis: 100%; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.hol-src { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin-bottom: 8px; }
.hol-src .f-in { width: auto; min-width: 220px; }
.hol-ask { border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.hol-ask label { display: flex; gap: 6px; align-items: flex-start; font-weight: 400; }
/* Choosing people (pick.js), first made for "Not for" here: a tag each (a whole team, or a person) and one list to add more. */
.hol-not { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.hol-every { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; }
.hol-off { display: inline-flex; gap: 5px; align-items: center; font-weight: 600; cursor: pointer; }
.xp { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.xp-tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 4px 1px 9px; border-radius: 12px; background: var(--b4); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink); }
.xp-tag.team { background: var(--ot); }
.xp-tag i { font-style: normal; font-weight: 400; color: var(--muted); }
.xp-tag button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 14px; line-height: 1; padding: 0 3px; border-radius: 50%; }
.xp-tag button:hover { color: var(--neg); }
.xp-add { border: 1px dashed var(--b2); border-radius: 12px; background: none; font-size: 12.5px; padding: 3px 8px; color: var(--muted); max-width: 240px; cursor: pointer; }

/* A holiday's name on its day (company and bank holidays, hub_api lib/holidays.js). */
.cell .hol-mark { position: absolute; left: 3px; right: 3px; bottom: 12px; font-size: 10px; line-height: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }

/* The Days timeline (planner.js tlCell, James, 5 Nov 2026): a faint line each hour, the hour every other one,
   and the time outside their working day shaded. */
.cell .tl-hr { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--line); pointer-events: none; }
.cell .tl-hr b { position: absolute; left: 3px; top: 1px; font-size: 9px; line-height: 10px; font-weight: 600; color: var(--muted); }
.cell .tl-off { position: absolute; left: 0; right: 0; background: color-mix(in srgb, var(--ink) 6%, transparent); pointer-events: none; }
.planner.pl-tl .block .l2 { white-space: normal; }

/* One week to the screen on tablets and phones (planner.js fitW): a swipe settles on the next
   Monday, one week at a time (snap-stop), with the names column left alone. */
/* Snapping for a trackpad or mouse only: on a touch screen the planner moves the weeks itself. */
.week-fit:not(.touch-locked) #planner { scroll-snap-type: x mandatory; scroll-padding-left: var(--side); }
.week-fit .cols .day.wk-start { scroll-snap-align: start; scroll-snap-stop: always; }
/* A day to the screen on a phone: every day is a place to settle. */
.day-fit .cols .day { scroll-snap-align: start; scroll-snap-stop: always; }
/* On a touch screen a finger scrolls up and down only; a sideways swipe moves a week (planner.js swipeWeek). */
/* Not overflow-x: hidden: Safari then puts the planner back to the first week whenever a finger scrolls up or down.
   A diagonal finger drifting sideways is put back on its week instead (planner.js keepOnWeek). */
.week-fit.touch-locked #planner { touch-action: pan-y; }
@media (max-width: 700px) { .week-fit #planner { scroll-padding-left: 0; } }

/* ---------------------------------------------------------------- site surveys (surveys.js) */
/* One part at a time on the sub-switch, made for an iPad on site: big touch targets,
   and 16px inputs on touch screens so iOS doesn't zoom in on every field. */
.sv-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.sv-state { font-size: 13px; color: var(--i4); margin-left: 4px; }
.sv-note { margin-bottom: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sv-parts { display: flex; width: max-content; margin: 0 0 14px; }
.sv-card .card-body { padding: 18px 20px; }
.sv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px 18px; }
.sv-f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.sv-f.wide { grid-column: 1 / -1; }
.sv-l { font-size: 13px; font-weight: 600; color: var(--i2); }
.sv-hint { font-size: 12px; color: var(--i4); font-weight: 400; }
.sv-team { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--i3); background: var(--b4); border-radius: 3px; padding: 1px 5px; margin-left: 6px; vertical-align: 1px; }
.sv-head { grid-column: 1 / -1; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--i4); border-bottom: 1px solid var(--b3); padding-bottom: 5px; margin-top: 10px; }
.sv-tick { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid var(--b2); border-radius: 4px; background: var(--panel); font-size: 14px; cursor: pointer; }
.sv-tick input { width: 18px; height: 18px; accent-color: var(--o); }
.sv textarea.f-in { height: auto; padding: 8px 10px; line-height: 1.45; resize: vertical; }
@media (pointer: coarse) { .sv .f-in { font-size: 16px; } }
.sv-sys { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.sv-chip { text-align: left; padding: 14px 16px; border: 1.5px solid var(--b2); border-radius: 8px; background: var(--panel); font: inherit; font-size: 15px; font-weight: 600; color: var(--i3); cursor: pointer; }
.sv-chip:hover { border-color: var(--o); }
.sv-chip[aria-pressed=true] { border-color: var(--o); color: var(--ink); box-shadow: inset 0 0 0 1px var(--o); }
.sv-chip[aria-pressed=true]::before { content: '✓ '; color: var(--o); }
.sv-photos { margin-top: 20px; }
.sv-ph-head { margin: 0 0 8px; font-size: 14px; }
.sv-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.sv-th { width: 96px; height: 72px; padding: 0; border: 1px solid var(--b2); border-radius: 6px; overflow: hidden; background: var(--b4); cursor: pointer; }
.sv-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sv-th.sm { width: 64px; height: 48px; }
.sv-add { display: flex; align-items: center; justify-content: center; width: 96px; height: 72px; border: 1.5px dashed var(--b2); border-radius: 6px; color: var(--i3); font-size: 13px; font-weight: 600; cursor: pointer; }
.sv-add:hover { border-color: var(--o); color: var(--ink); }
.sv-inv { margin-top: 22px; }
.sv-row { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr 64px 1fr 1fr; gap: 8px 10px; padding: 12px; border: 1px solid var(--b3); border-left: 4px solid var(--b3); border-radius: 6px; margin-bottom: 10px; align-items: end; }
.sv-row label { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sv-row label > span { font-size: 11.5px; color: var(--i4); font-weight: 600; }
.sv-row .wide { grid-column: span 4; }
.sv-row-acts { grid-column: span 2; display: flex; gap: 4px; justify-content: flex-end; align-items: center; }
.sv-row-acts label.btn { flex-direction: row; cursor: pointer; }
.sv-row .sv-strip.wide { grid-column: 1 / -1; }
.sv-row[data-act=Replace], .sv-row[data-act=Remove] { border-left-color: var(--neg); }
.sv-row[data-act=Upgrade], .sv-row[data-act=Repair], .sv-row[data-act=Investigate] { border-left-color: var(--amber-fg); }
.sv-row[data-act=Add] { border-left-color: var(--o); }
.sv-row.reg { grid-template-columns: 2fr 1.2fr 1fr 1fr; position: relative; padding-right: 48px; }
.sv-row.reg .wide { grid-column: span 2; }
.sv-row.reg .sv-row-acts { position: absolute; top: 8px; right: 8px; }
.sv-reg-acts { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; }
.sv-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; align-items: flex-start; }
.sv-sent { font-size: 13px; color: var(--i4); margin-left: 10px; }
.sv-sent::before { content: "✓ "; color: var(--pos); }
.sv-del { margin-top: 32px; text-align: right; }
.sv-crm { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--b3); }
.sv-crm-row { display: flex; gap: 8px; max-width: 520px; margin-top: 5px; }
.sv-crm-res { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; max-width: 520px; }
.sv-crm-hit { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 10px 12px; border: 1px solid var(--b2); border-radius: 6px; background: var(--panel); font: inherit; color: var(--ink); cursor: pointer; }
.sv-crm-hit:hover { border-color: var(--o); }
.sv-crm-hit span { font-size: 13px; color: var(--i4); }
dialog.sv-dlg { width: min(620px, calc(100vw - 32px)); background: var(--panel); color: var(--ink); }
.sv-photo-img img { display: block; max-width: 100%; max-height: 60vh; margin: 0 auto; border-radius: 6px; background: var(--b4); }
@media (max-width: 700px) {
  .sv-card .card-body { padding: 14px; }
  .sv-row, .sv-row.reg { grid-template-columns: 1fr 1fr; }
  .sv-row .wide, .sv-row.reg .wide, .sv-row-acts { grid-column: 1 / -1; }
  .sv-row.reg .sv-row-acts { grid-column: auto; }
}

/* Staff (team.js): a photo or initials beside each name, the working pattern, Zoho People checks, private details. */
.tm-who { display: flex; gap: 10px; align-items: center; min-width: 0; }
/* Staff, under Access: their Zoho link; Allow Zoho again stands out. */
.tm-zl { margin-top: 4px; }
.tm-zl-old { color: var(--amber-fg); font-weight: 700; }
/* Its search, filters and order (James, 4 Nov 2026); a heading sorts by its column. */
.tm-tools { gap: 8px 10px; margin-bottom: 12px; }
.tm-tools select { max-width: 100%; }
/* Staff on a phone (James, 15 Oct 2026: the eight columns ran into each other): each person a small card.
   Name across the top; role and team; email and phone; skills; planner and access; when they last signed in. */
@media (max-width: 700px) {
  .tm-list .tr.th { display: none; }
  .tm-list .tr { min-width: 0; grid-template-columns: 1fr 1fr !important; gap: 6px 12px; padding: 12px 14px; align-items: start; }
  .tm-list .tr > div { min-width: 0; overflow-wrap: anywhere; }
  .tm-list .tr > div:nth-child(1), .tm-list .tr > div:nth-child(4), .tm-list .tr > div:nth-child(5), .tm-list .tr > div:nth-child(7) { grid-column: 1 / -1; }
  .tm-list .tr > div:nth-child(5):empty { display: none; }
  .tm-list .tr > div:nth-child(6) { order: 1; }
  .tm-list .tr > div:nth-child(8) { order: 2; }
  .tm-list .tr > div:nth-child(7) { order: 3; color: var(--i4); }
  .tm-list .tr > div:nth-child(7)::before { content: 'Last signed in: '; }
  .tm-list .tr > div:nth-child(1) { margin-bottom: 2px; }
}
.tm-face { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--b2); display: grid; place-items: center; font-size: 11.5px; font-weight: 600; overflow: hidden; color: var(--ink); }
.tm-face img { width: 100%; height: 100%; object-fit: cover; }
.tm-face:not(:has(img))::before { content: attr(data-ini); }
.tm-pattern { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-top: 6px; }
.tm-day { display: grid; gap: 4px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; }
.tm-day label { display: flex; gap: 6px; align-items: center; font-weight: 600; }
.tm-day:not(.on) { opacity: .6; }
.tm-day .f-in { padding: 4px 6px; font-size: 13px; min-width: 0; }
.tm-lunch { display: grid; gap: 4px; padding-top: 4px; border-top: 1px dashed var(--line); }
.tm-lunch label { display: flex; gap: 6px; align-items: center; font-weight: 400; }
.tm-lunch.off .f-in { opacity: .5; }
.tm-chk { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--line); }
.tm-h { font-size: 14px; margin: 0 0 6px; }
.tm-zbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 8px 12px; margin-bottom: 12px; border-radius: 6px; background: var(--b4); border: 1px solid var(--line); font-size: 13.5px; }
.tm-zbar.warn { border-color: var(--neg); }
.tm-refresh { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; background: var(--b4); }
.tm-private { border: 1px dashed var(--b2); border-radius: 6px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.tm-priv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 4px 0 0; font-size: 13.5px; }
.tm-priv dt { color: var(--muted); }
.tm-priv dd { margin: 0; }

/* The site on Google Maps, on a project's Overview (projects.js). */
.pj-map { display: block; width: 100%; height: 220px; margin-top: 12px; border: 1px solid var(--b1); border-radius: 6px; background: var(--b4); }
.pj-addr-warn { margin-top: 10px; padding: 8px 10px; border-radius: 6px; background: var(--ot); border: 1px solid var(--o); font-size: 13px; }
.pj-addr-crm { margin-top: 8px; }
.pj-addr-edit { margin-top: 8px; }
.pj-addr-acts { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
/* Parking and the Congestion Charge (projects.js chargesHtml; sold.js) */
.pj-chg { margin-top: 12px; }
.pj-chg + .small, .pj-chg + .pj-addr-warn, .pj-chg-send { margin-top: 6px; }
.pj-chg-form { margin-top: 12px; display: grid; gap: 10px; }
.pj-chg-q, .sd-yn { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-weight: 600; color: var(--i2); }
.pj-chg-q .muted, .sd-yn-note { font-weight: 400; }
.seg.sd-miss { outline: 2px solid var(--neg); outline-offset: 2px; border-radius: 4px; }
/* Set up project's project folder (sold.js): what's chosen, then Choose folder. */
.sd-folder { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.sd-folder > span { overflow-wrap: anywhere; }
.sd-folder.sd-miss { outline: 2px solid var(--neg); outline-offset: 4px; border-radius: 4px; }
.pj-addr-form { margin-top: 10px; display: grid; gap: 8px; }
.pj-addr-form label { display: flex; flex-direction: column; gap: 3px; }

/* Site tab: snags, diary entries and RFIs waiting to be notes in Zoho CRM (field.js crmLine). */
.fl-crm { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 8px 12px; margin: 0 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--b4); }

/* Client and contacts on a project's Overview (contacts.js): the client stands out at the top. */
/* The client stands out by its orange border only, no fill (James, 13 Oct 2026). */
.ct-client { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--o); }
.ct-client.none { grid-template-columns: 1fr; }
.ct-client .ct-who b { font-size: 16px; }
.ct-tag { grid-column: 1 / -1; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--oh); }
.ct-list { margin-top: 8px; }
.ct-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: start; padding: 10px 2px; border-top: 1px solid var(--b1); }
.ct-row:first-child { border-top: 0; }
.ct-who { min-width: 0; overflow-wrap: anywhere; }
.ct-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ct-acts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.ct-acts .f-in.ct-role, .ct-hit .f-in.ct-role { width: auto; height: auto; min-height: 0; padding: 3px 6px; font-size: 12.5px; }
.ct-sw { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.ct-sw.off { color: var(--i4); cursor: default; }
.ct-foot { margin-top: 10px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
/* The Add someone popup (contacts.js): its results scroll in a box that stays the same size, so nothing jumps. */
.ct-found { min-height: 180px; max-height: min(50vh, 360px); overflow: auto; border-top: 1px solid var(--line); }
.ct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.ct-grid label { display: flex; flex-direction: column; gap: 3px; }
.ct-hit { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 6px 0; border-top: 1px solid var(--b1); }
.ct-btns { display: flex; gap: 10px; align-items: center; justify-content: space-between; }

/* Planner settings: each person's Zoho Calendar (labour.js). */
/* Planner settings' tabs, along the top (labour.js). */
.lb-tabs { margin: 0 0 14px; }
@media (max-width: 560px) { .lb-tabs button { padding: 6px 11px; } }
/* People (labour.js views): each team's, then only the people set apart from theirs. */
.lb-tm { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.lb-tm-h { margin-bottom: 4px; }
.lb-tm-row { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 4px; }
.lb-tm-ticks { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.labour-dlg .lb-tm-ticks label { display: inline-flex; flex-direction: row; gap: 6px; align-items: center; white-space: nowrap; color: var(--ink); font-size: 13px; }
.lb-tm-ticks select { max-width: 100%; }
.lb-ap { margin: 4px 0 10px; }
.lb-ap-p { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.lb-ap-n { min-width: 0; }
.lb-ap .lb-sc { display: block; border: 0; background: none; padding: 0; font: inherit; font-size: 12px; color: var(--i3); text-align: left; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 2px; }
.lb-ap .lb-sc:hover { color: var(--ink); }
.lb-sc-see { flex-wrap: wrap; gap: 8px 14px; border: 0; padding: 0; margin: 0 0 6px; }
.lb-sc-see legend { width: 100%; padding: 0; margin-bottom: 2px; }
.lb-cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin: 8px 0; }
.lb-cal-p { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lb-cal-on { display: flex; align-items: center; gap: 6px; }
.lb-cal-eg { font-family: ui-monospace, Menlo, monospace; font-size: 11px; overflow-wrap: anywhere; }
.lb-cal input { border: 1px solid var(--line-strong, var(--b2)); border-radius: 6px; padding: 5px 8px; font-size: 13px; background: var(--panel); color: var(--ink); }

/* Inventory → Orders (orders.js) */
.nb.grey { background: var(--b2, var(--i3)); color: var(--ink); }
.or-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.or-f { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--i2); min-width: 0; }
.or-wide { grid-column: 1 / -1; }
.or-lines-h, .or-line { display: grid; grid-template-columns: 80px 1fr 1fr 2fr 1.4fr 36px; gap: 8px; align-items: center; }
.or-sub { margin: 0 0 8px; font-size: 13px; color: var(--i2); }
/* New order's reserved number, to copy onto the supplier's own order. */
.or-ref { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: 6px; background: var(--b4); }
.or-ref-k { font-size: 13px; font-weight: 600; color: var(--i2); }
.or-ref b { font-size: 18px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.or-list .pill { white-space: normal; }
/* Narrower: how many, make and model on one row; description and link under. */
@media (max-width: 1000px) {
  .or-lines-h { display: none; }
  .or-line { grid-template-columns: 70px 1fr 1fr 36px; padding: 10px 0; border-bottom: 1px solid var(--b4); }
  .or-line > :nth-child(4) { grid-column: 1 / 4; grid-row: 2; }
  .or-line > :nth-child(5) { grid-column: 1 / 4; grid-row: 3; }
  .or-line > :nth-child(6) { grid-column: 4; grid-row: 1; }
}
.or-lines-h { color: var(--i3); font-weight: 600; margin-bottom: 4px; }
/* Changing an order: room for "2 here" where a line's × would be. */
.or-edit .or-lines-h, .or-edit .or-line { grid-template-columns: 80px 1fr 1fr 2fr 1.4fr 56px; }
.or-here { white-space: nowrap; text-align: center; }
@media (max-width: 1000px) { .or-edit .or-line { grid-template-columns: 70px 1fr 1fr 56px; } }
.or-line + .or-line { margin-top: 6px; }
/* For several projects: each line's project, on its own row under the make, model, description and link. */
.or-line .or-lproj { grid-column: 2 / 6; }
@media (max-width: 1000px) { .or-line .or-lproj { grid-column: 1 / 4; grid-row: 4; } }
.or-act { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.or-act .f-in { flex: 1 1 200px; min-width: 0; }
.or-act label { display: flex; gap: 6px; align-items: center; flex: none; }
/* Its own width (a date), not the label's: at 100% it ran out of the label and under the button. */
.or-act label .f-in { flex: none; width: auto; }
.or-got { width: 100%; max-width: 120px; }
.or-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.or-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.or-facts dt { color: var(--i3); }
.or-facts dd { margin: 0; min-width: 0; }
/* A check-in's note and delivery note photo, in the History card and the popup that asks for it. */
.or-hist-note { font-size: 13px; color: var(--i2); margin-top: 2px; white-space: pre-wrap; }
.or-dn-thumb { display: block; margin-top: 6px; padding: 0; border: 0; background: none; cursor: zoom-in; }
.or-dn-thumb img { display: block; width: 96px; height: 72px; object-fit: cover; border-radius: 4px; border: 1px solid var(--b2); }
.or-dn { display: block; max-width: 100%; max-height: 320px; border-radius: 6px; border: 1px solid var(--b2); }
.or-hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.or-acts { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.or-acts > span:first-child { flex: 1; }
/* Orders on a phone: each order a small card, not a wide table. */
@media (max-width: 700px) {
  .or-list .tr.th { display: none; }
  .or-list .tr { min-width: 0; grid-template-columns: 1fr 1fr !important; gap: 6px 12px; padding: 12px 14px; }
  .or-list .tr > div:nth-child(4) { grid-column: 1 / -1; }
  .or-list .tr > div:nth-child(5):last-child { grid-column: 1 / -1; justify-content: flex-start !important; }
  .or-items .tr { min-width: 0; grid-template-columns: 44px 1fr 96px !important; }
  .or-items .tr.th > div:nth-child(3) { display: none; }
  .or-items .tr:not(.th) > div:nth-child(3) { grid-column: 2; }
  .or-items .tr:not(.th) > div:nth-child(4) { grid-row: 1; grid-column: 3; }
}

/* Inventory → Suppliers (suppliers.js) */
.sp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.sp-tile { background: var(--panel); border: 1px solid var(--b1); border-radius: 6px; padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; }
.sp-tile b { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sp-tile span { color: var(--i3); font-size: 13px; }
/* As .cards: each card runs down a column as tall as it needs, so a short one leaves no gap under it. */
.sp-grid { columns: 340px; column-gap: 16px; }
.sp-grid > * { break-inside: avoid; margin: 0 0 16px; }
.sp-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sp-bars li { display: grid; grid-template-columns: minmax(0, 1.2fr) 2fr auto; gap: 10px; align-items: center; font-size: 14px; }
.sp-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-bar { height: 8px; border-radius: 4px; background: var(--b4); overflow: hidden; }
.sp-bar i { display: block; height: 100%; background: var(--o); border-radius: 4px; }
.sp-n { color: var(--i3); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.sp-rows li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
/* Links on the rounded switch, as its buttons (a toolbar's; Job sheets' kinds of visit). */
.subswitch a { color: var(--i3); font-size: 14px; font-weight: 600; padding: 6px 18px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.subswitch a:hover { color: var(--ink); }
.subswitch a[aria-pressed=true], .subswitch a[aria-current=page] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(16, 24, 40, .16), 0 0 0 1px var(--b1); }
@media (max-width: 700px) {
  .sp-list .tr.th, .sp-orders .tr.th { display: none; }
  .sp-list .tr, .sp-orders .tr { min-width: 0; grid-template-columns: 1fr 1fr !important; gap: 6px 12px; padding: 12px 14px; }
  .sp-orders .tr > div:nth-child(4) { grid-column: 1 / -1; }
}

/* A supplier's contacts on its form (suppliers.js): one row each, stacking when narrow. */
.sp-c-h, .sp-c { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr 1.5fr 36px; gap: 8px; align-items: center; }
.sp-c-h { color: var(--i3); font-weight: 600; margin-bottom: 4px; }
.sp-c + .sp-c { margin-top: 6px; }
@media (max-width: 900px) {
  .sp-c-h { display: none; }
  .sp-c { grid-template-columns: 1fr 1fr 36px; padding: 10px 0; border-bottom: 1px solid var(--b4); }
  .sp-c > :nth-child(3) { grid-column: 1; grid-row: 2; }
  .sp-c > :nth-child(4) { grid-column: 2; grid-row: 2; }
  .sp-c > :nth-child(5) { grid-column: 3; grid-row: 1; }
  .sp-contacts .tr { min-width: 0; grid-template-columns: 1fr 1fr !important; }
  .sp-contacts .tr.th { display: none; }
}
.or-ask { margin: -6px 0 0; align-self: end; }
.or-grid .or-ask:not(.or-wide) { margin: 0 0 10px; }
.sp-split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sp-split div { background: var(--row); border-radius: 6px; padding: 10px 12px; display: flex; flex-direction: column; }
.sp-split b { font-size: 20px; font-variant-numeric: tabular-nums; }
.sp-split span { color: var(--i3); font-size: 12px; }
.sp-bars.sp-wide li { grid-template-columns: minmax(0, 1.5fr) 1fr auto; }
.sp-bars.sp-wide .sp-name { white-space: normal; }

/* Job sheets without signal (offline.js), and speaking into them (voice.js). */
.offline-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 16px; background: var(--blue-bg); color: var(--blue-fg); font-size: 13px; border-bottom: 1px solid var(--line); }
.offline-bar[hidden] { display: none; }
/* Find, above every Support page (find.js). */
.find-bar { display: flex; gap: 8px; align-items: center; padding: 10px 28px; background: var(--panel); border-bottom: 1px solid var(--b1); flex: none; }
.find-bar[hidden] { display: none; }
.find-bar .f-in { flex: 1; max-width: 560px; min-width: 0; }
@media (max-width: 700px) { .find-bar { padding: 8px 16px; } .find-bar .btn { display: none; } }
.find-page .find-h { font-size: 16px; margin: 20px 0 10px; }
.find-page .find-sum { margin-top: 0; }
.find-page .find-sum a { font-weight: 600; }
.find-home .ov-row { align-items: flex-start; }
.find-home .ov-row b { white-space: normal; }
.find-src { min-width: 70px; text-align: center; flex: none; }
.find-home .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--i2); overflow-wrap: anywhere; }
.find-go { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
/* A result's own page in the portal first; outside sites (UniFi Site Manager, Desk, CRM) as small ↗ links after it. */
.find-page a.find-to { color: inherit; text-decoration: none; min-width: 0; }
.find-page a.find-to:hover b { text-decoration: underline; }
.find-page .find-ext { align-self: center; white-space: nowrap; color: var(--i2); }
.find-page .find-chev { font-size: 18px; text-decoration: none; padding: 0 4px; }
.find-client .find-go { margin-top: 8px; }
.find-client b { white-space: normal; }
/* A device Find sent to its UniFi home (systems.js #/systems/unifi/site/<id>/<MAC>). */
.un-hdev.un-focus { box-shadow: inset 3px 0 0 var(--accent); background: var(--today, rgba(243, 146, 0, .08)); padding-left: 10px; border-radius: 6px; }
/* Monitoring ⚙: fewer, smarter alerts (systems.js). */
.pt-ticks { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
/* Calls: the pop-up when a call rings, and a number's page (screenpop.js). */
.call-pop { position: fixed; top: 12px; right: 12px; z-index: 900; width: min(380px, calc(100vw - 24px)); background: var(--panel); color: var(--ink); border: 2px solid var(--accent); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.25); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.call-pop[hidden] { display: none; }
/* Tickets → Calls: a recording playing where its Play button was (screenpop.js). */
.call-audio { height: 32px; width: 260px; max-width: 100%; }
.cp-head { display: flex; gap: 8px; align-items: center; font-size: 16px; }
.cp-head .grow { flex: 1; }
.cp-client { font-size: 15px; }
.cp-tk { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.cp-go { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
/* A time at the start of a row (screenpop.js). */
.md-time { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 44px; }
/* Support's folder tabs (app.js supportTabs; Phil, 30 Oct 2026, option B of the Support redesign), in James's style from a
   project's page (.pj-tabs): under the page's heading, the chosen tab opening into the tray below. The tray fills the
   screen's width (Phil, 30 Oct 2026: "the box should always fill the width of the screen"). */
.sup-tabs { display: flex; gap: 2px; margin: 20px 28px -1px; padding: 0; position: relative; z-index: 1; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.sup-tabs[hidden] { display: none; }
.sup-tabs::-webkit-scrollbar { display: none; }
.sup-tabs a { flex: none; margin-bottom: -1px; padding: 8px 16px; border: 1px solid transparent; border-bottom: 0; border-radius: 10px 10px 0 0; color: var(--i3); font-size: 16px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: color .15s; }
.sup-tabs a:hover { color: var(--ink); }
.sup-tabs a.on { background: var(--row); border-color: var(--b1); color: var(--ink); }
.sup-tabs a:focus-visible { outline: 2px solid var(--o); outline-offset: -2px; }
@media (max-width: 700px) { .sup-tabs { margin: 14px 12px -1px; } .sup-tabs a { padding: 8px 12px; font-size: 15px; } }
/* The tray: what's under the tabs, as a project's .pj-tray. Visits' own parts (.vs-tabs) make its top edge. */
.sup-tabs + .page-body, .sup-tabs + .vs-tabs { margin: 0 28px 28px; max-width: none; padding: 16px; background: var(--row); border: 1px solid var(--b1); border-radius: 10px; }
.sup-tabs:has(> a.on:first-child) + .page-body { border-top-left-radius: 0; }
.sup-tabs + .vs-tabs { margin-bottom: 0; padding: 0 16px; border-bottom: 0; border-radius: 0 10px 0 0; }
.sup-tabs + .vs-tabs + .page-body { margin: 0 28px 28px; max-width: none; padding: 16px; background: var(--row); border: 1px solid var(--b1); border-top: 0; border-radius: 0 0 10px 10px; }
.sup-tabs + .page-body > .sup-parts:first-child { margin: -16px -16px 16px; padding: 0 16px; }
@media (max-width: 700px) {
  .sup-tabs + .page-body, .sup-tabs + .vs-tabs + .page-body { margin: 0 12px 16px; padding: 12px 10px; }
  .sup-tabs + .vs-tabs { margin: 0 12px; padding: 0 10px; }
  .sup-tabs + .page-body > .sup-parts:first-child { margin: -12px -10px 12px; padding: 0 10px; }
}
/* Clients and tickets kept open as tabs (app.js supportPin), after a thin line: dashed until chosen, each with its ×. */
.sup-sep { flex: none; width: 1px; margin: 8px 8px 10px; background: var(--b2); }
.sup-pin { flex: none; display: inline-flex; align-items: center; margin-bottom: -1px; border: 1px dashed var(--b2); border-bottom: 0; border-radius: 10px 10px 0 0; }
.sup-pin + .sup-pin { margin-left: 2px; }
.sup-tabs .sup-pin a { margin: 0; padding: 8px 2px 8px 14px; border: 0; border-radius: 10px 0 0 0; font-size: 14px; font-weight: 600; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.sup-pin button { border: 0; background: none; color: var(--i4); font: inherit; font-size: 17px; line-height: 1; padding: 6px 10px 6px 6px; border-radius: 0 10px 0 0; cursor: pointer; }
.sup-pin button:hover { color: var(--ink); }
.sup-pin button:focus-visible { outline: 2px solid var(--o); outline-offset: -2px; }
.sup-pin.on { background: var(--row); border: 1px solid var(--b1); border-bottom: 0; }
.sup-tabs .sup-pin.on a { color: var(--ink); }
@media (max-width: 700px) { .sup-tabs .sup-pin a { max-width: 150px; padding: 8px 2px 8px 12px; } }
/* A Support page's own parts, underlined as a project's are in its tray (.pj-parts): pageTabs, Monitoring, a client, Visits, On call. */
.subswitch.sup-parts, .ptabs.sup-parts { display: flex; flex-wrap: nowrap; gap: 22px; max-width: none; margin: 0 0 16px; padding: 0; border-radius: 0; background: none; box-shadow: none; border-bottom: 1px solid var(--b1); overflow-x: auto; scrollbar-width: none; }
.sup-parts::-webkit-scrollbar { display: none; }
.subswitch.sup-parts button, .ptabs.sup-parts a { flex: none; padding: 10px 0 9px; border-radius: 0; background: none; box-shadow: none; color: var(--i3); font-size: 14px; font-weight: 500; }
.subswitch.sup-parts button:hover, .ptabs.sup-parts a:hover { color: var(--ink); }
.subswitch.sup-parts button[aria-pressed=true], .ptabs.sup-parts a.on, .ptabs.sup-parts a[aria-current=page] { background: none; color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--o); }
.vs-tabs .sup-parts { margin-bottom: 0; }
/* Support's tab bars on a phone (Phil, 13 Nov 2026: "if i scroll along the tabs ie Overview, Tickets etc they kind of
   drag out of their alignment"): each slides sideways, and only sideways. The chosen folder tab's 1px over the tray's
   edge let a strip be dragged up and down inside itself too, and a swipe past either end went on to move the page. */
.sup-tabs, .sup-parts { overflow-y: hidden; overscroll-behavior-x: contain; }
/* The tabs end where the strip does (it overlaps the tray by 1px itself), so there's nothing below to scroll to. */
.sup-tabs > a, .sup-tabs > .sup-pin { margin-bottom: 0; }
@media (max-width: 860px) {
  .subswitch, .ptabs { overflow-y: hidden; }
  /* Nothing on a Support page widens it, so the page never slides sideways under a finger. */
  body.on-support .view { overflow-x: clip; }
}
/* .cards and Manager's .sm-grid on Support's pages: columns a card keeps when another folds or opens (app.js settle). */
.cards.cc, .sm-grid.cc { columns: auto; display: flex; gap: 16px; align-items: flex-start; }
.cc > .cc-col { flex: 1 1 0; min-width: 0; width: auto; margin: 0; display: block; }
.cc-col > * { margin: 0 0 16px; }
.cc-col > :empty { display: none; }
.cc-col > .sm-card { display: block; }
/* Support → Dashboard (dashboard.js): Today's two halves as one page. */
.dk .ov-stats { margin-bottom: 18px; }
.dk-oc { vertical-align: 1px; }
/* On call this week on the Dashboard (dashboard.js weekCard, 13 Nov 2026): seven days in a row, wrapping on a phone. */
.dk-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.dk-wday { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 6px 8px; border: 1px solid var(--b1); border-radius: 6px; background: var(--row); }
.dk-wday b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-wday.today { border-color: var(--o); background: var(--ot); }
.dk-wday.draft { border-style: dashed; }
.dk-wday.none b { color: var(--i4); }
@media (max-width: 700px) { .dk-week { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dk-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: transparent; }
.dk-dot.down { background: var(--neg); }
.dk-dot.attention { background: var(--o); }
.dk-more { margin-top: 8px; }
/* The Dashboard's handover (dashboard.js handoverCard, sinceCard): still to deal with, notes, and today or since on call. */
.ho-sec + .ho-sec { margin-top: 18px; }
.ho-sec h3 { margin: 0 0 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--i3); }
.ho-line { cursor: pointer; }
.ho-text { overflow-wrap: anywhere; line-height: 1.45; }
.ho-note .small { margin-top: 3px; }
.ho-note.done .ho-text { text-decoration: line-through; color: var(--i3); }
.ho-add { display: flex; gap: 8px; align-items: flex-end; margin-top: 12px; }
.ho-add textarea { flex: 1; min-width: 0; width: 100%; }
@media (pointer: coarse) { .ho-add textarea { font-size: 16px; } }
@media (max-width: 520px) { .ho-add { flex-direction: column; align-items: stretch; } }
.ho-from { margin: -4px 0 10px; }
.ho-nums { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0 0 16px; }
.ho-num { display: flex; flex-direction: column; min-width: 0; }
.ho-num b { font-size: 22px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ho-time { width: auto; min-width: 44px; white-space: nowrap; }
/* Tickets: the Triage queue, the ticket as a mini passport, saved replies (tickets.js). */
.tri-list { display: flex; flex-direction: column; gap: 10px; }
.tri-top { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.tri-assign { display: flex; flex-direction: column; gap: 2px; min-width: 160px; }
.tri-who { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.tri-could { display: flex; gap: 10px; align-items: center; padding: 6px 10px; border: 1px solid var(--b1); border-radius: 6px; flex-wrap: wrap; }
/* Merge… and Find who this is… (11 Nov 2026). */
.tri-mpair { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.tri-mcard { flex: 1 1 200px; min-width: 0; padding: 10px 12px; border: 1px solid var(--b1); border-radius: 8px; overflow-wrap: anywhere; }
.tri-marrow { align-self: center; font-size: 20px; }
.tri-msteps, .tri-mdone { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.tri-mdone { list-style: none; padding-left: 0; }
.tri-mdone .todo { color: var(--neg); }
.tri-find { display: flex; gap: 8px; }
.tri-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.tri-nform { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 14px; }
.tri-nacc { grid-column: 1 / -1; }
.tri-nopt { width: 100%; text-align: left; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.tri-nopt:hover, .tri-nopt:focus-visible { background: var(--b1); }
.tri-tidy { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.tri-tidyhead { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tk-go { display: contents; }
.tk-wrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.tk-site .tk-k { font-weight: 600; margin-bottom: 2px; }
.tk-why { margin: 6px 0 0; padding-left: 18px; }
.tk-kit { padding: 3px 0; }
.tk-kit .mono, .tk-site .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.rp-list { display: flex; flex-direction: column; gap: 6px; max-height: 55vh; overflow-y: auto; }
.rp-item { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 8px 10px; border: 1px solid var(--b1); border-radius: 6px; background: var(--panel); color: var(--ink); font: inherit; cursor: pointer; }
.rp-item:hover, .rp-item:focus-visible { border-color: var(--accent); }
.rp-edit { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--b1); border-radius: 6px; }
.rp-edit-h { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rp-edit-h input { flex: 1; min-width: 160px; }
.offline-bar.off { background: var(--amber-bg); color: var(--amber-fg); }
.offline-bar.bad { background: var(--amber-bg); color: var(--neg); }
.offline-bar .grow { flex: 1; min-width: 200px; }
/* Zoho needs allowing again (planner.js; James, 4 Nov 2026: the link under your name was too easy to miss). Dark words: white on orange is hard to read. */
.zoho-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 6px 16px; border: 0; background: var(--o); color: #17191E; font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.zoho-bar[hidden] { display: none; }
.zoho-bar .zb-go { flex: none; padding: 5px 12px; border-radius: 6px; background: #17191E; color: #fff; font-size: 13px; white-space: nowrap; }
.zoho-bar:hover .zb-go { background: #000; }
/* On a phone it's above the top menu (#hubZohoTop) instead (James, 4 Nov 2026). */
.zoho-bar-top { display: none; }
@media (max-width: 860px) {
  /* Kept at the top as the page scrolls, the menu under it and what sticks under the menu lower by as much. */
  .zoho-bar-top:not([hidden]) { display: flex; position: sticky; top: 0; z-index: 41; height: 44px; padding: 0 12px; }
  .zoho-bar-top > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .app-main > .zoho-bar { display: none; }
  body.zoho-due .app-top { top: 44px; }
  body.zoho-due .vp-bar, body.zoho-due .js-prog, body.zoho-due .jt-side, body.zoho-due .pj-band { top: 96px; }
}
.js-voice { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.js-mic { display: inline-flex; align-items: center; gap: 6px; }
.js-mic.on { border-color: var(--neg); color: var(--neg); }
.js-heard { font-style: italic; min-width: 0; overflow-wrap: anywhere; }
.js-vnotes { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.js-vnote { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.js-vnote .grow { flex: 1; min-width: 140px; }
.vs-ready { margin: 0 0 10px; }
.vs-ready:empty { display: none; }
.js-visit .card-head { flex-wrap: wrap; row-gap: 6px; }
.js-visit .card-head h2 { white-space: nowrap; }

/* ---------------------------------------------------------------- the planner's Calendar view (calview.js, 15 Oct 2026)
   Your own Zoho Calendar and bookings as Google Calendar lays them out: a toolbar, your calendars down
   the side, then the day, week, month or list. Colours are each calendar's own (or the project's). */
/* Only the ⚙ stays: the tools, filters, key and Hide options are the planner's own (James, 25 Oct 2026). */
body.cal-on #viewPlanner .top .tools, body.cal-on #toolsToggle { display: none; }
.cv { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--panel); }
.cv-bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--b1); flex-wrap: wrap; }
.cv-title { margin: 0; font-size: 20px; font-weight: 600; white-space: nowrap; }
.cv-spacer { flex: 1; }
.cv-nav { display: inline-flex; }
.cv-icon { border: 0; background: none; width: 34px; height: 34px; border-radius: 50%; font-size: 20px; line-height: 1; color: var(--i2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.cv-icon:hover { background: var(--b3); color: var(--ink); }
.cv-icon:focus-visible, .cv-create:focus-visible, .cv-dh:focus-visible, .cv-dnum:focus-visible, .cv-more:focus-visible { outline: 2px solid var(--o); outline-offset: 1px; }
.cv-menu { display: none; }
.cv-busy { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--b2); border-top-color: var(--o); visibility: hidden; flex: none; }
.cv-pane.loading .cv-busy { visibility: visible; animation: cvspin .8s linear infinite; }
@keyframes cvspin { to { transform: rotate(360deg); } }
.cv-body { flex: 1; min-height: 0; display: flex; position: relative; }
.cv-side { width: 248px; flex: none; padding: 14px; overflow-y: auto; border-right: 1px solid var(--b1); background: var(--panel); }
.cv-pane { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cv-pbody { flex: 1; min-height: 0; display: flex; position: relative; overflow: hidden; }   /* a calendar list tucked away stays inside its own pane */
.cv-pmain { flex: 1; min-width: 0; display: flex; flex-direction: column; }
/* Split view: two to four calendars side by side, each with its own toolbar and its calendars behind ☰. */
.cv.split .cv-pane + .cv-pane { border-left: 2px solid var(--b2); }
.cv.split .cv-menu { display: inline-flex; }
.cv.split .cv-side { position: absolute; z-index: 40; left: 0; top: 0; bottom: 0; box-shadow: var(--shadow); transform: translateX(-105%); transition: transform .2s; }
.cv.split .cv-pane.side-open .cv-side { transform: none; }
.cv.split .cv-bar { gap: 6px; padding: 8px 10px; }
.cv.split .cv-title { font-size: 16px; }
.cv.split .cv-bar .subswitch button { padding: 6px 12px; }
.cv-splitbtn span[aria-hidden] { font-size: 11px; }
.cv-odays.cv-splitpop { width: 180px; }
.cv-splitpop button:disabled { color: var(--i4); cursor: default; background: none; }
.cv-splitbtn[aria-pressed=true] { background: var(--sel-bg); color: var(--sel-fg); border-color: var(--sel-bg); }
.cv-note { padding: 8px 16px; background: var(--amber-bg); color: var(--amber-fg); font-size: 13px; border-bottom: 1px solid var(--b1); }
.cv-note a { color: inherit; font-weight: 700; }
.cv-main { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.cv-main.cv-month, .cv-main.cv-list { overflow: auto; }

/* Down the side: Create, the small month, your calendars. */
.cv-create { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px 12px 16px; border-radius: 16px; border: 0; background: var(--panel); box-shadow: 0 1px 3px rgba(16, 24, 40, .25), 0 4px 10px rgba(16, 24, 40, .08); font: inherit; font-weight: 600; font-size: 15px; color: var(--ink); cursor: pointer; margin-bottom: 16px; }
.cv-create span { font-size: 22px; line-height: 1; color: var(--o); }
.cv-create:hover { background: var(--ot); }
.cv-mini-h { display: flex; align-items: center; justify-content: space-between; font-size: 14px; margin-bottom: 2px; }
.cv-mini-h .cv-icon { width: 26px; height: 26px; font-size: 16px; }
.cv-mini-g { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.cv-mini-g .wd { font-size: 11px; color: var(--i4); padding: 3px 0; }
.cv-mini-g button { border: 0; background: none; font: inherit; font-size: 12px; width: 28px; height: 28px; border-radius: 50%; margin: 0 auto; cursor: pointer; color: var(--ink); padding: 0; }
.cv-mini-g button.other { color: var(--i5); }
.cv-mini-g button.inr { background: var(--ot); }
.cv-mini-g button:hover { background: var(--b3); }
.cv-mini-g button.sel { background: var(--blue-bg); color: var(--blue-fg); font-weight: 700; }
.cv-mini-g button.today { background: var(--o); color: #14161A; font-weight: 700; }
.cv-side h4 { margin: 18px 0 6px; font-size: 13px; color: var(--i2); }
.cv-calrow { position: relative; display: flex; align-items: center; gap: 10px; padding: 4px 6px; border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--ink); }
.cv-calrow:hover { background: var(--b4); }
.cv-calrow input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.cv-calrow .box { width: 16px; height: 16px; border-radius: 3px; border: 2px solid var(--c); flex: none; display: flex; align-items: center; justify-content: center; }
.cv-calrow input:checked + .box { background: var(--c); }
.cv-calrow input:checked + .box::after { content: '✓'; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.cv-calrow input:focus-visible + .box { outline: 2px solid var(--o); outline-offset: 2px; }
.cv-calrow .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-calrow .tag { font-size: 11px; color: var(--i4); }
.cv-sync, .cv-tips { font-size: 12px; color: var(--i3); margin: 16px 0 0; line-height: 1.45; }

/* Day and week: the all-day strip, then the hours. */
.cv-grid { flex: 1; min-height: 0; display: flex; flex-direction: column; --gut: 56px; --room: 12px; } /* --room: each day's right-hand edge kept clear of events, as Google's (calview.js) */
@media (max-width: 700px) { .cv-grid { --room: 6px; } }
.cv-head, .cv-allday { display: flex; flex: none; }
.cv-allday { border-bottom: 1px solid var(--b2); }
.cv-gut { width: var(--gut); flex: none; }
.cv-heads { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.cv-dh { border: 0; background: none; font: inherit; color: var(--i3); padding: 6px 0 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; }
.cv-dh .wd { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.cv-dh .dn { font-size: 22px; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.cv-dh:hover .dn { background: var(--b3); }
.cv-dh.past .dn { color: var(--i3); }
.cv-dh.today .wd { color: var(--ot-fg); }
.cv-dh.today .dn { background: var(--o); color: #14161A; font-weight: 700; }
.cv-allday .cv-gut span { font-size: 10px; color: var(--i4); display: block; text-align: right; padding: 6px 8px 0 0; }
/* More than three rows: folded, opened with the arrow (calview.js). */
.cv-adtog { display: flex; width: 26px; height: 26px; margin: 2px 6px 0 auto; }
.cv-adtog:hover { background: var(--b3); }
.cv-admore { position: absolute; height: 20px; border: 0; background: none; font: inherit; font-size: 12px; font-weight: 600; color: var(--i2); text-align: left; padding: 0 6px; cursor: pointer; border-radius: 4px; z-index: 2; }
.cv-admore:hover { background: var(--b3); }
.cv-adays { flex: 1; min-width: 0; position: relative; max-height: 30vh; overflow-y: auto; touch-action: pan-y; }
.cv-adcol { position: absolute; top: 0; bottom: 0; width: calc(100% / var(--n)); border-left: 1px solid var(--b1); }
.cv-bar-ev { position: absolute; height: 20px; border-radius: 4px; background: var(--c); color: var(--fg); font-size: 12px; line-height: 20px; padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; z-index: 2; }
.cv-bar-ev.cut-l { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.cv-bar-ev.cut-r { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.cv-scroll { flex: 1; min-height: 0; overflow-y: auto; display: flex; align-items: flex-start; overscroll-behavior: contain; }
.cv-times { width: var(--gut); flex: none; position: relative; height: calc(24 * var(--hr, 48px)); }
.cv-times span { position: absolute; right: 8px; transform: translateY(-50%); font-size: 10px; color: var(--i4); }
.cv-cols { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); position: relative; }
.cv-col { position: relative; border-left: 1px solid var(--b1); background: linear-gradient(to bottom, var(--b1) 1px, transparent 1px) 0 0 / 100% 48px; touch-action: pan-y; }
.cv-col.weekend { background-color: var(--weekend); }
.cv-ev { position: absolute; border-radius: 5px; background: var(--c); color: var(--fg); padding: 2px 6px; font-size: 12px; line-height: 1.3; overflow: hidden; cursor: pointer; box-shadow: 0 0 0 1px var(--panel); display: flex; flex-direction: column; user-select: none; -webkit-user-select: none; }
.cv-ev .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-ev .tm, .cv-ev .sub { opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-ev.short { flex-direction: row; align-items: center; padding-top: 0; padding-bottom: 0; }
.cv-ev.short .t { flex: 0 1 auto; min-width: 0; }
.cv-ev.short .tm { flex: none; margin-right: 4px; } /* first, then the title (calview.js) */
.cv-can { cursor: grab; }
.cv-ev:focus-visible, .cv-bar-ev:focus-visible, .cv-chip:focus-visible, .cv-litem:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.cv-dragging { opacity: .45; }
.cv-nope { cursor: not-allowed; }
/* Over already: paler, as Google's (calview.js isPast). */
.cv-ev.cv-past, .cv-bar-ev.cv-past, .cv-chip-bar.cv-past { background: color-mix(in srgb, var(--c) 45%, var(--panel)); color: var(--ink); }
.cv-chip.cv-past:not(.cv-chip-bar), .cv-litem.cv-past { color: var(--i3); }
.cv-chip.cv-past i, .cv-litem.cv-past i { opacity: .5; }
/* Tentative bookings hatched, as on the planner; invitations not answered yet outlined; declined struck through. */
.cv-ev.cv-tent, .cv-bar-ev.cv-tent, .cv-chip-bar.cv-tent { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 28%, var(--panel)) 0 6px, var(--panel) 6px 12px); color: var(--ink); box-shadow: inset 0 0 0 1px var(--c); }
.cv-ev.cv-pending, .cv-bar-ev.cv-pending, .cv-chip-bar.cv-pending { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--c); }
.cv-ev.cv-declined, .cv-bar-ev.cv-declined, .cv-chip-bar.cv-declined { background: var(--panel); color: var(--i3); box-shadow: inset 0 0 0 1px var(--b2); text-decoration: line-through; }
.cv-rs { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; cursor: ns-resize; }
.cv-ev:hover .cv-rs::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 16px; margin-left: -8px; height: 2px; border-radius: 1px; background: currentColor; opacity: .6; }
.cv-now { position: absolute; left: -1px; right: 0; height: 2px; background: var(--neg); z-index: 40; pointer-events: none; }
.cv-now::before { content: ''; position: absolute; left: -6px; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--neg); }
.cv-ghost { position: absolute; z-index: 45; background: var(--o); color: #14161A; border-radius: 5px; font-size: 12px; font-weight: 600; padding: 2px 6px; opacity: .9; pointer-events: none; box-shadow: var(--shadow); white-space: nowrap; overflow: hidden; }

/* Month. */
.cv-month { flex: 1; display: flex; flex-direction: column; min-height: 560px; }
.cv-mhead { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); border-bottom: 1px solid var(--b1); }
.cv-mhead span { text-align: center; font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--i3); padding: 6px 0; letter-spacing: .04em; }
/* A week to a row; bars across its days over the cells, each cell keeping room for them (calview.js monthHtml). */
.cv-mgrid { flex: 1; display: flex; flex-direction: column; }
.cv-mrow { flex: 1; position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); min-height: 100px; }
.cv-mbars { flex: none; }
.cv-mbar { position: absolute; height: 18px; z-index: 2; }
.cv-mbar.cut-l { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.cv-mbar.cut-r { border-top-right-radius: 0; border-bottom-right-radius: 0; }
/* A day's events, from "N more". */
.cv-daycard { width: 280px; }
.cv-dchead { display: flex; flex-direction: column; align-items: center; width: 100%; border: 0; background: none; font: inherit; font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--i3); cursor: pointer; margin: 0 0 8px; padding: 0; }
.cv-dchead b { font-size: 24px; font-weight: 500; color: var(--ink); width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.cv-dchead:hover b { background: var(--b3); }
.cv-dclist { display: flex; flex-direction: column; gap: 2px; }
.cv-cell { border-right: 1px solid var(--b1); border-bottom: 1px solid var(--b1); padding: 2px 3px 4px; min-width: 0; display: flex; flex-direction: column; gap: 1px; touch-action: pan-y; }
.cv-cell.weekend { background: var(--weekend); }
.cv-cell.other .cv-dnum { color: var(--i5); }
.cv-cell.cv-drop { background: var(--ot); }
.cv-dnum { align-self: center; border: 0; background: none; font: inherit; font-size: 12px; font-weight: 600; min-width: 24px; height: 24px; border-radius: 12px; padding: 0 6px; cursor: pointer; color: var(--ink); margin-bottom: 2px; }
.cv-dnum:hover { background: var(--b3); }
.cv-cell.today .cv-dnum { background: var(--o); color: #14161A; }
.cv-chip { font-size: 12px; line-height: 18px; padding: 0 4px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; color: var(--ink); user-select: none; -webkit-user-select: none; }
.cv-chip i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 4px; }
.cv-chip:hover { background: var(--b3); }
.cv-chip-bar, .cv-chip-bar:hover { background: var(--c); color: var(--fg); }
.cv-chip .h, .cv-bar-ev .h { font-weight: 600; }
/* Each kind of entry by the planner's icon (calview.js kindHtml): a project, an FSM visit, from Zoho Calendar. */
.cv-ev .ki, .cv-bar-ev .ki, .cv-chip-bar .ki { width: 12px; height: 12px; flex: none; vertical-align: -1px; margin-right: 4px; }
.cv-ev.short .ki { margin-right: 3px; }
.cv-chip:not(.cv-chip-bar) .ki { width: 12px; height: 12px; vertical-align: -2px; margin-right: 4px; color: var(--c); }
.cv-litem .ki { width: 14px; height: 14px; flex: none; color: var(--c); }
.cv-chip.cv-declined { text-decoration: line-through; color: var(--i3); }
.cv-more { border: 0; background: none; font: inherit; font-size: 12px; font-weight: 600; color: var(--i2); text-align: left; padding: 0 4px; cursor: pointer; border-radius: 4px; }
.cv-more:hover { background: var(--b3); }

/* List (Google's Schedule): four weeks, the days with something on. */
.cv-list { padding: 8px 16px 40px; }
.cv-lday { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--b1); }
.cv-ldate { width: 100px; flex: none; border: 0; background: none; font: inherit; display: flex; align-items: center; gap: 8px; color: var(--i3); text-align: left; cursor: pointer; align-self: flex-start; font-size: 12px; text-transform: uppercase; padding: 0; }
.cv-ldate .dn { font-size: 22px; color: var(--ink); width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.cv-lday.today .cv-ldate .dn { background: var(--o); color: #14161A; font-weight: 700; }
.cv-lday ul { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; }
.cv-litem { display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 6px; cursor: pointer; }
.cv-litem:hover { background: var(--b4); }
.cv-litem i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.cv-litem .when { width: 120px; flex: none; font-size: 13px; color: var(--i2); }
.cv-litem .what { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-litem.cv-declined .what { text-decoration: line-through; color: var(--i3); }
.cv-empty { padding: 30px 0; }

/* An event's card, and the quick card for a new one. On a phone, a sheet from the bottom. */
.cv-pop { position: fixed; z-index: 70; width: 400px; max-width: calc(100vw - 16px); background: var(--panel); color: var(--ink); border-radius: 12px; box-shadow: 0 12px 40px rgba(16, 24, 40, .28); padding: 16px 18px 14px; max-height: calc(100vh - 16px); overflow: auto; }
.cv-pop.sheet { left: 0; right: 0; bottom: 0; top: auto; width: auto; max-width: none; border-radius: 16px 16px 0 0; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); max-height: 80vh; }
.cv-x { position: absolute; top: 8px; right: 8px; border: 0; background: none; font-size: 22px; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; color: var(--i2); }
.cv-x:hover { background: var(--b3); }
.cv-pop-h { display: flex; gap: 14px; align-items: flex-start; padding-right: 30px; margin-bottom: 10px; }
.cv-pop-h i { width: 14px; height: 14px; border-radius: 4px; background: var(--c); flex: none; margin-top: 6px; }
.cv-pop-h h3 { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.cv-pop-h p { margin: 4px 0 0; font-size: 13px; color: var(--i2); }
.cv-row { display: flex; gap: 14px; font-size: 13px; padding: 5px 0; align-items: flex-start; }
.cv-row .ic { width: 14px; flex: none; text-align: center; color: var(--i3); }
.cv-row a { color: var(--link); }
.cv-notes { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 180px; overflow: auto; }
/* Edit, Delete, Duplicate and Close along an event card's top. */
.cv-pop-icons { display: flex; justify-content: flex-end; gap: 2px; margin: -8px -10px 2px 0; }
.cv-pop-icons .cv-icon { font-size: 17px; width: 32px; height: 32px; }
.cv-pop-icons .cv-icon:hover { background: var(--b3); }
.cv-pop-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.cv-pop-tools a.btn { text-decoration: none; }
.cv-qt { width: 100%; border: 0; border-bottom: 2px solid var(--b2); font: inherit; font-size: 20px; padding: 6px 34px 6px 0; background: none; color: var(--ink); outline: none; margin-bottom: 10px; }
.cv-qt:focus { border-bottom-color: var(--o); }
.cv-qkind { display: flex; }
.cv-qkind button { border: 1px solid var(--b2); background: var(--panel); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; padding: 6px 12px; cursor: pointer; }
.cv-qwhen { margin: 10px 0; font-size: 13px; color: var(--i2); }
.cv-qcal { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
/* The quick card's guests, place and video call. */
.cv-qmore { margin-top: 8px; }
.cv-qrow { display: flex; align-items: center; gap: 12px; margin: 6px 0; font-size: 12px; color: var(--muted); }
.cv-qrow > .ic { width: 16px; flex: none; text-align: center; color: var(--i3); font-size: 14px; }
.cv-qrow > input, .cv-qrow > div { flex: 1; min-width: 0; }
.cv-qrow input, .cv-pfind, .cv-search input { font: inherit; font-size: 14px; border: 1px solid var(--field-line); background-color: var(--field); border-radius: 6px; padding: 6px 8px; color: var(--ink); width: 100%; box-sizing: border-box; }
.cv-qmore .cv-chips { margin: 0 0 4px 28px; }
.cv-qrow .vc label { display: flex; align-items: center; gap: 8px; }
.cv-qrow .vc select { flex: 1; min-width: 0; font: inherit; font-size: 14px; border: 1px solid var(--field-line); background-color: var(--field); border-radius: 6px; padding: 6px 8px; color: var(--ink); }
.cv-qrow .vc-note:empty { display: none; }
.cv-qmore .lb-check { margin-left: 28px; }
.cv-qcal select { font: inherit; font-size: 14px; border: 1px solid var(--field-line); background-color: var(--field); border-radius: 6px; padding: 6px 8px; color: var(--ink); }

/* The event form, and the choice for a repeating event. */
.cv-dlg { width: min(560px, calc(100vw - 32px)); }
.cv-form .lb-check { flex-direction: row; align-items: center; gap: 6px; color: var(--ink); font-size: 13px; }
.cv-form textarea { font: inherit; font-size: 14px; resize: vertical; }
.cv-frow { display: flex; gap: 10px; flex-wrap: wrap; }
.cv-frow label { flex: 1 1 calc(50% - 5px); min-width: 0; }
/* A new event's repeat (calview.js repeatHtml): the days under Every, each as wide as its name. */
.cv-frow .cv-days { flex: 1 1 100%; margin: 0; }
.cv-frow .cv-days label { flex: 0 0 auto; }
.cv-guestbox .cp { display: flex; width: 100%; }
.cv-guestbox .cp input { flex: 1; min-width: 0; }
.cv-err { color: var(--neg); margin: 0; font-size: 13px; }
.cv-err:empty { display: none; }
.cv-choices { display: flex; gap: 8px; flex-wrap: wrap; }
/* Invitations: Yes, Maybe or No on the card; guests and their answers. */
.cv-rsvp { display: flex; align-items: center; gap: 6px; margin: 8px 0 2px 28px; font-size: 13px; }
.cv-rsvp span { color: var(--i2); margin-right: 4px; }
.cv-rsvp button { border: 1px solid var(--b2); background: var(--panel); color: var(--ink); font: inherit; font-weight: 600; padding: 4px 14px; border-radius: 999px; cursor: pointer; }
.cv-rsvp button:hover { border-color: var(--o); }
.cv-rsvp button[aria-pressed=true] { background: var(--sel-bg); color: var(--sel-fg); border-color: var(--sel-bg); }
.cv-rsvp button:focus-visible { outline: 2px solid var(--o); outline-offset: 1px; }
.cv-guests, .cv-chips { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.cv-chips { flex-direction: row; flex-wrap: wrap; gap: 6px; margin: 0; }
.cv-chips:empty { display: none; }
.cv-chips li { display: inline-flex; align-items: center; gap: 5px; background: var(--b3); border-radius: 999px; padding: 2px 4px 2px 10px; font-size: 13px; color: var(--ink); }
.cv-chips button { border: 0; background: none; color: var(--i3); cursor: pointer; font-size: 15px; width: 22px; height: 22px; border-radius: 50%; padding: 0; }
.cv-chips button:hover { background: var(--b2); color: var(--neg); }
.cv-guestbox { display: flex; flex-direction: column; gap: 8px; }
/* Invitations to answer: a count on the Calendar switch, a line above the calendar, and the list to review. */
.pv-switch button { position: relative; }
.cv-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px; background: var(--neg); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; vertical-align: 1px; }
.cv-inv { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 16px; background: var(--blue-bg); color: var(--blue-fg); font-size: 13px; border-bottom: 1px solid var(--b1); }
/* The same line above the planner, for your own invitations (calview.js badge); not under the Calendar. */
#plInv { flex: none; }
body.cal-on #plInv { display: none; }
/* On a phone, one short line with Review beside it, so the planner keeps the screen (James, 16 Nov 2026: two lines took
   71px of it). */
@media (max-width: 640px) {
  #plInv { flex-wrap: nowrap; padding: 5px 16px; }
  #plInv .pl-inv-when { display: none; }
  #plInv .btn { margin-left: auto; }
}
.cv-inv-room { visibility: hidden; box-sizing: border-box; }   /* the first calendar's invitations line: its room kept above the others, so all start level */
.cv-inv .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--neg); flex: none; }
.cv-invlist > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cv-invlist > ul > li { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); }
.cv-invlist .what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cv-invlist .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.cv-invlist > ul > li:has(details[open]) { align-items: flex-start; }
.cv-invguests { margin-top: 4px; }
.cv-invguests summary { cursor: pointer; color: var(--i3); width: fit-content; }
.cv-invguests summary:hover { color: var(--ink); }
.cv-invguests .cv-guests { margin: 6px 0 2px 16px; font-size: 13px; }
/* Planner colours (each project its own), under Planner in the side. */
/* ⚙ by the Planner heading: the calendar's settings (calview.js settings). */
.cv-h4set { display: flex; align-items: center; justify-content: space-between; }
.cv-set { width: 30px; height: 30px; font-size: 19px; margin: -6px 0; color: var(--i2); }
.cv-set:hover { background: var(--b3); }
/* A booking with hours only, placed in order on its day: a dotted edge says its time is worked out, not fixed. */
.cv-ev.cv-hours { box-shadow: inset 3px 0 0 rgba(255, 255, 255, .55), 0 0 0 1px var(--panel); }
.cv-ev.cv-hours.cv-tent { box-shadow: inset 0 0 0 1px var(--c), inset 4px 0 0 var(--c); }
.st-accepted { color: var(--pos); } .st-declined { color: var(--neg); } .st-tentative { color: var(--warn); } .st-needs-action { color: var(--i4); }

/* How the calendar looks (James, 8 Nov 2026): Google Calendar (all of the above), Zoho Calendar or Outlook, chosen
   in Calendar settings (body[data-cal-look], calview.js). Colours, fonts and shapes only: the
   same parts, worked the same way. Tints are mixed with the portal's own surfaces, so dark mode follows. */
body[data-cal-look="zoho"] { --la: #1E6FD9; --la-btn: #1E6FD9; --l-now: #E74C3C; --l-font: 'Zoho Puvi', 'Lato', 'Helvetica Neue', Arial, sans-serif; }
body[data-cal-look="outlook"] { --la: #0F6CBD; --la-btn: #0F6CBD; --l-now: #0F6CBD; --l-font: 'Segoe UI Variable Text', 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body[data-cal-look="zoho"] { --la: #6EA4F0; --la-btn: #2F74D0; }
  :root:not([data-theme="light"]) body[data-cal-look="outlook"] { --la: #479EF5; --la-btn: #115EA3; --l-now: #479EF5; } }
:root[data-theme="dark"] body[data-cal-look="zoho"] { --la: #6EA4F0; --la-btn: #2F74D0; }
:root[data-theme="dark"] body[data-cal-look="outlook"] { --la: #479EF5; --la-btn: #115EA3; --l-now: #479EF5; }
body[data-cal-look="zoho"], body[data-cal-look="outlook"] {
  --la-t: color-mix(in srgb, var(--la) 12%, var(--panel));
  --l-line: color-mix(in srgb, var(--ink) 11%, var(--panel)); --l-line2: color-mix(in srgb, var(--ink) 5%, var(--panel));
  --l-shade: color-mix(in srgb, var(--ink) 4%, var(--panel)); --l-hover: color-mix(in srgb, var(--ink) 6%, var(--panel));
}

/* Both: the font, the accent where Google has the portal's orange, and events as a pale tint with a coloured edge. */
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) :is(#calView, .cv-pop) { font-family: var(--l-font); }
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) :is(.cv-icon, .cv-create, .cv-dh, .cv-dnum, .cv-more, .cv-new):focus-visible { outline-color: var(--la); }
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) .cv-busy { border-top-color: var(--la); }
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) #calView .btn-o { border-radius: 4px; }
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) .cv-icon { border-radius: 4px; }
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) .cv-icon:hover { background: var(--l-hover); }
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) .cv-mini-g button { border-radius: 4px; }
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) .cv-mini-g button.inr { background: var(--la-t); }
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) .cv-mini-g button:hover { background: var(--l-hover); }
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) .cv-mini-g button.sel { background: var(--la-t); color: var(--la); }
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) .cv-mini-g button.today { background: var(--la-btn); color: #fff; }
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) .cv-calrow input:focus-visible + .box { outline-color: var(--la); }
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) .cv-ev,
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) .cv-bar-ev,
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) .cv-chip-bar {
  background: color-mix(in srgb, var(--c) 20%, var(--panel)); color: var(--ink); border-radius: 4px; box-shadow: inset 4px 0 0 var(--c), 0 0 0 1px var(--panel); padding-left: 9px; }
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) .cv-ev .tm, :is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) .cv-ev .sub { opacity: 1; color: color-mix(in srgb, var(--ink) 72%, var(--panel)); }
/* Tentative: stripes in the calendar's colour, as Outlook shows it; not answered yet: outlined; declined: faded and struck through. */
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) :is(.cv-ev, .cv-bar-ev, .cv-chip-bar).cv-tent {
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 24%, var(--panel)) 0 5px, color-mix(in srgb, var(--c) 7%, var(--panel)) 5px 10px); box-shadow: inset 4px 0 0 var(--c), inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, var(--panel)); }
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) :is(.cv-ev, .cv-bar-ev, .cv-chip-bar).cv-pending { background: var(--panel); box-shadow: inset 4px 0 0 var(--c), inset 0 0 0 1px var(--c); }
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) :is(.cv-ev, .cv-bar-ev, .cv-chip-bar).cv-declined { background: var(--l-shade); color: var(--i3); box-shadow: inset 4px 0 0 color-mix(in srgb, var(--c) 40%, var(--panel)); }
/* Hours only (its time worked out, not fixed): a dashed edge. */
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) .cv-ev.cv-hours { outline: 1px dashed color-mix(in srgb, var(--c) 70%, var(--panel)); outline-offset: -1px; }
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) .cv-now { background: var(--l-now); }
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) .cv-now::before { background: var(--l-now); width: 10px; height: 10px; left: -5px; top: -4px; }
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) .cv-ghost { background: var(--la-btn); color: #fff; border-radius: 4px; }
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) .cv-cell.cv-drop { background: var(--la-t); }
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) .cv-times span { font-size: 11px; color: color-mix(in srgb, var(--ink) 62%, var(--panel)); }
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) .cv-chip:hover { background: var(--l-hover); }
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) .cv-cell { border-color: var(--l-line); }
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) .cv-cell.weekend { background: transparent; }
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) .cv-cell.other { background: var(--l-shade); }
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) .cv-dnum { align-self: flex-start; }
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) .cv-cell.today .cv-dnum { background: var(--la-btn); color: #fff; }
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) .cv-more { color: var(--la); }
/* Agenda: a heading for each day, its events under it. */
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) .cv-lday { flex-direction: column; gap: 4px; padding: 12px 0 8px; }
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) .cv-ldate { width: auto; text-transform: none; font-size: 13px; font-weight: 600; color: var(--i2); gap: 6px; }
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) .cv-ldate .dn { font-size: 13px; width: auto; height: auto; color: var(--ink); }
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) .cv-lday.today .cv-ldate, :is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) .cv-lday.today .cv-ldate .dn { background: none; color: var(--la); font-weight: 700; }
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) .cv-litem { border-radius: 4px; }
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) .cv-litem:hover { background: var(--l-hover); }
/* The card. */
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) .cv-pop { border-radius: 8px; box-shadow: 0 8px 16px rgba(0, 0, 0, .14), 0 0 2px rgba(0, 0, 0, .12); }
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) .cv-pop.sheet { border-radius: 12px 12px 0 0; }
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) .cv-pop .btn { border-radius: 4px; }
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) .cv-x { border-radius: 4px; }
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) .cv-rsvp button { border-radius: 4px; }
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) .cv-rsvp button:hover { border-color: var(--la); }
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) .cv-rsvp button[aria-pressed=true] { background: var(--la-btn); border-color: var(--la-btn); color: #fff; }
:is(body[data-cal-look="zoho"], body[data-cal-look="outlook"]) .cv-qt:focus { border-bottom-color: var(--la); }

/* Zoho Calendar, as its web app is (James's screen, 8 Nov 2026): a dark panel down the side (New Event, the account in
   blue, My Calendars and the rest, the small month at the foot over the time zone); a white toolbar with Today in blue,
   plain arrows, "02 - 08 Nov 2026", the period dropdown and Yet to respond; GMT over 12-hour hours; "2 Mon" headings with
   today in blue; light events with a thin coloured bar, nearly square, the place as "@…" above the time. Lato. */
body[data-cal-look="zoho"] { --zs-bg: #262A33; --zs-ink: #E4E6EA; --zs-muted: #9AA0AA; --zs-line: #3A3F4A; --zs-hover: rgba(255, 255, 255, .07); --zs-blue: #6CA0FF; }
body[data-cal-look="zoho"] .cv-side { background: var(--zs-bg); color: var(--zs-ink); border-right: 0; display: flex; flex-direction: column; }
body[data-cal-look="zoho"] .cv-create { display: flex; width: 100%; justify-content: center; border-radius: 4px; background: var(--la-btn); color: #fff; box-shadow: none; padding: 9px 14px; font-size: 15px; font-weight: 400; margin-bottom: 14px; }
body[data-cal-look="zoho"] .cv-create span { color: #fff; font-size: 18px; }
body[data-cal-look="zoho"] .cv-create:hover { background: color-mix(in srgb, var(--la-btn) 86%, #000); }
body[data-cal-look="zoho"] .cv-zsearch { width: auto; order: 0; flex-basis: auto; display: flex; align-items: center; gap: 8px; background: #3A3F4A; border-radius: 4px; padding: 0 10px; margin: 0 0 14px; }
body[data-cal-look="zoho"] .cv-zsearch .ic { color: var(--zs-muted); font-size: 16px; }
body[data-cal-look="zoho"] .cv-zsearch input { flex: 1; min-width: 0; border: 0; background: none; color: var(--zs-ink); font: inherit; font-size: 15px; padding: 9px 0; outline: none; }
body[data-cal-look="zoho"] .cv-zsearch input::placeholder { color: var(--zs-muted); }
body[data-cal-look="zoho"] .cv-zsearch:focus-within { box-shadow: 0 0 0 2px var(--la); }
body[data-cal-look="zoho"] .cv-acct { display: block; color: var(--zs-blue); font-size: 13px; font-weight: 700; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 2px 0 4px; }
body[data-cal-look="zoho"] .cv-side h4 { color: #fff; font-size: 14px; font-weight: 700; margin: 14px 0 6px; }
body[data-cal-look="zoho"] .cv-side .cv-icon { color: var(--zs-muted); }
body[data-cal-look="zoho"] .cv-side .cv-icon:hover { background: var(--zs-hover); color: #fff; }
body[data-cal-look="zoho"] .cv-calrow { color: var(--zs-ink); font-size: 14px; padding-left: 18px; }
body[data-cal-look="zoho"] .cv-calrow:hover { background: var(--zs-hover); }
body[data-cal-look="zoho"] .cv-calrow .box { border-radius: 2px; }
body[data-cal-look="zoho"] .cv-calrow .tag { color: var(--zs-muted); }
body[data-cal-look="zoho"] .cv-side input.cv-pfind { background: #1E2129; border-color: var(--zs-line); color: var(--zs-ink); }
body[data-cal-look="zoho"] .cv-sync, body[data-cal-look="zoho"] .cv-tips { display: none; }   /* Zoho's panel has neither: room for the small month */
/* The small month at the foot, the time zone under it. */
/* Only the calendars and people scroll: New Event and the search above, the small month below, always there (calview.js
   sideHtml; James, 9 Nov 2026). The other looks' side scrolls as a whole, .cv-sscroll laid out as if it weren't there. */
.cv-sscroll { display: contents; }
body[data-cal-look="zoho"] .cv-side { overflow: hidden; }
body[data-cal-look="zoho"] .cv-sscroll { display: block; flex: 1 1 auto; min-height: 96px; overflow-y: auto; overscroll-behavior: contain; margin: 0 -14px; padding: 0 14px; }
body[data-cal-look="zoho"] .cv-mini { order: 90; padding-top: 18px; }
body[data-cal-look="zoho"] .cv-tz { display: block; order: 91; margin: 12px 0 0; text-align: center; color: var(--zs-blue); font-size: 14px; }
body[data-cal-look="zoho"] .cv-mini-h { color: #fff; }
body[data-cal-look="zoho"] .cv-mini-g .wd { color: var(--zs-ink); font-weight: 700; }
body[data-cal-look="zoho"] .cv-mini-g button { color: var(--zs-ink); }
body[data-cal-look="zoho"] .cv-mini-g button.other { color: #6F7580; }
body[data-cal-look="zoho"] .cv-mini-g button:hover { background: var(--zs-hover); }
body[data-cal-look="zoho"] .cv-mini-g button.inr, body[data-cal-look="zoho"] .cv-mini-g button.sel { background: rgba(108, 160, 255, .18); color: #fff; }
body[data-cal-look="zoho"] .cv-mini-g button.today { background: var(--la-btn); color: #fff; }
/* The toolbar. */
body[data-cal-look="zoho"] .cv-today { color: var(--la); border-color: var(--la); background: var(--panel); font-weight: 400; font-size: 14px; }
body[data-cal-look="zoho"] .cv-nav .cv-icon { color: var(--ink); font-size: 22px; width: 30px; height: 30px; }
body[data-cal-look="zoho"] .cv-title { font-size: 19px; font-weight: 400; }
body[data-cal-look="zoho"] .cv-inv:not(#plInv) { display: none; }   /* Yet to respond in the toolbar instead (James, 9 Nov 2026: not both); the planner's line stays */
body[data-cal-look="zoho"] .cv.split .cv-ytr .t { display: none; }   /* side by side, Yet to respond is its mark and count */
body[data-cal-look="zoho"] .cv-zo-view { font: inherit; font-size: 14px; color: var(--ink); border: 1px solid var(--b2); background-color: var(--panel); border-radius: 4px; padding: 6px 10px; min-width: 76px; }
body[data-cal-look="zoho"] .cv-ytr { position: relative; font-weight: 400; font-size: 14px; }
body[data-cal-look="zoho"] .cv-ytrn { position: absolute; top: -8px; right: -6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 4px; background: var(--la-btn); color: #fff; font-size: 11px; font-weight: 700; line-height: 16px; text-align: center; }
/* The day and week: GMT over the hours, "2 Mon" headings, no shading for today or the weekend. */
body[data-cal-look="zoho"] .cv-gmt { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; font-size: 14px; color: var(--ink); line-height: 1.3; }
body[data-cal-look="zoho"] .cv-gmt small { font-size: 12px; color: var(--la); }
body[data-cal-look="zoho"] .cv-head { border-bottom: 1px solid var(--l-line); }
body[data-cal-look="zoho"] .cv-dh { flex-direction: row; align-items: baseline; justify-content: center; gap: 8px; padding: 18px 0 16px; border-left: 1px solid var(--l-line); border-radius: 0; color: var(--ink); }
body[data-cal-look="zoho"] .cv-dh:hover { background: var(--l-hover); }
body[data-cal-look="zoho"] .cv-dh .dn { order: -1; font-size: 18px; font-weight: 400; width: auto; height: auto; border-radius: 0; background: none; color: var(--ink); }
body[data-cal-look="zoho"] .cv-dh:hover .dn { background: none; }
body[data-cal-look="zoho"] .cv-dh .wd { font-size: 14px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink); }
body[data-cal-look="zoho"] .cv-dh.past .dn { color: var(--ink); }
body[data-cal-look="zoho"] .cv-dh.today .dn, body[data-cal-look="zoho"] .cv-dh.today .wd { background: none; color: var(--la); font-weight: 700; }
/* Three or four side by side: the date over the day, as on a tablet. */
body[data-cal-look="zoho"] .cv:is([data-panes="3"], [data-panes="4"]) .cv-dh { flex-direction: column; align-items: center; gap: 0; padding: 8px 0; }
body[data-cal-look="zoho"] .cv:is([data-panes="3"], [data-panes="4"]) .cv-dh .dn { font-size: 16px; }
body[data-cal-look="zoho"] .cv-times span { font-size: 13px; color: var(--ink); }
body[data-cal-look="zoho"] .cv-col { background: linear-gradient(to bottom, var(--l-line) 1px, transparent 1px) 0 0 / 100% var(--hr, 48px), linear-gradient(to bottom, transparent calc(var(--hr, 48px) / 2), var(--l-line2) calc(var(--hr, 48px) / 2), var(--l-line2) calc(var(--hr, 48px) / 2 + 1px), transparent calc(var(--hr, 48px) / 2 + 1px)) 0 0 / 100% var(--hr, 48px); border-left-color: var(--l-line); }
body[data-cal-look="zoho"] .cv-col.weekend { background-color: transparent; }
body[data-cal-look="zoho"] .cv-adcol { border-left-color: var(--l-line); }
body[data-cal-look="zoho"] .cv-allday { border-bottom-color: var(--l-line); }
/* Events: a light fill, a thin bar in the calendar's colour, all but square; the place above the time. */
body[data-cal-look="zoho"] .cv-ev, body[data-cal-look="zoho"] .cv-bar-ev, body[data-cal-look="zoho"] .cv-chip-bar { background: color-mix(in srgb, var(--c) 22%, var(--panel)); border-radius: 2px; box-shadow: inset 3px 0 0 var(--c), 0 0 0 1px var(--panel); padding-left: 7px; }
body[data-cal-look="zoho"] .cv-ev .t { font-weight: 400; }
body[data-cal-look="zoho"] .cv-ev .sub { order: 1; }
body[data-cal-look="zoho"] .cv-ev .tm { order: 2; }
body[data-cal-look="zoho"] .cv-mhead span { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--ink); }
body[data-cal-look="zoho"] .cv-litem i { width: 8px; height: 8px; }
body[data-cal-look="zoho"] .cv-pop-h i { border-radius: 2px; }
body[data-cal-look="zoho"] .cv-grid { --room: 14%; }   /* Zoho leaves a wide margin at each day's right */
body[data-cal-look="outlook"] .cv-grid { --room: 8px; }
/* Zoho Calendar: the side panel the calendar's full height, the toolbar to its right over the calendar (James, 8 Nov
   2026). One calendar on a wide screen; with Split view, or on a phone, the panel is behind ☰ as in the other looks. */
@media (min-width: 861px) {
  body[data-cal-look="zoho"] .cv:not(.split) .cv-pane { display: grid; grid-template-columns: 248px minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); }
  body[data-cal-look="zoho"] .cv:not(.split) .cv-tabs { grid-column: 2; grid-row: 1; }
  body[data-cal-look="zoho"] .cv:not(.split) .cv-bar { grid-column: 2; grid-row: 2; }
  body[data-cal-look="zoho"] .cv:not(.split) .cv-pbody { display: contents; }
  body[data-cal-look="zoho"] .cv:not(.split) .cv-side { grid-column: 1; grid-row: 1 / 4; min-height: 0; width: auto; }
  body[data-cal-look="zoho"] .cv:not(.split) .cv-tpages { grid-column: 2; grid-row: 2 / 4; }
  body[data-cal-look="zoho"] .cv:not(.split) .cv-pmain { grid-column: 2; grid-row: 3; min-height: 0; }
}

/* Zoho Calendar's tabs (calview.js drawTabs): Calendar, the form (Create or Edit Event) and a View event for each event
   clicked, over the calendar right of the side panel. Each but Calendar has ×. */
.cv-tabs { display: flex; align-items: flex-end; gap: 2px; padding: 6px 10px 0; background: var(--zs-bg, var(--dark)); flex: none; overflow-x: auto; scrollbar-width: none; }
.cv-tab .nm { overflow: hidden; text-overflow: ellipsis; }
.cv-tpages { position: relative; min-height: 0; background: var(--panel); overflow: auto; z-index: 5; }
.cv-tpages[hidden] { display: none; }
.cv-vpage { min-height: 100%; }
.cv-vtools { display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 18px; border-bottom: 1px solid var(--l-line, var(--b1)); min-height: 52px; }
.cv-vtools .btn { border-radius: 4px; }
.cv-vtext { display: flex; gap: 8px; flex-wrap: wrap; margin-right: auto; }
.cv-vicons { display: flex; gap: 4px; }
.cv-vicons .cv-icon { color: var(--i2); }
.cv-vbody { padding: 22px 26px 40px; max-width: 760px; }
.cv-vhead { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.cv-vhead i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); flex: none; }
.cv-vhead h2 { margin: 0; font-size: 22px; font-weight: 400; overflow-wrap: anywhere; }
.cv-vbody .cv-row { font-size: 14px; padding: 8px 0; gap: 18px; }
.cv-vbody .cv-row .ic { width: 16px; }
.cv-tabs[hidden] { display: none; }
.cv-tab { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 6px 6px 0 0; padding: 7px 12px; font: inherit; font-size: 14px; background: rgba(255, 255, 255, .08); color: var(--zs-ink, #E4E6EA); cursor: pointer; max-width: 220px; white-space: nowrap; }
.cv-tab .ic { color: var(--la, var(--o)); }
.cv-tab[aria-selected=true] { background: var(--panel); color: var(--ink); }
.cv-tab:hover:not([aria-selected=true]) { background: rgba(255, 255, 255, .14); }
.cv-tab:focus-visible { outline: 2px solid var(--la, var(--o)); outline-offset: -2px; }
.cv-tabx { margin-left: 4px; width: 20px; height: 20px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; color: var(--i3); }
.cv-tabx:hover { background: var(--l-hover, var(--b3)); color: var(--ink); }
#cvDlg.cv-tabbed { position: fixed; margin: 0; max-width: none; max-height: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; overflow: auto; background: var(--panel); z-index: 60; }
/* As a tab the page scrolls, not the form, so its buttons stay at the bottom of the screen. */
#cvDlg.cv-tabbed .cv-form { max-width: 760px; margin: 0 auto; padding: 24px 28px 40px; max-height: none; overflow: visible; --pin-pad: 0px; }
#cvDlg.cv-tabbed .cv-form > h3 { font-size: 20px; font-weight: 400; }
#cvDlg.cv-away { display: none; }
/* Zoho Calendar's Month, 2 Months, 3 Months and Year (calview.js monthHtml, yearHtml). */
.cv-main.cv-month2, .cv-main.cv-month3, .cv-main.cv-year { overflow: auto; }
.cv-mrow.cv-mcount { min-height: 66px; }
.cv-wkno { position: absolute; top: 4px; left: 4px; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--b2); font-size: 10px; line-height: 16px; text-align: center; color: var(--i3); }
.cv-cell { position: relative; }
body[data-cal-look="zoho"] .cv-gut { position: relative; }
body[data-cal-look="zoho"] .cv-head .cv-wkno { left: auto; right: -9px; top: 3px; background: var(--panel); z-index: 2; }
body[data-cal-look="zoho"] .cv-dnum { align-self: flex-end; font-weight: 400; font-size: 14px; border-radius: 3px; }
body[data-cal-look="zoho"] .cv-cell.today { background: color-mix(in srgb, var(--la) 8%, var(--panel)); }
body[data-cal-look="zoho"] .cv-cell.today .cv-dnum { background: var(--la-btn); color: #fff; }
body[data-cal-look="zoho"] .cv-mhead span.tday { color: var(--la); }
body[data-cal-look="zoho"] .cv-more { margin-top: auto; font-weight: 400; font-size: 12px; }
body[data-cal-look="zoho"] .cv-chip { font-size: 13px; }
body[data-cal-look="zoho"] .cv-chip .h { font-weight: 400; margin-right: 4px; }
/* The months' grid, not the calendar round it (calview.js gives that cv-year too; James, 9 Nov 2026: Year came out in
   a quarter of the width, its months squashed). */
.cv-year:not(.cv-main) { width: 100%; box-sizing: border-box; flex: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 40px; padding: 22px 40px 40px; }
.cv-ymonth h4 { margin: 0 0 10px; font-size: 16px; font-weight: 400; }
.cv-ygrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 6px; text-align: center; font-size: 14px; }
.cv-ygrid .wd { color: var(--ink); padding-bottom: 6px; }
.cv-ygrid button { border: 0; background: none; font: inherit; color: var(--ink); padding: 3px 0; border-radius: 3px; cursor: pointer; }
.cv-ygrid button.we { color: var(--i4); }
.cv-ygrid button:hover { background: var(--l-hover, var(--b3)); }
.cv-ygrid button.today { background: var(--la-btn, var(--o)); color: #fff; }
.cv-ygrid button.on:not(.today) { background: var(--l-hover, var(--b3)); }
.cv-yday { width: 344px; padding: 18px 8px 8px; }
/* Zoho Calendar's event card (Month, 2 and 3 Months, a Year day): its icons along the top, the title large. */
body[data-cal-look="zoho"] .cv-pop:not(.cv-yday):not(.cv-quick):not(.cv-daycard):not(.cv-ytrpop):not(.cv-zmenu) { width: 540px; padding: 0 0 16px; border-radius: 4px; }
body[data-cal-look="zoho"] .cv-pop:not(.cv-yday):not(.cv-quick):not(.cv-daycard):not(.cv-ytrpop):not(.cv-zmenu) .cv-pop-icons { position: static; display: flex; justify-content: flex-end; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--l-line); margin-bottom: 18px; }
body[data-cal-look="zoho"] .cv-pop:not(.cv-yday):not(.cv-quick):not(.cv-daycard):not(.cv-ytrpop):not(.cv-zmenu) > :not(.cv-pop-icons) { margin-left: 22px; margin-right: 22px; }
body[data-cal-look="zoho"] .cv-pop-h i { border-radius: 50%; }
body[data-cal-look="zoho"] .cv-pop-h h3 { font-size: 21px; font-weight: 400; }
.cv-yday h3 { margin: 0 0 10px 20px; font-size: 19px; font-weight: 400; }
.cv-yday .cv-x { position: absolute; top: 8px; right: 8px; }
.cv-yday > .muted { margin: 4px 20px 12px; }
.cv-ylist { list-style: none; margin: 0; padding: 0; }
.cv-ylist li + li { border-top: 1px solid var(--l-line, var(--b1)); }
.cv-ylist button { display: flex; gap: 12px; align-items: flex-start; width: 100%; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; padding: 12px 12px; cursor: pointer; border-radius: 4px; }
.cv-ylist button:hover { background: var(--l-hover, var(--b3)); }
.cv-ylist i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); flex: none; margin-top: 4px; opacity: .7; }
.cv-ylist span { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cv-ylist b { font-weight: 400; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-ylist small { font-size: 12px; color: var(--i3); }
@media (max-width: 1100px) { .cv-year:not(.cv-main) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 24px; padding: 16px; } }
@media (max-width: 700px) { .cv-year:not(.cv-main) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Outlook, as James's screens of it (8 Nov 2026, light and dark). */
body[data-cal-look="outlook"] .cv-ol-views button[aria-pressed=true] { background: var(--l-hover); color: var(--ink); font-weight: 400; box-shadow: inset 0 0 0 1px var(--i4); }
body[data-cal-look="outlook"] .cv-oday { display: inline-flex; align-items: center; }
body[data-cal-look="outlook"] .cv-oday .cv-ocaret { padding: 6px 4px; font-size: 12px; color: var(--i2); }
.cv-odays { width: 120px; padding: 4px; border-radius: 6px; }
.cv-odays button { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; font: inherit; font-size: 14px; color: var(--ink); padding: 8px 10px; border-radius: 4px; cursor: pointer; text-align: left; }
.cv-odays button:hover { background: var(--l-hover, var(--b3)); }
.cv-odays .tk { width: 14px; color: var(--la, var(--o)); }
body[data-cal-look="outlook"] .cv-today .ic { color: var(--la); margin-right: 4px; }
body[data-cal-look="outlook"] .cv-navbar .cv-title { font-size: 20px; font-weight: 600; }
/* Day and week: "08" over "Sun", every day's number in blue; the hours "8", "9"; events with title and what's under it. */
body[data-cal-look="outlook"] .cv-dh { flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 12px 6px; border-left: 1px solid var(--l-line); border-radius: 0; }
body[data-cal-look="outlook"] .cv-dh .dn { width: auto; height: auto; border-radius: 0; background: none; order: -1; }
body[data-cal-look="outlook"] .cv-dh .dn, body[data-cal-look="outlook"] .cv-dh.past .dn { color: var(--la); font-weight: 400; font-size: 20px; line-height: 1.1; }
body[data-cal-look="outlook"] .cv-dh .wd { color: var(--la); font-size: 12px; }
body[data-cal-look="outlook"] .cv-dh.today { box-shadow: inset 0 3px 0 var(--la); }
body[data-cal-look="outlook"] .cv-dh.today .dn { font-weight: 600; }
body[data-cal-look="outlook"] .cv-times span { font-size: 12px; right: 10px; }
body[data-cal-look="outlook"] .cv-ev { box-shadow: inset 4px 0 0 color-mix(in srgb, var(--c) 55%, var(--panel)), 0 0 0 1px var(--panel); }
body[data-cal-look="outlook"] .cv-ev:not(.short) .tm { display: none; }
body[data-cal-look="outlook"] .cv-ev .t { font-weight: 600; font-size: 12px; }
body[data-cal-look="outlook"] .cv-ev .sub { font-size: 12px; }
.cv-rep { display: none; }
body[data-cal-look="outlook"] .cv-rep { display: block; position: absolute; right: 6px; bottom: 3px; font-size: 13px; opacity: .75; }
/* A repeat's mark on a month's line at its right end, over the title, so the line stays one line (James, 9 Nov 2026:
   it went under the title, the day ran into the next week). */
body[data-cal-look="outlook"] .cv-chip:not(.cv-chip-bar):has(.cv-rep) { padding-right: 22px; }
body[data-cal-look="outlook"] .cv-chip .cv-rep { top: 0; bottom: auto; right: 5px; line-height: 18px; }
/* Month: weekday names in full, "02" numbers, today in a blue circle in a blue-edged day; events as tinted blocks, a
   strong edge on those to come, past ones paler; holidays a dashed outline. */
body[data-cal-look="outlook"] .cv-mhead span { font-size: 12px; color: var(--ink); }
body[data-cal-look="outlook"] .cv-dnum { align-self: flex-start; font-weight: 400; font-size: 14px; }
/* A line 18px high, as calview.js monthPer counts them, and a day never taller than its week. */
body[data-cal-look="outlook"] .cv-month .cv-cell { overflow: hidden; }
body[data-cal-look="outlook"] .cv-cell.today { box-shadow: inset 0 0 0 1px var(--la); }
body[data-cal-look="outlook"] .cv-cell.today .cv-dnum { background: var(--la-btn); color: #fff; border-radius: 50%; min-width: 24px; padding: 0 4px; font-weight: 600; }
body[data-cal-look="outlook"] .cv-chip:not(.cv-chip-bar) { display: block; text-overflow: ellipsis; background: color-mix(in srgb, var(--c) 30%, var(--panel)); box-shadow: inset 4px 0 0 var(--c); padding: 0 6px 0 9px; border-radius: 3px; margin: 0 2px; color: var(--ink); position: relative; }
body[data-cal-look="outlook"] .cv-chip:not(.cv-chip-bar).cv-past { background: color-mix(in srgb, var(--c) 16%, var(--panel)); box-shadow: none; color: color-mix(in srgb, var(--ink) 75%, var(--panel)); }
body[data-cal-look="outlook"] .cv-chip:not(.cv-chip-bar) i { display: none; }
body[data-cal-look="outlook"] .cv-chip .h { font-weight: 400; }
body[data-cal-look="outlook"] :is(.cv-chip-bar, .cv-bar-ev).cv-hol { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--i4); border: 0; outline: 1px dashed var(--i4); outline-offset: -1px; }
/* Saved views, Time scale and Calendar settings after Split view, on the one bar; only their marks in Split view. */
.cv-oview { display: none; }
body[data-cal-look="outlook"] .cv-oview { display: inline-flex; gap: 2px; border-left: 1px solid var(--l-line); padding-left: 6px; margin-left: 2px; }
body[data-cal-look="outlook"] .cv.split .cv-oview .t { display: none; }
body[data-cal-look="outlook"] .cv.split .cv-obtn { padding: 6px 7px; }
body[data-cal-look="outlook"] .cv.split .cv-splitbtn .t { display: none; }   /* ▥ 3: the periods keep their room */
/* Both bars one line, so the two calendars start level: Calendar settings is by Planner behind ☰, and the periods give
   way first when it's tight. A tablet's bars wrap alike, the periods on a line of their own (the 860px rules). */
@media (min-width: 861px) {
  body[data-cal-look="outlook"] .cv.split .cv-cmd { flex-wrap: nowrap; }
  body[data-cal-look="outlook"] .cv.split .cv-oview [data-cv="settings"] { display: none; }
  body[data-cal-look="outlook"] .cv.split .cv-ol-views { min-width: 0; overflow: hidden; flex-wrap: nowrap; }
}
.cv-obtn { border: 0; background: none; border-radius: 4px; font: inherit; font-size: 14px; color: var(--ink); padding: 6px 10px; cursor: pointer; white-space: nowrap; }
.cv-obtn:hover:not(:disabled) { background: var(--l-hover, var(--b3)); }
.cv-obtn:disabled { color: var(--i5); cursor: default; }
.cv-osavedpop { width: 230px; padding: 4px; border-radius: 6px; overflow: visible; }
.cv-osv { position: relative; }
.cv-osv .nm, .cv-osvsave { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; font: inherit; font-size: 14px; color: var(--ink); padding: 8px 10px; border-radius: 4px; cursor: pointer; text-align: left; }
.cv-osv .nm i { width: 14px; height: 14px; border-radius: 50%; background: var(--i4); flex: none; }
.cv-osv .nm span { margin-left: auto; color: var(--i3); }
.cv-osv .nm:hover, .cv-osv.open .nm, .cv-osvsave:hover { background: var(--l-hover, var(--b3)); }
.cv-osvsave { border-top: 1px solid var(--l-line, var(--b1)); border-radius: 0 0 4px 4px; padding-left: 34px; }
.cv-osvsave:disabled { color: var(--i5); cursor: default; background: none; }
.cv-osv.on .nm { box-shadow: inset 0 0 0 1px var(--i3); }
.cv-osv .sub { position: absolute; left: calc(100% + 8px); top: 0; background: var(--panel); border-radius: 6px; box-shadow: var(--shadow); padding: 4px; width: 130px; z-index: 2; }
.cv-osv .sub button { display: block; width: 100%; border: 0; background: none; font: inherit; font-size: 14px; color: var(--ink); padding: 8px 10px; text-align: left; border-radius: 4px; cursor: pointer; }
.cv-osv .sub button:hover { background: var(--l-hover, var(--b3)); }
.cv-svname { position: relative; }
.cv-svname .cv-x { position: absolute; top: 10px; right: 10px; }
.cv-osvform { display: flex; gap: 6px; padding: 6px; }
.cv-osvform input { flex: 1; min-width: 0; font: inherit; font-size: 14px; border: 1px solid var(--field-line); background: var(--field); color: var(--ink); border-radius: 4px; padding: 5px 8px; }
/* The hours as tall as the Time scale makes them, a faint line each row (--slot). */
body[data-cal-look="outlook"] .cv-col { background: linear-gradient(to bottom, var(--l-line) 1px, transparent 1px) 0 0 / 100% var(--hr, 48px),
    linear-gradient(to bottom, var(--l-line2) 1px, transparent 1px) 0 0 / 100% var(--slot, 24px),
    linear-gradient(to bottom, var(--l-shade) var(--ws, 0), var(--panel) var(--ws, 0), var(--panel) var(--we, 100%), var(--l-shade) var(--we, 100%)); }
body[data-cal-look="outlook"] .cv-col.off { background-image: linear-gradient(to bottom, var(--l-line) 1px, transparent 1px), linear-gradient(to bottom, var(--l-line2) 1px, transparent 1px); background-size: 100% var(--hr, 48px), 100% var(--slot, 24px); }

/* Hovering an event: an outline, and circles at the top and bottom to drag its start and end. */
.cv-rt { display: none; }
body[data-cal-look="outlook"] .cv-ev.cv-can:hover, body[data-cal-look="outlook"] .cv-ev:focus-visible { outline: 2px solid var(--ink); outline-offset: -1px; }
body[data-cal-look="outlook"] .cv-rt { display: block; position: absolute; left: 0; right: 0; top: 0; height: 8px; cursor: ns-resize; }
body[data-cal-look="outlook"] .cv-ev:hover .cv-rt::after, body[data-cal-look="outlook"] .cv-ev:hover .cv-rs::after { content: ''; position: absolute; left: 50%; width: 9px; height: 9px; margin-left: -5px; border-radius: 50%; background: var(--panel); border: 2px solid var(--ink); opacity: 1; box-sizing: border-box; }
body[data-cal-look="outlook"] .cv-ev:hover .cv-rt::after { top: 1px; }
body[data-cal-look="outlook"] .cv-ev:hover .cv-rs::after { bottom: 1px; }
/* The peek: the calendar's colour along the top. */
.cv-opeek { width: 390px; padding: 12px 16px 14px; border-radius: 6px; border-top: 4px solid var(--c); }
.cv-opeek .cal { font-size: 12px; font-weight: 600; padding-right: 30px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-opeek .cv-oexp { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; font-size: 16px; color: var(--la, var(--link)); }
.cv-opeek h3 { margin: 6px 0 4px; font-size: 20px; font-weight: 600; overflow-wrap: anywhere; }
.cv-opeek .when { margin: 0 0 6px; font-size: 14px; }
.cv-opeek .cv-pop-tools .btn { border-radius: 4px; }
/* The event form as Outlook's window: wide, its name along the top, Save first along a bar. */
body[data-cal-look="outlook"] #cvDlg:not(.vd-dlg) { width: min(1040px, calc(100vw - 48px)); }
body[data-cal-look="outlook"] .cv-form { display: flex; flex-direction: column; gap: 12px; }
body[data-cal-look="outlook"] .cv-form > h3 { order: -3; font-size: 13px; font-weight: 400; color: var(--i2); margin: 0; }
body[data-cal-look="outlook"] .cv-form > .cv-factions { order: -2; justify-content: flex-start; padding: 8px; border-radius: 6px; background: var(--l-shade); margin: 0; }
body[data-cal-look="outlook"] .cv-factions .btn-p { order: -2; background: var(--la-btn); border-color: var(--la-btn); color: #fff; }
body[data-cal-look="outlook"] .cv-factions [data-cvf="cancel"] { order: -1; }
.cv-obanner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border: 1px solid var(--b2); border-radius: 4px; padding: 6px 12px; margin: 0; font-size: 13px; }
.cv-obanner label { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--b2); border-radius: 3px; padding: 2px 8px; cursor: pointer; font-size: 12px; }
.cv-obanner label:has(input:checked) { background: var(--l-hover, var(--b3)); border-color: var(--i4); }
.cv-obanner input { margin: 0; }
.cv-discard { position: absolute; inset: 0; background: var(--scrim); display: flex; align-items: center; justify-content: center; z-index: 5; border-radius: inherit; }
.cv-discard > div { background: var(--panel); border-radius: 8px; padding: 20px 24px; width: min(420px, calc(100% - 32px)); box-shadow: var(--shadow); }
.cv-discard h4 { margin: 0 0 10px; font-size: 18px; }
#cvDlgBody { position: relative; }
/* Down the side: square ticks, the small month folds away, the week shown as a band in it. */
body[data-cal-look="outlook"] .cv-calrow .box { border-radius: 3px; width: 16px; height: 16px; }
body[data-cal-look="outlook"] .cv-side h4 { font-weight: 400; }
.cv-minifold { display: none; }
body[data-cal-look="outlook"] .cv-minifold { display: inline-flex; width: 24px; height: 24px; font-size: 14px; margin-right: 4px; }
body[data-cal-look="outlook"] .cv-mini-h { justify-content: flex-start; }
body[data-cal-look="outlook"] .cv-mini-h > span { margin-left: auto; }
body[data-cal-look="outlook"] .cv-mini.folded .cv-mini-g { display: none; }
body[data-cal-look="outlook"] .cv-mini-g button.inr { border-radius: 0; box-shadow: inset 0 1px 0 var(--la), inset 0 -1px 0 var(--la); }

/* Zoho Calendar's ⋮ menu (calview.js zoMenu): its layout, week numbers, light or bold events, all events in a day. */
.cv-zmenu { width: 330px; padding: 16px 18px; border-radius: 4px; }
.cv-zlay { padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--l-line, var(--b1)); }
.cv-zlay b { display: block; font-weight: 400; margin-bottom: 8px; }
.cv-zlay div { display: flex; gap: 6px; flex-wrap: wrap; }
.cv-zlay button { border: 1px solid var(--b2); background: var(--panel); color: var(--ink); font: inherit; font-size: 13px; padding: 4px 8px; border-radius: 3px; cursor: pointer; }
.cv-zlay button[aria-pressed=true] { background: var(--la-btn, var(--o)); border-color: var(--la-btn, var(--o)); color: #fff; }
.cv-zopt { display: flex; align-items: center; gap: 8px; padding: 9px 0; font-size: 14px; cursor: pointer; }
body.cv-nowk .cv-wkno { display: none !important; }
/* Light event colours on: each event filled in its calendar's colour with dark words, light mode and dark (Zoho's). */
body.cv-solid .cv-ev:not(.cv-tent):not(.cv-pending):not(.cv-declined), body.cv-solid .cv-bar-ev:not(.cv-tent):not(.cv-pending):not(.cv-declined) { background: var(--c); color: #1D2025; }
body.cv-solid .cv-ev:not(.cv-tent):not(.cv-pending):not(.cv-declined) .tm, body.cv-solid .cv-ev:not(.cv-tent):not(.cv-pending):not(.cv-declined) .sub { color: inherit; opacity: .85; }

/* Zoho Calendar's Yet to respond (calview.js ytrOpen): the invitations under the button. */
.cv-ytrpop { width: 310px; padding: 0 0 8px; border-radius: 4px; max-height: 70vh; overflow: auto; }
.cv-ytrh { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px 12px 18px; border-bottom: 1px solid var(--l-line, var(--b1)); }
.cv-ytrh b { font-size: 16px; }
.cv-ytrpop h4 { margin: 14px 18px 8px; font-size: 14px; font-weight: 700; }
.cv-ytri { display: flex; gap: 10px; padding: 4px 18px 10px; }
.cv-ytri .av { width: 30px; height: 30px; border-radius: 50%; background: var(--la-btn, var(--o)); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.cv-ytri > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.cv-ytri b { font-weight: 400; font-size: 14px; }
.cv-ytri .tm { display: flex; align-items: center; gap: 4px; color: var(--i2); }
.cv-ytri .tm .cv-icon { width: 22px; height: 22px; font-size: 13px; color: var(--la, var(--link)); }
.cv-ytri .acts { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 2px; }
.cv-ytri .acts button { border: 1px solid var(--b2); background: var(--panel); color: var(--ink); font: inherit; font-size: 13px; padding: 3px 8px; border-radius: 3px; cursor: pointer; }
.cv-ytri .acts button:hover { border-color: var(--la, var(--o)); }
.cv-ytri .acts .btn { border-radius: 3px; }

/* Only in Zoho Calendar's look. */
.cv-gmt, .cv-acct, .cv-tz, .cv-wkno { display: none; }
body[data-cal-look="zoho"] .cv-wkno { display: block; }

/* Outlook: a command bar (a blue New event, the periods, Split view), then Today, the up and down arrows and the
   month; the calendar a white card on a grey frame; day headings "3 Mon" with today in blue under a blue bar; the
   hours outside your working day shaded; round ticks for the calendars; events with a strong left bar. Segoe UI. */
body[data-cal-look="outlook"] #calView { background: var(--l-shade); }
body[data-cal-look="outlook"] .cv-cmd { background: var(--panel); gap: 4px; padding: 6px 12px; }
body[data-cal-look="outlook"] .cv-navbar { border-bottom: 0; padding: 8px 16px 6px; }
body[data-cal-look="outlook"] .cv-new { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 4px; background: var(--la-btn); color: #fff; font: inherit; font-size: 14px; font-weight: 600; padding: 6px 14px; cursor: pointer; margin-right: 8px; white-space: nowrap; }
body[data-cal-look="outlook"] .cv-new span { font-size: 16px; line-height: 1; }
body[data-cal-look="outlook"] .cv-new:hover { background: color-mix(in srgb, var(--la-btn) 86%, #000); }
body[data-cal-look="outlook"] .cv-new:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
body[data-cal-look="outlook"] .cv-ol-views { display: inline-flex; gap: 2px; flex-wrap: wrap; }
body[data-cal-look="outlook"] .cv-ol-views button, body[data-cal-look="outlook"] .cv-cmd .cv-splitbtn { border: 0; background: none; border-radius: 4px; font: inherit; font-size: 14px; color: var(--ink); padding: 6px 10px; cursor: pointer; white-space: nowrap; }
body[data-cal-look="outlook"] .cv-ol-views button:hover, body[data-cal-look="outlook"] .cv-cmd .cv-splitbtn:hover { background: var(--l-hover); }
body[data-cal-look="outlook"] .cv-ol-views button[aria-pressed=true], body[data-cal-look="outlook"] .cv-cmd .cv-splitbtn[aria-pressed=true] { background: var(--la-t); color: var(--la); font-weight: 600; }
body[data-cal-look="outlook"] .cv-ol-views button:focus-visible { outline: 2px solid var(--la); outline-offset: 1px; }
body[data-cal-look="outlook"] .cv-cmd .cv-splitbtn { border-left: 1px solid var(--l-line); border-radius: 0 4px 4px 0; margin-left: 6px; }
body[data-cal-look="outlook"] .cv-today { background: var(--panel); }
body[data-cal-look="outlook"] .cv-navbar .cv-icon { font-size: 17px; width: 30px; height: 30px; }
body[data-cal-look="outlook"] .cv-side { background: transparent; border-right: 0; padding-top: 10px; }
body[data-cal-look="outlook"] .cv.split .cv-side { background: var(--panel); }   /* over the calendar behind ☰ (James, 12 Nov 2026: you could see through it) */
body[data-cal-look="outlook"] .cv-side .cv-create { display: none; }   /* New event is in the command bar */
body[data-cal-look="outlook"] .cv-side h4 { font-size: 14px; font-weight: 600; color: var(--ink); }
body[data-cal-look="outlook"] .cv-calrow:hover { background: var(--l-hover); }
body[data-cal-look="outlook"] .cv-pmain { background: var(--panel); border-radius: 8px; margin: 0 8px 8px 0; box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 2px 4px rgba(0, 0, 0, .06); overflow: hidden; }
body[data-cal-look="outlook"] .cv-dh:hover { background: var(--l-hover); }
body[data-cal-look="outlook"] .cv-dh:hover .dn { background: none; }
body[data-cal-look="outlook"] .cv-dh .wd { font-weight: 400; text-transform: none; letter-spacing: 0; }
/* The hours: a line each hour, a fainter one each half hour, and outside your working day shaded (all of a day you don't work). */
body[data-cal-look="outlook"] .cv-col { border-left-color: var(--l-line);
  background: linear-gradient(to bottom, var(--l-line) 1px, transparent 1px) 0 0 / 100% 48px,
    linear-gradient(to bottom, transparent 24px, var(--l-line2) 24px, var(--l-line2) 25px, transparent 25px) 0 0 / 100% 48px,
    linear-gradient(to bottom, var(--l-shade) var(--ws, 0), var(--panel) var(--ws, 0), var(--panel) var(--we, 100%), var(--l-shade) var(--we, 100%)); }
body[data-cal-look="outlook"] .cv-col.off { background-color: var(--l-shade);
  background-image: linear-gradient(to bottom, var(--l-line) 1px, transparent 1px), linear-gradient(to bottom, transparent 24px, var(--l-line2) 24px, var(--l-line2) 25px, transparent 25px); background-size: 100% 48px; }
body[data-cal-look="outlook"] .cv-times span { transform: none; margin-top: 3px; }
body[data-cal-look="outlook"] .cv-adcol { border-left-color: var(--l-line); }
body[data-cal-look="outlook"] .cv-allday { border-bottom-color: var(--l-line); }
body[data-cal-look="outlook"] .cv-mhead span { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 12px; text-align: left; padding-left: 8px; }
body[data-cal-look="outlook"] .cv-litem i { width: 4px; height: 30px; border-radius: 2px; }
body[data-cal-look="outlook"] .cv-pop-h i { width: 4px; height: 44px; border-radius: 2px; margin-top: 2px; }
body[data-cal-look="outlook"] .cv-pop-h h3 { font-size: 20px; }
body[data-cal-look="outlook"] .cv.split .cv-cmd { padding: 6px 8px; }
body[data-cal-look="outlook"] .cv.split .cv-new { padding: 6px 10px; margin-right: 4px; }
body[data-cal-look="outlook"] .cv.split .cv-ol-views button { padding: 6px 7px; font-size: 13px; }
@media (max-width: 860px) {
  body[data-cal-look="outlook"] .cv-pmain { margin: 0; border-radius: 0; }
  body[data-cal-look="outlook"] .cv-cmd { padding: 6px 8px; }
  body[data-cal-look="outlook"] .cv-ol-views { order: 10; width: 100%; }
  body[data-cal-look="outlook"] .cv-ol-views button { flex: 1; padding: 6px 4px; font-size: 13px; }
  body[data-cal-look="outlook"] .cv-oview .t { display: none; }
  body[data-cal-look="outlook"] .cv-navbar { padding: 6px 10px; }
  body[data-cal-look="outlook"] .cv-dh { padding: 6px 4px; gap: 3px; flex-direction: column; align-items: center; }
  body[data-cal-look="outlook"] .cv-dh .dn { font-size: 16px; }
  body[data-cal-look="outlook"] .cv-side { background: var(--panel); }
  body[data-cal-look="zoho"] .cv-zo-view { min-width: 0; padding: 5px 8px; }
  body[data-cal-look="zoho"] .cv-grid { --room: 6px; }
  body[data-cal-look="zoho"] .cv-dh { flex-direction: column; align-items: center; gap: 0; padding: 8px 0; }
  body[data-cal-look="zoho"] .cv-dh .dn { font-size: 16px; }
  body[data-cal-look="zoho"] .cv-ytr { padding: 4px 8px; }
}

@media (max-width: 860px) {
  .cv-menu { display: inline-flex; }
  .cv-side { position: absolute; z-index: 40; left: 0; top: 0; bottom: 0; box-shadow: var(--shadow); transform: translateX(-105%); transition: transform .2s; }
  .cv-pane.side-open .cv-side { transform: none; }
  .cv-bar { padding: 8px 10px; gap: 6px; }
  .cv-title { font-size: 16px; }
  .cv-bar .subswitch { order: 10; width: 100%; display: flex; }
  .cv-bar .subswitch button { flex: 1; }
  .cv-grid { --gut: 40px; }
  .cv-dh .dn { font-size: 16px; width: 30px; height: 30px; }
  .cv-mgrid { grid-auto-rows: minmax(72px, 1fr); }
  .cv-chip { font-size: 10px; line-height: 15px; }
  .cv-chip .h, .cv-chip i { display: none; }
  .cv-litem .when { width: 84px; font-size: 12px; }
  .cv-ldate { width: 64px; }
}
@media (prefers-reduced-motion: reduce) { .cv-side { transition: none; } .cv-pane.loading .cv-busy { animation: none; } }
/* Stock → Warehouse: importing a CSV of products (stockcat.js importDialog). */
.ic-sec { display: flex; flex-direction: column; gap: 6px; }
.ic-list { max-height: 34vh; overflow: auto; border: 1px solid var(--line); border-radius: 4px; }
.labour-dlg .ic-row { display: flex; flex-direction: row; gap: 8px; align-items: flex-start; padding: 6px 10px; border-top: 1px solid var(--line); font-weight: 400; color: var(--ink); font-size: 13px; }
.ic-row:first-child { border-top: 0; }
.ic-row input { margin-top: 3px; }
.ic-danger { padding: 12px 14px; border-radius: 4px; background: var(--red-bg); border: 1px solid var(--neg); color: var(--red-fg); font-size: 14px; }
.ic-danger ul { margin: 6px 0 0; padding-left: 18px; }
.btn.ic-danger-btn { background: var(--neg); border-color: var(--neg); color: #fff; }
.btn.ic-danger-btn:disabled { opacity: .45; }
/* Stock → Warehouse: the product popup's parts and rows, and Warehouse ⚙'s lists (stockcat.js). */
.pd-sec { gap: 10px; }
.pd-sec h3 { margin: 0; }
.pd-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.pd-row.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pd-row.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pd-row.c-sup { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) 110px; }
.pd-row.c-merge { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
.pd-row .f-in { width: 100%; min-width: 0; }
.pd-ask { display: flex; flex-direction: column; gap: 10px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 6px; }
.st-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 6px; max-height: 46vh; overflow: auto; }
.st-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 6px 10px; border-top: 1px solid var(--line); }
.st-row:first-child { border-top: 0; }
.st-row > .f-in { flex: 1 1 180px; min-width: 0; }
.st-row.gone > .f-in { text-decoration: line-through; opacity: .6; }
@media (max-width: 600px) {
  .pd-row.c2, .pd-row.c3, .pd-row.c-merge { grid-template-columns: minmax(0, 1fr); }
  .pd-row.c-sup { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pd-row.c-sup > :first-child { grid-column: 1 / -1; }
}

.labour-dlg.vd-dlg { width: min(480px, calc(100vw - 32px)); }
/* Inventory → Tools (kit.js): categories between the rows, the who-has-what grid, and the popups' rows. */
.kt-cat { padding: 10px 14px 4px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--i2); border-top: 1px solid var(--line); }
/* In a table, a category stands out from its tools (James, 19 Oct 2026): a shaded band with the brand's orange at the side. */
.tbl .kt-cat { padding: 12px 20px 10px 17px; font-size: 12.5px; color: var(--ink); background: var(--row); border-top: 1px solid var(--b2); border-bottom: 1px solid var(--b2); border-left: 3px solid var(--o); min-width: 640px; }
.kt-link { margin-top: 2px; }
.kt-grid { overflow: auto; max-height: calc(100vh - 230px); max-height: calc(100dvh - 230px); }
.kt-grid table { border-collapse: separate; border-spacing: 0; width: auto; font-size: 13px; }
.kt-grid td, .kt-grid thead th:not(.kt-tool) { min-width: 84px; }
.kt-grid th, .kt-grid td { padding: 4px 6px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.kt-grid thead th { position: sticky; top: 0; z-index: 2; background: var(--panel); font-weight: 700; }
.kt-grid .kt-tool { position: sticky; left: 0; z-index: 1; background: var(--panel); text-align: left; font-weight: 600; min-width: 220px; white-space: normal; }
.kt-grid thead .kt-tool { z-index: 3; }
.kt-grid .kt-cat-row th { text-align: left; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); background: var(--row); position: sticky; left: 0; padding: 12px 6px 8px; border-left: 3px solid var(--o); }
.kt-grid td.has { background: var(--green-bg); color: var(--green-fg); }
.kt-grid td.missing { background: var(--red-bg); color: var(--red-fg); }
.kt-cell { all: unset; cursor: pointer; display: block; min-width: 28px; padding: 2px 4px; border-radius: 4px; }
.kt-cell:hover, .kt-cell:focus-visible { outline: 2px solid var(--o); }
.pd-row.c-tool { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.pd-row.c-hold { grid-template-columns: 110px minmax(0, 1fr); }
@media (max-width: 600px) { .pd-row.c-tool { grid-template-columns: minmax(0, 1fr); } }
/* Inventory → Vehicles (fleet.js): only for whoever may see them; a vehicle's fields as label and value. */
body:not(.can-fleet) .fleet-only { display: none; }
body:not(.can-usage) .usage-only { display: none; }
body:not(.can-kb) .kb-only { display: none; }
body:not(.can-expenses) .expenses-only { display: none; }
body:not(.can-parking) .parking-only { display: none; }
body:not(.can-finance) .finance-only { display: none; }
/* Finance → Expenses (expenses.js): a row per expense or report; on a phone each wraps rather than scrolling sideways. */
.ex-row { display: grid; grid-template-columns: 28px 96px minmax(0, 1fr) 96px 150px auto; gap: 10px 14px; padding: 12px 20px; border-bottom: 1px solid var(--b4); align-items: center; font-size: 14px; }
.ex-row.rep { grid-template-columns: 96px minmax(0, 1fr) 96px 150px auto; }
/* A report's own lines, in its popup; and theirs not sent yet, to tick and add to it. */
.ex-row.ln { grid-template-columns: 96px minmax(0, 1fr) 96px auto; }
.ex-row.ex-add { grid-template-columns: 28px 96px minmax(0, 1fr) 96px; cursor: pointer; }
.ex-row:last-child { border-bottom: 0; }
.ex-row .nm { font-weight: 600; }
.ex-row .s2 { color: var(--i4); font-size: 13px; margin-top: 2px; }
/* Why it was rejected, as the approver said (James, 4 Nov 2026). */
.ex-row .s2.ex-why { color: var(--red-fg); }
.ex-row .amt { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.ex-row .acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.ex-row input[type=checkbox] { width: 18px; height: 18px; }
/* Needed in the expense form, as Zoho Expense marks them. */
.ex-req { color: var(--red-fg); font-weight: 700; }
dialog label.ex-claim { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); font-size: 13px; }
/* VAT inclusive, the VAT amount and its ✎ on one line under the rate, as Zoho Expense has them; the amount to change below. */
.pd-row.ex-vat { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.ex-vat #exVatWrap { flex: 1 1 100%; }
.ex-bar { display: flex; gap: 8px 12px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.ex-bar .grow { flex: 1; }
/* Receipts dragged onto Expenses (James, 4 Nov 2026): the page outlined while one's held over it. Nothing to drag on a phone. */
#viewExpenses.ex-dropping .page-body { outline: 2px dashed var(--accent); outline-offset: 4px; border-radius: 12px; background: var(--note-bg); }
@media (hover: none) { .ex-bar .ex-drag { display: none; } }
.ex-read { display: flex; gap: 8px 12px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.ex-total { padding: 12px 20px; display: flex; justify-content: flex-end; gap: 12px; font-weight: 700; border-top: 1px solid var(--b3); }
/* Per diem: a trip's days, before they're claimed. */
.ex-days { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.ex-days th { text-align: left; font-weight: 600; color: var(--i4); padding: 6px 8px; border-bottom: 1px solid var(--b3); }
.ex-days td { padding: 8px; border-bottom: 1px solid var(--b4); }
/* The expense form with its receipt beside it, kept in view while the fields scroll; above them on a phone. */
.labour-dlg.ex-dlg { width: min(1040px, calc(100vw - 32px)); }
.ex-split { display: flex; gap: 20px; align-items: flex-start; }
.ex-rcpt-wrap { flex: 1 1 0; min-width: 0; position: sticky; top: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ex-rcpt { align-self: stretch; height: min(68vh, 640px); height: min(68dvh, 640px); overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--b4); display: flex; align-items: flex-start; justify-content: center; }
.ex-rcpt .empty { align-self: center; }
.ex-rcpt img { display: block; max-width: 100%; height: auto; cursor: zoom-in; }
.ex-rcpt.zoom { justify-content: flex-start; }
.ex-rcpt.zoom img { max-width: none; cursor: zoom-out; }
.ex-rcpt.pdf { overflow: hidden; }
.ex-rcpt iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.ex-form { flex: 0 0 440px; min-width: 0; }
@media (max-width: 780px) {
  .ex-split { flex-direction: column; align-items: stretch; }
  .ex-rcpt-wrap { position: static; }
  .ex-rcpt { height: 260px; }
  .ex-form { flex: none; }
}
@media (max-width: 720px) {
  .ex-row, .ex-row.rep, .ex-row.ln, .ex-row.ex-add { display: flex; flex-wrap: wrap; padding: 12px 14px; }
  .ex-row > .what { flex: 1 1 60%; min-width: 0; }
  .ex-row > .amt { margin-left: auto; }
  .ex-row > .acts { flex: 1 1 100%; justify-content: flex-start; }
}
/* Finance → Parking charges (parking.js): the month by month table, and the chosen month's projects. */
.pk-t tbody tr.pk-row { cursor: pointer; }
.pk-t tbody tr.pk-row:hover th, .pk-t tbody tr.pk-row:hover td { background: var(--row); }
.pk-t tbody tr.pk-on th, .pk-t tbody tr.pk-on td { background: var(--ot); }
.pk-t tbody tr.pk-on th { box-shadow: inset 3px 0 0 var(--o); }
.pk-proj { border-bottom: 1px solid var(--b3); padding: 12px 20px 14px; }
.pk-proj:last-of-type { border-bottom: 0; }
.pk-ph { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.pk-ph .s2, .pk-where .s2 { display: block; color: var(--i4); font-size: 13px; margin-top: 2px; font-weight: 400; }
.pk-amt { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
/* Each month's or project's table has the same columns, so they line up one under another. */
.pk-lines { table-layout: fixed; min-width: 560px; }
.pk-lines th:nth-child(1) { width: 80px; } .pk-lines th:nth-child(2) { width: 130px; }
.pk-lines th:nth-child(4), .pk-lines th:nth-child(5), .pk-lines th:nth-child(6) { width: 88px; } .pk-lines th:nth-child(7) { width: 96px; }
.pk-lines tbody th, .pk-lines td { white-space: normal; }
.pk-lines td:first-child { white-space: nowrap; }
.pk-lines td:last-child { text-align: right; }
.pk-also { border-top: 1px solid var(--b3); }
.pk-also > summary { padding: 12px 20px; cursor: pointer; }
.pk-also > summary:hover { color: var(--i2); }
.pk-sec { padding: 0 20px 14px; }
.pk-sec h3 { font-size: 14px; margin: 4px 0 8px; }
.pk-sec > .small { margin: 0 0 8px; }
.pk-np td .s2 { display: block; color: var(--i4); font-size: 13px; margin-top: 2px; }
.pk-np td { white-space: normal; }
.pk-np th:first-child { text-align: left; }
.pk-wait { margin: 12px 20px 4px; }
.pk-said { padding: 8px 20px; border-bottom: 1px solid var(--b3); }
/* Parking / CC (James, 23 Oct 2026): a project's Congestion Charge under its parking, its Invoice button under the amount. */
.pk-h { font-size: 13px; font-weight: 600; color: var(--i3); margin: 10px 0 6px; }
/* A project's parking and charges, collapsed until opened (parking.js linesOf). */
.pk-more > summary { cursor: pointer; padding: 2px 0; width: fit-content; }
.pk-more > summary:hover { color: var(--i2); }
.pk-btn { margin-top: 8px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.pk-cc { table-layout: fixed; min-width: 560px; }
.pk-cc th:nth-child(1) { width: 80px; } .pk-cc th:nth-child(2) { width: 100px; } .pk-cc th:nth-child(3) { width: 120px; }
.pk-cc th:nth-child(5) { width: 80px; } .pk-cc th:nth-child(6) { width: 200px; }
.pk-cc td { white-space: normal; }
.pk-cc td:first-child { white-space: nowrap; }
.pk-cc td .s2 { display: block; color: var(--i4); font-size: 13px; margin-top: 2px; }
.pk-pick { text-align: right; }
.pk-sel { width: 100%; max-width: 200px; }
.pk-top { padding-top: 12px; }
.pk-st td .s2 { display: block; color: var(--i4); font-size: 13px; margin-top: 2px; }
.pk-st td { white-space: normal; }
.pk-ul { margin: 0; padding-left: 18px; font-size: 14px; }
.pk-ul li { margin: 4px 0; }
#pkMonth .card-head .btn { margin-left: auto; }
#pkMonth .card-head .btn + .btn { margin-left: 6px; }
#pkUpLabel.is-busy { opacity: .6; pointer-events: none; }
@media (max-width: 720px) {
  .pk-cc { min-width: 0; table-layout: auto; }
  .pk-cc th:nth-child(2), .pk-cc td:nth-child(2), .pk-cc th:nth-child(4), .pk-cc td:nth-child(4) { display: none; }
  .pk-cc th:nth-child(6) { width: auto; }
  .pk-sel { max-width: 150px; }
  .pk-st th:nth-child(2), .pk-st td:nth-child(2), .pk-st th:nth-child(5), .pk-st td:nth-child(5) { display: none; }
  .pk-proj { padding: 12px 14px; }
  .pk-also > summary { padding: 12px 14px; }
  .pk-sec { padding: 0 14px 14px; }
  .pk-np th:nth-child(3), .pk-np td:nth-child(3), .pk-np th:nth-child(4), .pk-np td:nth-child(4) { display: none; }
  .pk-wait { margin: 12px 14px 4px; }
  .pk-said { padding: 8px 14px; }
  /* To invoice stays in view: the month, what to invoice and what is waiting for an answer. */
  .pk-t th:nth-child(n+2):nth-child(-n+5), .pk-t td:nth-child(n+2):nth-child(-n+5), .pk-t th:nth-child(7), .pk-t td:nth-child(7) { display: none; }
  .pk-t tbody th { min-width: 130px; }
  .pk-lines { min-width: 0; table-layout: auto; }
  .pk-lines th:nth-child(4), .pk-lines td:nth-child(4), .pk-lines th:nth-child(5), .pk-lines td:nth-child(5) { display: none; }
}
body:not(.can-suppliers) .suppliers-only { display: none; }
.vh-link { color: inherit; text-decoration: none; }
.vh-link:hover { background: var(--bg); }
.vh-fields { display: flex; flex-direction: column; gap: 6px; }
.vh-f { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: 10px; align-items: baseline; }

/* Knowledge base (kb.js): the manuals from Zoho Connect, and an article as Connect wrote it. */
.kb-q { max-width: 520px; }
.kb-crumbs { font-size: 13px; color: var(--i3); margin-bottom: 4px; }
.kb-crumbs a { color: var(--i3); }
.kb-man { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; color: var(--ink); text-decoration: none; }
.kb-man:hover { border-color: var(--o); }
.kb-man-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.kb-badge { flex: none; width: 40px; height: 40px; border-radius: 8px; color: #fff; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.kb-arts { list-style: none; margin: 0; padding: 8px 0; }
.kb-arts li { padding: 7px 20px; }
.kb-arts a { color: var(--ink); text-decoration: none; font-weight: 600; }
.kb-arts a:hover { color: var(--link); text-decoration: underline; }
.kb-results { display: flex; flex-direction: column; }
.kb-hit { display: flex; flex-direction: column; gap: 3px; padding: 12px 20px; border-top: 1px solid var(--b3); color: var(--ink); text-decoration: none; }
.kb-hit:first-child { border-top: 0; }
.kb-hit:hover { background: var(--b3); }
.kb-art { max-width: 900px; }
.kb-body { line-height: 1.6; font-size: 15px; overflow-wrap: break-word; }
.kb-body > div > div > :first-child, .kb-body > :first-child { margin-top: 0; }
.kb-body p { margin: 0 0 12px; }
.kb-body h1, .kb-body h2, .kb-body h3, .kb-body h4 { margin: 20px 0 8px; line-height: 1.3; }
.kb-body ul, .kb-body ol { margin: 0 0 12px; padding-left: 24px; }
.kb-body img { display: block; max-width: 100%; height: auto; margin: 6px 0; border: 1px solid var(--b1); border-radius: 4px; cursor: zoom-in; }
.kb-body img:not([src]) { min-height: 60px; min-width: 120px; background: var(--b3); }
.kb-body table { border-collapse: collapse; margin: 0 0 12px; display: block; max-width: 100%; overflow-x: auto; }
.kb-body td, .kb-body th { border: 1px solid var(--b1); padding: 6px 10px; vertical-align: top; min-width: 80px; }
.kb-body pre, .kb-body code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; background: var(--b3); border-radius: 3px; }
.kb-body code { padding: 1px 4px; }
.kb-body pre { padding: 10px 12px; overflow-x: auto; white-space: pre-wrap; }
.kb-body blockquote { margin: 0 0 12px; padding: 4px 14px; border-left: 3px solid var(--b2); color: var(--i2); }
.kb-body a { color: var(--link); }
.kb-nopic { display: inline-block; margin: 6px 0; padding: 10px 12px; border: 1px dashed var(--b2); border-radius: 4px; color: var(--link); }
.kb-meta { max-width: 900px; margin: 10px 0 0; }
.kb-pn { max-width: 900px; display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.kb-nav { flex-direction: column; align-items: flex-start; gap: 2px; max-width: 48%; white-space: normal; text-align: left; }
.kb-nav span { font-weight: 400; font-size: 13px; color: var(--i3); }
.kb-pn > a:last-child { align-items: flex-end; text-align: right; margin-left: auto; }
dialog label.kb-pick { flex-direction: row; align-items: flex-start; font-size: 14px; color: var(--ink); }
.kb-pick input { margin-top: 3px; }
/* Sales → Quotes (sales.js; James, 17 Oct 2026) */
body:not(.can-sales) .sales-only { display: none; }
body:not(.can-marketing) .marketing-only { display: none; }
.sq-card { margin-bottom: 16px; }
.sq-bar { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; border-bottom: 1px solid var(--b3); }
.sq-bar input[type=search] { flex: 1 1 220px; width: auto; min-width: 0; }
.sq-list { overflow-x: auto; }
.sq-row { display: grid; grid-template-columns: 64px minmax(90px, 1fr) minmax(120px, 1.4fr) 104px 92px 90px 136px 116px 140px; min-width: 1032px; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--b4); align-items: center; font-size: 14px; }
.sq-mine .sq-row { grid-template-columns: 64px minmax(90px, 1fr) minmax(120px, 1.4fr) 104px 92px 90px 136px 140px; min-width: 906px; }
.sq-row:last-child { border-bottom: 0; }
.sq-row.sq-th { padding: 10px 20px; background: var(--row); border-bottom: 1px solid var(--b3); font-size: 13px; font-weight: 600; color: var(--i3); }
.sq-no { font-variant-numeric: tabular-nums; }
.sq-cust { overflow-wrap: anywhere; }
.sq-sortby { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.sq-sortby select.f-in { width: auto; }
.sq-row .nm { font-weight: 600; }
.sq-row .s2 { color: var(--i4); font-size: 13px; margin-top: 2px; }
.sq-row .sq-next { color: var(--i3); }
.sq-amt { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.sq-late { color: var(--neg); font-weight: 600; }
.sq-who { color: var(--i3); }
.sq-acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.labour-dlg.sq-dlg { width: min(760px, calc(100vw - 32px)); }
.sq-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 14px; }
.sq-facts dt { color: var(--i3); font-weight: 600; }
.sq-facts dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
dialog label.sq-field { font-size: 13px; font-weight: 600; color: var(--i2); }
.sq-field textarea.f-in { height: auto; min-height: 76px; padding: 8px 10px; resize: vertical; font: inherit; font-size: 14px; font-weight: 400; }
.sq-hint { font-weight: 400; }
.sd-ho { background: var(--b4); }
/* The hand-over form and its parts (sales.js, sold.js; James, 18 Oct 2026). */
.note.red { background: var(--red-bg); border-color: var(--red-fg); color: var(--red-fg); }
.sq-late-row { box-shadow: inset 3px 0 0 var(--neg); padding-left: 10px; }
.sq-duebox { margin: 4px 0 12px; }
.sq-saved { margin: 0 0 8px; color: var(--i3); }
/* Other people’s hand-overs, folded away (sales.js, sold.js; James, 18 Oct 2026). */
.sd-others { display: block; border-color: var(--b1); }
.sd-others > summary { list-style: none; cursor: pointer; }
.sd-others > summary::-webkit-details-marker { display: none; }
.sd-others:not([open]) > summary { border-bottom: 0; }
.sd-fold { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--link); white-space: nowrap; }
.sd-fold::after { content: "Show ▾"; }
.sd-others[open] .sd-fold::after { content: "Hide ▴"; }
.sq-others-h { margin: 14px 0 4px; }
.sq-others-h:first-child { margin-top: 0; }
/* The hand-over meeting's agenda (sold.js). */
.mt-agenda { gap: 14px; }
.mt-part { display: flex; flex-direction: column; gap: 4px; }
.mt-part h3 { margin: 0; font-size: 14px; }
.mt-part textarea.f-in { height: auto; min-height: 64px; padding: 8px 10px; resize: vertical; font: inherit; font-size: 14px; }
.mt-said { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.sq-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lb-sec > .sq-field + .sq-field { margin-top: 4px; }
.sq-grid { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.sq-grid > .sq-field { flex: 1 1 150px; }
.sq-grid > .sq-long { flex-basis: 100%; }
.sq-tiles { display: flex; flex-wrap: wrap; gap: 8px; font-weight: 400; }
.sq-tile { flex: 1 1 120px; min-width: 0; border: 1px solid var(--b1); border-radius: 6px; padding: 8px 10px; }
.sq-tile .l { font-size: 12px; color: var(--i3); font-weight: 600; }
.sq-tile .v { font-size: 18px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.sq-tile .n { font-size: 12px; color: var(--i4); }
.sq-contacts { border: 1px solid var(--b1); border-radius: 6px; padding: 10px 12px; font-weight: 400; color: var(--ink); }
.sq-steps { margin: 0 0 6px; padding-left: 20px; font-size: 14px; color: var(--ink); }
.sq-steps li { margin-bottom: 4px; }
dialog label.sq-check { flex-direction: row; align-items: flex-start; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); padding: 6px 8px; border: 1px solid transparent; border-radius: 6px; }
#sqAccBox { border: 1px solid transparent; border-radius: 6px; padding: 4px 0; }
#sqAccBox.sd-miss { padding: 4px 8px; }
.sq-acc { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 14px; font-weight: 400; color: var(--ink); margin-bottom: 6px; }
.sq-hits { font-weight: 400; color: var(--ink); }
.sd-criteria { background: var(--blue-bg); color: var(--blue-fg); border-radius: 6px; padding: 10px 12px; font-size: 13px; font-weight: 400; }
.sd-criteria ul { margin: 4px 0 0; padding-left: 18px; }
.sd-tips { display: flex; flex-wrap: wrap; gap: 8px; }
.sd-tip { flex: 1 1 200px; min-width: 0; background: var(--panel); border: 1px solid var(--b1); border-radius: 6px; padding: 8px 10px; font-size: 13px; font-weight: 400; color: var(--ink); }
.sd-tip-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sd-tip ul { margin: 6px 0 0; padding-left: 16px; }
.sd-tip li.good { color: var(--green-fg); }
.sd-tip li.bad { color: var(--neg); }
.sd-prof { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--b1); }
.sd-prof:first-child { border-top: 0; }
.sd-prof > b { flex: 1 1 100%; }
.sd-prof select.f-in { flex: 1 1 200px; width: auto; min-width: 0; }
.sd-prof-s { display: flex; flex-wrap: wrap; gap: 0 4px; }
dialog .sd-prof-s label.sq-check { padding: 2px 6px; font-weight: 400; }
@media (max-width: 720px) {
  .sq-row, .sq-mine .sq-row { display: flex; flex-wrap: wrap; min-width: 0; padding: 12px 14px; }
  .sq-row.sq-th, .sq-row > .sq-none { display: none; }
  .sq-row > .sq-what { flex: 1 1 100%; min-width: 0; order: -1; }
  .sq-row > .sq-cust { flex: 1 1 auto; min-width: 0; }
  .sq-row > .sq-amt { margin-left: auto; }
  .sq-row > .sq-acts { flex: 1 1 100%; justify-content: flex-start; }
  .sq-facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .sq-facts dd { margin-bottom: 8px; }
}

/* ---------------------------------------------------------------- phones and iPads (James, 20 Oct 2026)
   A box with text under 16px makes an iPhone zoom in when it's tapped, and it stays zoomed after. */
@media (hover: none) and (pointer: coarse) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { font-size: 16px !important; }
  /* Big enough for a finger. */
  .tools button, .help-btn { min-width: 36px; min-height: 36px; }
  .help-btn, .tools button.help-btn { width: 36px; height: 36px; min-width: 36px; min-height: 36px; }
  .btn-sm { min-height: 34px; }
}
/* Behind an open popup the page stays still, and a popup's own scrolling stops at its ends instead of
   carrying on into the page (which bounced it back short of the bottom). */
html:has(dialog[open]:not(.cv-tabbed)) { overflow: hidden; }
dialog, dialog *, .cv-pop, .hs-list { overscroll-behavior: contain; }
@media (max-width: 860px) {
  /* Every popup comes up from the bottom, full width: a popup's own width (.labour-dlg, .vd-dlg…) is for bigger screens. */
  dialog[open] { width: 100vw !important; max-width: 100vw !important; margin: auto 0 0 !important; border-radius: 14px 14px 0 0; }
  /* As tall as the screen with the browser's bars showing, so it doesn't change height as they come and go. */
  dialog form, .lb { max-height: 88vh; max-height: 88svh; }
  :is(.lb, dialog form, .wo-dlg) :is(.sf-actions, .actions):not(:has(~ :not([hidden], .fb-pop))):not(:is(.lb, dialog form, .wo-dlg) :has(~ :not([hidden], .fb-pop)) *) { padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  /* Room under the last of it, so an iPhone's curved corners don't cut off its buttons (James, 21 Oct 2026). */
  dialog[open] { padding-bottom: max(18px, env(safe-area-inset-bottom, 0px)) !important; }
  /* A long dropdown's list (select.js) is a sheet at the top instead, with the keyboard coming up under it. */
  dialog.hs-sheet[open], .keyboard-up dialog.hs-sheet[open] { margin: 0 0 auto !important; padding: 10px 12px 12px !important; border-radius: 0 0 14px 14px; max-height: none; }
  .hs-sheet .hs-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
  .hs-sheet .hs-head b { font-size: 16px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hs-sheet .hs-list { max-height: none; overflow-y: auto; }
  /* A popup's buttons go on two lines rather than off the side. */
  .actions { flex-wrap: wrap; row-gap: 8px; }
  /* With the keyboard up (touch.js), above it and no taller than what's left. */
  .keyboard-up dialog[open] { margin-bottom: var(--kb) !important; }
  .keyboard-up dialog form, .keyboard-up .lb { max-height: calc(var(--vvh) - 12px); }
  .keyboard-up .cv-pop.sheet { bottom: var(--kb); max-height: calc(var(--vvh) - 12px); }
  /* A card's heading and its buttons go on two lines rather than off the side (which zooms the whole page out). */
  .card-head { flex-wrap: wrap; row-gap: 8px; }
  .card-head > * { min-width: 0; }
  /* A page's title keeps at least 220px: its buttons and switches go underneath rather than squeezing it into a strip. */
  .page-head .grow { flex: 1 1 220px; }
  /* Clients ⚙: the plans' names read upwards over their columns of ticks, instead of running into each other. */
  .ca-grid > .ca-gh { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; justify-self: center; font-size: 12px; }
  /* A sub-switch (and a page's own tabs) stays one line and slides sideways under a finger, rather than breaking into a block of two or three lines. */
  .subswitch, .ptabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  .subswitch::-webkit-scrollbar, .ptabs::-webkit-scrollbar { display: none; }
  .subswitch > *, .ptabs > * { flex: none; }
  /* With more along than fits, the end it's hidden at fades (touch.js marks it: ss-more to the right, ss-back to the left). */
  .subswitch.ss-more, .ptabs.ss-more { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); }
  .subswitch.ss-back, .ptabs.ss-back { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 32px), transparent); }
  .subswitch.ss-more.ss-back, .ptabs.ss-more.ss-back { -webkit-mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 32px), transparent); }
  /* A table wider than the phone slides sideways in its box; each row's first column (what the row is) stays put. */
  .tbl .tr > :first-child { position: sticky; left: 0; z-index: 1; background: var(--panel); }
  .tbl .tr.th > :first-child, .tbl .tr.grp > :first-child, .tbl .tr.on > :first-child, .tbl .tr.pj-who > :first-child { background: inherit; }
  .tbl .tr > :only-child { position: static; background: none; }
}

/* The bug check of 21 Oct 2026 (James): what phones and touch screens showed. */
@media (max-width: 860px) {
  /* Timesheets opens on today: without this its card lands under the top bar. */
  .ts-day { scroll-margin-top: 64px; }
  /* A list in a popup keeps to the popup's width and scrolls inside itself, never the popup sideways. */
  dialog .tbl { min-width: 0; max-width: 100%; }
  /* The Import CSV choice wraps instead of running off the popup. */
  dialog .seg { flex-wrap: wrap; }
  dialog .seg button { flex: 1 1 auto; white-space: normal; }
  /* Vehicles → Coming up: two columns a row, the buttons on a line of their own. */
  .vh-coming .tr { min-width: 0; grid-template-columns: 1fr 1fr !important; gap: 6px 12px; padding: 12px 14px; }
  .vh-coming .tr > .fs-line { grid-column: 1 / -1; justify-content: flex-start !important; }
  /* A vehicle's stock (vanstock.js): the stock item full width, then its count, what it should carry, how many to add
     and Edit on a line, each number saying what it is; no heading row. */
  .vk-tbl .tr.th { display: none; }
  .vk-tbl .tr.vk-row { min-width: 0; grid-template-columns: auto auto 1fr auto !important; gap: 6px 14px; padding: 10px 14px; align-items: center; }
  .vk-tbl .tr.vk-row > :first-child { grid-column: 1 / -1; }
  .vk-tbl .tr.vk-row > [data-l] { text-align: left; }
  .vk-tbl .tr.vk-row > [data-l]::before { content: attr(data-l) " "; color: var(--i3); font-size: 12px; font-weight: 400; }
  .vk-tbl .vk-nc { font-size: 0; }
  .vk-tbl .vk-nc::after { content: "–"; font-size: 14px; }
  /* The move to Products (stockcat.js): each row of its tables stacked, every value saying what it is. */
  .mv-tbl .tr.th { display: none; }
  .mv-tbl .tr { grid-template-columns: minmax(0, 1fr) !important; gap: 2px; padding: 10px 0; }
  .mv-tbl .tr > :first-child { font-weight: 600; }
  .mv-tbl .tr > [data-l]:not(:first-child)::before { content: attr(data-l) ": "; color: var(--i3); }
  /* A list wider than the screen fades at the end that has more (touch.js marks it, as it does the sub-switches). */
  .tbl.ss-more { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
  .tbl.ss-back { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); }
  .tbl.ss-more.ss-back { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
  /* The ⚙ sits at the right of the heading, or first among its row of buttons, not on a line of its own under them. */
  .page-head > .grow { order: -2; }
  .page-head > .help-btn { order: -1; margin-left: auto; }
  .page-head > * > .help-btn { order: -1; }
  /* Projects settings: the step list keeps some padding, and its buttons sit at the very bottom of what scrolls,
     with nothing showing under them. */
  .ps-nav { padding: 0 8px 12px; }
  .ps { padding-bottom: 0; }
  .ps-acts { bottom: 0; margin-bottom: 0; }
}
@media (pointer: coarse) {
  /* What a finger has to hit: at least 24px high. */
  .row-grip { padding: 8px 6px; }
  .cv-more { min-height: 26px; }
  .lb-x, .ps-x { min-width: 28px; min-height: 28px; }
  .kt-cell { min-height: 30px; }
  .tk-sorth { padding: 4px 0; }
  .ps-add { min-height: 28px; }
  .my-row { padding: 2px 0; }
  .my-open, a.back { display: inline-block; padding: 4px 0; }
}

/* People → Portal usage (usage.js, Phil, 22 Oct 2026): a bar for an allowance used, the last 7 days, today by the hour. */
.pu-alerts { margin-bottom: 16px; overflow: hidden; }
.pu-alerts .pu-alert { cursor: default; }
.pu-alerts .pu-alert:first-child { border-top: 0; }
.pu-alerts .pu-alert:hover { background: none; }
.pu-right { min-width: 96px; max-width: 40%; }
.pu-bar { display: block; width: 96px; max-width: 100%; height: 6px; border-radius: 3px; background: var(--b3); overflow: hidden; margin: 0 0 4px auto; }
.pu-bar > i { display: block; height: 100%; background: var(--chart); border-radius: 3px; }
.pu-bar.warn > i { background: var(--amber-fg); }
.pu-bar.bad > i { background: var(--neg); }
.pu-spark { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; margin-left: 8px; vertical-align: -1px; }
.pu-spark > i { display: block; width: 4px; min-height: 1px; background: var(--i5); border-radius: 1px; }
.pu-spark > i.today { background: var(--chart); }
.pu-hours { display: flex; align-items: flex-end; gap: 2px; height: 80px; }
.pu-hours > span { flex: 1; min-width: 0; height: 100%; display: flex; align-items: flex-end; }
.pu-hours > span > i { display: block; width: 100%; min-height: 1px; background: var(--chart); border-radius: 2px 2px 0 0; }
.pu-hours-x { display: flex; justify-content: space-between; margin-top: 4px; }
.pu-hint { margin-top: -6px; }
.pu-state { margin-bottom: 16px; }
.pu-allows { font-size: 12px; color: var(--i4); margin-top: 2px; }
.pu-said { display: block; font-size: 12px; color: var(--neg); margin-top: 2px; overflow-wrap: anywhere; }
.pu-path { display: block; font-family: ui-monospace, Consolas, monospace; font-size: 11px; color: var(--muted); }
.pu-cost { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.pu-cost > div { display: flex; flex-direction: column; }
.pu-cost b { font-size: 20px; font-variant-numeric: tabular-nums; }
#viewUsage code { font-size: 12px; overflow-wrap: anywhere; }

/* ---- the planner's toolbar folded away (planner.js, James, 22 Oct 2026): just Calendar and Planner left */
.tools-toggle { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--b2); border-radius: 17px; background: var(--panel); color: var(--i2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; flex: none; }
.tools-toggle:hover { border-color: var(--o); }
.tools-toggle span[aria-hidden] { font-size: 14px; line-height: 1; transition: transform .15s; }
body.tools-hidden .tools-toggle span[aria-hidden] { transform: rotate(180deg); }
body.tools-hidden:not(.cal-on) #viewPlanner .top .brand, body.tools-hidden:not(.cal-on) #viewPlanner .top .tools > .group:not(.help-wrap) { display: none !important; }
/* The ? stays, beside the ⚙ at the top right, whether the options show or not (James, 8 Nov 2026). */
body.tools-hidden:not(.cal-on) #viewPlanner .top .tools { display: contents; }
body.tools-hidden:not(.cal-on) #viewPlanner .top .help-wrap { margin-left: 0; }
body.tools-hidden:not(.cal-on) #viewPlanner .top .top-cog { order: 1; }   /* the ⚙ stays in the corner, the ? before it */
body.tools-hidden:not(.cal-on) #viewPlanner .top { padding-top: 6px; padding-bottom: 6px; }
/* Planner settings, at the top right whether the options show or not (James, 25 Oct 2026); the tools go on the row under it. */
.top-cog { margin-left: auto; border: 1px solid var(--b2); background: var(--panel); color: var(--i2); cursor: pointer; }
.top-cog:hover { border-color: var(--o); }
#viewPlanner .top .tools { flex-basis: 100%; }
/* Log my time at the top right (index.html), no taller than the switch beside it, so the top stays the same height
   (James, 6 Nov 2026); just its clock on a phone. The ⚙ sits after it. */
.top-time { margin-left: auto; height: 34px; padding: 0 14px; font-size: 13px; flex: none; }
.top-time ~ .top-cog { margin-left: 0; }
@media (max-width: 860px) { .top-time { width: 36px; padding: 0; } .top-time .top-time-l { display: none; } }
@media (max-width: 860px) { .tools-toggle .tt-l { display: none; } .tools-toggle { width: 36px; padding: 0; justify-content: center; } }

/* ---- the team picker: tick the teams to show, and their order (planner.js teamPicker) */
.team-pick { position: relative; display: inline-flex; }
.tools .team-btn::after { content: ''; display: inline-block; width: 0; height: 0; margin-left: 8px; vertical-align: middle; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .7; }
.tools .team-btn.on { border-color: var(--o); color: var(--ink); }
.team-pop { position: absolute; left: 0; top: calc(100% + 6px); z-index: 80; width: min(320px, calc(100vw - 24px)); background: var(--panel); border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: var(--shadow); padding: 12px; font-size: 14px; }
.team-pop .tp-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.team-pop .tp-note { font-size: 12px; color: var(--muted); }
.team-pop .tp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.team-pop li { display: flex; align-items: center; gap: 4px; border-radius: 6px; padding: 2px 2px 2px 0; background: var(--panel); }
.team-pop li:hover { background: var(--row); }
.team-pop li.tp-moving { background: var(--b4); box-shadow: 0 2px 8px rgba(16, 24, 40, .18); }
.team-pop .tp-grip { flex: none; width: 24px; text-align: center; color: var(--muted); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; font-size: 13px; letter-spacing: -2px; padding: 8px 0; }
.team-pop li.tp-moving .tp-grip { cursor: grabbing; }
.team-pop label { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 6px 4px; cursor: pointer; }
.team-pop label input { width: 18px; height: 18px; margin: 0; accent-color: var(--o); flex: none; }
.team-pop .tp-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.team-pop label i { font-style: normal; font-size: 12px; color: var(--muted); }
.tools .team-pop .tp-mv { width: 30px; height: 30px; padding: 0; border-radius: 15px; flex: none; font-size: 14px; }
.tools .team-pop .tp-mv:disabled { opacity: .3; cursor: default; border-color: var(--b2); }
.team-pop .tp-foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.tools .team-pop .tp-foot button { height: 30px; font-size: 13px; }
@media (max-width: 700px) {
  .team-pick { position: static; }
  .team-pop { position: fixed; left: 12px; right: 12px; top: auto; width: auto; margin-top: 6px; max-height: 70vh; overflow-y: auto; }
  .tools .team-pop .tp-mv { width: 36px; height: 36px; border-radius: 18px; }
}

/* ---- a booking's details (planner.js openInfo): easy to read on a phone, Edit for the form */
.labour-dlg.bi-dlg { width: min(520px, calc(100vw - 32px)); overflow: hidden; }
.bi { gap: 16px; position: relative; }
.bi::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--c); }
.bi-head { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.bi-k { font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.lb .bi-head h3 { margin: 0; font-size: 21px; line-height: 1.25; overflow-wrap: anywhere; }
.bi-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.bi-pill { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--b4); color: var(--i2); }
.bi-pill.st-confirmed { background: color-mix(in srgb, var(--c) 18%, var(--panel)); color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent); }
.bi-pill.st-tentative { background: none; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--c); }
.bi-pill.st-completed { background: var(--green-bg); color: var(--green-fg); }
.bi-rows { display: flex; flex-direction: column; gap: 14px; }
.bi-row { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; min-width: 0; }
.bi-row > div { min-width: 0; }
.bi-ic { font-size: 17px; line-height: 22px; text-align: center; }
.bi-l { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 1px; }
.bi-v { font-size: 16px; font-weight: 600; color: var(--ink); line-height: 22px; }
.bi-s { font-size: 14px; color: var(--i2); line-height: 20px; }
a.bi-addr { display: inline; color: var(--link); text-decoration: none; overflow-wrap: anywhere; }
a.bi-addr:hover { text-decoration: underline; }
.bi-who { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; }
.bi-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; background: var(--b4); font-size: 14px; color: var(--ink); max-width: 100%; }
.bi-chip i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; background: var(--b2); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--i2); flex: none; }
.bi-chip.me { box-shadow: inset 0 0 0 1.5px var(--c); }
.bi-call, .bi-open { margin-top: 3px; }
.bi-notes { border-radius: 10px; background: var(--note-bg); border: 1px solid var(--note-line); padding: 12px 14px; }
.lb .bi-notes h4 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--warn); }
.bi-note { font-size: 16px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.bi-note a { color: var(--link); }
.bi-actions { border-top: 1px solid var(--line); padding-top: 12px; }
.bi-actions .spacer { flex: 1; }
.bi-actions .btn { min-height: 40px; }
@media (max-width: 700px) {
  .labour-dlg.bi-dlg { width: calc(100vw - 16px); max-width: none; }
  .bi-actions { position: sticky; bottom: -18px; background: var(--panel); padding-bottom: 12px; }
  .bi-actions .bi-add { flex: 1 1 100%; order: 3; }
  .bi-actions .spacer { display: none; }
  .bi-actions [data-close], .bi-actions [data-bi="edit"] { flex: 1; }
}

/* Marketing → Overview (marketing.js): leads by source (all of them a pale tint of the chart colour, the converted ones in
   full on top: one hue, a part of the whole), the social links, and every job's answer about photos. */
.mk-bar { position: relative; }
.mk-bar i { opacity: .3; }
.mk-bar b { position: absolute; left: 0; top: 0; height: 100%; background: var(--chart); border-radius: 0 4px 4px 0; }
.mk-src:hover .mk-bar b { background: var(--chart-h); }
.mk-conv { color: var(--ink); font-weight: 600; }
.mk-key { margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.mk-key > span { white-space: nowrap; }
.mk-sw { display: inline-block; width: 12px; height: 10px; margin-right: 4px; border-radius: 2px; background: var(--chart); opacity: .3; }
.mk-sw.mk-sw-c { opacity: 1; }
.mk-acts { display: flex; flex: none; gap: 8px; align-items: center; }
.mk-links { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 12px; }
.mk-tools .f-in { width: 280px; max-width: 100%; }
#mkJobs { margin-bottom: 16px; }
#mkJobs .card-body { padding-bottom: 4px; }
.mk-row { grid-template-columns: minmax(0, 2.2fr) minmax(0, 0.9fr) minmax(0, 1.3fr) minmax(0, 1.2fr) 90px; }
.mk-form label.small { display: flex; flex-direction: column; gap: 4px; }
.mk-link { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; align-items: center; }
@media (max-width: 860px) {
  .tr.mk-row { display: flex; flex-wrap: wrap; min-width: 0; gap: 6px 14px; }
  .tr.mk-row > :first-child { flex-basis: 100%; }
  .tr.mk-row.th { display: none; }
  .mk-link { grid-template-columns: minmax(0, 1fr) auto; }
  .mk-link [data-mku] { grid-column: 1 / -1; grid-row: 2; }
}

/* Issues and ideas (feedback.js, Phil, 25 Oct 2026). The button above Signed in, and in the phone's panel under the initials. */
.side-fb { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; background: rgba(255, 255, 255, .05); border: 0; border-radius: 4px; padding: 10px 14px; color: var(--i4); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-align: left; }
.side-fb:hover, .side-fb:focus-visible { color: #fff; background: rgba(255, 255, 255, .09); }
.side-fb > span:not(.nb) { flex: 1; }
.side-fb-i { flex: none; }
/* The count sits on the icon, so the words stay on one line in the narrow menu. */
.side-fb .nb { position: absolute; left: 19px; top: 1px; min-width: 16px; padding: 0 4px; margin: 0; font-size: 10px; line-height: 16px; }
.top-me-panel .side-fb { font-size: 14px; }
.app-top .top-me.fb-due::after { content: ''; position: absolute; top: -1px; right: -1px; width: 9px; height: 9px; border-radius: 50%; background: var(--o); border: 2px solid var(--top-bg); }
.labour-dlg.ii-dlg { width: min(560px, calc(100vw - 32px)); }
.ii-kinds { display: flex; flex-wrap: wrap; }
.ii-shots { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ii-shots .btn { cursor: pointer; }
.ii-thumbs { display: flex; gap: 6px; flex-wrap: wrap; flex-basis: 100%; }
.ii-thumbs:empty { display: none; }
.ii-thumb { position: relative; width: 72px; height: 72px; border: 1px solid var(--b2); border-radius: 6px; overflow: hidden; background: var(--b4); }
.ii-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: left top; display: block; }
.ii-x { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 11px; cursor: pointer; padding: 0; }
.ii-list { display: flex; flex-direction: column; }
.ii-row { display: flex; gap: 6px 14px; align-items: center; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--b4); color: inherit; text-decoration: none; }
.ii-row:first-child { border-top: 0; }
.ii-row:hover { background: var(--row); }
.ii-n { flex: none; width: 40px; color: var(--i3); font-weight: 700; font-variant-numeric: tabular-nums; }
.ii-main { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ii-main .nm { font-weight: 600; overflow-wrap: anywhere; }
.ii-row.unread .nm { font-weight: 800; }
.ii-main .s2 { font-size: 13px; color: var(--i3); }
.ii-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--o); margin-right: 7px; vertical-align: 2px; }
.ii-side { display: flex; gap: 8px 10px; align-items: center; flex-wrap: wrap; margin-left: auto; }
.ii-owner { min-width: 90px; text-align: right; }
.ii-track { margin-bottom: 16px; }
.ii-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; }
.ii-steps li { flex: 1 1 0; min-width: 72px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; color: var(--i4); position: relative; text-align: center; }
.ii-steps li::before { content: ''; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: var(--b2); z-index: 0; }
.ii-steps li:first-child::before { display: none; }
.ii-steps li.done::before, .ii-steps li.on::before { background: var(--pos); }
.ii-step-dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; background: var(--panel); border: 2px solid var(--b2); color: var(--i3); }
.ii-steps li.done .ii-step-dot { background: var(--pos); border-color: var(--pos); color: #fff; }
.ii-steps li.on .ii-step-dot { border-color: var(--o); color: var(--ink); box-shadow: 0 0 0 3px var(--ot); }
.ii-steps li.done, .ii-steps li.on { color: var(--ink); }
.ii-steps li.on { font-weight: 700; }
.ii-track-sub { margin-top: 12px; text-align: center; color: var(--i3); }
.ii-need { margin-bottom: 16px; }
.ii-run { margin-bottom: 16px; }
.ii-run .card-body { display: flex; flex-direction: column; gap: 12px; }
.ii-owner-pick { display: flex; gap: 6px; align-items: center; }
.ii-owner-pick .btn { flex: none; height: 40px; }
.ii-thread { display: flex; flex-direction: column; gap: 10px; }
.ii-msg { border: 1px solid var(--b3); border-radius: 8px; padding: 10px 14px; background: var(--panel); max-width: 760px; }
.ii-msg.team { background: var(--blue-bg); border-color: var(--b2); }
.ii-msg.internal { background: var(--amber-bg); border-color: var(--note-line); }
.ii-msg-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.ii-msg-t { white-space: pre-wrap; overflow-wrap: anywhere; }
.ii-ctx { margin-top: 8px; }
.ii-log { padding: 0 14px; }
.ii-pics { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.ii-pic { padding: 0; border: 1px solid var(--b2); border-radius: 6px; overflow: hidden; width: 96px; height: 72px; background: var(--b4); cursor: zoom-in; }
.ii-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ii-big { display: block; max-width: 100%; max-height: 70vh; margin: 0 auto; border-radius: 4px; }
.labour-dlg.ii-pic-dlg { width: min(1100px, calc(100vw - 32px)); }
.ii-reply { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--b3); display: flex; flex-direction: column; gap: 10px; }
.ii-then { display: flex; align-items: center; gap: 6px; }
.ii-then .f-in { width: auto; height: 32px; }
/* The list is reached from the menu's button only (13 Nov 2026), so it reads as the page you're on. */
.side-fb.on { color: #fff; background: rgba(255, 255, 255, .14); }
.ii-dlg-head { display: flex; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; }
.ii-dlg-head .ii-all { margin-left: auto; font-weight: 600; }
.ii-with { margin: 0; }
.ii-errs { color: var(--neg); }
.ii-peek-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.ii-peek { max-height: 220px; overflow: auto; padding: 10px 12px; border: 1px solid var(--b3); border-radius: 6px; background: var(--b4); }
.ii-seen { margin-bottom: 16px; }
.ii-seen > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; }
.ii-seen > summary::-webkit-details-marker { display: none; }
.ii-seen > summary h2 { flex: 1; }
.ii-seen-n.bad { color: var(--neg); font-weight: 700; }
.ii-seen-h { margin: 12px 0 4px; font-size: 13px; }
.ii-seen-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; overflow-wrap: anywhere; }
.ii-seen-t { font-variant-numeric: tabular-nums; }
.ii-seen-none { margin: 8px 0 0; }
/* Report from where you are (feedback.js, Phil, 13 Nov 2026): bottom right of every page, the top corner of every popup.
   Faint until pointed at; it moves itself off a button or box it would cover. */
.fb-here { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 1px solid var(--b2); background: var(--panel); color: var(--i3); cursor: pointer; opacity: .6; transition: opacity .15s, color .15s, border-color .15s; }
.fb-here:hover, .fb-here:focus-visible { opacity: 1; color: var(--o); border-color: var(--o); }
.fb-page { position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 45; box-shadow: var(--shadow); }
dialog > .fb-pop { position: absolute; top: 10px; right: 10px; z-index: 5; width: 26px; height: 26px; }
dialog:has(> .fb-pop) h2:first-child { padding-right: 30px; }
/* Taking the screenshot: it spins (a transform, so it keeps turning while the page is held). */
.fb-here.busy { opacity: 1; color: var(--o); border-color: var(--o); cursor: progress; }
.fb-here.busy svg { animation: fb-spin 1s linear infinite; }
@keyframes fb-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .fb-here.busy svg { animation: none; } }
@media print { .fb-here { display: none !important; } }
@media (max-width: 860px) {
  .ii-row { padding: 12px 14px; }
  .ii-side { margin-left: 54px; justify-content: flex-start; }
  .ii-owner { text-align: left; min-width: 0; }
  .ii-steps li { min-width: 60px; font-size: 12px; }
  .ii-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ii-kinds .btn { height: auto; min-height: 40px; padding: 6px; white-space: normal; line-height: 1.2; justify-content: center; text-align: center; }
}

/* Inventory → Products (products.js, Phil, 26 Oct 2026): types down the side, the list, the product beside it. */
.pc-wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.pc-side { flex: 1 1 200px; }
.pc-list { flex: 999 1 520px; min-width: 0; }
.pc-list .tbl { overflow-x: auto; }
.pc-list .tr { min-width: 600px; }
#pdOne { flex: 1 1 340px; min-width: 0; }
.pc-types { display: flex; flex-direction: column; gap: 2px; padding: 8px; }
.pc-types button { display: flex; justify-content: space-between; gap: 8px; text-align: left; padding: 9px 12px; border-radius: 4px; border: 0; background: none; color: var(--ink); font: inherit; cursor: pointer; min-height: 40px; }
.pc-types button:hover { background: var(--b4); }
.pc-types button.on { background: var(--ot); font-weight: 700; }
.pc-types .c { color: var(--i3); font-size: 13px; font-weight: 400; }
.pc-gh { font-size: 12px; font-weight: 700; color: var(--i3); text-transform: uppercase; letter-spacing: .06em; padding: 10px 12px 4px; }
.pc-types button.pc-gh { font-size: 12px; font-weight: 700; color: var(--i3); text-transform: uppercase; letter-spacing: .06em; padding: 10px 12px; align-items: center; }
.pc-types button.pc-gh > span:first-child::before { content: '\25B8'; display: inline-block; width: 18px; font-size: 14px; }
.pc-types button.pc-gh[aria-expanded="true"] > span:first-child::before { content: '\25BE'; }
.pc-types button.pc-in { padding-left: 30px; }
.pc-types button.pc-gh .c { letter-spacing: 0; }
.pc-filters { flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.pc-filters label { display: flex; flex-direction: column; gap: 4px; }
button.tr.pc-row { width: 100%; border: 0; border-bottom: 1px solid var(--b4); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
button.tr.pc-row:hover { background: var(--row); }
button.tr.pc-row.sel { background: var(--ot); }
.pc-k { font-size: 12px; font-weight: 700; color: var(--i3); text-transform: uppercase; letter-spacing: .06em; }
.pc-kv { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 6px 14px; font-size: 14px; }
.pc-kv .k { color: var(--i3); }
.pc-sup { border: 1px solid var(--b1); border-radius: 6px; overflow: hidden; }
.pc-sr { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--b4); font-size: 13px; align-items: center; }
.pc-sr.costs { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 80px 70px; }
.pc-sr:last-child { border-bottom: 0; }
.pc-sr.h { background: var(--row); color: var(--i3); font-weight: 600; }
.pc-dlg { width: min(860px, calc(100vw - 32px)); }
.pc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 16px; }
.pc-f { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--i2); }
.pc-wide { grid-column: 1 / -1; }
.pc-h3 { margin: 6px 0 0; font-size: 15px; }
.pc-unit { display: flex; align-items: center; gap: 8px; }
.pc-unit span { color: var(--i3); font-weight: 400; }
.pc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
/* A code for each finish or colour temperature (Lighting Design, step 3): small boxes that wrap. */
.pc-codes { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-code { display: flex; align-items: center; gap: 6px; }
.pc-code .f-in { width: 96px; }
.pc-chips label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--b2); border-radius: 999px; padding: 4px 12px; font-weight: 400; color: var(--ink); cursor: pointer; min-height: 32px; box-sizing: border-box; }
.pc-sups { display: flex; flex-direction: column; gap: 8px; }
.pc-srow { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.pc-srow.costs { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 110px 110px auto; }
/* A piece of rack kit's ports (Rack equipment's Ports): a row a group, its kind, name, how many and which way. */
.pc-ports { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.pc-port { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 70px minmax(0, 0.9fr) auto; gap: 8px; align-items: center; }
/* The usual supplier's tick and the ✕, together in a supplier row's last column. */
.pc-sx { display: flex; align-items: center; gap: 8px; }
.pc-usual { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 400; color: var(--i2); white-space: nowrap; cursor: pointer; min-height: 32px; }
/* Products with no make or model, to fill in: the note above the list. */
.pc-todo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
/* A product asked for from Stock, waiting for approval (products.js), and the Warehouse’s last-resort “leave them different” (stockcat.js). */
.pc-asked { display: flex; flex-direction: column; gap: 8px; }
.si-leave { margin-top: 10px; }
.si-leave > summary { cursor: pointer; }
/* The move to Products (stockcat.js): the note on the Warehouse, the summary, the questions and each part folded. */
.wh-move-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.mv-sum { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.mv-qs { display: flex; flex-direction: column; gap: 10px; }
.mv-q { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.mv-opts { display: flex; flex-direction: column; gap: 4px; }
.mv-opts .sf-col { max-width: 360px; }
.mv-part { border-top: 1px solid var(--line); padding-top: 8px; }
.mv-part > summary { cursor: pointer; padding: 4px 0; }
.mv-tbl { margin-top: 6px; }
.mv-tbl .tr { min-width: 0; }
.pc-gear { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.pc-gear > .pc-gside { flex: 1 1 200px; display: flex; flex-direction: column; gap: 8px; }
.pc-gside > .pc-types { padding: 0; }
.pc-gear > .stack { flex: 999 1 420px; min-width: 0; }
.pc-like { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid var(--b1); border-radius: 6px; }
@media (max-width: 700px) {
  .pc-srow, .pc-srow.costs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pc-port { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 64px auto; }
  .pc-port [data-p="dir"] { grid-column: 1 / 3; grid-row: 2; }
  .pc-kv { grid-template-columns: minmax(0, 1fr); }
}

/* Viewing the portal as someone (viewas.js): an orange card in the menu in place of who's signed in, with Finish in
   place of Sign out; on a phone (no menu), a slim orange line at the top that stays as the page scrolls. */
.va-card { background: rgba(243, 146, 0, .14); border: 1px solid var(--o); }
.va-card .l { color: var(--o); }
.va-card .va-kind { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--o); margin-left: 4px; }
.va-card .va-note { margin: 6px 0 0; font-size: 12.5px; line-height: 1.4; color: rgba(255, 255, 255, .78); }
.va-card button { color: var(--o); font-weight: 700; font-size: 14px; }
body.viewing-as #who, body.viewing-as .top-me-out { display: none; }
.va-bar { display: none; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 41; flex: none; height: 30px; padding: 0 12px; background: var(--o); color: #17191E; font-size: 13px; font-weight: 600; }
.va-bar-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.va-bar button { flex: none; background: none; border: 0; padding: 0 2px; min-height: 26px; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
@media (max-width: 860px) {
  .va-bar { display: flex; }
  body.viewing-as .app-top { top: 30px; }
}
/* On a computer with the menu across the top or shrunk, where its orange card isn't to be seen: the line, or the strip
   orange (the card is in the initials' panel). */
@media (min-width: 861px) {
  .menu-top .va-bar { display: flex; }
  .menu-rail body.viewing-as .app-side { background: var(--o); }
  .menu-rail body.viewing-as .menu-show, .menu-rail body.viewing-as .app-nav > a:not(.on), .menu-rail body.viewing-as .nav-head:not(.on) { color: #17191E; }
}
/* Why an admin viewed as someone (viewas.js): the box for it, and the View as log, one entry under another. */
.va-why { display: block; margin-top: 4px; }
.va-log-e { padding: 10px 0; border-top: 1px solid var(--b2); }
.va-log-e:first-child { border-top: 0; padding-top: 0; }
.va-log-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.va-log-h .small { margin-left: auto; }
.va-log-r { margin-top: 4px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Rooms → Lutron project (lutronbuild.js): preparing the Lutron build. Its rows wrap on a phone; nothing wider than the popup. */
.labour-dlg.lutp-dlg { width: min(900px, calc(100vw - 32px)); }
.lutp-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.lutp-row { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); }
.lutp-row:first-child { border-top: 0; }
.lutp-room { margin: 10px 0 0; font-size: 13px; font-weight: 700; color: var(--ink); }
.lutp-row > .grow { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.lutp-row select { width: auto; max-width: 100%; min-width: 0; }
.lutp-checks { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.lutp-checks .pill { margin-right: 6px; }

/* Rooms → Keypads (keypads.js): each keypad drawn as it will look, and the client's engraving drawing, a floor at a time. */
.kp-card { flex: 0 1 240px; }
.kp-body { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.kp-pic { display: block; max-width: 100%; height: auto; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .25)); }
.kp-draw .card-head { flex-wrap: wrap; gap: 6px 12px; }
.kp-up { cursor: pointer; }
.kp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.kp-chip { font: inherit; font-size: 13px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink); cursor: pointer; }
.kp-chip.kp-loose { border-color: #e7a46b; }
.kp-chip[aria-pressed="true"] { background: #2f7cf6; border-color: #2f7cf6; color: #fff; }
.kp-sheet { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.kp-sheet svg { display: block; width: 100%; height: auto; touch-action: none; user-select: none; -webkit-user-select: none; }
.labour-dlg.kp-dlg { width: min(860px, calc(100vw - 32px)); }
.labour-dlg.kp-pdlg { width: min(720px, calc(100vw - 32px)); }
.kp-edit { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.kp-form { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
/* A heading with a button beside it (Suggest engraving). */
.kp-sechead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; justify-content: space-between; }
.kp-sechead h3 { margin: 0; }
/* Projects ⚙'s Keypad engraving: a part of the popup that scrolls, each layout a card with its two keypads drawn. */
.ps-scroll { flex: 1; min-height: 0; overflow: auto; margin: 0 -20px; padding: 0 20px 4px; }
.kp-psets { display: flex; flex-direction: column; gap: 12px; }
.kp-psets .subswitch { flex-wrap: wrap; overflow: visible; }
.kp-pcards { columns: 300px; }
.kp-pcard .card-head { display: flex; align-items: center; gap: 8px; }
.kp-pcard .card-head h3 { flex: 1; margin: 0; font-size: 14px; }
.kp-pcard .card-body { display: flex; flex-direction: column; gap: 12px; }
.kp-pcard.editing { border-color: var(--accent, #d9822b); }
.kp-pfigs { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: center; }
.kp-pfig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.kp-pfig .kp-pic { max-width: 100%; height: auto; }
.kp-pone .kp-pcard .card-body { gap: 16px; }
.kp-peds { display: flex; flex-wrap: wrap; gap: 16px 28px; }
.kp-peds > .kp-ped { flex: 1 1 320px; min-width: 0; }
.kp-ped { display: flex; flex-direction: column; gap: 6px; }
.kp-pcols { display: flex; flex-wrap: wrap; gap: 10px; }
.kp-pcol { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.kp-pbtn { display: flex; gap: 4px; }
.kp-pbtn .f-in { flex: 1 1 0; min-width: 0; }
.kp-pbtn .kp-pl2 { font-size: 13px; }
/* The engraving's approval: a band under the page's head, and the versions popup. */
.kp-appr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); margin: 0 0 12px; }
.kp-appr b { font-size: 14px; }
.kp-appr .spacer { flex: 1; }
.kp-appr.sent { border-color: var(--accent, #d9822b); }
.kp-appr.approved { border-color: var(--pos, #2e7a4e); }
.kp-appr.ok { border-color: var(--pos, #2e7a4e); }
.kp-room { margin: 0 0 6px; }
.kp-roomhead { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 8px; font-size: 15px; }
.kp-checks { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 8px 14px; margin: 0 0 12px; }
.kp-checks summary { cursor: pointer; font-size: 14px; }
.kp-checks ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; }
.kp-checks li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.kp-checks li > span { flex: 1 1 320px; }
.kp-checks li.warn::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--warn, #b45309); flex: none; }
.kp-checks li.info::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.kp-psets .btn-link, .kp-checks .btn-link { background: none; border: 0; padding: 0; color: var(--accent-ink, var(--accent, #d9822b)); text-decoration: underline; cursor: pointer; font: inherit; }
.kp-where { display: inline-block; font-size: 12px; padding: 1px 7px; border-radius: 999px; background: var(--bg2, rgba(127,127,127,.12)); color: var(--muted); margin-left: 6px; }
.kp-vers { display: flex; flex-direction: column; gap: 10px; }
.kp-ver { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; }
.kp-ver-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.kp-ver-head b { flex: 1 1 auto; }
.kp-ver .kp-changes { max-height: 220px; }
.kp-ver.client { border-color: var(--accent, #d9822b); }
/* The theme switch in Suggest engraving's question. */
.kp-themes { display: flex; flex-wrap: wrap; gap: 8px; }
.kp-theme { flex: 1 1 160px; min-width: 0; text-align: left; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); cursor: pointer; font: inherit; }
.kp-theme[aria-pressed="true"] { border-color: var(--accent, #d9822b); box-shadow: inset 0 0 0 1px var(--accent, #d9822b); }
.kp-theme b { display: block; font-size: 14px; }
.kp-theme span { display: block; font-size: 12px; color: var(--muted); }
/* Suggest engraving's question: a card a keypad, Now and After drawn, and the typed buttons it would change. */
.labour-dlg.kp-sgdlg { width: min(860px, calc(100vw - 32px)); }
.kp-sgs { display: flex; flex-direction: column; gap: 12px; }
.kp-sg { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.kp-sg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.kp-sg-head b { flex: 1 1 auto; }
.kp-sg-body { display: flex; flex-wrap: wrap; gap: 12px 20px; padding: 12px 14px; align-items: flex-start; }
.kp-sg-pics { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.kp-sg-to { font-size: 22px; color: var(--muted); }
.kp-sg .kp-changes { flex: 1 1 260px; min-width: 0; max-height: none; }
/* its buttons stay at the bottom as the cards scroll */
.kp-sgdlg .sf-actions { position: sticky; bottom: -18px; margin: 0 -20px -18px; padding: 12px 20px 18px; background: var(--panel); border-top: 1px solid var(--line); z-index: 1; }
.kp-changes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; max-height: 50vh; overflow: auto; }
.kp-changes li { border-top: 1px solid var(--line); }
.kp-changes li:first-child { border-top: 0; }
.labour-dlg .kp-changes label.kp-ch { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 8px 0; cursor: pointer; font-size: 14px; font-weight: 400; color: var(--ink); text-align: left; }
.kp-ch input { flex: none; }
.kp-ch-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.kp-ch-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.kp-ch-where { font-weight: 600; font-size: 13px; color: var(--muted); }
.kp-ch-was { text-decoration: line-through; color: var(--muted); }
.kp-ch-arrow { color: var(--muted); }
.kp-ch-to { font-weight: 600; }
.labour-dlg label.kp-tickall { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; font-weight: 400; color: var(--ink); }
.kp-space { display: inline-flex; align-items: center; gap: 6px; }
.kp-space select { width: auto; }
.kp-preview { flex: 0 1 240px; display: flex; flex-direction: column; align-items: center; padding-top: 6px; }
/* The keypad's picture stays in view as the popup's form scrolls, beside what's being typed (James, 28 Oct 2026). */
@media (min-width: 861px) {
  .kp-preview { position: sticky; top: 0; align-self: flex-start; max-height: calc(100dvh - 90px); overflow: auto; }
}
.kp-col { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.kp-colhead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.kp-colhead label { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; margin: 0; }
.kp-colhead input[type="checkbox"] { width: auto; margin: 0; }
.kp-colhead .kp-n { width: auto; }
.kp-pages { display: flex; flex-wrap: wrap; gap: 10px; }
.kp-pg { flex: 0 1 160px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--panel); color: var(--ink); cursor: pointer; font: inherit; }
.kp-pg img { max-width: 100%; height: auto; background: #fff; }
@media (max-width: 860px) {
  .kp-card { flex-basis: 100%; }
  .kp-preview { flex-basis: 100%; }
}
.kp-lines { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.kp-icbtn { min-width: 52px; display: inline-flex; align-items: center; justify-content: center; }
.labour-dlg.kp-idlg { width: min(760px, calc(100vw - 32px)); }
.kp-icons { display: flex; flex-direction: column; gap: 10px; }
.kp-icgroup h3 { margin: 0 0 4px; }
.kp-icgrid { display: flex; flex-wrap: wrap; gap: 6px; }
.kp-ic { flex: 0 1 112px; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--panel); color: var(--ink); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.kp-ic[aria-pressed="true"] { border-color: #2f7cf6; box-shadow: 0 0 0 1px #2f7cf6; }
.kp-ic svg { flex: none; }
@media (max-width: 860px) { .kp-ic { flex-basis: calc(50% - 3px); } }
.kp-notes { margin: 8px 0 0; padding-left: 18px; color: var(--warn, #b45309); max-width: 240px; }

/* An internal project's Costs (intcosts.js): a cost's Receipt, Change and Remove, wrapping on a phone. */
.icost-acts { display: flex; flex-wrap: wrap; gap: 2px 12px; justify-content: flex-end; margin-top: 2px; }

/* Set for several (keypads.js, James, 29 Oct 2026): a tick on each keypad card, Tick all on a room, the bar that follows the
   ticks (stuck to the top while any are ticked), and the popup. */
.kp-tick { display: inline-flex; align-items: center; align-self: flex-start; margin: 3px 8px 0 0; }
.kp-tick input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent, #d9822b); cursor: pointer; }
.kp-card .card-head > div { flex: 1; min-width: 0; }
.kp-roomhead .btn-link { margin-left: auto; font-size: 13px; }
.kp-ticked { gap: 8px 12px; }
.kp-ticked .btn-link { font-size: 13px; }
.kp-ticked.on { position: sticky; top: 40px; z-index: 3;  /* under the project band (.pj-stuck .pj-band, 32px) */ border-color: var(--accent, #d9822b); box-shadow: 0 8px 22px rgba(0, 0, 0, .14); }
.kp-setdlg { width: min(680px, 100%); }
/* The keypads and the quote compared (James, 17 Nov 2026): a tick a difference. */
.kp-cmp { width: min(680px, 100%); }
.kp-cmp-sec h3 { display: flex; align-items: baseline; gap: 6px; }
.kp-cmp-sec h3 .btn-link { margin-left: auto; }
.labour-dlg label.kp-cmp-row { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); line-height: 1.4; font-weight: 400; color: var(--ink); font-size: 14px; }
.labour-dlg label.kp-cmp-row input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--accent, #d9822b); }
.kp-cmp-row > span { min-width: 0; overflow-wrap: anywhere; }
.kp-setdlg .sf-col > span { display: block; margin-bottom: 4px; }
.kp-setdlg .sf-col .muted { font-weight: 400; }
.kp-ks-fill { display: flex; align-items: center; gap: 8px; align-self: end; padding-bottom: 8px; }
.kp-ks-fill input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent, #d9822b); }
.kp-setdlg .kp-ks-fill { flex-direction: row; justify-content: flex-start; }
.kp-ticked .btn-link { border: 0; background: none; padding: 0; text-decoration: underline; color: var(--accent-ink, var(--accent, #9a5a00)); cursor: pointer; font: inherit; font-size: 13px; }
.kp-setdlg .kp-ks-fit { margin-top: 6px; align-items: flex-start; }
.kp-setdlg .kp-ks-fit input { margin-top: 2px; }
.kp-setdlg #ksMsg .banner { display: block; margin: 0 0 8px; }
.kp-setdlg .kp-ks-fits { margin: 8px 0 0; padding: 8px 10px; border-radius: 6px; background: var(--panel-2, var(--panel)); border: 1px solid var(--line); line-height: 1.45; }
.kp-setdlg .kp-ks-fits s { opacity: .7; }

/* Projects ⚙ → WeQuote check (wqcheck.js): each check on a row that wraps on a phone, and what the run comes to. */
.wqc-g { margin: 10px 0 4px; font-size: 14px; }
.wqc-list, .wqc-sum { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.wqc-row { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 4px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.wqc-mark { width: 1.2em; flex: none; font-weight: 600; }
.wqc-row.good .wqc-mark, .wqc-sum .good { color: var(--pos); }
.wqc-row.bad .wqc-mark, .wqc-sum .bad { color: var(--neg); }
.wqc-sum .muted { color: var(--muted, #777); }
.wqc-what { flex: 1 1 240px; min-width: 0; overflow-wrap: anywhere; }
.wqc-ans { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
.wqc-sum { margin: 6px 0; font-size: 14px; }

/* The Calendar view's search (calview.js runSearch): the box in the bar, then the results as a list. */
.cv-search { width: 200px; }
.cv-rhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 0 10px; border-bottom: 1px solid var(--b1); }
.cv-lday.past .cv-ldate .dn { color: var(--i3); }
/* Search for people, down the side. */
.cv-pfind { margin: 2px 0 6px; }
.cv-pdel { border: 0; background: none; color: var(--i3); font-size: 16px; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 50%; }
.cv-pdel:hover { background: var(--b3); }
@media (max-width: 700px) { .cv-search { order: 10; flex-basis: 100%; width: auto; } }

/* Sales → Quote request (salesreqs.js, Phil, 9 Nov 2026): one column, big targets, made for a phone. */
body:not(.can-salesreq) .salesreq-only { display: none; }
#viewSalesReqs .page-body { max-width: 760px; }
.srq-tabs { margin-bottom: 14px; }
.srq-card { padding: 16px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 12px; }
.srq-card h2 { font-size: 17px; margin: 0; display: flex; align-items: center; gap: 10px; }
.srq-card > p { margin: -6px 0 0; }
.srq-n { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--o); color: var(--ink); font-size: 14px; flex: none; }
.srq-need { color: var(--neg); }
.srq-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.srq-grid > .srq-field, .srq-grid > .srq-check { flex: 1 1 200px; }
.srq-grid > .srq-long, .srq-long { flex-basis: 100%; }
.srq-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-weight: 600; color: var(--i2); font-size: 13px; }
.srq-field > span:first-child, .srq-lab { font-weight: 600; color: var(--i2); font-size: 13px; }
.srq-field textarea.f-in { min-height: 120px; font: inherit; font-size: 14px; }
.srq-check { display: flex; align-items: center; gap: 8px; font-size: 14px; min-height: 40px; }
.srq-check input { width: 20px; height: 20px; }
.srq-wide { width: 100%; min-height: 44px; }
.srq-pick { cursor: pointer; }
.srq-picked { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 6px; background: var(--green-bg); }
.srq-tick { width: 32px; height: 32px; border-radius: 50%; background: var(--pos); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.srq-hits { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.srq-hits li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px; border: 1px solid var(--b1); border-radius: 6px; background: var(--panel); color: var(--ink); }
.srq-hits li .grow { flex: 1 1 180px; min-width: 0; }
.srq-dupes { display: block; }
.srq-types { display: flex; flex-wrap: wrap; gap: 8px; }
.srq-type { flex: 1 1 140px; min-height: 48px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 8px 12px; border: 1px solid var(--b2); border-radius: 6px; background: var(--panel); color: var(--ink); cursor: pointer; text-align: left; font: inherit; font-size: 14px; }
.srq-type[aria-checked=true] { border-color: var(--o); background: var(--ot); box-shadow: inset 0 0 0 1px var(--o); font-weight: 700; }
#srqTypes.sd-miss .srq-types { outline: 2px solid var(--neg); outline-offset: 4px; border-radius: 6px; }
.srq-addr { display: flex; flex-direction: column; gap: 8px; }
.srq-more summary { cursor: pointer; font-weight: 600; color: var(--i2); min-height: 32px; display: flex; align-items: center; }
.srq-more .srq-grid { margin-top: 8px; }
.srq-files { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.srq-files li { display: flex; align-items: center; gap: 10px; }
.srq-files img, .srq-doc { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--b4); }
.srq-person { border-top: 1px solid var(--line); padding-top: 12px; margin-bottom: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.srq-send { display: flex; gap: 10px; justify-content: flex-end; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.srq-send .btn-p { min-height: 48px; padding: 0 28px; font-size: 16px; }
.srq-result { align-items: center; text-align: center; padding: 28px 16px; }
.srq-result h2 { justify-content: center; }
.srq-big { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 700; color: #fff; background: var(--pos); }
.srq-result.wait .srq-big { background: var(--o); color: var(--ink); }
.srq-result .srq-send { justify-content: center; margin: 0; position: static; background: none; padding: 0; }
.srq-row { grid-template-columns: 110px minmax(0, 1fr) 180px; }
.srq-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.srq-left { justify-content: flex-start; }
.srq-run { border-top: 1px solid var(--line); padding-top: 8px; }
.srq-run ul { margin: 6px 0; padding-left: 18px; font-size: 14px; }
.srq-ans { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; white-space: pre-wrap; }
@media (max-width: 860px) {
  .srq-send { position: sticky; bottom: 0; background: var(--bg); padding: 10px 0; margin: 0 0 12px; }
  .srq-send .btn-p { flex: 1 1 auto; }
  .srq-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .srq-ans { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* Lighting Design (ldprojects.js, Nicolai, 12 Nov 2026): a design’s cards, and picking a client and deal from CRM. */
.ldp-card { flex: 1 1 420px; min-width: 0; }
.ldp-form { display: flex; flex-direction: column; gap: 12px; }
.ldp-form label { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ldp-form textarea { resize: vertical; }
.ldp-h3 { margin: 12px 0 6px; font-size: 14px; }
/* Lighting Design's fitting types (ldprojects.js): a row a drawing label; the table scrolls inside its card on a phone. */
.ldp-ftwrap { overflow-x: auto; }
.ldp-ftwrap .tr { min-width: 640px; }
.ldp-ftadd { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.ldp-ftadd .f-in { width: auto; min-width: 160px; }
.ldp-lbrow { display: grid; grid-template-columns: 28px 64px minmax(0, 1fr) minmax(0, 120px) 56px 36px; gap: 8px; align-items: center; margin-bottom: 6px; }
.ldp-types { flex-basis: 100%; }
/* A design's Settings as wide as its Rooms and Fitting types, the fields in a grid that fits the window (Nicolai, 17 Nov 2026). */
.ldp-wide { margin-bottom: 16px; }
.ldp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 16px; align-items: start; }
/* The schedule: a line ticked, and what to do with those ticked (Nicolai, 17 Nov 2026). */
.lds-num .lds-sel { width: 14px; height: 14px; margin: 0 4px 0 0; vertical-align: -2px; }
.lds-t tr.lds-on td { background: var(--row); }
.lds-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-right: auto; }
.lds-bulk .f-in { width: auto; min-width: 120px; padding-top: 4px; padding-bottom: 4px; }
/* A row of boxes whose names wrap differently: each name two lines tall, at its foot, so the boxes line up. */
.ldp-even > label { display: grid; grid-template-rows: minmax(2.6em, auto) auto auto; align-content: start; align-items: end; }
.ldp-lsrow { display: grid; grid-template-columns: minmax(0, 1fr) 52px 64px 36px 36px; gap: 8px; align-items: center; margin-bottom: 6px; }
.lb .ldp-on, .ldp-on { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 6px; white-space: nowrap; margin: 0; }
.labour-dlg .ldp-on input[type=checkbox] { width: 18px; height: 18px; min-width: 18px; flex: none; margin: 0; padding: 0; }
.ldp-ic { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; color: var(--amber-fg); }
.ldp-ic svg { width: 22px; height: 22px; }
/* Products: Read a datasheet (products.js, lib/ldread.js) */
.pc-read { display: flex; flex-direction: column; gap: 6px; padding: 12px; margin-bottom: 14px; border: 1px dashed var(--b1); border-radius: 8px; }
.pc-read-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pc-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 96px; padding: 14px; border: 2px dashed var(--b1); border-radius: 8px; text-align: center; cursor: pointer; }
.pc-drop:hover, .pc-drop-on { border-color: var(--o); background: var(--row); }
.pc-drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pc-read-row .f-in { flex: 1 1 200px; min-width: 0; }
.pc-read-row input[type=file] { max-width: 100%; }
/* Read it beside the PDF box and the web address, as tall as both (Nicolai, 17 Nov 2026); under them on a phone. */
.pc-read-body { display: flex; align-items: stretch; gap: 8px; }
.pc-read-in { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pc-read-go { flex: 0 0 auto; min-width: 104px; }
@media (max-width: 560px) { .pc-read-body { flex-direction: column; } }
/* Lighting Design's schedule (ldschedule.js) */
.lds-sum { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.lds-sum > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; background: var(--panel); border: 1px solid var(--b1); border-radius: 8px; min-width: 120px; max-width: 100%; }
.lds-tip { margin: 8px 0; }
.lds-pages { margin: 4px 0 10px; }
.lds-page .cards { margin-top: 4px; }
.lds-reports { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lds-plain { width: 100%; border-collapse: collapse; font-size: 13px; }
.lds-plain th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; padding: 6px 10px; border-bottom: 1px solid var(--b2); }
.lds-plain td { padding: 6px 10px; border-bottom: 1px solid var(--b2); }
.lds-plain .n { text-align: right; }
.lds-ok { color: var(--pos, #3D7A4A); }
.lds-frame { width: 100%; min-height: 400px; border: 1px solid var(--b1); border-radius: 8px; background: #fff; }
.lds-issue { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.lds-issue .f-in { flex: 1 1 260px; min-width: 0; }
.lds-changes { margin: 4px 0 0; padding-left: 18px; }
.lds-sheet { overflow: auto; background: var(--panel); border: 1px solid var(--b1); border-radius: 8px; }
.lds-sheet.lds-full { position: fixed; inset: 0; z-index: 60; border-radius: 0; height: 100vh; }
.lds-bar { position: sticky; left: 0; top: 0; z-index: 4; display: flex; justify-content: flex-end; padding: 6px 8px; background: var(--panel); }
.lds-sheet .lds-t th { top: 42px; }
.lds-acts { white-space: nowrap; }
.lds-plus:hover { color: var(--o); }
.lds-has { color: var(--o); }
.lds-bar { gap: 6px; }
.lds-addline { position: sticky; left: 0; display: block; margin: 8px; padding: 8px 14px; border: 1px dashed var(--b1); border-radius: 6px; background: none; color: inherit; font: inherit; cursor: pointer; }
.lds-addline:hover { border-color: var(--o); }
.lds-t { border-collapse: separate; border-spacing: 0; font-size: 13px; }
.lds-t th { position: sticky; top: 0; z-index: 2; background: var(--row); color: var(--muted); font-weight: 600; font-size: 12px; text-align: left; padding: 6px; border-bottom: 1px solid var(--b2); white-space: nowrap; }
.lds-t td { padding: 0; border-bottom: 1px solid var(--b2); border-right: 1px solid var(--b2); vertical-align: top; background: var(--panel); }
.lds-t tr.lds-first td { border-top: 2px solid var(--b1); }
.lds-t .lds-stick { position: sticky; z-index: 1; }
.lds-t th.lds-stick { z-index: 3; }
.lds-t .lds-num { width: 46px; min-width: 46px; max-width: 46px; box-sizing: border-box; white-space: nowrap; text-align: right; padding: 6px 6px 0 0; color: var(--muted); font-size: 11px; }
.lds-t td[data-calc] { padding: 6px; background: var(--row); }
.lds-c { width: 100%; box-sizing: border-box; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; padding: 6px; min-height: 30px; }
.lds-c:focus { outline: 2px solid var(--o); outline-offset: -2px; background: var(--field); }
.lds-n { text-align: right; }
.lds-calc { white-space: nowrap; }
.lds-x { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px 8px; }
.lds-x:hover { color: var(--neg); }
@media (pointer: coarse) { .lds-c { font-size: 16px; } }
.lds-w { display: block; font-size: 12px; line-height: 1.3; }
.lds-red { color: var(--neg); }
.lds-amber { color: var(--amber-fg); }
@media (max-width: 520px) {
  .ldp-lbrow { grid-template-columns: 28px 64px minmax(0, 1fr) 36px; }
  .ldp-lbrow.small { display: none; }
  .ldp-lbrow > [data-lg-x], .ldp-lbrow > span:last-child { grid-column: 4; grid-row: 1; }
  .ldp-lbrow > [data-lg-kind] { grid-column: 2 / 4; grid-row: 2; }
  .ldp-lbrow > span.small { grid-column: 4; grid-row: 2; }
}
.ldp-picks { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; max-height: 260px; overflow-y: auto; }
.ldp-pick { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); color: inherit; font: inherit; cursor: pointer; }
.ldp-pick[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.ldp-pick:disabled { opacity: .55; cursor: default; }

/* A list showing from this browser's copy while the server's answer is on its way (kept.js; James, 14 Nov 2026):
   a small mark at the top, out of the way of the toast and of anything to press. On <html>, so nothing is added to
   the page. */
html.hub-updating body::after { content: "Updating…"; position: fixed; top: 8px; left: 50%; transform: translateX(-50%); z-index: 59; pointer-events: none;
  background: var(--toast-bg); color: var(--toast-fg); box-shadow: var(--shadow); padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; opacity: .92; }
@media print { html.hub-updating body::after { display: none; } }
/* Support's new look (Phil, 15 Nov 2026, from the mock-ups he picked: options A and D). Rounder boxes, bolder
   headings, pill-shaped tags, and the Dashboard's figures on a dark live band. Support pages only (body.on-support),
   so the rest of the portal is unchanged. Layout and markup are untouched: this is looks only. */
:root { --band: #16191E; --band-tile: #23272E; --band-ink: #ECEEF0; --band-mute: #A9B0B8; --band-red: #3A1F1D; --band-red-ink: #F0948C; --band-red-mute: #E2B5B0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --band: #1E2228; --band-tile: #2A2F37; } }
:root[data-theme="dark"] { --band: #1E2228; --band-tile: #2A2F37; }
body.on-support .page-head { background: none; border-bottom: 0; padding-top: 22px; padding-bottom: 4px; }
body.on-support .page-head h1 { font-size: 28px; font-weight: 800; letter-spacing: -.01em; }
body.on-support .page-head .sub { font-size: 15px; }
/* Tickets keeps its slim heading, so the list starts high up (e2e: within 330px). */
body.on-support .page-head.tk-head { padding-top: 10px; padding-bottom: 10px; }
body.on-support .page-head.tk-head h1 { font-size: 24px; }
/* The folder tabs and the tray under them: same shape, softer corners. */
.sup-tabs a, .sup-pin { border-radius: 14px 14px 0 0; }
.sup-tabs .sup-pin a { border-radius: 14px 0 0 0; }
.sup-pin button { border-radius: 0 14px 0 0; }
.sup-tabs + .page-body, .sup-tabs + .vs-tabs + .page-body { border-radius: 18px; }
.sup-tabs:has(> a.on:first-child) + .page-body { border-top-left-radius: 0; }
.sup-tabs + .vs-tabs { border-radius: 0 18px 0 0; }
.sup-tabs + .vs-tabs + .page-body { border-radius: 0 0 18px 18px; }
/* Cards, tables, tags, buttons and notes. */
body.on-support .card { border-radius: 16px; }
body.on-support .card-head { border-bottom: 0; padding: 16px 20px 4px; }
/* A folded card is its heading alone: as much room under it as over it, so the words sit in the middle (Phil, 16 Nov 2026). */
body.on-support .card[data-fold].folded > .card-head, body.on-support .card > .card-head:last-child { padding-bottom: 16px; }
body.on-support .card-head h2 { font-size: 18px; font-weight: 800; }
body.on-support .tbl { border-radius: 14px; }
body.on-support .tbl.inner { border-radius: 0; }
body.on-support .pill { border-radius: 999px; padding: 3px 10px; }
body.on-support .btn { border-radius: 9px; }
body.on-support .btn-sm { border-radius: 8px; }
body.on-support .note { border-radius: 12px; }
body.on-support .ov-stat { border-radius: 14px; }
body.on-support .ov-stat .v { font-size: 34px; font-weight: 800; line-height: 1.1; }
/* Dashboard: the four figures sit on a dark band, as in option A. */
body.on-support .dk .ov-stats { background: var(--band); padding: 16px; border-radius: 18px; gap: 12px; }
body.on-support .dk .ov-stat { background: var(--band-tile); border-color: transparent; color: var(--band-ink); }
body.on-support .dk .ov-stat:hover { border-color: var(--o); }
body.on-support .dk .ov-stat .l { color: var(--band-mute); font-size: 14px; }
body.on-support .dk .ov-stat .n { color: var(--band-mute); }
body.on-support .dk .ov-stat.alert { background: var(--band-red); }
body.on-support .dk .ov-stat.alert .v { color: var(--band-red-ink); }
body.on-support .dk .ov-stat.alert .n, body.on-support .dk .ov-stat.alert .l { color: var(--band-red-mute); }
/* Tickets board (option D): rounder columns and cards; a coloured dot by each column's name instead of the top stripe. */
body.on-support .tk-bcol { border-top: 0; border-radius: 16px; }
body.on-support .tk-bhead { padding: 12px 14px 8px; font-size: 15px; font-weight: 800; }
body.on-support .tk-bhead::before { content: ""; flex: none; align-self: center; width: 9px; height: 9px; border-radius: 50%; background: var(--blue-fg); }
body.on-support .tk-bcol.hold .tk-bhead::before { background: var(--amber-fg); }
body.on-support .tk-bcol.done .tk-bhead::before { background: var(--pos); }
body.on-support .tk-bcard { border-radius: 12px; padding: 12px; box-shadow: 0 1px 2px rgba(16, 24, 40, .06); }
/* Dashboard → Needs you now (stage 2 of the Support redesign, 15 Nov 2026; dashboard.js needsCard): one list, most urgent
   first, every row the same shape: what it is, whose (initials ringed in their plan's colour), the problem, how urgent,
   one next step. */
.nd-card .card-body { padding: 4px 0 8px; }
.nd-group { display: flex; align-items: center; gap: 8px; padding: 12px 20px 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--i3); border-top: 1px solid var(--b3); }
.nd-group:first-child { border-top: 0; }
.nd-group.u0 { color: var(--red-fg); }
.nd-group.u1 { color: var(--amber-fg); }
.nd-group.u2 { color: var(--blue-fg); }
.nd-count { padding: 1px 7px; border-radius: 999px; background: var(--b4); color: var(--i2); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.nd-row { display: flex; align-items: center; gap: 12px; padding: 10px 20px; color: var(--ink); text-decoration: none; border-top: 1px solid var(--b3); }
.nd-group + .nd-row { border-top: 0; }
.nd-row:hover { background: var(--row); }
.nd-row:hover .nd-act { border-color: var(--o); }
.nd-row:focus-visible { outline: 2px solid var(--o); outline-offset: -2px; }
.nd-kind { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--blue-bg); color: var(--blue-fg); }
.nd-kind.u0 { background: var(--red-bg); color: var(--red-fg); }
.nd-kind.u1 { background: var(--amber-bg); color: var(--amber-fg); }
.nd-kind svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.nd-badge { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; box-sizing: border-box; font-size: 12px; font-weight: 800; background: var(--b4); color: var(--i2); border: 3px solid var(--b2); }
.nd-badge.p-sig { background: var(--ot); color: var(--ot-fg); border-color: var(--o); }
.nd-badge.p-prime { background: var(--green-bg); color: var(--green-fg); border-color: #2BA89A; }
.nd-badge.p-prem { background: var(--blue-bg); color: var(--blue-fg); border-color: #8DB9E3; }
.nd-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.nd-main b, .nd-main .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd-main .dk-dot { display: inline-block; margin-left: 7px; vertical-align: 1px; }
.nd-end { display: flex; align-items: center; gap: 10px; flex: none; }
.nd-more { display: block; padding: 8px 20px 4px; font-size: 13px; font-weight: 600; color: var(--link); text-decoration: none; }
.nd-more:hover { text-decoration: underline; }
.nd-quiet { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 20px; text-align: center; }
.nd-quiet b { font-size: 17px; }
.nd-tick { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 4px; background: var(--green-bg); color: var(--green-fg); }
.nd-tick svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.nd-empty { margin: 0; padding: 14px 20px; }
.nd-card .note { margin: 8px 20px; }
@media (max-width: 700px) {
  .nd-row, .nd-group, .nd-more { padding-left: 14px; padding-right: 14px; }
  .nd-row { flex-wrap: wrap; }
  .nd-end { width: 100%; justify-content: flex-end; }
}
/* Support continuity (15 Nov 2026): the figure tiles on Visits, Tune-ups, Manager, Profitability and Monitoring
   (.vs-tile, .rs-stat) match the Dashboard's (.ov-stat): rounder, bigger figures. */
body.on-support .vs-tile, body.on-support .rs-stat { border-radius: 14px; }
body.on-support .vs-tile .v, body.on-support .rs-stat .n { font-size: 30px; font-weight: 800; line-height: 1.1; }
/* Control4 as UniFi's board (systems.js drawControllers, 15 Nov 2026): its flags (older OS, licence, CPU) under a card
   or tile's words, and the counts by OS, model and driver kept quiet at the foot. */
.ct-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.un-tile .ct-flags { margin-top: 4px; }
/* A board's sections fold by their headings (systems.js unSec, 16 Nov 2026): each a card with no box of its own, its
   heading the bar above its cards or tiles as before, with the fold arrow. */
.card.un-sec, body.on-support .card.un-sec { background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; margin: 20px 0 0; }
.rs-info + .card.un-sec, .card.un-sec:first-child { margin-top: 8px; }
body.on-support .card.un-sec[data-fold] > .card-head { padding: 0; margin: 0 0 10px; }
body.on-support .card.un-sec[data-fold].folded > .card-head { margin-bottom: 0; }
.card.un-sec > .card-head > h2.un-h::before { font-size: 12px; }
.un-sec-body > .card { margin: 0; }
/* Homes and Watch lists as cards and tiles (16 Nov 2026): a card's parts as pills, what's wrong a line each, and a tile
   that carries a button or a tick box. */
.hm-parts { display: flex; flex-wrap: wrap; gap: 6px; }
.un-card h3 a { color: inherit; text-decoration: none; }
.un-card h3 a:hover { text-decoration: underline; }
.un-h.red { color: var(--red-fg); }
.un-h.red span { display: inline-block; padding: 0 8px; border-radius: 999px; background: var(--red-bg); color: var(--red-fg); }
.un-card .hm-issues > div { margin-top: 2px; }
#wlTiles, #ovLinked { grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); }
.un-tile.wl-tile { align-items: flex-start; flex-wrap: wrap; }
.un-tile.wl-tile .un-dot { margin-top: 6px; }
.un-tile.wl-tile > .grow { flex: 1 1 0; display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.un-tile.wl-tile > .grow a { color: inherit; text-decoration: none; }
.un-tile.wl-tile > .grow a:hover { text-decoration: underline; }
.un-tile > .wl-tile-act, .un-tile > .wl-tile-act:last-child { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; align-items: center; width: 100%; padding-left: 18px; }
.un-tile.wl-tile .wl-pick + .un-dot { margin-left: 0; }
.un-tile.quiet .un-dot.on { background: var(--b2); }
.un-tile.red { border-left-color: var(--red-fg); }
.un-card .wl-lines { display: flex; flex-direction: column; gap: 6px; }
.un-card .k label { display: inline-flex; gap: 6px; align-items: center; }
.ct-tallies { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--b3); }
/* A client's page as a profile of the home (stage 3 of the Support redesign, 15 Nov 2026; clients.js): the dark band
   at the top of every tab, and Everything at the home on the Overview. The band is dark in both themes (--band). */
.cl-band { display: flex; flex-direction: column; gap: 16px; margin: 0 0 16px; padding: 18px; border-radius: 18px; background: var(--band); color: var(--band-ink); }
.cl-band-top { display: flex; justify-content: space-between; align-items: center; gap: 12px 18px; flex-wrap: wrap; }
.cl-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.nd-badge.cl-badge { width: 52px; height: 52px; font-size: 17px; border-width: 4px; }
.cl-chip { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; background: var(--band-tile); color: var(--band-ink); }
.cl-chip.p-sig { background: var(--o); color: #16191E; }
.cl-chip.p-prime { background: #2BA89A; color: #FFFFFF; }
.cl-chip.p-prem { background: #8DB9E3; color: #16191E; }
.cl-line { margin-top: 5px; font-size: 14px; color: var(--band-mute); }
.cl-acts { display: flex; gap: 8px; flex-wrap: wrap; }
/* A client's Tickets card: its count and New ticket together on the right of the heading (18 Nov 2026). */
.cl-head-acts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-left: auto; }
.cl-band .btn-o { background: transparent; color: var(--band-ink); border-color: rgba(255, 255, 255, .28); }
/* Their contact details (17 Nov 2026): everyone at the home on one wrapping row, the contract holder first. */
.cl-who { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: flex-start; }
.cl-person { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; min-width: 0; font-size: 14px; }
.cl-pn { display: inline-flex; align-items: center; gap: 8px; }
.cl-pn b { font-weight: 800; }
.cl-tag { padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; background: rgba(127, 209, 169, .16); color: #7FD1A9; }
.cl-person a { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--band-ink); text-decoration: none; overflow-wrap: anywhere; }
.cl-person a:hover { color: var(--o); text-decoration: underline; }
.cl-ic { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--band-mute); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cl-none { font-size: 14px; color: var(--band-mute); }
.cl-more { padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--band-mute); cursor: pointer; }
.cl-more:hover { color: var(--o); }
.cl-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 10px; }
.cl-tile { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 12px 14px; border: 1px solid transparent; border-radius: 14px; background: var(--band-tile); color: var(--band-ink); font: inherit; text-align: left; cursor: pointer; }
.cl-tile:hover { border-color: var(--o); }
.cl-tile:focus-visible { outline: 2px solid var(--o); outline-offset: 2px; }
.cl-tl-k { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--band-mute); }
.cl-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--band-mute); }
.cl-tile b { font-size: 18px; font-weight: 800; }
.cl-tl-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--band-mute); }
.cl-tile.b-red { background: var(--band-red); }
.cl-tile.b-red .cl-dot { background: var(--band-red-ink); }
.cl-tile.b-red .cl-tl-k, .cl-tile.b-red .cl-tl-n { color: var(--band-red-mute); }
.cl-tile.b-amber { background: #3A2F1A; }
.cl-tile.b-amber .cl-dot { background: #E8C27A; }
.cl-tile.b-amber .cl-tl-k, .cl-tile.b-amber .cl-tl-n { color: #D9C59C; }
.cl-tile.b-green .cl-dot { background: #7FD1A9; }
.cl-tile.b-none b { color: var(--band-mute); }
.cl-tl-day { margin: 14px 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--i3); }
.cl-tl-day:first-child { margin-top: 0; }
.cl-tl-row { display: grid; grid-template-columns: 44px 30px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px 0; border-top: 1px solid var(--b3); color: var(--ink); text-decoration: none; }
.cl-tl-day + .cl-tl-row { border-top: 0; }
a.cl-tl-row:hover b { color: var(--link); }
.cl-tl-t { padding-top: 6px; font-size: 13px; color: var(--i3); font-variant-numeric: tabular-nums; }
.cl-tl-i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--b4); color: var(--i2); }
.cl-tl-i svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cl-tl-i.k-ticket { background: var(--blue-bg); color: var(--blue-fg); }
.cl-tl-i.k-alert { background: var(--red-bg); color: var(--red-fg); }
.cl-tl-i.k-visit { background: var(--green-bg); color: var(--green-fg); }
.cl-tl-i.k-sheet { background: var(--amber-bg); color: var(--amber-fg); }
.cl-tl-m { min-width: 0; }
.cl-tl-m b { overflow-wrap: anywhere; }
.cl-tl-m .pill { margin-left: 8px; vertical-align: 1px; }
.cl-tl-m .small { display: block; margin-top: 2px; overflow-wrap: anywhere; }
.cl-tl-more { margin-top: 10px; }
@media (max-width: 700px) { .cl-band { padding: 14px; } .cl-tl-row { grid-template-columns: 38px 28px minmax(0, 1fr); gap: 8px; } }
.cl-tl-more { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card[data-fold="timeline"] { margin-bottom: 16px; }
/* Support round 3 (15 Nov 2026): one back link everywhere, a.back "‹ the tab", with anything after it on the same row. */
.back-row { margin-bottom: 6px; }
.back-row .back, .un-crumb .back { margin-bottom: 0; }
a.back:hover { color: var(--ink); }
/* A project's racks (racks.js): each rack's front drawn to scale beside its schedule; side by side on a wide screen, one
   under the other on a phone, the schedule scrolling inside its own box. */
.rk-card .card-head { flex-wrap: wrap; gap: 8px; }
.rk-card .card-head .spacer { flex: 1; }
.rk-body { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.rk-draw { flex: 0 0 auto; max-width: 100%; }
.rk-svg { display: block; max-width: 100%; height: auto; touch-action: none; user-select: none; -webkit-user-select: none; }
.rk-svg .rk-it { cursor: grab; }
.rk-tbl { flex: 1 1 420px; min-width: 0; overflow-x: auto; }
.rk-sched { width: 100%; border-collapse: collapse; font-size: 13px; }
.rk-sched th, .rk-sched td { text-align: left; padding: 3px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rk-sched thead th { background: var(--o); color: #fff; font-weight: 600; }
.rk-h { margin: 12px 0 6px; font-size: 14px; }
.rk-parts { width: 100%; border-collapse: collapse; font-size: 13px; }
.rk-parts td { text-align: left; padding: 3px 8px; border-bottom: 1px solid var(--line); }
.rk-sched tbody tr:nth-child(even) { background: var(--panel); }
.rk-sched tfoot td { font-weight: 700; border-top: 2px solid var(--ink, currentColor); }
.rk-sched tr.rk-cont td { color: var(--muted); }
.rk-sched tr.rk-row { cursor: pointer; }
.rk-sched tr.rk-row:hover, .rk-sched tr.rk-row:focus { outline: 2px solid var(--o); outline-offset: -2px; }
.rk-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.rk-checks { margin: 0 0 12px; padding-left: 18px; font-size: 13px; }
.rk-checks li.warn { color: var(--amber-fg); }
.rk-checks li.info { color: var(--muted); }
.rk-loose { margin: 10px 0 0; color: var(--amber-fg); }
.rk-pick { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; }
.labour-dlg label.rk-pickrow, .labour-dlg label.rk-tick { display: flex; flex-direction: row; gap: 8px; align-items: flex-start; font-weight: 400; }
.labour-dlg label.rk-pickrow[hidden] { display: none; }
.rk-find { width: 100%; margin-bottom: 8px; }
.rk-num { width: 70px; }
.rk-danger { color: var(--red-fg, #b03a3a); }
.rk-sched td.rk-grip { width: 18px; padding: 3px 2px 3px 6px; color: var(--muted); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.rk-sched tr.rk-dragging { opacity: .5; }
.rk-sched tr.rk-drop td { box-shadow: inset 0 2px 0 var(--o), inset 0 -2px 0 var(--o); }
.rk-newbtn { display: flex; align-items: flex-end; }
.pd-row.rk-new[hidden] { display: none; }
.labour-dlg label.rk-hide { display: none; }
.rk-offh { margin: 14px 0 6px; }
/* A project's lighting panels (lightpanels.js): each panel's front beside its rails and parts, laid out as Racks are. */
.lcp-svg { display: block; max-width: 100%; height: auto; }
.lcp-svg .lcp-slot { cursor: pointer; }
.lcp-svg .lcp-slot:hover .lcp-out { stroke: var(--o); stroke-width: 2; }
.lcp-svg .lcp-plate { pointer-events: none; }
.lcp-svg .lcp-mod { cursor: grab; touch-action: none; }
.lcp-svg .lcp-dragging { opacity: .8; cursor: grabbing; }
.lcp-svg .lcp-drop .lcp-out { stroke: var(--o); stroke-width: 2.5; stroke-dasharray: none; }
/* each rail's terminals drawn small beside it (lightpanels.js layoutHtml), numbered and joined to the panel, all placed in
   proportion so it shrinks on a phone; the rails and parts beside it where there's room, else under it */
.lcp-no { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 18px; height: 18px; border-radius: 9px; background: var(--o); color: #fff; font-size: 11px; font-weight: 700; }
.lcp-lay { position: relative; max-width: 100%; }
.lcp-lay > * { position: absolute; }
.lcp-lay-panel { left: 0; top: 0; }
.lcp-lay-panel .lcp-svg { width: 100%; max-width: none; }
.lcp-lay-ld { height: 0; border-top: 1.5px dashed var(--o); }
.lcp-lay-no { transform: translate(-50%, -50%); }
.lcp-lay-strip { display: block; }
.rk-tbl.lcp-tbls { flex-basis: 600px; }
.lcp-tbl { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 12px; }
.lcp-tbl th, .lcp-tbl td { text-align: left; padding: 3px 8px; border-bottom: 1px solid var(--line); }
/* A panel's RCBOs popup: each part, then its RCBO's number. */
.lcp-rcs td:last-child { width: 130px; }
.lcp-rcs select { width: 100%; }
.lcp-tbl thead th { background: var(--o); color: #fff; font-weight: 600; }
.lcp-h { margin: 4px 0 6px; font-size: 14px; }
.lcp-say { display: block; font-size: 12px; color: var(--muted); }
.lcp-cc { margin: 10px 0 0; }
/* A lighting panel's wiring (lightpanels.js): the schedule, an output a row that opens, and the schematic drawn from it.
   Both scroll sideways inside their card on a phone rather than widening the page. */
.lw-wrap { overflow-x: auto; max-width: 100%; }
.lw-tbl .lw-ref { font-family: ui-monospace, Menlo, Consolas, monospace; white-space: nowrap; }
.lcp-tbl tr.lw-mod th { background: var(--ot); color: var(--ink); font-weight: 700; border-top: 2px solid var(--rule); padding-top: 8px; }
.lcp-tbl tr.lw-mod .muted { font-weight: 400; margin-left: 8px; }
.lcp-tbl tr.lw-sup td { color: var(--muted); font-size: 12px; }
.lw-terms, .lw-tbl tr.lw-out td:nth-child(2) { white-space: nowrap; }
.lw-term { display: inline-block; min-width: 30px; padding: 0 4px; margin-right: 3px; border-radius: 3px; border: 1px solid transparent; box-sizing: border-box; font: 600 11px/16px ui-monospace, Menlo, Consolas, monospace; text-align: center; }
.lw-term.lw-br { background: #7a4a1e; color: #fff; }
.lw-term.lw-bl { background: #1f5fae; color: #fff; }
.lw-term.lw-rd { background: #c62828; color: #fff; }
.lw-term.lw-wh { background: #fff; color: #1d2433; border-color: #9aa2b1; }
.lw-term.lw-bk { background: #1d2433; color: #fff; border-color: #5b6475; }
.lcp-tbl tr.lw-out { cursor: pointer; }
.lcp-tbl tr.lw-out:hover, .lcp-tbl tr.lw-out:focus { outline: 2px solid var(--o); outline-offset: -2px; }
.lw-pow { max-width: 640px; }
.lw-pick { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.lw-svg { display: block; max-width: none; }
.lw-svg .lw-box { fill: var(--panel); stroke: var(--ink); stroke-width: 1; }
.lw-svg .lw-proc { fill: var(--purple-bg); }
.lw-svg .lw-t { font-size: 10px; font-weight: 600; fill: var(--ink); }
.lw-svg .lw-s, .lw-svg .lw-c { font-size: 9px; fill: var(--ink); }
.lw-svg .lw-s { fill: var(--muted); }
.lw-svg .lw-l { stroke: var(--ink); stroke-width: 1; fill: none; }
.lw-svg .lw-bus { stroke: var(--ink); stroke-width: 3; }
.lw-svg .lw-qs { stroke: var(--purple-fg); stroke-width: 1.2; stroke-dasharray: 4 3; fill: none; }
.lw-svg .lw-qs-k { fill: var(--purple-fg); }
.lw-svg .lw-ref { font-size: 9px; fill: var(--ot-fg); font-family: ui-monospace, Menlo, Consolas, monospace; }
.lw-svg .lw-spare { stroke: var(--muted); stroke-dasharray: 2 2; }
.lw-svg .lw-spare-t { fill: var(--muted); }
/* Racks' wiring (racks.js): a schematic a kind, its cables coloured by kind; the pieces with no ports yet. */
.rw-svg { margin-bottom: 14px; }
.rw-svg .rw-l { fill: none; stroke-width: 1.2; }
.rw-svg .rw-l.rw-spk { stroke-width: 1.6; stroke-dasharray: 6 3; }
.rw-svg .rw-l.rw-P { stroke: var(--red-fg); }
.rw-svg .rw-l.rw-N { stroke: var(--green-fg); }
.rw-svg .rw-l.rw-A { stroke: var(--blue-fg); }
.rw-svg .rw-l.rw-V { stroke: var(--purple-fg); }
.rw-svg .rw-l.rw-C { stroke: #d65aa8; }
.rw-svg .rw-l.rw-O { stroke: var(--muted); }
.rw-svg .rw-end.rw-P { fill: var(--red-fg); }
.rw-svg .rw-end.rw-N { fill: var(--green-fg); }
.rw-svg .rw-end.rw-A { fill: var(--blue-fg); }
.rw-svg .rw-end.rw-V { fill: var(--purple-fg); }
.rw-svg .rw-end.rw-C { fill: #d65aa8; }
.rw-svg .rw-end.rw-O { fill: var(--muted); }
.rw-none { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rw-has { margin-top: 4px; }
/* a schematic piece whose ports can be changed on Products (racks.js schematicSvg) */
.rw-svg .rw-pc { cursor: pointer; outline: none; }
.rw-svg .rw-pc:hover .lw-box, .rw-svg .rw-pc:focus-visible .lw-box { stroke: var(--accent); stroke-width: 2; }
/* the schematic's hub, and the rooms and other racks its cables go to */
.rw-svg .lw-box.rw-hub { stroke-width: 2; }
.rw-svg .lw-box.rw-dest { fill: var(--bg); stroke: var(--line-strong); }
/* A piece in another rack: kit's box, its rack's badge in the cable's colour. */
.rw-svg .rw-badge { fill: var(--muted); }
.rw-svg .rw-badge.rw-P { fill: var(--red-fg); } .rw-svg .rw-badge.rw-N { fill: var(--green-fg); } .rw-svg .rw-badge.rw-A { fill: var(--blue-fg); }
.rw-svg .rw-badge.rw-V { fill: var(--purple-fg); } .rw-svg .rw-badge.rw-C { fill: #d65aa8; }
.rw-svg .rw-badget { font-size: 8.5px; font-weight: 700; fill: var(--panel); }
/* Racks: quicker connections (racks.js, James, 19 Nov 2026): Back of rack, the Schematic's ports, Grid, the tick list. */
.wq-back { position: relative; display: flex; flex-direction: column; gap: 6px; background: #22252c; border-radius: 8px; padding: 10px; }
.wq-pc { display: flex; flex-wrap: wrap; gap: 8px 16px; background: #13161c; border: 1px solid #3b404a; border-radius: 4px; padding: 8px 10px; color: #e9ecf1; }
.wq-name { flex: 0 0 180px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font: inherit; font-size: 13px; color: inherit; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; align-self: flex-start; }
.wq-name:hover b { text-decoration: underline; }
.wq-pc.wq-pick { border-color: var(--o); box-shadow: 0 0 0 1px var(--o); }
/* Back of rack's cables (racks.js backCables): room on the right for the risers and where cables go, and under each port
   for its label when Labels is on */
.wq-back.wq-gut { padding-right: 240px; }
.wq-back.wq-lab .wq-dots { row-gap: 16px; padding-bottom: 14px; }
.wq-cab { position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none; overflow: visible; }
.wq-cab path { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.wq-cab path.wq-faint { opacity: .12; }
.wq-ref { position: absolute; z-index: 2; width: 28px; text-align: center; font: 600 9px/12px system-ui, -apple-system, sans-serif; background: #13161c; border-radius: 3px; pointer-events: none; }
.wq-to { position: absolute; z-index: 2; font: 500 11px/16px system-ui, -apple-system, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.wq-to.wq-faint { opacity: .25; }
@media (max-width: 700px) { .wq-back.wq-gut { padding-right: 96px; } }
.wq-name .muted, .wq-pc .muted { color: #9aa2b1; }
.wq-gs { flex: 1 1 300px; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.wq-g { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wq-gl { font-size: 11px; color: #aab1bf; }
.wq-dots { display: flex; flex-wrap: wrap; gap: 4px; }
.wq-p { --k: #8a93a3; }
.wq-k-power { --k: #d0544a; } .wq-k-network { --k: #2fa383; } .wq-k-hdmi, .wq-k-hdbaset, .wq-k-coax { --k: #9a6fd6; }
.wq-k-audio, .wq-k-digital, .wq-k-speaker { --k: #4f8ed8; } .wq-k-ir, .wq-k-serial, .wq-k-relay, .wq-k-contact, .wq-k-usb { --k: #d65aa8; }
button.wq-p { width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 2.5px solid var(--k); background: transparent; color: #e9ecf1; font: 600 10px/1 system-ui, -apple-system, sans-serif; cursor: pointer; touch-action: none; box-sizing: border-box; }
button.wq-p.wq-used { background: var(--k); color: #fff; }
button.wq-p.wq-src { box-shadow: 0 0 0 3px var(--o); }
button.wq-p.wq-fit { box-shadow: 0 0 0 3px rgba(243, 146, 0, .55); }
.wq-p.wq-dim { opacity: .25; }
.lw-svg circle.wq-p { fill: var(--panel); stroke: var(--k); stroke-width: 2; cursor: pointer; touch-action: none; outline: none; }
.lw-svg circle.wq-p.wq-used { fill: var(--k); }
.lw-svg circle.wq-p.wq-src, .lw-svg circle.wq-p:focus-visible { stroke: var(--o); stroke-width: 3.5; }
.lw-svg circle.wq-p.wq-fit { stroke: var(--o); stroke-width: 3; fill: var(--ot); }
.lw-svg .wq-free { fill: var(--muted); }
.lw-svg .wq-room { cursor: pointer; outline: none; }
.lw-svg .wq-room rect { fill: var(--panel); stroke: var(--line-strong); }
.lw-svg .wq-room.wq-fit rect, .lw-svg .wq-room:focus-visible rect { stroke: var(--o); stroke-width: 2; fill: var(--ot); }
.wq-drag { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 9999; }
.wq-drag line { stroke: var(--o); stroke-width: 3; stroke-dasharray: 7 5; }
.wq-gridpick { max-width: 640px; }
.wq-grid { border-collapse: collapse; font-size: 12.5px; }
.wq-grid th { font-weight: 600; padding: 4px 6px; white-space: nowrap; text-align: center; }
.wq-grid tbody th { text-align: left; position: sticky; left: 0; background: var(--panel); z-index: 1; border-top: 1px solid var(--line); }
.wq-grid tbody th .small { display: block; font-weight: 400; }
@media (max-width: 860px) { .wq-grid tbody th { white-space: normal; min-width: 110px; max-width: 140px; } }
.wq-grid td { padding: 3px; text-align: center; border-top: 1px solid var(--line); }
.wq-c { display: inline-block; width: 44px; height: 32px; border-radius: 6px; box-sizing: border-box; vertical-align: middle; font: 700 11px/1 ui-monospace, Menlo, Consolas, monospace; }
button.wq-c.wq-free { border: 1.5px dashed var(--line-strong); background: var(--panel); cursor: pointer; }
button.wq-c.wq-free:hover, button.wq-c.wq-free:focus-visible { border-color: var(--o); background: var(--ot); }
button.wq-c.wq-on { border: none; background: #2f6db5; color: #fff; cursor: pointer; }
span.wq-c.wq-off { background: var(--zebra); }
.wq-sug, dialog label.wq-sug { display: flex; flex-direction: row; gap: 10px; align-items: flex-start; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink); }
.wq-sug input { margin-top: 2px; flex: none; }
/* a power output's cables, to open one (racks.js outletCables) */
.wq-oc { display: flex; gap: 12px; align-items: baseline; width: 100%; padding: 9px 4px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.wq-oc:hover, .wq-oc:focus-visible { background: var(--ot); }
.wq-oc b { flex: none; min-width: 64px; font: 700 12px/1.4 ui-monospace, Menlo, Consolas, monospace; }
.wq-oc span { min-width: 0; overflow-wrap: anywhere; }
/* a piece's ports, in its popup on Layout */
.rk-ports { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 10px; }
.rk-ports > span { flex: 1; min-width: 0; }
.lw-svg .lw-tm.lw-br { fill: #7a4a1e; }
.lw-svg .lw-tm.lw-bl { fill: #1f5fae; }
.lw-svg .lw-tm.lw-rd { fill: #c62828; }
.lw-svg .lw-tm.lw-wh { fill: #fff; stroke: #9aa2b1; }
.lw-svg .lw-tm.lw-bk { fill: #1d2433; stroke: #5b6475; }
.lw-svg .lw-tt { font-size: 7.5px; fill: #fff; font-family: ui-monospace, Menlo, Consolas, monospace; }
.lw-svg .lw-tt.lw-dk { fill: #1d2433; }
.lw-svg .lw-ln { stroke-width: 2; fill: none; }
.lw-svg .lw-ln.lw-bl { stroke: #4a86d4; }
.lw-svg .lw-ln.lw-br { stroke: #a8692f; }
/* the wiring schedule and schematic as the design canvas's E2, Q2 and J2 (19 Nov 2026): each wire's marker, the terminal
   blocks drawn small as on the rail, the orange bridge down a bridged run, each part's supply drawn, the QS rows */
.lw-mk { display: inline-block; padding: 1px 7px; border-radius: 9px; background: #f2c230; box-shadow: inset 0 0 0 1px #b8901c; color: #1d2433; font: 700 11px/16px ui-monospace, Menlo, Consolas, monospace; white-space: nowrap; }
.lw-blk { display: block; }
.lcp-tbl td.lw-tb { position: relative; }
.lw-br { position: absolute; left: 13px; width: 4px; background: #ee6a2b; box-shadow: 0 0 0 1px #a8431a; pointer-events: none; }
.lcp-tbl tr.lw-grp td { border-top: 1px dashed var(--rule); }
.lw-supsvg { display: block; max-width: 100%; height: auto; }
.lcp-tbl tr.lw-qs td { background: var(--purple-bg); }
.lw-key { margin: 0 0 8px; }
.lw-svg .lw-l.lw-bridge { stroke: #ee6a2b; stroke-width: 4; stroke-linecap: round; }
.lw-svg .lw-mkr { fill: #f2c230; stroke: #b8901c; stroke-width: .8; }
.lw-svg .lw-pt, .lw-svg .lw-tg { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; fill: #1d2433; }
.lw-svg .lw-pt { font-size: 10px; }
.lw-svg .lw-tg { font-size: 9px; }
.lw-svg .lw-p, .lw-svg .lw-pq { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 9px; font-weight: 700; fill: var(--ink); }
.lw-svg .lw-pq, .lw-svg .lw-k { fill: var(--purple-fg); }
.lw-svg .lw-k { font-size: 10px; font-weight: 700; }
.lw-svg .lw-lb { fill: var(--ot); stroke: var(--o); }
.lw-svg .lw-cab { fill: var(--panel); fill-opacity: .85; stroke: var(--muted); stroke-width: 1.2; }
.lw-svg .lw-cab-sp { stroke-dasharray: 3 3; }
/* A project's window treatments (shades.js): each SPU drawn with its outputs beside its schedule; the treatments' list. */
.wt-svg { display: block; max-width: 100%; height: auto; }
/* an SPU's schematic (shades.js schematicSvg): as wide as it needs, scrolling in .lw-wrap on a phone */
.wt-sch { display: block; max-width: none; }
.wt-sch .wts-h { font-size: 12px; font-weight: 700; fill: var(--ink); }
.wt-sch .wts-t { font-size: 11px; font-weight: 600; fill: var(--ink); }
.wt-sch .wts-s { font-size: 9.5px; fill: var(--ink); }
.wt-sch .wts-m { font-size: 10px; fill: var(--muted); }
.wt-sch .wts-box { fill: var(--panel); stroke: var(--ink); stroke-width: 1; }
.wt-sch .wts-box.on { fill: #f28c28; stroke: #f28c28; }
.wt-sch .wts-box.on + text { fill: #fff; }
.wt-sch .wts-frame { fill: none; stroke: var(--muted); stroke-dasharray: 4 3; }
.lcp-tbl tr.wt-row { cursor: pointer; }
.lcp-tbl tr.wt-row:hover, .lcp-tbl tr.wt-row:focus { outline: 2px solid var(--o); outline-offset: -2px; }
.wt-list .wt-pick { min-width: 0; width: 100%; max-width: 280px; }
/* A window treatment's site survey: Measure in the list, its popup's mm boxes and photos. */
.wt-sv { white-space: nowrap; }
.wt-sv.done { color: var(--green-fg); background: var(--green-bg); border-color: var(--green-fg); }
.wt-sv-sub { margin: -4px 0 10px; }
.wt-mm { display: flex; align-items: center; gap: 6px; }
.wt-mm .f-in { flex: 1 1 auto; min-width: 0; }
/* A survey's photos, and one open to draw the measurements on (shades.js drawOn) */
.wt-photos .fl-thumb { position: relative; }
.wt-n { position: absolute; right: 3px; bottom: 3px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--o); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; padding: 0 4px; }
.wt-on { font-size: 13px; }
.wt-ed { position: fixed; inset: 0; background: rgba(10,12,16,.9); z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding: 12px; overflow-y: auto; }
.wt-ed-in { max-width: 100%; max-height: 100%; display: flex; flex-direction: column; gap: 10px; }
.wt-ed-pic { position: relative; align-self: center; line-height: 0; touch-action: none; user-select: none; -webkit-user-select: none; cursor: crosshair; }
.wt-ed-pic img { display: block; max-width: 100%; max-height: calc(100vh - 210px); max-height: calc(100dvh - 210px); min-width: 120px; min-height: 120px; object-fit: contain; border-radius: 4px; background: #222; pointer-events: none; -webkit-user-drag: none; }
.wt-ed-pic svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.wt-ed-under { stroke: rgba(0,0,0,.7); stroke-width: 6px; stroke-linecap: round; }
.wt-ed-ln { stroke: var(--o); stroke-width: 3px; stroke-linecap: round; }
.wt-ed-ln.on { stroke: #fff; }
.wt-ed-tags { position: absolute; inset: 0; pointer-events: none; }
.wt-tag { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; border: 0; border-radius: 10px; padding: 2px 8px; background: rgba(29,36,51,.88); color: #fff; font-size: 12px; line-height: 18px; white-space: nowrap; cursor: pointer; }
.wt-tag.on { background: var(--o); }
.wt-end { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 2px solid #fff; background: rgba(242,140,40,.6); pointer-events: auto; cursor: move; }
.wt-ed-bar { background: var(--panel); color: var(--ink); border-radius: 8px; padding: 10px 12px; line-height: normal; width: min(640px, calc(100vw - 24px)); align-self: center; box-sizing: border-box; }
.wt-ed-bar p { margin: 0 0 8px; }
.wt-ed-bar .pd-row { margin-bottom: 8px; }
.wt-ed-bar .sf-actions { margin-top: 0; }
/* On a phone the list has no Kind column: each name says blind or curtains. */
@media (max-width: 860px) { .wt-list th:nth-child(3), .wt-list td:nth-child(3) { display: none; } }

/* Design → Drawings (drawings.js): a floor's AV drawing from the architect's DWG. */
.dw-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.dw-card-t { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.dw-danger { color: var(--neg); }
.dw-danger:hover { border-color: var(--neg); color: var(--neg); }
.labour-dlg.dw-wide { width: min(1100px, 96vw); }
.dw-files { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow: auto; }
.dw-file { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 8px 10px; border: 1px solid var(--b2); border-radius: 6px; background: var(--panel); color: var(--ink); font: inherit; cursor: pointer; min-width: 0; }
.dw-file b, .dw-file span { max-width: 100%; overflow-wrap: anywhere; }
.dw-file:hover:not(:disabled) { border-color: var(--o); }
.dw-file:disabled { opacity: .5; cursor: default; }
.dw-picks { display: flex; flex-wrap: wrap; gap: 12px; }
.dw-pick { flex: 1 1 260px; max-width: 320px; display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 8px; border: 1px solid var(--b2); border-radius: 8px; background: var(--panel); color: var(--ink); font: inherit; cursor: pointer; }
.dw-pick:hover { border-color: var(--o); }
.dw-pick.dw-best { border-color: var(--o); box-shadow: 0 0 0 1px var(--o); }
.dw-pick canvas, .dw-thumb { width: 100%; height: auto; border-radius: 4px; background: #fff; border: 1px solid var(--b3); }
.dw-all { display: block; width: 100%; height: min(62vh, 620px); background: #fff; border: 1px solid var(--b2); border-radius: 6px; touch-action: none; cursor: crosshair; }
.dw-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.dw-bar .dw-name { font-size: 16px; }
.dw-bar-r { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dw-head .dw-btns { margin: 0; }
/* A room's ID (Rooms, for the AV drawings): before its name. */
.rm-code { font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.dw-bar .subswitch { flex-wrap: wrap; }
.dw-main { display: flex; gap: 14px; align-items: flex-start; }
.dw-stage { position: relative; flex: 1 1 auto; min-width: 0; }
.dw-stage canvas { display: block; width: 100%; background: #fff; border: 1px solid var(--b2); border-radius: 6px; touch-action: none; }
.dw-zoom { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; gap: 4px; }
.dw-zoom button { width: 34px; height: 34px; border-radius: 6px; border: 1px solid var(--b2); background: var(--panel); color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; }
.dw-hint { margin: 6px 0 0; color: var(--muted); }
.dw-side { flex: 0 0 300px; max-height: 80vh; overflow: auto; }
.dw-side .lb-sec { margin: 0 0 14px; }
.dw-rooms { list-style: none; margin: 0; padding: 0; }
.dw-rooms li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-bottom: 1px solid var(--b3); }
.dw-rooms li .proc-link { text-align: left; }
.dw-checks li { flex-direction: column; gap: 0; }
.dw-checks li .small { text-align: left; color: var(--neg); }
.dw-rooms li .small { text-align: right; }
.dw-side input[type=search] { box-sizing: border-box; width: 100%; height: 36px; border: 1px solid var(--b2); border-radius: 4px; padding: 0 10px; background: var(--panel); color: var(--ink); font: inherit; }
.dw-layers { max-height: 340px; overflow: auto; border: 1px solid var(--b3); border-radius: 6px; padding: 4px 6px; }
.dw-layer { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px; align-items: center; padding: 2px 0; font-size: 13px; }
.dw-layer span:nth-child(2) { overflow-wrap: anywhere; }
.dw-mounts { margin: 0 0 8px; flex-wrap: wrap; }
.dw-msw img { width: 18px; height: 18px; margin-right: 5px; vertical-align: -4px; }
.dw-ic-g { margin: 8px 0 4px; }
.dw-palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 4px; }
.dw-ic { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 2px; border: 1px solid var(--b3); border-radius: 6px; background: var(--panel); color: var(--ink); font: inherit; font-size: 11px; line-height: 1.2; cursor: pointer; min-width: 0; }
.dw-ic img { width: 30px; height: 30px; }
.dw-ic span { max-width: 100%; overflow-wrap: anywhere; text-align: center; }
.dw-kit-list { display: flex; flex-direction: column; gap: 4px; margin: 6px 0; }
.dw-kit-it { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 4px 8px; border: 1px solid var(--b3); border-radius: 6px; background: var(--panel); color: var(--ink); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.dw-kit-it img { width: 28px; height: 28px; }
.dw-kit-it img.pw { opacity: .45; }
.dw-kit-it em { font-style: normal; font-size: 11px; color: var(--muted); }
.dw-kit-it b { font-size: 12px; white-space: nowrap; }
.dw-kit-it.done { opacity: .6; }
.dw-kit-it.done b { color: var(--green-fg); }
.dw-kit-it.on { border-color: var(--o); box-shadow: 0 0 0 1px var(--o); }
.dw-ic:hover { border-color: var(--o); }
.dw-ic.on { border-color: var(--o); box-shadow: 0 0 0 1px var(--o); }
.dw-btns { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.dw-selroom { border: 1px solid var(--b2); border-radius: 8px; padding: 8px 10px; background: var(--bg); }
.dw-selroom h3 { display: flex; align-items: center; gap: 6px; }
.dw-swatch { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.dw-sheet-r { display: flex; gap: 6px; align-items: center; }
.dw-sheet-r select { height: 28px; }
.dw-how summary { cursor: pointer; font-size: 14px; margin: 0 0 4px; }
.dw-how ol, .dw-how ul { margin: 0; padding-left: 18px; }
.dw-how li { margin: 0 0 3px; }
/* The cable schedule (drawcables.js): one row a cable, as Bearsden's Excel, each cell changed in place. */
.dw-boxid { color: var(--ot-fg); }
/* the cable schedule (drawcables.js): close together, in IndigoZest's dark, orange and greys (James, 19 Nov 2026) */
.cbs-top { align-items: center; }
.cbs-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cbs-title h3 { margin: 0; font-size: 17px; }
.cbs-title p { margin: 0; }
.cbs-band { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin: 6px 0 8px; }
.cbs-band .f-in { width: auto; height: 32px; font-size: 13px; padding: 0 8px; }
.cbs-band .cbs-find { flex: 0 1 220px; min-width: 140px; }
.cbs-chip { border: 1px solid var(--b2); border-radius: 999px; padding: 3px 10px; font-size: 12px; background: var(--panel); color: var(--i2); }
.cbs-new { background: var(--ot); border-color: var(--o); color: var(--ot-fg); }
.cbs-warn { color: var(--neg); border-color: var(--neg); }
.cbs-wrap { overflow-x: auto; border: 1px solid var(--b2); border-radius: 8px; background: var(--panel); }
.cbs-t { min-width: 1200px; font-size: 13px; }
.cbs-r { display: grid; grid-template-columns: 92px 150px 72px 170px 64px 96px 44px 130px 84px 70px 34px 50px minmax(120px, 1fr) 24px; align-items: center; border-top: 1px solid var(--b3); }
.cbs-r > * { min-width: 0; padding: 0 2px; }
.cbs-h { position: sticky; top: 0; z-index: 2; background: var(--dark); color: #fff; font-size: 12px; font-weight: 600; border-top: 0; box-shadow: inset 0 -2px 0 var(--o); }
.cbs-h > * { padding: 7px 5px 8px; line-height: 1.2; white-space: nowrap; }
.cbs-first { border-top-color: var(--b2); }
.cbs-isnew { background: var(--ot); }
.cbs-floor { padding: 5px 10px; font-weight: 700; font-size: 13px; color: var(--ink); background: var(--b4); border-top: 1px solid var(--b2); box-shadow: inset 3px 0 0 var(--o); }
.cbs-room { padding: 4px 10px; border-top: 1px solid var(--b2); font-weight: 600; }
.cbs-room b { color: var(--ot-fg); margin-right: 6px; font-variant-numeric: tabular-nums; }
.cbs-kind { padding: 3px 10px 0 96px; font-size: 10.5px; line-height: 14px; letter-spacing: .05em; text-transform: uppercase; color: var(--i4); font-weight: 600; }
.cbs-id { display: flex; align-items: center; justify-content: space-between; gap: 2px; font-weight: 700; padding-left: 10px !important; font-variant-numeric: tabular-nums; }
.cbs-in { box-sizing: border-box; width: 100%; height: 26px; border: 1px solid transparent; border-radius: 4px; padding: 0 4px; background: transparent; color: var(--ink); font: inherit; }
.cbs-in:hover:not(:disabled) { border-color: var(--b2); }
.cbs-in:focus { border-color: var(--o); background: var(--panel); outline: none; }
.cbs-in:disabled { color: var(--ink); }
.cbs-mono { font-variant-numeric: tabular-nums; font-weight: 600; }
.cbs-r input[type="checkbox"] { margin: 0 0 0 6px; accent-color: var(--o); }
.cbs-x { width: 22px; height: 22px; border: 0; border-radius: 4px; background: transparent; color: var(--i4); font-size: 15px; cursor: pointer; }
.cbs-x:hover { color: var(--neg); background: var(--bg); }
.cbs-more { position: relative; flex: none; }
.cbs-more summary { list-style: none; width: 20px; height: 20px; line-height: 18px; text-align: center; border-radius: 4px; border: 1px solid var(--b2); color: var(--i3); font-weight: 600; cursor: pointer; }
.cbs-more summary::-webkit-details-marker { display: none; }
.cbs-more summary:hover, .cbs-more[open] summary { border-color: var(--o); color: var(--ot-fg); }
.cbs-menu { position: absolute; left: 0; top: 24px; z-index: 3; display: flex; flex-direction: column; min-width: 170px; padding: 4px; background: var(--panel); border: 1px solid var(--b2); border-radius: 6px; box-shadow: var(--shadow); }
.cbs-menu button { border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 400; text-align: left; padding: 6px 8px; border-radius: 4px; cursor: pointer; }
.cbs-menu button:hover { background: var(--ot); }
.cbs-pow { border-top: 1px dashed var(--b3); }
.cbs-powl { grid-column: 4; text-align: right; padding-right: 6px !important; font-size: 11px; color: var(--i4); }
.cbs-powt { grid-column: 5 / 14; }
.cbs-pow .cbs-in { font-style: italic; color: var(--i3); }
.cbs-empty { padding: 16px; color: var(--muted); }
.cbs-floor, .cbs-room { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cbs-pbb { flex: none; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--i4); font: inherit; font-size: 11px; font-weight: 600; padding: 1px 8px; cursor: pointer; }
.cbs-floor:hover .cbs-pbb, .cbs-room:hover .cbs-pbb, .cbs-pbb:focus-visible { border-color: var(--b2); color: var(--i2); }
.cbs-pbb.on, .cbs-floor:hover .cbs-pbb.on, .cbs-room:hover .cbs-pbb.on { border-color: var(--o); color: var(--ot-fg); background: var(--ot); }
.cbs-pb { display: flex; align-items: center; gap: 8px; padding: 0 4px 0 10px; height: 20px; border-top: 2px dashed var(--o); font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ot-fg); }
.cbs-pb .cbs-x { margin-left: auto; }
@media (hover: none) { .cbs-pbb { border-color: var(--b2); } }
.cbs-key { margin: 6px 0 0; }
.cbs-key b { color: var(--ot-fg); }
.cbs-types { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.cbs-tlist { flex: 1 1 220px; max-width: 280px; display: flex; flex-direction: column; gap: 6px; }
.cbs-tlist input { box-sizing: border-box; width: 100%; }
.cbs-tlist #csTList { max-height: 50vh; overflow: auto; border: 1px solid var(--b3); border-radius: 6px; }
.cbs-tbtn { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--b3); background: transparent; color: var(--ink); font: inherit; font-size: 13px; padding: 6px 8px; cursor: pointer; }
.cbs-tbtn.on { background: var(--bg); font-weight: 600; box-shadow: inset 3px 0 0 var(--o); }
.cbs-tform { flex: 999 1 420px; min-width: 0; }
.cbs-tc { display: grid; grid-template-columns: minmax(0, 1.4fr) 56px minmax(0, .7fr) minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, .7fr) 26px; gap: 4px; margin: 0 0 4px; }
.cbs-tc input, .cbs-tc select { box-sizing: border-box; width: 100%; min-width: 0; }
.cbs-tch { font-size: 12px; color: var(--muted); }
.cbs-tform .cbs-pow { padding: 0; border: 0; }
.cbs-tform .cbs-pow input { flex: 1 1 auto; }
@media (max-width: 860px) { .dw-main { flex-direction: column; } .dw-side { flex: none; width: 100%; max-height: none; } }
