/* mc.css */
/* Mission control: the site's design (direction "A" from the October 2026 redesign). Loaded after modern.css on the modern
   look and scoped to html.ui-modern. Dense, calm, data-first: flat panels with hairline borders, one bright accent for the
   one thing to do, numbers in a monospace face, colour kept for status. Ops dark (night) is the reference; Day and
   Sunlight use the same system. Tokens first, then the shell (sidebar, top bar), then components, then page patterns. */

/* ---- tokens ------------------------------------------------------------------------------------------------------- */
html.ui-modern {
  --radius: 10px; --radius-sm: 8px; --radius-lg: 12px;
  --shadow: none; --shadow-float: 0 16px 40px rgba(10, 16, 24, .28);
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --top-h: 56px;
  --live: #dc2626; --live-soft: color-mix(in srgb, #dc2626 12%, transparent);
  --on-accent: #fff;
  /* day: the same system on white */
  --bg: #f4f6f9; --surface: #ffffff; --surface-2: #f6f8fb; --surface-3: #eef2f6; --border: #e2e7ee; --border-strong: #cfd7e1;
  --text: #0e1621; --text-2: #3a4757; --muted: #627083;
  --accent: #0f8a74; --accent-dark: #0b6b5a; --accent-soft: #e3f4ef; --link: #0b7c68; --link-hover: #075c4d;
  --ring: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent);   /* a solid ring that shows in day mode (a11y-3, 24 Nov 2026) */
}
html.ui-modern[data-theme="night"] {
  --bg: #1c1c1e; --surface: #242426; --surface-2: #2c2c2e; --surface-3: #3a3a3c; --border: #38383a; --border-strong: #48484a;
  --text: #e6edf3; --text-2: #c5d0db; --muted: #8b98a7;
  --accent: #2dd4a7; --accent-dark: #5eead4; --accent-soft: color-mix(in srgb, #2dd4a7 13%, transparent); --link: #5eead4; --link-hover: #99f6e4;
  --on-accent: #04221a; --live: #ef4444; --live-soft: color-mix(in srgb, #ef4444 14%, transparent);
  --ok: #34d399; --warn: #f59e0b; --bad: #ef4444; --ok-text: #6ee7b7; --warn-text: #fcd34d; --bad-text: #fca5a5;
  --ring: 0 0 0 2px var(--surface), 0 0 0 4px #2dd4a7;   /* solid (dd57 a11y-3) */
}

/* ---- type ----------------------------------------------------------------------------------------------------------- */
html.ui-modern body { font-size: 14.5px; line-height: 1.5; font-feature-settings: "cv11", "ss01"; }
html.ui-modern h1 { font-size: clamp(1.3rem, 1rem + 1vw, 1.6rem); font-weight: 700; letter-spacing: -0.015em; }
html.ui-modern h2 { font-size: var(--fs-base, 1rem); font-weight: 650; letter-spacing: -0.005em; }
html.ui-modern h3 { font-size: var(--fs-md, .92rem); font-weight: 650; }
html.ui-modern .page-head h1 { font-size: clamp(1.3rem, 1rem + 1vw, 1.6rem); }
html.ui-modern .page-head p.muted { font-size: var(--fs-sm, .85rem); }

html.ui-modern a { text-underline-offset: 2px; }

/* ---- the sidebar (computers) ----------------------------------------------------------------------------------------- */
@media (min-width: 1100px) {
  html.ui-modern .mrail { padding: 10px 10px 12px; gap: 1px; background: var(--surface); }
  html.ui-modern[data-theme="night"] .mrail { background: #242426; }
  html.ui-modern .mrail .mr-brand { display: none; }
  html.ui-modern .mr-org { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--border);
    color: var(--text); text-decoration: none; min-height: 50px; }
  html.ui-modern .mr-org img { width: 32px; height: 32px; object-fit: contain; border-radius: var(--radius-sm, 8px); background: #000; flex: none; }
  html.ui-modern .mr-org-mark { width: 32px; height: 32px; border-radius: var(--radius-sm, 8px); flex: none; display: grid; place-items: center; font-weight: 800; font-size: var(--fs-xs, .78rem);
    background: linear-gradient(135deg, var(--accent), #0e7490); color: var(--on-accent); }
  html.ui-modern .mr-org-name { font-weight: 650; font-size: var(--fs-sm, .85rem); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  html.ui-modern:not(.rail-wide) .mr-org { justify-content: center; padding: 4px 0 12px; }
  html.ui-modern:not(.rail-wide) .mr-org-name { display: none; }
  /* the organisation's block lines up with the top bar: the same 56px height, its line on the top bar's line, edge to edge */
  html.ui-modern .mr-org { box-sizing: border-box; flex: none; height: 56px; min-height: 0; margin: -12px -10px 8px; padding: 0 18px; }
  html.ui-modern:not(.rail-wide) .mr-org { padding: 0; }
  html.ui-modern.js-rail .topbar-inner > .top-tools { border-left: 0; padding-left: 0; }     /* no stray divider beside the search */
  /* items */
  html.ui-modern.rail-wide .mrail .mr-item { padding: 7px 10px; border-radius: var(--radius-sm, 8px); font-size: var(--fs-sm, .85rem); font-weight: 550; gap: 10px; color: var(--text-2); position: relative; }
  html.ui-modern.rail-wide .mrail .mr-item svg { width: 18px; height: 18px; opacity: .85; }
  html.ui-modern.rail-wide .mrail .mr-item:hover { background: var(--surface-2); color: var(--text); }
  html.ui-modern.rail-wide .mrail .mr-item.on { background: var(--accent-soft); color: var(--accent-dark); }
  html.ui-modern.rail-wide .mrail .mr-item.on svg { opacity: 1; }
  html.ui-modern .mr-caret { display: none; }
  html.ui-modern.rail-wide .mr-caret { display: block; margin-left: auto; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
    transform: rotate(-45deg); opacity: .5; transition: transform .15s; flex: none; }
  html.ui-modern.rail-wide .mr-item.is-open .mr-caret { transform: rotate(45deg); }
  /* a group's pages, in place */
  html.ui-modern .mr-sub { display: none; }
  html.ui-modern.rail-wide .mr-sub:not([hidden]) { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 8px 19px; padding-left: 10px; border-left: 1px solid var(--border); }
  html.ui-modern .mr-sub-h { font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px 8px 3px; }
  html.ui-modern .mr-sub .mr-row { display: flex; align-items: center; }
  html.ui-modern .mr-sub .mr-link { flex: 1; min-width: 0; padding: 5px 8px; border-radius: var(--radius-sm, 8px); font-size: var(--fs-sm, .85rem); color: var(--muted); text-decoration: none;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.ui-modern .mr-sub .mr-link:hover { background: var(--surface-2); color: var(--text); }
  html.ui-modern .mr-sub .mr-link.on { color: var(--accent-dark); background: var(--accent-soft); font-weight: 600; }
  html.ui-modern .mr-sub .mr-link[data-dc]::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--dc); margin-right: 8px; vertical-align: 1px; }
  html.ui-modern .mr-sub .mr-star { width: 24px; height: 24px; opacity: 0; font-size: var(--fs-xs, .78rem); }
  html.ui-modern .mr-sub .mr-row:hover .mr-star, html.ui-modern .mr-sub .mr-star.on, html.ui-modern .mr-sub .mr-star:focus-visible { opacity: 1; }
  html.ui-modern.rail-wide .mr-pin-label { font-size: .64rem; padding: 12px 10px 4px; }
  html.ui-modern.rail-wide .mr-pins .mr-item { font-size: var(--fs-sm, .85rem); padding: 6px 10px; }
  html.ui-modern .mr-sos { color: var(--bad) !important; }
}

/* ---- the top bar ------------------------------------------------------------------------------------------------------ */
html.ui-modern .topbar { height: var(--top-h); border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
html.ui-modern[data-theme="night"] .topbar { background: color-mix(in srgb, #0a0f14 88%, transparent); }
@media (min-width: 1100px) {
  html.ui-modern body.has-rail .topbar .brand, html.ui-modern body.has-rail .topbar .org-badge { display: none; }
  /* the search button reads like a search box */
  html.ui-modern body.has-rail .top-icons .search-btn[data-open-search] { width: min(380px, 32vw); justify-content: flex-start; gap: 8px; padding: 0 12px; border-radius: var(--radius-sm, 8px);
    color: var(--muted); background: var(--surface); border: 1px solid var(--border); order: -1; margin-right: auto; }
  html.ui-modern body.has-rail .top-icons .search-btn[data-open-search]::after { content: attr(data-hint); font-size: var(--fs-sm, .85rem); }
  html.ui-modern body.has-rail .top-tools { flex: 1; }
  html.ui-modern body.has-rail .top-icons { width: 100%; display: flex; align-items: center; gap: 8px; }
}
html.ui-modern .theme-toggle, html.ui-modern .bell-btn { border-radius: 8px; border-color: var(--border); background: var(--surface); }

/* ---- panels ----------------------------------------------------------------------------------------------------------- */
html.ui-modern .panel { border-radius: var(--radius); box-shadow: none; padding: 16px 18px; border-color: var(--border); }
html.ui-modern .panel-head { margin-bottom: 12px; }
html.ui-modern .panel > h2:first-child, html.ui-modern .panel-head h2, html.ui-modern details.panel > summary h2 { font-size: var(--fs-panel, 1.05rem); font-weight: var(--fw-panel, 600); }   /* one type scale: style.css --fs-* (consistency-7) */
html.ui-modern .panel .panel { background: var(--surface-2); }
html.ui-modern details.panel > summary { cursor: pointer; }

/* ---- buttons: 34px, one bright primary, the rest quiet --------------------------------------------------------------- */
html.ui-modern .btn { min-height: 34px; padding: 0 14px; border-radius: var(--radius-sm); font-size: var(--fs-sm, .85rem); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; box-shadow: none; }
html.ui-modern .btn-sm { min-height: 30px; padding: 0 11px; font-size: var(--fs-xs, .78rem); }
html.ui-modern .btn-xs { min-height: 30px; padding: 0 11px; font-size: var(--fs-xs, .78rem); }   /* btn-xs is retired: it draws as btn-sm (design picks consistency-2, 30 Nov 2026) */
html.ui-modern .btn-lg { min-height: 42px; padding: 0 20px; font-size: var(--fs-md, .92rem); }
html.ui-modern .btn-accent { background: var(--accent); border: 1px solid var(--accent); color: var(--on-accent); box-shadow: none; }
html.ui-modern .btn-accent:hover, html.ui-modern[data-theme="night"] .btn-accent:hover { background: color-mix(in srgb, var(--accent) 86%, #fff); color: var(--on-accent); }
html.ui-modern .btn-outline { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
html.ui-modern .btn-outline:where(:not(.on, .active, [aria-pressed="true"], [aria-checked="true"])):hover { background: var(--surface-3); border-color: var(--border-strong); }
html.ui-modern .btn-danger { background: transparent; border: 1px solid color-mix(in srgb, var(--bad) 55%, var(--border)); color: var(--bad-text); }
html.ui-modern .btn-danger:hover { background: var(--live-soft); }

/* ---- forms ------------------------------------------------------------------------------------------------------------ */
html.ui-modern :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), select, textarea) {
  border-radius: var(--radius-sm); background: var(--surface-2); border-color: var(--border); min-height: 36px; font-size: var(--fs-md, .92rem); }
html.ui-modern :is(input, select, textarea):hover { border-color: var(--border-strong); }
html.ui-modern .field label, html.ui-modern legend { font-weight: 600; font-size: var(--fs-xs, .78rem); color: var(--text-2); }

/* ---- tables: dense, hairlines, the header in small capitals ---------------------------------------------------------- */
html.ui-modern table { border-collapse: collapse; }
html.ui-modern table th { font-size: .66rem; letter-spacing: .08em; padding: 9px 12px; border-bottom: 1px solid var(--border); background: transparent; white-space: nowrap; }
html.ui-modern table td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
html.ui-modern table tbody tr:last-child > :is(td, th) { border-bottom: 0; }
html.ui-modern table:not(.print-frame) > tbody > tr:hover > * { background: color-mix(in srgb, var(--accent) 5%, transparent); }

/* ---- badges: small, square-ish, status colours only ------------------------------------------------------------------- */
html.ui-modern .badge { border-radius: var(--radius-sm, 8px); padding: 2px 8px; font-size: .7rem; font-weight: 650; background: var(--surface-3); border-color: transparent; color: var(--text-2); }
html.ui-modern .badge-ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok-text); border-color: transparent; }
html.ui-modern .badge-warn { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn-text); border-color: transparent; }
html.ui-modern .badge-bad { background: var(--live-soft); color: var(--bad-text); border-color: transparent; }

/* ---- tiles and numbers -------------------------------------------------------------------------------------------------- */
html.ui-modern .inc-tile { border-radius: var(--radius); background: var(--surface); padding: 11px 14px; }
html.ui-modern .inc-tile .it-label { font-size: .64rem; letter-spacing: .08em; }
html.ui-modern .inc-tile .it-value { font-size: var(--fs-xl, 1.32rem); font-weight: 700; }

/* ---- tabs (inside pages) ------------------------------------------------------------------------------------------- */
 html.ui-modern .seg { border-radius: var(--radius-sm); background: var(--surface-2); }

/* ---- the phase steps ------------------------------------------------------------------------------------------------ */
html.ui-modern .phase-steps li { border-radius: var(--radius-sm, 8px); font-size: var(--fs-xs, .78rem); }
html.ui-modern .phase-steps li.now { color: var(--on-accent); }
html.ui-modern .phase-steps li.now::before { background: var(--on-accent); }

/* ---- page banners -------------------------------------------------------------------------------------------------- */
html.ui-modern :is(.kill-strip, .demo-strip, .view-strip) { border-radius: var(--radius-sm); font-size: var(--fs-sm, .85rem); border: 1px solid var(--border); }
html.ui-modern[data-theme="night"] .kill-strip { background: color-mix(in srgb, var(--warn) 10%, var(--surface)); color: var(--warn-text); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
html.ui-modern[data-theme="night"] .kill-strip a { color: inherit; }

/* ---- the floating live callout --------------------------------------------------------------------------------------- */
html.ui-modern .tasking-strip { border-radius: var(--radius-sm, 8px); }
html.ui-modern .tasking-strip.is-live { background: #7f1d1d; border: 1px solid #b91c1c; }

/* ---- KPI strip (status board and lists) ----------------------------------------------------------------------------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 16px; }
.kpi { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; color: var(--text); }
a.kpi:hover { border-color: var(--border-strong); }
.kpi small { display: block; font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

  

/* ---- the callouts table (status board) ------------------------------------------------------------------------------ */

/* a tablet (and a narrow window): the name gets the room - phase and time beside it, the teams and buttons on a line below */

/* ---- the board: main column and a side column of small cards --------------------------------------------------------- */

/* ---- the status board's own columns: the main work wide, the side cards narrow ------------------------------------------- */

@media (min-width: 1100px) {
  html.ui-modern body.has-rail .top-icons .search-btn[data-open-search] { display: inline-flex; flex-direction: row; align-items: center; height: 36px; }
  html.ui-modern body.has-rail .top-icons .search-btn[data-open-search] svg { flex: none; }
}

/* ---- the callout page's header: reference, title, the facts, one status bar, then the tools ------------------------------ */
html.ui-modern .inc-head { display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin-bottom: 16px; }

html.ui-modern .inc-head h1 { margin: 0; }

/* the status bar: phase, mission clock and last light in one strip */

/* the tools: one row, compact; Log is the main one */

@media (min-width: 1100px) { html.ui-modern.rail-wide.nav-in-side:not(.lk-rail-off) body.has-rail .section-tabs-wrap { display: none; } }   /* the sidebar lists the group's pages already (not while it's hidden) */

html.ui-modern .inc-head .inc-title { flex: 0 1 auto; min-width: 0; max-width: 100%; }   /* may shrink: its buttons wrap rather than run off an iPad */

/* an organisation's own accent colour: white on it */
html.ui-modern.has-accent { --on-accent: #fff; }
/* before the sidebar is built (a moment on each page): no old menu bar flashing in the header, no jump */
@media (min-width: 1100px) {
  html.ui-modern.js-rail:not(.rail-top):not(.rail-bottom) .topbar .mainnav, html.ui-modern.js-rail:not(.rail-top):not(.rail-bottom) .topbar .burger { visibility: hidden; }
  html.ui-modern.js-rail:not(.rail-top):not(.rail-bottom):not(.rail-right) body { padding-left: var(--rail-w, 240px); }
  html.ui-modern.js-rail.rail-right body { padding-right: var(--rail-w, 240px); }
}
/* phones: tile values wrap instead of being cut off; a row of filters goes two across */
@media (max-width: 560px) {
  html.ui-modern .inc-tile .it-value { font-size: var(--fs-base, 1rem); white-space: normal; overflow: visible; overflow-wrap: anywhere; line-height: 1.2; }
  html.ui-modern .filter-row { display: grid !important; grid-template-columns: 1fr 1fr; width: 100%; }
  html.ui-modern .filter-row select { width: 100%; min-width: 0; }
}

/* ---- the floating live-incident pill: in any corner, or minimised to a badge (modern.js pillDock) ------------------------ */
html.ui-modern .ts-dock { position: fixed; z-index: 80; display: flex; align-items: center; gap: 0; max-width: min(560px, calc(100vw - 24px));
  border-radius: var(--radius-sm, 8px); box-shadow: var(--shadow-float); background: #7f1d1d; border: 1px solid #b91c1c; color: #fff; --pill-gap: 18px;
  --pill-left: var(--pill-gap); --pill-bottom: var(--pill-gap); --pill-top: calc(var(--top-h) + 12px); }
html.ui-modern .ts-dock.is-exercise { background: #78350f; border-color: #b45309; }
html.ui-modern .ts-dock.is-request { background: var(--surface); border-color: var(--border); color: var(--text); }
html.ui-modern .ts-dock .tasking-strip { position: static; inset: auto; box-shadow: none; border: 0; border-radius: 0; background: none; max-width: none; min-width: 0; flex: 1 1 auto; }
html.ui-modern .ts-dock.at-br { right: var(--pill-gap); bottom: var(--pill-bottom); }
html.ui-modern .ts-dock.at-bl { left: var(--pill-left); bottom: var(--pill-bottom); }
html.ui-modern .ts-dock.at-tr { right: var(--pill-gap); top: var(--pill-top); }
html.ui-modern .ts-dock.at-tl { left: var(--pill-left); top: var(--pill-top); }
@media (min-width: 1100px) { html.ui-modern:not(.rail-right):not(.rail-bottom) body.has-rail .ts-dock { --pill-left: calc(var(--rail-w) + 18px); } }
@media (max-width: 1099px) { html.ui-modern body.has-app-bar .ts-dock { --pill-gap: 12px; --pill-bottom: calc(72px + env(safe-area-inset-bottom)); } }
html.ui-modern .ts-dock.is-dragging { right: auto !important; bottom: auto !important; transition: none; opacity: .92; cursor: grabbing; }
html.ui-modern .ts-grip, html.ui-modern .ts-min, html.ui-modern .ts-badge { flex: none; border: 0; background: none; color: inherit; cursor: pointer; display: grid; place-items: center; }
html.ui-modern .ts-grip { width: 22px; align-self: stretch; cursor: grab; touch-action: none; opacity: .7; border-right: 1px solid rgba(255, 255, 255, .15); }
html.ui-modern .ts-min { width: 30px; align-self: stretch; opacity: .75; border-left: 1px solid rgba(255, 255, 255, .15); }
html.ui-modern .ts-dock.is-request :is(.ts-grip, .ts-min) { border-color: var(--border); }
html.ui-modern :is(.ts-grip, .ts-min):hover { opacity: 1; background: rgba(255, 255, 255, .08); }
html.ui-modern .ts-badge { display: none; gap: 6px; padding: 0 12px; height: 38px; font: 700 .95rem/1 var(--mono); touch-action: none; }
html.ui-modern .ts-badge-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: m-pulse 1.6s ease-in-out infinite; }
html.ui-modern .ts-dock.is-min { border-radius: var(--radius-pill, 999px); }
html.ui-modern .ts-dock.is-min > :not(.ts-badge) { display: none; }
html.ui-modern .ts-dock.is-min .ts-badge { display: inline-flex; align-items: center; }
html.ui-modern body:has(.ts-dock.is-min) main, html.ui-modern body:has(.ts-dock:is(.at-tr, .at-tl)) main { padding-bottom: 0; }

/* the menu as a bar along the bottom: icons with their names, each group's pages in a menu above it */
@media (min-width: 1100px) {
  html.ui-modern.rail-bottom .mr-org, html.ui-modern.rail-bottom .mr-sub, html.ui-modern.rail-bottom .mr-caret { display: none !important; }
  html.ui-modern.rail-bottom .mrail .mr-item span:not(.mr-av) { -webkit-line-clamp: 1; white-space: nowrap; }
}
@media (min-width: 1100px) { html.ui-modern.rail-bottom .ts-dock { --pill-bottom: 84px; } }

/* a section's headings as tabs, its pages under them - wrapping, never scrolling sideways */
html.ui-modern .sec-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin: 0 0 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); width: fit-content; max-width: 100%; }
html.ui-modern .sec-tabs a { padding: 6px 14px; border-radius: var(--radius-sm, 8px); font-size: var(--fs-sm, .85rem); font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
html.ui-modern .sec-tabs a:hover { color: var(--text); background: var(--surface-3); }
html.ui-modern .sec-tabs a.on { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--border); }
html.ui-modern .section-tabs-wrap .ops-tabs.ops-wrap { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; row-gap: 0; }
/* a page's own "on this page" list on a phone: wrapping chips, not a sideways scroll */
@media (max-width: 760px) { html.ui-modern .split-nav { position: static !important; } }   /* scrolls away, never over a map (map review 19); one sideways row, not a wall of pills (screen review v-30) */
@media (max-width: 900px) { html.ui-modern .page-index ol { flex-wrap: wrap; overflow: visible; } html.ui-modern .page-index li a { white-space: normal; } }

/* ---- the sidebar: headings that open and close, "you" at the bottom, a grip to move the whole menu ---------------------- */
@media (min-width: 1100px) {
  html.ui-modern .mr-sub-h { display: flex; align-items: center; width: 100%; border: 0; background: none; cursor: pointer; text-align: left; border-radius: var(--radius-sm, 8px); }
  html.ui-modern .mr-sub-h:hover { color: var(--text); background: var(--surface-2); }
  html.ui-modern .mr-sub-h .mr-caret { display: block; margin-left: auto; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg); opacity: .6; transition: transform .15s; }
  html.ui-modern .mr-sub-h.is-open .mr-caret { transform: rotate(45deg); }
  html.ui-modern .mr-sub-g { display: flex; flex-direction: column; gap: 1px; }
  html.ui-modern .mr-sub-g[hidden] { display: none; }
  html.ui-modern .mrail .mr-me { margin-top: 2px; }
  html.ui-modern .mr-av { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: .64rem; font-weight: 700;
    background: var(--accent-soft); color: var(--accent-dark); }
  html.ui-modern:not(.rail-wide) .mrail .mr-me .mr-av { width: 28px; height: 28px; }
  /* the grip: top-right of the sidebar (beside the organisation), the start of a bar along the bottom */
  html.ui-modern .mr-grip { position: absolute; top: 18px; right: 8px; z-index: 2; width: 26px; height: 22px; border: 0; border-radius: var(--radius-sm, 8px); background: none; color: var(--muted);
    display: grid; place-items: center; cursor: grab; touch-action: none; opacity: .55; }
  html.ui-modern .mr-grip:hover, html.ui-modern .mr-grip:focus-visible { opacity: 1; background: var(--surface-2); color: var(--text); }
  html.ui-modern:not(.rail-wide) .mr-grip { position: static; margin: 0 auto 4px; }
  html.ui-modern.rail-bottom .mr-grip { position: static; margin: 0 6px 0 0; }
  html.ui-modern.rail-wide .mr-org { padding-right: 34px; }
  html.ui-modern.rail-moving, html.ui-modern.rail-moving * { cursor: grabbing !important; user-select: none; }
  .mr-dropzone { position: fixed; z-index: 200; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 18%, transparent); border: 2px dashed var(--accent);
    color: var(--text); font-weight: 700; font-size: var(--fs-md, .92rem); pointer-events: none; border-radius: var(--radius-sm, 8px); }
  .mr-dropzone[data-side="left"] { top: 8px; bottom: 8px; left: 8px; width: 240px; }
  .mr-dropzone[data-side="right"] { top: 8px; bottom: 8px; right: 8px; width: 240px; }
  .mr-dropzone[data-side="top"] { top: 8px; left: 8px; right: 8px; height: 64px; }
  .mr-dropzone[data-side="bottom"] { bottom: 8px; left: 8px; right: 8px; height: 64px; }
}
html.ui-modern.rail-top .top-icons .mr-grip { position: static; order: -2; margin-right: 4px; }

/* the menu's collapse / expand button: beside the grip at the top (wide), at the top of the icon rail (narrow) */
@media (min-width: 1100px) {
  html.ui-modern .mr-collapse { position: absolute; top: 18px; right: 36px; z-index: 2; width: 26px; height: 22px; border: 0; border-radius: var(--radius-sm, 8px); background: none;
    color: var(--muted); display: grid; place-items: center; cursor: pointer; opacity: .7; }
  html.ui-modern .mr-collapse:hover, html.ui-modern .mr-collapse:focus-visible { opacity: 1; background: var(--surface-2); color: var(--text); }
  html.ui-modern.rail-wide .mr-org { padding-right: 64px; }
  html.ui-modern:not(.rail-wide) .mr-collapse { position: static; margin: 0 auto 2px; }
}
/* the narrow rail: icons only, each with its name as a tooltip (the item's title) */
@media (min-width: 1100px) {
  html.ui-modern:not(.rail-wide):not(.rail-bottom) .mrail .mr-item { padding: 10px 0; }
  html.ui-modern:not(.rail-wide):not(.rail-bottom) .mrail .mr-item > span:not(.mr-av) { display: none; }
  html.ui-modern:not(.rail-wide):not(.rail-bottom) .mrail .mr-item svg { width: 22px; height: 22px; }
  html.ui-modern:not(.rail-wide):not(.rail-bottom) .mr-pin-label { font-size: 0; padding: 6px 0 0; }
}

/* ---- "N live" in the top bar: the live callouts at a glance (blue; red when one has an alert) ---------------------------- */
html.ui-modern .live-switch { position: relative; }
html.ui-modern .ls-btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: var(--radius-sm, 8px); cursor: pointer; font: 600 .84rem/1 inherit;
  color: #dbeafe; background: color-mix(in srgb, #2563eb 22%, var(--surface)); border: 1px solid color-mix(in srgb, #3b82f6 55%, transparent); }
html.ui-modern:not([data-theme="night"]) .ls-btn { color: #1e3a8a; background: #dbeafe; border-color: #93c5fd; }
html.ui-modern .ls-btn b { font-family: var(--mono); }

html.ui-modern .live-switch.has-alert .ls-btn { color: #fff; background: #b91c1c; border-color: #ef4444; }

html.ui-modern .live-switch.is-none .ls-btn { opacity: .6; }
html.ui-modern .ls-menu { position: absolute; z-index: 90; top: calc(100% + 8px); right: 0; width: min(420px, 92vw); padding: 8px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius, 12px); box-shadow: var(--shadow-float); }
html.ui-modern .ls-menu[hidden] { display: none; }

html.ui-modern .ls-row { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; align-items: baseline; padding: 9px 10px; border-radius: var(--radius-sm, 8px); text-decoration: none; color: var(--text); }
html.ui-modern .ls-row:hover, html.ui-modern .ls-row:focus-visible { background: var(--surface-2); }
html.ui-modern .ls-ref { font-family: var(--mono); font-size: var(--fs-xs, .78rem); color: var(--muted); }
html.ui-modern .ls-title { font-weight: 600; font-size: var(--fs-sm, .85rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.ui-modern .ls-time { font-family: var(--mono); font-size: var(--fs-xs, .78rem); color: var(--text-2); }
html.ui-modern .ls-alert { grid-column: 1 / -1; font-size: var(--fs-xs, .78rem); color: var(--bad-text); }
html.ui-modern .ls-row.has-alert .ls-ref::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); margin-right: 6px; vertical-align: 1px; }

@media (max-width: 700px) { html.ui-modern .ls-btn { padding: 0 9px; } html.ui-modern .ls-btn { font-size: 0; } html.ui-modern .ls-btn b { font-size: var(--fs-sm, .85rem); } }

/* ---- Control | Field: a two-way switch (not a status pill); Field mode shown plainly in the header ------------------- */
html.ui-modern .mode-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--radius-sm, 8px); background: var(--surface-2); border: 1px solid var(--border); margin: 0; }
html.ui-modern .mode-seg button { border: 0; background: none; color: var(--muted); font: 600 .8rem/1 inherit; padding: 7px 12px; border-radius: var(--radius-sm, 8px); cursor: pointer; }
html.ui-modern .mode-seg button:hover { color: var(--text); }
html.ui-modern .mode-seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--border-strong); }

html.ui-modern .mode-switch-mobile { display: none !important; }        /* replaced by Control | Field (kept for the classic look) */
@media (max-width: 700px) { html.ui-modern .mode-seg { display: none; }  }

/* Dragging the mouse across a page selects text; the page's controls aren't text to copy (menus, buttons, counters, headings
   of tables), so they don't get selected, and a selection is a quiet grey that suits both themes instead of the system's
   bright highlight. Callout titles, references, tables and notes can still be selected and copied. */
html.ui-modern ::selection { background: color-mix(in srgb, var(--text) 22%, transparent); color: inherit; }

/* ---- polish pass (27 Oct 2026): one quiet look for stages, edit links, map links and the incidents table -------------- */
/* the stages on the incident page read like the command view's stepper: dots on a line, the current one in the accent */

/* edit links in the header and the Google Maps links: quiet text buttons, never underlined */
 html.ui-modern .inc-head .gmaps a { text-decoration: none; }
 html.ui-modern .inc-head .gmaps a {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border-radius: var(--radius-sm, 8px); border: 1px solid var(--border);
  font-size: var(--fs-xs, .78rem); font-weight: 600; color: var(--text-2); background: transparent; }
 html.ui-modern .inc-head .gmaps a:hover { color: var(--text); background: var(--surface-2); }
html.ui-modern .inc-head .gmaps { gap: 6px; }

/* the incidents table: phases in sentence case, ids and times never break, attention as a labelled chip */

/* ---- the discipline hub (templates/disciplines/_hub.html, post.html) ------------------------------------------------- */

/* the incident toolbar's Open as menu and status chips beside the badges */

/* the Incident Commander panel: the name, and one button that opens the picker */

/* the callout audience picker (static/js/callwho.js): several areas, units and skills at once */

/* a discipline page's tools (droneops/sar/disciplines.py discipline_tools): small buttons in labelled rows */

/* My notes: the Open link button beside a tapped link (static/js/scribble.js) */
.sp-open { position: absolute; z-index: 80; padding: 6px 12px; border-radius: var(--radius-sm, 8px); border: 1px solid var(--border); background: var(--surface);
  color: var(--link); font: inherit; font-size: var(--fs-sm, .85rem); font-weight: 650; box-shadow: var(--shadow-float, 0 10px 28px rgba(0,0,0,.35)); cursor: pointer; }
.sp-open:hover { background: var(--surface-2); }
/* the foot of your account menu: Privacy and Terms, then "Runs on Drone Ops Ireland" small and centred at the very bottom */
.menu-legal .menu-runs { flex-basis: 100%; order: 9; text-align: center; font-size: .68rem; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); opacity: .8; }
html.ui-modern .mr-fly:not([hidden]) { display: flex; flex-direction: column; }
html.ui-modern .mr-fly > .mr-fly-foot { margin-top: auto; flex-basis: auto; padding: 12px 0 2px; text-align: center; font-size: .68rem; color: var(--muted); text-decoration: none; border-top: 1px solid var(--border); opacity: .8; }

/* the Field view (My task) on a computer: three columns (static/js/sarfield.js .fv-desk) - phones keep the one column */

/* your own pages under your name (My record, Away dates, Hours, Expense claims): a compact two-column list */
.me-personal { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; padding: 8px 12px; border-top: 1px solid var(--border); }
.me-personal a { padding: 6px 8px; border-radius: var(--radius-sm, 8px); color: var(--text); text-decoration: none; font-size: var(--fs-sm, .85rem); }
.me-personal a:hover { background: var(--surface-2); }
/* the Field view's I need help: hold to send, filling as you hold (static/js/sarfield.js) */

/* Side menu (11 Nov 2026): a search box and "Your pages" (pinned, then most used) above the areas; one area open at a time */
html.ui-modern .mr-find { display: none; }
html.ui-modern.rail-wide:not(.rail-bottom) .mr-find { display: block; position: relative; margin: 6px 0 4px; }
html.ui-modern .mr-find > svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); pointer-events: none; }
html.ui-modern .mr-find-in { width: 100%; height: 35px; padding: 0 44px 0 32px; border: 1px solid var(--border); border-radius: var(--radius-sm, 8px); background: var(--surface-2);
  font: inherit; font-size: var(--fs-sm, .85rem); color: var(--text); -webkit-appearance: none; appearance: none; }
html.ui-modern .mr-find-in::placeholder { color: var(--muted); }
html.ui-modern .mr-find-in:focus { outline: 2px solid var(--accent); outline-offset: -1px; background: var(--surface); }
html.ui-modern .mr-find-in::-webkit-search-cancel-button { display: none; }
html.ui-modern .mr-find-k { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); padding: 0; border: 0; background: none; box-shadow: none;
  font-family: inherit; font-size: var(--fs-xs, .78rem); font-weight: 500; line-height: 1; letter-spacing: .02em; color: var(--muted); opacity: .6; pointer-events: none; }
html.ui-modern .mr-find-in:focus ~ .mr-find-k { display: none; }
html.ui-modern .mr-find-out { position: absolute; left: 0; right: -60px; top: 40px; z-index: 60; display: flex; flex-direction: column; gap: 1px; padding: 4px;
  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)); }
html.ui-modern .mr-find-out[hidden] { display: none; }
html.ui-modern .mr-find-r { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 7px 9px; border: 0; border-radius: var(--radius-sm, 8px);
  background: none; font: inherit; font-size: var(--fs-sm, .85rem); color: var(--text); text-decoration: none; text-align: left; cursor: pointer; }
html.ui-modern .mr-find-r small { flex: none; font-size: var(--fs-xs, .78rem); color: var(--muted); }
html.ui-modern .mr-find-r.on, html.ui-modern .mr-find-r:hover { background: var(--accent-soft); color: var(--accent-dark); }
html.ui-modern .mr-find-all { margin-top: 3px; border-top: 1px solid var(--border); border-radius: 0 0 6px 6px; color: var(--text-2); font-size: var(--fs-sm, .85rem); }
html.ui-modern.rail-wide:not(.rail-bottom) .mr-find-btn { display: none; }
/* the search box shows in the wide menu and the phone/iPad drawer: never the search button as well (18 Nov 2026) */
html.ui-modern.rail-wide:not(.rail-bottom) body .mrail .mr-item.mr-find-btn { display: none; }
html.ui-modern .mr-yrow { display: flex; align-items: center; min-width: 0; }
html.ui-modern .mr-yrow > a { flex: 1; min-width: 0; }
html.ui-modern:not(.rail-wide) .mr-yrow .mr-star, html.ui-modern.rail-bottom .mr-yrow .mr-star { display: none; }
html.ui-modern.rail-wide .mr-yrow .mr-star { width: 26px; height: 26px; font-size: var(--fs-xs, .78rem); opacity: 0; }
html.ui-modern.rail-wide .mr-yrow:hover .mr-star, html.ui-modern.rail-wide .mr-yrow .mr-star:focus-visible { opacity: 1; }
html.ui-modern .mr-areas-label { display: none; }
html.ui-modern.rail-wide:not(.rail-bottom) .mr-areas-label:not([hidden]) { display: block; margin-top: 6px; }
html.ui-modern.rail-wide .mr-pins { margin-top: 2px; }

/* fresh.css */
/* The 19 Oct 2026 refresh (the user's ten theme answers - memory theme-choices-oct-2026): mission-control dark meets a
   clean modern app. Loaded last on every page, over modern.css and mc.css; removing its <link> in base.html undoes it.
   - bigger, bolder headings
   - data panels crisp and outlined; summary tiles and cards soft, rounded, with depth
   - bright, bold status colours
   - the callout's action row as an icon toolbar (labels on hover, still read out)
   - a live feel: pulsing live dots, smooth arrivals, lift on hover
   - Compact density (Display menu) */

/* ---- type ---------------------------------------------------------------------------------------------------------------- */
html.ui-modern .page-head h1, html.ui-modern .wrap > h1, html.ui-modern .inc-title h1 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
html.ui-modern .panel h2, html.ui-modern .panel-head h2 { font-size: var(--fs-lg, 1.15rem); font-weight: 750; letter-spacing: -.01em; }
html.ui-modern .panel h3 { font-weight: 700; }

/* ---- data panels: crisp, outlined, flat ---------------------------------------------------------------------------------- */
html.ui-modern .panel { border-radius: var(--radius-sm, 8px); box-shadow: none; border-color: var(--border); }
html[data-theme="night"].ui-modern .panel { background: color-mix(in srgb, var(--surface) 92%, #000); }

/* ---- summary tiles and cards: soft, rounded, depth, lift on hover --------------------------------------------------------- */

/* ---- status colours: bright and bold ------------------------------------------------------------------------------------- */
html.ui-modern { --ok: #22c55e; --warn: #f59e0b; --bad: #ef4444; --info: #3b82f6; }
html[data-theme="night"].ui-modern { --ok-text: #4ade80; --warn-text: #fbbf24; --bad-text: #f87171; }
html.ui-modern .badge { font-weight: 750; letter-spacing: .02em; }
html.ui-modern .badge-ok { background: color-mix(in srgb, var(--ok) 22%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ok) 55%, transparent); }
html.ui-modern .badge-warn { background: color-mix(in srgb, var(--warn) 24%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn) 60%, transparent); }
html.ui-modern .badge-bad { background: color-mix(in srgb, var(--bad) 24%, var(--surface)); border: 1px solid color-mix(in srgb, var(--bad) 60%, transparent); color: var(--bad-text); }

/* ---- the callout's actions (27 Oct 2026): labelled buttons, never bare icons - the views are in the Open as menu ------- */
@media (min-width: 700px) {
  
     /* the menus sit over the tiles below */
}

/* ---- live feel --------------------------------------------------------------------------------------------------------- */

@keyframes f-live { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, #3b82f6 55%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
html.ui-modern .phase-steps li.now { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); animation: f-now 2.4s ease-out infinite; }
@keyframes f-now { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
html.ui-modern .wrap.page > * { animation: f-in .35s ease backwards;   /* backwards, not both: once it ends nothing is held, so menus (Customise) open over the sections after them */ }
html.ui-modern .wrap.page > :nth-child(2) { animation-delay: .04s; } html.ui-modern .wrap.page > :nth-child(3) { animation-delay: .08s; }
/* no fade from invisible (13 Nov 2026 site review): a slow phone or a background tab held whole pages blank; content shows at once */
@keyframes f-in { from { transform: translateY(6px); } to { transform: none; } }
html.ui-modern .mc-clock b, html.ui-modern [data-countdown] { font-variant-numeric: tabular-nums; }

/* ---- Compact density (Display menu; droneops/display.py density) ------------------------------------------------------- */
html.ui-modern.dense { font-size: 93.75%; }
html.ui-modern.dense .panel { padding: 12px 14px; }
html.ui-modern.dense .panel + .panel, html.ui-modern.dense .panel.mt { margin-top: 10px; }
html.ui-modern.dense :is(td, th) { padding-top: 5px; padding-bottom: 5px; }

@media (prefers-reduced-motion: reduce) {
   html.ui-modern .phase-steps li.now, html.ui-modern .wrap.page > * { animation: none; }
  
}

/* ---- icons everywhere (static/js/autoicons.js): a line icon beside headings and buttons -------------------------------- */
html.ui-modern .ico-auto { vertical-align: -3px; flex: none; }
html.ui-modern :is(h1, h2, h3) > .ico-auto { color: var(--accent-dark); width: 1em; height: 1em; margin-right: .15em; }
html.ui-modern .btn > .ico-auto { width: 16px; height: 16px; margin-right: 2px; opacity: .9; }
html.ui-modern .btn-sm > .ico-auto { width: 14px; height: 14px; }

/* ---- the callout map's own panels in the new look (map item 10) ---- */
html.ui-modern .sm-group > h3, html.ui-modern .sm-group > summary > h3 { font-size: var(--fs-xs, .78rem); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
html.ui-modern .sm-group > h3 > .ico-auto, html.ui-modern .sm-group > summary > h3 > .ico-auto { color: var(--accent-dark); width: 15px; height: 15px; }
html.ui-modern .sm-panel { border-radius: var(--radius, 12px); }
html.ui-modern .sm-snap { border-radius: var(--radius-sm, 8px); }
html.ui-modern .sm-tog { border-radius: var(--radius-sm, 8px); transition: background .15s; }
html.ui-modern .sm-tog:hover { background: var(--surface-2); }
/* phones: the callout's heading keeps to the screen - its lines wrap, the progress steps scroll sideways */
@media (max-width: 700px) {
  .inc-head > .inc-title { width: 100%; min-width: 0; }
  
  
}

/* The full logo in dark mode (12 Nov 2026): most logos are drawn for a white page, so without a separate dark-mode version
   (Settings > Branding) the logo sits on the same white backing as the header's - the dark part of the wordmark stays readable. */
html[data-theme="night"] .logo-full:not(.logo-day):not(.logo-night) { background: #fff; border-radius: var(--radius-sm, 8px); padding: 10px 14px; box-sizing: border-box; }

/* look26.css */
/* The new look (Beta module "newlook", html.look26) - phase 1, the shell: a calmer side menu (Linear-like rows,
   sections in sentence case, keyboard hints, Keyboard shortcuts and the theme at the foot), the page's place at the
   top (area / page), tighter corners. Colours, Inter and the light / dark themes are unchanged: only the tokens in
   style.css are used. Loaded after modern.css, mc.css, fresh.css and appshell.css; extras built by static/js/look26.js. */
html.look26 { --radius: 8px; --radius-lg: 12px; --radius-sm: 6px; }

@media (min-width: 1100px) {
  /* the rail */
  html.ui-modern.look26 .mrail { gap: 1px; padding: 10px 8px; }
  html.ui-modern.look26.rail-wide .mrail { padding: 10px 10px; }
  html.ui-modern.look26 .mrail .mr-item { border-radius: var(--radius-sm, 8px); color: var(--text-2); }
  html.ui-modern.look26.rail-wide .mrail .mr-item { min-height: 34px; padding: 0 10px; gap: 10px; font: 500 .875rem/1.2 inherit; }
  html.ui-modern.look26.rail-wide .mrail .mr-item svg { width: 18px; height: 18px; color: var(--muted); }
  html.ui-modern.look26 .mrail .mr-item:hover { background: var(--surface-2); color: var(--text); }
  html.ui-modern.look26 .mrail .mr-item.on { background: var(--accent-soft); color: var(--text); font-weight: 600; }
  html.ui-modern.look26 .mrail .mr-item.on svg { color: var(--accent-dark); }
  html.ui-modern.look26[data-theme="night"] .mrail .mr-item.on { background: color-mix(in srgb, var(--accent) 22%, transparent); }
  html.ui-modern.look26 .mrail .mr-item.mr-sos, html.ui-modern.look26 .mrail .mr-item.mr-sos svg { color: var(--bad); }
  /* section names: sentence case, quiet, no rule above */
  html.ui-modern.look26 .mr-pin-label { font: 500 .75rem/1.2 inherit; letter-spacing: 0; text-transform: none; border-top: 0; padding: 14px 10px 4px; color: var(--muted); }
  html.ui-modern.look26:not(.rail-wide) .mr-pin-label { display: none; }
  html.ui-modern.look26 .mr-sub-h { font-size: var(--fs-xs, .78rem); font-weight: 500; letter-spacing: 0; text-transform: none; }
  html.ui-modern.look26.rail-wide .mr-sub:not([hidden]) { margin: 2px 0 6px 18px; padding-left: 8px; }
  html.ui-modern.look26 .mr-sub .mr-link { padding: 6px 8px; font-size: var(--fs-sm, .85rem); color: var(--text-2); }
  html.ui-modern.look26 .mr-sub .mr-link.on { color: var(--text); }
  html.ui-modern.look26 .mr-sides { border-radius: var(--radius-sm, 8px); }
  html.ui-modern.look26 .mr-sides a { border-radius: var(--radius-sm, 8px); }
  html.ui-modern.look26 .mr-find input { border-radius: var(--radius-sm, 8px); }
  /* keyboard hints */
  html.ui-modern.look26 .lk-kbd { margin-left: auto; flex: none; font: 500 .68rem/1 inherit; color: var(--muted); padding: 3px 5px; border: 1px solid var(--border); border-radius: var(--radius-sm, 8px); }
  html.ui-modern.look26:not(.rail-wide) .lk-kbd { display: none; }
  /* the foot: Keyboard shortcuts */
  html.ui-modern.look26 .lk-foot { display: grid; gap: 6px; margin: 6px 0 2px; padding-top: 8px; border-top: 1px solid var(--border); }
  html.ui-modern.look26:not(.rail-wide) .lk-foot, html.ui-modern.look26.rail-bottom .lk-foot { display: none; }
  html.ui-modern.look26 .lk-keys { display: flex; align-items: center; min-height: 34px; padding: 0 10px; border: 0; border-radius: var(--radius-sm, 8px); background: none;
    color: var(--text-2); font: 500 .84rem/1.2 inherit; cursor: pointer; text-align: left; }
  html.ui-modern.look26 .lk-keys:hover { background: var(--surface-2); color: var(--text); }
  html.ui-modern.look26 .lk-keys kbd { margin-left: auto; font: 500 .68rem/1 inherit; color: var(--muted); padding: 3px 6px; border: 1px solid var(--border); border-radius: var(--radius-sm, 8px); background: none; }
  html.ui-modern.look26 .lk-theme { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 3px; border-radius: var(--radius-sm, 8px); background: var(--surface-2); border: 1px solid var(--border); }
  html.ui-modern.look26 .lk-theme button { min-height: 30px; border: 0; border-radius: var(--radius-sm, 8px); background: none; color: var(--muted); font: 500 .8rem/1 inherit; cursor: pointer; }
  html.ui-modern.look26 .lk-theme button:hover { color: var(--text); }
  html.ui-modern.look26 .lk-theme button[aria-pressed="true"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 0 0 1px var(--border); }

  /* the top bar: the page's place on the left, tools on the right */
  html.ui-modern.look26 body.has-rail .topbar { box-shadow: none; }
  html.ui-modern.look26 body.has-rail .topbar-inner { min-height: 52px; }
  html.ui-modern.look26 .lk-crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 0 1 auto; margin-right: auto; font-size: var(--fs-sm, .85rem); color: var(--muted); white-space: nowrap; }
  html.ui-modern.look26 .lk-crumbs a { color: var(--muted); text-decoration: none; }
  html.ui-modern.look26 .lk-crumbs a:hover { color: var(--text); text-decoration: underline; }
  html.ui-modern.look26 .lk-crumbs [aria-current] { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
  html.ui-modern.look26 .lk-sep { color: var(--border); }
}
/* touch screens (iPad landscape with the rail): rows big enough for a finger */
@media (min-width: 1100px) and (pointer: coarse) {
  html.ui-modern.look26.rail-wide .mrail .mr-item, html.ui-modern.look26 .lk-keys { min-height: 44px; }
  html.ui-modern.look26 .lk-theme button { min-height: 40px; }
  html.ui-modern.look26 .mr-sub .mr-link { padding: 11px 8px; }
  html.ui-modern.look26 .lk-kbd, html.ui-modern.look26 .lk-keys { display: none; }
}
/* phones and iPad portrait keep their menus; only the place line goes (the brand is there) */
@media (max-width: 1099px) { .lk-crumbs { display: none; } }
@media (prefers-reduced-motion: reduce) { html.look26 .lk-theme button { transition: none; } }

/* ---- phase 2: list tables and records (Stripe) ---------------------------------------------------------------------- */
/* sortable headers: the whole header is the button; an arrow shows the order */
html.look26 th[aria-sort] { padding-top: 0; padding-bottom: 0; }
html.look26 .lk-sort { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0; margin: 0; border: 0; background: none;
  color: inherit; font: inherit; cursor: pointer; text-align: left; white-space: nowrap; }
html.look26 .lk-sort:hover { color: var(--text); }
html.look26 .lk-sort:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm, 8px); }
html.look26 .lk-arr { width: 8px; height: 8px; opacity: 0; transition: opacity .12s; }
html.look26 .lk-sort:hover .lk-arr { opacity: .5; }
html.look26 .lk-arr::before { content: ""; display: block; width: 0; height: 0; margin-top: 1px; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; }
html.look26 th[aria-sort="ascending"] .lk-arr, html.look26 th[aria-sort="descending"] .lk-arr { opacity: 1; }
html.look26 th[aria-sort="ascending"] .lk-arr::before { border-top: 0; border-bottom: 5px solid currentColor; }
html.look26 th[aria-sort="ascending"], html.look26 th[aria-sort="descending"] { color: var(--text); }
/* rows: calm hover, numbers line up */
html.look26 main table tbody tr { transition: background-color .1s; }
html.look26 main table.as-master tbody tr:hover { background: var(--surface-2); }
html.look26 main table td { font-variant-numeric: tabular-nums; }
html.look26 tr.lk-off { display: none !important; }
/* status chips with counts above a list */
html.look26 .lk-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
html.look26 .lk-chips > button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-pill, 999px);
  background: var(--surface); color: var(--text-2); font: 500 .82rem/1 inherit; cursor: pointer; }
html.look26 .lk-chips > button span { color: var(--muted); font-variant-numeric: tabular-nums; }
html.look26 .lk-chips > button:hover { border-color: var(--muted); color: var(--text); }
html.look26 .lk-chips > button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--text); font-weight: 600; }
html.look26[data-theme="night"] .lk-chips > button[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 22%, transparent); }
html.look26 .lk-chips > button[aria-pressed="true"] span { color: var(--text-2); }
html.look26 .lk-count { margin: -4px 0 8px; font-size: var(--fs-xs, .78rem); color: var(--muted); }
html.look26 .lk-count:empty { display: none; }
@media (pointer: coarse) { html.look26 .lk-chips > button { min-height: 44px; padding: 0 14px; } html.look26 .lk-sort { min-height: 44px; } }
@media (max-width: 700px) {
  html.look26 .lk-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -2px; padding: 2px; }
  html.look26 .lk-chips > button { flex: none; }
}

/* a record's change history as an activity timeline: a line down the left, a dot per change, newest first */
html.look26 .chg { position: relative; padding-left: 22px; }
html.look26 .chg::before { content: ""; position: absolute; left: 6px; top: 14px; bottom: 14px; width: 2px; background: var(--border); border-radius: 1px; }
html.look26 .chg > li { position: relative; border-bottom: 0; padding: 8px 0 12px; }
html.look26 .chg > li::before { content: ""; position: absolute; left: -21px; top: 14px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--muted); box-sizing: border-box; }
html.look26 .chg > li:has(.badge-ok)::before { border-color: var(--ok); background: var(--ok); }
html.look26 .chg > li:has(.badge-bad)::before { border-color: var(--bad); background: var(--bad); }
html.look26 .chg-f { margin-top: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm, 8px); background: var(--surface-2); }
html.look26 #change-history > summary { cursor: pointer; }

/* ---- every label in sentence case (house style): each rule elsewhere that sets capitals, undone here. Generated from
   the stylesheets on 11 Nov 2026 - a new capitals rule should not be written; if one is, add it here. Invoice stamps stay. */
html.look26 .cf-strip button,
html.look26 .dk-tab,
html.look26 .dk-menu-h,
html.look26 .dk-strip-tab,
html.ui-modern.look26 .sm-group > h3,
html.ui-modern.look26 .sm-group > summary > h3,
html.look26 .app-sheet-h,
html.ui-modern.look26 .mr-sub-h,
html.look26 .kpi small,
html.look26 .co-head,
html.look26 .co-phase,
html.look26 .board-side .panel > h2:first-child,
html.look26 .board-side .panel-head h2,
html.ui-modern.look26 .sar-board .home-side .panel > h2:first-child,
html.ui-modern.look26 .sar-board .home-side .panel-head h2,
html.ui-modern.look26 .sb-section,
html.ui-modern.look26 .ls-head,
html.ui-modern.look26 .mr-fly .nav-menu .nav-section,
html.ui-modern.look26 .mr-fly .nav-menu .menu-label,
html.ui-modern.look26 table th,
html.look26 .m-display h4,
html.ui-modern.look26 .mr-pin-label,
html.look26 .tab-switch .ts-label,
html.look26 .of h2,
html.look26 .of-must,
html.look26 .wall-tile span,
html.look26 .wall-cols h2,
html.look26 .ov-tile small,
html.look26 .sk-disc,
html.look26 .ho-tile span,
html.look26 .fc-btn,
html.look26 body.has-app-bar .fc-btn,
html.look26 .poll-head,
html.look26 .co-etas-label,
html.look26 .lsar-rings th,
html.look26 .lsar-grp,
html.look26 .cc-month,
html.look26 .tl-chips .tl-label,
html.look26 .cw-label,
html.look26 .wz-kicker,
html.look26 .fv-h,
html.pf-modern.look26 .table th,
html.look26 .pro-rail a,
html.look26 .px-hero h1,
html.look26 .px-contact-copy h2,
html.look26 body.pro .page-hero h1,
html.look26 .rc-table th,
html.look26 .sm-group h3,
html.look26 .sm-lm-h,
html.look26 .sm-sym-group,
html.look26 .sm-teamkey b,
html.look26 .sm-opt-name,
html.look26 .sm-panel-head h2,
html.look26 .sm-state,
html.look26 .ft-h,
html.look26 .sm-navbar-t,
html.look26 .nv-head b,
html.look26 .nv-pick-l,
html.look26 .smc-head b,
html.look26 .smc-group legend,
html.look26 .sm-ticker .tk-label,
html.look26 details.ss-sec h4,
html.look26 .sm-goto-list .sm-goto-head,
html.look26 .sm-teamkey .mk-sub,
html.look26 .sm-tool > b,
html.look26 .sm-presets > span,
html.look26 .sp-m-kind,
html.look26 .eyebrow,
html.look26 .contact-card .row span,
html.look26 th,
html.look26 .wx-kv span,
html.look26 .raw-label,
html.look26 .now span,
html.look26 .wx-mini .chip span,
html.look26 .invoice .label,
html.look26 .inv-title h2,
html.look26 .ops-tabs .ops-label,
html.look26 .kv-grid span,
html.look26 .cal-h,
html.look26 .em-info span,
html.look26 .job-tools h4,
html.look26 .kit-table .kit-section th,
html.look26 .nav-section,
html.look26 .small-head,
html.look26 table.stack td::before,
html.look26 .glance dt,
html.look26 .file-kind,
html.look26 .next-step .ns-label,
html.look26 .tm-stats .stat > span,
html.look26 .res-grid thead th,
html.look26 .ops-grid span,
html.look26 .kpi > span,
html.look26 .fin-grid span,
html.look26 .tl-day,
html.look26 .comp-grid thead th,
html.look26 .att-group,
html.look26 .qs-kind,
html.look26 .db-facts span,
html.look26 .fd-wx-tiles span,
html.look26 .hourly-cards .hc-day,
html.look26 .jd-tiles span,
html.look26 .op-counts span,
html.look26 .amap-fly h4,
html.look26 .org-box small,
html.look26 .tl-day td,
html.look26 .page-index .pi-title,
html.look26 .menu-pop .menu-label,
html.look26 .it-label,
html.look26 .sb-section,
html.look26 .pos,
html.look26 .pf-group legend,
html.look26 .dl-grid span,
html.look26 .stat span,
html.look26 .ft-fmt span,
html.look26 .kb-card h2,
html.look26 .kb-emerg span,
html.look26 .dji-live span,
html.look26 .sc-day span,
html.look26 .pf-org-n small,
html.look26 .rk-matrix .rk-group th,
html.look26 .manual-sec,
html.look26 .ts-label,
html.look26 .flow-know dt,
html.look26 .fv-task-k,
html.look26 .pmore .pm-group,
html.look26 .tl-tab,
html.look26 .tl-menu-h,
html.look26 .tr-sec { text-transform: none !important; letter-spacing: 0 !important; }

/* the theme in your own menu (under your name): Auto / Day / Dark */
html.look26 .me-theme { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 10px; margin: 2px 0; }
html.look26 .me-theme > span:first-child { font-size: var(--fs-sm, .85rem); color: var(--text-2); }
html.look26 .me-theme-seg { display: inline-grid; grid-template-columns: repeat(3, auto); gap: 2px; padding: 3px; border-radius: var(--radius-sm, 8px); background: var(--surface-2); border: 1px solid var(--border); }
html.look26 .me-theme-seg button { min-height: 30px; padding: 0 10px; border: 0; border-radius: var(--radius-sm, 8px); background: none; color: var(--muted); font: 500 .8rem/1 inherit; cursor: pointer; }
html.look26 .me-theme-seg button:hover { color: var(--text); }
html.look26 .me-theme-seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 0 0 1px var(--border); }
@media (pointer: coarse) { html.look26 .me-theme-seg button { min-height: 44px; padding: 0 14px; } }
/* phones and tablets: the theme row shows in your menu too (offline stays in the top bar there) */
@media (max-width: 1024px), (max-width: 1366px) and (pointer: coarse) {
  html.look26 .menu-tools { display: block; }
  html.look26 .menu-tools > .menu-offline { display: none; }
}
html.look26 .menu-tools > .me-theme:hover { background: none; cursor: default; }

/* ---- phase 3: the map's details as a docked panel (Flightradar), set by look26.js mapPanel() ---------------------------- */
html.look26 #sarmap-wrap .maplibregl-popup.lk-dockpop { position: absolute; transform: none !important; left: 12px !important; top: 96px !important;
  right: auto; bottom: auto; width: 320px; max-width: calc(100% - 24px) !important; max-height: calc(100% - 150px); z-index: 6; display: flex; }
html.look26 #sarmap-wrap .lk-dockpop .maplibregl-popup-tip { display: none; }
html.look26 #sarmap-wrap .lk-dockpop .maplibregl-popup-content { flex: 1; overflow: auto; padding: 14px 16px 14px 14px; border-radius: var(--radius-sm, 8px); background: var(--surface);
  color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-3, 0 12px 32px rgba(10,16,24,.24)); font-size: var(--fs-sm, .85rem); line-height: 1.45; }
html.look26 #sarmap-wrap .lk-dockpop .maplibregl-popup-content > b:first-child { display: block; font-size: var(--fs-xs, .78rem); font-weight: 500; color: var(--muted); margin-bottom: 2px; }
html.look26 #sarmap-wrap .lk-dockpop .maplibregl-popup-close-button { width: 32px; height: 32px; top: 6px; right: 6px; border-radius: var(--radius-sm, 8px); font-size: var(--fs-lg, 1.15rem); color: var(--muted); }
html.look26 #sarmap-wrap .lk-dockpop .maplibregl-popup-close-button:hover { background: var(--surface-2); color: var(--text); }
html.look26 .lk-ring { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
  pointer-events: none; animation: lk-ring 1.6s ease-out infinite; }
@keyframes lk-ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
@media (prefers-reduced-motion: reduce) { html.look26 .lk-ring { animation: none; } }
@media (max-width: 700px) {
  html.look26 #sarmap-wrap .maplibregl-popup.lk-dockpop { left: 8px !important; right: 8px !important; top: auto !important; bottom: 8px !important; width: auto; max-width: none !important; max-height: 48%; }
  html.look26 #sarmap-wrap .lk-dockpop .maplibregl-popup-content { border-radius: var(--radius, 12px); }
  html.look26 #sarmap-wrap .lk-dockpop .maplibregl-popup-close-button { width: 44px; height: 44px; }
}
@media (pointer: coarse) { html.look26 #sarmap-wrap .lk-dockpop .maplibregl-popup-close-button { width: 44px; height: 44px; } }

/* ---- the side menu exactly as the prototype: no section headings or arrows, org name + platform, G-key hints, live count,
   pinned pages above a thin line, sub-pages indented without a rule; the top bar's search as "Search ⌘K" ----------------- */
@media (min-width: 1100px) {
  html.ui-modern.look26 .mr-pin-label { display: none !important; }
  html.ui-modern.look26 .mr-pins:not(:empty) { padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
  html.ui-modern.look26 .mrail > .mr-item .mr-caret { display: none; }
  html.ui-modern.look26.rail-wide .mr-sub:not([hidden]) { margin: 2px 0 6px 26px; padding-left: 0; border-left: 0; }
  html.ui-modern.look26 .mr-sub .mr-link { padding: 6px 8px; font-size: var(--fs-sm, .85rem); }
  html.ui-modern.look26 .mr-sub .mr-link.on { background: var(--surface-2); }
  html.ui-modern.look26 .mr-org { gap: 10px; }
  html.ui-modern.look26 .mr-org img { width: 28px; height: 28px; border-radius: var(--radius-sm, 8px); }
  html.ui-modern.look26 .lk-org-text { display: grid; min-width: 0; line-height: 1.2; }
  html.ui-modern.look26 .lk-org-text .mr-org-name { display: block; font-size: var(--fs-sm, .85rem); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: unset; }
  html.ui-modern.look26 .lk-org-sub { font-size: var(--fs-xs, .78rem); color: var(--muted); }
  html.ui-modern.look26:not(.rail-wide) .lk-org-text { display: none; }
  html.ui-modern.look26 .mr-find input { border: 1px solid var(--border); background: var(--surface); }
  html.ui-modern.look26 .lk-live { margin-left: auto; flex: none; min-width: 20px; padding: 2px 6px; border-radius: var(--radius-pill, 999px); background: var(--accent-soft); color: var(--accent-dark);
    font: 600 .72rem/1.2 inherit; text-align: center; font-variant-numeric: tabular-nums; }
  html.ui-modern.look26[data-theme="night"] .lk-live { background: color-mix(in srgb, var(--accent) 25%, transparent); }
  html.ui-modern.look26 .lk-live + .lk-kbd { margin-left: 6px; }
  html.ui-modern.look26:not(.rail-wide) .lk-live { position: absolute; top: 4px; right: 6px; margin: 0; }
  html.ui-modern.look26 .mrail > .mr-item { position: relative; }
  /* top bar: org / area / page on the left, a short Search ⌘K on the right */
  html.ui-modern.look26 .lk-crumbs .lk-org { color: var(--muted); }
  html.ui-modern.look26 body.has-rail .top-icons .search-btn[data-open-search] { width: auto; padding: 0 8px 0 12px; gap: 10px; }
  html.ui-modern.look26 body.has-rail .top-icons .search-btn[data-open-search] svg { display: none; }
  html.ui-modern.look26 body.has-rail .top-icons .search-btn[data-open-search]::after { order: 0; font-weight: 500; color: var(--text-2); }
  html.ui-modern.look26 .search-btn .lk-k { order: 1; font: 500 .7rem/1 inherit; color: var(--muted); padding: 3px 5px; border: 1px solid var(--border); border-radius: var(--radius-sm, 8px); background: none; }
}
html.look26 .search-btn .lk-k { display: none; }
@media (min-width: 1100px) { html.ui-modern.look26 body.has-rail .search-btn .lk-k { display: inline-block; } }
@media (min-width: 1100px) {
  html.ui-modern.look26 body.has-rail .top-tools { flex: 0 0 auto; margin-left: auto; }
  html.ui-modern.look26 body.has-rail .top-icons { width: auto; }
  html.ui-modern.look26 body.has-rail .top-icons .search-btn[data-open-search] { order: 99; margin-right: 0; margin-left: 4px; }
  html.ui-modern.look26 .lk-kbd { border: 0; padding: 0; font-weight: 500; letter-spacing: .04em; }
  /* the org row: collapse and move only on hover or focus, so the name has the room */
  html.ui-modern.look26.rail-wide .mr-org { padding-right: 12px; }
  html.ui-modern.look26.rail-wide .mrail :is(.mr-grip, .mr-collapse) { opacity: 0; transition: opacity .12s; }
  html.ui-modern.look26.rail-wide .mrail:hover :is(.mr-grip, .mr-collapse), html.ui-modern.look26.rail-wide .mrail :is(.mr-grip, .mr-collapse):focus-visible { opacity: .8; }
  html.ui-modern.look26.rail-wide .mrail:hover .mr-org { padding-right: 64px; }
}
@media (min-width: 1100px) and (pointer: coarse) { html.ui-modern.look26.rail-wide .mrail :is(.mr-grip, .mr-collapse) { opacity: .8; } html.ui-modern.look26.rail-wide .mr-org { padding-right: 64px; } }
@media (min-width: 1100px) { html.ui-modern.look26 .mr-find input { font-size: var(--fs-xs, .78rem); padding-right: 40px; text-overflow: ellipsis; } }

/* Dashboards, like Grafana (redesign phase 5): a period picker and refresh on the right, small stat panels with a
   month-by-month line and the change on the period before, then chart panels in a grid. */
.dash-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; }
.dash-head h1 { margin: 0 0 2px; }
.dash-head p { margin: 0; }
.dash-tools { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.dash-range { display: flex; flex-wrap: wrap; border: 1px solid var(--border); border-radius: var(--radius-sm, 6px); overflow: hidden; }
.dash-range a { padding: 8px 12px; min-height: 36px; display: inline-flex; align-items: center; font-size: var(--fs-sm, .85rem); color: var(--text); text-decoration: none; border-left: 1px solid var(--border); }
.dash-range a:first-child { border-left: 0; }
.dash-range a:hover { background: var(--surface-2, rgba(127,127,127,.08)); }
.dash-range a[aria-current] { background: var(--accent-soft, rgba(42,120,214,.12)); color: var(--accent-ink, var(--text)); font-weight: 600; }
.dash-refresh { display: inline-flex; gap: 6px; align-items: center; font-size: var(--fs-sm, .85rem); color: var(--muted); margin: 0; }
.dash-refresh select { width: auto; min-height: 36px; padding: 4px 8px; font-size: var(--fs-sm, .85rem); }
.dash-grid { display: grid; gap: 12px; margin-bottom: 12px; }
.dash-stats { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.dash-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dash-wide { grid-column: 1 / -1; }
.dash-panel { background: var(--surface, #fff); border: 1px solid var(--border); border-radius: var(--radius, 8px); padding: 12px 14px; min-width: 0; box-shadow: none; }
.dash-panel h2 { font-size: var(--fs-xs, .78rem); font-weight: 500; color: var(--muted); margin: 0 0 6px; }
.dash-stats .dash-panel > b { display: block; font-size: 1.75rem; line-height: 1.1; font-weight: 600; font-variant-numeric: tabular-nums; }
.dash-unit { font-size: var(--fs-base, 1rem); color: var(--muted); font-weight: 500; }
.dash-delta { display: block; font-size: var(--fs-xs, .78rem); color: var(--muted); margin-top: 2px; }
.dash-spark { display: block; width: 100%; height: 28px; margin-top: 8px; overflow: visible; }
.dash-spark polyline { stroke: var(--viz-1, var(--accent)); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.dash .chart { margin: 0; border: 0; padding: 0; background: none; box-shadow: none; }
.dash .chart figcaption { font-size: var(--fs-md, .92rem); font-weight: 600; }
@media (max-width: 760px) {
  .dash-charts { grid-template-columns: minmax(0, 1fr); }
  .dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-range { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; }
  .dash-range a { min-height: 44px; white-space: nowrap; }
  .dash-refresh select { min-height: 44px; }
}

/* The Menu button, like the prototype (11 Nov 2026): at the left of the top bar. On a computer it slides the side menu out
   and back (remembered on this device; the [ key does the same); on a tablet or phone the menu slides in over the page as a
   drawer (tap outside, Escape or a link closes it). The drawer's look: look26-drawer.css (scripts/build_drawer_css.py). */
html.look26 .lk-menu-btn, html.look26 .lk-scrim { display: none; }
html.ui-modern.look26.js-rail:not(.rail-bottom):not(.rail-top) .lk-menu-btn { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 36px;
  padding: 0 10px; margin-right: 6px; border: 1px solid transparent; border-radius: var(--radius-sm, 6px); background: none; color: var(--text); font: 500 .85rem/1 inherit; cursor: pointer; }
html.ui-modern.look26 .lk-menu-btn:hover { background: var(--surface-2, rgba(127,127,127,.1)); }
html.ui-modern.look26 .lk-menu-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
html.ui-modern.look26 .lk-menu-btn svg { width: 16px; height: 16px; }
@media (min-width: 1100px) {
  html.ui-modern.look26 .mrail { transition: transform .22s ease, visibility 0s 0s; }
  html.ui-modern.look26 body.has-rail { transition: padding .22s ease; }
  html.ui-modern.look26.lk-rail-off { --rail-w: 0px !important; }
  html.ui-modern.look26.lk-rail-off .mrail { width: var(--lk-keep, 240px); transform: translateX(-100%); visibility: hidden; transition: transform .22s ease, visibility 0s .22s; }
  html.ui-modern.look26.lk-rail-off.rail-right .mrail { transform: translateX(100%); }
  html.ui-modern.look26.lk-rail-off :is(.mr-resize, .mr-fly) { display: none !important; }
}
@media (max-width: 1099px) {
  html.ui-modern.look26.lk-dr .lk-menu-btn { min-height: 44px; padding: 0 12px; }
  html.ui-modern.look26.lk-dr .topbar .burger { display: none !important; }
  html.ui-modern.look26.lk-dr .mrail { width: min(300px, 86vw) !important; z-index: 1001; transform: translateX(-102%); visibility: hidden;
    transition: transform .22s ease, visibility 0s .22s; box-shadow: var(--shadow-3, 0 12px 32px rgba(10,16,24,.24));
    padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: max(12px, env(safe-area-inset-bottom)); overscroll-behavior: contain; }
  html.ui-modern.look26.lk-dr.lk-dr-open .mrail { transform: none; visibility: visible; transition: transform .22s ease; }
  html.ui-modern.look26.lk-dr-open .lk-scrim { display: block; position: fixed; inset: 0; z-index: 1000; background: rgba(10, 16, 24, .45); }
  html.ui-modern.look26.lk-dr-open body { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { html.look26 .mrail, html.look26 body.has-rail { transition: none !important; } }
@media (max-width: 1099px) { html.ui-modern.look26.lk-dr .mrail :is(.mr-grip, .mr-collapse, .lk-foot) { display: none !important; } }
html.look26 body.simple-mode .lk-menu-btn { display: none !important; }
/* clients and landowners (no menu of their own): Log out at the foot of the side menu */
html.ui-modern .mrail .mr-logout { margin: 0; display: block; }
html.ui-modern.look26 .mrail .mr-out { flex-direction: row; justify-content: flex-start; min-height: 34px; padding: 0 10px; font-size: var(--fs-sm, .85rem); font-weight: 500; color: var(--text-2, var(--muted)); }
/* the logo lives in the top bar beside Menu (11 Nov 2026), so it stays when the side menu slides away; the side menu keeps the name */
@media (min-width: 1100px) {
  html.ui-modern.look26 body.has-rail .topbar .brand { display: inline-flex !important; align-items: center; flex: none; order: -1; margin: 0 14px 0 0 !important; position: static !important; transform: none !important; }
  html.ui-modern.look26 .topbar .lk-menu-btn { order: -2; }
  html.ui-modern.look26 body.has-rail .topbar .brand :is(.brand-logo, .brand-mark) { height: 30px; width: auto; }
}
html.ui-modern.look26 .mrail .mr-org > img, html.ui-modern.look26 .mrail .mr-org > .mr-org-mark { display: none; }
/* the side menu's sub-headings (Plan, Fly, Log...) against its pages (11 Nov 2026, user found them hard to tell apart):
   the heading is small and grey with room above it; its pages sit indented under it on a thin guide line */
html.ui-modern.look26 .mr-sub .mr-sub-h { font-size: .7rem; font-weight: 600; color: var(--muted); padding: 12px 8px 3px; min-height: 0; }
html.ui-modern.look26 .mr-sub .mr-sub-g { margin: 0 0 2px 10px; padding-left: 6px; border-left: 1px solid var(--border); }
html.ui-modern.look26 .mr-sub .mr-sub-g .mr-link { color: var(--text); }
html.ui-modern.look26 .mr-sub .mr-sub-g .mr-link.on { color: var(--accent-dark); }
/* pages with no heading after a group are set apart by a line, so they don't read as part of the group above */
html.ui-modern.look26 .mr-sub .mr-sub-g + .mr-row-solo { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--border); }

/* the business's own logo at the top of the side menu in place of its name (look26.js shell, 19 Nov 2026) */
html.ui-modern.look26 .mr-org.lk-has-logo { align-items: center; }
html.ui-modern.look26 .mr-org.lk-has-logo .lk-org-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.ui-modern.look26 .mr-org .lk-org-pic { display: flex; align-items: center; min-width: 0; flex: 1 1 auto; }
html.ui-modern.look26 .mrail .mr-org .lk-org-pic img.lk-org-logo { display: block; width: auto; height: auto; max-width: 100%; max-height: 40px; object-fit: contain; object-position: left center; border-radius: 0; background: none; }
html.ui-modern.look26 .mrail .mr-org .lk-org-pic img.lk-org-logo.logo-night { display: none; }
html[data-theme="night"].ui-modern.look26 .mrail .mr-org .lk-org-pic img.lk-org-logo.logo-day { display: none !important; }
html[data-theme="night"].ui-modern.look26 .mrail .mr-org .lk-org-pic img.lk-org-logo.logo-night { display: block !important; }

/* the side menu (20 Nov 2026, the user's ask): no line above its foot; the collapse arrow and the move grip at the bottom
   (look26.js foot); the logo centred in the top row, which no longer leaves room for them */
@media (min-width: 1100px) {
  html.ui-modern.look26 .mrail .lk-foot:not(#_) { border-top: 0; }
  html.ui-modern.look26:not(.rail-top):not(.rail-bottom) .mrail .lk-foot.lk-tools:not(#_) { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin: 6px 0 4px; padding: 0; }
  html.ui-modern.look26:not(.rail-wide):not(.rail-top):not(.rail-bottom) .mrail .lk-foot.lk-tools:not(#_) { flex-direction: column; justify-content: center; }
  html.ui-modern.look26 .mrail .lk-foot.lk-tools :is(.mr-grip, .mr-collapse):not(#_) { position: static; margin: 0; width: 36px; height: 32px; opacity: .7; }
  html.ui-modern.look26 .mrail .lk-foot.lk-tools :is(.mr-grip, .mr-collapse):not(#_):is(:hover, :focus-visible) { opacity: 1; }
  html.ui-modern.look26.rail-wide .mrail .mr-org.lk-has-logo:not(#_) { justify-content: center; padding: 0 12px; }
  html.ui-modern.look26 .mrail .mr-org.lk-has-logo .lk-org-pic { flex: 0 1 auto; justify-content: center; }
  html.ui-modern.look26:not(.rail-wide) .mrail .mr-org .lk-org-pic { display: none; }   /* the icon rail: a wordmark that small can't be read */
  html.ui-modern.look26 .mrail .mr-org.lk-has-logo .lk-org-pic { max-width: 100%; }
  html.ui-modern.look26 .mrail .mr-org .lk-org-pic img.lk-org-logo { object-position: center; }
}
@media (min-width: 1100px) and (pointer: coarse) {
  html.ui-modern.look26 .mrail .lk-foot.lk-tools :is(.mr-grip, .mr-collapse):not(#_) { width: 44px; height: 44px; }
}
