/* The look around the planning: the start, the side bar and the pages - tables, forms, the side
   panel a record is edited in, the line editor - in the Schedulo colours (`docs/BRAND.md` of Schedulo
   TXC): Midnight Navy for the side bar in both looks, the Bus accent a shade deeper where white
   words go on it (#0077b6, 4.9:1), cool greys tinted to the navy. The planning keeps its own
   (rosterflow.css). */

:root {
  --hub-accent: #0077b6;
  --hub-accent-rgb: 0, 119, 182;
  --hub-accent-hover: #0a8ad0;
  --hub-accent-text: #33b8ed;
  --hub-ground: #0e1428;
  --hub-panel: #161d33;
  --hub-field: #1d253e;
  --hub-hover: #222b47;
  --hub-selected: #28324f;
  --hub-edge: rgba(255, 255, 255, 0.12);
  --hub-hairline: rgba(255, 255, 255, 0.08);
  --hub-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  --app-side: #071433;
}
:root[data-theme="light"] {
  --hub-accent: #0077b6;
  --hub-accent-rgb: 0, 119, 182;
  --hub-accent-text: #0069a1;
  --hub-ground: #eef1f8;
  --hub-panel: #ffffff;
  --hub-field: #f3f5fa;
  --hub-hover: #e9edf6;
  --hub-selected: #e5e9f7;
  --hub-text: #071433;
  --hub-text-soft: #2a3550;
  --hub-text-dim: #545e78;
  --hub-text-faint: #7d869c;
  --hub-edge: rgba(7, 20, 51, 0.16);
  --hub-hairline: rgba(7, 20, 51, 0.09);
  --hub-lift: rgba(7, 20, 51, 0.05);
  --hub-shadow: 0 6px 24px rgba(7, 20, 51, 0.12);
  --hub-scrim: rgba(7, 20, 51, 0.38);
  --hub-ok: #18864b;
  --hub-warn: #a8630a;
  --hub-danger: #c4352c;
  --app-side: #071433;
}

/* the Schedulo wordmark (`brand.js`): SCHEDULO in the logo face with its ring, BUS in the Bus accent */
.rf-wordmark { font-family: "Schedulo Logo", "Montserrat", sans-serif; font-weight: 900; white-space: nowrap; line-height: 1; letter-spacing: 0; }
.rf-wordmark b { color: var(--rf-text, var(--hub-text)); font-weight: 900; }
.rf-wordmark .ring { display: inline-block; width: 0.848em; height: 0.732em; vertical-align: -0.016em; }
.rf-wordmark i { color: var(--sb-bus, #00a6e8); font-style: normal; font-weight: 900; margin-left: 0.32em; }
.rf-wordmark.dim b, .rf-wordmark.dim i { color: var(--rf-dim, var(--hub-text-dim)); }

* { box-sizing: border-box; }
html, body, #app { margin: 0; height: 100%; }
body { font-family: "Montserrat", system-ui, sans-serif; font-size: 14px; background: var(--hub-ground); color: var(--hub-text); overflow: hidden; }
h1 { font-size: 24px; font-weight: 800; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 17px; font-weight: 700; margin: 0; }
code { font-size: 12px; }
.dim { color: var(--hub-text-dim); }
.small { font-size: 12px; }
.cut { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.splash { height: 100%; display: grid; place-items: center; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--hub-edge); border-radius: 6px; border: 3px solid transparent; background-clip: padding-box; }
:focus-visible { outline: 2px solid rgba(var(--hub-accent-rgb), 0.6); outline-offset: 1px; }
.toast { background: var(--hub-panel); border: 1px solid var(--hub-hairline); border-radius: 10px; box-shadow: var(--hub-shadow); font-size: 13px; }

/* --- the start ----------------------------------------------------------------------------------- */

.start { height: 100%; overflow: auto; display: grid; place-items: center; padding: 32px 16px; background: radial-gradient(1200px 600px at 20% -10%, rgba(var(--hub-accent-rgb), 0.18), transparent), var(--hub-ground); }
.start-card { width: min(640px, 100%); background: var(--hub-panel); border: 1px solid var(--hub-hairline); border-radius: 16px; padding: 28px 32px; box-shadow: var(--hub-shadow); }
.start-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.start-brand p { margin: 2px 0 0; color: var(--hub-text-dim); }
.start-card h2 { margin: 18px 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--hub-text-dim); }
.start-list { display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow: auto; }
.start-co { display: flex; align-items: center; gap: 6px; border: 1px solid var(--hub-hairline); border-radius: 12px; padding: 4px 8px 4px 4px; }
.start-co:hover { background: var(--hub-hover); }
.start-open { flex: 1; display: flex; align-items: center; gap: 12px; padding: 6px; text-align: left; min-width: 0; }
.start-open b { display: block; font-size: 15px; }
.start-open small { color: var(--hub-text-dim); }
.start-open small.start-real { display: block; font-size: 11px; }
.start-co.naming { padding: 6px 8px 6px 10px; gap: 10px; }
.start-nick { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.start-nick small { color: var(--hub-text-dim); }
.start-acts { margin-top: 20px; }
.start-foot { margin: 18px 0 0; }

/* --- the company's screen ------------------------------------------------------------------------- */

.shell { display: flex; height: 100%; }
.side { width: 232px; flex: none; display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; background: var(--app-side); border-right: 1px solid var(--hub-hairline); overflow: auto; }
/* (the side bar is Midnight Navy in both looks: its words are the navigation's, `NAV_TEXT` &c.) */
.side { --hub-text: #ffffff; --hub-text-soft: #d5d9e0; --hub-text-dim: #8a92a0; --hub-text-faint: #6b7385; --hub-hover: #13224a; --hub-hairline: rgba(255, 255, 255, 0.1); --hub-accent-text: #33b8ed; --rf-text: #ffffff; color: var(--hub-text); }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 2px 6px 16px; }
.side-brand > span { display: flex; flex-direction: column; gap: 5px; }
.side-brand small { font-size: 8.5px; font-weight: 500; letter-spacing: 1.6px; color: var(--hub-text-dim); white-space: nowrap; }
.side-co { display: flex; align-items: center; gap: 10px; padding: 4px 6px 16px; margin-bottom: 6px; border-bottom: 1px solid var(--hub-hairline); }
.side-co b { display: block; font-size: 14px; }
.side-co small { color: var(--hub-text-dim); font-size: 11px; }
.side-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 9px; color: var(--hub-text-soft); font-weight: 600; text-align: left; }
.side-item:hover { background: var(--hub-hover); color: var(--hub-text); }
.side-item.on { background: rgba(var(--hub-accent-rgb), 0.14); color: var(--hub-accent-text); }
.side-item.quiet { color: var(--hub-text-dim); font-weight: 500; }
.main { flex: 1; min-width: 0; overflow: auto; }
.rf-stage { position: fixed; inset: 0; background: #1b2028; }
.rf-stage .rf { inset: 0; }
:root[data-theme="light"] .rf-stage { background: #e9edf2; }

/* --- a page ------------------------------------------------------------------------------------- */

.pg { padding: 26px 32px 40px; max-width: 1280px; }
.pg.wide { max-width: none; height: 100%; display: flex; flex-direction: column; }
.pg-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.pg-head p { margin: 6px 0 0; color: var(--hub-text-dim); max-width: 760px; }
.pg-tools { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.pg-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--hub-edge); background: var(--hub-panel); color: var(--hub-text); font-weight: 650; white-space: nowrap; }
.pg-btn:hover:not(:disabled) { background: var(--hub-hover); }
.pg-btn:disabled { opacity: 0.45; }
.pg-btn.primary { background: var(--hub-accent); border-color: var(--hub-accent); color: #fff; }
.pg-btn.primary:hover:not(:disabled) { background: var(--hub-accent-hover); }
.pg-btn.ghost { background: transparent; }
.pg-btn.danger { color: var(--hub-danger); background: transparent; }
.pg-btn.small { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.pg-row { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.pg-row.tight { gap: 6px; align-items: center; flex-wrap: nowrap; margin-bottom: 6px; }
.pg-row.tight .pg-in { flex: 1; min-width: 0; }
.pg-inline { align-self: flex-end; padding-bottom: 2px; }
.pg-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; align-items: start; }
.pg-card { background: var(--hub-panel); border: 1px solid var(--hub-hairline); border-radius: 14px; padding: 18px 20px; margin-bottom: 16px; }
.pg-cards .pg-card { margin-bottom: 0; }
.pg-sub { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--hub-text-dim); margin: 6px 0 12px; font-weight: 750; }
.pg-note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--hub-lift); color: var(--hub-text-soft); margin: 10px 0; font-size: 13px; }
.pg-note svg { flex: none; margin-top: 1px; color: var(--hub-accent-text); }
.pg-note.danger { color: var(--hub-danger); } .pg-note.danger svg { color: var(--hub-danger); }
.pg-note.warn svg { color: var(--hub-warn); }
.pg-note.ok svg { color: var(--hub-ok); }
.pg-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--hub-lift); font-size: 12px; font-weight: 650; margin-right: 4px; white-space: nowrap; }
.pg-tag.ok { color: var(--hub-ok); background: color-mix(in srgb, var(--hub-ok) 14%, transparent); }
.pg-tag.warn { color: var(--hub-warn); background: color-mix(in srgb, var(--hub-warn) 16%, transparent); }
.pg-tag.danger { color: var(--hub-danger); background: color-mix(in srgb, var(--hub-danger) 14%, transparent); }
.pg-tag.accent { color: var(--hub-accent-text); background: rgba(var(--hub-accent-rgb), 0.14); }
.pg-plate { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 24px; padding: 0 7px; border-radius: 6px; color: #fff; font-weight: 800; font-size: 13px; }
.pg-seg { display: inline-flex; border: 1px solid var(--hub-edge); border-radius: 9px; overflow: hidden; }
.pg-seg button { padding: 6px 12px; font-weight: 600; color: var(--hub-text-dim); }
.pg-seg button.on { background: rgba(var(--hub-accent-rgb), 0.14); color: var(--hub-accent-text); }
.pg-acts { display: inline-flex; gap: 6px; }
.ok { color: var(--hub-ok); } .warn { color: var(--hub-warn); } .bad { color: var(--hub-danger); }

/* the table */
.pg-tablebox { background: var(--hub-panel); border: 1px solid var(--hub-hairline); border-radius: 14px; overflow: hidden; }
.pg-tablebar { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--hub-hairline); }
.pg-search { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: 9px; background: var(--hub-field); border: 1px solid var(--hub-hairline); width: 280px; color: var(--hub-text-dim); }
.pg-search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--hub-text); font: inherit; outline: none; }
.pg-count { color: var(--hub-text-dim); font-size: 13px; }
.pg-tablewrap { overflow: auto; max-height: calc(100vh - 220px); }
.pg-table { width: 100%; border-collapse: collapse; }
.pg-table th { position: sticky; top: 0; background: var(--hub-panel); text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--hub-text-dim); font-weight: 700; padding: 9px 12px; border-bottom: 1px solid var(--hub-hairline); z-index: 1; }
.pg-table td { padding: 9px 12px; border-bottom: 1px solid var(--hub-hairline); vertical-align: middle; }
.pg-table tr.click { cursor: pointer; }
.pg-table tr.click:hover td { background: var(--hub-hover); }
.pg-table .r { text-align: right; }
.pg-empty { padding: 36px 20px; text-align: center; color: var(--hub-text-dim); }

/* the form */
.pg-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; min-width: 0; }
.pg-field.grow { flex: 1; }
.pg-label { font-size: 12.5px; font-weight: 650; color: var(--hub-text-soft); }
.pg-hint { font-size: 11.5px; color: var(--hub-text-dim); }
.pg-in { height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--hub-edge); background: var(--hub-field); color: var(--hub-text); font: inherit; min-width: 0; width: 100%; }
.pg-in:focus { outline: none; border-color: var(--hub-accent); box-shadow: 0 0 0 3px rgba(var(--hub-accent-rgb), 0.18); }
select.pg-in { padding-right: 6px; }
.pg-colour { width: 64px; height: 36px; border: 1px solid var(--hub-edge); border-radius: 8px; background: var(--hub-field); padding: 3px; }
.pg-check { display: flex; align-items: center; gap: 9px; margin: 4px 0 12px; cursor: pointer; }
.pg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
/* the look's switch: the schedule-bar switch (base.css) with the sun (light) or the moon (dark) */
.pg-look { display: flex; align-items: center; gap: 12px; }
.pg-look-word { font-weight: 600; color: var(--hub-text-soft); }
.pg-look-switch { display: flex; align-items: center; padding: 2px; border: 0; background: none; cursor: pointer; border-radius: 99px; }
.pg-look-switch:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(var(--hub-accent-rgb), 0.35); }
.pg-chip { padding: 6px 11px; border-radius: 99px; border: 1px solid var(--hub-edge); color: var(--hub-text-soft); font-weight: 600; font-size: 13px; }
.pg-chip.on { background: rgba(var(--hub-accent-rgb), 0.16); border-color: rgba(var(--hub-accent-rgb), 0.5); color: var(--hub-accent-text); }
.pg-listedit { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.pg-absence { background: var(--hub-lift); border-radius: 10px; padding: 10px 12px 2px; margin-bottom: 14px; }
.pg-absence .pg-row { margin-bottom: 8px; }

/* the side panel */
.pg-scrim { position: fixed; inset: 0; background: var(--hub-scrim); z-index: 40; display: flex; justify-content: flex-end; animation: pg-fade 0.15s ease-out; }
.pg-side { width: min(560px, 100%); height: 100%; background: var(--hub-panel); display: flex; flex-direction: column; box-shadow: var(--hub-shadow); animation: pg-in 0.18s ease-out; }
.pg-side header { display: flex; align-items: center; gap: 10px; padding: 18px 22px; border-bottom: 1px solid var(--hub-hairline); }
.pg-sidebody { flex: 1; overflow: auto; padding: 18px 22px; }
.pg-side footer { display: flex; align-items: center; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--hub-hairline); }
.pg-daynames { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 4px 0 12px; }
.pg-daynames.three { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.pg-dayname { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pg-dayname small { color: var(--hub-text-dim); font-size: 11px; }
.pg-x { width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: var(--hub-text-dim); font-size: 20px; }
.pg-x:hover { background: var(--hub-hover); color: var(--hub-text); }
@keyframes pg-fade { from { opacity: 0; } }
@keyframes pg-in { from { transform: translateX(24px); opacity: 0.6; } }

/* --- the overview --------------------------------------------------------------------------------- */

.db-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 16px; }
.db-tile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; padding: 16px 18px; border-radius: 14px; background: var(--hub-panel); border: 1px solid var(--hub-hairline); }
.db-tile:hover { border-color: rgba(var(--hub-accent-rgb), 0.5); }
.db-tile svg { grid-row: span 2; color: var(--hub-accent-text); }
.db-tile b { font-size: 26px; font-weight: 800; }
.db-tile span { color: var(--hub-text-dim); }
.db-tile small { grid-column: 2; color: var(--hub-warn); }
.db-todo { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 10px; text-align: left; margin-bottom: 4px; }
.db-todo:hover { background: var(--hub-hover); }
.db-todo.warn svg:first-child { color: var(--hub-warn); }
.db-todo.err svg:first-child { color: var(--hub-danger); }
.db-days { display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); gap: 10px; overflow-x: auto; }
.db-day { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 12px; border: 1px solid var(--hub-hairline); text-align: left; min-height: 104px; }
.db-day:hover { background: var(--hub-hover); }
.db-day.ok { border-top: 3px solid var(--hub-ok); }
.db-day.warn { border-top: 3px solid var(--hub-warn); }
.db-day.none { border-top: 3px solid var(--hub-edge); }
.db-state { font-weight: 700; font-size: 12.5px; margin-top: auto; }
.db-state.ok { color: var(--hub-ok); } .db-state.warn { color: var(--hub-warn); }

/* --- the line editor (the Lines page; RosterFlow's Routes tab: `.rf-ed`) ----------------------------- */

.ed-host { --ed-bg: var(--hub-ground); --ed-sheet: var(--hub-panel); --ed-text: var(--hub-text); --ed-dim: var(--hub-text-dim); --ed-line: var(--hub-hairline); --ed-field: var(--hub-field); --ed-edge: var(--hub-edge); --ed-hover: var(--hub-hover); --ed-accent: var(--hub-accent); --ed-accent-rgb: var(--hub-accent-rgb); --ed-ok: var(--hub-ok); --ed-warn: var(--hub-warn);
  display: flex; gap: 14px; min-height: 0; flex: 1; color: var(--ed-text); }
.rf-ed { --ed-bg: var(--rf-bg); --ed-sheet: var(--rf-sheet); --ed-text: var(--rf-text); --ed-dim: var(--rf-dim); --ed-line: var(--rf-line); --ed-field: var(--rf-field); --ed-edge: var(--rf-line); --ed-hover: var(--rf-hover2); --ed-accent: var(--rf-accent); --ed-accent-rgb: var(--rf-accent-rgb); --ed-ok: var(--rf-ok); --ed-warn: var(--rf-warn);
  position: absolute; inset: 0; padding: 12px; gap: 12px; font-size: 12.5px; user-select: text; }
.rf-ed input, .rf-ed select { font-size: 12.5px; }
.ed-list { width: 270px; flex: none; display: flex; flex-direction: column; background: var(--ed-sheet); border: 1px solid var(--ed-line); border-radius: 12px; overflow: hidden; }
.ed-listhead { display: flex; gap: 8px; padding: 10px; border-bottom: 1px solid var(--ed-line); }
.ed-items { flex: 1; overflow: auto; padding: 6px; }
.ed-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: 9px; text-align: left; }
.ed-item:hover { background: var(--ed-hover); }
.ed-item.on { background: rgba(var(--ed-accent-rgb), 0.16); }
.ed-item b { display: block; font-weight: 700; }
.ed-item small { display: block; color: var(--ed-dim); font-size: 0.86em; }
.ed-warn { color: var(--ed-warn); display: inline-flex; }
.ed-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--ed-sheet); border: 1px solid var(--ed-line); border-radius: 12px; overflow: hidden; }
.ed-wait { padding: 28px; color: var(--ed-dim); }
.ed { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.ed-bar { display: flex; align-items: flex-end; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--ed-line); flex-wrap: wrap; }
.ed-plate { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 36px; padding: 0 9px; border-radius: 8px; color: #fff; font-weight: 800; font-size: 17px; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25); }
.ed-plate.small { min-width: 34px; height: 26px; font-size: 13px; border-radius: 6px; }
.ed-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ed-f > span { font-size: 0.86em; font-weight: 650; color: var(--ed-dim); }
.ed-f.inline { flex-direction: row; align-items: center; gap: 8px; }
.ed-f.grow, .ed .grow { flex: 1; min-width: 0; }
.ed-in { height: 34px; padding: 0 9px; border-radius: 7px; border: 1px solid var(--ed-edge); background: var(--ed-field); color: var(--ed-text); font: inherit; min-width: 0; }
.ed-in:focus { outline: none; border-color: var(--ed-accent); }
.ed-in:disabled { opacity: 0.45; }
.ed-in.num { width: 76px; text-align: right; }
.ed-in.time { width: 74px; text-align: center; }
.ed-colour { width: 52px; height: 34px; border: 1px solid var(--ed-edge); border-radius: 7px; background: var(--ed-field); padding: 3px; }
.ed-tools { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.ed-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--ed-edge); font-weight: 650; color: var(--ed-text); white-space: nowrap; }
.ed-btn:hover:not(:disabled) { background: var(--ed-hover); }
.ed-btn:disabled { opacity: 0.4; }
.ed-btn.text { border-color: transparent; color: var(--ed-accent); }
.ed-btn.solid { background: var(--ed-accent); border-color: var(--ed-accent); color: #fff; }
.ed-ib { width: 26px; height: 26px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: var(--ed-dim); }
.ed-ib:hover:not(:disabled) { background: var(--ed-hover); color: var(--ed-text); }
.ed-ib:disabled { opacity: 0.3; }
.ed-status { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 8px 16px; border-bottom: 1px solid var(--ed-line); }
.ed-tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 6px; background: var(--ed-hover); font-size: 0.9em; font-weight: 650; color: var(--ed-dim); }
.ed-tag.ok { color: var(--ed-ok); } .ed-tag.warn { color: var(--ed-warn); } .ed-tag.accent { color: var(--ed-accent); }
.ed-body { flex: 1; overflow: auto; padding: 4px 16px 24px; }
.ed-sec { border-bottom: 1px solid var(--ed-line); padding: 14px 0 16px; }
.ed-sec:last-child { border-bottom: 0; }
.ed-sec h3 { margin: 0 0 10px; font-size: 0.82em; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ed-dim); }
.ed-dirs { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.ed-dirtab { padding: 7px 12px; border-radius: 8px; font-weight: 650; color: var(--ed-dim); border: 1px solid transparent; }
.ed-dirtab small { font-weight: 500; }
.ed-dirtab.on { color: var(--ed-text); border-color: var(--ed-edge); background: var(--ed-field); }
.ed-stops { border: 1px solid var(--ed-line); border-radius: 10px; overflow: hidden; }
.ed-srow { display: grid; grid-template-columns: 34px 1fr 160px 90px 90px; align-items: center; gap: 8px; padding: 5px 10px; border-bottom: 1px solid var(--ed-line); min-height: 40px; }
.ed-srow:last-child { border-bottom: 0; }
.ed-srow.head { min-height: 32px; font-size: 0.82em; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ed-dim); font-weight: 700; background: var(--ed-field); }
.ed-srow .n { color: var(--ed-dim); font-variant-numeric: tabular-nums; }
.ed-srow small { color: var(--ed-dim); }
.ed-srow .r { text-align: right; }
.ed-srow .acts { display: flex; gap: 2px; justify-content: flex-end; }
.ed-empty { padding: 14px; color: var(--ed-dim); margin: 0; }
.ed-adder { display: flex; gap: 8px; margin-top: 10px; }
.ed-dirfoot { display: flex; align-items: center; gap: 18px; margin-top: 10px; flex-wrap: wrap; }
.ed-dirfoot .ed-in { width: 260px; }
.ed-days { border: 1px solid var(--ed-line); border-radius: 10px; overflow: hidden; }
.ed-drow { display: grid; grid-template-columns: 1.2fr 60px 100px 100px 110px 110px 1fr; align-items: center; gap: 8px; padding: 6px 10px; min-height: 44px; }
.ed-drow.head { min-height: 32px; font-size: 0.82em; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ed-dim); font-weight: 700; background: var(--ed-field); }
.ed-dgroup { border-top: 1px solid var(--ed-line); }
.ed-dgroup.off { opacity: 0.5; }
.ed-drow input[type=checkbox], .ed-check input { width: 16px; height: 16px; accent-color: var(--ed-accent); }
.ed-bands { padding: 2px 10px 10px 40px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.ed-band { display: flex; align-items: center; gap: 8px; color: var(--ed-dim); }
.ed-grid { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.ed-checks { display: flex; gap: 16px; flex-wrap: wrap; margin: 4px 0 12px; }
.ed-check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.ed-note { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-radius: 8px; background: var(--ed-hover); color: var(--ed-dim); margin: 0 0 10px; }
.ed.compact .ed-srow { grid-template-columns: 30px 1fr 120px 80px 86px; }
/* (the Settings' Schedulo project card: `pages/project.js`) */
.pj-name { display: flex; flex-direction: column; gap: 3px; margin: 0 0 8px; }
.pj-name code { font-size: 0.82em; color: var(--hub-text-dim); word-break: break-all; }
.pj-save { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 8px; }
.pj-problems { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow: auto; font-size: 0.9em; }

/* (a line of the Schedulo project: `pages/txcline.js`) */
.tx-desc { margin: -2px 0 10px; color: var(--ed-dim); }
.tx-desc small { margin-left: 6px; opacity: 0.8; }
.tx-split { display: flex; gap: 14px; align-items: flex-start; }
@media (max-width: 1180px) { .tx-split { flex-wrap: wrap; } }
.tx .ed-note > span { flex: 1; min-width: 0; }
.tx-stops { flex: 1 1 300px; min-width: 0; border: 1px solid var(--ed-line); border-radius: 10px; overflow: hidden; }
.tx-row { display: grid; grid-template-columns: 30px 1fr 112px 64px; align-items: center; gap: 8px; padding: 4px 10px; border-bottom: 1px solid var(--ed-line); min-height: 32px; }
.tx-row.head { min-height: 30px; font-size: 0.82em; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ed-dim); font-weight: 700; background: var(--ed-field); }
.tx-row b { font-weight: 550; }
.tx-row.timing b { font-weight: 750; }
.tx-row.hover { background: rgba(var(--ed-accent-rgb), 0.1); }
.tx-row small { color: var(--ed-dim); }
.tx-row .n { color: var(--ed-dim); font-variant-numeric: tabular-nums; }
.tx-row .code { font-family: ui-monospace, Consolas, monospace; font-size: 0.86em; color: var(--ed-dim); }
.tx-row .r { text-align: right; font-variant-numeric: tabular-nums; }
.tx-row .dim, .tx-jrow .dim { color: var(--ed-dim); }
.tx-row .cut, .tx-jrow .cut { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-tp { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 4px; background: #071433; color: #fff; font-size: 0.72em; font-weight: 800; letter-spacing: 0.04em; vertical-align: 1px; }
.tx-foot { padding: 8px 10px; color: var(--ed-dim); font-size: 0.9em; background: var(--ed-field); }
.tx-map { position: relative; flex: none; overflow: hidden; border-radius: 10px; border: 1px solid var(--ed-line, rgba(7, 20, 51, 0.18)); cursor: grab; touch-action: none; user-select: none;
  background: repeating-linear-gradient(0deg, transparent 0 63px, rgba(7, 20, 51, 0.05) 63px 64px), repeating-linear-gradient(90deg, transparent 0 63px, rgba(7, 20, 51, 0.05) 63px 64px), #e9eef3; position: sticky; top: 0; }
.tx-map:active { cursor: grabbing; }
.tx-map.empty { display: flex; align-items: center; justify-content: center; width: 400px; height: 200px; color: var(--ed-dim); cursor: default; }
.tx-tiles { position: absolute; inset: 0; }
.tx-tile { position: absolute; width: 256px; height: 256px; pointer-events: none; background-size: 256px 256px; }
.tx-svg { position: absolute; inset: 0; }
.tx-label text { font: 650 11px Montserrat, system-ui, sans-serif; fill: #071433; }
.tx-label text.halo { stroke: #fff; stroke-width: 3.5px; stroke-linejoin: round; fill: #fff; }
.tx-label text.end { font-weight: 800; }
.tx-zoom { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; gap: 4px; }
.tx-zoom button { width: 28px; height: 28px; border-radius: 6px; background: #fff; color: #071433; font-weight: 800; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
.tx-legend { position: absolute; left: 8px; bottom: 8px; display: flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.92); color: #071433; font-size: 11px; font-weight: 600; }
.tx-legend .dot { width: 9px; height: 9px; border-radius: 50%; background: #00a6e8; border: 1.5px solid #fff; margin-left: 4px; }
.tx-legend .dot.tp { width: 11px; height: 11px; background: #fff; border: 2.5px solid #071433; margin-left: 0; }
.tx-side { flex: none; display: flex; flex-direction: column; gap: 8px; width: 522px; max-width: 100%; position: sticky; top: 0; }
.tx-side > .tx-map { position: relative; }
.tx-roads { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-size: 0.86em; color: var(--ed-dim); }
.tx-roads > span { flex: 1 1 240px; }
.tx-big { position: absolute; top: 8px; left: 8px; width: 28px; height: 28px; border-radius: 6px; background: #fff; color: #071433; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
.tx-way { margin-left: 8px; padding-left: 8px; border-left: 1px solid rgba(7, 20, 51, 0.2); font-weight: 500; }
.tx-map.pick { cursor: crosshair; }
.tx-overlay { position: fixed; inset: 0; z-index: 5000; padding: 28px; background: rgba(7, 20, 51, 0.55); display: flex; }
.tx-overlay .tx-map { flex: 1; position: relative; top: auto; width: auto; height: auto; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4); }
.tx-attr { position: absolute; right: 0; bottom: 0; padding: 1px 5px; background: rgba(255, 255, 255, 0.8); color: #333; font-size: 10px; }
.tx-h { margin: 18px 0 8px; font-size: 0.82em; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ed-dim); }
.tx-jour { border: 1px solid var(--ed-line); border-radius: 10px; overflow: hidden; max-height: 420px; overflow-y: auto; }
.tx-jrow { display: grid; grid-template-columns: 64px 64px 110px 70px 1fr 220px; align-items: center; gap: 8px; padding: 4px 10px; border-bottom: 1px solid var(--ed-line); min-height: 32px; }
.tx-jrow:last-child { border-bottom: 0; }
.tx-jrow.head { position: sticky; top: 0; min-height: 30px; font-size: 0.82em; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ed-dim); font-weight: 700; background: var(--ed-field); }
.tx-jrow .tm { font-variant-numeric: tabular-nums; font-weight: 650; }
.tx-jrow small { color: var(--ed-dim); }
.tx-groups { display: flex; gap: 4px; flex-wrap: wrap; }
.tx-groups .ed-tag { height: 20px; }
.lines-page { padding-bottom: 20px; }
.app-ed { min-height: 520px; }

/* --- the duty card ---------------------------------------------------------------------------------- */

.dc-pick { margin-bottom: 14px; }
.dc-pick .co-para { margin: 8px 0 0; }
.dc-card { background: #fff; color: #000; margin: 0 auto; padding: 14px; font-family: "Montserrat", sans-serif; font-size: 13px; border: 1px solid #ccc; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.dc-card.slip { width: 80mm; }
.dc-card.a4 { width: 100%; }
.dc-head { display: flex; justify-content: space-between; gap: 10px; border-bottom: 2px solid #000; padding-bottom: 6px; margin-bottom: 8px; }
.dc-big { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.dc-row { display: flex; justify-content: space-between; padding: 2px 0; }
.dc-trips { width: 100%; border-collapse: collapse; margin-top: 10px; }
.dc-trips th, .dc-trips td { text-align: left; padding: 3px 4px; border-bottom: 1px solid #ccc; font-size: 12px; }
.dc-trips tr.empty td { color: #555; font-style: italic; }
/* (the pocket card: A6 across, the number down its coloured side, the trips on the right) */
.dc-card.pocket { width: 148mm; height: 105mm; padding: 4mm; display: flex; gap: 4mm; font-size: 8.5pt; overflow: hidden; }
.pocket .dc-side { flex: none; width: 30mm; border-radius: 2.5mm; padding: 3mm 2.5mm; display: flex; flex-direction: column; gap: 1mm; }
.pocket .dc-side small { text-transform: uppercase; letter-spacing: 0.08em; font-size: 7pt; font-weight: 700; }
.pocket .dc-num { font-size: 24pt; font-weight: 800; line-height: 1.05; overflow-wrap: anywhere; }
.pocket .dc-side .dc-day { margin-top: auto; text-transform: none; letter-spacing: 0; font-weight: 600; }
.pocket .dc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pocket .dc-ph { display: flex; justify-content: space-between; gap: 3mm; font-size: 10pt; border-bottom: 0.4mm solid #000; padding-bottom: 1mm; }
.pocket .dc-meta { display: flex; flex-wrap: wrap; gap: 0.5mm 4mm; padding: 1.2mm 0; border-bottom: 0.2mm solid #bbb; margin-bottom: 1.2mm; }
.pocket .dc-list { flex: 1; min-height: 0; column-gap: 4mm; column-fill: auto; }
.pocket .dc-list.two { column-count: 2; column-rule: 0.2mm solid #ddd; }
.pocket .dc-list.many { font-size: 7pt; }
.pocket .dc-list > div { display: flex; gap: 1.5mm; padding: 0.35mm 0; break-inside: avoid; }
.pocket .dc-list > div > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pocket .dc-list i { font-style: normal; font-weight: 700; }
.pocket .dc-list .empty { color: #555; font-style: italic; }
.pocket .dc-list .note { font-style: italic; font-weight: 600; }
/* (A4 with the day's bar: driving in colour, breaks hatched over it, the hours under it) */
.dc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.dc-daybar { margin: 12px 0 4px; }
.dc-bar { position: relative; height: 26px; background: #f0f0f0; border: 1px solid #111; }
.dc-bar i { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; font-style: normal; font-size: 10px; font-weight: 700; }
.dc-bar i span { white-space: nowrap; padding: 0 3px; }
.dc-bar i.brk { background: repeating-linear-gradient(135deg, #999 0 3px, #fff 3px 6px); border-left: 1px solid #111; border-right: 1px solid #111; }
.dc-hours { position: relative; height: 16px; font-size: 10px; color: #333; }
.dc-hours span { position: absolute; top: 2px; transform: translateX(-50%); }
.dc-hours span:first-child { transform: none; }
.dc-hours span:last-child { transform: translateX(-100%); }
.dc-hours span::before { content: ""; position: absolute; left: 50%; top: -3px; height: 3px; border-left: 1px solid #111; }
.dc-flow { font-size: 11.5px; line-height: 1.5; padding: 4px 0 2px; }
/* (the lanyard card: credit-card size, the number on navy) */
.dc-card.lanyard { width: 54mm; height: 86mm; padding: 0; border-radius: 3mm; overflow: hidden; display: flex; flex-direction: column; font-size: 8pt; }
.lanyard .dc-top { background: #0f1f3d; color: #fff; text-align: center; padding: 6mm 3mm 3mm; position: relative; display: flex; flex-direction: column; gap: 0.5mm; }
.lanyard .dc-top::before { content: ""; position: absolute; top: 2mm; left: 50%; width: 9mm; height: 1.6mm; margin-left: -4.5mm; border-radius: 0.8mm; background: #fff; opacity: 0.6; }
.lanyard .dc-top small { text-transform: uppercase; letter-spacing: 0.1em; font-size: 7pt; font-weight: 700; }
.lanyard .dc-top small:last-child { text-transform: none; letter-spacing: 0; font-weight: 500; }
.lanyard .dc-num { font-size: 26pt; font-weight: 800; line-height: 1.05; overflow-wrap: anywhere; }
.lanyard .dc-rows { flex: 1; padding: 3mm; display: flex; flex-direction: column; gap: 1.4mm; }
.lanyard .dc-rows > div { display: flex; gap: 2mm; border-bottom: 0.2mm solid #ddd; padding-bottom: 1mm; }
.lanyard .dc-rows b { flex: none; min-width: 12mm; }
.lanyard .dc-rows span { min-width: 0; overflow-wrap: anywhere; }
.lanyard .dc-foot { padding: 1.5mm 3mm 2.5mm; font-size: 6.5pt; color: #444; text-align: center; }
@media print {
  html.dc-printing body > #app, html.dc-printing body > *:not(#dutycard-host), html.dc-printing .co-dialog .head, html.dc-printing .co-dialog .foot, html.dc-printing .dc-pick { display: none !important; }
  html.dc-printing, html.dc-printing body, html.dc-printing #dutycard-host { background: #fff !important; }
  html.dc-printing .co-scrim { position: static; background: none; padding: 0; display: block; }
  html.dc-printing .co-dialog, html.dc-printing .co-dialog > .body { display: block; box-shadow: none; border: 0; width: auto !important; max-height: none; overflow: visible; padding: 0; margin: 0; background: none; animation: none; }
  html.dc-printing .dc-card { border: 0; margin: 0; }
  html.dc-printing .dc-card.lanyard { border-radius: 0; }
}

/* --- the licence: the activation screen (`licence.js`) and the Settings' Licence card ------------ */

.lic-card { border-top: 4px solid #00a6e8; }
.lic-card .lic-title { margin: 0 0 4px; font-size: 18px; font-weight: 750; text-transform: none; letter-spacing: -0.01em; color: var(--hub-text); }
.lic-entry { margin-top: 14px; }
.lic-entry .pg-field { margin-bottom: 10px; }
.lic-key { height: auto; min-height: 96px; padding: 9px 10px; resize: vertical; line-height: 1.45; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12.5px; word-break: break-all; user-select: text; }
.lic-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lic-spin { display: inline-flex; gap: 8px; align-items: center; color: var(--hub-text-dim); font-size: 12.5px; }
.lic-spin .spinner { width: 15px; height: 15px; }
.lic-error { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; color: var(--hub-danger); font-size: 13px; }
.lic-error svg { flex: none; margin-top: 1px; }
.lic-code { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 12px; border-radius: 10px; background: var(--hub-lift); }
.lic-code .pg-label { display: block; margin-bottom: 3px; }
.lic-code code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; color: var(--hub-text); }
.lic-foot { margin: 14px 0 0; }
.lic-tags { margin: -2px 0 12px; }
.lic-facts { display: grid; grid-template-columns: max-content 1fr; gap: 7px 18px; margin: 0 0 6px; font-size: 13px; }
.lic-facts dt { color: var(--hub-text-dim); }
.lic-facts dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.lic-facts code { font-size: 12.5px; }
@media (max-width: 520px) {
  .lic-code { flex-wrap: wrap; }
  .lic-facts { grid-template-columns: 1fr; gap: 2px; }
  .lic-facts dd { margin-bottom: 6px; }
}
.dc-trips tr.note td { font-style: italic; font-weight: 600; padding-top: 6px; }

/* Working together (collab.js): the code to give, who is in the session, the guest's line when
   the host does not answer. */
.pg-side.collab .pg-sidebody > p { color: var(--hub-text-soft); line-height: 1.5; margin: 0 0 14px; }
.collab-code { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 12px; background: var(--hub-lift); margin: 6px 0 10px; }
.collab-code b { flex: 1; font-size: 34px; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; color: var(--hub-text); user-select: all; }
.collab-people { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.collab-person { display: flex; align-items: center; gap: 10px; }
.collab-person i { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; font-weight: 700; color: #0e121c; background: var(--hub-ok); flex: none; }
.collab-person i.host { background: var(--hub-accent-text); }
.pg-side.collab .pg-link { background: none; border: 0; padding: 4px 0; color: var(--hub-accent-text); cursor: pointer; font: inherit; }
.collab-lost { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: var(--hub-panel); color: var(--hub-text); box-shadow: var(--hub-shadow); border: 1px solid var(--hub-danger); }
.collab-lost svg { color: var(--hub-danger); }
.collab-lost button { background: none; border: 1px solid var(--hub-edge); color: var(--hub-text); border-radius: 8px; padding: 4px 10px; cursor: pointer; font: inherit; }
/* the project changed since it was read (in Schedulo TXC): its bar, and a dot on Reload */
.pj-changed { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 59; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 10px 14px; border-radius: 10px; background: var(--hub-panel); color: var(--hub-text); box-shadow: var(--hub-shadow); border: 1px solid var(--hub-accent); }
.pj-changed svg { color: var(--hub-accent); flex: none; }
.pj-changed button { flex: none; background: none; border: 1px solid var(--hub-edge); color: var(--hub-text); border-radius: 8px; padding: 4px 10px; cursor: pointer; font: inherit; }
.pj-changed button.go { background: var(--hub-accent); border-color: var(--hub-accent); color: #ffffff; }
.pj-changed button:disabled { opacity: 0.6; cursor: default; }
.pj-new { position: relative; }
.pj-new::after { content: ""; position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--hub-accent); }
.side-item.pj-new::after { top: 8px; right: auto; left: 30px; }
.collab-code.long b { font-size: 15px; letter-spacing: 0.04em; line-height: 1.5; word-break: break-all; font-family: ui-monospace, Consolas, monospace; }
.collab-level { width: auto; height: 30px; flex: none; }
.collab-ask { padding: 12px; border-radius: 12px; background: var(--hub-lift); margin-bottom: 14px; display: flex; flex-direction: column; gap: 10px; }
.collab-ask-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.collab-wait { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 30px 0; color: var(--hub-text-soft); }

/* --- about (the planning's About tab, the side bar's About page, the status bar's window) -------- */

.rf-about .brand { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.rf-about .brand .sub { color: var(--hub-text-dim); margin-top: 4px; }
.rf-about dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 16px; }
.rf-about dt { color: var(--hub-text-dim); }
.rf-about dd { margin: 0; font-weight: 600; word-break: break-all; }
.rf-about h3 { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hub-text-dim); }
.rf-about .credits { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 16px; padding: 0; list-style: none; }
.rf-about .credits a { color: var(--hub-accent-text); font-weight: 500; text-decoration: none; }
.rf-about .credits a:hover { text-decoration: underline; }
.rf-about .copy { color: var(--hub-text-faint); font-size: 12px; margin: 0; }
.rf-about-page { height: 100%; overflow: auto; padding: 28px 32px; background: var(--rf-bg, transparent); color: var(--rf-text, var(--hub-text)); }
.pg .rf-about-page { height: auto; padding: 0; }
.rf-about-card { max-width: 560px; padding: 24px 26px; border-radius: 14px; background: var(--hub-panel); border: 1px solid var(--hub-hairline); }
.rf-about-card .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hub-hairline); }
/* (the version in the menu's lower left corner: the planning's rail and the side bar) */
.menu-ver { flex: none; padding: 6px 12px 0; font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--hub-text-dim); white-space: nowrap; cursor: default; }
.rf-rail .menu-ver { padding: 4px 10px 0; font-size: 9.2px; color: var(--sr-rail-sec); }
.rf.rail-folded .rf-rail .menu-ver { padding: 4px 0 0; text-align: center; font-size: 8px; }
.rf .rf-about-card { background: var(--rf-bar); border-color: var(--rf-line); }
/* (Roadside Publicity, `rosterflow/publicity.js`: a kind's styles as cards, a card opened large) */
.rf-pub { position: relative; height: 100%; overflow: auto; padding: 24px 28px 40px; background: var(--rf-bg); color: var(--rf-text); }
.rf-pub-head { display: flex; align-items: flex-start; gap: 18px; }
.rf-pub-head h1 { margin: 0 0 4px; font-size: 22px; font-weight: 700; }
.rf-pub-head p { margin: 0; max-width: 760px; color: var(--rf-dim); line-height: 1.45; }
.rf-pub-picks { display: flex; align-items: center; gap: 6px; max-width: 320px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--rf-line); background: var(--rf-bar); font-size: 12px; color: var(--rf-dim); }
.rf-pub-picks .hub-icon { color: var(--rf-accent); flex: none; }
.rf-pub-note { margin: 12px 0 16px; font-size: 12px; color: var(--rf-faint, var(--rf-dim)); }
.rf-pub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.rf-pub-card { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: var(--rf-bar); border: 1px solid var(--rf-line); }
.rf-pub-card.on { border-color: var(--rf-accent); box-shadow: 0 0 0 1px var(--rf-accent); }
.rf-pub-card .thumb { display: block; padding: 0; border: 0; background: #fff; cursor: zoom-in; aspect-ratio: 4 / 3; }
.rf-pub-card .thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.rf-pub-card .txt { padding: 10px 12px 12px; }
.rf-pub-card p { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; }
.rf-pub-card p.best { color: var(--rf-dim); }
.rf-pub .top { display: flex; align-items: center; gap: 8px; }
.rf-pub .code { flex: none; padding: 1px 6px; border-radius: 5px; background: var(--rf-accent); color: #fff; font-size: 11px; font-variant-numeric: tabular-nums; }
.rf-pub .tick { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--rf-line); background: transparent; color: var(--rf-text); font: inherit; font-size: 12px; cursor: pointer; }
.rf-pub .tick.on { background: var(--rf-accent); border-color: var(--rf-accent); color: #fff; }
.rf-pub .rf-pub-print { flex: none; padding: 6px 12px; font-weight: 600; }
.rf-pub .rf-pub-print:disabled { opacity: .45; cursor: default; }
.rf-pub .x { padding: 2px; border: 0; background: transparent; color: var(--rf-text); cursor: pointer; }
.rf-pub-over { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 32px; background: rgba(0, 0, 0, 0.55); }
.rf-pub-big { display: flex; flex-direction: column; gap: 10px; max-width: min(1100px, 100%); max-height: 100%; padding: 14px 16px; border-radius: 12px; background: var(--rf-bar); border: 1px solid var(--rf-line); }
.rf-pub-big img { min-height: 0; flex: 1; object-fit: contain; background: #fff; border-radius: 6px; }
.rf-pub-big p { margin: 0; font-size: 13px; color: var(--rf-dim); }
.rf-pub-card .make { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 12px; border-radius: 7px; border: 0; background: var(--rf-accent); color: #fff; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.rf-pub-card .make:hover { filter: brightness(1.1); }
/* (Create from my routes, `rosterflow/pubmake.js`: what it asks on the left, the sheet as it prints) */
.pm-dialog .body { padding: 0; overflow: hidden; }
.pm { display: flex; height: 100%; min-height: 0; }
.pm-side { flex: 0 0 320px; display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; overflow-y: auto; border-right: 1px solid var(--hub-edge); }
.pm-field { display: flex; flex-direction: column; gap: 6px; }
.pm-field > span { font-size: var(--co-caps); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hub-text-dim); }
.pm-field small { color: var(--hub-text-soft); font-size: var(--co-note); line-height: 1.4; }
.pm-field .co-seg { flex-wrap: wrap; }
.pm-check { display: flex; align-items: center; gap: 6px; font-size: var(--co-note); }
.pm-access { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 4px 0; border-bottom: 1px solid rgba(127, 127, 127, 0.25); }
.pm-access > b { flex: 1 0 100%; font-size: var(--co-note); }
.pm-field.pm-row { flex-direction: row; align-items: center; }
.pm-field.pm-row > span { min-width: 3em; }
.pm-note { margin: 0; color: var(--hub-text-dim); font-size: var(--co-note); line-height: 1.45; }
.pm-note.bad { color: var(--hub-bad, #d62e2e); }
.pm-view { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 20px; overflow: auto; position: relative; background: var(--hub-hover); }
.pm-sheet { overflow: hidden; }
.pm-sheet.move { cursor: grab; touch-action: none; }
.pm-sheet.move:active { cursor: grabbing; }
.pm-zoom { position: absolute; right: 16px; bottom: 12px; display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 10px; background: var(--hub-panel); border: 1px solid var(--hub-edge); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15); }
.pm-zoom button { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 7px; background: none; color: var(--hub-text); cursor: pointer; }
.pm-zoom button:hover { background: var(--hub-hover); }
.pm-zoom .pm-scale { width: 96px; height: 30px; border: 1px solid var(--hub-edge); border-radius: 7px; background: var(--hub-field, transparent); text-align: center; padding: 0 6px; font-size: var(--co-note); font-weight: 700; color: var(--hub-text-dim); font-variant-numeric: tabular-nums; }
.pm-sheet { height: 100%; max-width: 100%; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25); background: #fff; }
.pm-sheet svg { display: block; width: 100%; height: 100%; }
.pm-busy { color: var(--hub-text-dim); font-size: var(--co-note); }
.pm-roads { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pm-caps { margin-top: 4px; font-size: var(--co-caps); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hub-text); border-top: 1px solid var(--hub-edge); padding-top: 14px; }
.pm-group { border: 1px solid var(--hub-edge); border-radius: 10px; background: var(--hub-hover); }
.pm-group > summary { cursor: pointer; padding: 10px 12px; font-weight: 700; font-size: var(--co-control); list-style: none; display: flex; align-items: center; gap: 8px; }
.pm-group > summary::-webkit-details-marker { display: none; }
.pm-group > summary::before { content: '▸'; color: var(--hub-text-dim); transition: transform 0.15s; }
.pm-group[open] > summary::before { transform: rotate(90deg); }
.pm-group-body { display: flex; flex-direction: column; gap: 12px; padding: 4px 12px 14px; }
.pm-colour { display: flex; align-items: center; gap: 10px; font-size: var(--co-control); cursor: pointer; }
.pm-colour input[type="color"] { flex: none; width: 34px; height: 26px; padding: 0; border: 1px solid var(--hub-edge); border-radius: 6px; background: none; cursor: pointer; }
.pm-colour span { flex: 1; min-width: 0; }
.pm-colour span.auto { color: var(--hub-text-dim); }
.pm-reset { flex: none; width: 24px; height: 24px; border: 0; border-radius: 6px; background: none; color: var(--hub-text-dim); font-size: 16px; cursor: pointer; }
.pm-reset:hover { background: var(--hub-edge); color: var(--hub-text); }
.pm-slider { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; font-size: var(--co-control); }
.pm-slider input[type="range"] { grid-column: 1 / -1; width: 100%; }
.pm-slider b { font-weight: 600; color: var(--hub-text-dim); font-size: var(--co-note); }
.pm-stops { display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow-y: auto; padding-right: 2px; }
.pm-stop { display: flex; align-items: center; gap: 8px; }
.pm-stop .co-field { flex: 1; min-width: 0; height: 32px; }
.pm-stop .co-field.timing::placeholder { font-weight: 700; }
.pm-stop.pm-stop3 { flex-wrap: wrap; padding: 6px 0; border-top: 1px solid var(--hub-hairline); }
.pm-stop-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 12px; }
.pm-stop-name b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-stop-name b.timing { font-weight: 700; }
.pm-stop-name small { font-size: 10.5px; color: var(--hub-text-faint); }
.pm-seg3 { display: inline-flex; flex: none; border: 1px solid var(--hub-edge); border-radius: 7px; overflow: hidden; background: var(--hub-field); }
.pm-seg3 button { border: 0; background: none; padding: 5px 9px; color: var(--hub-text-dim); font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
.pm-seg3 button + button { border-left: 1px solid var(--hub-hairline); }
.pm-seg3 button.on { background: rgba(var(--hub-accent-rgb), 0.16); color: var(--hub-accent-text); }
.pm-seg3 button:disabled { opacity: 0.4; cursor: default; }
.pm-stop .co-field.pm-custom { flex: 1 0 100%; height: 30px; }
.pm-style { display: flex; align-items: center; gap: 6px; }
.pm-style .grow { flex: 1; min-width: 0; }
#pub-print { display: none; }
@media print {
  html.pub-printing body > *:not(#pub-print) { display: none !important; }
  html.pub-printing #pub-print { display: block; }
  html.pub-printing #pub-print .pub-page { break-after: page; page-break-after: always; overflow: hidden; }
  html.pub-printing #pub-print .pub-page:last-child { break-after: auto; page-break-after: auto; }
  html.pub-printing #pub-print .pub-page.pdf-out { display: none; }
  html.pub-printing #pub-print svg { display: block; width: 100%; height: 100%; }
}
.pm-slider .pm-num { display: inline-flex; align-items: center; gap: 3px; font-size: var(--co-note); color: var(--hub-text-dim); font-weight: 600; }
.pm-slider .pm-num input { width: 62px; height: 28px; padding: 0 6px; text-align: right; font-variant-numeric: tabular-nums; }
.pm-ticks { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-stop.pm-route { padding: 3px 0; cursor: pointer; }
.pm-badge { flex: none; min-width: 30px; padding: 2px 6px; border-radius: 5px; color: #fff; font-size: 11px; font-weight: 700; text-align: center; text-shadow: 0 0 2px rgba(0, 0, 0, 0.45); }
.pm-stop input[type="checkbox"]:disabled { opacity: 0.55; }
.pm-group .co-switch { user-select: none; }
.pm-view:has(.pm-zoom) { padding-bottom: 64px; }
