/* plainlook.css */
/* plainlook: the 14 Nov 2026 look review ("less machine-made"). Loaded last on every page (base.html), so the shared
   building blocks are changed here once instead of page by page. Review: plain rows instead of boxes, one main button,
   IBM Plex, slate dark. */

/* ---- round 1 ---------------------------------------------------------------------------------------------------------- */
/* Feedback is in the menu's foot (look26.js), not a tab on the page edge */
html.look26 .fb-open { display: none; }

/* the rules badge is a word, not code */
.j-badge { font-family: inherit; letter-spacing: 0; }

/* calendar: a small pager, and a diary list on a phone */
.pl-pager { display: flex; gap: 6px; flex-wrap: wrap; }
.cal-agenda { display: none; list-style: none; margin: 0; padding: 0; }
@media (max-width: 700px) {
  .cal-panel .cal { display: none; }
  .cal-agenda { display: block; }
  .cal-agenda li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .cal-agenda li:last-child { border-bottom: 0; }
  .cal-agenda li.empty { display: block; color: var(--muted); }
  .ca-day b { display: block; font-size: 1.4rem; line-height: 1.1; font-weight: 600; font-variant-numeric: tabular-nums; }
  .ca-day span { font-size: var(--fs-sm, .85rem); color: var(--muted); }
  .cal-agenda li.today .ca-day b { color: var(--accent-dark); }
  .cal-agenda li.past { opacity: .6; }
  .ca-evs { display: grid; gap: 6px; }
  .ca-evs .cal-e { display: block; white-space: normal; overflow: visible; text-overflow: clip; padding: 8px 10px; font-size: var(--fs-md, .92rem); line-height: 1.35; min-height: 44px; }
  .ca-evs .cal-e span { display: block; font-size: var(--fs-sm, .85rem); opacity: .8; }
}

/* ---- round 2: fewer boxes ----------------------------------------------------------------------------------------------- */
/* two corner sizes, small; the big 22px "cockpit" panels were the generated look */
html.ck-site { --ck-r: 12px; --radius: 10px; --radius-lg: 12px; --radius-sm: 6px; }
html.ck-site .ck { --ck-r: 12px; }   /* corners only through html, so purpose.css's 2/4/8px tokens reach inside the cockpit too */
html.ui-modern .panel .panel { border: 0; padding: 0; background: none; }               /* never a box inside a box */

/* totals: one strip with thin dividers, not a row of tiles */
html.ui-modern :is(.stats, .kpis) { display: flex; flex-wrap: wrap; gap: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius, 12px); padding: 4px 0; margin-bottom: 16px; }
html.ui-modern[data-theme="night"] :is(.stats, .kpis) { border-color: transparent; }
html.ui-modern :is(.stats, .kpis) > :is(.stat, .kpi) { flex: 1 1 150px; min-width: 0; background: none !important; border: 0 !important;
  border-left: 1px solid var(--border) !important; border-radius: 0 !important; box-shadow: none !important; padding: 8px 16px !important; container-type: normal !important; }
html.ui-modern :is(.stats, .kpis) > :is(.stat, .kpi):first-child { border-left: 0 !important; }
html.ui-modern :is(.stats, .kpis) > :is(.stat, .kpi) b { font-size: var(--fs-xl, 1.32rem) !important; font-weight: 600; letter-spacing: 0; white-space: nowrap; }
html.ui-modern :is(.stats, .kpis) > :is(.stat, .kpi) :is(span, small) { font-size: var(--fs-sm, .85rem) !important; text-transform: none !important; letter-spacing: 0 !important;
  font-weight: 400 !important; color: var(--muted); }
@media (max-width: 700px) {   /* on a phone: label left, figure right, one row each */
  html.ui-modern :is(.stats, .kpis) { flex-direction: column; padding: 0 16px; }
  html.ui-modern :is(.stats, .kpis) > :is(.stat, .kpi) { flex: none; display: grid !important; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline;
    column-gap: 12px; border-left: 0 !important; border-top: 1px solid var(--border) !important; padding: 10px 0 !important; min-height: 44px !important; height: auto !important;
    aspect-ratio: auto !important; row-gap: 2px !important; align-content: start; grid-template-rows: auto; grid-auto-rows: auto; }
  html.ui-modern :is(.stats, .kpis) > :is(.stat, .kpi):first-child { border-top: 0 !important; }
  html.ui-modern :is(.stats, .kpis) > :is(.stat, .kpi) > b { grid-column: 2; grid-row: 1; order: 0 !important; font-size: var(--fs-lg, 1.15rem) !important; }
  html.ui-modern :is(.stats, .kpis) > :is(.stat, .kpi) > span { grid-column: 1; grid-row: 1; order: 0 !important; font-size: var(--fs-md, .92rem) !important; color: var(--text); }
  html.ui-modern :is(.stats, .kpis) > :is(.stat, .kpi) > small { grid-column: 1 / -1; grid-row: 2; order: 0 !important; }
  html.ui-modern :is(.stats, .kpis) > :is(.stat, .kpi)::before, html.ui-modern :is(.stats, .kpis) > :is(.stat, .kpi)::after { content: none !important; }
}

/* Today: the areas as rows - name and what it covers on the left, the count on the right */
.ck .hub-buttons { display: block !important; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius, 12px); padding: 0 16px; }
html[data-theme="night"] .ck .hub-buttons { border-color: transparent; }
.ck .hub-buttons .hub-btn { display: grid !important; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "name needs big" "desc needs unit";
  column-gap: 14px; row-gap: 0; align-items: baseline; padding: 12px 0 !important; min-height: 44px !important; background: none !important;
  border: 0 !important; border-top: 1px solid var(--border) !important; border-radius: 0 !important; box-shadow: none !important; }
.ck .hub-buttons .hub-btn:first-child { border-top: 0 !important; }
.ck .hub-buttons .hub-btn:hover h2 { text-decoration: underline; }
.ck .hub-btn .hb-top { grid-area: needs; align-self: center; margin: 0 !important; min-height: 0 !important; }
.ck .hub-btn .hb-ico { display: none !important; }
.ck .hub-btn h2 { grid-area: name; margin: 0 !important; font-size: var(--fs-base, 1rem) !important; font-weight: 600; }
.ck .hub-btn p { grid-area: desc; display: block !important; margin: 0 !important; font-size: var(--fs-md, .92rem); color: var(--muted); }
.ck .hub-btn .hb-big { grid-area: big; justify-self: end; font-size: var(--fs-lg, 1.15rem) !important; font-weight: 600; line-height: 1.3; margin: 0 !important; }
.ck .hub-btn .hb-unit { grid-area: unit; justify-self: end; margin: 0 !important; font-size: var(--fs-xs, .78rem); color: var(--muted); white-space: nowrap; }
@media (max-width: 700px) { .ck .hub-btn p { display: none !important; } .ck .hub-btn .hb-nw { display: none; } }

/* lists on a phone: rows with a line between, not a box per row inside a box */
@media (max-width: 700px) {
  html.ui-modern table.stack tbody tr { border: 0 !important; border-bottom: 1px solid var(--border) !important; border-radius: 0 !important; margin: 0 !important;
    padding: 12px 0 !important; background: none !important; box-shadow: none !important; }
  html.ui-modern table.stack tbody tr:last-child { border-bottom: 0 !important; }
  html.ui-modern table.stack tbody td { border: 0 !important; }
  html.ui-modern :is(.pgf-tick, .pgf-select) { display: none !important; }  /* ticking many at once is a desk job */
  html.ui-modern .jw-filters.panel { background: none; border: 0; padding: 0; }
  /* on a phone: search only - the status chips over the list do the rest */
  html.ui-modern .jw-filters[role="search"] { display: grid !important; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
  html.ui-modern .jw-filters[role="search"] > .field:not(:first-of-type) { display: none !important; }
  html.ui-modern .jw-filters[role="search"] > .field:first-of-type > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  html.ui-modern .jw-filters[role="search"] > .field:first-of-type input { min-width: 0 !important; width: 100%; }
}

/* ---- round 2: one main button ------------------------------------------------------------------------------------------- */
.pl-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; }
.pl-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; color: var(--link); text-decoration: none; }
.pl-link:hover { text-decoration: underline; }
@media (max-width: 700px) {
  .pl-acts { gap: 0 16px; width: 100%; }
  .pl-acts > .btn { order: -1; width: 100%; justify-content: center; margin-bottom: 4px; }
  /* the project page: More sits beside the main button in one row, not on a line of its own (owner q16, 1 Dec 2026) */
  .page-head.st-head .pl-acts { flex-wrap: nowrap; align-items: stretch; gap: 0 10px; }
  html .page-head.st-head .pl-acts > .btn { flex: 1 1 auto; width: auto; min-width: 0; margin: 0; }
  html .page-head.st-head .pl-acts > .btn ~ .pl-more { flex: none; margin: 0; padding-inline: 0; }
  html .page-head.st-head .pl-acts > .btn ~ .pl-more > summary { height: 100%; min-height: 44px; display: inline-flex; align-items: center; }
  html .page-head.st-head .pl-acts > .btn ~ .pl-more > .pl-more-menu { left: auto; right: 0; }   /* at the right edge: the menu opens leftwards */
}
.home-actions { align-items: center; column-gap: 16px; } .home-actions summary.pl-link { cursor: pointer; list-style: none; } .home-actions summary.pl-link::-webkit-details-marker { display: none; }

/* ---- round 2: the phone and tablet menu, like a mail app's ------------------------------------------------------------- */
@media (max-width: 1099px) {
  html.ui-modern.look26.lk-dr .mrail { width: min(340px, 85vw) !important; transition: transform .32s cubic-bezier(.22, .8, .24, 1), visibility 0s .32s; }
  html.ui-modern.look26.lk-dr.lk-dr-open .mrail { transition: transform .32s cubic-bezier(.22, .8, .24, 1); }
  html.ui-modern.look26.lk-dr .lk-scrim { display: block; position: fixed; inset: 0; z-index: 1000; background: rgba(8, 12, 18, .55);
    opacity: 0; pointer-events: none; transition: opacity .32s ease; }
  html.ui-modern.look26.lk-dr-open .lk-scrim { opacity: 1; pointer-events: auto; }
  html.ui-modern.look26.lk-dragging .mrail, html.ui-modern.look26.lk-dragging .lk-scrim { transition: none !important; }
  html.ui-modern.look26.lk-dragging body { overflow: hidden; user-select: none; }
  /* Send feedback at the foot; keyboard shortcuts are for a keyboard */
  html.ui-modern.look26.lk-dr .mrail .lk-foot { display: block !important; }
  html.ui-modern.look26.lk-dr .mrail .lk-foot .lk-keys:not(.lk-fb) { display: none; }
}
@media (max-width: 700px) {   /* big rows a thumb can hit */
  html.lk-dr.ui-modern.rail-wide .mrail .mr-item { min-height: 48px; padding: 10px 14px; font-size: var(--fs-base, 1rem); font-weight: 500; gap: 14px; border-radius: 8px; }
  html.lk-dr.ui-modern.rail-wide .mrail .mr-item svg { width: 22px; height: 22px; }
  html.lk-dr.ui-modern .mr-sub .mr-link { min-height: 44px; display: flex; align-items: center; padding: 8px 10px; font-size: var(--fs-base, 1rem); }
  html.lk-dr.ui-modern .mr-sub-h { min-height: 40px; font-size: var(--fs-xs, .78rem); }
  html.lk-dr.ui-modern .mr-org-name { font-size: var(--fs-base, 1rem); }
  html.ui-modern.look26.lk-dr .mrail .lk-foot .lk-fb { min-height: 48px; width: 100%; text-align: left; font-size: var(--fs-base, 1rem); }
}
@media (prefers-reduced-motion: reduce) { html.ui-modern.look26.lk-dr :is(.mrail, .lk-scrim) { transition: none !important; } }
.pl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; } .pl-meta > .j-badge, .pl-meta > a.badge { margin: 0; }

/* ---- round 4: the website ---------------------------------------------------------------------------------------------- */
/* the front page opens on one of the company's own aerial photos (the first featured portfolio item), the headline over it */
.ck-hero.pl-photo, html[data-theme] .ck-hero.pl-photo { background: linear-gradient(rgba(14, 18, 24, .5), rgba(14, 18, 24, .85)), var(--hero-photo) center / cover no-repeat, #1c1c1e; padding: 48px 0; }
.ck-hero.pl-photo .hero-grid > div:first-child { background: none; padding: 24px 0; }
.ck-hero .hero-grid > div:first-child, .ck-hero :is(.hero-shot, .hero-logo, .hero-art), .ck-hero .hr-sheet { border-radius: var(--radius, 12px); }
.ck-hero .btn { border-radius: var(--radius-sm, 8px); }
.pl-facts { margin: 24px 0 0; color: #c9ced4; font-size: var(--fs-md, .92rem); max-width: 52ch; }
.pl-facts a { color: #eef1f5; font-weight: 600; }
/* the numbers under the hero: one strip, not four tiles */
.ck-hero + .trust-strip .trust-grid { gap: 0; background: #242426; border-radius: var(--radius, 12px); }
.ck-hero + .trust-strip .trust-grid > div { background: none; border-radius: 0; border-left: 1px solid #38383a; }
.ck-hero + .trust-strip .trust-grid > div:first-child { border-left: 0; }
.ck-hero + .trust-strip .trust-grid b { font-size: 1.5rem; }
body.public .service { border-radius: var(--radius, 12px); }
@media (max-width: 860px) { .ck-hero + .trust-strip .trust-grid > div { border-left: 0; border-top: 1px solid #38383a; } .ck-hero + .trust-strip .trust-grid > div:first-child { border-top: 0; } }

/* Today weather: one answer line, then plain rows; colour only where something is outside limits */
html .wx-mini.wx-plain { display: block; }
.wx-answer { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 2px; margin: 0 0 6px; font-size: var(--fs-base, 1rem); }
.wx-answer .wx-dot { width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; flex: none; align-self: center; background: var(--ok, #2f9e5b); }
.wx-answer.st-warn .wx-dot { background: var(--warn, #c98a16); }
.wx-answer.st-bad .wx-dot { background: var(--bad, #d14343); }
.wx-answer .wx-why { flex-basis: 100%; padding-left: 18px; color: var(--muted); font-size: var(--fs-md, .92rem); }
.wx-rows { margin: 0; }
.wx-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border); }
.wx-row dt { color: var(--muted); font-weight: 400; }
.wx-row dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.wx-row dd b { font-weight: 600; }
.wx-row dd small { display: block; color: var(--muted); font-size: var(--fs-xs, .78rem); }
.wx-row.st-bad dd b { color: var(--bad, #d14343); }
.wx-row.st-warn dd b { color: var(--warn, #b07400); }
.wx-row .arrow { display: inline-block; font-size: 1.15em; line-height: 1; margin-right: 4px; }
.wx-links { margin: 4px 0 0; }
button.pl-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 500; cursor: pointer; }
@media (min-width: 700px) {
  .wx-rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
}
.wx-place { margin: -4px 0 8px; font-size: var(--fs-md, .92rem); }

/* forecast cross-check table (Beta fccheck) */
.wx-xc { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.wx-xc th, .wx-xc td { padding: 9px 0; border-top: 1px solid var(--border); text-align: right; }
.wx-xc thead th { border-top: 0; color: var(--muted); font-weight: 400; font-size: var(--fs-sm, .85rem); }
.wx-xc th[scope="row"], .wx-xc thead th:first-child { text-align: left; font-weight: 400; color: var(--muted); }
.wx-xc tr.st-bad td { color: var(--bad, #d14343); font-weight: 600; }
.wx-xc tr.st-warn td { color: var(--warn, #b07400); font-weight: 600; }
#wx-crosscheck h3 { margin: 22px 0 6px; font-size: var(--fs-base, 1rem); }

/* Graphite dark (15 Nov 2026, the user's pick of three): neutral greys like Apple's own dark mode instead of the slate blue
   and Tailwind mint, which read as AI-made. Page #1c1c1e, panels #242426, raised #2c2c2e; off-white text; the team accent
   kept but calmer; quiet status colours. Wins over the older night blocks in style.css, modern.css, mc.css and
   cockpit-all.css. The flight bag (efb.css) keeps its own high-contrast cockpit colours. */
html:root:root:root[data-theme="night"] {
  --bg: #1c1c1e; --surface: #242426; --surface-2: #2c2c2e; --surface-3: #3a3a3c; --border: #454548; --border-strong: #58585c;
  --text: #f7f7f8; --text-2: #e4e4e8; --muted: #b6b6bc; --navy: #f7f7f8; --navy-2: #e4e4e8;   /* D2 sharper text (user, 21 Nov 2026) */
  --accent: #3aa58c; --accent-dark: #6cc3ad; --accent-soft: rgba(58, 165, 140, .16); --brand-green: #3aa58c;
  --link: #7cc7b4; --link-hover: #a5dccd; --on-accent: #ffffff;
  --ok: #4fb37a; --warn: #e3a33b; --bad: #f27d76; --info: #6ea8e0; --ok-text: #8fd1a8; --warn-text: #f0c674; --bad-text: #f19a94;
  --live: var(--mk-bad, #c62828); --live-soft: rgba(229, 83, 75, .16);
  --ring: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent);   /* solid, never see-through (dd57 a11y-3) */
  --field-border: #7a7a80;   /* text boxes and drop-downs: their own edge, 3:1 on the panel (ra a11y-colour-2) */
}
html:root:root:root.has-accent[data-theme="night"] {
  --accent: color-mix(in srgb, var(--org-accent) 82%, white); --accent-dark: color-mix(in srgb, var(--org-accent) 50%, white);
  --accent-soft: color-mix(in srgb, var(--org-accent) 18%, #1c1c1e); --brand-green: var(--accent);
  --link: color-mix(in srgb, var(--org-accent) 50%, white); --link-hover: color-mix(in srgb, var(--org-accent) 32%, white);
  --ring: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent);
}

/* L2 "sharper text" (user's pick, 21 Nov 2026): same light colours, darker small text and lines so client names, times and
   labels read in daylight on an iPad. Muted was #627083 (4.6:1), now #3d4858 (8.6:1 on the page grey). */
html:root:root:root:not([data-theme="night"]) {
  --text: #0b121c; --text-2: #232e3c; --muted: #3d4858; --navy: #0b121c; --border: #cfd6df; --border-strong: #b3bdca;
  --field-border: #858d99;   /* text boxes and drop-downs: their own edge, 3:1 on white (ra a11y-colour-2) */
}

/* plainer.css */
/* Less AI-made, round two (15 Nov 2026, the user's "do all twelve across the complete site"). Loaded last on every page.
   1 statuses read as words with a small dot, not tinted pills   2 square-ish panels, rounding kept for buttons
   7 figures as label + value rows, not big-number tiles          8 menu words without icons (the narrow icon rail keeps them)
   9 no permanent status bar (it shows only when offline)        11 the day's weather as one bar   12 plain readiness rows
   The rest of the twelve are in the templates and scripts (greeting, stage line, dots and dashes, intros, crumbs). */

/* ---- 1. statuses: a word with a dot ------------------------------------------------------------------------------------ */
html:root body :is(.badge:not(button):not(label):not(input), span.chip, .ready-badge, .hb-needs, .fp-status) {
  background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important;
  height: auto; min-height: 0; font-weight: 500; font-size: var(--fs-xs, .78rem); color: var(--muted); letter-spacing: 0; text-transform: none;
}
html:root body :is(.badge-ok, .badge-warn, .badge-bad, .badge-info, span.chip.st-ok, span.chip.st-warn, span.chip.st-bad,
    .ready-badge.st-ok, .ready-badge.st-warn, .ready-badge.st-bad, .hb-needs.mt-warn, .hb-needs.mt-bad, .fp-status.is-changed)::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: .08em; flex: none;
  background: var(--mk, var(--mk-none));
}
html:root body :is(.badge-ok, span.chip.st-ok, .ready-badge.st-ok) { --mk: var(--mk-ok); color: var(--text-2); }
html:root body :is(.badge-warn, span.chip.st-warn, .ready-badge.st-warn, .hb-needs.mt-warn, .fp-status.is-changed) { --mk: var(--mk-warn); color: var(--text-2); }
html:root body :is(.badge-bad, span.chip.st-bad, .ready-badge.st-bad, .hb-needs.mt-bad) { --mk: var(--mk-bad); color: var(--mk-bad); }
html:root body .badge-info { --mk: var(--mk-info); color: var(--text-2); }
html:root body :is(.badge-accent, .badge-cat) { color: var(--accent-dark); }
html:root body .badge-beta { color: #6d28d9; font-weight: 600; }
html:root[data-theme="night"] body .badge-beta { color: #c4b5fd; }
html:root body .hb-needs { display: inline-block !important; white-space: nowrap; }
/* screen review v-50 (30 Nov 2026): in a table cell or a list row a status badge reads exactly like the plain dot + word (.mk)
   beside it - the same size, weight, colour and dot - so 'Sent' and 'Paid' in one column look alike */
html:root body :is(td, li, dd) :is(.badge-ok, .badge-warn, .badge-bad, .badge-info):not(button):not(label):not(input):not(#_) { font-size: inherit; font-weight: inherit; color: inherit; white-space: nowrap; gap: 0; }
html:root body :is(td, li, dd) :is(.badge-ok, .badge-warn, .badge-bad, .badge-info):not(#_)::before { width: 8px; height: 8px; }
html:root body .nf-chips { gap: 4px 14px; }

/* ---- 2. less rounding: panels and lists square-ish, buttons keep theirs ------------------------------------------------- */
html:root:root, html:root:root.ck-site { --ck-r: 8px; --radius: 8px; --radius-lg: 10px; --radius-sm: 6px; }
html:root body :is(.panel, .card, .kpi, .stat, .notice, .table-wrap, .board-col, .board-card, .ck .hb, .help-card, .mr-find, .modal, dialog,
    .settings-card, .ops-job, .ops-grid > div, .db-card, .fd-card, details.disclose) { border-radius: var(--radius-sm, 8px); }
html:root body .panel .panel { border-radius: var(--radius-sm, 8px); }

/* ---- 7. figures as rows: label left, value right, the note under the label ------------------------------------------- */
html:root body :is(.stats, .kpis, .jd-tiles) { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 28px; margin: 0 0 18px;
  border-top: 1px solid var(--border); }
html:root body :is(.stats, .kpis, .jd-tiles) > :is(.stat, .kpi, div) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 0 12px;
  background: none !important; border: 0 !important; border-bottom: 1px solid var(--border) !important; border-radius: 0; box-shadow: none;
  padding: 9px 0 !important; min-height: 0; container-type: normal; }
html:root body :is(.stats, .kpis, .jd-tiles) > :is(.stat, .kpi, div) > :is(span, small):first-child { grid-column: 1; grid-row: 1; font-size: var(--fs-md, .92rem); color: var(--text-2);
  text-transform: none; letter-spacing: 0; font-weight: 500; }
html:root body :is(.stats, .kpis, .jd-tiles) > :is(.stat, .kpi, div) > b { grid-column: 2; grid-row: 1; font-size: var(--fs-base, 1rem) !important; font-weight: 650; letter-spacing: 0;
  white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
html:root body :is(.stats, .kpis, .jd-tiles) > :is(.stat, .kpi, div) > small:not(:first-child) { grid-column: 1 / -1; font-size: var(--fs-xs, .78rem); color: var(--muted); margin: 1px 0 0; }
html:root body :is(.stats, .kpis, .jd-tiles) > :is(.stat, .kpi, div) > :not(b):not(span):not(small) { grid-column: 1 / -1; }

/* boxed strips (the modern look draws .stats / .kpis as a white card): the figures sit 16px in from its edges, as on phones,
   and the last row's line tucks under the card's own edge instead of doubling it (18 Nov 2026) */
html.ui-modern:root body :is(.stats, .kpis) { padding: 2px 16px 0; overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); column-gap: 24px; }
html.ui-modern:root body :is(.stats, .kpis) > :is(.stat, .kpi) { margin-bottom: -1px; }
/* side by side (wider than a phone): each figure sits just after its label, and a thin line divides the columns; the
   first column's line falls outside the card and is clipped (the user, 19 Nov 2026) */
@media (min-width: 701px) {
  html.ui-modern:root body :is(.stats, .kpis) { padding-left: 0; column-gap: 24px; }
  html.ui-modern:root body :is(.stats, .kpis) > :is(.stat, .kpi) { position: relative; grid-template-columns: auto auto; justify-content: start;
    column-gap: 16px; padding-left: 16px !important; }
  html.ui-modern:root body :is(.stats, .kpis) > :is(.stat, .kpi) > b { text-align: left; }
  html.ui-modern:root body :is(.stats, .kpis) > :is(.stat, .kpi)::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px;
    border-left: 1px solid var(--border); }
}
/* an iPad (701-1100px): even rows - four figures as two by two (not three and one left alone), two as a pair, others three
   to a row - and in every cell the label on top, the figure under it, then the note, whatever order the page writes them
   in. Lines only between cells (screen review v-37, 30 Nov 2026). */
@media (min-width: 701px) and (max-width: 1100px) {
  html.ui-modern:root body :is(.stats, .kpis) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html.ui-modern:root body :is(.stats, .kpis):is(:has(> :nth-child(4):last-child), :has(> :nth-child(2):last-child)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.ui-modern:root body :is(.stats, .kpis):has(> :nth-child(8):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  html.ui-modern:root body :is(.stats, .kpis) > :is(.stat, .kpi) { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 2px; }
  html.ui-modern:root body :is(.stats, .kpis) > :is(.stat, .kpi) > * { order: 3; text-align: left; margin: 0; align-self: flex-start; justify-self: start; }
  html.ui-modern:root body :is(.stats, .kpis) > :is(.stat, .kpi) > b { order: 2; text-align: left; }
  html.ui-modern:root body :is(.stats, .kpis) > :is(.stat, .kpi) > :is(:is(span, small):first-child, b:first-child + :is(span, small)) { order: 1; }
  html.ui-modern:root body :is(.stats, .kpis) > :is(.stat, .kpi)::before { top: 10px; bottom: 10px; }
}
/* the pipeline board: six cards a column, the rest folded; a won card says where its project is now */
.board-more > summary { display: flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--link, var(--accent)); font-weight: 600; cursor: pointer; list-style: none; }
.board-more > summary::-webkit-details-marker { display: none; }
.board-more[open] > summary { order: 2; }
.board-more { display: flex; flex-direction: column; }
.board-stage { color: var(--text-2); }
.board-more:not([open]) .bm-c, .board-more[open] .bm-o { display: none; }
html:root body .jd-tiles > div > b.jd-small { padding: 0; }
html:root body .jd-tiles > .rag-bad > b { color: var(--mk-bad); } html:root body .jd-tiles > .rag-warn > b { color: var(--warn-text, var(--text)); }

/* ---- 8. the menu: words only (the narrow icon rail below 1100px without .rail-wide keeps its icons) ---------------------- */
html.rail-wide:not(.rail-bottom) body .mrail .mr-item:not(.mr-find-btn):not(.mr-sos) > svg { display: none; }

/* ---- 9. the status line only when offline -------------------------------------------------------------------------------- */
html:root body .pgf-status[hidden] { display: none !important; }

/* ---- 11. the day's weather: one bar ---------------------------------------------------------------------------------------- */
.wx-hrs { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 1px; margin: 8px 0 4px; max-width: 520px; background: var(--border); }
.wx-hrs > span { flex: 1; background: var(--mk-none); }
.wx-hrs > .st-ok { background: var(--mk-ok); } .wx-hrs > .st-warn { background: var(--mk-warn); } .wx-hrs > .st-bad { background: var(--mk-bad); }
.wx-hrs-t { display: flex; justify-content: space-between; max-width: 520px; font-size: var(--fs-xs, .78rem); color: var(--muted); }
@media print { .wx-hrs > span { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* ---- 12. readiness rows: the count once, plain rows, red only on what blocks the flight -------------------------------- */
.ready-count { margin: 10px 0 2px; }
html:root body .ready-list li .dot { display: none; }
html:root body .ready-list li:is(.st-ok, .st-warn) > div > b, html:root body .ready-list li:is(.st-ok, .st-warn) > div > b a { color: var(--text); }
html:root body .ready-list li.st-bad > div > b, html:root body .ready-list li.st-bad > div > b a { color: var(--mk-bad); }
html:root body .ready-list li { padding: 7px 0; }

/* the mission plan's checks line: words with a dot, only the ones to look at (templates/flight_plan.html) */
html:root body .fp-strip { gap: 4px 16px; }
html:root body .fp-strip li { background: none; border: 0; padding: 0; border-radius: 0; font-size: var(--fs-sm, .85rem); min-height: 28px; }
html:root body .fp-strip li i { width: 7px; height: 7px; }

/* Today's rows on a phone: "20 actions" under the name, never a bare number (15 Nov 2026) */
@media (max-width: 700px) {
  html:root body .ck .hub-buttons .hub-btn { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name big" "needs unit"; }
  html:root body .ck .hub-btn .hb-top { justify-self: start; align-self: start; }
  html:root body .ck .hub-btn .hb-nw { display: inline !important; position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}

/* ---- site sweep, 15 Nov 2026: contrast and touch sizes ---------------------------------------------------------------------
   Measured in the browser: white on the teal button was 4.28:1 by day and 3.03:1 at night (WCAG AA needs 4.5:1 for button
   words); the solid red button 3.76:1. A team's own accent gets its words colour worked out on the server (--org-on). */
html:root:root:root:not([data-theme="night"]):not(.has-accent) { --accent: #0c7a66; --accent-dark: #0a6655; --link: #0b7562; --link-hover: #075c4d; }
html:root:root:root[data-theme="night"]:not(.has-accent) { --on-accent: #0b1f1a; }
html:root:root:root.has-accent:not([data-theme="night"]) { --on-accent: var(--org-on, #fff); }
html:root:root:root.has-accent[data-theme="night"] { --on-accent: var(--org-on-night, #0b1f1a); }
html:root body .btn-accent, html:root body .btn-accent:hover { color: var(--on-accent); }
html:root body .fs-card .btn.fs-stop-btn { background: var(--mk-bad, #c62828); border-color: var(--mk-bad, #c62828); }
html:root[data-theme="night"] body .fs-card .btn.fs-stop-btn { background: #c4392f; border-color: #c4392f; }
html:root body .fs-stop-btn .hold-hint { opacity: 1; }
/* screen review v-21: Stop flying is white words on deep red in Day and Night (--on-mk is dark at night) */
html:root body .fs-card .btn.fs-stop-btn, html:root body .fs-card .btn.fs-stop-btn:hover, html:root body .fs-stop-btn .hold-hint { color: #fff; }
/* every button is at least 44px tall on a touch screen (the old 34px suited a mouse) */
@media (pointer: coarse) { html.ui-modern .btn:not(.btn-icon) { min-height: 44px; } }   /* small buttons too: 44px on touch (consistency-2) */
/* one filled accent button per view: the others are drawn as outline buttons (static/js/oneaccent.js) */
html:root body .btn.btn-accent.is-quiet, html:root body .btn.btn-accent.is-quiet:hover {
  background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); box-shadow: none; }
html:root body .btn.btn-accent.is-quiet:hover { background: var(--surface-2); }
/* checklists by when they're used: the small heading between groups on the flight day (droneops/web/checkstage.py) */
html:root body .fd-step .fd-stage { font-size: var(--fs-xs, .78rem); font-weight: 600; color: var(--muted); margin: 14px 0 6px; }
html:root body .fd-step .fd-stage:first-of-type { margin-top: 4px; }

/* checklist extras (Beta checkplus, droneops/web/checkplus.py): sign-off, aircraft types, fails filter, readings, the print sheet */
.cp-signoff .cp-diff { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 10px 0 14px; }
.cp-signoff .cp-diff dt { font-weight: 600; }
.cp-signoff .cp-diff dd { margin: 0; }
.cp-signoff .cp-diff ul { margin: 0; padding-left: 18px; }
.cp-models { display: flex; flex-wrap: wrap; gap: 4px 18px; border: 0; padding: 0; }
.cp-models legend { font-weight: 600; margin-bottom: 4px; padding: 0; }
.cp-models .cp-model { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.cp-models p { flex-basis: 100%; margin: 0; }
.cp-save { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cp-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin: 0 0 12px; }
.cp-filter .field { margin: 0; min-width: 200px; }
.cp-filter label.small { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.cp-probs { list-style: none; margin: 6px 0 0; padding: 0; font-size: var(--fs-sm, .85rem); }
.cp-probs li { margin-top: 4px; }
:is(.cp-state, .cp-probs li > b)::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: .06em; background: var(--mk, var(--mk-none)); }
.cp-state.cp-ok { --mk: var(--mk-ok); } .cp-state.cp-warn, .cp-probs .cp-amber > b { --mk: var(--mk-warn); } .cp-state.cp-bad, .cp-probs .cp-fail > b { --mk: var(--mk-bad); }
.cp-spark { display: block; overflow: visible; max-width: 100%; height: auto; }
.cp-spark .cp-line-p { fill: none; stroke: var(--accent, #0c7a66); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.cp-spark .cp-alarm { stroke: var(--mk-bad); stroke-width: 1; stroke-dasharray: 3 3; opacity: .7; }
.cp-spark .cp-dot { fill: var(--accent, #0c7a66); stroke: var(--card, #fff); stroke-width: 2; }
.fd-resume ul, #fd-drift ul, #half-done ul { margin: 4px 0 0; padding-left: 18px; }
.fd-resume p, #fd-drift p, #half-done p { margin: 0; }
.fd-resume li, #half-done li { min-height: 32px; }
.cp-sheet { width: 100%; border-collapse: collapse; font-size: var(--fs-md, .92rem); }
.cp-sheet th, .cp-sheet td { border: 1px solid var(--border, #c9ced4); padding: 7px 8px; vertical-align: top; text-align: left; }
.cp-sheet .cp-n { width: 36px; text-align: center; }
.cp-sheet .cp-ans { width: 32%; }
.cp-sheet .cp-note { width: 24%; }
.cp-sheet .cp-sec th { background: var(--bg-soft, rgba(127,127,127,.08)); font-weight: 600; }
.cp-opt { display: inline-flex; align-items: center; gap: 5px; margin: 0 12px 4px 0; white-space: nowrap; }
.cp-box { display: inline-block; width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: var(--radius-xs, 2px); }
.cp-line { display: inline-block; width: 80px; border-bottom: 1px solid currentColor; height: 1em; margin-right: 4px; }
.cp-line.cp-wide { width: 100%; }
.cp-signs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; margin: 18px 0 10px; }
.cp-signs div { display: flex; gap: 8px; align-items: flex-end; }
.cp-signs dt { white-space: nowrap; font-weight: 600; }
.cp-signs dd { flex: 1; margin: 0; border-bottom: 1px solid currentColor; height: 1.4em; }
@media (max-width: 640px) { .cp-signs { grid-template-columns: 1fr; } .cp-sheet .cp-note { display: none; } .cp-sheet .cp-ans { width: 46%; } }
@media print {
  .cp-print { max-width: none !important; padding: 0; }
  .cp-sheet { font-size: 10pt; color: #000; }
  .cp-sheet th, .cp-sheet td { border-color: #555; }
  .cp-sheet tr { break-inside: avoid; }
  .cp-sheet .cp-note { display: table-cell !important; }
}

/* Client documents on screen (17 Nov 2026): facts and totals without row rules, one rule above the total; the footer follows the theme */
html:root body .invoice :is(.inv-totals, .inv-facts) :is(th, td) { border-bottom: 0; }
html:root body .invoice .inv-totals .grand :is(th, td) { border-top: 1px solid var(--text); }
html:root body .invoice .inv-facts :is(th, td) { padding: 4px 0 4px 0; } html:root body .invoice .inv-facts th { padding-right: 18px; }
html[data-theme="night"] .doc-foot { border-top-color: var(--border); color: var(--muted); }
html[data-theme="night"] .doc-foot b { color: var(--text); }
/* 18 Nov 2026: on phones a figure row is label + amount side by side, so one row per figure (mobile.css's two columns crushed the labels) */
@media (max-width: 700px) { html:root body :is(.stats, .kpis, .jd-tiles) { grid-template-columns: minmax(0, 1fr) !important; } }

/* 18 Nov 2026 (the user's choice): headings, sub-headings, menus and tab rows capitalise each word. What people typed
   themselves (project titles, names, subjects) is marked data-keep-case on the heading and stays as it was written. */
/* 19 Nov 2026 (built-for-purpose pick 18): no longer done by CSS (it gave "Sun And Light"). Headings are written in title
   case in the templates, and static/js/titlecase.js does the same for the menu, tab rows and anything scripts build. */

/* Fold to the heading (static/js/fold.js, 18 Nov 2026): flight day sections and the flight panels open on tap, closed by default */
.fold > .fold-head { cursor: pointer; min-height: 44px; -webkit-user-select: none; user-select: none; }
.fold > h2.fold-head, .fold > h3.fold-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fold .fold-title::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 10px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); opacity: .6; transition: transform .15s; }
.fold.fold-shut .fold-title::after { transform: rotate(-45deg); }
.fold .fold-title:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-sm, 8px); }
.fold.fold-shut > :not(.fold-head) { display: none !important; }
.fold .fold-btn { all: unset; cursor: pointer; }                     /* the button inside a folding heading: the heading's own look */
.fold .fold-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-sm, 8px); }
.fold.fold-shut > .fold-head { margin-bottom: 0 !important; padding-bottom: 0 !important; border-bottom: 0 !important; }
@media print { .fold.fold-shut > :not(.fold-head) { display: revert !important; } .fold .fold-title::after { display: none; } }
@media (prefers-reduced-motion: reduce) { .fold .fold-title::after { transition: none; } }

/* your menu: Keyboard shortcuts only where there's a keyboard; Send feedback only when the feedback form is on (18 Nov 2026) */
@media (hover: none) { .me-keys { display: none !important; } }
html.no-fb .me-fb { display: none !important; }
/* your menu's link chips: two even columns that never push past the panel; long ones wrap (18 Nov 2026) */
/* (the two-column button grid under your name gave way to a plain list, 18 Nov 2026: see the end of this file) */

/* Save / Cancel pill (savepill.js, 18 Nov 2026): rises from the bottom when a setting changes */
.savepill { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 60; transform: translate(-50%, 16px); opacity: 0;
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 18px; border-radius: var(--radius-pill, 999px); background: color-mix(in srgb, var(--surface) 90%, var(--text)); color: var(--text);
  border: 1px solid color-mix(in srgb, var(--border) 60%, var(--text)); box-shadow: var(--shadow-3, 0 12px 32px rgba(10,16,24,.24)); transition: transform .18s ease, opacity .18s ease; max-width: calc(100vw - 32px); white-space: nowrap; }
.savepill.on { transform: translate(-50%, 0); opacity: 1; }
.savepill-t { font-weight: 600; font-size: var(--fs-md, .92rem); margin-right: 6px; }
.savepill .btn { min-height: 44px; border-radius: var(--radius-pill, 999px); padding: 0 18px; }
@media (max-width: 1024px), (max-width: 1366px) and (pointer: coarse) { body.has-app-bar .savepill { bottom: calc(96px + env(safe-area-inset-bottom)); } }   /* above the phone bar */
@media (max-width: 380px) { .savepill-t { font-size: var(--fs-sm, .85rem); margin-right: 2px; } .savepill { padding-left: 14px; gap: 6px; } .savepill .btn { padding: 0 14px; } }
body.bar-away .savepill { bottom: calc(20px + env(safe-area-inset-bottom)) !important; }   /* the phone bar has slid away */
@media (prefers-reduced-motion: reduce) { .savepill { transition: none; } }
/* the pill does the saving: the form's own sticky bar steps aside */
form.has-savepill > .save-bar { display: none; }


/* The menu under your name (18 Nov 2026, "this menu looks very messy"): one plain list. Every row the same height and the
   same indent, groups split by a hairline, no boxed buttons, no glyphs. Order: you, your pages, what's new, display,
   app, log out, the small print. */
:is(.nav-me, .mr-fly) .nav-menu { --me-x: 12px; }
:is(.nav-me, .mr-fly) .nav-menu .me-links { display: flex !important; flex-direction: column; gap: 0; padding: 4px 0 6px; margin: 0; border-bottom: 1px solid var(--border); }
:is(.nav-me, .mr-fly) .nav-menu .me-links > a, :is(.nav-me, .mr-fly) .nav-menu .me-links .mr-row > a, :is(.nav-me, .mr-fly) .nav-menu .me-personal a, :is(.nav-me, .mr-fly) .nav-menu a.me-new,
:is(.nav-me, .mr-fly) .nav-menu .menu-tools > *, :is(.nav-me, .mr-fly) .nav-menu > .menu-install, :is(.nav-me, .mr-fly) .nav-menu .menu-logout button, :is(.nav-me, .mr-fly) .nav-menu .me-reset button {
  display: flex !important; align-items: center; gap: 10px; width: 100%; min-height: 44px; margin: 0; padding: 0 var(--me-x) !important;
  border: 0 !important; border-radius: var(--radius-sm, 8px); background: none; color: var(--text); font: inherit; font-size: var(--fs-md, .92rem) !important; font-weight: 500;
  text-align: left; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: none; cursor: pointer; box-sizing: border-box; }
:is(.nav-me, .mr-fly) .nav-menu .me-links > a:hover, :is(.nav-me, .mr-fly) .nav-menu .me-personal a:hover, :is(.nav-me, .mr-fly) .nav-menu a.me-new:hover,
:is(.nav-me, .mr-fly) .nav-menu > .menu-install:hover, :is(.nav-me, .mr-fly) .nav-menu .menu-tools > a:hover { background: color-mix(in srgb, var(--text) 7%, transparent); }
:is(.nav-me, .mr-fly) .nav-menu .me-links .me-reset { margin: 0; }
:is(.nav-me, .mr-fly) .nav-menu .me-personal { display: flex !important; flex-direction: column; gap: 0; padding: 6px 0; margin: 0; border-top: 0; border-bottom: 1px solid var(--border); }
:is(.nav-me, .mr-fly) .nav-menu a.me-new { justify-content: space-between; margin: 6px 0 !important; border-bottom: 0 !important; }
:is(.nav-me, .mr-fly) .nav-menu .menu-tools { margin: 0; padding: 6px 0; border-top: 1px solid var(--border); }
:is(.nav-me, .mr-fly) .nav-menu .menu-tools > .me-theme { justify-content: space-between; cursor: default; }
:is(.nav-me, .mr-fly) .nav-menu .menu-tools > .me-theme:hover { background: none; }
:is(.nav-me, .mr-fly) .nav-menu .menu-tools > .me-theme > span:first-child { color: var(--text); font-size: var(--fs-md, .92rem); }
:is(.nav-me, .mr-fly) .nav-menu .menu-tools small { margin-left: auto; }
:is(.nav-me, .mr-fly) .nav-menu > .menu-install .mi { display: none; }
:is(.nav-me, .mr-fly) .nav-menu > .menu-install { margin: 0; }
:is(.nav-me, .mr-fly) .nav-menu .menu-logout { margin: 6px 0 0; padding-top: 6px; border-top: 1px solid var(--border); }
:is(.nav-me, .mr-fly) .nav-menu .menu-logout button { color: var(--bad, #c62828); font-weight: 600; }
:is(.nav-me, .mr-fly) .nav-menu .menu-legal { padding: 4px var(--me-x) 8px; gap: 4px 18px; }
@media (hover: none) { :is(.nav-me, .mr-fly) .nav-menu > .mb-switch { display: none !important; } }   /* the File / Edit / View bar is for a computer */

/* Today page: Customise is a pencil (18 Nov 2026) */
.sb-custom > summary.sb-pencil { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-sm, 8px); list-style: none; color: var(--muted); }
.sb-custom > summary.sb-pencil::-webkit-details-marker { display: none; }
.sb-custom > summary.sb-pencil:hover, .sb-custom[open] > summary.sb-pencil { color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); }

/* Today: My Next 3 Days card, next three days (18 Nov 2026) */
.md-tomorrow { padding: 14px 16px; margin: 0 0 14px; }
.md-tom-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.md-tom-head h2 { margin: 0; font-size: var(--fs-base, 1rem); }
.md-tom-head .btn { min-height: 44px; }
.md-tom-day { margin-top: 10px; }
.md-tom-day h3 { margin: 0; font-size: var(--fs-xs, .78rem); font-weight: 600; color: var(--muted); }
.md-tom-none { margin: 4px 0 0; }
.md-tom-list { list-style: none; margin: 2px 0 0; padding: 0; }
.md-tom-list li + li { border-top: 1px solid var(--border); }
.md-tom-list a { display: grid; grid-template-columns: 64px 1fr; column-gap: 10px; align-items: baseline; min-height: 44px; padding: 8px 0; color: var(--text); text-decoration: none; }
.md-tom-list b { font-variant-numeric: tabular-nums; grid-row: span 2; }
.md-tom-list .small { grid-column: 2; }

/* Pilot view strip (18 Nov 2026): an owner looking at the site as a pilot can always get back */
.pv-strip { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 12px; padding: 6px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); font-size: var(--fs-sm, .85rem); }
.pv-strip .btn { min-height: 36px; }
@media (pointer: coarse) { .pv-strip .btn { min-height: 44px; } }
.md-tom-list li.md-tom-notime { display: flex; align-items: center; gap: 10px; }
.md-tom-list li.md-tom-notime > a:first-child { flex: 1; }
.md-tom-set { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.md-time a { margin-top: 2px; }

/* Running a checklist (18 Nov 2026, the user: "not stretched full width"): a readable column, centred, on any screen;
   the page head, the answered bar and the items all line up in it */
main .wrap.cf-page, main .wrap.cr-page, html.as-has-pane main .wrap.cf-page, html.as-has-pane main .wrap.cr-page { max-width: 780px !important; margin-left: auto; margin-right: auto; }
.cf-page .cf-bar { gap: 12px; padding: 10px 0; }
.cf-page .cf-context { padding: 12px 16px; margin-bottom: 12px; }
.cf-page .cf-context > summary { display: flex; align-items: baseline; gap: 10px; min-height: 28px; }
.cf-page .cf-seg label, .cf-page .cf-seg .cf-opt { min-height: 48px; }

/* battery rows on the home page open that battery on the Fleet page (18 Nov 2026, "i cant click the individual battery") */
.ck-bats li:has(a.ck-batrow) { display: block; }
.ck-bats a.ck-batrow { display: grid; grid-template-columns: minmax(64px, auto) minmax(60px, 1fr) 44px 80px; gap: 10px; align-items: center;
  min-height: 44px; padding: 0 6px; margin: 0 -6px; border-radius: var(--radius-sm, 8px); color: inherit; text-decoration: none; }
.ck-bats a.ck-batrow:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
.ck-bats a.ck-batrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
tr[id^="bat-"]:target > td { background: color-mix(in srgb, var(--accent) 14%, transparent); }

/* ---- the 23 Nov 2026 tidy-ups (kept here, not in style.css: that file has a size budget) ---- */
/* tidy-up 48 (23 Nov 2026): keyboard focus shows on every control. :where() adds no weight, so a control with its own
   focus look (the buttons' ring, the switches) keeps it. */
:where(button, input, select, textarea, [role="button"], [role="tab"], [role="menuitem"], [contenteditable]):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* tidy-up 50: a long page title stays on one line and ends in "..." on a computer or tablet (a11y.js puts the whole
   title in its tooltip); a phone still wraps it */
@media (min-width: 720px) {
  .page-head > div:first-child { min-width: 0; }
  .page-head h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
}
/* design pick phone-6 (30 Nov 2026): a touch screen (an iPad at the client's door) has no hover to show the rest, so there
   the title wraps to two lines instead, and only then ends in "..." (tapping it shows the whole title, a11y.js) */
@media (min-width: 720px) and (hover: none) {
  .page-head h1 { white-space: normal; text-overflow: clip; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
}

/* tidy-up 39 (23 Nov 2026): the standing labels (Demo data, Beta, Rules: IAA) are there to be read once, not to shout */
.demo-strip { background: var(--surface); font-weight: 400; color: var(--text-2, inherit); font-size: var(--fs-xs, .78rem); padding: 3px 12px; }
.badge-beta, html[data-theme="night"] .badge-beta { background: transparent; color: var(--text-2, inherit); border-color: var(--border); font-weight: 500; }

/* tidy-up 37 (23 Nov 2026): one loading look. A box that is still loading shows placeholder bars, not the word; the
   word stays for a screen reader. (Maps keep their own "Loading the map" chip, and side panes their own bars.) */
.skeleton:not(:has(.wx-last)), .tr-loading, .pm-loading { position: relative; color: transparent !important; min-height: 46px; user-select: none; overflow: hidden; }
.skeleton:not(:has(.wx-last))::before, .tr-loading::before, .pm-loading::before,
.skeleton:not(:has(.wx-last))::after, .tr-loading::after, .pm-loading::after { content: ""; position: absolute; left: 0; height: 12px; border-radius: var(--radius-sm, 8px);
  background: color-mix(in srgb, var(--border) 60%, var(--surface-2)); animation: net-pulse .9s ease-in-out infinite alternate; }
.skeleton:not(:has(.wx-last))::before, .tr-loading::before, .pm-loading::before { top: 8px; width: 62%; }
.skeleton:not(:has(.wx-last))::after, .tr-loading::after, .pm-loading::after { top: 28px; width: 38%; }
.wx-last { margin: 0 0 6px; }
@media (prefers-reduced-motion: reduce) { .skeleton::before, .skeleton::after, .tr-loading::before, .tr-loading::after, .pm-loading::before, .pm-loading::after { animation: none; } }


/* tidy-ups 24, 25, 28, 33, 49 (23 Nov 2026) */
.ff-req { color: var(--muted); font-weight: 400; font-size: .85em; }
.ff-more { position: relative; display: inline-block; }
.ff-more > summary { list-style: none; cursor: pointer; }
.ff-more > summary::-webkit-details-marker { display: none; }
.ff-more-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; display: flex; flex-direction: column; gap: 6px; min-width: 200px; padding: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm, 8px); box-shadow: var(--shadow-3, 0 12px 32px rgba(10,16,24,.24)); }
.ff-more-menu > .btn, .ff-more-menu > form > .btn { width: 100%; justify-content: flex-start; text-align: left; }
.ff-flash-more { margin-top: 6px; }
/* 33: tables behave the same - numbers to the right in even figures, one row height */
table td.num, table th.num, table td[data-num], table th[data-num] { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-wrap table td, .table-wrap table th { vertical-align: middle; }
/* 49: page widths - page-card, page-narrow, page-form, page-mid and page-wide on the .wrap; defined in style.css next to .wrap */
.fd-next { margin: 0 0 10px; } .fd-next .btn { max-width: 100%; white-space: normal; text-align: left; } .fd-next .muted-on { opacity: .8; font-weight: 500; }

/* the quote and invoice form, one thing at a time (23 Nov 2026) */
.qe-who { margin-top: 4px; } .qe-who > summary { cursor: pointer; color: var(--text-2, inherit); }
.qe-who[open] > summary { margin-bottom: 10px; }
.qe-more { margin: 14px 0; } .qe-more > summary { list-style: none; display: inline-flex; cursor: pointer; }
.qe-more > summary::-webkit-details-marker { display: none; }
.qe-more[open] > summary { margin-bottom: 12px; }
.qe-save { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0; }
.backto { margin-top: 10px; margin-bottom: 2px; } .backto .btn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the hourly forecast's headings (Time, Dir, 10 m ...) stay in view as you scroll down it (user, 23 Nov 2026). The table
   fits a computer or tablet without a sideways scroll, so its wrapper lets the headings stick to the page; phones show cards.
   An iPad upright (701-1100px) is narrower than the table, so there it scrolls sideways inside its card instead of running
   past the card's edge (screen review v-7, 30 Nov 2026). */
@media (min-width: 601px) {
  #wx-hourly.table-wrap { overflow: visible; }
}
@media (min-width: 601px) and (max-width: 1100px) {
  #wx-hourly.table-wrap { overflow-x: auto; }
}
@media (min-width: 601px) {
  /* --wx-stick: the bottom of whatever is pinned above (top bar, the row of pages, the page's own heading strip), measured
     by the weather page's script - the headings slid in behind the pinned heading strip (user, 23 Nov 2026) */
  #wx-hourly table thead th { position: sticky; top: var(--wx-stick, var(--top-h, 56px)); z-index: 6; background: var(--surface); box-shadow: 0 1px 0 var(--border); }
  html.fdl #wx-hourly table thead th { top: var(--wx-stick, 96px); }
}

/* Settings: how big is your company (just me / a team) */
.cs-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 10px 0 14px; }
.cs-opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm, 8px); cursor: pointer; }
.cs-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.cs-opt input { margin-top: 3px; width: 18px; height: 18px; flex: none; }

/* the project header's links (Rights, Summary PDF, See as the client, Remind me, End this project): a short upright line
   between each, so they read as separate buttons (user, 23 Nov 2026) */
.page-head .pl-acts { gap: 0; }
.page-head .pl-acts > :not(.btn) { position: relative; padding-inline: 14px; }
.page-head .pl-acts > :not(.btn):not(link) + :not(.btn)::before { content: ""; position: absolute; left: 0; top: 50%; height: 18px; margin-top: -9px; border-left: 1px solid var(--border-strong, #b9c0c9); }
.page-head .pl-acts > .btn { margin-inline: 12px 0; }

/* aircraft page (23 Nov 2026): the less-used groups of the Details form fold to one line each */
.ac-more { margin: 10px 0; padding: 8px 0; border-top: 1px solid var(--border, #dfe2e7); }
.ac-more > summary { font-weight: 600; cursor: pointer; }
.ac-more[open] > summary { margin-bottom: 8px; }

/* the short top menu (23 Nov 2026): Money, Weather, Fleet and Company under one More in the bar */
html.fdl .fdl-topmore { position: relative; display: flex; align-items: stretch; height: 52px; flex: none; margin: 0; padding: 0; border: 0; background: none; }
html.fdl .fdl-topmore > summary { list-style: none; position: relative; display: flex; align-items: center; gap: 4px; padding: 0 10px; font-size: 13.5px; color: var(--fdl-text2); white-space: nowrap; cursor: pointer; }
html.fdl .fdl-topmore > summary::-webkit-details-marker { display: none; }
html.fdl .fdl-topmore > summary span { font-size: 10px; color: var(--fdl-text3); }
html.fdl .fdl-topmore > summary:hover, html.fdl .fdl-topmore.on > summary { color: var(--fdl-text); }
html.fdl .fdl-topmore.on > summary { font-weight: 500; }
html.fdl .fdl-topmore.on > summary::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--fdl-text); }
html.fdl .fdl-topmore-menu { position: absolute; top: 50px; left: 0; z-index: 80; display: grid; min-width: 190px; padding: 6px; background: var(--fdl-panel); border: 1px solid var(--fdl-line); border-radius: var(--radius-sm, 8px); box-shadow: var(--fdl-shadow); }
html.fdl .fdl-topmore-menu a { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: var(--radius-sm, 8px); font-size: 13.5px; color: var(--fdl-text); text-decoration: none; }
html.fdl .fdl-topmore-menu a:hover { background: color-mix(in srgb, var(--fdl-text) 7%, transparent); }
html.fdl .fdl-topmore-menu a.on { font-weight: 600; }
@media (max-width: 700px) { html.fdl .fdl-topmore { display: none; } }   /* phones: the Menu sheet */

/* 24 Hour Outlook (weather page, 23 Nov 2026): the synopsis reads as a short paragraph above the change lines */
.wx-synopsis { margin: 4px 0 10px; max-width: 70ch; line-height: 1.5; }
.wx-synopsis:empty { display: none; }

/* the drawn wind arrow (weather.js arrow()): sits on the text line, turns about its middle */
svg.wx-arrow { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; margin-right: 2px; transform-origin: 50% 50%; color: var(--text); flex: none; }

.wx-pt { font-size: .82em; }   /* the compass point after a wind bearing: "162° (SSE)" */

/* shown only on paper (e.g. the typed duties on Personnel and duties, where the screen shows the box) */
.print-only { display: none; }
@media print { .print-only { display: inline; } }

/* the zone access form (templates/ops/airfiling_form.html): laid out like the authority's own - a two-column table */
.zf-table th { width: 46%; text-align: left; vertical-align: top; font-weight: 600; }
.zf-table td { vertical-align: top; }
.zf-sign { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px; margin-top: 18px; }
.zf-sign span { flex: 1 1 120px; border-bottom: 1px solid var(--text); height: 1.4em; }

/* drop-down arrow (23 Nov 2026): the browser's own arrow sat hard against the right edge of the box. Ours sits a little
   in from the edge, the same on every drop-down. Lists that show several rows at once keep the browser's look. */
select:not([multiple]):not([size]) { -webkit-appearance: none; appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.5 6 6l4.5-4.5' fill='none' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 14px center !important; background-size: 12px 8px !important; }
select:not([multiple]):not([size])::-ms-expand { display: none; }
@media print { select:not([multiple]):not([size]) { background-image: none !important; padding-right: 8px; } }

/* Stop things pulsing for no reason (quiet ops Q3, 23 Nov 2026): movement is kept for what needs a person now - an
   overdue lone-work check-in, the recording microphone, a ringing timer. Everything else keeps its colour and sits still. */
.lw-dot, .tstrip .ts-dot, .ts-dot, html.ui-modern .ts-badge-dot, .net-ind[data-state="syncing"] .net-dot,
html.ui-modern .phase-steps li.now::before, html.ui-modern .phase-steps li.now { animation: none !important; }
.lw-alert .lw-dot { animation: lw-pulse 1.6s ease-in-out infinite !important; }

/* Inbox: each area of Needs Attention folds like a folder (23 Nov 2026) */
.att-fold { border-top: 1px solid var(--border); }
.att-fold:first-of-type { border-top: 0; }
.att-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 44px; }
.att-fold > summary::-webkit-details-marker { display: none; }
.att-fold > summary::before { content: ""; width: 7px; height: 7px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform .15s; flex: none; margin-left: 2px; }
.att-fold[open] > summary::before { transform: rotate(45deg); }
.att-fold > summary .att-group { margin: 0 !important; }
.att-fold > .att-list { margin-bottom: 10px; }
@media print { .att-fold > .att-list { display: block !important; } }
/* the "Finish setting up" strip on Today: its parts spaced out wherever it's shown */
.setup-slim { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 12px 0; padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm, 8px); text-decoration: none; background: var(--surface); }
.setup-slim .ss-bar { flex: 1 1 120px; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.setup-slim .ss-bar > span { display: block; height: 100%; background: var(--accent); border-radius: var(--radius-sm, 8px); }
.setup-slim .ss-go { margin-left: auto; font-weight: 600; }
/* Inbox: a Read tick beside each unread line */
.bell-row { display: flex; align-items: stretch; gap: 0; }
.bell-row > .bell-item { flex: 1 1 auto; min-width: 0; }
.bell-read { display: flex; align-items: center; gap: 6px; padding: 0 12px; min-height: 44px; font-size: var(--fs-sm, .85rem); color: var(--muted); cursor: pointer; white-space: nowrap; background: var(--accent-soft); }
.bell-read input { width: 18px; height: 18px; margin: 0; }
/* figure boxes that jump to their section (static/js/statjump.js) */
.stat.stat-jump { cursor: pointer; }
.stat.stat-jump:hover, .stat.stat-jump:focus-visible { border-color: var(--accent); outline: 2px solid transparent; }
/* Costs: one strip of tabs across Paid / To pay / Mileage / Claims (templates/admin/_costs_tabs.html) */
.costs-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 14px; border-bottom: 1px solid var(--border); }
.costs-tabs a { padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; color: var(--text-2, var(--muted)); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.costs-tabs a:hover { color: var(--text); }
.costs-tabs a.on { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
/* invoice / quote page: the rarely used cards sit under one More fold; nothing in it, no fold */
.sv-more { margin: 0 0 14px; }
.sv-more > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 8px; }
.sv-more:not(:has(> :not(summary))) { display: none; }
/* one way back on a project's pages: with the stage strip there, the page's own back link steps aside (quiet ops C2) */
html.fdl:has(.fdl-stages) main .page-head a.back-link { display: none; }

/* Numbers in circles sit dead centre, in every numbered circle on the site (the user, 23 Nov 2026): one line high, every
   digit the same width, centred both ways - whatever font size the circle was given. */
.st-tabs .st-num, .wz-steps .wz-n, .jstep-dot, .fd-n, .lp-n, .sp-n, .sp-num span, .mdv-n, .fpw-steps .num, .ts-step,
.em-steps li::before, .sr-list > li::before, .efb-qsteps li::before {
  display: inline-grid !important; place-items: center !important; line-height: 1 !important; padding: 0 !important; text-align: center;
  font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum" 1, "lnum" 1; box-sizing: border-box; }
.st-tabs .st-num { font-size: 12px; font-weight: 600; }
.st-tabs .st-num > svg { display: block; }

/* No coloured left stripes (the house rule; the user, 23 Nov 2026: "swap the stripes for dots"): where a stripe's colour
   carried a state, a dot of that colour sits at the start of the line instead. Drawn as a background so nothing in the
   row moves; the words beside it already say the state. */
.pm-state, .dc-tl li, .mc-list li.is-open, .mc-handover.is-pending {
  border-left: 0 !important; padding-left: 18px !important;
  background-repeat: no-repeat !important; background-position: 4px .62em !important; background-size: 8px 8px !important;
  background-image: radial-gradient(circle at center, var(--stripe-dot, var(--mk-none, #9aa3ad)) 0 3.6px, transparent 4px) !important; }
.pm-state[data-level="ok"], .dc-tl li.is-done { --stripe-dot: var(--mk-ok, var(--ok, #2e7d32)); }
.pm-state[data-level="warn"], .pm-state[data-level="soon"], .mc-handover.is-pending { --stripe-dot: var(--mk-warn, var(--warn, #b7791f)); }
.pm-state[data-level="bad"], .pm-state[data-level="late"], .dc-tl li.is-late, .mc-list li.is-open { --stripe-dot: var(--mk-bad, var(--bad, #c62828)); }
.dc-tl li.is-next { --stripe-dot: var(--accent); }
.mc-handover.is-pending { background-color: transparent !important; }
/* Modules: the full list is one fold away (newcomer list S1) */
.mod-all { margin-top: 18px; }
.mod-all > summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--radius-sm, 8px); background: var(--surface); }
.mod-all[open] > summary { margin-bottom: 12px; }

/* One red, one amber, one green (quiet ops Q1, 23 Nov 2026). The older names for the same three states - set to slightly
   different shades by each look that came along - all point at the one set in static/css/marks.css on team pages.
   Bright sun keeps its own high-contrast set; the always-dark flying screens keep their own; the client portal uses this set too (clientportal.css). */
html:not(.sunlight) body.calmlook { --ok: var(--mk-ok) !important; --warn: var(--mk-warn) !important; --bad: var(--mk-bad) !important; --info: var(--mk-info) !important;
  --ok-text: var(--mk-ok) !important; --warn-text: var(--mk-warn) !important; --bad-text: var(--mk-bad) !important;
  --fdl-bad: var(--mk-bad) !important; --fdp-ok: var(--mk-ok) !important; --fdp-warn: var(--mk-warn) !important; }
html:not(.sunlight) body.calmlook .fdr-room { --fdr-ok: var(--mk-ok) !important; --fdr-warn: var(--mk-warn) !important; --fdr-bad: var(--mk-bad) !important; }
/* the map room's way back to the project page: a small button, not a bar across the panel */
.fdr-back { display: inline-flex; width: auto !important; align-self: flex-start; margin: 6px 0 0; }

/* flight day on a phone: the four stage tabs (static/js/fdstep.js) */
.fds-stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 0 0 12px; padding: 4px; border: 1px solid var(--border); border-radius: var(--radius, 12px); background: var(--surface); position: sticky; top: var(--bar-h, 56px); z-index: 5; }
.fds-stages[hidden] { display: none; }
.fds-stages button { all: unset; box-sizing: border-box; min-height: 44px; display: grid; place-items: center; border-radius: var(--radius-sm, 8px); font-weight: 600; font-size: var(--fs-md, .92rem); color: var(--text-2, var(--muted)); cursor: pointer; text-align: center; }
.fds-stages button.on { background: var(--accent); color: var(--on-accent, #fff); }
.fds-stages button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fd h2 .fds-mark { font-size: var(--fs-xs, .78rem); font-weight: 500; margin-left: 8px; white-space: nowrap; }

/* Weather: airfields one a row, the figures in line under each other so they compare; the forecast folds (23 Nov 2026) */
.wx-rows { display: block; }
.wx-rows .wx-card { margin: 0 0 10px; }
.wx-rows .wx-card .wx-fc { margin-top: 8px; }
.wx-rows .wx-card details + details { margin-top: 4px; }
@media (min-width: 900px) {
  .wx-rows .wx-card { display: grid; grid-template-columns: minmax(190px, 1.5fr) 1.1fr .9fr 1.1fr .9fr .9fr 1fr; column-gap: 8px; align-items: stretch; }
  .wx-rows .wx-card > header { display: block; margin: 0; }
  .wx-rows .wx-card > header .right { text-align: left; margin-top: 4px; }
  .wx-rows .wx-card > .wx-kv { display: contents; }
  .wx-rows .wx-card > details, .wx-rows .wx-card > p, .wx-rows .wx-card > pre, .wx-rows .wx-card > .raw-label { grid-column: 1 / -1; }
}
/* the weather place picker sits on a street map: a dark cross with a light edge reads there */
#wx-pickwrap.is-picking .bk-cross { background: linear-gradient(#c62828, #c62828) center / 3px 100% no-repeat, linear-gradient(#c62828, #c62828) center / 100% 3px no-repeat; filter: drop-shadow(0 0 2px #fff); }
/* Weather: the forecast-check tables are three short columns; keep them narrow so the figures sit by their labels (23 Nov 2026) */
.table-wrap:has(> .wx-xc) { max-width: 560px; }

/* Weather: airfields + Get weather in view under the search bar */
.wx-airfields { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 10px 0 6px; }
.wx-airfields label { margin: 0; font-weight: 600; }
.wx-airfields input { flex: 0 1 260px; min-width: 160px; }
.wx-coords { grid-template-columns: 1fr 1fr auto; }
@media (max-width: 720px) { .wx-coords { grid-template-columns: 1fr; } .wx-airfields input { flex: 1 1 100%; } }

/* flight day: a message that stops a Go or a checklist stays under the button (quiet ops N5) */
.fd-stay { display: block; flex-basis: 100%; margin: 8px 0 0; font-size: var(--fs-md, .92rem); font-weight: 600; color: var(--mk-bad); }

/* the bell: one line for the to-do list, which lives on Today (quiet ops N2) */
.bell-wait { display: block; padding: 10px 14px; border-top: 1px solid var(--border); font-weight: 600; color: var(--text); text-decoration: none; }
.bell-wait:hover { text-decoration: underline; }

/* Today for crew: admin and learning lines fold under one line (quiet ops T4) */
.fdt3-quiet { margin-top: 10px; }
.fdt3-quiet > summary { cursor: pointer; font-size: var(--fs-md, .92rem); color: var(--muted); padding: 6px 0; }

.md-step { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
/* phones: the whole logo fits its space in the top bar, never cut off (24 Nov 2026) */
@media (max-width: 760px) {
  .topbar .brand { flex: 0 1 auto; min-width: 0; }
  .topbar .brand img.brand-logo { box-sizing: border-box !important; width: 100% !important; max-width: 150px !important; height: auto !important; max-height: 42px; padding: 3px 6px !important; flex: 0 1 auto; min-width: 0; }
}

/* the public and portal menu opens by keyboard and screen reader: the tick box is hidden from sight only (a11y-2, 24 Nov 2026) */
@media (max-width: 1180px) {
  .navtoggle { display: block; position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; opacity: 0; }
  .navtoggle:focus-visible + .burger { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
}

/* Aircraft table: the name keeps its width, long maintenance notes wrap (design-3, 24 Nov 2026) */
.ac-table td:first-child { min-width: 180px; }
.ac-table .ac-maint { max-width: 340px; }
.ac-table .ac-maint :is(.badge, .mk) { white-space: normal; text-align: left; }

/* Project page top (design-9, 24 Nov 2026): the title wraps instead of being cut; one main button and a More menu */
.st-head h1 { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.pl-more { position: relative; }
.pl-more > summary { list-style: none; cursor: pointer; }
.pl-more > summary::-webkit-details-marker { display: none; }
.pl-more-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 250px; max-width: min(340px, 92vw); display: grid; gap: 2px; padding: 8px 14px;
  background: var(--card, var(--surface, #fff)); color: inherit; border: 1px solid var(--border); border-radius: var(--radius-sm, 8px); box-shadow: var(--shadow-3, 0 12px 32px rgba(10,16,24,.24)); }
.pl-more-menu .pl-link, .pl-more-menu form, .pl-more-menu details { display: block; min-height: 0; padding: 7px 0; margin: 0; }
.pl-more-menu .ns-end > summary { padding: 0; font-weight: 500; }
@media (max-width: 700px) { .pl-more-menu { right: auto; left: 0; } }

/* Weather page (weather review met-ux-8, 24 Nov 2026): on a phone the place and limit controls fold under one line so
   the answer is the first thing on the screen; on a computer the fold is invisible and always open. */
.wx-barfold > summary.wx-barfold-s { display: none; }
@media (max-width: 700px) {
  .wx-barfold > summary.wx-barfold-s { display: block; cursor: pointer; padding: 10px 0; font-weight: 600; min-height: 44px; }
}

/* airfield drop-down with chips (_airfield_pick.html, 25 Nov 2026) */
/* the drop-down stays in one place; picked airfields line up on their own row underneath (owner, 25 Nov 2026) */
.afp { display: contents; }
.afp-chips { order: 5; flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.afp-chips:empty { display: none; }
.afp-chip { font: inherit; font-size: .88em; padding: 3px 9px; border: 1px solid var(--border); border-radius: var(--radius-pill, 999px); background: var(--surface-2, var(--bg)); color: var(--text); cursor: pointer; }
.afp-chip:hover, .afp-chip:focus-visible { border-color: var(--accent); }
.afp-add { width: auto; min-width: 170px; }
@media (max-width: 720px) { .afp-add { flex: 1 1 100%; } }

/* Weather: the place box as one labelled grid (owner, 25 Nov 2026: "tidy this complete box") */
.wx-rows { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px 16px; align-items: center; }
.wx-rl { font-weight: 600; font-size: 14px; margin: 0; align-self: start; padding-top: 9px; }
.wx-rc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.wx-full { grid-column: 1 / -1; }
.wx-rows .wx-address { display: flex; gap: 8px; flex: 1 1 320px; margin: 0; }
.wx-rows .wx-address input { flex: 1 1 auto; min-width: 0; }
.wx-rows .wx-job { flex: 0 1 280px; }
.wx-rows select { width: auto; max-width: 100%; }
.wx-rows .wx-airfields, .wx-rows .wx-myplaces { margin: 0; }
.wx-rows #wx-air-help { flex: 1 1 auto; }
.wx-coordfold { flex: 1 1 100%; }
.wx-coordfold > summary { cursor: pointer; color: var(--accent-text, var(--accent)); min-height: 36px; display: inline-flex; align-items: center; }
.wx-coordfold[open] > summary { margin-bottom: 8px; }
.wx-rows .wx-coords { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin: 0; }
.wx-rows .wx-coords + p { margin: 6px 0 0; }
.wx-go { padding-top: 4px; }
@media (max-width: 720px) {
  .wx-rows { grid-template-columns: 1fr; gap: 6px; }
  .wx-rl { padding-top: 8px; }
  .wx-rows .wx-job, .wx-rows select, .wx-rows .wx-address { flex: 1 1 100%; }
  .wx-rows #wx-gps, .wx-rows #wx-pick { flex: 1 1 40%; }
  .wx-rows .wx-coords { grid-template-columns: 1fr; }
  .wx-go .btn { flex: 1 1 100%; }
}

/* Forecast Models Compared (wxmodels.js, 25 Nov 2026; wx-2..14) */
:root { --viz-6: #8a5cd6; --viz-7: #8f6a43; }
html[data-theme="night"] { --viz-6: #a07fe6; --viz-7: #b08a5e; }
#wx-models .panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.wxm-reads { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; }
.wxm-reads button { font: inherit; font-size: 13px; padding: 5px 11px; min-height: 34px; border: 1px solid var(--border); border-radius: var(--radius-pill, 999px); background: transparent; color: var(--text); cursor: pointer; white-space: nowrap; }
.wxm-reads button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }
.wxm-note { margin: 2px 0 8px; }
.wxm-note.is-warn { color: var(--warn-text, var(--text)); font-weight: 600; }
.wxm-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 4px 0 10px; }
.wxm-seg { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-sm, 8px); overflow: hidden; }
.wxm-seg button { font: inherit; font-size: 13px; padding: 6px 12px; min-height: 36px; border: 0; background: transparent; color: var(--text); cursor: pointer; }
.wxm-seg button + button { border-left: 1px solid var(--border); }
.wxm-seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent, #fff); }
.wxm-one { min-height: 36px; font: inherit; font-size: 13px; }
.wxm-seg button:focus-visible, .wxm-key:focus-visible, .wxm-reads button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wxm-models-fold > summary { cursor: pointer; margin-bottom: 4px; }
@media (min-width: 721px) { .wxm-models-fold > summary { display: none; } }
.wxm-legend { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 14px; }
.wxm-key { font: inherit; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 2px; min-height: 32px; border: 0; background: none; color: var(--text); cursor: pointer; }
.wxm-key i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.wxm-key.is-main { font-weight: 600; }
.wxm-key.is-main i { height: 5px; }
.wxm-key.is-off { color: var(--muted); text-decoration: line-through; }
.wxm-key.is-off i { opacity: .3; }
.wxm-key.is-late { color: var(--muted); }
.wxm-sum { margin: 0 0 4px; }
.wxm-readkey { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0 0 6px; color: var(--muted); }
.wxm-readkey span { display: inline-flex; align-items: center; gap: 6px; }
.wxm-readkey i { width: 14px; height: 8px; border-radius: var(--radius-xs, 2px); display: inline-block; }
.wxm-chart { height: 320px; width: 100%; }
.wxm-strip { border-top: 1px solid var(--border); padding: 6px 0; min-height: 40px; }
.wxm-strip .ch-tip { box-shadow: none; border: 0; padding: 0; background: none; max-width: none; }
.wxm-gaps { margin: 6px 0 0; }
.wxm-tip-h { margin-top: 6px; font-weight: 600; font-size: 12px; }
/* Wind By Height (wxmodels.js drawHeight, 25 Nov 2026): hours on the left, up through the height on the right */
.wxh-lead { margin: 0 0 4px; }
.wxh-key { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0 0 6px; }
.wxh-key span { display: inline-flex; align-items: center; gap: 6px; }
.wxh-key i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.wxh-row[hidden] { display: none; }
.wxh-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr); gap: 12px; }   /* time graph wider, height profile narrower (user, 26 Nov 2026) */
.wxh-time, .wxh-prof { height: 280px; width: 100%; min-width: 0; }
.wxh-read { margin: 6px 0 0; min-height: 1.4em; }
@media (max-width: 720px) { .wxh-row { grid-template-columns: 1fr; } .wxh-time { height: 240px; } .wxh-prof { height: 260px; } }
.wxm-tip .is-over { font-weight: 700; color: var(--bad-text, var(--bad, #c62828)); }
.wxm-conf { font-size: 12px; margin: 4px 0 2px; }
div.wxm-conf { display: flex; align-items: flex-start; gap: 7px; }
div.wxm-conf .conf-bars { margin-top: 2px; flex: none; }
.wxm-conf-why { display: block; font-weight: 400; color: var(--muted); white-space: normal; }
.wxm-numbers th, .wxm-numbers td { white-space: nowrap; }
.wxm-table h3 { margin: 10px 0 4px; }
.ch-tip .ch-lim { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 4px; }
@media (max-width: 720px) {
  .wxm-reads { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; scrollbar-width: none; }
  .wxm-seg { flex: 1 1 100%; } .wxm-seg button { flex: 1 1 0; padding: 6px 6px; }
  .wxm-one { flex: 1 1 100%; }
}

/* pilot-phone-11: the photo library's help says Tap on a touch screen, Click with a mouse */
.tap-only { display: none; }
@media (hover: none) { .tap-only { display: inline; } .click-only { display: none; } }

/* wx-4: the confidence word beside each hour (High / Medium / Low), the reason on tap; a word, not colour alone */
details.conf { display: inline-block; position: relative; }
details.conf > summary { list-style: none; cursor: pointer; font-size: 13px; font-weight: 600; padding: 2px 0; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
details.conf > summary::-webkit-details-marker { display: none; }
/* in the hourly table: the dots above the word, both centred in a fixed width so every row lines up (owner, 25 Nov 2026) */
details.conf.conf-stack > summary { flex-direction: column; justify-content: center; gap: 3px; min-width: 64px; line-height: 1.2; }
/* confidence as signal bars (3 High, 2 Medium, 1 Low) beside the word: shape carries it, so no colour that could be read as Go / No go */
/* confidence as three dots (owner, 25 Nov 2026): Low ●○○ red, Medium ●●○ amber, High ●●● green - solid for the level, outlines for the rest */
.conf-bars { display: inline-flex; align-items: center; gap: 3px; height: 14px; flex: none; vertical-align: -2px; }
.conf-bars i { display: block; width: 8px; height: 8px; border-radius: 50%; box-sizing: border-box; border: 1.5px solid var(--cf, var(--text)); background: transparent; }
.c-low .conf-bars { --cf: var(--mk-bad); } .c-medium .conf-bars { --cf: var(--mk-warn); } .c-high .conf-bars { --cf: var(--mk-ok); }   /* red, amber, green */
.c-high .conf-bars i, .c-medium .conf-bars i:nth-child(-n+2), .c-low .conf-bars i:nth-child(1) { background: var(--cf, var(--text)); }
details.conf.c-low > summary { color: var(--text); }
details.conf.c-medium > summary, details.conf.c-high > summary { font-weight: 500; }
.wxm-conf { display: inline-flex; align-items: center; gap: 6px; }
details.conf > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
details.conf .conf-why { display: block; margin-top: 4px; font-size: 12px; font-weight: 400; color: var(--muted); max-width: 300px; white-space: normal; line-height: 1.4; }
.wx-conf-cell { text-align: left; }
/* the 120 m direction under its speed in the hourly table (26 Nov 2026) */
.wx-dir-under { display: flex; align-items: center; justify-content: center; gap: 2px; margin-top: 2px; font-size: 11px; font-weight: 400; color: var(--muted, #6b7280); white-space: nowrap; }
.wx-dir-under .wx-arrow { flex: none; }
.hc-conf { grid-column: 1 / -1; }
.hc-conf:empty { display: none; }
.wxm-conf.c-low { font-weight: 700; }
.fd-sky .fds-conf { grid-column: 1 / -1; margin: -6px 0 0; }

/* wx-19: the hourly table's Columns picker; wx-31: Go / Check / No go in words beside the dot on wider screens */
.wxh-cols-fold { margin: 0 0 8px; }
.wxh-cols-fold > summary { cursor: pointer; }
.wxh-cols { margin-top: 6px; }
@media (max-width: 600px) { .wxh-cols-fold { display: none; } }
.wx-stword { font-size: 12px; color: var(--muted); margin-left: 2px; }
@media (max-width: 700px) { .wx-stword { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }

/* Weather: Forecast and Forecast Models are two tabs in the Weather row (owner, 24 Nov 2026) - one page, two views */
.wx-view-forecast #wx-models, .wx-view-forecast #wx-height { display: none !important; }
.wx-view-models .wx-main > .ptabs, .wx-view-models .wx-tab-pick,
.wx-view-models #wx-hourly-tab > .panel:first-child { display: none !important; }

/* the graph read-out with two or more readings: one row per model, its figures side by side (owner, 24 Nov 2026) */
.wxm-tip .wxm-grid { border-collapse: collapse; margin-top: 6px; font-size: 12px; width: 100%; table-layout: auto; }
.wxm-tip .wxm-grid :is(th, td) { padding: 2px 4px; text-align: right; font-variant-numeric: tabular-nums; border: 0; background: none; line-height: 1.3; height: auto; }
.wxm-tip .wxm-grid thead th { font-weight: 600; vertical-align: bottom; white-space: normal; border-bottom: 1px solid var(--border); }
.wxm-tip .wxm-grid :is(th[scope="row"], thead th:first-child) { text-align: left; font-weight: 500; padding-left: 0; white-space: nowrap; }
.wxm-tip .wxm-grid th[scope="row"] i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.wxm-tip .wxm-grid td { font-weight: 600; white-space: nowrap; }
.wxm-tip .wxm-grid td.is-over { color: var(--bad-text, var(--bad, #c62828)); font-weight: 700; }
.wxm-lim { font-size: 0.85em; font-weight: 500; white-space: nowrap; }                     /* "above limit" beside a red figure */
.wxm-tip .wxm-grid td .wxm-lim { display: block; font-size: 10px; line-height: 1.1; }          /* in the grid: its own line under the figure */
/* the hours above a limit, in words, right over the red bar on the graph (owner, 25 Nov 2026) */
.wxm-overline { display: flex; align-items: flex-start; gap: 8px; margin: 6px 0 -2px; color: var(--text); font-weight: 500; }
.wxm-overline .wxm-ov-key { flex: none; margin-top: 0.5em; width: 18px; height: 8px; border-radius: var(--radius-xs, 2px); background: var(--mk-bad); }
.wxm-overline.is-clear { color: var(--muted); font-weight: 400; }
.wxm-overline.is-clear .wxm-ov-key { width: 8px; border-radius: 50%; background: var(--mk-ok); }
.wxm-tip .wxm-grid .wxm-obs :is(th, td) { border-top: 1px solid var(--border); }
.wxm-tip .wxm-grid-note { margin: 4px 0 0; font-size: 11px; }
/* the model turn-off picker: as wide as the names, Turn Off beside it (owner, 24 Nov 2026) */
.wxm-offpick { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.wxm-offpick label { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.wxm-offpick select, .wxm-offpick .cb { width: auto; max-width: 100%; min-width: 0; }
.wxm-offpick select { width: 16em; }

/* Weather deep dive 2 (owner, 25 Nov 2026) */
/* wx2-1: Forecast Models opens on the answer and the graphs - the forecast's own panels stay on the Forecast tab */
body:has(.wx-view-models) :is(#wx-aero, #wx-plus, #wx-now, #wx-warnings, #wx-fcchange) { display: none !important; }
body:has(.wx-view-models) .wx-verdict { padding-block: 12px; }
/* wx2-2: the place, project and aircraft fold to one line on every screen; Change opens them */
.wx-barfold > summary.wx-barfold-s { display: flex !important; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; cursor: pointer; padding: 6px 0; min-height: 44px; font-weight: 600; list-style: none; }
.wx-barfold > summary.wx-barfold-s::-webkit-details-marker { display: none; }
.wx-bar-change { font-weight: 500; color: var(--accent-text, var(--accent)); font-size: .92em; }
.wx-barfold[open] > summary .wx-bar-change { color: var(--muted); }
.wx-bar .wx-barfold[open] > summary .wx-bar-change::after { content: " (close)"; }
/* wx2-5: Site check on the Map sits with the verdict */
.wx-verdict .wx-tomap { margin: 10px 0 0; }
/* wx2-4: the hourly forecast one day at a time */
.wxh-days { margin: 0 0 10px; }
#wx-hourly[data-day="0"] [data-d]:not([data-d="0"]),
#wx-hourly[data-day="1"] [data-d]:not([data-d="1"]),
#wx-hourly[data-day="2"] [data-d]:not([data-d="2"]) { display: none !important; }
.wx-lines .wx-rule { list-style: none; padding-left: 0; }
/* wx2-8: the models graph full screen */
.wxm-headbtns { display: inline-flex; align-items: center; gap: 12px; }
.wxm.wxm-full { position: fixed; inset: 0; z-index: 1200; margin: 0; border-radius: 0; overflow: auto; background: var(--surface, var(--bg));
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
html.wxm-full-on, html.wxm-full-on body { overflow: hidden; }
.wxm.wxm-full .wxm-models-fold, .wxm.wxm-full .wxm-numbers-fold, .wxm.wxm-full > .muted.small, .wxm.wxm-full .about-figs { display: none; }
/* an upright phone in full screen: the graph above the readings, no forced turn (ra a11y-mobile-13) */
@media (orientation: portrait) {
  .wxm.wxm-full { display: flex; flex-direction: column; gap: 8px; }
  .wxm.wxm-full > .panel-head { order: 0; } .wxm.wxm-full > .wxm-overline { order: 1; } .wxm.wxm-full > .wxm-chart { order: 2; }
  .wxm.wxm-full > .wxm-strip, .wxm.wxm-full > .wxm-gaps { order: 3; }
  .wxm.wxm-full > :is(.wxm-reads, .wxm-more-reads, .wxm-note, .wxm-controls, .wxm-readkey, .wxm-sum, .wxm-msg) { order: 4; }
}

/* the hourly table's units sit in one line above it, not in each heading: they follow each person's choice (user, 26 Nov 2026) */
.hourly > caption.wxh-units { caption-side: top; text-align: left; padding: 0 0 6px; }
/* the model readout on the wind graphs: see-through enough to make out the lines behind it, still easy to read (user, 26 Nov 2026) */
.ch-tip.wxm-tip { background: color-mix(in srgb, var(--surface) 70%, transparent); -webkit-backdrop-filter: blur(1.5px); backdrop-filter: blur(1.5px); }

/* Crew on a project: name and role left, signed-on mark and Call right (four viewpoints lead-4) */
.cc-list { list-style: none; margin: 0; padding: 0; }
.cc-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.cc-row:last-child { border-bottom: 0; }
.cc-right { display: inline-flex; align-items: center; gap: 10px; flex: none; }

/* ra a11y-colour-2: form boxes get their own darker edge on every page, the client portal too (cards and table lines keep --border); bright sun has its own */
html:not(.sunlight) body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=hidden]), select, textarea) { border-color: var(--field-border, var(--border-strong)); }
html:not(.sunlight) body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=hidden]), select, textarea):hover { border-color: var(--text-2); }

/* Windows High Contrast: a real focus outline, and picked chips and pressed buttons outlined (ra a11y-colour-13) */
@media (forced-colors: active) {
  :is(.btn, a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid CanvasText !important; outline-offset: 2px; }
  input:focus, select:focus, textarea:focus { outline: 2px solid Highlight !important; }
  :is(.amap-chip, .chip, [aria-pressed]).on, [aria-pressed="true"] { outline: 2px solid Highlight; outline-offset: 1px; }
}

/* ---- design picks 30 Nov 2026: hover and wrap ---- */
/* ipad-8 / phone-6: on a touch screen a title's words show in a small pop on tap (a11y.js). Something that shows more when
   tapped says so with help-cursor and, for words, a dotted underline; the pop itself sits by what was tapped. */
.tt-tap { cursor: help; }
:is(span, b, small, em, strong, abbr, time).tt-tap { text-decoration: underline dotted; text-decoration-color: var(--muted); text-underline-offset: 3px; }
.tt-pop { position: fixed; margin: 0; max-width: min(300px, calc(100vw - 16px)); z-index: 90; white-space: normal; overflow-wrap: anywhere;
  padding: 10px 12px; border-radius: var(--radius-sm, 8px); background: var(--panel, var(--surface)); color: var(--text); border: 1px solid var(--line, var(--border));
  box-shadow: var(--shadow-3, 0 12px 32px rgba(10,16,24,.24)); font-size: var(--fs-sm, .85rem); font-weight: 400; text-transform: none; letter-spacing: 0; }
.tt-pop[hidden] { display: none; }
/* phone-7: one base rule for long unbroken words (a client's email, DJI_20261130123456_0001_V.MP4, a share link, an
   Eircode with no space). Everything in a page breaks such a word at the edge rather than running off it and being cut
   by the page's sideways clip. Text blocks may break anywhere, so a flex or grid box holding one can still shrink;
   table cells and buttons only break a word that would not fit, so lists keep their column widths. */
main { overflow-wrap: break-word; }
main :is(p, dd, h1, h2, h3, h4, figcaption, blockquote, .panel-head h2, .panel-head h3) { overflow-wrap: anywhere; }
.panel-head > :first-child { min-width: 0; }
/* phone-5: on a phone a row's or a panel heading's buttons beyond the first fold into More (formfeel.js); the list opens in
   place, full width, so a card or a sideways-scrolling list can't cut it off */
.ff-more-row > .ff-more-menu { position: static; min-width: 0; margin-top: 6px; box-shadow: none; }
.ff-more-row[open] { display: block; flex-basis: 100%; }
.ff-more-row > .ff-more-menu > :is(a, form, button) { width: 100%; }
.ff-more-row > .ff-more-menu > form { margin: 0; }
/* phone-5: an edit form that opens inside a list cell opens as a sheet the width of the screen instead (as Radios' Edit) */
@media (max-width: 700px) {
  details.ff-sheet[open] > .ff-sheet-body { position: fixed; left: 16px; right: 16px; bottom: calc(var(--app-bar-h, 64px) + env(safe-area-inset-bottom) + 12px);
    max-height: 70vh; overflow-y: auto; z-index: 61; min-width: 0; text-align: left; background: var(--surface); color: var(--text);
    border: 1px solid var(--border); border-radius: var(--radius-sm, 10px); padding: 14px; box-shadow: var(--shadow-3, 0 12px 32px rgba(10,16,24,.24)); }
  details.ff-sheet[open] > .ff-sheet-body form { min-width: 0; }
  .ff-sheet-close { display: flex; margin: 0 0 8px auto; }
}
@media (min-width: 701px) { .ff-sheet-close { display: none; } }
/* clutter-3: a heading's tools in one "Open a Tool" menu */
.tool-menu .ff-more-menu > a .badge { margin-left: auto; }
/* the Login menu is the left-most button in its row, so it opens to the right; on a phone so does Open a Tool */
.clp-login > .ff-more-menu { right: auto; left: 0; max-width: calc(100vw - 32px); }
@media (max-width: 700px) { .tool-menu > .ff-more-menu { right: auto; left: 0; max-width: calc(100vw - 32px); } }
/* clutter-3: in the Next Step bar only the first action is a button; the others read as links */
.next-step .ns-actions .ns-link { background: none; border-color: transparent; box-shadow: none; color: var(--link, var(--accent)); font-weight: 500;
  text-decoration: underline; text-underline-offset: 3px; padding-inline: 6px; }
.next-step .ns-actions .ns-link:hover { background: none; color: var(--link-hover, var(--link, var(--accent))); }

/* finishfeel.css */
/* Finish and feel (17 Nov 2026): the small touches that make the site feel made, loaded last.
   - a press you can feel on buttons and tappable cards
   - a quiet shimmer where a chart is about to draw
   - a hairline of light along the top of panels at night, so they sit above the page
   - figures that count up once (finishfeel.js), never for people who ask for less motion */
html:root body .btn { transition: background .15s, border-color .15s, box-shadow .15s, transform .08s ease-out; }
html:root body .btn:active:not(:disabled):not([aria-disabled="true"]) { transform: scale(.97); }
html:root body :is(a.board-card, a.kpi, a.set-card, a.tile, .cp-rows > li > a, .ft-card):active { transform: scale(.99); transition: transform .08s ease-out; }

.chart [data-chart]:empty, [data-chart]:empty { border-radius: var(--radius-sm, 8px);
  background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--text) 6%, transparent) 50%, transparent 70%) 0 0 / 300% 100%,
              color-mix(in srgb, var(--text) 3%, transparent);
  animation: ff-shimmer 1.4s linear 2; }
@keyframes ff-shimmer { from { background-position: 100% 0, 0 0; } to { background-position: -50% 0, 0 0; } }

html[data-theme="night"] body :is(.panel, .card, .board-col, .modal, dialog) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045); }

[data-countup] { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  html:root body :is(.btn, a.board-card, a.kpi, a.set-card, a.tile, .ft-card):active { transform: none; }
  .chart [data-chart]:empty, [data-chart]:empty { animation: none; }
}

/* Cover page choice: the house pop-up (popups.css) */

/* one filter chip (screen review v-70): the chips a page draws (.lk-chips buttons) and a paged list's chips (.lp-chips links)
   had different corners, heights and selected looks side by side on Aircraft & batteries. One shape (the house 4px box, purpose.css 5), one selected state. */
html body:not(#_) .lk-chips > button, html body:not(#_) .lp-chips > a { border-radius: calc(var(--radius-sm) / 2); min-height: 32px; padding: 0 12px; font-size: var(--fs-sm, .82rem);
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 500; }
html body:not(#_) .lk-chips > button[aria-pressed="true"], html body:not(#_) .lp-chips > a[aria-current="true"] { background: var(--accent-soft, color-mix(in srgb, var(--accent) 12%, transparent)); border-color: var(--accent); color: var(--text); font-weight: 600; }
html[data-theme="night"] body:not(#_) .lk-chips > button[aria-pressed="true"], html[data-theme="night"] body:not(#_) .lp-chips > a[aria-current="true"] { background: color-mix(in srgb, var(--accent) 22%, transparent); }
@media (pointer: coarse) { html body:not(#_) .lk-chips > button, html body:not(#_) .lp-chips > a { min-height: 44px; } }

/* purpose.css */
/* Built for purpose (19 Nov 2026, the user's picks from the "Built for Purpose" review). Loaded last on every page, so it
   wins over style/modern/look26/cockpit/plainer. The app should look like the paperwork a drone operator keeps (a run
   sheet, a job file, a tech log), not a software template:
   2  three corner sizes: 2px inputs and tables, 4px buttons and panels, 8px dialogs and photos (round stays for dots/avatars)
   3  a solid top bar with one line under it, no blur (map buttons keep their smoked glass, mapchrome.css)
   4  square-cornered buttons (44px on touch), underline tabs, the open menu item as a left rule + bold, not a filled pill
   6  .id / .ref / .reg: refs, serials and registrations in the mono face; .num: figures with even digits in the page font
   7  table headers in plain bold grey, no capitals, kept in view while a long table scrolls
   8  the accent only for links, the main button and focus; hover is a light grey
   9  one spacing scale: --sp-1..7 = 4 8 12 16 24 32 48 (new rules use these)
   10 no glowing heroes, gradients or soft shadows inside the app; floating things (menus, dialogs) keep one plain shadow
   Screen and print alike, except the sticky table heads (screen only). */

html:root:root:root {
  --radius-xs: 2px; --radius-sm: 4px; --radius: 4px; --radius-lg: 8px; --ck-r: 4px;
  --r-field: 2px; --r-control: 4px; --r-pop: 8px;   /* the three corner sizes by name (controls-6): fields, controls, things that float */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px;
  --shadow: none; --shadow-float: 0 6px 20px rgba(10, 16, 24, .22);
  --shadow-2: var(--shadow-float); --shadow-3: var(--shadow-float);   /* consistency-8: the menus and dialogs written with the shadow tokens share the one plain shadow */
  --pp-hover: color-mix(in srgb, var(--text) 6%, transparent);
  --pp-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
html:root:root:root[data-theme="night"] { --shadow-float: 0 6px 20px rgba(0, 0, 0, .5); }

/* ---- 2. corners --------------------------------------------------------------------------------------------------------- */
html:root:root:root body :is(.panel, .card, .notice, .kpi, .stat, .board-col, .board-card, .help-card, .settings-card, .ops-job, .db-card, .fd-card,
    details.panel, details.disclose, .ck .hb, .hub-btn, .ho-tile, .wall-tile, .ov-tile, .hl-tile, .st-gate, .next-step, .empty, .callout,
    .mr-find, .mr-find-in, .seg, .ptabs, .tab-switch, .chip-row .chip, .alert, .flash, .toast,
    .cp-card, .ft-card, .auth-card, .sn-card, .pt-card, .mod-tile, .panel.is-tile) { border-radius: 4px; }   /* consistency-9: the tools' own cards too */
html:root:root:root body .panel :is(.panel, .card, .notice) { border-radius: 2px; }
html:root:root:root body :is(.table-wrap, .file-table, table, input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) { border-radius: var(--r-field); }
html:root:root:root body :is(.modal, dialog, .menu-pop, .sp-menu, .me-menu, .pop, .popover, .lightbox img, .photo, .thumb, figure img) { border-radius: var(--r-pop); }
/* the controls that sit beside the fields and buttons on a form take the same corners (controls-6, 30 Nov 2026): the Yes/No
   row like the .seg tabs, the search-as-you-type list like the other things that float, the file button and tick boxes like
   a button. Round choices (radios), switches, dots and avatars stay round. */
html:root:root:root body :is(.ynseg, .cp-yn, .ynseg-many) { border-radius: var(--r-control); }
html:root:root:root body :is(.ynseg, .cp-yn, .ynseg-many) label { border-radius: 2px; }
html:root:root:root body .cb-list { border-radius: var(--r-pop); }
html:root:root:root body .cb-opt { border-radius: 2px; }
html:root:root:root body input[type="file"]::file-selector-button { border-radius: var(--r-control); }
html:root:root:root body input[type="checkbox"]:not(.switch):not([role="switch"]):not(.navtoggle) { border-radius: var(--r-control); }
html:root:root:root body .savepill { border-radius: var(--r-pop); }
html:root:root:root body .savepill .btn { border-radius: var(--r-control); }
/* read-only fields never look like a box to type in (controls-8): the grey surface, a quiet border */
html:root:root:root body :is(input[readonly]:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]), textarea[readonly]) { background-color: var(--surface-2); border-color: var(--border); }
html:root:root:root body .linkbox > input.linkbox-url[readonly] { border-color: transparent; }
/* a field that still needs something when Save is pressed (controls-10; message under it from static/js/controls.js) */
html:root:root:root body :is(input, select, textarea):is(.ff-bad, :user-invalid):not([type="checkbox"]):not([type="radio"]) { border-color: var(--bad); }
/* iPhone and iPad: an empty date box was a blank box (controls-11). A calendar (or clock) at the right says what it is; the
   muted "Tap to pick a date" while empty is in style.css. Other browsers draw their own. */
@supports (-webkit-touch-callout: none) {
  html:root:root:root body input:is([type=date], [type=datetime-local], [type=month]):not(#_) { padding-right: 38px; background-repeat: no-repeat; background-position: right 12px center; background-size: 16px 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%236b7280' stroke-width='1.5'%3E%3Crect x='1.75' y='2.75' width='12.5' height='11.5' rx='1.5'/%3E%3Cpath d='M1.75 6.25h12.5M5 1v3.5M11 1v3.5'/%3E%3C/svg%3E"); }
  html:root:root:root body input[type=time]:not(#_) { padding-right: 38px; background-repeat: no-repeat; background-position: right 12px center; background-size: 16px 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%236b7280' stroke-width='1.5'%3E%3Ccircle cx='8' cy='8' r='6.25'/%3E%3Cpath d='M8 4.5V8l2.5 1.5'/%3E%3C/svg%3E"); }
}

/* ---- 3. a solid top bar ---------------------------------------------------------------------------------------------------- */
html:root:root:root body .topbar:not(#_) { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; border-bottom: 1px solid var(--border); }
html:root:root:root body .page-head.as-bar.is-stuck:not(#_) { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); box-shadow: none; border-bottom: 1px solid var(--border); border-radius: 0; }

/* ---- 4. buttons, tabs, the menu -------------------------------------------------------------------------------------------- */
html:root:root:root body :is(.btn, .seg button, .seg a) { border-radius: var(--r-control); box-shadow: none; }
html:root:root:root body :is(.btn, .seg button, .seg a):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }   /* keyboard focus always shows (a11y-1, 24 Nov 2026) */
html:root:root:root body .btn:active { transform: none; }
html:root:root:root body .seg { padding: 0; gap: 0; border: 1px solid var(--border); background: var(--surface); overflow: hidden; }
html:root:root:root body .seg :is(button, a) { border-radius: 0; border: 0; border-left: 1px solid var(--border); }
html:root:root:root body .seg :is(button, a):first-child { border-left: 0; }
/* tab rows: words with a 2px accent line under the open one, on a hairline */
html:root:root:root body .ptabs { background: none; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 0; gap: 2px; width: auto; }
html:root:root:root body .ptabs a { background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; margin: 0 0 -1px; min-height: 44px; padding: 10px 12px; color: var(--muted); }
html:root:root:root body .ptabs a:hover { color: var(--text); background: none; }
html:root:root:root body .ptabs a.on { background: none; color: var(--text); border-bottom-color: var(--accent); }
/* the open page in the side menu: a 3px rule on its left edge and bold words, no filled pill */
html:root:root:root body .mrail :is(.mr-item, .mr-link) { border-radius: 2px; }
html:root:root:root body .mrail :is(.mr-item, .mr-link).on:not(#_) { background: var(--pp-hover); color: var(--text); font-weight: 650; box-shadow: inset 3px 0 0 var(--accent); }
html:root:root:root body .mrail .mr-item.on:not(#_) svg { color: var(--text); }
html:root:root:root body .mrail .mr-sides a.on:not(#_) { background: var(--surface); color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }

/* ---- 6. idents: refs, registrations, times and figures ------------------------------------------------------------------ */
/* v-24 (screen review 30 Nov 2026): figures, money, dates, counts, refs and their headings are in the page's own font with
   even-width digits, not a typewriter face next to the normal one; a stacked table's label (td.num::before) too */
.num, td.num, th.num { font-family: inherit; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
td.num::before, td.n::before { font-family: inherit; font-variant-numeric: normal; }
/* owner answer q9 (1 Dec 2026): reference numbers and serial codes - project numbers, quote and invoice numbers, drone serials
   and registrations, flight IDs, TEST- numbers - are back in the typewriter face (with a slashed zero), so a code reads as a
   code; money, dates and counts stay in the page's own font (v-24). One class for them all: .ref (.id and .reg the same). */
.id, .ref, .reg { font-family: var(--pp-mono, ui-monospace, Menlo, monospace); font-feature-settings: "tnum" 1, "zero" 1; }
.id, .ref, .reg { font-size: .92em; font-weight: 500; letter-spacing: 0; white-space: nowrap; }
:is(.id, .ref, .reg) :is(.id, .ref, .reg) { font-size: 1em; }
.num { font-size: .94em; }
td.num, th.num, td.n, th.n { text-align: right; }
html:root:root:root body table { font-variant-numeric: tabular-nums; }

/* ---- 7. table headers ------------------------------------------------------------------------------------------------------ */
html:root:root:root body :is(th, table th, .table th, thead th):not(#_) { text-transform: none; letter-spacing: 0; font-size: .82rem; font-weight: 600; color: var(--muted); }
html:root:root:root body thead th { border-bottom: 1px solid var(--border-strong, var(--border)); }
@media screen { html:root:root:root body .table-wrap thead th, html:root:root:root body table.sticky-head thead th { position: sticky; top: 0; z-index: 1; background: var(--surface); } }

/* ---- 8. the accent: links, the main button, focus ------------------------------------------------------------------------ */
html:root:root:root body :is(.panel, .card, .board-card, .hub-btn, .ho-tile, .hl-tile, .ops-job, .db-card, .row-link, tr.row-link):hover { border-color: var(--border); box-shadow: none; transform: none; }
html:root:root:root body :is(tr.row-link, tbody tr[data-href], .list-row, .as-row):hover { background: var(--pp-hover); }

/* ---- 10. decoration that does no job, inside the app --------------------------------------------------------------------- */
html.ck-site:root:root body :is(.panel, .card, .notice, .kpi, .stat, .board-card, .hub-btn, .ho-tile, .hl-tile, .ops-job, .db-card, .st-gate, .next-step, .fd-card, .app-bar, .hb) { box-shadow: none; }
html.ck-site:root:root body :is(.page-hero, .hero-card, .ck-hero, .glow, .hero-band) { background: var(--surface) !important; background-image: none !important; box-shadow: none !important; color: var(--text); border: 1px solid var(--border); }
html.ck-site:root:root body :is(.page-hero, .hero-card, .ck-hero, .hero-band)::before, html.ck-site:root:root body :is(.page-hero, .hero-card, .ck-hero, .hero-band)::after { display: none; }
@media (prefers-reduced-motion: no-preference) { html.ck-site:root:root body :is(.panel, .card, .btn, .hub-btn) { transition: background-color .1s, border-color .1s, color .1s; } }

/* the ruled section: a heading on a thin top line, no box (pick 11; used by the rebuilt pages) */
.sect { border-top: 1px solid var(--border); padding-top: var(--sp-3); margin: 0 0 var(--sp-5); min-width: 0; }
.sect > :is(h2, h3, header):first-child { margin: 0 0 var(--sp-2); }
.sect > header { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); }
.sect > header > :is(h2, h3) { margin: 0; }
.sect > header > .r { margin-left: auto; font-size: .9rem; }
.sect-plain { border-top: 0; padding-top: 0; }
/* a facts line: label then value, no box (pick 12) */
.facts { display: flex; flex-wrap: wrap; gap: 2px var(--sp-4); margin: var(--sp-1) 0 0; color: var(--muted); font-size: var(--fs-md); }
.facts > span { white-space: nowrap; }
.facts b { color: var(--text); font-weight: 600; font-family: inherit; font-size: .95em; font-variant-numeric: tabular-nums; margin-left: 4px; }
.facts b.mk-bad, .facts .is-bad b { color: var(--mk-bad); }
.facts b.mk-warn, .facts .is-warn b { color: var(--warn-text, var(--text)); }

/* ---- 5. no pills: controls that were pill-shaped are 4px boxes, and every status is a dot + word (plainer.css, marks.css).
   Small round counters (unread, waiting) stay round: they are numbers, not statuses. ------------------------------------- */
html:root:root:root body :is(.chip-btn, .lk-chips > button, .jm-chip, .cc-qr, .hp-tools a, .set-groups a, .pk-jump a, .tl-chips .tl-pick, .wr-chip,
    .ask-ex .chip, .rd-signs li, .cn-switch, .p-toolsbtn, .p-alerts, .hp-wait, .pm-full, .app-pill, .ps-back, .cc-jump, .cc-rx) { border-radius: 4px; }
html:root:root:root body :is(.sa-timer, .fp-strip li, .pt-lvl, .pt-badge, .cc-day span, .cc-sys p) { border-radius: 2px; }
html.portal:root:root body .badge { border-radius: 0; }
html:root:root:root body :is(.pill, .tag, .status-pill, .st-pill):not(button):not(a) { background: none !important; border: 0 !important; padding: 0 !important; border-radius: 0 !important;
  font-weight: 500; color: var(--text-2, var(--text)); }

/* ---- 22. long help text: one line and a More button (static/js/helpclamp.js) ----------------------------------------------- */
@media screen {
  .hc-clamp:not(.hc-open) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; line-clamp: 1; overflow: hidden; margin-bottom: 0; }
  .hc-more { display: inline-flex; align-items: center; min-height: 32px; padding: 0; margin: 0 0 8px; border: 0; background: none; color: var(--link, var(--accent));
    font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; }
  .hc-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  @media (pointer: coarse) { .hc-more { min-height: 44px; } }
  .page-head .hc-more:last-child { margin-bottom: 0; }   /* no extra gap under a page title's More (v-52, Legal & Privacy) */
}
@media print { .hc-more { display: none; } }

/* ---- 12. no big-number tiles: figures read at text size in the mono face (the count-up is off, finishfeel.js) ------------- */
/* except the flight plan's figures (owner 28 Nov 2026): one line in the plan's panel (#fp-figline) in the page's own font with
   tabular digits, see flightplan.css; the old .fp-fig chips over the map are no longer shown */
html:root:root:root body :is(.area-fig, .sol-fig, .mg-fig, .hl-fig, .wc-big, .vv-big, .occ-big, .ll-fig, .cr-big, .wt-fig, .th-fig, .fdc-fig, .hb-big, .mt-big, .mt-fig, .cpd-big, .ff-big, .rr-big, .fp-fig, .nc-big),
html:root:root:root body :is(.area-fig, .sol-fig, .mg-fig, .hl-fig, .wc-big, .vv-big, .occ-big, .ll-fig, .cr-big, .wt-fig, .th-fig, .fdc-fig, .hb-big, .mt-big, .mt-fig, .cpd-big, .ff-big, .rr-big, .fp-fig, .nc-big) :is(b, strong) {
  font-size: var(--fs-panel) !important; line-height: 1.35; font-weight: 600; letter-spacing: 0; font-family: inherit; font-variant-numeric: tabular-nums;
  background: none; -webkit-text-fill-color: currentColor; }

/* ---- 15. one page header: title, one line under it, the main action on the right ------------------------------------------- */
html:root:root:root body .page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sp-2) var(--sp-4);
  margin: 0 0 var(--sp-5); padding: 0; background: none; border: 0; box-shadow: none; }
html:root:root:root body .page-head > div:first-child { flex: 1 1 320px; min-width: 0; }
@media (max-width: 700px) { html:root:root:root body .page-head { align-items: stretch; } html:root:root:root body .page-head > div:first-child { flex: 0 1 auto; } }
@media (max-width: 640px) { html:root:root:root body .home .page-head > .home-actions { display: none; } }
html:root:root:root body .page-head > div:first-child > p { margin: var(--sp-1) 0 0; font-size: var(--fs-md); max-width: 80ch; }
html:root:root:root body .page-head > div:last-child:not(:first-child) { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
html:root:root:root body .page-head .eyebrow { display: none; }
/* the title row that sticks under the top bar (appshell.js .as-bar) keeps a solid background and its side padding: the rule
   above cleared both, so the date and New project floated over the tables as the page scrolled (user, 19 Nov 2026) */
@media (min-width: 901px) {
  html:root:root:root:not(.in-frame) body .page-head.as-bar:not(#_) { background: var(--bg); padding: 8px 12px; margin-left: -12px; margin-right: -12px; }
  html:root:root:root body .page-head.as-bar.is-stuck:not(#_) { padding-top: 6px; padding-bottom: 6px; }
}

/* Pick 11 (19 Nov 2026): ruled sections instead of boxes. A panel that only shows things (no fields, no checklist) loses
   its box and becomes a section under a hairline rule; panels holding a form or a checklist keep the box. Panels on
   maps, decks, drawers, pop-ups and dialogs are left alone. Add .keep-box to keep a box on purpose. A folded tool (.fold,
   the project page's lists of tools) always keeps its box, so a list of them looks the same whatever is inside (user, 19 Nov). */
html:root:root:root body main .panel:not(.keep-box):not(.fold):not(:has(textarea, select, .ck-rows, .checklist, [data-checkflow],
    input:is(:not([type]), [type=text], [type=number], [type=date], [type=time], [type=datetime-local], [type=email],
    [type=tel], [type=url], [type=search], [type=file], [type=checkbox], [type=radio], [type=password]))):not(
    :is(dialog, .drawer, .menu-pop, .dock, .leaflet-container, .map-wrap, .fdk, .deck, [class*="-map"], .ov-panel) .panel) {
  background: transparent; border: 0; border-top: 1px solid var(--border); border-radius: 0; box-shadow: none;
  padding: var(--sp-3) 0 var(--sp-2); }
html:root:root:root body main .panel:not(.keep-box) > :is(h2, h3):first-child { margin-top: 0; }

/* Pick 16: an Add form opened by hand on a wide screen is a drawer on the right (static/js/adddrawer.js) */
@media (min-width: 1024px) {
  html:root:root:root body main details.add-drawer[open]:not(#_) { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1200;
    width: min(500px, 92vw); margin: 0; overflow-y: auto; overscroll-behavior: contain; border: 0; border-left: 1px solid var(--border);
    border-radius: 0; background: var(--surface, var(--bg)); padding: var(--sp-5) var(--sp-5) var(--sp-6);
    box-shadow: 0 0 0 100vmax color-mix(in srgb, #000 40%, transparent); }
  html:root:root:root body main details.add-drawer[open] > summary:not(.btn) { position: sticky; top: calc(-1 * var(--sp-5)); z-index: 1;
    background: var(--surface, var(--bg)); padding: var(--sp-2) 0; margin: calc(-1 * var(--sp-2)) 0 var(--sp-3); }
}

/* Pick 14: the project page as a job file - reference above the title, works-order grid, paperwork register */
html:root:root:root body .pl-ref { display: block; font-size: var(--fs-sm); color: var(--muted); letter-spacing: .02em; margin: var(--sp-1) 0 0; }
.wo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 var(--sp-5); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.wo > div { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: var(--sp-2) var(--sp-3); min-width: 0; }
.wo dt { font-size: var(--fs-xs); color: var(--muted); margin: 0 0 2px; font-weight: 500; }
.wo dd { margin: 0; font-size: var(--fs-md); overflow-wrap: anywhere; }
@media (max-width: 900px) { .wo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media print { .wo { grid-template-columns: repeat(4, 1fr); } }
.pw-table td, .pw-table th { white-space: nowrap; } .pw-table td:first-child { white-space: normal; }
.pw header .r a + a { margin-left: var(--sp-3); }

/* Pick 24: aircraft identity block - the registration leads, then name, type, serial, state, and one log line of hours */
html:root:root:root body .ac-reg { display: block; font-size: var(--fs-base); font-weight: 600; letter-spacing: .03em; margin: var(--sp-1) 0 0; color: var(--text); }
html:root:root:root body .ac-log { margin-top: var(--sp-1); }

/* Pick 25: tech-log defect table; the Action fold opens under its row's button */
.tl-table td { vertical-align: top; }
.tl-act > summary { list-style: none; } .tl-act > summary::-webkit-details-marker { display: none; }
.tl-act[open] .tl-act-body { margin-top: var(--sp-2); display: grid; gap: var(--sp-2); min-width: 260px; text-align: left; }
.tl-act-body form { display: grid; gap: var(--sp-1); }

/* Pick 26: the flight log as strips - one tight line per flight, times and figures in mono, flags as marks */
html:root:root:root body table.fl-strip td { padding-top: 6px; padding-bottom: 6px; vertical-align: top; }
table.fl-strip .fs-when { white-space: nowrap; }   /* v-24: the date in the page's font, kept on one line */
table.fl-strip .fs-flags { display: table-cell; } table.fl-strip .fs-flags .mk { display: inline-flex; margin: 0 6px 2px 0; white-space: nowrap; }
table.fl-strip td.num a { color: inherit; }

/* Picks 27-28: the flight-day cockpit as a ruled briefing strip (no ring, no compass, no glow), the coded weather line with
   the job's limits, NOTAMs as a table */
html:root:root:root body .fd-cockpit:not(#_) { gap: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 0; }
html:root:root:root body .fd-cockpit > .ck-panel:not(#_) { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: var(--sp-3) var(--sp-4); }
html:root:root:root body .fd-cockpit > .ck-panel + .ck-panel:not(#_) { border-left: 1px solid var(--border); }
html:root:root:root body .fd-cockpit .fdc-ready-top { display: block; }
html:root:root:root body .fd-cockpit .fdc-wind:not(#_) { display: block; }
@media (max-width: 760px) { html:root:root:root body .fd-cockpit > .ck-panel + .ck-panel:not(#_) { border-left: 0; border-top: 1px solid var(--border); } }
.fd-brief { border-bottom: 1px solid var(--border); padding: var(--sp-2) var(--sp-4) var(--sp-3); margin: 0 0 var(--sp-5); }
.fd-coded { font-family: var(--pp-mono); font-size: .95rem; margin: 0; display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); }
.fd-code-lim { font-weight: 600; }
.fd-code-plain, .fd-code-notam { margin: var(--sp-1) 0 0; }
.fd-notam-table td { vertical-align: top; }

/* Pick 29: document control block - same ruled grid as the works order, six cells */
.wo.dc-block { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1000px) { .wo.dc-block { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .wo.dc-block { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Review shell-15 (19 Nov 2026): on touch screens every button is at least 44px, the small ones too (gloved hands miss
   small targets). The look stays small; only the hit area grows. */
@media (pointer: coarse) {
  html:root:root:root body :is(.btn.btn-xs, .btn.btn-sm, .btn.btn-icon, .charge-btn, .ov-btn) { min-height: 44px; }
  html:root:root:root body :is(.btn.btn-icon, .charge-btn) { min-width: 44px; }
  html:root:root:root body .btn.btn-xs { padding-top: 6px; padding-bottom: 6px; }
}

/* One empty state (templates/_empty.html, review shell-18): a sentence saying what goes here and one button to add the first. */
html:root:root:root body .empty-state { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2, 8px) var(--sp-4, 16px); padding: var(--sp-3, 12px) 0; }
html:root:root:root body .empty-state p { margin: 0; color: var(--muted); max-width: 62ch; }
html:root:root:root body tr.empty-row > td { border-bottom: 0; }

/* 'Not reportable' asks why (review safety-3): the reason box shows only when that choice is ticked. */
html:root:root:root body .occ-why { display: none; }
html:root:root:root body .occ-choice:has(input[value="no"]:checked) + .occ-why { display: block; }

/* One top line across the three panes (the user, 19 Nov 2026): the side menu's name block, the top bar and the docked
   chat's bar are all 56px high with their line at the same place. Computers and iPads; phones keep their own bars. */
@media (min-width: 701px) {
  html.ui-modern:root:root:root body .mrail { padding-top: 0; }
  html.ui-modern:root:root:root body .mrail .mr-org { box-sizing: border-box; height: 56px; min-height: 56px; margin-top: 0; }
  html.ui-modern:root body .topbar { box-sizing: border-box; height: 56px; min-height: 56px; }
  html:root body .cw-win.cw-docked .cw-bar { box-sizing: border-box; height: 56px; min-height: 56px; }
}

/* The project's facts block (19 Nov 2026, the user's approved mock-up): one card, values bold, the gaps in a Still needed line */
.wo2 { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: var(--sp-4) var(--sp-5); margin: 0 0 var(--sp-4); }
.wo2-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-3) var(--sp-5); margin: 0; }
.wo2-facts > div { min-width: 0; }
.wo2-facts dt { font-size: var(--fs-xs); color: var(--muted); margin: 0 0 2px; font-weight: 500; }
.wo2-facts dd { margin: 0; font-size: var(--fs-base); font-weight: 600; overflow-wrap: anywhere; }
.wo2-facts .mk { white-space: normal; }   /* a long status ("Delivered (not sent from here)") wraps in its column, never over the next (1 Dec 2026) */
.wo2-sub { display: block; font-size: var(--fs-sm); font-weight: 400; color: var(--muted); }
.wo2-gaps { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: var(--sp-3) 0 0; padding-top: var(--sp-3); border-top: 1px solid var(--border); font-size: .9rem; }
.wo2-gl { color: var(--muted); }
.wo2-gaps a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
@media (pointer: coarse) { .wo2-gaps a { min-height: 44px; display: inline-flex; align-items: center; } }
@media (max-width: 640px) { .wo2 { padding: var(--sp-3) var(--sp-4); } .wo2-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media print { .wo2 { border: 1px solid #999; } .wo2-gaps { display: none; } }
/* the next step's fields with their labels; End This Project as a small menu in the title row */
.next-step .ns-fld { display: inline-flex; flex-direction: column; gap: 4px; font-size: .8rem; color: var(--muted); font-weight: 500; }
.next-step form[data-schedule-form] { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.next-step form[data-schedule-form] .pq-hint, .next-step form[data-schedule-form] .sched-issues { flex-basis: 100%; }
.pl-acts .ns-end { position: relative; }
.pl-acts .ns-end > summary { list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); font-size: .9rem; }
.pl-acts .ns-end > summary::-webkit-details-marker { display: none; }
.pl-acts .ns-end[open] > summary { color: var(--text); }
.pl-acts .ns-end-body { position: absolute; right: 0; top: 100%; z-index: 40; width: min(340px, 90vw); display: grid; gap: 8px; padding: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 28px -12px rgba(10, 16, 24, .35); }
.pl-acts .ns-end-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }


/* Page styles that sat in <style> blocks inside the templates (screen review w-48, 2 Dec 2026), moved here as they
   were, one section per template. At the end of purpose.css, the last sheet base.html loads, where the blocks used to
   sit after every other sheet, so the cascade is unchanged. New page styles go in a sheet, not a <style> block. */

/* ---- _fdlook_start.html ---- */
.fdl-choose { border: 0; padding: 0; margin: 0 0 14px; }
  .fdl-choose legend { font-weight: 600; font-size: var(--fs-md); margin-bottom: 6px; }
  .fdl-opt { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border: 1px solid var(--line, #dfe2e7); border-radius: var(--radius-sm); margin-bottom: 6px; cursor: pointer; }
  .fdl-opt:has(input:checked) { border-color: var(--fdl-sel, #1f6fcf); box-shadow: inset 0 0 0 1px var(--fdl-sel, #1f6fcf); }
  .fdl-opt input { margin-top: 3px; }
  .fdl-opt b { display: block; font-weight: 600; }
  .fdl-opt small { color: var(--muted, #6b7280); }

/* ---- _week_ahead.html ---- */
.wa-days, .wa-owe {list-style:none; margin:0; padding:0}
  .wa-dot {display:inline-block; width:10px; height:10px; border-radius:50%; margin-right:6px; background:var(--mk-none)}
  .wa-dot.wa-bad {background:var(--mk-bad)}
  .wa-h {margin:16px 0 6px; font-size:var(--fs-base)}
  .wa-owe li {display:flex; justify-content:space-between; gap:10px; padding:8px 0; min-height:44px; align-items:center; border-bottom:1px solid var(--line, rgba(127,127,127,.18))}

/* ---- admin/_change_style.html ---- */
.chg { list-style: none; margin: 0; padding: 0; }
.chg > li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.chg > li:last-child { border-bottom: 0; }
.chg-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chg-undo { margin-left: auto; }
.chg-f { margin: 6px 0 0; font-size: var(--fs-sm); border-collapse: collapse; width: auto; max-width: 100%; }
.chg-f th { text-align: left; font-weight: 600; padding: 2px 12px 2px 0; color: var(--muted); white-space: nowrap; vertical-align: top; border: 0; background: none; }
.chg-f td { padding: 2px 6px 2px 0; border: 0; overflow-wrap: anywhere; vertical-align: top; }
.chg-old { color: var(--muted); text-decoration: line-through; }
.chg-arrow { color: var(--muted); }

/* ---- admin/_client360.html ---- */
.c360-figs { margin-bottom: 16px; }
.c360-reply-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.c360-reply-row select { width: auto; max-width: 260px; }
.c360-msgs { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.c360-msgs li { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; max-width: 760px; }
.c360-msgs li.them { background: var(--surface); }
.c360-msgs li.us { margin-left: auto; border-color: var(--accent); }
.c360-msg-head { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 4px; }
.c360-msg-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.c360-tl { list-style: none; margin: 0; padding: 0; }
.c360-tl li { display: grid; grid-template-columns: 110px auto 1fr; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--border); }
.c360-tl li:last-child { border-bottom: 0; }
.c360-when { color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 600px) { .c360-tl li { grid-template-columns: 1fr; gap: 2px; } }

/* ---- admin/_hazards_editor.html ---- */
.hz-cards { display: grid; gap: 12px; margin-bottom: 12px; }
.hz-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; background: var(--surface); }
.hz-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.hz-card .field { margin-bottom: 8px; }
.hz-score { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 4px 0 10px; }
.hz-score-label { font-weight: 600; font-size: var(--fs-sm); min-width: 110px; }
.hz-score label { display: flex; gap: 6px; align-items: center; font-size: var(--fs-sm); margin: 0; }
.hz-score select { width: auto; min-width: 130px; padding: 5px 8px; }
.hz-score .risk { padding: 4px 10px; border-radius: var(--radius-sm); font-size: var(--fs-sm); white-space: nowrap; }
.hz-score .risk small { font-size: var(--fs-xs); }
.hz-lib { margin: 10px 0; padding: 12px; }
.hz-strength { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: -2px 0 8px; font-size: var(--fs-sm); }
.hz-strength label { display: flex; gap: 6px; align-items: center; margin: 0; }
.hz-strength select { width: auto; min-width: 190px; min-height: 44px; }
.hz-weak { margin: 0 0 8px; }
.hz-lib-list { list-style: none; padding: 0; margin: 8px 0; max-height: 360px; overflow: auto; }
.hz-lib-list li { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--border); }
.hz-lib-list li:first-child { border-top: 0; }
@media (max-width: 600px) { .hz-score label { width: 100%; justify-content: space-between; } .hz-score select { min-width: 150px; } }

/* ---- admin/_legal_hold.html ---- */
.lh summary { cursor: pointer; }  .lh-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; } .lh-form input { flex: 1; min-width: 220px; }

/* ---- admin/_project_repeat.html ---- */
.rep-new{margin-top:18px;padding-top:14px;border-top:1px solid var(--border)}.rep-row{display:grid;grid-template-columns:1fr auto;gap:6px 12px;align-items:start;padding:10px 0;border-bottom:1px solid var(--border)}
.rep-acts{grid-column:1/-1;display:flex;gap:8px}.rep-made{grid-column:1/-1;margin:4px 0 0;padding-left:18px}

/* ---- admin/aftercare.html ---- */
.ac-list { margin: 0; padding: 0; list-style: none; }
.ac-list > li { padding: 12px 0; border-top: 1px solid var(--border); display: grid; gap: 6px; }
.ac-list > li:first-child { border-top: 0; }
.ac-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; justify-content: space-between; }
.ac-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ac-row form { margin: 0; }
.ac-dot { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); white-space: nowrap; }
.ac-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--mk-none); }
.ac-dot.st-warn::before { background: var(--mk-warn); }
.ac-dot.st-bad::before { background: var(--mk-bad); }
.ac-dot.st-ok::before { background: var(--mk-ok); }
.ac-draft { white-space: pre-wrap; font-size: var(--fs-md); background: var(--surface-2, var(--bg)); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; margin: 0; }
.ac-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.ac-form { display: grid; gap: 8px; }
.ac-form textarea { min-height: 160px; }

/* ---- admin/agent_packs.html ---- */
html .nb-btn, html.ui-modern .nb-btn {min-height:44px}
    .nb-groups {display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:12px}
    .nb-group {border:1px solid var(--line, rgba(127,127,127,.25)); border-radius:var(--radius-sm); padding:8px 12px; margin:0}
    .nb-group legend {font-weight:600; padding:0 4px}
    .nb-item {display:grid; grid-template-columns:auto 1fr; column-gap:8px; align-items:center; min-height:44px; padding:4px 0}
    .nb-item .small {grid-column:2}

/* ---- admin/automations.html ---- */
.au-rules { list-style: none; margin: 0; padding: 0; }
.au-rules li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--border); }
.au-rules li:last-child { border-bottom: 0; }
.au-rules li.au-off .au-text { opacity: .6; }
.au-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.au-acts { display: flex; gap: 6px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.au-days { display: flex; gap: 8px; align-items: center; }
.au-days input { width: 90px; }
@media (max-width: 600px) { .au-rules li { flex-direction: column; } }

/* ---- admin/client_import.html ---- */
.si-map{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:4px 14px;margin-top:10px}
.si-imp{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--border)}.si-imp:first-of-type{border-top:0}

/* ---- admin/cpd_team.html ---- */
.cpd-years{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.cpd-years a{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border:1px solid var(--border);border-radius:var(--radius-lg);text-decoration:none;color:inherit}
.cpd-years a.on{border-color:var(--link);color:var(--link);font-weight:600}
.cpd-bar{height:6px;border-radius:var(--radius-lg);background:var(--border);overflow:hidden;margin-top:4px;max-width:220px}
.cpd-bar span{display:block;height:100%;background:var(--accent)}
.cpd-bar span.met{background:var(--ok)}
.cpd-ok{color:var(--ok);font-weight:600}
.cpd-behind{color:var(--bad);font-weight:600}
.cpd-set{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}

/* ---- admin/dryrun.html ---- */
.dr-steps { margin: 0; padding: 0; list-style: none; }
.dr-steps > li { padding: 12px 0; border-top: 1px solid var(--border); display: grid; gap: 6px; }
.dr-steps > li:first-child { border-top: 0; }
.dr-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; justify-content: space-between; }
.dr-dot { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); white-space: nowrap; }
.dr-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--mk-none); }
.dr-dot.done::before { background: var(--mk-ok); }
.dr-steps form { display: grid; gap: 8px; margin: 0; }
.dr-steps textarea { min-height: 64px; }
.dr-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dr-steps .check-row { min-height: 44px; display: flex; align-items: center; gap: 8px; margin: 0; }

/* ---- admin/estate.html ---- */
.es-map { height: max(60dvh, 420px); border-radius: var(--radius); border: 1px solid var(--border); }
.es-mapwrap { position: relative; }
.es-chip { z-index: 1000; }
.es-chip[hidden] { display: none; }
.es-sum { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 10px; }
.es-dot { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); white-space: nowrap; }
.es-dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--mk-ok); }
.es-dot.st-check::before { background: var(--mk-warn); }
.es-dot.st-urgent::before { background: var(--mk-bad); }
.es-list { margin: 0; padding: 0; list-style: none; }
.es-list > li { padding: 10px 0; border-top: 1px solid var(--border); display: grid; gap: 6px; }
.es-list > li:first-child { border-top: 0; }
.es-head { display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: space-between; align-items: baseline; }
.es-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.es-row form { margin: 0; }
.es-mk { border-radius: 50%; border: 2px solid #fff; box-shadow: var(--shadow-1); }
.es-mk.st-ok { background: var(--mk-ok); } .es-mk.st-check { background: var(--mk-warn); } .es-mk.st-urgent { background: var(--mk-bad); }
.es-placing { outline: 2px solid var(--accent); outline-offset: 2px; }
.es-links input { width: 100%; }

/* ---- admin/follow_ups.html ---- */
.fu-timing{width:100%}.fu-timing input{min-height:44px;width:100%}.fu-timing .fu-months{width:80px}#fu-timing details>summary{list-style:none;display:inline-flex}#fu-timing details>summary::-webkit-details-marker{display:none}

/* ---- admin/insp_templates.html ---- */
.it-form textarea{width:100%;font-family:inherit}
.it-codes{font-variant-numeric:tabular-nums}
.it-sum{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px}

/* ---- admin/pricing.html ---- */
.price-row .pk-site{grid-column:1/-1;margin:2px 0 0;order:5}
.price-row .pk-site summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px;list-style:none}
.price-row .pk-site summary::-webkit-details-marker{display:none}
.pk-site-go{margin-left:auto;display:inline-flex;align-items:center;gap:6px;color:var(--link);font-weight:600}
.pk-site-go::after{content:"";width:7px;height:7px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg) translateY(-2px);transition:transform .15s}
.pk-site[open] .pk-site-go::after{transform:rotate(-135deg) translate(-2px,0)}
.pk-site[open] .pk-site-go .pk-o{display:none}.pk-site:not([open]) .pk-site-go .pk-c{display:none}
#add-item:not([open]){display:none}
.pk-site-body{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px 14px;padding:6px 0 4px}
.pk-site-body textarea{width:100%;min-height:84px;font-family:inherit}
.pk-vat-form .qrow{margin-bottom:10px}
.price-item{border-bottom:1px solid var(--border)}
.price-item:last-child{border-bottom:0}
.pi-read{display:grid;grid-template-columns:minmax(0,1fr) 190px 150px auto;gap:4px 16px;align-items:center;padding:12px 0;cursor:pointer;list-style:none}
.pi-read::-webkit-details-marker{display:none}
.pi-name{display:flex;flex-direction:column;gap:1px;min-width:0}
.pi-price{white-space:nowrap;text-align:right}
.price-item[open] .pi-edit{visibility:hidden}
.price-item .price-row{border-bottom:0;padding-top:0}
@media (max-width:700px){.pi-read{grid-template-columns:minmax(0,1fr) auto}.pi-price{grid-column:2;grid-row:1}.pi-site{grid-column:1}.pi-edit{grid-column:2;grid-row:2;justify-self:end}}

/* ---- admin/projarchive.html ---- */
/* search box and button stay on one row on a phone (browser check, 29 Nov) */
      html body form.pa-search { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; }
      html body form.pa-search input { flex: 1 1 auto; min-width: 0; width: auto; }
      html body form.pa-search .btn { flex: none; white-space: nowrap; }
      html body #pa-list .pa-when { flex: none; text-align: right; white-space: nowrap; }

/* ---- admin/records.html ---- */
.rec-filter { display: grid; grid-template-columns: 2fr 1.3fr 1.3fr 1fr 1fr auto; gap: 10px; align-items: end; }
.rec-filter .field { margin: 0; }
.rec-go { display: flex; gap: 6px; }
@media (max-width: 900px) { .rec-filter { grid-template-columns: 1fr 1fr; } }

/* ---- admin/shop.html ---- */
.sh-pc {display:flex; flex-wrap:wrap; gap:6px; margin-top:6px}

/* ---- admin/solar_leads.html ---- */
.sl-list { margin: 0; padding: 0; list-style: none; }
.sl-list > li { padding: 12px 0; border-top: 1px solid var(--border); display: grid; gap: 6px; }
.sl-list > li:first-child { border-top: 0; }
.sl-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sl-row form { margin: 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---- admin/suppliers.html ---- */
.ps-acts{display:flex;flex-wrap:wrap;gap:6px;min-width:0}

/* ---- agent_pack.html ---- */
html .ap-near-btn, html.ui-modern .ap-near-btn {min-height:44px} .ap-near {list-style:none; padding:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:12px} .ap-near ul {padding-left:1.1em; margin:4px 0 0}

/* ---- drones/ready.html ---- */
.rd-form { display: flex; flex-direction: column; gap: 12px; }
.rd-item { padding-bottom: 0; }   /* question rows (30 Nov): the form gap gives the space under each row */
.rd-item legend { display: flex; flex-direction: column; gap: 2px; }
.rd-item legend .small { font-weight: 400; }
.rd-note { display: none; grid-column: 1 / -1; }
.rd-item:has(input[value="fault"]:checked) .rd-note { display: block; }

/* ---- estate_house.html ---- */
.eh-list { margin: 0; padding: 0; list-style: none; }
.eh-list > li { padding: 12px 0; border-top: 1px solid var(--border); display: grid; gap: 6px; }
.eh-list > li:first-child { border-top: 0; }
.eh-list img { max-width: 100%; border-radius: var(--radius-sm); }
.eh-dot { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.eh-dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--mk-ok); }
.eh-dot.st-check::before { background: var(--mk-warn); }
.eh-dot.st-urgent::before { background: var(--mk-bad); }

/* ---- flying/hud_preview.html ---- */
.hp-wrap { aspect-ratio: 16 / 9; width: 100%; max-height: 78vh; border-radius: var(--radius); }

/* ---- help/guides.html ---- */
.guide-list { list-style: none; margin: 0; padding: 0; } .guide-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; border-top: 1px solid var(--border); } .guide-list li:first-child { border-top: 0; }

/* ---- insights/survey_public.html ---- */
.sv-scale{display:flex;flex-wrap:wrap;gap:6px}.sv-scale label{display:flex;flex-direction:column;align-items:center;min-width:34px;font-size:var(--fs-sm)}

/* ---- inspect/start.html ---- */
.insp-list { list-style: none; margin: 0; padding: 0; }
  .insp-list li { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line, rgba(127,127,127,.25)); }
  .insp-list li:last-child { border-bottom: 0; }
  .insp-list .insp-t { font-weight: 600; }
  .insp-list .insp-l { flex: 1; text-align: right; }
  @media (max-width: 560px) { .insp-list li { flex-direction: column; gap: 2px; } .insp-list .insp-l { text-align: left; } }

/* ---- me_workspace.html ---- */
.ws-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ws-card { margin: 0; display: flex; flex-direction: column; }
.ws-card.on { border-color: var(--accent); }
.ws-card p { margin: 0 0 8px; }
.ws-diff { margin: 0 0 12px; font-size: var(--fs-md); flex: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; }
.ws-diff dt { color: var(--muted); } .ws-diff dd { margin: 0; }
.ws-same { margin: 0 0 14px; color: var(--muted); }
.ws-card .btn { align-self: flex-start; }
@media (max-width: 700px) { .ws-grid { grid-template-columns: 1fr; } }

/* ---- ops/_site_boundary.html ---- */
.sb-wrap{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-bottom:10px}.sb-shape{width:180px;height:120px;background:var(--surface-2,rgba(127,127,127,.08));border:1px solid var(--border);border-radius:var(--radius-sm)}
.sb-shape polygon{fill:color-mix(in srgb,var(--accent) 22%,transparent);stroke:var(--accent);stroke-width:2;vector-effect:non-scaling-stroke}
.sb-form{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}

/* ---- ops/_today_cards.html ---- */
.tc-strip { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 6px 0 14px; }
.tc-card { flex: 1 1 150px; max-width: 260px; display: grid; gap: 2px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface, var(--bg)); color: inherit; text-decoration: none; }
.tc-card:hover, .tc-card:focus-visible { border-color: var(--accent); }
.tc-l { font-size: var(--fs-sm); color: var(--text-muted, inherit); }
.tc-n { font-size: var(--fs-xl); line-height: 1.1; font-variant-numeric: tabular-nums; }
.tc-s { font-size: var(--fs-sm); color: var(--text-muted, inherit); }
.tc-pick { align-self: center; }
/* the fold that picks the cards: a small outline button, so it reads as something to tap (v-76) */
.tc-pick summary { cursor: pointer; min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; list-style: none;
  border: 1px solid var(--border); border-radius: var(--radius-sm, 8px); background: var(--surface, var(--bg)); font-weight: 600; color: var(--text); }
.tc-pick summary::-webkit-details-marker { display: none; }
.tc-pick summary:hover, .tc-pick summary:focus-visible { border-color: var(--accent); }
.tc-pick[open] summary { border-color: var(--accent); }
@media (pointer: coarse) { .tc-pick summary { min-height: 44px; } }
.tc-form { display: grid; gap: 6px; padding: 8px 0; }
.tc-opt { display: flex; gap: 8px; align-items: center; min-height: 36px; }

/* ---- ops/_today_filter.html ---- */
.tf-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); margin: 0 0 14px; max-width: 100%; }
.tf-switch a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: var(--radius-sm); color: var(--muted); text-decoration: none; font-weight: 600; }
.tf-switch a.on { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--border); }

/* ---- ops/biz_card.html ---- */
.bc-show { text-align: center; }
.bc-qr { max-width: 280px; margin: 0 auto; background: #fff; padding: 14px; border-radius: var(--radius); }
.bc-qr svg { width: 100%; height: auto; display: block; }
.bc-link { overflow-wrap: anywhere; margin: 10px 0 4px; }
.bc-counts { max-width: 360px; margin: 10px auto 0; text-align: left; }
.bc-edit .field input { width: 100%; min-height: 44px; }
.bc-edit .check { display: flex; gap: 8px; align-items: center; min-height: 44px; }
.bc-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bc-new { margin-top: 14px; }

/* ---- ops/cardcheck.html ---- */
.pvc-box{margin:4px 0 10px}.pvc-form{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:flex-end;margin:6px 0}.pvc-form label{display:flex;flex-direction:column;gap:2px}.pvc-form input[name=offsite]{min-width:min(320px,80vw)}.pvc-verify{margin:6px 0}.pvc-form[data-pvhash]{display:grid;grid-template-columns:minmax(110px,160px) 1fr 1fr auto;align-items:end;gap:6px 14px;padding:8px 0;border-top:1px solid var(--border,#e3e6ea)}.pvc-form[data-pvhash] input[type=file]{max-width:100%;font-size:var(--fs-xs)}.pvc-form[data-pvhash] [data-pvh-out]{grid-column:1/-1}.pvc-form[data-pvhash] [data-pvh-out]:empty{display:none}@media (max-width:640px){.pvc-form[data-pvhash]{grid-template-columns:1fr}}.pvc-format{display:grid;gap:8px;margin:6px 0}.cc-steps{list-style:none;padding:0;margin:8px 0 12px;display:flex;flex-wrap:wrap;gap:6px 18px}.cc-steps li{display:flex;gap:6px;align-items:baseline}.cc-enc{display:flex;flex-wrap:wrap;gap:4px 14px;align-items:center;margin:8px 0 0}

/* ---- ops/clientday.html ---- */
.cd-status { margin: 8px 0 0; }
  .cd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 4px 16px; }
  .cd-grid > .field { min-width: 0; }
  .cd-grid .small { margin: 6px 0 0; line-height: 1.5; }

/* ---- ops/credentials.html ---- */
.cr-ai td{border-top:0}.cr-ai-box{display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap;padding:10px 12px;border:1px solid var(--border);border-radius:var(--radius-sm)}
.cr-ai-acts{display:flex;gap:8px}

/* ---- ops/flight_signoff.html ---- */
.so-act{margin-top:14px}

/* ---- ops/flights.html ---- */
.fhp {display:block; width:100%; max-width:240px; height:auto; margin-top:6px; overflow:visible}
  .fhp-base {stroke:color-mix(in srgb, var(--text) 18%, transparent); stroke-width:1}
  .fhp-limit {stroke:var(--bad); stroke-width:1; stroke-dasharray:3 3; opacity:.7}
  .fhp-area {fill:var(--accent); opacity:.14} .fhp-line {fill:none; stroke:var(--accent); stroke-width:1.6; stroke-linejoin:round}
  .fhp-bad {stroke:var(--bad); stroke-width:2}
  .fhp-peak {fill:var(--accent); stroke:var(--surface, var(--bg)); stroke-width:1.5} .fhp-over .fhp-peak {fill:var(--bad)}
  .fhp-t {fill:var(--text-2, var(--muted)); font-variant-numeric:tabular-nums; paint-order:stroke; stroke:var(--surface, var(--bg)); stroke-width:3px}
  .fhp-lt {fill:var(--bad)}

/* ---- ops/flights_verify.html ---- */
.fv-sum{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:0 0 12px}.fv-set{margin-top:12px}
.fv-row{padding:14px 0;border-top:1px solid var(--border)}.fv-row:first-of-type{border-top:0}
.fv-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.fv-done{padding:10px 0;border-top:1px solid var(--border)}
.fv-answers{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;align-items:flex-start}
.fv-not{flex:1 1 280px}.fv-not>summary{list-style:none;display:inline-flex;align-items:center;cursor:pointer}.fv-not>summary::-webkit-details-marker{display:none}
.fv-not[open]>summary{margin-bottom:10px}

/* ---- ops/job.html ---- */
.pm-strip { height: 340px; }
@media (max-width: 700px) { .pm-strip { height: 160px; } }
/* Plan, On Site, Records and My Hours as closed rows (four viewpoints lead-17) */
details.jp-fold { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; }
details.jp-fold > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 18px; font-size: var(--fs-base); color: var(--text, inherit); }
details.jp-fold > summary::-webkit-details-marker { display: none; }
details.jp-fold > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -4px; opacity: .6; transition: transform .15s; }
details.jp-fold[open] > summary { margin-bottom: 0; border-bottom: 1px solid var(--border); }
details.jp-fold[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
details.jp-fold > :not(summary) { margin: 12px; }
details.jp-fold .panel { box-shadow: none; }
@media (prefers-reduced-motion: reduce) { details.jp-fold > summary::after { transition: none; } }

/* ---- ops/planner_list.html ---- */
.pl-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; margin: 0 0 12px; }
.pl-filter .field { margin: 0; min-width: 0; flex: 0 1 240px; }
.pl-filter .pl-count { margin: 0 0 10px; }

/* ---- ops/site_import.html ---- */
.si-map{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:4px 14px}
.si-imp{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--border)}.si-imp:first-of-type{border-top:0}

/* ---- ops/toolbox_sheet.html ---- */
.tb-talk h3{margin:10px 0 4px}
.tb-talk ul{margin:0;padding-left:20px}
.tb-sig{max-width:160px;height:auto;background:#fff;border-radius:var(--radius-sm)}

/* ---- ops/wrap.html ---- */
.ca-job { padding: 14px 0; border-bottom: 1px solid var(--border); } .ca-job:last-child { border-bottom: 0; } .ca-job h3 { margin: 0; font-size: var(--fs-base); }
.ca-list { list-style: none; padding: 0; margin: 10px 0; } .ca-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; min-height: 44px; align-items: center; }

/* ---- ops/wrap_mileage.html ---- */
.wm-leg { border: 0; border-bottom: 1px solid var(--border); margin: 0 0 12px; padding: 0 0 8px; } .wm-leg legend { padding: 0; font-weight: 600; }

/* ---- portal/cancel_form.html ---- */
.cf-form .cf-h { margin-top: 18px; }
    .cf-label { display: block; font-size: var(--fs-xs, .78rem); font-weight: 600; color: var(--muted); }
    .cf-filled .cf-label { display: inline; margin-right: 6px; }
    .cf-field { margin: 14px 0 6px; }
    .cf-line { display: block; height: 30px; border-bottom: 1px solid var(--text-2, #555); }
    @media print { .cf-line { border-bottom-color: #555; } }

/* ---- proof/check.html ---- */
.pf-page { max-width: 860px; }
.pf-state { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); margin: 0 0 16px; }
.pf-state.ok { border-color: var(--ok, #2f9e44); }
.pf-state.bad { border-color: var(--danger, #e5484d); }
.pf-state b { display: block; }
.pf-hash { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--fs-xs); overflow-wrap: anywhere; color: var(--text-muted); }
.pf-drop { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px dashed var(--border); border-radius: var(--radius); }
.pf-drop input[type=file] { min-height: 44px; }
.pf-result { margin: 0; }
.pf-files td:last-child, .pf-flights td { overflow-wrap: anywhere; }

/* ---- pv/_retention_media.html ---- */
.pvc-keep{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:flex-end}.pvc-keep>label{display:flex;flex-direction:column;gap:3px;min-width:180px}.pvc-keep>label.check-row{flex-direction:row;align-items:center;flex-basis:100%}

/* ---- repairs/contractor.html ---- */
.rp-qrow{display:grid;grid-template-columns:1fr 110px;gap:6px 8px;align-items:center;padding:8px 0;border-top:1px solid var(--border)}.rp-qrow label{grid-column:1/-1;margin:0}.rp-qrow input[name^=note]{grid-column:1/-1}@media(min-width:700px){.rp-qrow{grid-template-columns:1fr 120px 1fr}.rp-qrow label{grid-column:auto}.rp-qrow input[name^=note]{grid-column:auto}}

/* ---- search/all.html ---- */
.sa-form { display: flex; gap: 8px; max-width: 640px; margin: 0 0 14px; }
.sa-form input { flex: 1; min-height: 44px; }
.sa-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sa-list a { font-weight: 600; }
.sa-snip { margin: 2px 0 0; color: var(--muted); font-size: var(--fs-md); max-width: 80ch; }

/* ---- video/showreel.html ---- */
.rl-list{list-style:none;margin:0;padding:0}
.rl-row{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}
.rl-row.is-out{opacity:.6}
.rl-n{min-width:2em;font-variant-numeric:tabular-nums}
.rl-main{flex:1 1 240px;min-width:0}
.rl-main b{overflow-wrap:anywhere}
.rl-trim{display:flex;gap:6px;align-items:center}
.rl-trim input{width:5.5em}
.rl-move{display:flex;gap:4px}

/* ---- video/video_data.html ---- */
.vd-sample{display:inline-grid;grid-template-columns:auto auto;gap:4px 16px;padding:12px 16px;border-radius:var(--radius);background:#0a101c;color:#fff;margin:8px 0}
.vd-sample span{color:#c8d2e1;font-size:var(--fs-sm)}.vd-sample b{font-family:"IBM Plex Mono", ui-monospace, Menlo, monospace}.vd-out{width:100%;max-width:960px;border-radius:var(--radius-sm);background:#000}
.vd-corner{margin-bottom:12px}

/* Style tidy (2 Dec 2026, before go-live): the rest of the page <style> blocks, each scoped to its page with :where(body.pg-...)
   so it adds no weight and reaches no other page; sizes and corners on the shared tokens where they match. */

/* ---- _cal_switch.html ---- */
@media (max-width: 700px) { :where(body:has(.cv-switch)) .cv-switch .cv-wide { display: none; } :where(body:has(.cv-switch)) .cev-new:not(:has(details[open])) { display: none; } }

/* ---- _company_field.html ---- */
.co-field{margin-top:4px}form:has(input[name=customer][value=home]:checked) .co-field,form:has(select[name=customer] option[value=home]:checked) .co-field{display:none}

/* ---- admin/_sales_funnel.html ---- */
:where(body.pg-pipeline) .sf .panel-head {flex-wrap:wrap; gap:8px} :where(body.pg-pipeline) .sf-seg {margin:0}
  :where(body.pg-pipeline) .sf-steps {list-style:none; margin:6px 0 0; padding:0; display:grid; gap:6px}
  :where(body.pg-pipeline) .sf-steps li {display:grid; grid-template-columns:7.5em 1fr minmax(7em, auto) 5.5em; gap:12px; align-items:center; min-height:36px}
  :where(body.pg-pipeline) .sf-label {font-weight:600; font-size:var(--fs-md)}
  :where(body.pg-pipeline) .sf-track {position:relative; height:22px; display:flex; justify-content:center}
  :where(body.pg-pipeline) .sf-track i {display:block; height:100%; border-radius:6px; background:var(--accent); opacity:.9}
  :where(body.pg-pipeline) .sf-enq .sf-track i {background:color-mix(in srgb, var(--text) 30%, transparent)}
  :where(body.pg-pipeline) .sf-paid .sf-track i {background:var(--ok)}
  :where(body.pg-pipeline) .sf-n {font-variant-numeric:tabular-nums; text-align:right; white-space:nowrap} :where(body.pg-pipeline) .sf-n b {font-size:var(--fs-panel)}
  :where(body.pg-pipeline) .sf-kept {font-size:.8rem; color:var(--muted); font-variant-numeric:tabular-nums; text-align:right}
  :where(body.pg-pipeline) .sf-note {margin:10px 0 0}
  @media (max-width: 600px) {
    :where(body.pg-pipeline) .sf-steps li {grid-template-columns:1fr auto; gap:4px 10px}
    :where(body.pg-pipeline) .sf-track {grid-column:1 / -1; grid-row:2; height:16px}
    :where(body.pg-pipeline) .sf-kept {grid-column:1 / -1; grid-row:3; text-align:left; margin-top:-2px}
    :where(body.pg-pipeline) .sf-kept:empty {display:none}
  }

/* ---- admin/books.html ---- */
:where(body.pg-books) .bk-month {display:flex; flex-wrap:wrap; gap:8px 12px; align-items:flex-end; margin:12px 0} :where(body.pg-books) .bk-month > p {flex-basis:100%} :where(body.pg-books) .bk-month label {display:flex; flex-direction:column; gap:4px; flex:none} :where(body.pg-books) .bk-month input[type=month] {width:12em; max-width:100%} :where(body.pg-books) .bk-month-btns {display:flex; flex-wrap:wrap; gap:8px} :where(body.pg-books) #bk-export > .panel-head {align-items:flex-start} @media (max-width:560px) {:where(body.pg-books) .bk-long {display:none}} :where(body.pg-books) .bk-sent {display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:0 0 12px}
:where(body.pg-books) .bk-split fieldset {border:0; padding:0; margin:8px 0} :where(body.pg-books) .bk-split-row {display:flex; flex-wrap:wrap; gap:4px 8px; align-items:center; margin:6px 0} :where(body.pg-books) .bk-split-row .check-row {flex:1 1 14em; min-width:0; overflow-wrap:anywhere} :where(body.pg-books) .bk-split .bk-split-row input[type=checkbox] {width:22px; flex:0 0 auto} :where(body.pg-books) .bk-split-amt {flex:0 0 7em; width:7em; min-height:44px}

/* ---- admin/channel_alerts.html ---- */
:where(body.pg-channel-alerts) .ch-head {display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
:where(body.pg-channel-alerts) .ch-head h2 {margin:0}
:where(body.pg-channel-alerts) .ch-set {border:0;padding:0;margin:8px 0 12px}
:where(body.pg-channel-alerts) .ch-set legend {font-weight:600;margin-bottom:6px;padding:0}
:where(body.pg-channel-alerts) .ch-check {display:flex;align-items:center;gap:8px;min-height:44px}
:where(body.pg-channel-alerts) .ch-actions {display:flex;flex-wrap:wrap;gap:8px}
:where(body.pg-channel-alerts) .ch-del {margin-left:auto}
:where(body.pg-channel-alerts) .ch-on {color:var(--ok);font-weight:600}
:where(body.pg-channel-alerts) .ch-off {color:var(--bad);font-weight:600}
:where(body.pg-channel-alerts) .ch-help {margin-top:14px}
:where(body.pg-channel-alerts) .ch-help summary {cursor:pointer;min-height:44px;display:flex;align-items:center}
@media (max-width:600px) {:where(body.pg-channel-alerts) .ch-del {margin-left:0}}

/* ---- admin/fx_rates.html ---- */
:where(body.pg-fx-rates) .fx-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 0 14px; align-items: end; }
:where(body.pg-fx-rates) .fx-row .field { margin-bottom: 0; }
:where(body.pg-fx-rates) .fx-ecb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; }
:where(body.pg-fx-rates) .fx-ecb p { margin: 0; }
@media (max-width: 600px) { :where(body.pg-fx-rates) .fx-row { grid-template-columns: 1fr 1fr; } :where(body.pg-fx-rates) .fx-go { grid-column: 1 / -1; } :where(body.pg-fx-rates) .fx-go .btn { width: 100%; } }

/* ---- admin/job_checklist.html ---- */
:where(body.pg-job-checklist) .ck-row {display:grid;grid-template-columns:minmax(0,1.4fr) auto minmax(0,1fr);gap:8px 14px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}
:where(body.pg-job-checklist) .ck-states {display:flex;gap:4px}
:where(body.pg-job-checklist) .ck-states label {display:inline-flex;align-items:center;gap:4px;min-height:44px;padding:0 10px;border:1px solid var(--line);border-radius:6px;cursor:pointer}
:where(body.pg-job-checklist) .ck-states input {margin:0}
:where(body.pg-job-checklist) .ck-states label:has(input:checked) {border-color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,transparent)}
:where(body.pg-job-checklist) .ck-more {display:flex;gap:6px;flex-wrap:wrap}
:where(body.pg-job-checklist) .ck-more input, :where(body.pg-job-checklist) .ck-more select {min-height:40px;flex:1 1 140px}
:where(body.pg-job-checklist) .ck-made {grid-column:1/-1}
@media (max-width:960px) {:where(body.pg-job-checklist) .ck-row {grid-template-columns:1fr auto}:where(body.pg-job-checklist) .ck-more {grid-column:1/-1}}
@media (max-width:600px) {:where(body.pg-job-checklist) .ck-row {grid-template-columns:1fr}}

/* ---- admin/parameters.html ---- */
:where(body.pg-parameters) .pm-row {display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:8px 20px;align-items:start;padding:14px 0;border-top:1px solid var(--line)}
:where(body.pg-parameters) .pm-row:first-of-type {border-top:0}
:where(body.pg-parameters) .pm-row h3 {margin:0;font-size:var(--fs-base)}
:where(body.pg-parameters) .pm-row p {margin:4px 0 0;max-width:62ch}
:where(body.pg-parameters) .pm-in {display:flex;align-items:center;gap:8px}
:where(body.pg-parameters) .pm-in input {width:96px;min-height:44px;font-variant-numeric:tabular-nums}
:where(body.pg-parameters) .pm-in span {font-size:var(--fs-sm);color:var(--muted)}
:where(body.pg-parameters) .pm-def {font-variant-numeric:tabular-nums}
:where(body.pg-parameters) .pm-acts {display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:16px}
@media (max-width:640px) {:where(body.pg-parameters) .pm-row {grid-template-columns:1fr}}

/* ---- admin/resources.html ---- */
:where(body.pg-resources) .res-grid td.away { background-image: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--muted) 22%, transparent) 6px 8px); }
:where(body.pg-resources) .res-away { display: block; font-size: .7rem; color: var(--muted); }
:where(body.pg-resources) /* screen review v-51: the Not Yet Dated chips show the whole title, :where(body.pg-resources) wrapping, :where(body.pg-resources) so two projects never read the same; the
   Missing list's chip is a small Move handle beside its link, :where(body.pg-resources) not a second copy of the title; no drag hint on touch */
.sc-tray-list .sc-chip { max-width: 100%; align-items: flex-start; } :where(body.pg-resources) .sc-tray-list .sc-chip .sc-name { white-space: normal; overflow: visible; }
:where(body.pg-resources) .sc-tray-list .sc-chip .sc-dot { margin-top: 5px; } :where(body.pg-resources) .sc-tray-list .sc-chip .sc-client { color: var(--muted); font-weight: 400; }
:where(body.pg-resources) .tm-row .sc-chip { display: inline-flex; vertical-align: middle; margin: 0 6px; }
@media (pointer: coarse) { :where(body.pg-resources) .sc-drag-hint { display: none; } }

/* ---- admin/solar.html ---- */
:where(body.pg-solar) .sol-figs {display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:0 0 14px}
:where(body.pg-solar) .sol-fig {border:1px solid var(--line);border-radius:var(--radius-lg);padding:10px 12px}
:where(body.pg-solar) .sol-fig b {display:block;font-size:1.35rem}
:where(body.pg-solar) .sol-c3 {background:color-mix(in srgb,#e5484d 14%,transparent)}
:where(body.pg-solar) .sol-c2 {background:color-mix(in srgb,#f5a524 14%,transparent)}
:where(body.pg-solar) .sol-c1 {background:color-mix(in srgb,#30a46c 12%,transparent)}
:where(body.pg-solar) .sol-table select, :where(body.pg-solar) .sol-table input {min-height:44px;max-width:100%}
:where(body.pg-solar) .sol-table input {width:8.5em}
:where(body.pg-solar) .sol-table select {width:100%;min-width:13em}
:where(body.pg-solar) .sol-table td:nth-child(5), :where(body.pg-solar) .sol-table td:nth-child(6) {white-space:nowrap}
:where(body.pg-solar) .sol-table td {vertical-align:middle}
:where(body.pg-solar) .sol-set {display:flex;flex-wrap:wrap;gap:10px 16px;align-items:flex-end}
:where(body.pg-solar) .sol-set input {width:8em}
@media (max-width:860px) {:where(body.pg-solar) .sol-table thead {display:none}
 :where(body.pg-solar) .sol-table, :where(body.pg-solar) .sol-table tbody {display:block}
 :where(body.pg-solar) .sol-table tr {display:grid;grid-template-columns:1fr 1fr;gap:8px 10px;padding:12px 0;border-bottom:1px solid var(--line)}
 :where(body.pg-solar) .table.sol-table td {border:0;padding:0}
 :where(body.pg-solar) .sol-table td:nth-child(2) {grid-column:1/-1;order:-1}
 :where(body.pg-solar) .sol-table td:nth-child(1), :where(body.pg-solar) .sol-table td:nth-child(3), :where(body.pg-solar) .sol-table td:nth-child(4) {grid-column:1/-1}
 :where(body.pg-solar) .sol-table td[data-l]::before {content:attr(data-l);display:block;font-size:.8rem;color:var(--muted)}
 :where(body.pg-solar) .sol-table input, :where(body.pg-solar) .sol-table select {width:100%;min-width:0}}

/* ---- admin/starter_templates.html ---- */
:where(body.pg-starter-templates) .tp-list {display:grid;gap:0}
:where(body.pg-starter-templates) .tp-row {display:grid;grid-template-columns:1fr auto;gap:8px 16px;align-items:center;padding:12px 0;border-top:1px solid var(--line)}
:where(body.pg-starter-templates) .tp-row:first-child {border-top:0}
:where(body.pg-starter-templates) .tp-row h3 {margin:0;font-size:var(--fs-base)}
:where(body.pg-starter-templates) .tp-row p {margin:2px 0 0}
:where(body.pg-starter-templates) .tp-count {font-variant-numeric:tabular-nums}
:where(body.pg-starter-templates) .tp-acts {display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
:where(body.pg-starter-templates) .tp-acts form {margin:0}
@media (max-width:640px) {:where(body.pg-starter-templates) .tp-row {grid-template-columns:1fr}:where(body.pg-starter-templates) .tp-acts {justify-content:flex-start}}

/* ---- admin/toolbox_talks.html ---- */
:where(body.pg-toolbox-talks) .tb-item summary {cursor:pointer;min-height:44px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
:where(body.pg-toolbox-talks) .tb-item[open] summary {margin-bottom:8px}
:where(body.pg-toolbox-talks) .tb-row {display:flex;flex-wrap:wrap;gap:8px}

/* ---- help/guide.html ---- */
:where(body.pg-guide) .guide-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--space-4, 16px); align-items: start; }
:where(body.pg-guide) .guide-toc { position: sticky; top: 72px; font-size: .9rem; max-height: calc(100vh - 90px); overflow: auto; }
:where(body.pg-guide) .guide-toc ol { margin: 8px 0 0; padding-left: 20px; } :where(body.pg-guide) .guide-toc li { margin: 4px 0; }
:where(body.pg-guide) .guide-body { max-width: 78ch; line-height: 1.55; overflow-wrap: anywhere; }
:where(body.pg-guide) .guide-body h2 { margin-top: 1.6em; scroll-margin-top: 72px; } :where(body.pg-guide) .guide-body h3, :where(body.pg-guide) .guide-body h4 { margin-top: 1.2em; scroll-margin-top: 72px; }
:where(body.pg-guide) .guide-body h2:first-child { margin-top: 0; }
:where(body.pg-guide) .guide-body .table-wrap { overflow-x: auto; margin: 10px 0 14px; } :where(body.pg-guide) .guide-body table { font-size: .88rem; }
:where(body.pg-guide) .guide-body blockquote.doc-note { margin: 12px 0; padding: 10px 14px; background: var(--surface-2, var(--soft, #f4f6fa)); border-radius: var(--radius-lg); }
:where(body.pg-guide) .guide-body pre { overflow-x: auto; padding: 10px 12px; background: var(--surface-2, #f4f6fa); border-radius: var(--radius-lg); }
:where(body.pg-guide) .guide-body hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
@media (max-width: 860px) { :where(body.pg-guide) .guide-grid { grid-template-columns: 1fr; } :where(body.pg-guide) .guide-toc { position: static; max-height: none; } }
@media print { :where(body.pg-guide) .guide-toc, :where(body.pg-guide) .page-head .btn-row { display: none; } :where(body.pg-guide) .guide-grid { display: block; } }

/* ---- houserecord.html ---- */
:where(body.pg-house-record) .hr-job { margin-top: 16px; }
:where(body.pg-house-record) .hr-list { margin: 0; padding: 0; list-style: none; }
:where(body.pg-house-record) .hr-list > li { padding: 10px 0; border-top: 1px solid var(--border); display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: start; }
:where(body.pg-house-record) .hr-list > li:first-child { border-top: 0; }
:where(body.pg-house-record) .hr-list img { grid-column: 1 / -1; max-width: 100%; width: 420px; border-radius: var(--radius-lg); }
:where(body.pg-house-record) .hr-dot { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); white-space: nowrap; }
:where(body.pg-house-record) .hr-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--mk-bad); }
:where(body.pg-house-record) .hr-dot.st-Planned::before { background: var(--mk-warn); }
:where(body.pg-house-record) .hr-dot.st-Done::before { background: var(--mk-ok); }

/* ---- my/quick_add.html ---- */
:where(body.pg-quick-add) .qa-gh { font-size: var(--fs-base); margin: 18px 0 4px; }
  :where(body.pg-quick-add) .qa-list { list-style: none; margin: 0 0 16px; padding: 0; }
  :where(body.pg-quick-add) .qa-row { display: flex; align-items: center; gap: 12px; min-height: 48px; border-bottom: 1px solid var(--line, rgba(127,127,127,.18)); cursor: pointer; }
  :where(body.pg-quick-add) .qa-row input { width: 22px; height: 22px; flex: none; margin: 0; }
  :where(body.pg-quick-add) .qp-list li { min-height: 48px; }

/* ---- ops/cpd.html ---- */
:where(body.pg-cpd) .cpd-years {display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
:where(body.pg-cpd) .cpd-years a {display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border:1px solid var(--border);border-radius:22px;text-decoration:none;color:inherit}
:where(body.pg-cpd) .cpd-years a.on {border-color:var(--link);color:var(--link);font-weight:600}
:where(body.pg-cpd) .cpd-big {display:flex;align-items:baseline;gap:8px}
:where(body.pg-cpd) .cpd-num {font-size:2rem;font-weight:700}
:where(body.pg-cpd) .cpd-bar {height:10px;border-radius:var(--radius-pill);background:var(--border);overflow:hidden;margin:8px 0}
:where(body.pg-cpd) .cpd-bar span {display:block;height:100%;background:var(--accent)}
:where(body.pg-cpd) .cpd-bar span.met {background:var(--ok)}
:where(body.pg-cpd) .cpd-grid {display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:12px}
:where(body.pg-cpd) .cpd-del {display:inline;margin:0}
:where(body.pg-cpd) .cpd-certs {margin:0;padding-left:20px}
:where(body.pg-cpd) .cpd-certs li {margin:6px 0}
@media (max-width:700px) {:where(body.pg-cpd) .cpd-grid {grid-template-columns:1fr 1fr}:where(body.pg-cpd) .cpd-grid .field:first-child {grid-column:1/-1}}

/* ---- ops/inspection_pack.html ---- */
:where(body.pg-inspection-pack) .pack-check { margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-lg); border: 1px solid var(--border); overflow-wrap: anywhere; }

/* ---- ops/my_day.html ---- */
:where(body.pg-my-day) .md-job { padding: 18px; }
:where(body.pg-my-day) .md-top { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 12px; }
:where(body.pg-my-day) .md-time { flex: none; display: flex; flex-direction: column; align-items: center; min-width: 70px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; }
:where(body.pg-my-day) .md-time b { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
:where(body.pg-my-day) .md-what h2 { margin: 2px 0 4px; font-size: var(--fs-lg); }
:where(body.pg-my-day) .md-what p { margin: 0; }
:where(body.pg-my-day) .md-facts { margin: 0; }
:where(body.pg-my-day) .md-evening { margin-top: 8px; }
:where(body.pg-my-day) .md-ev-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
:where(body.pg-my-day) .md-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
@media (max-width: 600px) { :where(body.pg-my-day) .md-acts .btn { flex: 1 1 auto; } }

/* ---- portal/project.html ---- */
:where(body.pg-portal-project) .cp-more > summary { cursor: pointer; list-style: none; } :where(body.pg-portal-project) .cp-more > summary::-webkit-details-marker { display: none; }
    :where(body.pg-portal-project) .cp-more > summary h2 { display: inline; margin: 0; } :where(body.pg-portal-project) .cp-more > summary::after { content: "Show"; float: right; font-size: var(--fs-sm); color: var(--muted); }
    :where(body.pg-portal-project) .cp-more[open] > summary::after { content: "Hide"; } :where(body.pg-portal-project) .cp-more[open] > summary { margin-bottom: 12px; } :where(body.pg-portal-project) .cp-more .cp-grid { margin-top: 12px; }

/* ---- roof_calculator.html ---- */
:where(body.pg-roof-calc) .rc-page h1 { margin-bottom: 4px; }
:where(body.pg-roof-calc) .rc-set { border: 0; padding: 0; margin: 0 0 12px; }
:where(body.pg-roof-calc) .rc-set legend { font-weight: 600; margin-bottom: 6px; }
:where(body.pg-roof-calc) .rc-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 14px; }
:where(body.pg-roof-calc) .rc-form input, :where(body.pg-roof-calc) .rc-form select { min-height: 44px; width: 100%; }
:where(body.pg-roof-calc) .rc-form .btn { margin-top: 6px; }
:where(body.pg-roof-calc) .rc-table { margin-top: 18px; max-width: 520px; }
:where(body.pg-roof-calc) .rc-table th { font-weight: 500; text-align: left; }
:where(body.pg-roof-calc) .rc-table td { text-align: right; font-variant-numeric: tabular-nums; }
:where(body.pg-roof-calc) .rc-cta { margin-top: 20px; }

/* ---- toolbox_public.html ---- */
:where(body.pg-sign-on) .tb-public h1 {margin-top:8px}
:where(body.pg-sign-on) .tb-talk h2 {margin:0 0 6px}
:where(body.pg-sign-on) .tb-talk ul {margin:0;padding-left:20px}
:where(body.pg-sign-on) .tb-talk li {margin:4px 0}
:where(body.pg-sign-on) .tb-public .check-row {display:flex;gap:10px;align-items:flex-start;min-height:44px;margin:8px 0}
:where(body.pg-sign-on) .tb-public .check-row input {margin-top:4px}

/* ---- flight_log_viewer.html ---- */
:where(body.pg-log-viewer) .lv-page h1 { margin-bottom: 4px; }
:where(body.pg-log-viewer) .lv-form { display: grid; gap: 10px; max-width: 520px; margin: 14px 0 18px; }
:where(body.pg-log-viewer) .lv-form input[type=file] { min-height: 44px; }
:where(body.pg-log-viewer) .lv-track svg { width: 100%; height: auto; display: block; margin: 8px 0 14px; }
:where(body.pg-log-viewer) .lv-table { max-width: 520px; }
:where(body.pg-log-viewer) .lv-table th { font-weight: 500; text-align: left; }
:where(body.pg-log-viewer) .lv-table td { text-align: right; font-variant-numeric: tabular-nums; }
:where(body.pg-log-viewer) .lv-cta { margin-top: 20px; }

/* ---- kept_form.html ---- */
:where(body.pg-kept-form) .kept-list {display:grid;grid-template-columns:minmax(110px,max-content) 1fr;gap:.4rem 1rem;margin:1rem 0}
:where(body.pg-kept-form) .kept-list dt {color:var(--muted);font-size:.9rem}
:where(body.pg-kept-form) .kept-list dd {margin:0}
@media (max-width:560px) {:where(body.pg-kept-form) .kept-list {grid-template-columns:1fr}:where(body.pg-kept-form) .kept-list dd {margin-bottom:.5rem}}
