/* The bus company's pages in the desktop app: the whole window its own, its bar across the
   top, the way round under it, the pages filling the rest.

   Lengths are laid out for a 1440 x 820 stage; type sizes are the design's divided by 1.303
   (the face reads larger at the design's sizes). Paragraphs keep their lines 1.8 of the size
   apart. Loaded by index.html. */

:root.hub {
  /* the company's ground: the darkest of the theme in the dark look, the accent's light tint in
     the light one */
  --co-ground: #090c18;
  /* sizes (`company/kit.rs`): a dialog's title, a section's leading figure, running text, rows,
     notes, capitals, the controls' words, the dealer's talk */
  --co-title: 16.1px;
  --co-head: 13px;
  --co-body: 11.5px;
  --co-rows: 11.1px;
  --co-note: 10.4px;
  --co-caps: 9.6px;
  --co-control: 10.75px;
  --co-chat: 12.3px;
  /* words in a meaning's colour (on the light sheets made dark enough to read: company.js) */
  --co-ok: #34b26e;
  --co-warn: #e8aa46;
  --co-danger: #d93a30;
  --co-danger-text: #e36b64;
  --co-early: #7aa8ff;
  --co-line: #ffd23f;
  --co-accent2: var(--hub-accent-text);
  /* the fills of the meanings: as they are in either look */
  --co-ok-fill: 52, 178, 110;
  --co-warn-fill: 232, 170, 70;
  --co-danger-fill: 217, 58, 48;
  --co-early-fill: 122, 168, 255;
  /* a see-through white of the dark look: see-through ink in the light one */
  --co-white: 255, 255, 255;
  --co-lift: rgba(255, 255, 255, 0.237);
  --co-pill-edge: rgba(255, 255, 255, 0.561);
  --co-scrim: rgba(0, 0, 0, 0.62);
  /* see-through white and accent, worked out to match a blend in linear light (stronger on the
     dark ground than the same rgba plainly blended) */
  --aw-03: 0.156;
  --aw-04: 0.186;
  --aw-05: 0.213;
  --aw-06: 0.237;
  --aw-1: 0.316;
  --aw-12: 0.349;
  --aw-16: 0.407;
  --aw-2: 0.457;
  --ac-08: 0.266;
  --ac-09: 0.285;
  --ac-1: 0.303;
  --ac-12: 0.336;
  --ac-14: 0.366;
  --ac-16: 0.394;
  --ac-18: 0.420;
  --ac-22: 0.468;
  --ac-24: 0.490;
  --ac-28: 0.531;
  --ac-3: 0.551;
  --ac-35: 0.596;
  --ac-5: 0.714;
  --ac-55: 0.748;
  --ac-6: 0.781;
  --ac-65: 0.81;
  --ac-7: 0.842;
  --ac-8: 0.898;
  --ac-85: 0.925;
  --ac-88: 0.935;
  --ac-9: 0.951;
}
:root.hub[data-theme="light"] {
  --co-ground: var(--hub-ground);
  --co-white: 22, 20, 26;
  --co-lift: rgba(22, 20, 26, 0.2);
  --co-pill-edge: rgba(22, 20, 26, 0.46);
  /* (the light look's: ink for white, theme.rs's overlay_alpha, and the accent, in linear light) */
  --aw-03: 0.075;
  --aw-04: 0.087;
  --aw-05: 0.098;
  --aw-06: 0.108;
  --aw-1: 0.142;
  --aw-12: 0.157;
  --aw-16: 0.185;
  --aw-2: 0.210;
  --ac-08: 0.051;
  --ac-09: 0.057;
  --ac-1: 0.064;
  --ac-12: 0.077;
  --ac-14: 0.090;
  --ac-16: 0.104;
  --ac-18: 0.118;
  --ac-22: 0.145;
  --ac-24: 0.159;
  --ac-28: 0.188;
  --ac-3: 0.203;
  --ac-35: 0.240;
  --ac-5: 0.361;
  --ac-55: 0.405;
  --ac-6: 0.450;
  --ac-65: 0.50;
  --ac-7: 0.549;
  --ac-8: 0.662;
  --ac-85: 0.727;
  --ac-88: 0.77;
  --ac-9: 0.799;
}

/* --- the screen --------------------------------------------------------------------------- */

.co { position: absolute; inset: 0; background: var(--co-ground); color: var(--hub-text); font-size: var(--co-body); overflow: hidden; }
.co * { box-sizing: border-box; }

/* the theme's see-through edges, lines and tracks, as a linear-light blend shows them (on the
   dark ground much stronger than the same rgba here) */
.co { --hub-hairline: rgba(255, 255, 255, 0.298); --hub-edge: rgba(255, 255, 255, 0.279); --hub-lift: rgba(255, 255, 255, 0.237); --hub-track: rgba(255, 255, 255, 0.407); --hub-rail: rgba(255, 255, 255, 0.349); }
:root.hub[data-theme="light"] .co { --hub-hairline: rgba(22, 20, 26, 0.134); --hub-edge: rgba(22, 20, 26, 0.126); --hub-lift: rgba(22, 20, 26, 0.108); --hub-track: rgba(22, 20, 26, 0.185); --hub-rail: rgba(22, 20, 26, 0.157); }
.co button { font-family: inherit; }
.co .t-text { color: var(--hub-text); }
.co .t-soft { color: var(--hub-text-soft); }
.co .t-dim { color: var(--hub-text-dim); }
.co .t-faint { color: var(--hub-text-faint); }
.co .t-ok { color: var(--co-ok); }
.co .t-warn { color: var(--co-warn); }
.co .t-danger { color: var(--co-danger-text); }
.co .t-accent { color: var(--hub-accent); }
.co .t-accent2 { color: var(--co-accent2); }
.co .t-early { color: var(--co-early); }
.co .t-line { color: var(--co-line); }
.co .grow { flex: 1; min-width: 0; }
.co .cut { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.co .num { font-variant-numeric: tabular-nums; }
/* (`.right` here is only a name: it pushes nothing aside) */
.co .right { margin-left: 0; }

/* the bar: the company's mark, name, mode and what it has; its clock; its settings, the look,
   the tour and the way back */
.co-bar { position: absolute; left: 0; right: 0; top: 0; height: 72px; background: var(--hub-panel); border-bottom: 1px solid var(--hub-edge); display: flex; align-items: center; padding: 0 24px; gap: 0; z-index: 10; }
.co-bar .co-mark { width: 44px; height: 44px; flex: none; }
.co-bar .name { font-size: 14.6px; font-weight: 700; margin-left: 14px; max-width: 36%; flex: 0 1 auto; min-width: 0; }
.co-bar .co-pill { margin-left: 10px; }
.co-bar .co-status { margin-left: 16px; }
.co-bar .tools { margin-left: auto; display: flex; align-items: center; gap: 0; flex: none; }
.co-bar .tools > .co-btn { height: 40px; }
.co-bar .tools > .sq { width: 40px; padding: 0; }
.co-bar .gap8 { width: 8px; flex: none; }
.co-bar .gap12 { width: 12px; flex: none; }
.co-bar .gap16 { width: 16px; flex: none; }
.co-bar .lone { display: flex; align-items: center; gap: 14px; }
.co-bar .lone b { display: block; font-size: 14.6px; line-height: 26px; }
.co-bar .lone span { display: block; font-size: var(--co-note); color: var(--hub-text-dim); }

/* what the company has: its figures in one pill, each a click from its page */
.co-status { height: 40px; border-radius: 20px; display: flex; align-items: center; padding: 0 1px; gap: 0; flex: none; min-width: 0; overflow: hidden;
  background: color-mix(in srgb, var(--hub-panel) 40%, var(--hub-hover)); box-shadow: inset 0 0 0 1.5px var(--co-pill-edge); }
.co-status > button { height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border-radius: 17px; background: none; color: var(--hub-text); font-size: 11.1px; font-weight: 700; white-space: nowrap; cursor: default; }
.co-status > button.go { cursor: pointer; }
.co-status > button.go:hover { background: rgba(var(--co-white), var(--aw-06)); }
.co-status > button + button { margin-left: 0; }
.co-status .dot { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.co-status .dot.ok { background: rgba(var(--co-ok-fill), var(--ac-3)); color: color-mix(in srgb, rgb(var(--co-ok-fill)) 75%, white); }
.co-status .dot.warn { background: rgba(var(--co-warn-fill), var(--ac-3)); color: color-mix(in srgb, rgb(var(--co-warn-fill)) 75%, white); }
.co-status .dot.early { background: rgba(var(--co-early-fill), var(--ac-3)); color: color-mix(in srgb, rgb(var(--co-early-fill)) 75%, white); }
:root.hub[data-theme="light"] .co-status .dot.ok { color: #1f7a4b; }
:root.hub[data-theme="light"] .co-status .dot.warn { color: #8a5e10; }
:root.hub[data-theme="light"] .co-status .dot.early { color: #2a5fc4; }

/* a mode's pill: its icon and name; Casual's in the accent */
.co-pill { height: 22px; border-radius: 11px; display: inline-flex; align-items: center; gap: 5px; padding: 0 12px 0 8px; flex: none; white-space: nowrap;
  background: var(--hub-field); box-shadow: inset 0 0 0 1px var(--hub-hairline); color: var(--hub-text-soft); font-size: 9.2px; font-weight: 700; }
.co-pill.casual { background: rgba(var(--hub-accent-rgb), var(--ac-18)); box-shadow: none; color: var(--co-accent2); }
button.co-pill { cursor: pointer; }
button.co-pill:hover { background: var(--hub-hover); }
button.co-pill.casual:hover { background: rgba(var(--hub-accent-rgb), var(--ac-28)); }

/* the company's clock in the bar: the day, the time, the steps */
.co-clock { display: flex; align-items: center; gap: 8px; flex: none; }
.co-clock .now { display: grid; grid-template-columns: auto auto; column-gap: 12px; align-items: end; justify-items: end; margin-right: 8px; position: relative; }
.co-clock .now .label { grid-column: 1 / span 2; font-size: 8.8px; font-weight: 700; color: var(--hub-text-dim); line-height: 15px; display: flex; align-items: center; gap: 0; white-space: nowrap; }
.co-clock .now .label.game { color: var(--co-ok); }
.co-clock .now .label .live { width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--co-ok-fill)); margin: 0 7px 0 7px; }
.co-clock .now .label .lead { color: var(--co-accent2); }
.co-clock .now .date { font-size: 10.75px; font-weight: 500; color: var(--hub-text-soft); line-height: 22px; white-space: nowrap; }
.co-clock .now .time { font-size: 16.9px; font-weight: 700; line-height: 25px; font-variant-numeric: tabular-nums; }
.co-clock .now .time.playing { color: var(--co-accent2); }
.co-clock .co-btn { height: 40px; }
.co-clock .casual-now { display: flex; align-items: center; gap: 14px; margin-right: 10px; white-space: nowrap; }
.co-clock .casual-now .date { font-size: 10.75px; font-weight: 500; color: var(--hub-text-soft); }
.co-clock .casual-now .time { font-size: 15.35px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* the way round under the bar: the start screen and where one is; every page as an icon */
.co-nav { position: absolute; left: 24px; right: 24px; top: 88px; height: 42px; display: flex; align-items: center; z-index: 5; }
.co-nav > .co-btn { height: 40px; min-width: 120px; padding: 0 20px; flex: none; }
.co-nav .where { display: flex; align-items: center; min-width: 0; margin-left: 9px; flex: 1; gap: 0; color: var(--hub-text-dim); }
.co-nav .where .home { margin-left: 9px; font-size: var(--co-body); color: var(--hub-text-dim); }
.co-nav .where .page { flex: 0 1 auto; min-width: 0; padding: 0; overflow: hidden; display: flex; align-items: center; gap: 6px; margin-left: 6px; font-size: 13.8px; font-weight: 700; color: var(--hub-text); }
.co-nav .where .page .hub-icon { color: var(--co-accent2); }
.co-nav .where .crumb { font-size: 13.8px; font-weight: 700; color: var(--hub-text-dim); background: none; padding: 0 4px; margin: 0 6px 0 0; cursor: pointer; white-space: nowrap; }
.co-nav .where .crumb.last { color: var(--hub-text); cursor: default; }
.co-rail { display: flex; align-items: center; flex: none; margin-left: 20px; }
.co-rail .group { display: flex; gap: 4px; }
.co-rail .sep { width: 1px; height: 20px; background: var(--hub-hairline); margin: 0 8px; }
.co-rail button { width: 38px; height: 38px; border-radius: var(--hub-r); background: none; color: var(--hub-text-dim); display: inline-flex; align-items: center; justify-content: center; position: relative; cursor: pointer; transition: background 0.08s, color 0.08s; }
.co-rail button:hover { background: var(--hub-hover); color: var(--hub-text); }
.co-rail button.on { background: var(--hub-accent); color: var(--hub-on-accent); }
.co-rail.casual .group { gap: 6px; }
.co-rail.casual button { width: 40px; height: 40px; }
.co-rail .badge { position: absolute; left: 23px; top: -3px; min-width: 16px; height: 16px; border-radius: 8px; padding: 0 4px; font-size: 8.06px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 1.5px var(--co-ground); color: #fff; }
.co-rail .badge.accent { background: var(--hub-accent); color: var(--hub-on-accent); }
.co-rail .badge.warn { background: rgb(var(--co-warn-fill)); color: #1a1400; }
.co-rail .badge.danger { background: rgb(var(--co-danger-fill)); }
.co-rail .badge.ok { background: rgb(var(--co-ok-fill)); }
.co-rail .badge.early { background: #2a75f7; }

/* (a narrow stage - a small window, or a large text size): the bar, the way round and the pages
   closer to the edges, the rail's icons a little closer together; narrower still, Back, the
   day's step and the start screen's button as icons, their words in their tooltips */
@container (max-width: 1100px) {
  .co-bar { padding: 0 16px; }
  .co-nav, .co-body { left: 16px; right: 16px; }
  .co-rail { margin-left: 12px; }
  .co-rail .group { gap: 2px; }
  .co-rail .sep { margin: 0 4px; }
  .co-rail button, .co-rail.casual button { width: 34px; height: 34px; }
  .co-rail .badge { left: 20px; }
}
@container (max-width: 960px) {
  .co-bar .co-back, .co-clock .co-tomorrow, .co-nav > .co-start { font-size: 0; gap: 0; padding: 0; width: 40px !important; min-width: 40px !important; }
  .co-clock .co-next { min-width: 0 !important; }
}

/* the room of the pages */
.co-body { position: absolute; left: 24px; right: 24px; top: 146px; bottom: 40px; }
.co-body.full { top: 88px; }
.co-body.found { top: 88px; }
.co-scroll { overflow: auto; height: 100%; }

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

.co-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 22px; border-radius: var(--hub-r); flex: none;
  background: var(--hub-panel); color: var(--hub-text); box-shadow: inset 0 0 0 1px var(--hub-edge); font-size: var(--co-control); font-weight: 700; white-space: nowrap; cursor: pointer;
  transition: background 0.08s, transform 0.14s cubic-bezier(0.3, 1.5, 0.5, 1), box-shadow 0.1s; }
.co-btn:hover:not(:disabled) { background: var(--hub-hover); box-shadow: inset 0 0 0 1px rgba(var(--co-white), var(--aw-16)); transform: translateY(-1px); }
.co-btn:active:not(:disabled) { transform: translateY(0.5px); }
.co-btn:disabled { opacity: 0.45; cursor: default; }
.co-btn.primary { background: var(--hub-accent); color: var(--hub-on-accent); box-shadow: none; position: relative; overflow: hidden; }
.co-btn.primary:hover:not(:disabled) { background: var(--hub-accent-hover); box-shadow: none; }
.co-btn.primary:active:not(:disabled) { background: var(--hub-accent-deep); }
.co-btn.primary::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; transform: skewX(-18deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.457), transparent); pointer-events: none; }
.co-btn.primary:hover::after { animation: hub-sweep 0.7s ease-out; }
.co-btn.danger { color: var(--co-danger); box-shadow: inset 0 0 0 1px rgba(var(--co-danger-fill), var(--ac-35)); }
.co-btn.danger:hover:not(:disabled) { box-shadow: inset 0 0 0 1px rgba(var(--co-danger-fill), var(--ac-65)); }
.co-btn.ghost { background: none; box-shadow: none; color: var(--hub-text-dim); font-weight: 500; }
.co-btn.ghost:hover:not(:disabled) { background: rgba(var(--co-white), var(--aw-05)); color: var(--hub-text); transform: none; box-shadow: none; }
.co-btn.big { height: 44px; border-radius: var(--hub-r-action); font-size: 11.1px; }
.co-btn.sq { width: 40px; padding: 0; }
.co-btn.small { height: 30px; padding: 0 14px; font-size: var(--co-control); }
.co-btn .hub-icon { flex: none; }

.co-field { height: 40px; border-radius: var(--hub-r); background: var(--hub-field); color: var(--hub-text); box-shadow: inset 0 0 0 1px var(--hub-edge); border: 0; padding: 0 12px; outline: none; font-size: var(--co-control); font-family: inherit; width: 100%; }
.co-field:hover { background: color-mix(in srgb, var(--hub-field) 75%, var(--hub-hover)); }
.co-field:focus { box-shadow: inset 0 0 0 1px rgba(var(--hub-accent-rgb), var(--ac-7)); }
.co-field::placeholder { color: var(--hub-text-faint); }
select.co-field { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer; background-image: none; }
.co-select { position: relative; display: block; }
.co-select .hub-icon { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: var(--hub-text-dim); pointer-events: none; }
.co-select select option { background: var(--hub-panel); color: var(--hub-text); }
.co-label { display: block; font-size: var(--co-control); font-weight: 500; color: var(--hub-text-dim); line-height: 20px; }

.co-seg { display: flex; padding: 3px; border-radius: 999px; background: var(--hub-field); height: 36px; flex: none; }
.co-seg button { flex: 1 1 0; min-width: 0; border-radius: 999px; padding: 0 4px; background: none; color: var(--hub-text-dim); font-weight: 500; font-size: var(--co-control); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-seg button:hover:not(:disabled) { color: var(--hub-text); }
.co-seg button.on { background: var(--hub-accent); color: var(--hub-on-accent); font-weight: 700; }
.co-seg button:disabled { color: var(--hub-text-faint); cursor: default; }

.co-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.co-chips button { height: 34px; padding: 0 15px; border-radius: 17px; background: none; box-shadow: inset 0 0 0 1px var(--hub-hairline); color: var(--hub-text); font-weight: 500; font-size: var(--co-control); white-space: nowrap; cursor: pointer; }
.co-chips button:hover { background: var(--hub-hover); box-shadow: inset 0 0 0 1px rgba(var(--co-white), var(--aw-2)); }
.co-chips button.on { background: var(--hub-accent); color: var(--hub-on-accent); font-weight: 700; box-shadow: none; }

.co-switch { position: relative; display: flex; align-items: center; gap: 10px; min-height: 30px; cursor: pointer; color: var(--hub-text-soft); font-size: var(--co-control); }
.co-switch:hover { color: var(--hub-text); }
.co-switch > span:not(.sch-bar) { flex: 1; min-width: 0; }

.co-iconbtn { width: 36px; height: 36px; border-radius: 50%; background: none; color: var(--hub-text-dim); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; transition: background 0.08s; }
.co-iconbtn:hover { background: rgba(var(--co-white), var(--aw-06)); color: var(--hub-text); }

/* --- shared pieces ------------------------------------------------------------------------- */

.co-caps { font-size: var(--co-caps); font-weight: 700; text-transform: uppercase; color: var(--hub-text-dim); line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-section { border-radius: var(--hub-r); box-shadow: inset 0 0 0 1px var(--hub-hairline); padding: 14px 18px 14px; position: relative; min-height: 0; display: flex; flex-direction: column; }
.co-section > .co-caps { margin-bottom: 14px; flex: none; }
.co-figure { border-radius: var(--hub-r); box-shadow: inset 0 0 0 1px var(--hub-hairline); padding: 13px 16px 0; height: 100px; min-width: 0; }
.co-figure b { display: block; font-size: 20.7px; font-weight: 700; line-height: 34px; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.co-figure.small b { font-size: 16.9px; }
.co-figure span { display: block; font-size: var(--co-note); color: var(--hub-text-soft); line-height: 20px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-meter { height: 6px; border-radius: 3px; background: var(--hub-hairline); overflow: hidden; }
.co-meter > i { display: block; height: 100%; border-radius: 3px; min-width: 6px; }
.co-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 9.2px; font-weight: 700; white-space: nowrap; flex: none; }
.co-plate { display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; flex: none; }
.co-mark { border-radius: var(--hub-r); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; flex: none; }
.co-mark .short { font-weight: 900; position: relative; top: -10%; }
.co-mark .band { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; }
.co-mark.logo { background: #fff; padding: 3px; }
.co-mark.logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.co-empty { color: var(--hub-text-dim); font-size: var(--co-body); }
.co-para { font-size: var(--co-body); color: var(--hub-text-soft); line-height: 1.8; }
.co-note { font-size: var(--co-note); color: var(--hub-text-soft); line-height: 1.8; }

/* a tile that rises under the mouse (`Ui::tile`) */
.co-tile { border-radius: var(--hub-r-sheet); background: var(--hub-panel); box-shadow: inset 0 0 0 1px var(--hub-edge); color: var(--hub-text); position: relative; text-align: left; cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.25, 1.35, 0.5, 1), background 0.1s, box-shadow 0.15s; }
.co-tile:hover { transform: translateY(-3px); background: var(--hub-hover); box-shadow: inset 0 0 0 1px rgba(var(--hub-accent-rgb), var(--ac-6)), 0 10px 22px rgba(0, 0, 0, 0.22); }
.co-tile:active { transform: translateY(-1px); }
.co-tile.still { cursor: default; }
.co-tile.still:hover { transform: none; background: var(--hub-panel); box-shadow: inset 0 0 0 1px var(--hub-edge); }

/* --- dialogs ----------------------------------------------------------------------------- */

.co-scrim { position: absolute; inset: 0; z-index: 40; background: var(--co-scrim); display: flex; align-items: center; justify-content: center; padding: 16px; }
.co-dialog { background: var(--hub-panel); border-radius: var(--hub-r-sheet); box-shadow: inset 0 0 0 1px var(--hub-edge), 0 6px 52px rgba(0, 0, 0, 0.5); position: relative; display: flex; flex-direction: column; max-width: 100%; max-height: 100%; animation: hub-rise 0.14s ease-out; }
.co-dialog > .head { height: 68px; flex: none; display: flex; align-items: center; padding: 0 16px 0 28px; gap: 0; }
.co-dialog > .head > .hub-icon { color: var(--co-accent2); margin-right: 8px; }
.co-dialog > .head h2 { font-size: var(--co-title); font-weight: 700; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-dialog > .body { flex: 1; min-height: 0; overflow: auto; padding: 2px 28px 0; }
.co-dialog > .foot { flex: none; display: flex; gap: 10px; align-items: center; padding: 18px 28px 24px; }
.co-dialog > .foot .co-btn { height: 40px; min-width: 116px; }
.co-dialog > .foot .rest { flex: 1; min-width: 0; font-size: var(--co-note); color: var(--hub-text-dim); }
.co-unlock { border-radius: var(--hub-r); background: color-mix(in srgb, var(--co-accent2) calc(var(--ac-12) * 100%), transparent); position: relative; padding: 9px 12px 9px 40px; font-size: 10.75px; font-weight: 500; color: var(--hub-text); line-height: 1.8; }
.co-unlock::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 2px; background: var(--co-accent2); }
.co-unlock .hub-icon { position: absolute; left: 13px; top: 12px; color: var(--co-accent2); }

/* the cover while the company's day is worked out */
.co-cover { position: absolute; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.45); display: flex; align-items: center; justify-content: center; }
.co-cover > div { min-width: 380px; height: 110px; padding: 24px 30px 0; background: var(--hub-panel); border-radius: var(--hub-r-sheet); box-shadow: inset 0 0 0 1px var(--hub-edge); text-align: center; }
.co-cover b { display: block; font-size: var(--co-head); line-height: 28px; }
.co-cover .bar { height: 6px; border-radius: 3px; margin: 20px 10px 0; background: rgba(var(--co-white), var(--aw-1)); overflow: hidden; position: relative; }
.co-cover .bar i { position: absolute; top: 0; bottom: 0; width: 30%; border-radius: 3px; background: var(--hub-accent); animation: co-busy 1.2s ease-in-out infinite; }
@keyframes co-busy { from { left: -30%; } to { left: 100%; } }

/* what the page says in its corner (its status line) */
.co-notice { position: absolute; left: 22px; bottom: 6px; z-index: 30; max-width: 60%; height: 22px; border-radius: 11px; padding: 0 12px; display: flex; align-items: center; font-size: 8.4px; color: var(--hub-text-dim); background: rgba(var(--co-white), var(--aw-06)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-notice.error { color: var(--co-danger-text); }

/* --- the start of the bus company: how to begin, the companies ----------------------------- */

.co-choose { height: 100%; display: flex; flex-direction: column; align-items: stretch; }
.co-choose .head { text-align: center; flex: none; }
.co-choose .head h1 { font-size: 19.95px; font-weight: 700; line-height: 34px; }
.co-choose .head p { font-size: var(--co-body); color: var(--hub-text-soft); line-height: 22px; margin-top: 6px; }
.co-choose .head { margin-bottom: 30px; }
.co-modes { display: flex; justify-content: center; gap: 24px; }
/* (flex columns: a button centres what it holds - the one to choose sat lower than the other) */
.co-mode { width: min(380px, calc(50% - 12px)); height: 250px; padding: 26px; display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; }
.co-mode .mark { width: 56px; height: 56px; border-radius: var(--hub-r); background: rgba(var(--hub-accent-rgb), var(--ac-14)); color: var(--co-accent2); display: flex; align-items: center; justify-content: center; transition: background 0.1s, color 0.1s; }
.co-mode:hover:not(.still) .mark { background: var(--hub-accent); color: var(--hub-on-accent); }
.co-mode h3 { font-size: 16.9px; font-weight: 700; line-height: 30px; margin-top: 18px; }
.co-mode p { font-size: var(--co-body); color: var(--hub-text-soft); line-height: 1.8; margin-top: 6px; }
.co-mode .foot { position: absolute; left: 26px; right: 26px; bottom: 22px; font-size: var(--co-note); font-weight: 500; color: var(--co-accent2); }
.co-mode.still { opacity: 1; }
.co-mode.still > *:not(.later) { opacity: 0.55; }
.co-mode.still .foot { color: var(--hub-text-dim); }
.co-mode .later { position: absolute; right: 22px; top: 22px; height: 26px; border-radius: 13px; padding: 0 11px; display: flex; align-items: center; font-size: 9.2px; font-weight: 700; background: rgba(var(--co-warn-fill), var(--ac-18)); color: var(--co-warn); }
.co-companies { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; max-width: calc(4 * 300px + 3 * 16px); margin: 0 auto; padding-bottom: 20px; }
.co-company { width: 300px; height: 176px; padding: 22px 20px 0; display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; }
.co-company .top { display: flex; align-items: flex-start; gap: 14px; height: 56px; }
.co-company .top .side { display: flex; flex-direction: column; justify-content: center; gap: 9px; min-width: 0; height: 56px; }
.co-company .clockline { display: flex; align-items: center; gap: 7px; font-size: var(--co-note); font-weight: 500; white-space: nowrap; }
.co-company .clockline i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; margin-left: 3px; }
.co-company b { display: block; font-size: 12.3px; margin-top: 14px; line-height: 22px; }
.co-company .home { font-size: var(--co-note); color: var(--hub-text-soft); line-height: 18px; margin-top: 4px; }
.co-company .day { font-size: var(--co-note); font-weight: 500; color: var(--hub-text-dim); line-height: 18px; margin-top: 2px; }
.co-company .day.negative { color: var(--co-danger); }
.co-company .bin { position: absolute; right: 10px; top: 10px; width: 28px; height: 28px; opacity: 0; }
.co-company:hover .bin { opacity: 1; }
.co-company.new { background: color-mix(in srgb, var(--hub-panel) 70%, transparent); box-shadow: inset 0 0 0 1px rgba(var(--hub-accent-rgb), var(--ac-35)); text-align: center; padding-top: 38px; }
.co-company.new:hover { box-shadow: inset 0 0 0 1px rgba(var(--hub-accent-rgb), var(--ac-85)), 0 10px 22px rgba(0, 0, 0, 0.22); }
.co-company.new .plus { width: 52px; height: 52px; border-radius: 50%; margin: 0 auto; background: rgba(var(--hub-accent-rgb), var(--ac-16)); color: var(--co-accent2); display: flex; align-items: center; justify-content: center; transition: background 0.1s, color 0.1s; }
.co-company.new:hover .plus { background: var(--hub-accent); color: var(--hub-on-accent); }
.co-company.new b { margin-top: 12px; }
.co-company.new .home { margin-top: 4px; }

/* the founding: the company on the left, the mode on the right */
.co-found { height: 100%; overflow: auto; }
/* (as tall as the window, or as its content - the mode's cards and the vehicles: never squeezed) */
.co-found .inner { min-height: max(760px, 100%); height: auto; display: flex; flex-direction: column; }
.co-found h1 { font-size: 18.4px; font-weight: 700; line-height: 32px; flex: none; }
.co-found .intro { font-size: var(--co-body); color: var(--hub-text-soft); line-height: 1.8; max-width: 1100px; margin-top: 8px; flex: none; }
.co-found .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; flex: 1 0 auto; min-height: 0; margin-top: 18px; }
.co-found .co-section { padding: 14px 18px 14px; }
.co-found .left { display: flex; flex-direction: column; gap: 0; }
.co-found .row { margin-bottom: 16px; }
.co-found.tight .row { margin-bottom: 8px; }
.co-found .swatches { display: flex; gap: 6px; margin-top: 6px; }
.co-found .swatch { width: 34px; height: 34px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--hub-edge); cursor: pointer; position: relative; flex: none; }
.co-found .swatch:hover::after { content: ""; position: absolute; inset: -2px; border-radius: 7px; box-shadow: 0 0 0 1px var(--hub-text-dim); }
.co-found .swatch.on::after { content: ""; position: absolute; inset: -3px; border-radius: 8px; box-shadow: 0 0 0 2px var(--hub-text); }
.co-found .logo { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.co-found .logo .co-mark { width: 68px; height: 68px; }
.co-found.tight .logo .co-mark { width: 56px; height: 56px; }
.co-found .logo .what { min-width: 0; flex: 1; }
.co-found .logo .what p { font-size: var(--co-note); color: var(--hub-text-soft); line-height: 22px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-found .logo .what .btns { display: flex; gap: 10px; margin-top: 6px; }
.co-found .home2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-found .cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; flex: 1 0 auto; min-height: 200px; }
.co-found .card { border-radius: var(--hub-r); box-shadow: inset 0 0 0 1px var(--hub-hairline); padding: 14px 16px; text-align: left; background: none; color: var(--hub-text); cursor: pointer; overflow: hidden; display: block; transition: background 0.08s; }
.co-found .card:hover { background: rgba(var(--co-white), var(--aw-03)); }
.co-found .card.on { background: rgba(var(--hub-accent-rgb), var(--ac-08)); box-shadow: inset 0 0 0 2px var(--hub-accent); }
.co-found .card .top { display: flex; align-items: center; gap: 10px; height: 32px; }
.co-found .card .top i { width: 32px; height: 32px; border-radius: 50%; background: var(--hub-field); color: var(--hub-text-dim); display: flex; align-items: center; justify-content: center; flex: none; }
.co-found .card.on .top i { background: rgba(var(--hub-accent-rgb), var(--ac-22)); color: var(--co-accent2); }
.co-found .card .top b { font-size: var(--co-title); color: var(--hub-text-soft); }
.co-found .card.on .top b { color: var(--hub-text); }
/* the hiring's bar: the roles and the job advert */
.co-hirebar { flex: none; display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.co-hirebar > .co-btn { flex: none; }
.co-hirenone { max-width: 760px; }
/* the buses the company works with (`vehicles.js`) */
.co-found .vehicles { flex: none; margin-top: 14px; }
.co-found .vehicles .row2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 4px; }
.co-found .vehicles .says { font-size: var(--co-note); color: var(--hub-text-soft); line-height: 1.8; margin-top: 6px; }
/* (a narrow stage: the company and the mode one under the other, the page scrolled) */
@container (max-width: 1100px) {
  .co-found .inner { height: auto; min-height: 0; }
  .co-found .cols { grid-template-columns: minmax(0, 1fr); flex: none; }
  .co-found .cards { flex: none; min-height: 0; }
}
.co-found .card .pitch { font-size: var(--co-body); font-weight: 500; line-height: 1.8; margin-top: 12px; }
.co-found .card .capital { font-size: var(--co-note); font-weight: 700; color: var(--co-line); margin-top: 8px; line-height: 20px; }
:root.hub[data-theme="light"] .co-found .card .capital { color: #8a6a00; }
.co-found .card ul { list-style: none; margin: 10px 0 0; padding: 0; }
.co-found .card li { display: flex; gap: 8px; font-size: var(--co-note); color: var(--hub-text-soft); line-height: 1.8; margin-bottom: 8px; }
.co-found .card li .hub-icon { color: var(--hub-text-dim); margin-top: 1px; }
.co-found .card.on li .hub-icon { color: var(--co-accent2); }
.co-found .mode-note { font-size: var(--co-note); color: var(--hub-text-dim); line-height: 1.8; margin-top: 10px; flex: none; }
.co-found .under { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 12px; flex: none; min-height: 140px; }
.co-found .under .says { font-size: var(--co-note); color: var(--hub-text-soft); line-height: 1.8; margin-top: 8px; }
.co-found .under .begins { font-size: var(--co-note); font-weight: 500; margin-top: 8px; }
.co-found .under .casual-buy { display: flex; gap: 10px; margin-top: 8px; font-size: var(--co-note); color: var(--hub-text-soft); line-height: 1.8; }
.co-found .under .casual-buy .hub-icon { color: var(--co-accent2); flex: none; }
.co-found .foot { display: flex; align-items: center; gap: 12px; height: 44px; margin-top: 20px; flex: none; }
.co-found .foot .need { flex: 1; font-size: var(--co-body); color: var(--hub-text-soft); }
.co-found .foot .co-btn { height: 44px; }

/* the clock's step buttons only where the bar has room for them (a clock 640 wide) */
.co-clock .play { display: none; }
@container (min-width: 1469px) { .co-clock .play { display: inline-flex; } }

/* --- the start screen (Normal, Realistic): the parts of the company as tiles --------------- */

.co-home { overflow-x: hidden; }
.co-hometile { position: absolute; padding: 0; overflow: hidden; }
.co-hometile .mark { position: absolute; border-radius: var(--hub-r); background: rgba(var(--hub-accent-rgb), var(--ac-14)); color: var(--co-accent2); display: flex; align-items: center; justify-content: center; transition: background 0.1s, color 0.1s; }
.co-hometile:hover .mark { background: var(--hub-accent); color: var(--hub-on-accent); }
.co-hometile .name { position: absolute; font-weight: 700; color: var(--hub-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-hometile .badge { position: absolute; height: 24px; border-radius: 12px; padding: 0 7px; font-size: 9.2px; font-weight: 700; display: flex; align-items: center; justify-content: center; color: #fff; }
.co-hometile .badge.accent { background: var(--hub-accent); color: var(--hub-on-accent); }
.co-hometile .badge.warn { background: rgb(var(--co-warn-fill)); color: #1a1400; }
.co-hometile .badge.danger { background: rgb(var(--co-danger-fill)); }
.co-hometile .badge.ok { background: rgb(var(--co-ok-fill)); }
.co-hometile .badge.early { background: #2a75f7; }
.co-hometile .cash, .co-hometile .line { position: absolute; left: var(--pad); right: var(--pad); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-hometile .cash { font-weight: 700; font-variant-numeric: tabular-nums; }
.co-hometile .rest { position: absolute; left: var(--pad); right: var(--pad); overflow: hidden; }
.co-hometile .msg { display: flex; align-items: center; gap: 0; height: 24px; font-size: var(--co-note); color: var(--hub-text-dim); }
.co-hometile .msg i { width: 7px; height: 7px; border-radius: 50%; background: var(--hub-text-faint); margin: 0 9px 0 1px; flex: none; }
.co-hometile .msg.unread { color: var(--hub-text); font-weight: 500; }
.co-hometile .msg.unread i { background: var(--hub-accent); }
.co-hometile .msg .date { font-size: 9.2px; color: var(--hub-text-dim); margin-left: 8px; font-weight: 400; }
.co-hometile .roles { display: grid; column-gap: 16px; }
.co-hometile .role { display: flex; align-items: center; font-size: var(--co-note); color: var(--hub-text-soft); border-bottom: 1px solid color-mix(in srgb, var(--hub-hairline) 50%, transparent); }
.co-hometile .role b { width: 36px; text-align: right; color: var(--hub-text); }
.co-hometile .role b.t-dim { color: var(--hub-text-dim); }
.co-way { position: absolute; height: 34px; border-radius: 17px; background: var(--hub-panel); box-shadow: inset 0 0 0 1px var(--hub-edge); color: var(--hub-text); display: flex; align-items: center; gap: 0; padding: 0 0 0 12px; font-size: 9.98px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background 0.08s, box-shadow 0.08s; }
.co-way:hover { background: var(--hub-hover); box-shadow: inset 0 0 0 1px rgba(var(--hub-accent-rgb), var(--ac-5)); }
.co-way .hub-icon { color: var(--co-accent2); margin-right: 6px; }

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

.co-axis { position: absolute; font-size: var(--co-note); color: var(--hub-text-dim); line-height: 18px; white-space: nowrap; }
.co-chartbar .up { fill: rgba(var(--co-ok-fill), var(--ac-85)); }
.co-chartbar .down { fill: rgba(var(--co-danger-fill), var(--ac-85)); }
.co-chartbar:hover .up { fill: color-mix(in srgb, rgb(var(--co-ok-fill)) 75%, white); }
.co-chartbar:hover .down { fill: color-mix(in srgb, rgb(var(--co-danger-fill)) 75%, white); }
.co-bar-row { position: relative; }
.co-bar-row.go { cursor: pointer; }
.co-bar-row.go:hover::before { content: ""; position: absolute; inset: -4px; border-radius: 6px; background: rgba(var(--co-white), var(--aw-04)); }
.co-bar-row .words { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 19.5px; font-size: var(--co-note); font-weight: 500; color: var(--hub-text-soft); margin-bottom: 3px; }
.co-bar-row .words b { font-weight: 700; flex: none; }
.co-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; color: var(--hub-text); border-radius: 8px; cursor: pointer; font-size: var(--co-rows); }
.co-row:hover { background: rgba(var(--co-white), var(--aw-05)); }
.co-alert { height: 38px; padding: 0 8px; margin: 0 -8px 2px; width: calc(100% + 16px); }
.co-alert > .hub-icon:first-child { margin-left: 1px; }
.co-nextduty { display: flex; align-items: center; gap: 24px; height: 38px; margin-bottom: 8px; }
.co-nextduty .words { flex: 1; min-width: 0; height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 6px; margin-left: -6px; font-size: var(--co-rows); font-weight: 500; }
.co-feed { flex: 1; min-height: 0; overflow: auto; margin-right: -10px; padding-right: 10px; }
.co-feed .day { margin: 6px 0 12px; }
.co-feed .item { display: grid; grid-template-columns: 52px 24px minmax(0, 1fr); align-items: start; margin-bottom: 8px; font-size: var(--co-rows); line-height: 21px; }
.co-feed .item b { color: var(--hub-text-dim); font-variant-numeric: tabular-nums; }
.co-feed .item i { width: 8px; height: 8px; border-radius: 50%; margin: 6.5px 0 0 6px; }
.co-feed .item span { color: var(--hub-text); }
.co-feed .item span.t-dim { color: var(--hub-text-dim); }
.dot-dim { background: var(--hub-text-dim); }
.dot-soft { background: var(--hub-text-soft); }
.dot-ok { background: rgb(var(--co-ok-fill)); }
.dot-warn { background: rgb(var(--co-warn-fill)); }
.dot-danger { background: rgb(var(--co-danger-fill)); }
.dot-accent, .dot-accent2 { background: var(--hub-accent); }
.dot-early { background: #2a75f7; }
.co-lastday .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 26px; }
.co-lastday .top b { font-size: var(--co-head); }
.co-lastday .top .res { font-size: 14.6px; font-weight: 700; white-space: nowrap; }
.co-lastday .facts { display: grid; grid-template-columns: 1fr 1fr; row-gap: 2px; column-gap: 8px; flex: 1; min-width: 0; margin-top: 8px; font-size: var(--co-rows); color: var(--hub-text-soft); line-height: 22px; width: 100%; }

/* --- the fleet ----------------------------------------------------------------------------- */

.co-bustile { position: absolute; border-radius: var(--hub-r-sheet); background: var(--hub-field); padding: 0; text-align: left; cursor: pointer; overflow: hidden; color: var(--hub-text); transition: background 0.08s, box-shadow 0.08s; }
.co-bustile:hover { background: var(--hub-hover); }
/* (its edge over the photo, as `fleet::tile` draws it last) */
.co-bustile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--hub-edge); pointer-events: none; transition: box-shadow 0.08s; }
.co-bustile:hover::after { box-shadow: inset 0 0 0 1px rgba(var(--hub-accent-rgb), var(--ac-7)); }
.co-bustile .photo, .co-busside .photo { display: flex; align-items: center; justify-content: center; background: linear-gradient(#263046, #181f2e); position: relative; }
.co-bustile .photo { position: absolute; left: 0; right: 0; top: 0; }
.co-bustile .mono { width: 56px; height: 56px; border-radius: var(--hub-r); background: rgba(255, 255, 255, 0.298); color: #e8ebf2; font-size: 15.35px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.co-bustile .numb { position: absolute; left: 10px; top: 10px; height: 28px; border-radius: 6px; background: rgba(9, 12, 24, 0.85); color: #e8ebf2; font-size: 11.5px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
/* (a bus's own fleet number: over its tile, the badge's look until it is typed in) */
.co-numb-in { position: absolute; height: 28px; border: 0; border-radius: 6px; padding: 0 6px; background: rgba(9, 12, 24, 0.85); color: #e8ebf2; font: inherit; font-size: 11.5px; font-weight: 900; text-align: center; outline: none; cursor: text; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow 0.08s; }
.co-numb-in:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.co-numb-in:focus { box-shadow: inset 0 0 0 1.5px rgb(var(--hub-accent-rgb)); }
.co-numb-in.own { color: var(--hub-accent-text); }
.co-numb-in::placeholder { color: rgba(232, 235, 242, 0.45); }
.co-bustile .ad { position: absolute; right: 10px; top: 10px; height: 28px; line-height: 28px; border-radius: 6px; padding: 0 8px; background: rgba(9, 12, 24, 0.85); color: var(--hub-accent-text); font-size: 9.2px; font-weight: 700; }
:root.hub[data-theme="light"] .co-bustile .ad { color: #f9bc84; }
.co-bustile .info { position: absolute; left: 16px; right: 16px; display: flex; flex-direction: column; }
.co-bustile .info b { font-size: 12.3px; line-height: 24px; height: 25px; }
.co-bustile .info .sub { font-size: var(--co-note); color: var(--hub-text-soft); line-height: 20px; height: 22px; }
.co-bustile .info .facts { display: flex; align-items: center; gap: 4%; font-size: var(--co-note); color: var(--hub-text-soft); line-height: 20px; height: 24px; }
.co-bustile .info .facts > span:first-child { width: 62%; }
.co-bustile .info .facts .cond { width: 34%; padding: 9px 0; }
.co-bustile .info .status { display: flex; align-items: center; gap: 8px; font-size: var(--co-note); font-weight: 500; height: 22px; margin-top: 2px; }
.co-bustile .info .status i { width: 8px; height: 8px; border-radius: 50%; margin-left: 1px; flex: none; }
.co-order { display: flex; align-items: center; gap: 9px; height: 24px; font-size: var(--co-body); font-weight: 500; padding-left: 1px; }
.co-adrow { position: relative; display: flex; justify-content: space-between; gap: 12px; min-height: 86px; margin: 0 10px 10px 0; padding: 10px 16px 10px 18px; border-radius: var(--hub-r); background: var(--hub-field); overflow: hidden; }
.co-adrow::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 2px; background: var(--kind); }
.co-adrow.running { min-height: 94px; }
.co-adrow .l { display: flex; flex-direction: column; min-width: 0; flex: 1; font-size: var(--co-note); }
.co-adrow .l b { font-size: var(--co-rows); line-height: 24px; }
.co-adrow .l span { line-height: 22px; }
.co-adrow .r { display: flex; flex-direction: column; align-items: flex-end; flex: none; font-size: var(--co-note); }
.co-adrow .r b { font-size: var(--co-rows); line-height: 24px; }
.co-adrow .r span { line-height: 20px; margin-bottom: 4px; }
.co-adrow .tools { position: absolute; right: 12px; top: 8px; display: flex; gap: 20px; }
.co-busdialog { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; height: 100%; }
.co-busside .photo { width: 290px; height: 180px; border-radius: var(--hub-r); color: #e8ebf2; font-size: 18.4px; font-weight: 700; }
.co-busside .kind { font-size: var(--co-body); font-weight: 500; color: var(--hub-text-soft); margin-top: 10px; line-height: 22px; }
.co-price { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--hub-hairline); font-size: var(--co-rows); }
.co-price > span { color: var(--hub-text-soft); max-width: 60%; }
.co-price > b { font-weight: 500; color: var(--hub-text); text-align: right; max-width: 64%; }
.co-price.strong > b { font-size: 12.7px; font-weight: 700; }
.co-days { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr) auto; align-items: center; gap: 10px; height: 40px; margin: 12px 0; font-size: var(--co-control); color: var(--hub-text-soft); }
.co-days b { min-width: 30px; text-align: right; color: var(--hub-text); }

.co-slider { display: grid; grid-template-columns: minmax(0, min(38%, 170px)) minmax(0, 1fr) auto; align-items: center; gap: 0 10px; min-height: 34px; font-size: var(--co-control); color: var(--hub-text-soft); }
.co-slider.bare { grid-template-columns: minmax(0, 1fr) auto; }
.co-slider b { min-width: 58px; text-align: right; font-weight: 500; color: var(--hub-text); font-variant-numeric: tabular-nums; }
.co-slider input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: none; margin: 0; cursor: pointer; }
.co-slider input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--hub-accent) var(--fill, 50%), rgba(var(--co-white), var(--aw-12)) var(--fill, 50%)); }
.co-slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--hub-accent); margin-top: -6px; }
.co-crumbs { display: flex; align-items: center; gap: 0; min-width: 0; font-size: var(--co-control); height: 28px; }
.co-crumbs button { background: none; color: var(--hub-accent); font-weight: 500; padding: 0; cursor: pointer; max-width: 30%; }
.co-crumbs button:hover { color: var(--co-accent2); text-decoration: underline; }
.co-crumbs .hub-icon { color: var(--hub-text-faint); margin: 0 3px; flex: none; }
.co-crumbs b { color: var(--hub-text); }

/* --- the dealer ---------------------------------------------------------------------------- */

.co-filters { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow-x: hidden; overflow-y: auto; padding-right: 6px; }
.co-search { position: relative; display: block; }
.co-search > .hub-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--hub-text-dim); pointer-events: none; }
.co-search > .co-field { padding-left: 38px; }
.co-tilebadge { position: absolute; left: 10px; top: 10px; height: 26px; line-height: 26px; border-radius: 6px; padding: 0 10px; background: rgba(9, 12, 24, 0.85); font-size: 9.6px; font-weight: 700; white-space: nowrap; }
.co-tilebadge.t-accent { color: var(--hub-accent); }
.co-tilebadge.t-ok { color: #34b26e; }
.co-tilebadge.t-soft { color: #c4cad6; }
.co-bustile .info .price { font-size: 13.8px; font-weight: 700; line-height: 26px; }
.co-bustile .info .offerprice { display: flex; align-items: center; gap: 10px; height: 29px; }
.co-bustile .info .offerprice .save { font-size: 10.75px; font-weight: 700; }
.co-bustile .info .offerprice .cond { margin-left: auto; width: 34%; }
.co-bustile .info .who { font-size: var(--co-note); color: var(--hub-text-dim); line-height: 20px; }
.co-orderrow { display: grid; grid-template-columns: 22px 40% 16% minmax(0, 1fr); align-items: center; gap: 10px; height: 36px; margin-bottom: 6px; font-size: var(--co-note); }
.co-orderrow b { font-size: var(--co-rows); }
.co-orderrow .when { text-align: right; font-weight: 500; }
.co-contractrow { height: 40px; padding: 0 10px 0 6px; margin-bottom: 2px; display: grid; grid-template-columns: 22px 44px 20% 32% 20% minmax(0, 1fr); gap: 0 6px; font-size: var(--co-note); }
.co-contractrow .no { color: var(--hub-text-soft); }
.co-contractrow .date, .co-contractrow .seller { color: var(--hub-text-soft); }
.co-contractrow .what { font-size: var(--co-rows); }
.co-contractrow .amount { font-size: var(--co-rows); text-align: right; }
.co-iconline { display: flex; gap: 10px; align-items: flex-start; font-size: 10.75px; font-weight: 500; line-height: 1.8; margin-bottom: 8px; }
.co-iconline .hub-icon { flex: none; margin-top: 2px; }
.co-talkside { display: flex; flex-direction: column; min-width: 0; overflow: auto; }
.co-talkside .photo { border-radius: var(--hub-r); background: linear-gradient(#263046, #181f2e); flex: none; }
/* (a bus's photo covering its place) */
.photo.shot { background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important; }
.co-talkside .what { font-size: var(--co-head); margin: 12px 0 10px; line-height: 1.8; }
.co-talkside .asking { display: flex; align-items: center; justify-content: space-between; height: 38px; margin: 2px 0 14px; }
.co-talkside .asking span { font-size: 23px; font-weight: 700; }
.co-talkside .asking b { font-size: var(--co-head); }
.co-talklog { flex: 1; min-height: 0; overflow: auto; border-radius: var(--hub-r); box-shadow: inset 0 0 0 1px var(--hub-hairline); padding: 16px; display: flex; flex-direction: column; }
.co-talklog .msg { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 14px; max-width: 86%; }
.co-talklog .msg.you { align-self: flex-end; align-items: flex-end; }
.co-talklog .who { font-size: 9.6px; font-weight: 700; color: var(--hub-text-dim); line-height: 18px; padding: 0 4px; margin-bottom: 2px; }
.co-talklog .bubble { border-radius: 14px; padding: 7px 16px 9px; background: color-mix(in srgb, var(--hub-field) 93%, white); font-size: var(--co-chat); line-height: 1.8; min-width: 120px; }
:root.hub[data-theme="light"] .co-talklog .bubble { background: color-mix(in srgb, var(--hub-field) 96%, black); }
.co-talklog .you .bubble { background: rgba(var(--hub-accent-rgb), var(--ac-24)); }
.co-talkmoves { flex: none; margin-top: 14px; }
.co-talkmoves .row { display: flex; gap: 12px; margin-bottom: 12px; }
.co-talkmoves .row .co-btn { height: 40px; }
.co-talkmoves .row:last-child { gap: 10px; }
.co-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; height: 80px; border-bottom: 1px solid var(--hub-hairline); margin-bottom: 14px; flex: none; }
.co-parties > div { min-width: 0; display: flex; flex-direction: column; }
.co-parties b { font-size: 13.8px; line-height: 26px; margin-top: 4px; }
.co-parties span { font-size: 10.75px; color: var(--hub-text-soft); line-height: 20px; }
.co-signature { flex: none; display: flex; gap: 24px; border-top: 1px solid var(--hub-hairline); padding-top: 14px; margin-top: 8px; height: 122px; }
.co-signature .pad { position: relative; width: min(460px, 50%); height: 108px; border-radius: var(--hub-r); background: var(--hub-field); flex: none; touch-action: none; }
.co-signature .pad.live { cursor: crosshair; }
.co-signature .pad.live:hover { box-shadow: inset 0 0 0 1px rgba(var(--hub-accent-rgb), var(--ac-6)); }
.co-signature .pad::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 26px; height: 1px; background: color-mix(in srgb, var(--hub-text-dim) 60%, transparent); }
.co-signature svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.co-signature polyline { fill: none; stroke: var(--hub-text); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.co-signature .hint { position: absolute; left: 18px; top: 12px; font-size: var(--co-body); color: var(--hub-text-dim); line-height: 40px; }
.co-signature .who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.co-signature .who b { font-size: 15.35px; line-height: 30px; margin-top: 6px; }
.co-signature .day { font-size: 10.75px; color: var(--hub-text-soft); line-height: 22px; }
.co-loanamount { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 6px; }
.co-loanamount b { font-size: 26px; line-height: 42px; }
.co-loanamount span { font-size: var(--co-body); font-weight: 500; }
.co-plan { display: grid; grid-template-columns: 16% 21% 21% 21% 21%; height: 24px; align-items: center; font-size: var(--co-note); color: var(--hub-text-soft); }
.co-plan span { text-align: right; padding-right: 6px; }
.co-plan span:first-child { text-align: left; color: var(--hub-text-dim); }
.co-plan.head { height: 20px; font-size: 9.98px; font-weight: 700; color: var(--hub-text-dim); }
.co-plan.gap { display: block; text-align: center; font-weight: 700; color: var(--hub-text-dim); }
.co-pen { z-index: 70; cursor: pointer; }
.co-pen .paper { width: 560px; padding: 30px 34px 40px; border-radius: var(--hub-r-sheet); background: #fffefc; color: #1e1c22; position: relative; box-shadow: 0 10px 50px rgba(0, 0, 0, 0.45); animation: hub-rise 0.2s ease-out; }
.co-pen .paper > b { font-size: var(--co-title); }
.co-pen .line { position: relative; height: 108px; margin-top: 20px; border-bottom: 1px solid rgba(30, 28, 34, 0.4); }
.co-pen svg { width: 100%; height: 100%; }
.co-pen polyline { fill: none; stroke: #1b2a6b; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: co-ink 0.8s ease-out forwards; vector-effect: non-scaling-stroke; }
.co-pen .written { position: absolute; left: 10px; bottom: 6px; font-family: "Segoe Script", "Brush Script MT", cursive; font-size: 30px; color: #1b2a6b; white-space: nowrap; clip-path: inset(0 100% 0 0); animation: co-write 1.4s ease-out forwards; }
.co-pen .stamp { position: absolute; right: 30px; bottom: 26px; border: 3px solid #c4352c; color: #c4352c; border-radius: 8px; padding: 4px 14px; font-size: 18px; font-weight: 800; text-transform: uppercase; transform: rotate(-8deg) scale(1.6); opacity: 0; animation: co-stamp 0.25s ease-out 1.5s forwards; }
:root.hub.hub-still .co-pen * { animation-duration: 0s !important; animation-delay: 0s !important; }
@keyframes co-ink { to { stroke-dashoffset: 0; } }
@keyframes co-write { to { clip-path: inset(0 0 0 0); } }
@keyframes co-stamp { to { opacity: 0.9; transform: rotate(-8deg) scale(1); } }

/* --- the dialogs: settings, the clock, the report, what the clock asks ------------------------ */

.co-settings > .co-caps { margin-bottom: 10px; }
.co-settings .mark { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.co-settings .mark .co-mark { width: 68px; height: 68px; }
.co-settings .mark .what { min-width: 0; flex: 1; }
.co-settings .mark .what p { font-size: var(--co-note); color: var(--hub-text-soft); line-height: 22px; }
.co-settings .pair { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 26px; min-height: 40px; }
.co-settings .pair .co-seg { flex: none; }
.co-settings .addon { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; }
.co-settings .addon > .hub-icon { margin-top: 6px; }
.co-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.co-figures4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; flex: none; }
.co-figures3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; flex: none; }
.co-money2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.co-money2 > div, .co-reportmoney > div { display: flex; justify-content: space-between; gap: 10px; height: 26px; align-items: center; border-bottom: 1px solid var(--hub-hairline); font-size: var(--co-rows); }
.co-money2 span { color: var(--hub-text-soft); }
.co-reportline { height: 40px; margin-bottom: 4px; gap: 14px; padding-right: 6px; }
.co-reportline b { font-size: var(--co-rows); flex: none; }
.co-reportmoney { padding: 0 30px 10px 52px; }
.co-reportdrop { height: 34px; margin-bottom: 2px; gap: 12px; padding: 0 6px 0 10px; }
.co-reportdrop > i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.co-reportdrop b { font-size: var(--co-note); font-weight: 500; max-width: 48%; flex: none; }
.co-reportmore { font-size: var(--co-note); color: var(--hub-text-dim); margin: 4px 0 0 30px; }
.co-reportmoney > div { border: 0; font-size: var(--co-note); }
.co-reportmoney span { color: var(--hub-text-soft); }
.co-reportmoney b { font-weight: 500; }
.co-reportmoney p { font-size: var(--co-note); color: var(--hub-text-dim); line-height: 22px; margin-top: 4px; }
.co-fact { display: flex; gap: 12px; margin-bottom: 10px; }
.co-fact > i { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; margin-left: 1px; }
.co-fact p { font-size: 11.1px; line-height: 1.8; }
.co-fact .fixes { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.co-awayrow { display: grid; grid-template-columns: 170px 26px minmax(0, 1fr); align-items: start; margin-bottom: 8px; font-size: var(--co-rows); line-height: 21px; }
.co-awayrow b { color: var(--hub-text-dim); }
.co-awayrow i { width: 8px; height: 8px; border-radius: 50%; margin: 6.5px 0 0 9px; }
.co-morning { margin-bottom: 16px; }
.co-morning b { display: block; font-size: var(--co-rows); line-height: 20px; margin-bottom: 2px; }
.co-morning .co-field { height: 30px; }

/* --- the lines ------------------------------------------------------------------------------ */

.co .t-onaccent { color: var(--hub-on-accent); }
.co-linerow { height: 96px; margin: 0 10px 8px 0; border-radius: var(--hub-r); padding: 12px 14px 0 12px; cursor: pointer; display: flex; flex-direction: column; color: var(--hub-text); }
.co-linerow:hover { background: rgba(var(--co-white), var(--aw-05)); }
.co-linerow.on { background: var(--hub-accent); color: var(--hub-on-accent); }
.co-linerow.on .co-bar-row .words, .co-linerow.on .co-bar-row .words b, .co-linerow.on .km, .co-linerow.on .co-btn.ghost, .co-linerow.on .co-iconbtn { color: var(--hub-on-accent); }
.co-linerow .top { display: flex; align-items: center; gap: 10px; height: 28px; }
.co-linerow .top > b { font-size: var(--co-rows); margin-left: 12px; }
.co-linerow .bottom { display: flex; align-items: flex-start; gap: 16px; margin-top: 8px; padding-left: 2px; }
.co-linerow .km { flex: 1; text-align: right; font-size: var(--co-note); color: var(--hub-text-dim); line-height: 20px; }
.co-linecard { flex: none; height: min(214px, 45%); }
.co-linecard .halves { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: -4px; flex: 1; min-height: 0; }
.co-linecard .halves > div { min-width: 0; display: flex; flex-direction: column; }
.co-linecard .advert { flex: 1; min-height: 60px; border-radius: var(--hub-r); padding: 14px 14px 10px; display: flex; flex-direction: column; justify-content: space-between; margin-top: 4px; }
.co-linecard .advert b { font-size: 13px; line-height: 1.3; display: block; }
.co-linecard .colours { display: flex; align-items: center; gap: 6px; height: 26px; }
.co-linecard .colours .co-caps { width: 68px; flex: none; }
.co-linecard .colours .sw { width: 20px; height: 20px; border-radius: 4px; cursor: pointer; flex: none; position: relative; }
.co-linecard .colours .sw:hover::after, .co-linecard .colours .sw.on::after { content: ""; position: absolute; inset: -2px; border-radius: 5px; box-shadow: 0 0 0 1.5px var(--hub-text); }
.co-tourrow { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 10px; height: 54px; margin: 0 10px 4px 0; border-bottom: 1px solid var(--hub-hairline); }
.co-tourrow > div { display: flex; flex-direction: column; min-width: 0; padding-top: 4px; }
.co-tourrow b { font-size: var(--co-rows); line-height: 24px; }
.co-tourrow span { font-size: var(--co-note); color: var(--hub-text-dim); line-height: 20px; }
.co-tourrow .who { font-size: var(--co-rows); font-weight: 500; color: var(--hub-text-soft); line-height: 24px; }
.co-tourrow > div:last-child b { font-size: var(--co-note); line-height: 20px; }
.co-addrow { display: flex; align-items: center; gap: 12px; height: 56px; margin: 0 10px 6px 0; padding: 0 8px 0 10px; border-radius: var(--hub-r); }
.co-addrow:hover { background: rgba(var(--co-white), var(--aw-05)); }
.co-addrow > .grow { display: flex; flex-direction: column; margin-left: 10px; }
.co-addrow b { font-size: var(--co-rows); line-height: 24px; }
.co-addrow span { font-size: var(--co-note); color: var(--hub-text-dim); line-height: 20px; }
.co-needs { display: grid; grid-template-columns: 42% 22% 36%; height: 34px; align-items: center; border-bottom: 1px solid var(--hub-hairline); font-size: var(--co-rows); }
.co-needs > span { color: var(--hub-text-soft); }
.co-needs > b { text-align: right; }
.co-needs.head { height: 26px; border: 0; font-size: var(--co-caps); font-weight: 700; color: var(--hub-text-dim); }
.co-needs.head > span { color: var(--hub-text-dim); }
.co-needs.head > span + span { text-align: right; }

/* --- the finances ---------------------------------------------------------------------------- */

.co-monthrow { display: flex; justify-content: space-between; gap: 10px; height: 26px; align-items: center; font-size: var(--co-rows); }
.co-monthrow span { color: var(--hub-text-soft); }
.co-monthrow b { font-weight: 500; }
.co-monthrow.result { border-top: 1px solid var(--hub-hairline); margin-top: 4px; padding-top: 6px; height: 36px; }
.co-monthrow.result span { color: var(--hub-text); font-weight: 700; font-size: var(--co-body); }
.co-monthrow.result b { font-weight: 700; font-size: 12.3px; }
.co-credit { display: grid; grid-template-columns: 46% minmax(0, 1fr); gap: 16px; flex: none; }
.co-credit .value { font-size: 24.6px; font-weight: 700; line-height: 40px; margin-top: 2px; }
.co-credit .say { font-size: 10.75px; font-weight: 500; line-height: 22px; }
.co-credit .lines > div { display: flex; justify-content: space-between; gap: 8px; height: 24px; align-items: center; font-size: 9.98px; }
.co-credit .lines span { color: var(--hub-text-soft); }
.co-credit .lines b { font-weight: 500; }
.co-credit .lines p { font-size: 9.98px; font-weight: 500; color: var(--hub-text-soft); margin-top: 4px; }
.co-loanrow { display: flex; align-items: center; gap: 8px; height: 54px; }
.co-loanrow > .grow { display: flex; flex-direction: column; }
.co-loanrow b { font-size: var(--co-rows); line-height: 22px; }
.co-loanrow span { font-size: var(--co-note); color: var(--hub-text-soft); line-height: 20px; }
.co-ledgerrow { display: grid; grid-template-columns: 170px 190px minmax(40px, 1fr) 110px 170px; align-items: center; height: 28px; padding: 0 16px 0 4px; font-size: var(--co-note); }
.co-ledgerrow > span { color: var(--hub-text-soft); }
.co-ledgerrow .kind { font-weight: 500; }
.co-ledgerrow .text { color: var(--hub-text); font-size: 10.75px; }
.co-ledgerrow .mark { font-size: 9.98px; font-weight: 500; padding-left: 0; }
.co-ledgerrow b { text-align: right; font-size: var(--co-rows); }
.co-farerow { height: 40px; margin-bottom: 4px; gap: 0; padding-right: 2px; font-size: var(--co-note); }
/* a line's fare table and its cap in the fare dialog (`money::fare_view`) */
.co-faretable { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 10px; font-size: var(--co-note); color: var(--hub-text-soft); }
.co-faretable b { color: var(--hub-text); font-weight: 600; margin-left: 4px; }
.co-farecap { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: var(--co-note); color: var(--hub-text-soft); cursor: pointer; }
/* a line's passengers and takings on the Lines page (`lines::line_income`) */
.co-lineincome { flex: none; }
.co-lineincome .thirds { display: grid; grid-template-columns: 1.1fr 0.9fr 1fr; gap: 18px; margin-top: -4px; }
.co-lineincome .thirds > div { min-width: 0; display: flex; flex-direction: column; }
.co-lineincome .rows { background: none; border: 0; padding: 0; margin-top: 2px; text-align: left; color: inherit; font: inherit; cursor: pointer; width: 100%; }
.co-lineincome .row { display: flex; justify-content: space-between; gap: 8px; height: 22px; align-items: center; font-size: var(--co-note); }
.co-lineincome .row span { color: var(--hub-text-soft); }
.co-lineincome .row b { font-weight: 500; }
.co-lineincome .band { display: grid; grid-template-columns: minmax(0, 1fr) 44px 66px; gap: 8px; align-items: center; height: 22px; font-size: var(--co-note); }
.co-lineincome .band span { color: var(--hub-text-soft); }
.co-lineincome .band b { font-weight: 500; text-align: right; }
.co-lineincome .band i { display: block; height: 6px; border-radius: 3px; background: var(--hub-accent); }
.co-lineincome .money { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--hub-hairline); font-size: var(--co-note); color: var(--hub-text-soft); }
.co-lineincome .money b { font-weight: 500; margin-left: 3px; }
.co-farerow b { font-size: var(--co-rows); width: 92px; margin-left: 12px; }
.co-farerow .vs { width: 130px; color: var(--hub-text-soft); }
.co-farerow .pax { flex: 1; text-align: right; font-weight: 500; margin-right: 18px; }

/* the photo's place in the light look: the dark look's greys turned to the light ones */
:root.hub[data-theme="light"] .co-bustile .photo, :root.hub[data-theme="light"] .co-busside .photo, :root.hub[data-theme="light"] .co-talkside .photo { background: linear-gradient(#e0dbd4, #f8f6f0); color: var(--hub-text); }
:root.hub[data-theme="light"] .co-bustile .mono { background: rgba(22, 20, 26, 0.255); color: var(--hub-text); }

/* --- the staff -------------------------------------------------------------------------------- */

.co-portrait { display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--hub-field); box-shadow: inset 0 0 0 1px var(--hub-edge); color: var(--hub-text-dim); font-weight: 700; overflow: hidden; position: relative; }
.co-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.co-staffcards { display: grid; gap: 10px 12px; padding-right: 12px; }
.co-staffcard { height: 116px; border-radius: var(--hub-r); background: var(--hub-panel); box-shadow: inset 0 0 0 1px var(--hub-hairline); display: flex; align-items: center; gap: 18px; padding: 0 18px 0 14px; text-align: left; color: var(--hub-text); cursor: pointer; }
.co-staffcard:hover { background: color-mix(in srgb, var(--hub-panel) 70%, var(--hub-hover)); }
.co-staffcard .who { width: 24%; min-width: 120px; display: flex; flex-direction: column; }
.co-staffcard .role { display: flex; align-items: center; gap: 8px; height: 24px; }
.co-staffcard .role b { font-size: 12.3px; }
.co-staffcard .name { font-size: 11.5px; font-weight: 500; color: var(--hub-text-soft); line-height: 24px; margin-top: 4px; }
.co-staffcard .wage { display: flex; align-items: center; gap: 10px; margin-top: 4px; height: 26px; }
.co-staffcard .wage b { font-size: 12.3px; }
.co-staffcard .now { flex: 1; min-width: 60px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.co-staffcard .now b { font-size: 12.3px; font-weight: 500; line-height: 26px; }
.co-staffcard .now span { font-size: 11.5px; color: var(--hub-text-soft); line-height: 24px; }
.co-needbars { width: clamp(220px, 30%, 330px); display: grid; grid-template-rows: repeat(4, 24px); flex: none; }
.co-needbars > div { display: grid; grid-template-columns: minmax(0, min(42%, 130px)) minmax(0, 1fr); align-items: center; }
.co-needbars > div > span { text-align: right; padding-right: 10px; font-size: var(--co-note); color: var(--hub-text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-needbars > div > span.bold { font-size: 12.3px; font-weight: 700; color: var(--hub-text); }
.co-person { flex: 1; min-height: 0; margin-top: 16px; display: grid; grid-template-columns: min(320px, 30%) minmax(0, 1fr); gap: 18px; }
.co-person .side { align-items: center; padding-top: 24px; text-align: center; }
.co-person .side .co-portrait { width: min(240px, calc(100% - 60px)) !important; height: auto !important; aspect-ratio: 1; }
.co-person .side .name { font-size: var(--co-title); margin-top: 16px; line-height: 28px; }
.co-person .side .role { font-size: 12.3px; font-weight: 500; line-height: 22px; margin-top: 2px; }
.co-person .side .since { font-size: var(--co-note); color: var(--hub-text-soft); line-height: 20px; margin-top: 4px; }
.co-person .side .doing { font-size: var(--co-head); margin-top: 14px; line-height: 24px; }
.co-person .side .doing2 { font-size: var(--co-rows); color: var(--hub-text-soft); line-height: 22px; }
.co-person .side .leaves { font-size: var(--co-rows); font-weight: 500; margin-top: 10px; }
.co-person .grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 300px minmax(120px, 1fr); gap: 18px; min-height: 0; }
.co-need { margin-bottom: 8px; }
.co-need > div { display: flex; justify-content: space-between; font-size: var(--co-rows); height: 22px; align-items: center; margin-bottom: 4px; }
.co-need > span { display: block; font-size: 9.6px; color: var(--hub-text-dim); line-height: 18px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-payrow { display: flex; justify-content: space-between; gap: 10px; height: 28px; align-items: center; font-size: var(--co-rows); }
.co-payrow span { color: var(--hub-text-soft); }
.co-section .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.co-section .pair .co-btn { height: 36px; padding: 0 8px; }
.co-courserow { display: flex; align-items: center; justify-content: space-between; height: 42px; font-size: var(--co-rows); }
.co-courserow > span { display: flex; align-items: center; gap: 10px; }
.co-locked { display: flex; gap: 14px; align-items: flex-start; max-width: 800px; }
.co-hirecards { display: grid; gap: 14px; padding-right: 12px; }
.co-hirecard { position: relative; height: 206px; border-radius: var(--hub-r); background: var(--hub-panel); box-shadow: inset 0 0 0 1px var(--hub-hairline); padding: 16px; }
.co-hirecard .top { display: flex; gap: 16px; }
.co-hirecard .who { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.co-hirecard .who > b { font-size: var(--co-head); line-height: 24px; margin-top: -2px; }
.co-hirecard .who > span { font-size: var(--co-note); color: var(--hub-text-soft); line-height: 20px; margin-top: 2px; }
.co-hirecard .grade { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; height: 26px; margin-top: 2px; font-size: var(--co-rows); }
.co-hirecard .asks { font-size: var(--co-rows); line-height: 22px; margin-top: 4px; }
.co-hirecard .against { font-size: var(--co-note) !important; color: var(--hub-text-dim) !important; line-height: 18px !important; margin-top: 0 !important; }
.co-hirecard .bring { display: flex; gap: 14px; align-items: center; height: 22px; margin-top: 12px; font-size: var(--co-note); color: var(--hub-text-soft); font-weight: 500; }
.co-hirecard .bring b { font-size: var(--co-rows); color: var(--hub-text); min-width: 80px; }
.co-hirecard .bring b.t-warn { color: var(--co-warn); }
.co-hirecard .reliable { display: block; font-size: var(--co-note); color: var(--hub-text-soft); font-weight: 500; line-height: 22px; margin-top: 2px; }
.co-matrix { flex: 1; min-height: 0; display: flex; flex-direction: column; margin-top: 16px; }
.co-matrix .head { display: grid; grid-template-columns: var(--name) repeat(var(--cols), minmax(0, 1fr)); height: 100px; border-bottom: 1px solid var(--hub-hairline); flex: none; padding-right: 12px; }
.co-matrix .namecol { padding-left: 4px; min-width: 0; }
.co-matrix .paging { display: flex; align-items: center; gap: 2px; margin-top: 42px; font-size: var(--co-note); font-weight: 500; color: var(--hub-text-dim); }
.co-matrix .paging span { flex: 1; }
.co-matrix .colhead { min-width: 0; display: flex; flex-direction: column; padding-right: 10px; }
.co-matrix .colhead > div { display: flex; flex-direction: column; height: 62px; font-size: var(--co-note); color: var(--hub-text-dim); line-height: 18px; }
.co-matrix .colhead .title { display: flex; align-items: center; gap: 6px; }
.co-matrix .colhead .title b { font-size: 10.75px; color: var(--hub-text); }
.co-matrix .rows { flex: 1; min-height: 0; padding-top: 6px; }
.co-matrix .row { display: grid; grid-template-columns: var(--name) repeat(var(--cols), minmax(0, 1fr)); height: 40px; align-items: center; border-bottom: 1px solid var(--hub-hairline); margin-right: 12px; }
.co-matrix .row .namecol { display: flex; align-items: center; gap: 8px; }
.co-matrix .row .namecol b { font-size: var(--co-rows); flex: 1; min-width: 0; }
.co-matrix .row .namecol span { font-size: var(--co-note); font-weight: 500; color: var(--hub-text-soft); width: 60px; flex: none; }
.co-matrix .cell { display: flex; align-items: center; gap: 8px; font-size: var(--co-note); padding: 0 10px 0 4px; min-width: 0; }
.co-hours { flex: 1; min-height: 0; display: flex; gap: 30px; margin-top: 24px; }
.co-hours .left { width: min(56%, 760px); display: flex; flex-direction: column; overflow: auto; }
.co-hours .left .title { display: block; text-align: center; font-size: var(--co-title); line-height: 28px; }
.co-hours .times { display: flex; align-items: center; justify-content: center; gap: 0; margin: 16px 0 14px; }
.co-hours .times > span { width: 60px; text-align: center; font-size: 16.9px; font-weight: 700; color: var(--hub-text-dim); }
.co-timefield { width: 150px; height: 52px; text-align: center; font-size: 16.9px; font-weight: 700; border-radius: var(--hub-r); }
.co-timefield.still { display: inline-flex; align-items: center; justify-content: center; background: var(--hub-field); color: var(--hub-text-soft); }
.co-hours .notes { margin-top: 18px; padding: 0 20px; }
.co-hours .notes p { font-size: var(--co-rows); line-height: 1.8; margin-bottom: 10px; }
.co-hours .right { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.co-eachrow { display: flex; justify-content: space-between; gap: 10px; height: 28px; align-items: center; font-size: var(--co-rows); padding-right: 12px; }
.co-eachrow b { font-weight: 500; }
.co-rules { max-width: 760px; overflow: auto; height: 100%; }
.co-rules .co-note { margin-bottom: 10px; }
.co-rules .minrow { display: flex; align-items: center; gap: 8px; height: 34px; padding-left: 20px; font-size: var(--co-rows); font-weight: 500; }
.co-rules .minrow > .hub-icon { color: var(--co-accent2); }
.co-rules .minrow > span.cut { width: 45%; }
.co-rules .minrow b { width: 44px; text-align: center; font-size: var(--co-head); }
.co-rules .minrow .now { font-size: var(--co-note); color: var(--hub-text-dim); font-weight: 400; margin-left: 10px; }
.co-rules .minrow.off, .co-rules .minrow.off > .hub-icon { color: var(--hub-text-dim); }

/* --- the holidays (people.js `Holidays`, `HolidayRequest`) ------------------------------------ */

.co-hol { height: 100%; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 1fr); gap: 22px; }
.co-hol .left { min-height: 0; overflow: auto; padding-right: 6px; }
.co-hol .right { min-height: 0; padding-right: 10px; }
.co-hol-limit { display: flex; align-items: center; gap: 8px; min-height: 36px; flex-wrap: wrap; font-size: var(--co-rows); }
.co-hol-limit > b.cut { font-size: var(--co-head); margin-right: 6px; }
.co-hol-limit > b.n { width: 34px; text-align: center; font-size: var(--co-title); }
.co-hol-limit > .co-note { margin-left: 8px; }
.co-holcal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.co-holcal .wd { text-align: center; font-size: var(--co-caps); font-weight: 700; color: var(--hub-text-dim); text-transform: uppercase; letter-spacing: 0.04em; }
.co-holcal .day { display: flex; flex-direction: column; gap: 4px; min-width: 0; height: 58px; padding: 6px 7px; border: 0; border-radius: var(--hub-r); background: var(--hub-panel); box-shadow: inset 0 0 0 1px var(--hub-hairline); color: var(--hub-text); text-align: left; cursor: pointer; font: inherit; }
.co-holcal .day:hover:not(:disabled) { background: color-mix(in srgb, var(--hub-panel) 70%, var(--hub-hover)); }
.co-holcal .day.gone { opacity: 0.4; cursor: default; }
.co-holcal .day.today { box-shadow: inset 0 0 0 1.5px var(--hub-accent); }
.co-holcal .day.on { background: color-mix(in srgb, var(--hub-panel) calc(100% - var(--ac-12) * 100%), var(--co-accent2)); box-shadow: inset 0 0 0 1.5px var(--co-accent2); }
.co-holcal .day .top { display: flex; align-items: center; gap: 4px; font-size: var(--co-rows); }
.co-holcal .day .top i { font-style: normal; font-size: var(--co-note); color: var(--hub-text-dim); flex: 1; }
.co-holcal .day .count { font-size: var(--co-note); font-weight: 700; }
.co-holcal .day .count i { font-style: normal; font-weight: 500; color: var(--co-warn); margin-left: 5px; }
.co-hollegend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 14px; font-size: var(--co-note); color: var(--hub-text-soft); }
.co-hollegend span { display: inline-flex; align-items: center; gap: 6px; }
.co-hollegend i { width: 10px; height: 10px; border-radius: 3px; }
.co-holday { margin-bottom: 12px; }
.co-holday .co-payrow b { max-width: 60%; }
.co-holnotes p { margin-bottom: 6px; line-height: 1.6; }
.co-holreq { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin-bottom: 10px; border-radius: var(--hub-r); background: var(--hub-panel); box-shadow: inset 0 0 0 1px var(--hub-hairline); cursor: default; }
.co-holreq.compact { margin: 10px 0 0; padding: 10px 12px; background: var(--hub-field); box-shadow: none; }
.co-holreq .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.co-holreq .who { display: flex; align-items: center; gap: 10px; }
.co-holreq .who b { font-size: var(--co-head); }
.co-holreq .who span { display: inline-flex; align-items: center; gap: 4px; font-size: var(--co-note); color: var(--hub-text-soft); }
.co-holreq .when { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--co-rows); }
.co-holreq .when span { color: var(--hub-text-soft); font-size: var(--co-note); }
.co-holreq .tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--co-note); color: var(--hub-text-soft); }
.co-holreq .facts { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: var(--co-note); color: var(--hub-text-dim); }
.co-holreq .advice { display: flex; align-items: center; gap: 6px; font-size: var(--co-note); font-weight: 500; }
.co-holreq .answer { display: flex; flex-direction: column; gap: 6px; align-items: stretch; flex: none; width: 120px; text-align: right; font-size: var(--co-note); }
.co-holreq.compact .answer { width: 110px; }

/* --- the inbox ------------------------------------------------------------------------------ */

.co-inbox { flex: 1; min-height: 0; display: grid; grid-template-columns: max(360px, calc((100% - 14px) * 0.56)) minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.co-inbox .left { display: flex; flex-direction: column; min-height: 0; gap: 14px; }
.co-inbox .list { flex: 1; min-height: 120px; position: relative; }
.co-inbox .strip { flex: none; height: 58px; border-radius: var(--hub-r); box-shadow: inset 0 0 0 1px var(--hub-hairline); padding: 8px 12px 0 16px; }
.co-inbox .strip .co-caps { line-height: 14px; }
.co-emptymid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; font-size: var(--co-body); font-weight: 500; color: var(--hub-text-soft); padding: 0 20px; }
.co-msg { position: relative; display: flex; gap: 0; margin: 0 10px 10px 0; padding: 14px 16px 14px 0; border-radius: var(--hub-r); background: var(--hub-panel); box-shadow: inset 0 0 0 1px var(--hub-hairline); cursor: pointer; }
.co-msg:hover { background: color-mix(in srgb, var(--hub-panel) 70%, var(--hub-hover)); }
.co-msg.on { background: color-mix(in srgb, var(--hub-panel) calc(100% - var(--ac-12) * 100%), var(--co-accent2)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--co-accent2) calc(var(--ac-7) * 100%), transparent); }
.co-msg.unread::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 2px; background: var(--hub-accent); }
.co-msg .icon { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: -3px 12px 0 12px; flex: none; }
.co-msg .body { flex: 1; min-width: 0; }
.co-msg .top { display: flex; align-items: center; gap: 8px; height: 24px; }
.co-msg .top b { flex: 1; font-size: 12.7px; font-weight: 500; }
.co-msg.unread .top b { font-weight: 700; }
.co-msg .top .date { font-size: var(--co-note); font-weight: 500; color: var(--hub-text-dim); }
.co-msg p { font-size: var(--co-rows); line-height: 1.8; margin-top: 6px; color: var(--hub-text-soft); }
.co-msg.unread p { color: var(--hub-text); }
.co-widebar { position: relative; border-radius: 6px; background: var(--hub-field); overflow: hidden; }
.co-widebar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; }
.co-widebar span { position: relative; display: flex; align-items: center; justify-content: center; height: 100%; font-size: var(--co-note); font-weight: 700; padding: 0 8px; white-space: nowrap; overflow: hidden; }
.co-trophies { display: flex; align-items: center; gap: 10px; height: 32px; }
.co-trophies .co-widebar { flex: 1; }
.co-reward { display: inline-flex; align-items: center; gap: 4px; font-size: var(--co-rows); }
.co-reward b + .hub-icon { margin-left: 12px; }
.co-msgdetail h3 { font-size: var(--co-title); font-weight: 700; line-height: 1.8; margin: 12px 0 10px; }
.co-effect { display: flex; align-items: center; gap: 10px; height: 26px; font-size: var(--co-rows); font-weight: 500; }
.co-effect i { width: 8px; height: 8px; border-radius: 50%; margin-left: 1px; flex: none; }
.co-daystrip { display: flex; gap: 4px; margin: 4px 0 14px; }
.co-daystrip span { width: 90px; flex: 0 1 90px; min-width: 0; height: 46px; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: var(--co-rows); font-weight: 500; background: var(--hub-field); color: var(--hub-text-soft); }
.co-daystrip span b { font-size: 9.6px; line-height: 18px; }
.co-daystrip span.gone { background: color-mix(in srgb, var(--co-accent2) calc(var(--ac-55) * 100%), transparent); color: var(--hub-text); }
.co-daystrip span.today { background: rgba(var(--hub-accent-rgb), var(--ac-9)); color: var(--hub-on-accent); }

/* --- the career ------------------------------------------------------------------------------ */

.co-myduty { display: flex; align-items: center; gap: 12px; height: 76px; margin: 0 10px 8px 0; padding: 0 14px 0 16px; border-radius: var(--hub-r); box-shadow: inset 0 0 0 1px var(--hub-hairline); }
.co-myduty.next { background: rgba(var(--hub-accent-rgb), var(--ac-1)); box-shadow: inset 0 0 0 1px rgba(var(--hub-accent-rgb), var(--ac-5)); }
.co-myduty .when { width: min(190px, 30%); display: flex; flex-direction: column; flex: none; }
.co-myduty .when b { font-size: var(--co-rows); line-height: 22px; }
.co-myduty .when span { font-size: 14.6px; font-weight: 700; line-height: 26px; margin-top: 4px; }
.co-myduty .what { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.co-myduty .what > div { display: flex; align-items: center; gap: 10px; font-size: var(--co-rows); font-weight: 500; }
.co-myduty .what > span { display: flex; align-items: center; gap: 8px; font-size: var(--co-note); }
.co-takerow { display: flex; align-items: center; gap: 10px; height: 48px; margin: 0 10px 6px 0; border-bottom: 1px solid var(--hub-hairline); }
.co-takerow > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.co-takerow .top { display: flex; align-items: center; gap: 10px; }
.co-takerow b { font-size: var(--co-rows); }
.co-takerow span { font-size: var(--co-note); line-height: 20px; }
.co-reached { position: relative; display: flex; align-items: center; gap: 14px; height: 56px; padding: 0 14px 0 20px; margin-bottom: 12px; border-radius: var(--hub-r); background: color-mix(in srgb, var(--co-accent2) calc(var(--ac-1) * 100%), transparent); flex: none; }
.co-reached::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 2px; background: var(--co-accent2); }
.co-reached .grow { display: flex; flex-direction: column; }
.co-reached b { font-size: 12.3px; line-height: 20px; }
.co-reached span { font-size: 10.75px; color: var(--hub-text-soft); line-height: 18px; }
.co-progress .who { display: block; font-size: 10.75px; font-weight: 500; color: var(--hub-text-dim); line-height: 18px; margin-top: -2px; }
.co-progress .title { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 30px; margin-top: 0; }
.co-progress .title b { font-size: 16.9px; }
.co-progress .facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 18px; }
.co-progress .facts b { display: block; font-size: 15.35px; line-height: 28px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-licence { display: flex; align-items: center; gap: 10px; height: 40px; border-bottom: 1px solid var(--hub-hairline); font-size: 10.75px; }
.co-licence > b { width: 40%; font-size: 11.9px; flex: none; }
.co-feature { display: flex; align-items: center; gap: 12px; height: 38px; border-bottom: 1px solid var(--hub-hairline); margin: 0 12px 2px 0; font-size: var(--co-rows); font-weight: 500; }
.co-feature > b { font-size: 10.75px; width: 116px; text-align: right; }
.co-mycourses { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 12px; flex: 1; min-height: 0; }
.co-mycourses > div { position: relative; border-radius: var(--hub-r); box-shadow: inset 0 0 0 1px var(--hub-hairline); padding: 12px 18px 0 48px; min-width: 0; }
.co-mycourses .mark { position: absolute; left: 12px; top: 14px; color: var(--co-accent2); }
.co-mycourses b { display: block; font-size: 12.3px; line-height: 24px; padding-right: 150px; }
.co-mycourses .terms { display: block; font-size: var(--co-note); color: var(--hub-text-soft); line-height: 20px; padding-right: 150px; }
.co-mycourses p { font-size: 10.75px; color: var(--hub-text-soft); margin: 14px 0 0 -30px; line-height: 22px; }
.co-mycourses .state { position: absolute; right: 14px; top: 12px; font-size: var(--co-note); font-weight: 500; }
.co-coursegrid { display: grid; grid-template-columns: max(160px, 22%) repeat(var(--cols), minmax(0, 1fr)); align-items: center; height: 40px; gap: 0 8px; font-size: var(--co-note); border-bottom: 1px solid var(--hub-hairline); margin-right: 12px; }
.co-coursegrid > b { font-size: var(--co-rows); }
.co-coursegrid.head { height: 46px; align-items: start; flex: none; }
.co-coursegrid.head > div { display: flex; flex-direction: column; min-width: 0; }
.co-coursegrid.head > div > span:first-child { display: flex; align-items: center; gap: 6px; }
.co-coursegrid.head b { font-size: 10.75px; }
.co-coursegrid.head .terms { font-size: var(--co-note); color: var(--hub-text-dim); margin-left: 21px; }
.co-job { display: flex; align-items: center; gap: 12px; height: 52px; margin: 0 12px 4px 0; padding: 0 12px 0 10px; border-bottom: 1px solid var(--hub-hairline); }
.co-job .icon { width: 28px; display: flex; justify-content: center; }
.co-job .grow { display: flex; flex-direction: column; }
.co-job .grow b { font-size: 11.9px; line-height: 20px; }
.co-job .grow span { font-size: var(--co-note); color: var(--hub-text-dim); line-height: 18px; }
.co-job .save { width: 120px; text-align: right; font-size: 10.75px; font-weight: 500; }
.co-rank { display: grid; grid-template-columns: 8% 36% 12% 16% 14% 14%; align-items: center; height: 30px; font-size: var(--co-rows); color: var(--hub-text-soft); border-radius: 6px; padding: 0 6px; margin-right: 8px; }
.co-rank > *:nth-child(n+3) { text-align: right; padding-right: 8px; }
.co-rank > *:first-child { text-align: center; font-weight: 500; color: var(--hub-text-dim); }
.co-rank b { color: var(--hub-text); }
.co-rank.head { height: 20px; font-size: var(--co-caps); font-weight: 700; color: var(--hub-text-dim); border-bottom: 1px solid var(--hub-hairline); border-radius: 0; margin-bottom: 6px; flex: none; }
.co-rank.you { background: rgba(var(--hub-accent-rgb), var(--ac-12)); color: var(--hub-text); font-weight: 700; }
.co-rank .medal { width: 22px; height: 22px; border-radius: 50%; display: inline-flex !important; align-items: center; justify-content: center; margin: 0 auto; font-weight: 700; color: #1a1400 !important; }
.co-rank .medal.m1 { background: #e8c547; }
.co-rank .medal.m2 { background: #c7cdd6; }
.co-rank .medal.m3 { background: #d39a63; }
.co-scores { flex: 1; min-height: 80px; display: flex; gap: 6px; }
.co-scores .axis { width: 24px; display: flex; flex-direction: column; justify-content: space-between; font-size: var(--co-caps); color: var(--hub-text-dim); text-align: right; padding: 0 0 2px; }
.co-scores .plot { position: relative; flex: 1; }
.co-scores .grid { position: absolute; left: 0; right: 0; height: 1px; background: rgba(var(--co-white), var(--aw-06)); }
.co-scores .bar { position: absolute; bottom: 0; border-radius: 2px 2px 0 0; }

/* --- the company's way into RosterFlow: RosterFlow's palette (`rosterflow::DARK`, `LIGHT`) ---- */

.co-launch { --rf-bg: #272e38; --rf-bar: #0b1633; --rf-sheet: #2e3642; --rf-text: #e2e6ec; --rf-dim: #969eac; --rf-faint: #68707e; --rf-line: rgba(255, 255, 255, 0.259); --rf-accent: #00a6e8; --rf-err: #f04848; --rf-grey: #687484; --rf-grey-ink: #ffffff;
  height: 100%; border-radius: var(--hub-r); background: var(--rf-bg); color: var(--rf-text); display: flex; flex-direction: column; overflow: hidden; }
:root.hub[data-theme="light"] .co-launch { --rf-bg: #f0f3f7; --rf-bar: #ffffff; --rf-sheet: #ffffff; --rf-text: #0f1a33; --rf-dim: #5c6878; --rf-faint: #96a0ae; --rf-line: rgba(20, 36, 60, 0.09); --rf-accent: #0077b6; --rf-err: #d62e2e; --rf-grey: #c4ccd6; --rf-grey-ink: #1c2430; }
.co-launch .caps { font-size: var(--co-caps); font-weight: 700; text-transform: uppercase; color: var(--rf-dim); display: flex; align-items: center; gap: 6px; line-height: 16px; }
.co-launch .dim { color: var(--rf-dim); }
.co-launch .faint { color: var(--rf-faint); }
.co-launch .err { color: var(--rf-err); }
.co-launch .ic.accent { color: var(--rf-accent); }
.co-launch .ic.faint { color: var(--rf-faint); }
.co-launch .ic.err { color: var(--rf-err); }
.co-launch .head { height: 84px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 20px; background: var(--rf-bar); border-bottom: 1px solid var(--rf-line); border-radius: var(--hub-r) var(--hub-r) 0 0; }
.co-launch .head .co-mark { width: 48px !important; height: 48px !important; }
.co-launch .head .who { flex: 1; min-width: 0; margin-left: 4px; }
.co-launch .head .who .caps { color: var(--rf-accent); }
.co-launch .head .who > div { display: flex; align-items: baseline; gap: 18px; margin-top: 8px; white-space: nowrap; overflow: hidden; }
.co-launch .head .who b { font-size: var(--co-title); }
.co-launch .head .who > div span { font-size: 13px; font-weight: 500; color: var(--rf-dim); }
.co-rfbtn { height: 36px; border-radius: 2px; background: var(--rf-grey); color: var(--rf-grey-ink); font-size: 9.6px; font-weight: 700; text-transform: uppercase; cursor: pointer; flex: none; }
.co-rfbtn:hover { filter: brightness(1.08); }
.co-rfbtn.solid { background: var(--rf-accent); color: #fff; }
.co-launch .reading { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 10.75px; color: var(--rf-dim); }
.co-launch .tiles { display: flex; gap: 10px; height: 44px; margin: 12px 20px 0; flex: none; }
.co-launch .tiles > div { min-width: 0; border-radius: 4px; background: var(--rf-sheet); padding: 5px 12px 0; display: flex; flex-direction: column; }
.co-launch .tiles > div .caps { line-height: 14px; }
.co-launch .tiles > div b { font-size: 11.1px; line-height: 18px; margin-top: 3px; }
.co-launch .body { flex: 1; min-height: 0; display: grid; grid-template-columns: clamp(340px, 40%, 560px) minmax(200px, 1fr); gap: 16px; margin: 12px 20px 20px; }
.co-launch .card { border-radius: 4px; background: var(--rf-sheet); padding: 12px 16px; display: flex; flex-direction: column; min-height: 0; }
.co-launch .card.rows { padding: 12px 4px 8px 8px; }
.co-launch .card.rows > .caps { margin: 0 0 10px 8px; }
.co-launch .list { flex: 1; min-height: 0; padding-right: 6px; }
.co-launch .lrow { display: grid; grid-template-columns: 70px 30px minmax(0, 1fr); align-items: center; height: 44px; padding-left: 8px; }
.co-launch .lrow.break { height: 30px; }
.co-launch .lrow.trip { border-top: 1px solid var(--rf-line); }
.co-launch .lrow .time { font-size: 10.75px; display: flex; flex-direction: column; }
.co-launch .lrow .time span { font-size: 9.2px; }
.co-launch .lrow .what { display: flex; flex-direction: column; min-width: 0; font-size: 10.4px; line-height: 18px; white-space: nowrap; overflow: hidden; }
.co-launch .lrow .what b { font-size: 10.75px; }
.co-launch .lrow .what span { font-size: 9.6px; overflow: hidden; text-overflow: ellipsis; }
.co-launch .lrow.break > span:last-child { font-size: 9.6px; }
.co-launch .chip { height: 20px; min-width: 30px; padding: 0 7px; border-radius: 3px; font-size: 9.6px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-right: 6px; justify-self: end; }
.co-launch .chip.empty { background: rgba(112, 124, 140, 0.35); color: var(--rf-dim); }
.co-launch .right { display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.co-launch .map { position: relative; flex: 0 0 52%; min-height: 160px; border-radius: 4px; overflow: hidden; background: var(--rf-sheet); }
.co-launch .map > div { position: absolute; inset: 0; }
/* (the duty's route as the Drive page's map draws it, `duty_launch::route_map`: no count of roads) */
.co-launch .map .routemap { background: none; }
.co-launch .map .routemap .legend { display: none; }
:root.hub[data-theme="dark"] .co-launch .map { background: #090c18; }
:root.hub[data-theme="light"] .co-launch .map { background: var(--hub-ground); }
.co-launch .maplabel { position: absolute; left: 10px; top: 10px; z-index: 2; width: 170px; height: 24px; border-radius: 4px; background: var(--rf-bar); font-size: 8.4px; font-weight: 700; text-transform: uppercase; display: flex; align-items: center; padding: 0 10px; }
.co-launch .low { flex: 1; min-height: 80px; display: grid; grid-template-columns: 48% minmax(120px, 1fr); gap: 16px; }
.co-launch .busrow { display: grid; grid-template-columns: clamp(90px, 36%, 140px) minmax(0, 1fr); align-items: center; height: 30px; border-bottom: 1px solid var(--rf-line); margin-bottom: 3px; font-size: 9.98px; }
.co-launch .busrow span { color: var(--rf-dim); }
.co-launch .card.bus .caps, .co-launch .card.start > .caps { margin-bottom: 10px; }
.co-launch .note { display: flex; gap: 8px; font-size: 9.2px; color: var(--rf-faint); margin-top: 8px; line-height: 1.8; }
.co-launch .start .weather { display: flex; align-items: center; gap: 0; }
.co-launch .start .weather > span { width: 90px; font-size: 9.98px; }
.co-launch .start .weather .co-field { height: 36px; }
.co-launch .start .when, .co-launch .start .fixed { display: flex; gap: 8px; font-size: 9.6px; line-height: 1.8; margin-top: 12px; }
.co-launch .start .fixed { color: var(--rf-faint); font-size: 9.2px; }
/* alone or together, in the company's world (`launch.js`'s Together): two starts side by side */
.co-launch .start .along { display: flex; gap: 8px; font-size: 9.6px; line-height: 1.6; margin-bottom: 8px; }
.co-launch .start .together { display: flex; gap: 10px; }
.co-launch .start .hitch { display: flex; gap: 8px; }
.co-launch .start .hitch b { font-size: 11.1px; }
.co-launch .start .hitch p { font-size: 9.6px; margin-top: 2px; line-height: 1.8; }
.co-launch .start .off { height: 52px; border-radius: 2px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rf-faint) 55%, transparent); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.co-launch .start .off > span:first-child { display: flex; align-items: center; gap: 6px; font-size: 9.6px; font-weight: 700; color: var(--rf-faint); }
.co-launch .start .off .why { font-size: 8.8px; font-weight: 500; max-width: 95%; }

/* --- Casual ------------------------------------------------------------------------------------ */

.co-casual { height: 100%; max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; }
.co-casual-head { display: flex; align-items: flex-start; gap: 0; height: 62px; flex: none; }
.co-casual-head .grow { display: flex; flex-direction: column; }
.co-casual-head .grow b { font-size: var(--co-title); line-height: 28px; margin-top: -4px; }
.co-casual-head .grow span { font-size: var(--co-note); color: var(--hub-text-soft); line-height: 20px; }
.co-casual-head .co-iconbtn { margin-top: 3px; }
.co-casual-body { flex: 1; min-height: 0; }
.co-casual-empty { max-width: 520px; margin: 40px auto 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.co-casual-empty .ring { width: 52px; height: 52px; border-radius: 50%; background: rgba(var(--hub-accent-rgb), var(--ac-14)); color: var(--co-accent2); display: flex; align-items: center; justify-content: center; }
.co-casual-empty b { font-size: var(--co-head); margin-top: 14px; line-height: 28px; }
.co-casual-empty p { font-size: var(--co-body); color: var(--hub-text-soft); line-height: 1.8; margin-top: 6px; }
.co-casual-home { margin: 4px auto 8px; }
.co-casual-home .top { display: grid; gap: 16px; }
.co-casual-home .today { border-radius: var(--hub-r-sheet); background: var(--hub-panel); box-shadow: inset 0 0 0 1px var(--hub-edge); padding: 22px 22px 16px; min-height: 196px; }
.co-casual-home .today .when { display: flex; align-items: baseline; gap: 4px; height: 22px; }
.co-casual-home .today .when b { font-size: var(--co-caps); color: var(--co-accent2); }
.co-casual-home .today .when span { font-size: var(--co-note); color: var(--hub-text-dim); margin-left: 10px; }
.co-casual-home .sentence { font-size: 16.9px; font-weight: 700; line-height: 1.8; margin: 10px 0 18px; }
.co-casual-home .today .co-caps { margin-bottom: 4px; }
.co-casual-home .solved { display: flex; align-items: center; gap: 11px; height: 26px; font-size: 10.75px; color: var(--hub-text-soft); padding-left: 1px; }
.co-casual-home .drive { border-radius: var(--hub-r-sheet); background: var(--hub-accent); color: var(--hub-on-accent); text-align: left; position: relative; min-height: 196px; padding: 0; display: block; cursor: pointer; transition: transform 0.22s cubic-bezier(0.25, 1.35, 0.5, 1), background 0.1s, box-shadow 0.15s; }
.co-casual-home .drive:hover { transform: translateY(-3px); background: var(--hub-accent-hover); box-shadow: 0 10px 22px rgba(var(--hub-accent-rgb), var(--ac-3)); }
.co-casual-home .drive .ring { position: absolute; left: 26px; top: 30px; width: 68px; height: 68px; border-radius: 50%; background: color-mix(in srgb, var(--hub-on-accent) 16%, transparent); display: flex; align-items: center; justify-content: center; }
.co-casual-home .drive b { position: absolute; left: 26px; right: 26px; top: 120px; font-size: 19.95px; line-height: 34px; }
.co-casual-home .drive > span:last-child { position: absolute; left: 26px; right: 26px; top: 160px; font-size: var(--co-body); font-weight: 500; opacity: 0.85; line-height: 1.8; }
.co-casual-home .tiles { display: grid; gap: 16px; margin: 20px 0 8px; }
/* (ctile: .tile is taken by another style) */
.co-casual-home .ctile { height: 180px; padding: 18px; display: flex; flex-direction: column; }
.co-casual-home .ctile .name { display: flex; align-items: center; gap: 10px; height: 34px; }
.co-casual-home .ctile .name b { font-size: 12.3px; }
.co-casual-home .ctile .mark { width: 34px; height: 34px; border-radius: var(--hub-r); background: rgba(var(--hub-accent-rgb), var(--ac-14)); color: var(--co-accent2); display: flex; align-items: center; justify-content: center; flex: none; transition: background 0.1s, color 0.1s; }
.co-casual-home .ctile:hover .mark { background: var(--hub-accent); color: var(--hub-on-accent); }
.co-casual-home .ctile .big { font-size: 26px; font-weight: 700; line-height: 34px; margin-top: 12px; }
.co-casual-home .ctile .under { font-size: var(--co-note); color: var(--hub-text-soft); line-height: 20px; margin-top: 4px; margin-bottom: auto; }
.co-casual-home .tip, .co-casual-money .tip { position: relative; display: flex; align-items: center; gap: 14px; height: 56px; padding: 0 12px 0 16px; border-radius: var(--hub-r); background: color-mix(in srgb, var(--co-accent2) calc(var(--ac-09) * 100%), transparent); margin-bottom: 8px; font-size: var(--co-body); font-weight: 500; }
.co-casual-home .tip::before, .co-casual-money .tip::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 2px; background: var(--co-accent2); }
.co-casual-home .tip .ic, .co-casual-money .tip .ic { color: var(--co-accent2); margin-left: 2px; }
.co-casual-home .tip.warn, .co-casual-money .tip.warn { background: rgba(var(--co-warn-fill), var(--ac-09)); }
.co-casual-home .tip.warn::before, .co-casual-money .tip.warn::before { background: rgb(var(--co-warn-fill)); }
.co-casual-home .tip.warn .ic, .co-casual-money .tip.warn .ic { color: var(--co-warn); }
.co-casual-home .tip.calm { background: color-mix(in srgb, var(--hub-field) 60%, transparent); color: var(--hub-text-soft); }
.co-casual-home .tip.calm::before { display: none; }
.co-casual-home .hint { display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 12px 0 16px; border-radius: var(--hub-r); background: color-mix(in srgb, var(--hub-field) 70%, transparent); box-shadow: inset 0 0 0 1px var(--hub-hairline); margin-top: 16px; font-size: 10.75px; font-weight: 500; color: var(--hub-text-soft); }
.co-bustile .info .casualstate { display: flex; justify-content: space-between; gap: 8px; height: 20px; align-items: center; font-size: 9.6px; font-weight: 500; color: var(--hub-text-dim); margin-top: 2px; }
.co-bustile .info .casualstate b { font-size: 9.6px; line-height: 20px; height: auto; font-weight: 700; white-space: nowrap; }
.co-bustile .info .shoplock { display: flex; align-items: center; gap: 8px; font-size: var(--co-note); font-weight: 500; color: var(--hub-text-dim); margin-top: 6px; }
.co-bustile .info .shopbuy { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 4px; }
.co-bustile .info .shopbuy b { font-size: 14.6px; height: auto; line-height: 26px; }
.co-bustile .info .shopbuy span { font-size: var(--co-body); font-weight: 700; }
.co-casual-lines { display: grid; gap: 16px; padding-right: 12px; }
.co-casual-line { position: relative; height: 186px; border-radius: var(--hub-r-sheet); background: var(--hub-panel); box-shadow: inset 0 0 0 1px var(--hub-edge); padding: 18px; }
.co-casual-line.lit { box-shadow: inset 0 0 0 1px rgba(var(--hub-accent-rgb), var(--ac-8)); }
.co-casual-line .top { display: flex; align-items: center; gap: 12px; height: 30px; }
.co-casual-line .top b { font-size: 12.7px; }
.co-casual-line .facts { display: flex; gap: 18px; margin-top: 16px; height: 22px; font-size: var(--co-note); font-weight: 500; color: var(--hub-text-soft); }
.co-casual-line .facts > span { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 50%; }
.co-casual-line .fare { position: relative; border-top: 1px solid var(--hub-hairline); margin-top: 14px; padding-top: 4px; }
.co-casual-line .advice { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; font-size: var(--co-note); font-weight: 500; }
.co-wizsteps { display: flex; max-width: 720px; height: 36px; flex: none; }
.co-wizsteps > span { flex: 1; display: flex; align-items: center; gap: 10px; font-size: var(--co-body); font-weight: 500; color: var(--hub-text-dim); position: relative; padding-left: 3px; }
.co-wizsteps > span.done, .co-wizsteps > span.now { color: var(--hub-text); }
.co-wizsteps > span.now b { font-weight: 700; }
.co-wizsteps i { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--hub-hairline); font-style: normal; font-size: 9.98px; font-weight: 700; color: var(--hub-text-dim); display: flex; align-items: center; justify-content: center; }
.co-wizsteps .now i { background: var(--hub-accent); color: var(--hub-on-accent); box-shadow: none; font-size: 10.75px; }
.co-wizsteps em { position: absolute; right: 8px; top: 50%; width: 22px; height: 1.5px; background: var(--hub-hairline); }
.co-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; max-width: 1180px; padding-right: 12px; }
.co-choices.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* (a flex column: a button centres what it holds, and a card of one line sat lower) */
.co-choice { height: 132px; padding: 18px; display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; text-align: left; }
.co-choices.three .co-choice { height: 150px; }
.co-choice.on { box-shadow: inset 0 0 0 1px var(--hub-accent); background: color-mix(in srgb, var(--hub-panel) 92%, var(--hub-accent)); }
.co-choice .top { display: flex; align-items: center; gap: 12px; height: 34px; }
.co-choice .top b { font-size: 12.7px; }
.co-choice .mark { width: 36px; height: 36px; border-radius: var(--hub-r); background: rgba(var(--hub-accent-rgb), var(--ac-14)); color: var(--co-accent2); display: flex; align-items: center; justify-content: center; flex: none; }
.co-choice:hover .mark { background: var(--hub-accent); color: var(--hub-on-accent); }
.co-choice p { font-size: 10.75px; color: var(--hub-text-soft); line-height: 1.8; margin-top: 14px; }
.co-choice.still { border-radius: var(--hub-r-sheet); background: color-mix(in srgb, var(--hub-field) 40%, transparent); }
.co-choice.still b { font-size: 12.7px; color: var(--hub-text-faint); }
.co-wizdone { max-width: 760px; }
.co-wizdone .title { display: block; font-size: 14.6px; line-height: 30px; margin-bottom: 14px; }
.co-wizdone .row { display: grid; grid-template-columns: 34px 42% minmax(0, 1fr); align-items: center; height: 34px; border-bottom: 1px solid var(--hub-hairline); margin-bottom: 6px; font-size: var(--co-body); }
.co-wizdone .row > .hub-icon { margin-left: 3px; }
.co-wizdone .row span { color: var(--hub-text-soft); }
.co-wizdone .row b { text-align: right; }
.co-wizfoot { display: flex; height: 44px; max-width: 1180px; flex: none; margin-top: 16px; }
.co-casual-drivers { display: grid; gap: 16px; padding-right: 12px; }
.co-casual-drivers .card { height: 168px; border-radius: var(--hub-r-sheet); background: var(--hub-panel); box-shadow: inset 0 0 0 1px var(--hub-edge); padding: 16px; display: flex; flex-direction: column; justify-content: space-between; }
.co-casual-drivers .top { display: flex; gap: 14px; }
.co-casual-drivers .who { min-width: 0; display: flex; flex-direction: column; }
.co-casual-drivers .who b { font-size: 12.7px; line-height: 22px; }
.co-casual-drivers .stars { display: flex; gap: 2px; margin-top: 6px; }
.co-casual-drivers .stars .off { color: var(--hub-hairline); }
.co-casual-drivers .doing { display: flex; align-items: center; gap: 7px; font-size: var(--co-note); font-weight: 500; margin-top: 8px; }
.co-casual-drivers .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.co-casual-money { max-width: 1180px; }
.co-casual-money .pair { display: grid; grid-template-columns: 58% minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.co-casual-money .card { height: 330px; border-radius: var(--hub-r-sheet); background: var(--hub-panel); box-shadow: inset 0 0 0 1px var(--hub-edge); padding: 16px 20px; display: flex; flex-direction: column; }
.co-casual-money .headrow { display: flex; align-items: center; gap: 0; }
.co-casual-money .key { display: flex; align-items: center; gap: 6px; width: 95px; font-size: var(--co-note); font-weight: 500; color: var(--hub-text-soft); }
.co-casual-money .key i { width: 12px; height: 12px; border-radius: 3px; }
.co-casual-money i.in { background: rgba(var(--co-ok-fill), var(--ac-88)); }
.co-casual-money i.out { background: rgba(var(--co-danger-fill), var(--ac-88)); }
.co-casual-money .chart { position: relative; flex: 1; margin: 18px 0 44px; border-bottom: 1px solid var(--hub-hairline); }
.co-casual-money .slot { position: absolute; top: 0; bottom: -44px; width: 12.5%; display: flex; flex-direction: column; align-items: center; }
.co-casual-money .bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 4px; margin-bottom: 44px; }
.co-casual-money .bars i { width: min(22px, 30%); border-radius: 3px 3px 0 0; display: block; }
.co-casual-money .slot .label { position: absolute; bottom: 22px; font-size: 8.8px; color: var(--hub-text-dim); text-transform: none; font-weight: 400; letter-spacing: 0; }
.co-casual-money .slot b { position: absolute; bottom: 2px; font-size: 9.6px; }
.co-casual-money .cost { margin-top: 12px; }
.co-casual-money .cost > div:first-child { display: flex; justify-content: space-between; gap: 10px; font-size: var(--co-body); font-weight: 500; height: 22px; align-items: center; }
.co-casual-money .cost .bar { height: 6px; border-radius: 3px; background: var(--hub-field); margin-top: 6px; overflow: hidden; }
.co-casual-money .cost .bar i { display: block; height: 100%; border-radius: 3px; background: var(--hub-accent); }
.co-casual-money .tip { height: 60px; }
.co-casual-company { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 1180px; }
.co-casual-company .card { height: 270px; border-radius: var(--hub-r-sheet); background: var(--hub-panel); box-shadow: inset 0 0 0 1px var(--hub-edge); padding: 20px; display: flex; flex-direction: column; }
.co-casual-company .title { display: flex; align-items: center; gap: 10px; height: 28px; margin-bottom: 14px; }
.co-casual-company .title b { font-size: var(--co-head); }
.co-casual-company .sw { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.co-casual-company .sw > span:not(.words) { width: 44px; height: 44px; border-radius: var(--hub-r); box-shadow: inset 0 0 0 1px var(--hub-edge); flex: none; }
.co-casual-company .sw .words { margin-left: 22px; font-size: var(--co-body); font-weight: 500; color: var(--hub-text-soft); }
.co-casual-company .used { display: block; font-size: 15.35px; line-height: 30px; margin: 10px 0 8px; }
.co-casual-shifts { display: grid; gap: 16px; padding-right: 12px; max-width: 1240px; }
.co-casual-shifts .shift { height: 210px; padding: 16px; display: flex; flex-direction: column; }
.co-casual-shifts .shift.mine { box-shadow: inset 0 0 0 1px rgba(var(--hub-accent-rgb), var(--ac-7)); }
.co-casual-shifts .top { display: flex; align-items: center; justify-content: space-between; height: 30px; }
.co-casual-shifts .time { font-size: 18.4px; line-height: 34px; margin-top: 7px; }
.co-casual-shifts .bus { display: flex; align-items: center; gap: 8px; font-size: var(--co-note); height: 22px; margin-top: 0; }
.co-casual-shifts .shift-trips { font-size: var(--co-note); color: var(--hub-text-dim); line-height: 20px; margin-top: 3px; }

/* --- a workshop job (`company/repair.js`) ---------------------------------------------------- */

.co-repair { height: 100%; display: flex; flex-direction: column; }
.co-repair .head { display: flex; align-items: flex-start; gap: 10px; flex: none; height: 64px; }
.co-repair .head .what { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.co-repair .head .what b { font-size: 13.8px; line-height: 26px; }
.co-repair .head .what span { font-size: 10.75px; color: var(--hub-text-dim); line-height: 18px; margin-top: 2px; }
.co-repair .head .clock { width: min(300px, 30%); margin-right: 16px; display: flex; flex-direction: column; align-items: stretch; }
.co-repair .head .clock b { font-size: 15.3px; line-height: 26px; text-align: right; font-variant-numeric: tabular-nums; }
.co-repair .head .clock .co-meter { margin-top: 8px; }
.co-repair .body { flex: 1; min-height: 0; display: flex; gap: 16px; }
.co-repair .stage { flex: 1; min-width: 0; padding: 0; align-items: center; justify-content: center; }
.co-repair .stage .hint { position: absolute; left: 16px; right: 16px; bottom: 14px; margin: 0; height: 20px; line-height: 20px; text-align: center; font-size: 10.75px; color: var(--hub-text-dim); }
.co-repair .side { width: min(360px, 36%); flex: none; padding: 14px 16px; }
.co-repair .side .name { display: flex; align-items: center; gap: 6px; height: 36px; margin: 0 0 16px 3px; }
.co-repair .side .name b { font-size: 15.3px; }
.co-repair .side .checking { font-size: var(--co-rows); font-weight: 500; color: var(--hub-text-soft); line-height: 20px; }
.co-repair .side .checkbar { margin-top: 8px; }
.co-repair .side .checkbar .run { width: 0; background: var(--co-accent2); animation: co-repair-check linear forwards; }
@keyframes co-repair-check { to { width: 100%; } }
.co-repair .side .unchecked { margin: 0; font-size: var(--co-rows); color: var(--hub-text-soft); line-height: 20px; }
.co-repair .side .reading { margin: 6px 0 18px; font-size: 12.3px; font-weight: 500; line-height: 1.38; }
.co-repair .side .fixes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.co-repair-bus { position: relative; }
.co-repair-bus svg { display: block; }
.co-repair-bus .mark { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center;
  background: rgba(12, 16, 26, 0.92); color: #fff; box-shadow: inset 0 0 0 2.5px rgba(255, 255, 255, 0.12); transition: transform 0.12s; }
.co-repair-bus .mark:hover { transform: scale(1.12); }
.co-repair-bus .mark.accent2 { color: var(--hub-accent); box-shadow: inset 0 0 0 2.5px color-mix(in srgb, var(--hub-accent) 12%, transparent); }
.co-repair-bus .mark.ok { color: var(--co-ok); box-shadow: inset 0 0 0 17px rgba(52, 178, 110, 0.35); }
.co-repair-bus .mark.on { outline: 6px solid rgba(255, 255, 255, 0.25); }
.co-repair-bus .mark.accent2.on { outline-color: color-mix(in srgb, var(--hub-accent) 25%, transparent); }
.co-repair-bus .mark.ok.on { outline-color: rgba(52, 178, 110, 0.25); }
.co-repair-done { width: min(760px, 100%); margin: 0 auto; height: 100%; }
.co-repair-done .top { display: flex; gap: 10px; height: 44px; }
.co-repair-done .top .pct { width: 160px; font-size: 27.6px; line-height: 44px; }
.co-repair-done .top .bus { display: block; font-size: 12.3px; line-height: 20px; margin-top: 2px; }
.co-repair-done .top .saved { display: block; font-size: var(--co-rows); font-weight: 500; line-height: 20px; }
.co-repair-done .tally { margin: 14px 0 0; font-size: 10.75px; color: var(--hub-text-soft); line-height: 18px; }
.co-repair-done .rows { margin-top: 14px; flex: 1; min-height: 0; overflow: hidden; }
.co-repair-done .row { display: grid; grid-template-columns: 28px 122px minmax(0, 1fr) 220px; align-items: center; height: 31px; border-bottom: 1px solid var(--hub-hairline); margin-bottom: 1px; }
.co-repair-done .row .hub-icon { margin-left: 2px; }
.co-repair-done .row b { font-size: var(--co-rows); }
.co-repair-done .row .reading { font-size: 10.75px; color: var(--hub-text-soft); }
.co-repair-done .row .did { font-size: 10.75px; font-weight: 500; text-align: right; }
.co-repair-done .foot { display: flex; justify-content: flex-end; flex: none; margin-top: 8px; }

/* --- the shell: the sidebar, the slim bar, the command palette ----------------------------- */

/* the room the shell leaves the page: the sidebar's width (open, its rail, slid away; none in the
   palette layout) and the bar's height (with its row of shortcuts in the palette layout) */
.co.co-shelled { --co-side-w: 0px; --co-top-h: 60px; }
.co.co-shell-open { --co-side-w: 236px; }
.co.co-shell-rail { --co-side-w: 68px; }
.co.co-shell-palette { --co-top-h: 100px; }
.co.co-shelled .co-body { left: calc(var(--co-side-w) + 24px); right: 24px; top: calc(var(--co-top-h) + 18px); bottom: 22px; transition: left 0.22s cubic-bezier(0.22, 0.8, 0.3, 1); }
.co.co-shelled > .co-notice { left: calc(var(--co-side-w) + 22px); bottom: 2px; }

/* the sidebar: a deep panel in the dark look; in the light one a deep tone of the look's own ink
   with a breath of the accent, the light page beside it */
.co-side {
  --co-side-bg: color-mix(in srgb, var(--hub-panel) 88%, black);
  --co-side-ink: var(--hub-text);
  --co-side-soft: var(--hub-text-soft);
  --co-side-dim: var(--hub-text-dim);
  --co-side-faint: var(--hub-text-faint);
  --co-side-hover: rgba(255, 255, 255, 0.06);
  --co-side-line: rgba(255, 255, 255, 0.08);
  position: absolute; left: 0; top: 0; bottom: 0; width: var(--co-side-w); z-index: 12; display: flex; flex-direction: column;
  background: var(--co-side-bg); color: var(--co-side-ink); border-right: 1px solid var(--co-side-line);
  animation: co-side-in 0.22s cubic-bezier(0.22, 0.8, 0.3, 1); transform-origin: left center;
}
:root.hub[data-theme="light"] .co-side {
  --co-side-bg: color-mix(in srgb, var(--hub-text) 93%, var(--hub-accent));
  --co-side-ink: var(--hub-panel);
  --co-side-soft: color-mix(in srgb, var(--hub-panel) 80%, var(--co-side-bg));
  --co-side-dim: color-mix(in srgb, var(--hub-panel) 58%, var(--co-side-bg));
  --co-side-faint: color-mix(in srgb, var(--hub-panel) 38%, var(--co-side-bg));
  --co-side-hover: rgba(255, 255, 255, 0.08);
  --co-side-line: rgba(255, 255, 255, 0.1);
  --hub-logo-ink: var(--hub-panel);
}
/* (it grows from its edge rather than sliding in from beyond it: nothing of it lies outside the
   window while it comes - nor in a window that draws no frames, where it stays as it began) */
@keyframes co-side-in { from { transform: scaleX(0.94); opacity: 0; } to { transform: none; opacity: 1; } }
.co-side-brand { flex: none; height: 60px; display: flex; align-items: center; padding: 0 20px; }
.co-side-brand .hub-logo { height: 32px; width: auto; display: block; }
.co-side-busmark { width: 34px; height: 34px; display: block; }
.co-side.rail .co-side-brand { padding: 0; justify-content: center; }
.co-side-co { flex: none; display: flex; align-items: center; gap: 11px; margin: 4px 12px 10px; padding: 10px; border-radius: var(--hub-r-sheet); background: var(--co-side-hover); min-width: 0; }
.co-side.rail .co-side-co { margin: 4px 0 10px; padding: 0; background: none; justify-content: center; }
.co-side-who { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.co-side-who b { font-size: 11.5px; font-weight: 700; max-width: 100%; }
.co-mode-chip { display: inline-flex; align-items: center; gap: 5px; height: 20px; max-width: 100%; padding: 0 9px 0 7px; border-radius: 10px; font-size: 8.8px; font-weight: 700; white-space: nowrap; cursor: pointer;
  background: rgba(var(--hub-accent-rgb), 0.16); color: var(--hub-accent-text); }
.co-side .co-mode-chip { color: color-mix(in srgb, var(--hub-accent) 62%, white); }
:root.hub[data-theme="light"] .co-top .co-mode-chip { color: var(--hub-accent-deep); }
.co-mode-chip:hover { background: rgba(var(--hub-accent-rgb), 0.28); }
.co-mode-chip.still { cursor: default; }
.co-side-search { flex: none; display: flex; align-items: center; gap: 8px; height: 34px; margin: 0 12px 6px; padding: 0 10px; border-radius: var(--hub-r); background: none; box-shadow: inset 0 0 0 1px var(--co-side-line); color: var(--co-side-dim); font-size: var(--co-rows); cursor: pointer; min-width: 0; }
.co-side-search:hover { background: var(--co-side-hover); color: var(--co-side-ink); }
.co-side-search kbd, .co-top-search kbd, .co-pop-item kbd { font: inherit; font-size: 8.4px; font-weight: 700; padding: 2px 5px; border-radius: 5px; box-shadow: inset 0 0 0 1px currentColor; opacity: 0.75; white-space: nowrap; }
.co-side.rail .co-side-search { margin: 0 12px 6px; padding: 0; justify-content: center; }
.co-side-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 4px 12px 10px; }
.co-side.rail .co-side-scroll { padding: 4px 10px 10px; }
.co-side-scroll::-webkit-scrollbar { width: 6px; }
.co-side-group { margin-bottom: 10px; }
.co-side-head { font-size: var(--co-caps); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--co-side-faint); padding: 8px 10px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-side-rule { display: block; height: 1px; background: var(--co-side-line); margin: 6px 8px 8px; }
.co-side-item { position: relative; display: flex; align-items: center; border-radius: var(--hub-r); margin-bottom: 2px; }
.co-side-go { flex: 1; min-width: 0; display: flex; align-items: center; gap: 11px; height: 36px; padding: 0 10px; border-radius: var(--hub-r); background: none; color: var(--co-side-soft); font-size: var(--co-rows); font-weight: 500; text-align: left; cursor: pointer; transition: background 0.08s, color 0.08s; }
.co-side-go:hover { background: var(--co-side-hover); color: var(--co-side-ink); }
.co-side-go .hub-icon { color: var(--co-side-dim); flex: none; }
.co-side-go:hover .hub-icon { color: var(--co-side-ink); }
.co-side-name { flex: 1; }
.co-side-item.on .co-side-go { background: var(--hub-accent); color: var(--hub-on-accent); font-weight: 700; }
.co-side-item.on .co-side-go .hub-icon { color: var(--hub-on-accent); }
.co-side-badge { flex: none; min-width: 20px; height: 18px; border-radius: 9px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 8.4px; font-weight: 700; color: #fff; background: rgba(255, 255, 255, 0.16); }
.co-side-badge.accent { background: var(--hub-accent); color: var(--hub-on-accent); }
.co-side-badge.warn { background: rgb(var(--co-warn-fill)); color: #1a1400; }
.co-side-badge.danger { background: rgb(var(--co-danger-fill)); }
.co-side-badge.ok { background: rgb(var(--co-ok-fill)); }
.co-side-badge.early { background: #2a75f7; }
.co-side-item.on .co-side-badge { background: var(--hub-on-accent); color: var(--hub-accent); }
.co-side-star { position: absolute; right: 6px; top: 7px; width: 22px; height: 22px; border-radius: 6px; display: none; align-items: center; justify-content: center; background: var(--co-side-bg); color: var(--co-side-faint); cursor: pointer; }
.co-side-star:hover { color: var(--hub-accent); }
.co-side-star.pinned { color: var(--hub-accent); }
.co-side-item:hover .co-side-star { display: inline-flex; }
.co-side-item.on .co-side-star { background: var(--hub-accent); color: var(--hub-on-accent); }
.co-side.rail .co-side-go { justify-content: center; padding: 0; gap: 0; height: 40px; }
.co-side.rail .co-side-name { display: none; }
.co-side.rail .co-side-badge { position: absolute; left: 27px; top: 2px; min-width: 16px; height: 16px; padding: 0 4px; box-shadow: 0 0 0 1.5px var(--co-side-bg); }
.co-side-foot { flex: none; display: flex; align-items: center; gap: 6px; padding: 10px 12px 14px; border-top: 1px solid var(--co-side-line); }
.co-side-fold, .co-side-away { height: 32px; border-radius: var(--hub-r); background: none; color: var(--co-side-dim); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: var(--co-note); min-width: 0; }
.co-side-fold { flex: 1; padding: 0 8px; }
.co-side-away { width: 32px; justify-content: center; flex: none; }
.co-side-fold:hover, .co-side-away:hover { background: var(--co-side-hover); color: var(--co-side-ink); }
.co-side.rail .co-side-foot { flex-direction: column; padding: 10px 0 14px; }
.co-side.rail .co-side-fold { flex: none; width: 40px; justify-content: center; padding: 0; }

/* the slim bar over the page: where one is, the search, the company's figures, the clock with
   its step to the next day and its menu, the bell, the round menu, Back */
.co-top { position: absolute; left: var(--co-side-w, 0px); right: 0; top: 0; height: 60px; z-index: 11; display: flex; align-items: center; gap: 10px; padding: 0 20px 0 24px;
  background: var(--hub-panel); border-bottom: 1px solid var(--hub-edge); transition: left 0.22s cubic-bezier(0.22, 0.8, 0.3, 1); }
.co-top > * { flex: none; }
.co-top .co-top-fill { flex: 1 1 0; min-width: 0; }
.co-top-handle { width: 38px; height: 38px; border-radius: var(--hub-r); background: none; color: var(--hub-text-soft); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; margin-left: -8px; }
.co-top-handle:hover { background: var(--hub-hover); color: var(--hub-text); }
.co-top-logo { display: flex; align-items: center; }
.co-top-logo .hub-logo { height: 24px; width: auto; display: block; }
.co-top-logo .co-side-busmark { width: 30px; height: 30px; }
.co-top-co { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 0 1 auto !important; max-width: 260px; padding-left: 12px; border-left: 1px solid var(--hub-hairline); }
.co-top-who { display: flex; flex-direction: column; gap: 3px; min-width: 0; align-items: flex-start; }
.co-top-who b { font-size: 11.1px; font-weight: 700; max-width: 100%; }
.co-top-who .co-mode-chip { height: 17px; font-size: 8.2px; }
.co-top .co-top-where { display: flex; align-items: center; gap: 4px; min-width: 0; flex: 0 1 auto; overflow: hidden; }
.co-top-crumb { display: inline-flex; align-items: center; gap: 7px; min-width: 0; height: 32px; padding: 0 6px; border-radius: 8px; background: none; color: var(--hub-text-dim); font-size: var(--co-rows); font-weight: 500; cursor: pointer; white-space: nowrap; }
button.co-top-crumb:hover { background: var(--hub-hover); color: var(--hub-text); }
.co-top-crumb.last { color: var(--hub-text); font-size: 13.8px; font-weight: 700; cursor: default; }
.co-top-crumb.last .hub-icon { color: var(--co-accent2); }
:root.hub[data-theme="light"] .co-top-crumb.last .hub-icon { color: var(--hub-accent-deep); }
.co-top-search { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: var(--hub-r); background: var(--hub-field); box-shadow: inset 0 0 0 1px var(--hub-hairline); color: var(--hub-text-dim); font-size: var(--co-rows); cursor: pointer; min-width: 0; }
.co-top-search:hover { color: var(--hub-text); box-shadow: inset 0 0 0 1px rgba(var(--hub-accent-rgb), 0.55); }
.co-top-search.wide { width: 300px; flex: 0 1 300px !important; }
.co-top-search .co-top-words { flex: 1; text-align: left; }
.co-top .co-top-status { height: 38px; }
.co-top .co-top-status > button { height: 32px; font-size: 10.75px; padding: 0 10px; gap: 7px; }
.co-top .co-top-status .dot { width: 24px; height: 24px; }
.co-top-clock { gap: 10px; }
.co-top-now { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.co-top-day { display: flex; align-items: center; gap: 6px; font-size: 9.6px; color: var(--hub-text-dim); white-space: nowrap; }
.co-top-day .live { width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--co-ok-fill)); }
.co-top-lead { font-size: 8.4px; font-weight: 700; color: var(--co-accent2); padding: 1px 5px; border-radius: 5px; background: rgba(var(--hub-accent-rgb), 0.14); }
:root.hub[data-theme="light"] .co-top-lead { color: var(--hub-accent-deep); }
.co-top-now .time { font-size: 15.4px; font-weight: 700; font-variant-numeric: tabular-nums; }
.co-top-now .time.playing { color: var(--co-accent2); }
.co-top-now .time.game { color: var(--co-ok); }
.co-top-split { position: relative; display: inline-flex; }
.co-top .co-top-split > .co-btn { height: 38px; }
.co-top .co-top-split > .co-tomorrow { border-radius: var(--hub-r) 0 0 var(--hub-r); padding: 0 14px 0 16px; }
.co-top .co-top-split > .co-top-more { width: 34px; padding: 0; border-radius: 0 var(--hub-r) var(--hub-r) 0; margin-left: 1px; }
.co-top .co-top-split > .co-top-more.playing { background: var(--hub-accent-deep); }
.co-top .co-top-clock > .co-next { height: 38px; padding: 0 16px; }
.co-top-bell, .co-top-avatar { position: relative; display: inline-flex; }
.co-top .co-top-bellbtn { width: 38px; height: 38px; padding: 0; }
.co-top .co-top-bellbtn.on { background: var(--hub-hover); }
.co-top-count { position: absolute; left: 22px; top: -4px; min-width: 17px; height: 17px; border-radius: 9px; padding: 0 4px; display: inline-flex; align-items: center; justify-content: center; font-size: 8.06px; font-weight: 700; background: var(--hub-accent); color: var(--hub-on-accent); box-shadow: 0 0 0 2px var(--hub-panel); pointer-events: none; }
.co-top-me { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  background: rgba(var(--hub-accent-rgb), 0.16); color: var(--co-accent2); box-shadow: inset 0 0 0 1.5px rgba(var(--hub-accent-rgb), 0.5); }
:root.hub[data-theme="light"] .co-top-me { color: var(--hub-accent-deep); }
.co-top-me:hover, .co-top-me.on { background: rgba(var(--hub-accent-rgb), 0.28); }
.co-top .co-top-back { height: 38px; padding: 0 16px 0 10px; }

/* (a narrow bar: the words first, then the reputation, then the date) */
.co-top.fit1 .co-top-search .co-top-words, .co-top.fit1 .co-top-search kbd { display: none; }
.co-top.fit1 .co-top-search { width: 38px; padding: 0; justify-content: center; flex: none !important; }
.co-top.fit2 .co-top-split > .co-tomorrow, .co-top.fit2 .co-top-back, .co-top.fit2 .co-top-clock > .co-next { font-size: 0; gap: 0; padding: 0; width: 40px; }
.co-top.fit2 .co-top-co { display: none; }
.co-top.fit3 .co-top-status > button + button { display: none; }
.co-top.fit3 .co-top-day { display: none; }
.co-top.fit4 .co-top-status { display: none; }

/* the palette layout's row of shortcuts under its bar */
.co-top-quick { position: absolute; left: 0; right: 0; top: 60px; height: 40px; z-index: 10; display: flex; align-items: center; gap: 4px; padding: 0 20px; overflow: hidden;
  background: color-mix(in srgb, var(--hub-panel) 70%, transparent); border-bottom: 1px solid var(--hub-hairline); }
.co-top-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 14px; background: none; color: var(--hub-text-soft); font-size: var(--co-note); font-weight: 700; cursor: pointer; white-space: nowrap; }
.co-top-chip:hover { background: var(--hub-hover); color: var(--hub-text); }
.co-top-chip.on { background: var(--hub-accent); color: var(--hub-on-accent); }

/* the dropdowns under the bar: the clock's other steps, the bell, the round menu */
.co-pop { position: absolute; top: calc(100% + 8px); min-width: 260px; max-width: 380px; z-index: 40; padding: 6px; border-radius: var(--hub-r-sheet); background: var(--hub-panel); box-shadow: var(--hub-shadow), inset 0 0 0 1px var(--hub-edge);
  animation: co-pop-in 0.14s ease-out; }
.co-pop-right { right: 0; }
@keyframes co-pop-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.co-pop-item { width: 100%; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: var(--hub-r); background: none; color: var(--hub-text); font-size: var(--co-rows); text-align: left; cursor: pointer; min-width: 0; }
.co-pop-item:hover:not(:disabled) { background: var(--hub-hover); }
.co-pop-item:disabled { opacity: 0.45; cursor: default; }
.co-pop-item .hub-icon { color: var(--hub-text-dim); flex: none; }
.co-pop-item.on { color: var(--co-accent2); font-weight: 700; }
.co-pop-item.on .hub-icon { color: var(--co-accent2); }
.co-pop-item.two { height: 40px; }
.co-pop-item.two .hub-icon { color: inherit; }
.co-pop-note { font-size: var(--co-note); color: var(--hub-text-dim); max-width: 50%; flex: none; }
.co-pop-rule { display: block; height: 1px; background: var(--hub-hairline); margin: 5px 6px; }
.co-pop-bell { width: 380px; max-height: 70cqh; overflow-y: auto; }
.co-pop-part + .co-pop-part { border-top: 1px solid var(--hub-hairline); margin-top: 6px; padding-top: 6px; }
.co-pop-head { display: flex; align-items: center; gap: 8px; padding: 6px 10px 4px; font-size: var(--co-caps); font-weight: 700; text-transform: uppercase; color: var(--hub-text-dim); }
.co-pop-head b { color: var(--co-accent2); }
.co-pop-all { display: inline-flex; align-items: center; gap: 2px; background: none; color: var(--hub-text-dim); font-size: var(--co-note); font-weight: 700; cursor: pointer; text-transform: none; padding: 2px 4px; border-radius: 6px; }
.co-pop-all:hover { color: var(--hub-text); background: var(--hub-hover); }
.co-pop-none { padding: 8px 10px 10px; font-size: var(--co-note); color: var(--hub-text-dim); }

/* the command palette (Ctrl+K): over everything, a search and what it finds, grouped */
.co-cmdk { position: absolute; inset: 0; z-index: 60; background: var(--hub-scrim); display: flex; justify-content: center; align-items: flex-start; padding-top: 11cqh; animation: co-pop-in 0.12s ease-out; }
.co-cmdk-box { width: min(640px, calc(100% - 32px)); max-height: 72cqh; display: flex; flex-direction: column; border-radius: var(--hub-r-sheet); background: var(--hub-panel); box-shadow: var(--hub-shadow), inset 0 0 0 1px var(--hub-edge); overflow: hidden; }
.co-cmdk-field { flex: none; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 18px; border-bottom: 1px solid var(--hub-hairline); color: var(--hub-text-dim); }
.co-cmdk-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; color: var(--hub-text); font: inherit; font-size: 13.8px; }
.co-cmdk-field input::placeholder { color: var(--hub-text-faint); }
.co-cmdk kbd { font: inherit; font-size: 8.4px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; background: var(--hub-field); box-shadow: inset 0 0 0 1px var(--hub-edge); color: var(--hub-text-soft); flex: none; }
.co-cmdk kbd.soft { background: none; color: var(--hub-text-dim); }
.co-cmdk-list { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 8px 8px; }
.co-cmdk-head { padding: 10px 10px 5px; font-size: var(--co-caps); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--hub-text-faint); }
.co-cmdk-row { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 6px 10px; border-radius: var(--hub-r); background: none; color: var(--hub-text); text-align: left; cursor: pointer; }
.co-cmdk-row.on { background: rgba(var(--hub-accent-rgb), 0.14); box-shadow: inset 0 0 0 1px rgba(var(--hub-accent-rgb), 0.45); }
.co-cmdk-icon { width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--hub-field); color: var(--hub-text-soft); }
.co-cmdk-row.on .co-cmdk-icon { background: var(--hub-accent); color: var(--hub-on-accent); }
.co-cmdk-words { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.co-cmdk-words b { font-size: var(--co-rows); font-weight: 700; }
.co-cmdk-words span { font-size: var(--co-note); color: var(--hub-text-dim); }
.co-cmdk-none { padding: 22px 12px; text-align: center; color: var(--hub-text-dim); font-size: var(--co-rows); }
.co-cmdk-foot { flex: none; display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--hub-hairline); font-size: var(--co-note); color: var(--hub-text-dim); }
.co-cmdk-foot span { display: inline-flex; align-items: center; gap: 5px; }

/* the dashboard's "Needs you": what needs the planner, each with its button */
.co-dash-needs .co-dash-list { flex: 1; min-height: 0; overflow-y: auto; margin: -4px -6px 0; padding: 0 6px; }
.co-dash-row { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 6px 0; border-bottom: 1px solid var(--hub-hairline); }
.co-dash-row:last-child { border-bottom: 0; }
.co-dash-dot { width: 30px; height: 30px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--co-white), var(--aw-05)); }
.co-dash-row.warn .co-dash-dot { background: rgba(var(--co-warn-fill), var(--ac-16)); }
.co-dash-row.danger .co-dash-dot { background: rgba(var(--co-danger-fill), var(--ac-16)); }
.co-dash-text { font-size: var(--co-rows); line-height: 1.45; color: var(--hub-text); min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.co-dash-needs .co-dash-go { flex: none; max-width: 42%; overflow: hidden; text-overflow: ellipsis; }
.co-dash-calm { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--hub-text-soft); font-size: var(--co-rows); text-align: center; }

/* a bus's handover notes and defects (the bus's dialog, the Workshop page: `BusCrew`, `DefectRow`) */
.co-crew { margin-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.co-crew-h { font-size: var(--co-caps); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.6; margin-top: 8px; }
.co-crew-row { display: flex; align-items: flex-start; gap: 8px; font-size: var(--co-rows); padding: 5px 0; border-top: 1px solid rgba(var(--co-white), 0.07); }
.co-crew-row .icon { flex: none; opacity: 0.75; margin-top: 1px; }
.co-crew-what { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.co-crew-what small { font-size: var(--co-note); opacity: 0.6; }
.co-crew-when { flex: none; font-size: var(--co-note); opacity: 0.6; }
.co-crew-state { flex: none; font-size: var(--co-note); font-weight: 700; }
.co-crew-none { font-size: var(--co-note); opacity: 0.55; padding: 4px 0; }

/* a page of the company whose view could not be read: what went wrong over it, and "Try again" */
.co-more-failed { position: absolute; left: 0; right: 0; top: 0; z-index: 6; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--hub-r); background: var(--hub-panel); box-shadow: inset 0 0 0 1px rgb(var(--co-danger-fill)); color: var(--hub-text); font-size: var(--co-rows); }
.co-more-failed > .hub-icon { color: var(--co-danger-text, rgb(var(--co-danger-fill))); flex: none; }
