/* imuimu cloud, face "Sky": shell and parts v1.2, 9 Nov 2026 (cloud redesign F0, plan section 4.1; v1.2 one left rail, no right rail or bottom bar).
   Reads only the tokens in sky/tokens.css. Breakpoints: desktop 1024 and up (256 px rail, or 72 px icons), below 1024 the rail is a
   drawer behind the menu button (360 px detail on a tablet), phone below 600 (one pane at a time). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 var(--fs-body)/1.45 var(--fb); color: var(--ink); background: var(--ground); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; flex: none; }
.ic { width: 24px; height: 24px; }
.ic.sm { width: 18px; height: 18px; }
.ic-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }   /* the page's one icon sprite (icons.html sprite()) */

/* ---------------------------------------------------------------- page loading (speed, 9 Oct; nav.js) */
/* No cross-document view transition: its crossfade held the old page and made every click feel slow (owner, 10 Oct). */
.nav-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; opacity: 0; pointer-events: none; }
.nav-progress.on { opacity: 1; animation: nav-go 8s cubic-bezier(.1, .7, .2, 1) forwards; }
.nav-progress.done { opacity: 0; transform: scaleX(1); transition: transform var(--dur) var(--ease), opacity 300ms var(--ease) var(--dur); }
@keyframes nav-go { 0% { transform: scaleX(0); } 10% { transform: scaleX(.35); } 100% { transform: scaleX(.92); } }
@media (prefers-reduced-motion: reduce) {
  .nav-progress.on { animation: none; transform: scaleX(.6); }
}
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.skip { position: absolute; left: 16px; top: -64px; z-index: 50; padding: 10px 16px; border: 1px solid var(--line2); border-radius: var(--r-ctl); background: var(--surface); color: var(--accent); font-weight: 500; }
.skip:focus { top: 8px; }
.mono { font-family: var(--fm); font-weight: 500; }
.num { font-variant-numeric: tabular-nums; }
.link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ---------------------------------------------------------------- top bar */
.topbar { position: sticky; top: 0; z-index: 20; height: var(--topbar-h); display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 0 24px 0 16px; background: var(--ground); }
.nav-btn { flex: none; }
.brand { display: inline-flex; align-items: center; min-width: 0; border-radius: var(--r-chip); }
.logo { display: block; width: auto; height: 28px; flex: none; }   /* logo B as supplied (cloud next L2): machines/tcn/cloud-logo-261003, never re-typeset. On a dark ground the page swaps to the
   same artwork with the navy wordmark turned light (brand/...-dark-261027.svg, see the Theme block below); the sky mark is unchanged */
.search { justify-self: center; width: 100%; max-width: 720px; height: var(--search-h); display: flex; align-items: center; gap: 12px; padding: 0 16px; border: 1px solid var(--ctl-edge); border-radius: calc(var(--search-h) / 2); background: var(--tint); color: var(--ink2); transition: background var(--dur) var(--ease); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-size: var(--fs-body); color: var(--ink); }
.search input::placeholder { color: var(--ink2); }
.search input:focus-visible { outline: none; }
.search:focus-within { background: var(--surface); outline: var(--focus-ring); outline-offset: 0; }
.tb-right { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.ib { width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink2); transition: background var(--dur) var(--ease); }
.ib:hover { background: var(--tint); }
.ib[disabled] { color: var(--line2); background: transparent; cursor: default; }
/* Theme (27 Oct 2026): the top bar's one button, Light then Dark then Auto. Its icon is the chosen mode: sun, moon, half circle.
   html[data-theme-pref] is set by early.js before paint; without it the sun shows. The dark logo file is hidden until Dark. */
.theme-btn .ti { display: none; }
html:not([data-theme-pref]) .theme-btn .ti-light, html[data-theme-pref="light"] .theme-btn .ti-light,
html[data-theme-pref="dark"] .theme-btn .ti-dark, html[data-theme-pref="auto"] .theme-btn .ti-auto { display: block; }
.logo.logo-dark, .plain-logo.logo-dark { display: none; }
@media screen {
  html[data-theme="dark"] .logo.logo-dark, html[data-theme="dark"] .plain-logo.logo-dark { display: block; }
  html[data-theme="dark"] .logo:not(.logo-dark), html[data-theme="dark"] .plain-logo:not(.logo-dark) { display: none; }
}
.ava { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--tint); color: var(--accent); font: 600 13px/1 var(--fd); flex: none; }

/* ---------------------------------------------------------------- shell, one left rail (9 Nov 2026)
   One rail on the left (.appnav): New, then a row per place with a chevron; the open place shows its pages under it, each with a
   small icon (as in Okra admin). It shrinks to icons from the menu button (html[data-nav="mini"], early.js). The main area is white
   with a rounded top-left corner. Between the main area and the right edge on wide screens: the side panel, open when html[data-side]
   names a panel this page offers (.shell[data-panels]); its switches are the .nav-panels rows at the foot of the rail.
   Below 1024 the menu button opens the rail over the page (html.nav-open); on a phone it is a drawer that is closed to start. */
.shell { --nw: var(--nav-w); display: grid; grid-template-columns: var(--nw) minmax(0, 1fr); grid-template-areas: "nav main"; align-items: start; }
html[data-nav="mini"] .shell { --nw: var(--nav-w-mini); }
.appnav { grid-area: nav; position: sticky; top: var(--topbar-h); display: flex; flex-direction: column; height: calc(100vh - var(--topbar-h)); min-width: 0; padding: 4px 12px 16px; background: var(--ground); }
.new { display: flex; align-items: center; gap: 12px; height: 44px; margin: 4px 0 12px; padding: 0 16px 0 12px; border-radius: var(--r-ctl); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); font: 500 var(--fs-body)/1 var(--fb); cursor: pointer; list-style: none; transition: background var(--dur) var(--ease); }
.new:hover { background: var(--inset); }
.new .ic { color: var(--accent); }
.new-pop .menu { min-width: 200px; }
.nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.nrow, .sub { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; border-radius: var(--r-chip); background: none; color: var(--ink2); font: 500 var(--fs-body)/1.2 var(--fb); text-align: left; cursor: pointer; transition: background var(--dur) var(--ease); }
.nrow { min-height: 40px; margin-bottom: 2px; padding: 0 8px 0 12px; }
.sub { min-height: 34px; margin-bottom: 2px; padding: 0 8px 0 30px; gap: 8px; font-size: var(--fs-small); }
.nrow:hover, .sub:hover { background: var(--surface); color: var(--ink); }
.nrow:focus-visible, .sub:focus-visible, .new:focus-visible { outline: var(--focus-ring); outline-offset: -2px; }
.nrow[aria-expanded="true"] { color: var(--ink); font-weight: 600; }
.nrow[aria-current="page"], .sub[aria-current="page"] { background: var(--rail-on); color: var(--rail-on-ink); font-weight: 700; }
.ico { position: relative; flex: none; display: grid; place-items: center; width: 24px; height: 24px; }
.sub .ico { width: 18px; height: 18px; }
.sub .ic { width: 18px; height: 18px; }
.row-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chev { flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-left: auto; }
.chev .ic { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.nrow[aria-expanded="false"] .chev .ic, a.nrow .chev .ic { transform: rotate(-90deg); }
.subs { margin: 0 0 6px; }
.subs[hidden] { display: none; }
.nav-n { position: absolute; top: -7px; right: -9px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--badge); color: var(--on-badge); font: 700 11px/18px var(--fb); text-align: center; font-variant-numeric: tabular-nums; }
.nav-n[hidden] { display: none; }
.nav-panels { display: none; flex: none; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.nav-panels .nrow[aria-pressed="true"] { background: var(--rail-on); color: var(--rail-on-ink); font-weight: 700; }
.tipbox { position: fixed; z-index: 40; padding: 6px 10px; border-radius: var(--r-chip); background: var(--tip); color: var(--on-tip); font: 500 var(--fs-label)/1.3 var(--fb); white-space: nowrap; pointer-events: none; }
.tipbox[hidden] { display: none; }
.main { grid-area: main; min-width: 0; min-height: calc(100vh - var(--topbar-h)); padding: 16px 16px 24px; border-top-left-radius: var(--r-panel); background: var(--surface); }
.main .panel { border: 1px solid var(--line); }
.main:focus { outline: none; }
.main [data-swap-focus]:focus { outline: none; }   /* the heading a page swap reads out; it is not a control */
.sidepanel { grid-area: side; display: none; flex-direction: column; position: sticky; top: var(--topbar-h); height: calc(100vh - var(--topbar-h) - 24px); min-width: 0; margin: 0 12px 24px; border-radius: var(--r-panel); background: var(--surface); overflow: hidden; }
.sp-head { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 8px 8px 8px 20px; border-bottom: 1px solid var(--line); }
.sp-title { flex: 1; min-width: 0; margin: 0; font: 600 var(--fs-h2)/1.3 var(--fd); color: var(--ink); }
.sp-body { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 0; }
.sp-list a { display: block; padding: 10px 20px; color: var(--ink); }
.sp-list a:hover { background: var(--inset); }
.sp-t { display: block; font-weight: 500; overflow-wrap: anywhere; }
.sp-m { display: block; margin-top: 2px; font-size: var(--fs-small); color: var(--ink3); overflow-wrap: anywhere; }
.sp-m .sp-now { color: var(--bad); font-weight: 500; }
.sp-msg { margin: 0; padding: 16px 20px; color: var(--ink2); }
.sp-msg .btn { margin-top: 12px; }
.sp-foot { padding: 12px 20px; border-top: 1px solid var(--line); }
.scrim { display: none; }
@media (min-width: 1181px) {
  .nav-panels { display: block; }
  html[data-side="faults"] .shell[data-panels~="faults"], html[data-side="trips"] .shell[data-panels~="trips"] { grid-template-columns: var(--nw) minmax(0, 1fr) calc(var(--side-w) + 24px); grid-template-areas: "nav main side"; }
  html[data-side="faults"] .shell[data-panels~="faults"] .sidepanel, html[data-side="trips"] .shell[data-panels~="trips"] .sidepanel { display: flex; }
}
/* the rail as icons: chosen on a desk screen with the menu button, always on a tablet (until the menu button opens it over the page) */
@media (min-width: 1024px) {
  html[data-nav="mini"] .appnav { padding: 4px 8px 16px; }
  html[data-nav="mini"] .new { width: 56px; padding: 0; justify-content: center; }
  html[data-nav="mini"] .new-label, html[data-nav="mini"] .row-label, html[data-nav="mini"] .chev { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  html[data-nav="mini"] .nrow, html[data-nav="mini"] .sub { justify-content: center; padding: 0; }
  html[data-nav="mini"] .subs { padding-top: 2px; }
}

/* ---------------------------------------------------------------- the panel, list and detail */
.panel { min-width: 0; overflow: hidden; border-radius: var(--r-panel); background: var(--surface); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) var(--detail-w); }
.split > .detail { min-width: 0; border-left: 1px solid var(--line); }
.split > .list { min-width: 0; display: flex; flex-direction: column; }
.phead { padding: 20px var(--pad) 0; }
h1, .h1 { font: 600 var(--fs-h1)/1.2 var(--fd); letter-spacing: -.01em; }
h2, .h2 { font: 600 var(--fs-h2)/1.25 var(--fd); letter-spacing: -.01em; }
.fleet { margin-top: 4px; font-size: var(--fs-small); color: var(--ink3); }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--btn-h); padding: 0 20px; border: 1px solid transparent; border-radius: var(--r-ctl); font: 500 14px/1 var(--fb); letter-spacing: .01em; white-space: nowrap; cursor: pointer; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.btn .ic { width: 18px; height: 18px; }
.btn.p { background: var(--accent); color: var(--on-accent); }
.btn.p:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.btn.s { background: var(--surface); color: var(--accent); border-color: var(--line2); }
.btn.s:hover { background: var(--inset); }
.btn.q { padding: 0 12px; background: transparent; color: var(--accent); }
.btn.q:hover { background: var(--tint); }
.btn.i { width: var(--btn-h); padding: 0; border-color: var(--line2); background: var(--surface); color: var(--ink2); }
.btn.i .ic { width: 24px; height: 24px; }
.btn.i:hover { background: var(--inset); }
.btn[disabled] { opacity: .5; cursor: default; }

/* ---------------------------------------------------------------- filter chips (outlined) */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 14px; border: 1px solid var(--line2); border-radius: var(--r-chip); background: var(--surface); color: var(--ink2); font: 500 var(--fs-small)/1 var(--fb); white-space: nowrap; cursor: pointer; transition: background var(--dur) var(--ease); }
.chip .ic { width: 18px; height: 18px; }
.chip:hover { background: var(--inset); }
.chip[aria-pressed="true"] { padding-left: 8px; border-color: var(--tint); background: var(--tint); color: var(--ink); }

/* ---------------------------------------------------------------- list rows (48 px) */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 12px minmax(0, 1fr) minmax(0, 190px) 96px 56px; align-items: center; gap: 14px; min-height: var(--row); padding: 0 var(--pad); border-bottom: 1px solid var(--line); color: var(--ink); transition: background var(--dur) var(--ease); }
.row:hover { background: var(--inset); }
.row[aria-current="true"] { background: var(--tint); }
.row[aria-current="true"] .row-meta, .row[aria-current="true"] .row-time { color: var(--ink2); }
.row-name { min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-meta { min-width: 0; font-size: var(--fs-small); color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-amt { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-time { text-align: right; font: 500 var(--fs-label)/1 var(--fm); color: var(--ink3); }

/* ---------------------------------------------------------------- status: dot and tag */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex: none; }
.dot-good { background: var(--good); } .dot-low { background: var(--warn); } .dot-empty { background: var(--bad); }
.dot-offline { background: var(--off); } .dot-hold { background: var(--hold); }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 12px; font: 500 var(--fs-label)/1 var(--fb); white-space: nowrap; }
.tag-good { background: var(--good-bg); color: var(--good); } .tag-low { background: var(--warn-bg); color: var(--warn); }
.tag-empty { background: var(--bad-bg); color: var(--bad); } .tag-offline { background: var(--off-bg); color: var(--ink2); }
.tag-hold { background: var(--hold-bg); color: var(--hold); }

/* ---------------------------------------------------------------- tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.tile { min-width: 0; padding: 12px 16px; border-radius: var(--r-card); background: var(--inset); }
.tile-l { font-size: var(--fs-label); color: var(--ink3); }
.tile-v { margin-top: 2px; font: 600 22px/1.25 var(--fd); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.tile-d { margin-top: 2px; font-size: var(--fs-label); color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------------- tabs (underlined) */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs a { position: relative; display: inline-flex; align-items: center; height: 44px; padding: 0 16px; color: var(--ink2); font-weight: 500; white-space: nowrap; transition: color var(--dur) var(--ease); }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--accent); }
.tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }

/* ---------------------------------------------------------------- fields */
.field { display: grid; gap: 6px; min-width: 0; }
.field > label { font: 500 var(--fs-small)/1.2 var(--fb); color: var(--ink2); }
.field input, .field textarea, .select select { width: 100%; height: var(--field-h); padding: 0 16px; border: 1px solid var(--ctl-edge); border-radius: var(--r-ctl); background: var(--surface); color: var(--ink); font-family: inherit; font-size: var(--fs-body); transition: border-color var(--dur) var(--ease); }
.field input:hover, .field textarea:hover, .select select:hover { border-color: var(--ink3); }
.field input:focus-visible, .field textarea:focus-visible, .select select:focus-visible { outline: none; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.hint { font-size: var(--fs-label); color: var(--ink3); }
/* an example in a box is grey and italic, so it never reads as a value someone typed */
input::placeholder, textarea::placeholder { color: var(--ink3); opacity: .62; font-style: italic; }
.select { position: relative; }
.select select { appearance: none; padding-right: 44px; cursor: pointer; }
.select .ic { position: absolute; right: 14px; top: 50%; margin-top: -12px; color: var(--ink2); pointer-events: none; }
.search-field { display: flex; align-items: center; gap: 10px; height: var(--field-h); padding: 0 16px; border: 1px solid var(--ctl-edge); border-radius: var(--r-ctl); background: var(--tint); color: var(--ink2); }
.search-field input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-size: var(--fs-body); color: var(--ink); }
.search-field input::placeholder { color: var(--ink2); }
.search-field input:focus-visible { outline: none; }
.search-field:focus-within { outline: var(--focus-ring); outline-offset: 0; background: var(--surface); }

/* ---------------------------------------------------------------- toast (a floating surface: menu shadow) */
.toast { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 48px; padding: 4px 4px 4px 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.toast-text { flex: 1; min-width: 0; }
.toasts { position: fixed; left: 50%; bottom: 24px; z-index: 40; transform: translateX(-50%); max-width: calc(100vw - 32px); }

/* ---------------------------------------------------------------- empty state */
.empty { display: grid; justify-items: center; gap: 8px; padding: 32px 24px; text-align: center; }
.empty-ic { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 4px; border-radius: 50%; background: var(--tint); color: var(--accent); }
.empty h3 { font: 600 var(--fs-h2)/1.3 var(--fd); }
.empty p { max-width: 36ch; color: var(--ink2); }
.empty .btn { margin-top: 8px; }
.empty .eg { max-width: 44ch; color: var(--ink3); font-size: var(--fs-label); }
/* a greyed sample row on an empty list: what one filled-in entry looks like; never a real record */
.eg-row { opacity: .55; border: 1px dashed var(--line); border-radius: var(--radius, 8px); }
.eg-row .eg-tag { font-size: var(--fs-label); color: var(--ink3); text-transform: uppercase; letter-spacing: .04em; }
.typical { font-size: var(--fs-label); color: var(--ink3); white-space: nowrap; }

/* ---------------------------------------------------------------- pager */
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 4px; font-size: var(--fs-label); color: var(--ink3); }
.pager-text { margin-right: 8px; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- popover and menu */
.pop { position: relative; }
.pop > summary { list-style: none; }
.pop > summary::-webkit-details-marker { display: none; }
.pop > summary::marker { content: ""; }
.menu { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; min-width: 200px; padding: 8px 0; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); }
.ava-pop > .ava { cursor: pointer; }
/* the branch chooser (OPS-93): a quiet control in the top bar; its list is the shell's own pop menu */
.br-pop { flex: none; }
.br-btn, .br-one { display: inline-flex; align-items: center; gap: 6px; max-width: 220px; height: 40px; padding: 0 12px; border-radius: var(--r-ctl); color: var(--ink); font: 500 var(--fs-body)/1 var(--fb); white-space: nowrap; }
.br-btn { border: 1px solid var(--ctl-edge); cursor: pointer; transition: background var(--dur) var(--ease); }
.br-btn:hover, .br-pop[open] > .br-btn { background: var(--inset); }
.br-btn .ic, .br-one .ic { flex: none; color: var(--ink2); }
.br-word { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.br-pop .menu { left: auto; right: 0; }
.br-pop .menu [aria-current="true"] { font-weight: 600; }
.br-pop .menu [aria-current="true"] .ic { color: var(--accent); }
.br-gap { flex: none; width: 24px; }
@media (max-width: 379px) {
  .tb-right:has(.br-btn, .br-one) { gap: 4px; }
  .topbar:has(.br-btn, .br-one) .logo { width: 24px; height: 24px; object-fit: cover; object-position: left center; }
  .br-btn, .br-one { padding: 0 6px; }
}
.ava-pop .menu { left: auto; right: 0; }
.pop.up .menu { top: auto; bottom: calc(100% + 8px); left: auto; right: 0; }
.menu a, .menu button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 40px; padding: 0 16px; border: 0; background: none; color: var(--ink); font-size: var(--fs-body); text-align: left; white-space: nowrap; }
.menu a:hover, .menu button:hover { background: var(--inset); }
.menu .ic { color: var(--ink2); }
.menu hr { margin: 8px 0; border: 0; border-top: 1px solid var(--line); }
.menu .bad, .menu .bad .ic { color: var(--bad); }
.menu.static { position: static; display: block; margin-top: 8px; }

/* ---------------------------------------------------------------- card */
.card { min-width: 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.card-h { margin-bottom: 4px; font: 600 16px/1.3 var(--fd); }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.kv > div:first-child { border-top: 0; }
.kv dt { color: var(--ink2); }
.kv dd { text-align: right; }

/* ---------------------------------------------------------------- 7-bar chart */
.bars { min-width: 0; }
.bars-svg { display: block; width: 100%; height: auto; aspect-ratio: 280 / 80; }
.bar { fill: var(--bar); }
.bar.today { fill: var(--bar-t); }
.bars-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-top: 6px; font-size: var(--fs-label); color: var(--ink3); text-align: center; }
.bars-days .today { color: var(--accent); font-weight: 500; }

/* ---------------------------------------------------------------- the kit page */
.kit { padding: 20px var(--pad) 32px; }
.kit-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.kit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; grid-auto-flow: row dense; margin-top: 16px; }
.kit-sec { min-width: 0; padding: 16px 20px 20px; border: 1px solid var(--line); border-radius: var(--r-card); }
.kit-sec.wide { grid-column: 1 / -1; }
.kit-sec.flush { padding: 16px 0 0; overflow: hidden; }
.kit-sec.flush > .kit-h, .kit-sec.flush > .kit-cap { margin-left: 20px; margin-right: 20px; }
.kit-h { margin-bottom: 12px; font: 600 16px/1.3 var(--fd); }
.kit-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.kit-item { display: grid; justify-items: start; gap: 6px; min-width: 0; }
.kit-stack { display: grid; gap: 16px; }
.kit-cap { display: block; font: 500 var(--fs-label)/1.3 var(--fm); color: var(--ink3); }
.kit-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 12px 8px; margin-bottom: 10px; }
.kit-icons li { display: grid; justify-items: center; gap: 6px; min-width: 0; color: var(--ink); }
.kit-icons .kit-cap { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.kit-cap + .rows { margin-top: 8px; }

/* breadcrumbs under the top bar (slice N): door, then page; desk and tablet only */
.crumbs { margin: 0 0 12px; }
/* the door's tab bar (UI-71, 11 Nov 2026): the .tabs part on top of the page; scrolls inside itself when it does not fit */
.doortabs { margin: 0 0 16px; }
.tabs a:focus-visible { outline: var(--focus-ring); outline-offset: -2px; }
.nav-sep { height: 1px; margin: 10px 4px; background: var(--line); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; font: 400 var(--fs-small)/1.4 var(--fb); color: var(--ink2); }
.crumbs li + li::before { content: "\203A"; margin-right: 6px; color: var(--ink3); }
.crumbs a { color: var(--ink2); }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current="page"] { color: var(--ink); }

/* ---------------------------------------------------------------- tablet and phone: the rail is a drawer behind the menu button */
@media (max-width: 1023px) {
  .topbar { padding: 0 16px 0 12px; }
  .shell { display: block; }
  .appnav { position: fixed; z-index: 35; top: 0; left: 0; bottom: 0; width: var(--drawer-w); max-width: 85vw; height: auto; padding: 12px 12px 16px; background: var(--surface); box-shadow: var(--shadow); transform: translateX(-100%); visibility: hidden; transition: transform var(--dur) var(--ease), visibility 0s linear var(--dur); }
  html.nav-open .appnav { transform: none; visibility: visible; transition: transform var(--dur) var(--ease); }
  html.nav-open .scrim { display: block; position: fixed; z-index: 34; inset: 0; background: var(--scrim); }
  .main { min-height: 0; padding: 0 0 16px; border-top-left-radius: 0; }
  .split { grid-template-columns: minmax(0, 1fr) var(--detail-w-tab); }
}

/* ---------------------------------------------------------------- phone: one pane at a time */
@media (max-width: 599px) {
  .topbar { gap: 8px; padding: 0 12px; }
  .br-btn, .br-one { gap: 2px; padding: 0 8px; }
  .br-word, .br-down { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .crumbs { display: none; }
  .logo { height: 22px; }
  .search { height: 44px; gap: 8px; padding: 0 12px; }
  .main .panel { border-left: 0; border-right: 0; border-radius: var(--r-panel) var(--r-panel) 0 0; }
  .split { display: block; }
  .split > .detail { border-left: 0; border-top: 1px solid var(--line); }
  body[data-pane="list"] .split > .detail, body[data-pane="detail"] .split > .list { display: none; }
  .row { grid-template-columns: 12px minmax(0, 1fr) auto; grid-template-areas: "dot name amt" "dot meta time"; row-gap: 2px; min-height: 60px; padding: 8px 16px; }
  .row > .dot { grid-area: dot; } .row-name { grid-area: name; } .row-meta { grid-area: meta; }
  .row-amt { grid-area: amt; } .row-time { grid-area: time; }
  .kit { padding: 16px; }
  .kit-sec { padding: 16px; }
  .kit-sec.flush > .kit-h, .kit-sec.flush > .kit-cap { margin-left: 16px; margin-right: 16px; }
}

/* ---------------------------------------------------------------- update notes (update.js): "imuimu cloud was updated." and, after a day without a quiet moment, "A new version is ready." */
.update-bar { position: fixed; left: 50%; bottom: 24px; z-index: 45; display: flex; align-items: center; gap: 8px; width: max-content; max-width: calc(100vw - 32px); min-height: 48px; padding: 4px 4px 4px 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); transform: translateX(-50%); }
.update-text { flex: 1; min-width: 0; font: 500 var(--fs-body)/1.3 var(--fb); }
@media (max-width: 599px) {
  .update-bar { left: 16px; right: 16px; width: auto; max-width: none; bottom: 16px; transform: none; }
  .plain .update-bar { bottom: 16px; }
}

/* ---------------------------------------------------------------- footer and error screens (27 Oct 2026) */
.site-foot { margin-top: 24px; padding: 0 var(--pad); font-size: var(--fs-label); line-height: 1.5; color: var(--ink3); }
.site-foot p + p { margin-top: 2px; }
.site-ver { font-variant-numeric: tabular-nums; }
.plain .site-foot { max-width: 420px; padding: 0; text-align: center; }
.err-screen .phead { padding-bottom: var(--pad); }
.err-screen .ref { margin-top: 12px; font-size: var(--fs-label); color: var(--ink3); }
.err-screen .ref-id { font: 500 var(--fs-label)/1 var(--fm); letter-spacing: .06em; color: var(--ink2); user-select: all; }
.plain .err-screen { width: 100%; max-width: 420px; border: 1px solid var(--line); }
