/* WashMetrics cabinet, slice 1 (research/design/2026-10-25-cabinet-slice-1.md). Telegram theme via CSS variables. */
:root {
  /* The canvas's colours (Council 28.10, owner): one set of names, a light and a dark theme by Telegram's colour
     scheme; of Telegram's theme only the background (--tg-bg) is taken. */
  --bg: var(--tg-bg, #efeff4); --card: #ffffff; --card2: #e8f1fa;
  --text: #111114; --text2: #3c3c43; --muted: #6d6d72; --sep: #e5e5ea; --line: var(--sep); --axis: #d1d1d6;
  --accent: #1f6fb2; --accent-press: #1a5f99; --accent-text: #ffffff; --link: var(--accent);
  --warn: #b4530c; --warn-bg: #fff1e6; --amber-bg: #fff4d6;
  --night: #5a48c8; --night-bg: #f0eefc; --plain: #5f5f66; --plain-bg: #f2f2f7; --row-press: var(--plain-bg);
  --info: #1f6fb2; --info-bg: #e8f2fb; --ok: #1f7a44; --ok-bg: #e6f4ec; --bad: #cf222e;
  --bar: #4d94e0; --bar-sel: #16588f; --bar-now: #8ebde9; --hatch: #d8d8de; --fill: #e07a2e; --repair: #8e8e93;
  --sun: #e8a300; --cloud: #3aa0e6; --snow: #ffffff; --snow-edge: #9db4c8; --metal: #7a8794;
  --snow-chart: #5f84a8;   /* the snowflake over a column, 9-16 px: white with an edge is lost there (Fable r4) */
  /* the action buttons: one blue with white text in both themes (canvas v258, owner 30.10) - not --accent */
  --action: #1f6fb2; --action-press: #1a5f99; --action-text: #ffffff;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: var(--tg-bg, #151517); --card: #222225; --card2: #1d3048;
  --text: #f2f2f5; --text2: #c0c0c8; --muted: #9a9aa3; --sep: #323236; --axis: #3d3d42;
  --accent: #6fb1f0; --accent-press: #8dc3f5; --accent-text: #0d1b2a;
  --warn: #f0a35c; --warn-bg: #3a2714; --amber-bg: #3a2f12;
  --night: #b3a6ff; --night-bg: #2a2644; --plain: #b8b8c0; --plain-bg: #2c2c30;
  --info: #6fb1f0; --info-bg: #1d3048; --ok: #4fc27a; --ok-bg: #1b3325; --bad: #ff6b6b;
  --bar: #5aa0e8; --bar-sel: #a7c8ee; --bar-now: #3e7cc0; --hatch: #3a3a40; --fill: #f0a35c; --repair: #6e6e73;
  --sun: #ffc21a; --cloud: #7cc4ff; --snow: #ffffff; --snow-edge: transparent; --metal: #aeb8c2;
  --snow-chart: #ffffff;
  color-scheme: dark;
}
/* Tilda Sans from our own server (SIL OFL 1.1, fonts/OFL.txt), the system's font until it comes. */
@font-face { font-family: "Tilda Sans"; src: url("fonts/TildaSans-VF.woff2?v=000ed96673ea") format("woff2"); font-weight: 250 900;
  font-display: swap; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* .tabs, .row and others set display: hidden must still hide */
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.35 "Tilda Sans", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  font-variant-numeric: tabular-nums;
}
.top { padding: 12px 16px 4px; }
.eyebrow { margin: 0; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
h1 { margin: 2px 0 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
h2 { margin: 16px 0 8px; font-size: 17px; }
.button {
  border: 0; border-radius: 12px; padding: 8px 12px; background: var(--action); color: var(--action-text);
  font: inherit; font-weight: 600; cursor: pointer;
}
.button:hover, .button:active { background: var(--action-press); }
.button.primary { background: var(--action); color: var(--action-text); }
/* «Отменить», «Отмена»: grey (canvas v258); a switched-off button greyed */
.button.cancel { background: var(--plain-bg); color: var(--text); font-weight: 400; }
.button:disabled, .set-button:disabled { background: var(--plain-bg); color: var(--muted); cursor: default; }
main { padding: 0 16px calc(96px + env(safe-area-inset-bottom)); }
.card { background: var(--card); border-radius: 16px; padding: 16px; margin: 12px 0; }
/* the card's padding is its edge, top and bottom alike: a note's own margin never adds to it (owner 31.10) */
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
/* a card that is a button (the first list of washes): the card's colours, never the action's white text on the white
   card (Fable audit 10.11, круг 7, F-5); pressed - the row's grey, as «Мойки и подключение» */
.card.button { display: block; width: 100%; text-align: left; background: var(--card); color: var(--text);
  font-weight: 400; }
.card.button:hover, .card.button:active { background: var(--row-press); }
.row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.badge { display: inline-block; border-radius: 999px; padding: 1px 8px; font-size: 12px; background: var(--line); }
.badge.ok { color: var(--ok); } .badge.warn { color: var(--warn); } .badge.bad { color: var(--bad); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tile { background: var(--card); border-radius: 16px; padding: 12px; min-height: 86px; }
.tile strong { display: block; font-size: 17px; }
.list { margin: 4px 0 0; padding-left: 18px; }
.daybar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 8px; }
.daybar input, .daybar select { font: inherit; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); }
.notice { border-left: 3px solid var(--warn); }
/* the plaque of the old address (Council 12.11): over the page, the new address one tap away */
.moved { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; margin: 12px 16px 0; padding: 12px 16px;
  border-radius: 16px; background: var(--warn-bg); color: var(--text); }
.moved strong { font-size: 17px; }
.moved .button { margin-top: 4px; text-decoration: none; }

/* The week strip of «День»: a bar is a value, a line at the base a measured zero, hatching is no data. */
.chart { width: 100%; height: auto; display: block; margin: 8px 0 4px; }
.ch-day { cursor: pointer; }
.ch-hit { fill: transparent; }
.ch-bar { fill: var(--accent); }
.ch-running { fill-opacity: 0.45; }
.ch-zero { stroke: var(--text); stroke-width: 2; }
.ch-nodata { fill: url(#nodata-hatch); stroke: var(--line); }
.ch-hatch { stroke: var(--muted); stroke-opacity: 0.45; stroke-width: 2; }
.ch-value, .ch-label { font-size: 11px; line-height: 1.2; font-family: inherit; text-anchor: middle; fill: var(--text); font-variant-numeric: tabular-nums; }
.ch-label, .ch-muted { fill: var(--muted); }
.ch-selected .ch-label { fill: var(--text); font-weight: 600; }
.ch-selected .ch-bar { stroke: var(--text); stroke-width: 1.5; }

/* «Аналитика»: the load map, five steps of the accent; hatching is no data, never the palest step. */
.heat .ch-left { text-anchor: start; }
.heat-0 { fill: var(--accent); fill-opacity: 0.08; }
.heat-1 { fill: var(--accent); fill-opacity: 0.25; }
.heat-2 { fill: var(--accent); fill-opacity: 0.45; }
.heat-3 { fill: var(--accent); fill-opacity: 0.7; }
.heat-4 { fill: var(--accent); fill-opacity: 1; }
.heat-nodata { fill: url(#heat-hatch); stroke: var(--line); }
.hour-nodata { fill: url(#hour-hatch); stroke: var(--line); }
.heat-legend { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.heat-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 2px; background: var(--accent); }
.heat-swatch-0 { opacity: 0.08; } .heat-swatch-1 { opacity: 0.25; } .heat-swatch-2 { opacity: 0.45; }
.heat-swatch-3 { opacity: 0.7; } .heat-swatch-4 { opacity: 1; }

/* The old box recounts (Council 26.10): one block per box, history only. */
.recount { border-top: 1px solid var(--sep); padding-top: 8px; margin-top: 8px; }

/* «Пересчёт инкассации» (canvas v379): --wait - the yellow «ждёт» (architect 02.11), its text 7:1 on its tint. */
:root { --wait: #6b4e00; --wait-bg: #fcefc2; }
:root[data-theme="dark"] { --wait: #f2c94c; --wait-bg: #3a2f12; }
.cc-wide { display: block; width: 100%; min-height: 48px; margin: 12px 0; font-size: 15px; }
.cc-toast { background: var(--ok-bg); color: var(--ok); border-radius: 12px; padding: 10px 12px; margin: 12px 0;
  font-size: 13px; font-weight: 600; line-height: 1.35; }
.cc-info { display: flex; gap: 10px; align-items: flex-start; background: var(--info-bg); border-radius: 12px; padding: 12px;
  margin: 12px 0; font-size: 13px; color: var(--text2); line-height: 1.4; }
.cc-info svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; fill: none; stroke: var(--accent); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.cc-card { display: flex; flex-direction: column; gap: 10px; }
.cc-card > * { margin: 0; }
.cc-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cc-title { font-size: 15px; font-weight: 600; line-height: 1.3; }
.cc-big { font-size: 17px; }
.cc-badge { flex-shrink: 0; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 8px; white-space: nowrap; }
.cc-badge.wait { background: var(--wait-bg); color: var(--wait); }
.cc-badge.info { background: var(--info-bg); color: var(--accent); }
.cc-badge.ok { background: var(--ok-bg); color: var(--ok); }
.cc-badge.plain { background: var(--plain-bg); color: var(--plain); }
.cc-badge.warn { background: var(--warn-bg); color: var(--warn); }
.cc-sub { font-size: 13px; color: var(--muted); line-height: 1.35; }
.cc-text2 { color: var(--text2); }
.cc-lift { margin-top: -4px; }
.cc-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 36px;
  border-top: 1px solid var(--sep); line-height: 1.3; }
.cc-state { font-size: 13px; white-space: nowrap; }
.cc-state.wait { color: var(--wait); } .cc-state.accent { color: var(--accent); } .cc-state.muted { color: var(--muted); }
.cc-state.warn { color: var(--warn); } .cc-state.ok { color: var(--ok); font-weight: 600; }
.cc-part { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 0; border-top: 1px solid var(--sep); }
.cc-ic { width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; background: var(--plain-bg); color: var(--text2);
  display: flex; align-items: center; justify-content: center; }
.cc-ic.wait { background: var(--wait-bg); color: var(--wait); }
.cc-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
  stroke-linejoin: round; }
.cc-part-text { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.3; }
.cc-part-head { display: flex; justify-content: space-between; gap: 8px; }
.cc-part-head strong { white-space: nowrap; }
.cc-dim { color: var(--text2); }
.cc-cmp { color: var(--text2); }
.cc-cmp.ok { color: var(--ok); font-weight: 600; } .cc-cmp.warn { color: var(--warn); font-weight: 600; }
/* a count sent and not answered (круг 7): what was sent, line under line */
.cc-waiting { display: flex; flex-direction: column; gap: 6px; }
.cc-ask { display: flex; flex-direction: column; gap: 10px; background: var(--plain-bg); border-radius: 12px; padding: 12px; }
.cc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cc-actions { display: flex; gap: 8px; }
.cc-actions .button.primary { flex-grow: 1; }
.cc-actions .button.soft { padding: 0 16px; }
.button.soft { background: var(--card2); color: var(--accent); }
.button.soft-card { background: var(--card); color: var(--accent); }
.button.soft:hover, .button.soft:active, .button.soft-card:active { background: var(--card2); }
.cc-list { padding-bottom: 6px; }
.cc-list-title { display: block; padding-bottom: 6px; }
.cc-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 52px; padding: 6px 0;
  border-top: 1px solid var(--sep); line-height: 1.3; }
.cc-row-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cc-links { display: flex; flex-wrap: wrap; gap: 12px; }
.cc-links .set-link { min-height: 32px; text-align: left; }
.cc-empty { border-top: 1px solid var(--sep); padding: 10px 0; margin: 0; }
.cc-total-line { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; line-height: 1.35; padding: 8px 0;
  border-top: 1px solid var(--sep); color: var(--muted); }
.cc-total-line strong { color: var(--text); white-space: nowrap; }
.cc-note { font-size: 13px; color: var(--muted); line-height: 1.35; padding: 0 4px; margin: 12px 0; }
.cc-go { border-radius: 16px; margin: 12px 0; }
/* the form */
.cc-form { display: flex; flex-direction: column; gap: 12px; }
.cc-form > * { margin: 0; }
.cc-label { font-size: 13px; color: var(--muted); }
.cc-section { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--sep); padding-top: 10px; }
.cc-section.first { border-top: 0; padding-top: 0; }
.cc-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: var(--bg); border-radius: 12px;
  padding: 2px; }
.cc-modes button { border: 0; border-radius: 10px; min-height: 40px; font: inherit; font-size: 15px; background: transparent;
  color: var(--text2); cursor: pointer; }
.cc-modes button[aria-checked="true"] { background: var(--card); color: var(--text); font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.cc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-chip { border: 0; border-radius: 12px; min-height: 44px; padding: 0 16px; font: inherit; font-size: 15px; font-weight: 600;
  background: var(--plain-bg); color: var(--text); cursor: pointer; }
.cc-chip[aria-checked="true"] { background: var(--action); color: var(--action-text); }
.cc-picks { display: flex; flex-direction: column; gap: 4px; background: var(--wait-bg); border-radius: 12px; padding: 10px 12px; }
.cc-picks-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--wait); line-height: 1.35; }
.cc-picks-head .set-link { min-height: 32px; flex-shrink: 0; white-space: nowrap; }
.cc-pick { display: flex; align-items: center; gap: 10px; border: 0; border-radius: 10px; min-height: 44px; padding: 0 10px;
  background: var(--card); color: var(--text); text-align: left; font: inherit; font-size: 15px; cursor: pointer; }
.cc-box { width: 20px; height: 20px; flex-shrink: 0; border-radius: 6px; border: 2px solid var(--axis); background: var(--card);
  display: flex; align-items: center; justify-content: center; color: #ffffff; }
.cc-box svg { opacity: 0; }
.cc-pick[aria-checked="true"] .cc-box { border: 0; background: var(--action); }
.cc-pick[aria-checked="true"] .cc-box svg { opacity: 1; }
.cc-picks-note { font-size: 13px; color: var(--wait); line-height: 1.35; }
.cc-group { display: flex; flex-direction: column; gap: 6px; }
.cc-off { opacity: 0.4; pointer-events: none; }
.cc-field { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cc-field-name { display: flex; flex-direction: column; gap: 1px; line-height: 1.3; font-size: 15px; font-weight: 600; }
.cc-field-name .cc-label { font-size: 12px; font-weight: 400; }
.cc-field input, .cc-text, .cc-piece input { min-height: 44px; border: 1px solid var(--axis); border-radius: 12px; padding: 0 12px;
  font: inherit; font-size: 15px; background: var(--card); color: var(--text); }
.cc-field input { width: 140px; text-align: right; }
.cc-text { width: 100%; }
.cc-labelled { display: flex; flex-direction: column; gap: 4px; }
.cc-switch { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.cc-pieces { display: flex; flex-direction: column; gap: 6px; }
.cc-piece { display: flex; align-items: center; gap: 8px; }
.cc-piece-name { width: 64px; color: var(--text2); white-space: nowrap; }
.cc-piece input { width: 56px; min-height: 40px; padding: 0 4px; text-align: center; font-weight: 600; }
.cc-step { width: 44px; height: 40px; flex-shrink: 0; border-radius: 12px; border: 0; background: var(--card2); color: var(--accent);
  display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cc-piece-sum { flex-grow: 1; text-align: right; font-size: 13px; color: var(--muted); white-space: nowrap; }
.cc-total { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border-top: 1px solid var(--sep);
  padding-top: 10px; }
.cc-total-sum { font-size: 20px; font-weight: 700; white-space: nowrap; }
.cc-error { font-size: 13px; font-weight: 600; color: var(--warn); line-height: 1.35; }
.cc-form-buttons { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; }
.cc-form-buttons .button { min-height: 48px; }
.cc-cancel { align-self: center; min-height: 44px; color: var(--warn); }
.health + .health { border-top: 1px solid var(--sep); padding-top: 8px; margin-top: 8px; }

/* The bottom menu (owner 26.10): five sections, the rest under «Ещё»; above the home indicator of the phone. */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--card); border-top: 1px solid var(--line); padding: 4px 0 env(safe-area-inset-bottom);
}
.tabs button {
  border: 0; background: transparent; color: var(--muted); font-size: 11px; line-height: 1.2; font-family: inherit; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; min-height: 52px;
}
.tabs button.active { color: var(--accent); font-weight: 600; }
.tab-icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
  stroke-linejoin: round; }
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; background: var(--line);
  border-radius: 10px; padding: 2px; margin: 0 0 8px; }
.segmented .button { background: transparent; padding: 6px 8px; }
.segmented .button.active { background: var(--card); font-weight: 600; }
.menu-list .button { display: block; width: 100%; text-align: left; margin: 0 0 8px; }

/* «Приход за сегодня» (PRODUCT-MAP F01): the cumulative curve; the band marks the chosen hour; hatching is no data. */
.top { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 0 12px; }
/* the wash line gives way (ellipsis), the date and time keep their row (audit 02.11: «Пн, 26 октября» never wraps) */
.top > div:first-child { flex: 1 1 0; min-width: 0; }
#top-aside { flex-shrink: 0; }
.station-line { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eyebrow.plain { text-transform: none; letter-spacing: 0; font-size: 13px; }
.clock-head { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.clock-date { color: var(--text2); font-size: 13px; font-weight: 600; }
.clock-time { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
/* Values with a smaller unit beside them (canvas 27.10); a word in place of a value is grey. */
.unit { font-size: 0.6em; font-weight: 600; }
.word { color: var(--muted); }
.big-name { display: block; font-size: 13px; color: var(--muted); }
.big-value { display: block; font-size: 38px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1;
  font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.big-value .unit { font-size: 22px; }
.big-value.word { font-size: 22px; font-weight: 600; }
.ch-grid { stroke: var(--line); stroke-width: 1; }
.ch-axis { stroke: var(--muted); stroke-opacity: 0.35; stroke-width: 1; }
.ch-curve { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch-area { fill: var(--accent); fill-opacity: 0.1; }
.ch-band { fill: var(--accent); fill-opacity: 0.13; }
.ch-left { text-anchor: start; } .ch-right { text-anchor: end; }
.today-chart .ch-nodata { fill: url(#today-hatch); stroke: none; }
.hour-switch { display: grid; grid-template-columns: auto auto auto 1fr; gap: 8px; align-items: center; margin-top: 8px; }
.hour-switch { border-top: 1px solid var(--line); padding-top: 12px; }
.hour-arrow { width: 44px; height: 44px; padding: 0; border-radius: 12px; background: transparent; color: var(--accent);
  font-size: 20px; font-weight: 600; line-height: 1; }
.hour-label { min-width: 112px; text-align: center; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums;
  white-space: nowrap; }
.hour-value { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; font-variant-numeric: tabular-nums; }
.hour-amount { font-size: 22px; font-weight: 700; white-space: nowrap; }
.hour-amount .unit { font-size: 13px; }
.hour-amount.word { font-size: 15px; font-weight: 500; }
/* a narrow phone (320 px): the hour's value takes a row of its own (Codex 27.10) */
@media (max-width: 360px) {
  .hour-label { min-width: 0; }
  .hour-value { grid-column: 1 / -1; align-items: flex-start; }
}
/* Three equal tiles under the today block (canvas 27.10): the value centred and large, its name small below. */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.tiles .tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  text-align: center; border: 0; border-radius: 16px; padding: 12px 8px; min-height: 0; background: var(--card); font: inherit;
  color: var(--text); cursor: default; }
button.tile { cursor: pointer; }
.tile-value { font-size: 22px; font-weight: 700; line-height: 28px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tile-value .unit { font-size: 15px; }
.tile-value .unit.of { color: var(--muted); }
.tile-value.word { font-size: 15px; font-weight: 600; }
.tile-name { font-size: 11px; color: var(--muted); white-space: nowrap; }
/* «1 в ремонте» under «Постов занято» (audit 02.11, canvas v376) */
.tile-sub { font-size: 11px; color: var(--muted); white-space: nowrap; line-height: 1.3; }
/* «Требует внимания» (canvas 27.10): an icon in a tinted square, a title, a grey line; the bar of a full acceptor. */
.card-title { display: block; font-size: 17px; font-weight: 600; margin-bottom: 8px; }
/* owner 28.10: every line is a link - the whole line pressed, «Раздел ›» on its right; «Всё в порядке» a line too */
.attention { display: flex; flex-direction: column; margin: 0 -16px -8px; }
.attention-row { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 12px 16px; margin: 0;
  border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; font: inherit; color: var(--text);
  text-align: left; }
.attention-row.link { cursor: pointer; transition: background-color 120ms ease-out; }
.attention-row.link:active { background: var(--row-press); }
@media (hover: hover) and (pointer: fine) { .attention-row.link:hover { background: var(--row-press); } }
.attention-row.link:focus-visible { outline: 2px solid var(--link); outline-offset: -2px; }
.attention-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; }
.attention-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
  stroke-linejoin: round; }
.attention-icon.ok { background: var(--ok-bg); color: var(--ok); }
.attention-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.attention-go { flex-shrink: 0; display: inline-flex; align-items: center; gap: 1px; margin-top: 1px; font-size: 13px;
  font-weight: 500; line-height: 1.3; color: var(--link); white-space: nowrap; }
.attention-go svg { width: 14px; height: 14px; }
.night-axis { display: block; margin-top: 4px; }
.night-name { display: block; font-size: 11px; color: var(--muted); }
.night-axis svg { display: block; max-width: 100%; height: auto; }
.night-track { fill: var(--row-press); }
.night-dot { fill: var(--night); }
.night-labels { display: flex; justify-content: space-between; width: 270px; max-width: 100%; margin-top: 2px;
  font-size: 11px; color: var(--muted); }
.attention-icon.warn { background: var(--warn-bg); color: var(--warn); }
.attention-icon.night { background: var(--night-bg); color: var(--night); }
.attention-icon.info { background: var(--info-bg); color: var(--accent); }
.attention-icon.plain { background: var(--plain-bg); color: var(--plain); }
.attention-text { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.attention-title { font-size: 15px; font-weight: 600; line-height: 1.3; }   /* one weight: the square says how urgent */
.attention-sub { font-size: 13px; line-height: 1.35; color: var(--muted); }
.fill-bar { position: relative; height: 8px; border-radius: 4px; background: var(--plain-bg); margin: 4px 0 2px; }
.fill-bar-value { height: 8px; border-radius: 4px; background: var(--fill); }
.fill-bar-mark { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--text2); }

/* A short form of full-width fields (the wash's name and address). */
.form-stack { display: grid; gap: 8px; margin: 8px 0; }
.form-stack input, .form-stack select { font: inherit; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); width: 100%; }

/* «Посты»: one bar of states (moет - accent, pause - orange, free - pale, no link - hatched), a tile per post. */
.summary-line { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.summary-big { font-size: 22px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.state-bar { width: 100%; height: 14px; display: block; }
.seg-wash { fill: var(--accent); background: var(--accent); }
.seg-pause { fill: var(--fill); background: var(--fill); }
.seg-free { fill: var(--line); background: var(--line); stroke: var(--muted); stroke-opacity: 0.25; }
.seg-none { fill: url(#post-hatch); background: repeating-linear-gradient(45deg, var(--line) 0 2px, transparent 2px 5px); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 4px; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.post-tile { display: flex; flex-direction: column; gap: 2px; border-top: 4px solid var(--line); }
.post-wash { border-top-color: var(--accent); }
.post-pause { border-top-color: var(--fill); }
.post-tile.post-none { border-top-color: var(--muted); border-top-style: dashed; }
.post-wash .post-state { color: var(--accent); }
.post-pause .post-state { color: var(--warn); }
.box-fill { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.vacuum-tile { display: flex; flex-direction: column; gap: 8px; }
.vacuum-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.vac { height: 26px; border-radius: 7px; background: var(--line); font-size: 12px; font-weight: 600; display: flex;
  align-items: center; justify-content: center; }
.vac.on { background: var(--accent); color: var(--accent-text); }

/* «Деньги»: the receipts by method as one bar; from the receipts to the result as a waterfall on one scale. */
.hbar { height: 14px; border-radius: 4px; background: var(--bg); display: flex; }
.hbar-fill { height: 100%; border-radius: 4px; }
.split { display: flex; gap: 2px; height: 28px; margin: 8px 0; }
.split .hbar-fill:first-child { border-radius: 6px 0 0 6px; } .split .hbar-fill:last-child { border-radius: 0 6px 6px 0; }
.split .hbar-fill:only-child { border-radius: 6px; }
.split-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.split-legend > div { display: flex; flex-direction: column; gap: 1px; }
.split-legend .small { display: inline-flex; align-items: center; gap: 4px; }
.pay-bills { background: var(--accent); } .pay-coins { background: var(--bar-now); } .pay-cashless { background: var(--fill); }
.pay-other { background: var(--muted); }
.fall { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.fall .strong { font-weight: 600; }
.fall-in { background: var(--accent); } .fall-out { background: var(--fill); } .fall-result { background: var(--bar-sel); }
.vac.unknown { background: repeating-linear-gradient(45deg, var(--line) 0 2px, transparent 2px 5px); color: var(--muted); }

/* «Где деньги сейчас»: one row per post's box - its cash on one scale, the alert in orange. */
.box-list { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.box-row { display: grid; grid-template-columns: 34px 1fr auto auto; gap: 8px; align-items: center; }
.box-row .hbar { height: 10px; }

/* The sections' header (owner 27.10, canvas v373): the wash line «Name · City, address» above the title, tappable at
   2+ washes; the freshness line with its dot. */
.station-pick { font: inherit; font-size: 13px; color: var(--muted); background: transparent; border: 0; padding: 0;
  max-width: 100%; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; min-height: 20px; }
.station-pick-line { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.station-pick .station-pick-net { display: inline-flex; color: var(--accent); flex-shrink: 0; }
.station-pick svg { flex-shrink: 0; }
/* The washes list (canvas v373): each wash in two lines; «Сеть» first at 2+, a rule under it; a 6 px dot on the chosen. */
.station-sheet .station-list { display: flex; flex-direction: column; }
.station-opt { display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left; background: transparent;
  border: 0; font: inherit; color: var(--text); padding: 10px 0; cursor: pointer; }
.station-opt-mark { flex-shrink: 0; width: 16px; display: inline-flex; justify-content: center; padding-top: 4px; }
.station-opt-mark.net { color: var(--accent); }
.station-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 3px; }
.station-opt-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.station-opt-name { font-size: 15px; font-weight: 600; }
.station-opt-sub { font-size: 13px; color: var(--muted); }
.station-opt.picked .station-opt-name { color: var(--accent); }
.station-sep { height: 1px; background: var(--sep); margin: 2px 0; }
/* «Сеть» boards (section 5): the washes of the network, each a tappable row to open that wash. */
.net-list { display: flex; flex-direction: column; }
.net-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: transparent; border: 0; border-top: 1px solid var(--sep); font: inherit; color: var(--text);
  padding: 12px 0; cursor: pointer; }
.net-row:first-child { border-top: 0; }
.net-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.net-name { font-size: 15px; font-weight: 600; }
.net-addr { font-size: 13px; color: var(--muted); }
.net-muted { font-size: 13px; color: var(--muted); flex-shrink: 0; }
/* Its own line under the whole header (canvas 27.10): in its dot's colour (owner 30.10: «Сделай эту надпись зеленой,
   цвета точки слева»), bold when the link is lost. */
.fresh { flex-basis: 100%; margin: 8px 0 0; color: var(--text); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.fresh.ok { color: var(--ok); }
.fresh.lost { color: var(--warn); font-weight: 600; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-ok { background: var(--ok); } .dot-lost { background: var(--fill); }
.dot-wait { background: var(--muted); }
.ch-night { fill: var(--fill); }

/* «Сравнение»: label, now, before, change - a change up in green, down in orange (never red: not an alarm). */
.compare-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 44px; gap: 8px 12px; align-items: baseline;
  margin: 4px 0; font-size: 15px; }
.compare-row > :nth-child(n+2) { text-align: right; font-variant-numeric: tabular-nums; }
.up { color: var(--ok); } .down { color: var(--warn); }

/* «В ремонте» (migration 039): a calm grey, not an alarm - a person said why the post is out. */
.seg-repair { fill: var(--repair); background: var(--repair); }
.post-tile.post-repair { border-top-color: var(--repair); border-top-style: dashed; }
.post-repair .post-state { color: var(--muted); }
/* canvas: the repair action is a blue text button, not a grey block */
.repair-button { margin-top: 4px; padding: 8px 0; font-size: 13px; font-weight: 600; background: transparent;
  color: var(--accent); text-align: left; }
.repair-form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.repair-form input { font: inherit; font-size: 13px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); }

/* «Посты» (canvas v334, owner 31.10): the cards as on «Главная» - padding 16, radius 16, 12 between their parts; the
   labels «Посты» and «Пылесосы» as «Приход за сегодня». */
.card-label { display: block; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.card.stack { display: flex; flex-direction: column; gap: 12px; }
.card.stack > .card-label { margin: 0; line-height: 1.3; }
/* the posts two in a row (1-20), the vacuums three (0-20): the last row from the left, a tile never wider */
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vac-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.post-cell, .vac-cell { position: relative; display: flex; flex-direction: column; min-width: 0; }
.post-card { flex: 1; display: flex; flex-direction: column; gap: 4px; width: 100%; min-width: 0; min-height: 112px;
  margin: 0; padding: 10px 12px; border: 2px solid transparent; border-radius: 12px; background: var(--plain-bg);
  color: var(--text); font: inherit; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.post-card.picked { border-color: var(--accent); }   /* the picked one only outlined (canvas v333) */
.vac-tile { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; min-height: 112px; padding: 10px;
  border-radius: 12px; background: var(--plain-bg); overflow-wrap: anywhere; }
.post-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; width: 100%; }
.vac-head { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.post-number, .vac-number { font-size: 13px; font-weight: 700; line-height: 1.2; }
.vac-number { white-space: nowrap; }
/* the link in the corner (canvas v333): a dot 8 px, --ok heard / --bad not; a suspected fault «!» in its place */
.link-mark { display: flex; align-items: center; justify-content: center; flex-shrink: 0; align-self: center; width: 8px;
  height: 8px; }
.link-dot { display: block; width: 8px; height: 8px; border-radius: 4px; background: var(--ok); }
.link-dot.lost { background: var(--bad); }
.post-alert { font-size: 13px; font-weight: 800; line-height: 1; color: var(--bad); }
/* the large line always --text (canvas v323), «Нет связи» --warn (v325), a vacuum working --ok */
.post-program, .vac-state { font-size: 15px; font-weight: 400; line-height: 1.3; color: var(--text); }
.post-program.warn, .vac-state.warn { color: var(--warn); }
.vac-state.ok { color: var(--ok); }
/* the details: one line with an ellipsis on a post, every tile as high as the others (canvas v326) */
.post-details, .vac-line { min-height: 16px; font-size: 12px; line-height: 1.3; color: var(--muted); }
.post-details { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* the acceptor: a 4 px track in --sep, the level --bar, --fill near full; the sum under it, room for the wrench */
.box-track { display: block; width: 100%; height: 4px; margin-top: auto; border-radius: 2px; background: var(--sep);
  overflow: hidden; }
.box-level { display: block; height: 4px; border-radius: 2px; background: var(--bar); }
.box-alert .box-level { background: var(--fill); }
.post-box { display: flex; align-items: center; column-gap: 4px; margin-top: auto; padding-right: 24px; font-size: 12px;
  line-height: 1.3; color: var(--muted); white-space: nowrap; }
.box-track + .post-box { margin-top: 0; }
.nowrap { white-space: nowrap; }
.box-icon { flex-shrink: 0; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.box-level.grow { transform-origin: left; animation: box-grow 900ms cubic-bezier(0.23, 1, 0.32, 1); }
@keyframes box-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .box-level.grow { animation: none; } }
/* the wrench (canvas v334): 16 px, no plate, its right edge under the dot (14 px in, 10 on a vacuum), its middle 19.8 px
   from the bottom (17.8) - on the sum's line; a 44 × 44 button of its own over the tile's corner */
.repair-key { position: absolute; right: 0; bottom: -2.2px; display: flex; align-items: center; justify-content: flex-end;
  width: 44px; height: 44px; padding: 0 14px 0 0; border: 0; border-radius: 12px; background: transparent;
  color: var(--accent); cursor: pointer; }
.repair-key.on { color: var(--bad); }
.vac-cell .repair-key { bottom: -4.2px; padding-right: 10px; }
/* under the tiles only the picked post's warning (canvas v333): 8 px to a thin line, 8 px from it to the text */
.post-notes { display: flex; flex-direction: column; gap: 2px; margin-top: -4px; padding-top: 7px;
  border-top: 1px solid var(--sep); }
.post-note { margin: 0; font-size: 12px; line-height: 1.3; }
.post-note.bad { color: var(--bad); }
.post-note.warn { color: var(--warn); }
/* «Пылесосы» folded into a row of 44 px (canvas v281-v328): the label, the summary on the right, the chevron */
.vac-toggle { display: flex; align-items: center; gap: 8px; width: calc(100% + 16px); min-height: 44px; margin: -12px -8px;
  padding: 0 8px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: inherit;
  text-align: left; cursor: pointer; transition: background-color 120ms ease-out; }
.vac-toggle:active { background: var(--row-press); }
@media (hover: hover) and (pointer: fine) { .vac-toggle:hover { background: var(--row-press); } }
.vac-toggle .card-label { margin: 0; line-height: 1.3; }
.vac-sum { margin-left: auto; font-size: 13px; line-height: 1.3; color: var(--text2); white-space: nowrap; }
.vac-sum .ok { color: var(--ok); }
.vac-sum .warn { color: var(--warn); }
/* the chevrons of «Пылесосы» and of the journal's rows: 20 px, --accent (canvas v316), up when open */
.chev { flex-shrink: 0; color: var(--accent); transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1); }
.chev.up { transform: rotate(180deg); }
/* opened in place over 240 ms: the content unfolds, nothing below jumps */
@keyframes unfold { from { grid-template-rows: 0fr; opacity: 0; } }
.vac-list.unfold, .lane-wrap.unfold { display: grid; grid-template-rows: 1fr;
  animation: unfold 240ms cubic-bezier(0.23, 1, 0.32, 1) both; }
.vac-list.unfold > *, .lane-wrap.unfold > * { min-height: 0; overflow: hidden; }
/* the bottom sheet of a repair (canvas v333): the title, the reason or who marked it, the action, «Отмена» */
dialog.sheet { position: fixed; inset: auto 0 0 0; width: 100%; max-width: 560px; margin: 0 auto; border: 0;
  border-radius: 16px 16px 0 0; padding: 20px 16px max(24px, env(safe-area-inset-bottom)); background: var(--card);
  color: var(--text); }
dialog.sheet[open] { display: flex; flex-direction: column; gap: 12px;
  animation: sheet-up 260ms cubic-bezier(0.23, 1, 0.32, 1) both; }
dialog.sheet::backdrop { background: rgba(0, 0, 0, 0.32); }
@keyframes sheet-up { from { transform: translateY(100%); } }
.sheet-title { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.3; }
.sheet-note { margin: -4px 0 0; font-size: 13px; line-height: 1.35; color: var(--muted); }
.sheet-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
dialog.sheet input { display: block; width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--axis);
  border-radius: 12px; background: var(--card); color: var(--text); font: inherit; font-size: 15px; }
.sheet-error { margin: -4px 0 0; font-size: 13px; line-height: 1.35; color: var(--warn); }
.sheet-ok { min-height: 48px; font-size: 15px; }
.sheet-ok.end, .sheet-ok.end:hover, .sheet-ok.end:active { background: var(--bad); color: var(--action-text); }
.sheet-cancel { min-height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--text2);
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
/* «Журнал сеансов · Пост N» (canvas v301-v334) */
.journal-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.journal-title { flex: 1; min-width: 0; font-size: 17px; font-weight: 600; line-height: 1.3; }
.journal-day { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
/* as the hour's arrows of «Главная»: 44 × 44, the area to press over the row's edges, the row stays as high */
.day-arrow { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 44px;
  height: 44px; margin: -11px -12px; padding: 0; border: 0; border-radius: 12px; background: transparent;
  color: var(--accent); cursor: pointer; }
.journal-day-name { min-width: 56px; text-align: center; font-size: 15px; font-weight: 600; line-height: 1.3;
  pointer-events: none; }
.journal-total { margin: 12px 0 8px; font-size: 13px; line-height: 1.35; color: var(--muted); }
.journal-empty { margin: 13px 0 0; font-size: 13px; line-height: 1.35; color: var(--muted); }
.journal-note { margin: 0 0 8px; font-size: 12px; line-height: 1.3; color: var(--muted); }
.journal-item { border-top: 1px solid var(--sep); }
.journal-item.after-gap { border-top: 0; }   /* the break's line stands in its place */
.journal-row { display: flex; align-items: flex-start; gap: 12px; width: 100%; min-height: 44px; padding: 10px 0;
  border: 0; background: none; color: var(--text); font: inherit; font-size: 15px; line-height: 1.35; text-align: left;
  cursor: pointer; }
.journal-when { position: relative; display: flex; flex-direction: column; min-width: 44px; }
.journal-start { font-weight: 600; }
.journal-end { font-size: 13px; color: var(--muted); }
.journal-end.bad, .journal-dur .bad { color: var(--bad); }
.journal-main { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
/* the parts wrap whole: each brings its «·», the one at a line's start is out of sight */
.journal-line { display: block; overflow: hidden; min-width: 0; }
.journal-parts { display: flex; flex-wrap: wrap; align-items: baseline; margin-left: -11px; }
.journal-dot { display: inline-block; width: 11px; text-align: center; }
.journal-sum { font-weight: 600; }
.journal-meta, .journal-dur { font-size: 13px; color: var(--text2); }
.journal-order { font-size: 12px; color: var(--muted); }
.journal-marks { font-size: 12px; color: var(--warn); }
.journal-gap { display: flex; align-items: center; gap: 8px; margin: 0; padding: 4px 0; font-size: 12px; line-height: 1.3;
  color: var(--muted); white-space: nowrap; }
.journal-gap > span { flex: 1; border-top: 1px solid var(--sep); }
.journal-lane { display: flex; flex-direction: column; gap: 4px; padding: 0 0 12px 56px; font-size: 13px;
  line-height: 1.35; }
.lane-wait { margin: 0; font-size: 12px; color: var(--muted); }
.lane-head { margin: 4px 0 0; font-weight: 600; }
.lane-line { display: flex; gap: 8px; }
.lane-time { min-width: 40px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lane-text { flex: 1; min-width: 0; }
.lane-sum { flex-shrink: 0; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lane-sum.paid { color: var(--ok); }      /* a payment +N ₽ green, what a program took −N ₽ red (owner 31.10) */
.lane-sum.spent { color: var(--bad); }
.lane-sum.zero { color: var(--muted); }
.lane-end { margin: 13px 0; color: var(--muted); }
.journal-more { width: 100%; min-height: 44px; margin-top: 8px; padding: 8px 12px; border: 0; border-radius: 12px;
  background: var(--card2); color: var(--accent); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
/* press feedback as the rest (Council 28.10): the tiles, the wrench, the arrows, «Показать ещё» shrink a little */
.post-card, .repair-key, .day-arrow, .journal-more { transition: transform 120ms cubic-bezier(0.23, 1, 0.32, 1); }
.post-card:active, .repair-key:active, .day-arrow:active, .journal-more:active { transform: scale(0.96); }
@media (prefers-reduced-motion: reduce) {
  .post-card, .repair-key, .day-arrow, .journal-more, .vac-toggle, .chev { transition: none; }
  .post-card:active, .repair-key:active, .day-arrow:active, .journal-more:active { transform: none; }
  dialog.sheet[open], .vac-list.unfold, .lane-wrap.unfold { animation: none; }
}

/* «Аналитика» (canvas 27.10). */
.card-sub { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.seg2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; background: var(--bg); border-radius: 10px;
  padding: 3px; margin-bottom: 8px; }
.seg2 button { border: 0; border-radius: 8px; min-height: 34px; font: inherit; font-size: 15px; font-weight: 600;
  background: transparent; color: var(--muted); cursor: pointer; }
.seg2 button.active { background: var(--card); color: var(--text); }
.day-list { font-size: 13px; margin-top: 8px; }
.day-list summary { cursor: pointer; color: var(--accent); min-height: 32px; display: flex; align-items: center; }
.day-list-row { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid var(--line); }
.period-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line);
  padding-top: 8px; margin-top: 8px; font-size: 15px; }
.period-amount { font-size: 17px; font-weight: 700; }
.period-amount .unit { font-size: 13px; }
.period-amount.word { font-weight: 500; }
.peak-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.peak-tile { background: var(--bg); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; }
.peak-label { font-size: 11px; color: var(--muted); }
.peak-value { font-size: 17px; font-weight: 700; white-space: nowrap; }
.peak-value.word { font-size: 15px; font-weight: 500; }
.compare3 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 8px 0;
  border-bottom: 1px solid var(--line); }
.compare3-name { font-size: 15px; }
.compare3-values { display: flex; gap: 12px; align-items: baseline; white-space: nowrap; }
.compare3-before { font-size: 12px; color: var(--muted); }
.compare3-now { font-size: 15px; font-weight: 700; }
.compare3-change { font-size: 13px; font-weight: 600; width: 52px; text-align: right; }
.compare3-change.up { color: var(--ok); } .compare3-change.down { color: var(--warn); }
/* «Погода в сравнении дней» (F59): grey marks under the dates, the picked day's line under «‹ день ›», the licence at
   the bottom - the weather never louder than the money and the cars it explains. */
.day-list-date { display: flex; flex-direction: column; min-width: 0; }
.day-list-row { align-items: baseline; gap: 8px; }
.day-list-row strong { white-space: nowrap; }
.wx-mark { font-size: 12px; line-height: 1.3; color: var(--muted); }
.wx-since { font-size: 12px; color: var(--muted); margin: 4px 0; }
.wx-day { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.wx-picked { display: flex; align-items: center; gap: 6px; color: var(--text); }
.wx-picked .wx-icon { width: 18px; height: 18px; }
.wx-weeks { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); margin-top: 8px; }
.wx-source { font-size: 11px; color: var(--muted); margin: 0 16px 16px; }
.chart .wx-icon { pointer-events: none; }
/* small over a column (9-16 px): one solid colour, the edge's width in it - no white on white (Fable r4) */
.chart .wx-snow { color: var(--snow-chart); }
.chart .wx-snow .snow-edge { stroke: currentColor; }

/* «Финансы» (canvas 27.10). */
.result-chart { width: 100%; height: auto; margin-top: 8px; }
/* «Погода» (F40, owner 28.10): a strip of three days under the tiles - the day, the icon and the day's high in a line,
   «ночью …» below; today's name in the accent; below −5 °C in orange, day and night each. */
.weather-card { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; }
.weather { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.weather-day { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.weather-name { font-size: 12px; line-height: 1.3; color: var(--muted); }
.weather-now { display: flex; align-items: center; justify-content: center; gap: 6px; }
.weather-high { font-size: 17px; font-weight: 700; line-height: 1.2; color: var(--text); font-variant-numeric: tabular-nums; }
.weather-night { font-size: 11px; line-height: 1.3; color: var(--muted); white-space: nowrap; }
.weather .cold { color: var(--warn); font-weight: 700; }
.wx-icon { flex-shrink: 0; }
.wx-sun { color: var(--sun); }
.wx-cloud { color: var(--cloud); }
.wx-snow { color: var(--snow); }
.wx-snow .snow-edge { stroke: var(--snow-edge); }
.weather-note { font-size: 11px; color: var(--muted); margin: 0; }
.note-warn { font-size: 12px; color: var(--warn); background: var(--amber-bg); border-radius: 10px; padding: 8px 12px; margin: 8px 0 0; }
.action-details { margin: 8px 0; }
.action-details > .action-button { list-style: none; cursor: pointer; display: flex; align-items: center;
  justify-content: center; min-height: 44px; border-radius: 10px; background: var(--action); color: var(--action-text); font-size: 15px;
  font-weight: 600; }
.action-details > .action-button::-webkit-details-marker { display: none; }
.action-details[open] > .action-button { margin-bottom: 8px; }
.result-chart .fall-in { fill: var(--accent); } .result-chart .fall-out { fill: var(--fill); } .result-chart .fall-result { fill: var(--bar-sel); }

/* «Ещё» (canvas 27.10): one white list, 48 px rows with «›»; a screen opened from it starts with «‹ Ещё». */
.more-list { background: var(--card); border-radius: 16px; overflow: hidden; margin: 12px 0; }
.more-row { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 48px;
  padding: 0 16px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text);
  font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.more-row:last-child { border-bottom: 0; }
.more-arrow { color: var(--muted); display: inline-flex; }
.back-link { border: 0; background: transparent; color: var(--accent); font: inherit; font-size: 17px; padding: 8px 0;
  cursor: pointer; display: inline-flex; align-items: center; gap: 2px; }
/* «‹ Ещё» in the header of a screen of «Ещё», over the wash line (canvas v374) */
.top-back .back-link { font-size: 15px; margin: -10px 0 -8px -6px; padding: 0 6px; }
/* «Мойки и подключение» (canvas v374): «Ваши мойки» a row each, then «Подключить ещё мойку» */
.wash-list { padding-bottom: 4px; }
.wash-list .wash-row { padding: 8px 0; min-height: 56px; }
.wash-list .wash-row:last-child { border-bottom: 0; }
.wash-text { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.wash-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wash-sub { font-size: 13px; color: var(--muted); }
.wash-group { padding: 12px 0 0; }
/* «Загрузить выписку» in «Финансы» → «Выписка банка» (canvas v374): as wide as the buttons around it */
.bank-go { display: flex; width: 100%; justify-content: center; align-items: center; margin: 8px 0 4px; border-radius: 10px;
  font-size: 15px; }

/* «Ещё»: the week's shifts (canvas 27.10). */
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.week-day { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; border-radius: 8px;
  min-width: 0; }
.week-day.today { background: var(--bg); }
.week-name { font-size: 11px; color: var(--muted); }
.week-shift { font-size: 12px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.week-shift.night { color: var(--night); }
/* The home without the link: the last known value grey, until when it holds in orange. */
.big-value.stale { color: var(--muted); }
.stale-note { display: block; font-size: 13px; color: var(--warn); margin: -4px 0 8px; }

/* «Настройки» (canvas 27.10): capital captions, white cards of rows, values in blue, switches. */
.set-caption { display: block; font-size: 13px; color: var(--muted); padding: 12px 4px 8px; }
.set-card { background: var(--card); border-radius: 16px; overflow: hidden; }
.set-card > .card { margin: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.set-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 16px; min-height: 50px;
  border-bottom: 1px solid var(--line); box-sizing: border-box; }
.set-text { display: flex; flex-direction: column; min-width: 0; }
.set-name { font-size: 15px; }
.set-name.small-name { font-size: 15px; }
.set-sub { font-size: 12px; color: var(--muted); }
.set-value { font-size: 15px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.set-select, .set-input { font: inherit; font-weight: 600; color: var(--accent); background: transparent; border: 0;
  text-align: right; }
.set-input { width: 90px; border-bottom: 1px solid var(--line); }
.set-link { border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--accent); cursor: pointer; padding: 0; }
.set-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.set-button { border: 0; border-radius: 10px; min-height: 40px; padding: 0 16px; font: inherit; font-size: 15px; font-weight: 600;
  background: var(--action); color: var(--action-text); cursor: pointer; }
.set-saved { font-size: 12px; color: var(--muted); margin-left: 8px; }
.set-note { font-size: 12px; color: var(--muted); padding: 0 16px; margin: 8px 0; }
.set-group-name { display: block; font-size: 12px; color: var(--muted); padding: 12px 16px 4px; }
.set-toggle { cursor: pointer; }
.switch { appearance: none; -webkit-appearance: none; width: 46px; height: 28px; border-radius: 14px; background: var(--axis);
  position: relative; flex-shrink: 0; cursor: pointer; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 11px;
  background: #ffffff; transition: left 0.15s; }
.switch:checked { background: #34c759; }
.switch:checked::after { left: 21px; }

/* «Приход на час работы поста» (canvas 27.10): a bar per post. */
.post-hour { display: flex; align-items: center; gap: 12px; margin: 8px 0; }
.post-hour-name { width: 54px; font-size: 13px; flex-shrink: 0; }
.post-hour-track { flex-grow: 1; height: 14px; border-radius: 4px; background: var(--bg); overflow: hidden; }
.post-hour-fill { height: 14px; border-radius: 4px; background: var(--accent); width: 0; }
.post-hour-value { width: 64px; text-align: right; font-size: 13px; font-weight: 600; flex-shrink: 0; white-space: nowrap; }
.post-hour-value.word { font-weight: 400; color: var(--muted); }

/* «Закрытия мойки» (F42): a closed day on the strip; the list of closures. */
.ch-closed { stroke: var(--muted); stroke-width: 2; stroke-dasharray: 3 3; }
.closure-row { flex-wrap: wrap; }
.closure-row.cancelled .set-name { text-decoration: line-through; color: var(--muted); }
.closure-row .set-actions { width: 100%; flex-wrap: wrap; }
.closure-end { display: inline-flex; gap: 8px; align-items: center; }
.set-input.wide { width: 100%; max-width: 260px; }
.set-button.quiet { background: transparent; color: var(--muted); }
/* «Место для прогноза погоды» (migration 081): the search form under its row, the place found in bold. */
.set-form { padding: 4px 16px 12px; margin: 0; border-bottom: 1px solid var(--line); }
.set-found { display: grid; gap: 4px; font-size: 14px; }
.set-found:empty { display: none; }

/* «Зачисления банка» (F25): one credit per row; a voided one struck; a warning tinted. */
.credit-row { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.credit-row.voided .row { text-decoration: line-through; color: var(--muted); }
.credit-warn { color: var(--warn); }

/* «Склад и химия» (F33): a material per row; running out tinted; archived greyed; a reversed entry struck. */
.stock-row { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.stock-row.low .row strong { color: var(--warn); }
.stock-row.archived { opacity: 0.6; }
.row.struck span:first-child { text-decoration: line-through; color: var(--muted); }
/* «Приход за сегодня» as bars (owner 28.10, canvas): gathered by each hour's end; the picked hour's own part dark on
   top, the running hour pale with an outline; they grow from the axis one by one when the screen opens. */
.ch-hbar.done { fill: var(--bar); }
.ch-hbar.now { fill: var(--bar-now); stroke: var(--bar); stroke-width: 1; }
.ch-hbar.picked { fill: var(--bar-sel); }
@keyframes bar-grow { from { transform: scaleY(0.02); } to { transform: scaleY(1); } }
.ch-hbar.grow { transform-box: fill-box; transform-origin: 50% 100%;
  animation: bar-grow 420ms cubic-bezier(0.23, 1, 0.32, 1) both; }
.today-chart .ch-hit { cursor: pointer; }
.ch-over { paint-order: stroke; stroke: var(--card); stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.hour-note { font-size: 12px; color: var(--text); white-space: nowrap; }
.count { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .ch-hbar.grow { animation: none; } .attention-row.link { transition: none; } }
/* Press feedback (Council 28.10): buttons shrink a little, rows light up, tabs fade; hover only where there is one;
   the keyboard's focus outlined in the accent. */
button, input, select, textarea { font-family: inherit; }
.button, .hour-arrow, .set-button, .seg2 button { transition: transform 120ms cubic-bezier(0.23, 1, 0.32, 1); }
.button:active, .hour-arrow:active, .set-button:active, .seg2 button:active { transform: scale(0.96); }
.more-row, .day-list-row { transition: background-color 120ms ease-out; }
.more-row:active { background: var(--row-press); }
.tabs button { transition: opacity 120ms ease-out; }
.tabs button:active { opacity: 0.6; }
@media (hover: hover) and (pointer: fine) { .more-row:hover { background: var(--row-press); } }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.icon-inline { width: 16px; height: 16px; vertical-align: -3px; }
@media (prefers-reduced-motion: reduce) {
  .button, .hour-arrow, .set-button, .seg2 button, .more-row, .tabs button { transition: none; }
  .button:active, .hour-arrow:active, .set-button:active, .seg2 button:active { transform: none; }
}
.row.focused { background: var(--card2); border-radius: 8px; margin-left: -8px; margin-right: -8px; padding-left: 8px; padding-right: 8px; }

/* «Журнал отправленного» (F04): a line per message, the text as Telegram showed it. */
.sent-log { padding: 0 16px 8px; }
.sent-line { padding: 8px 0; border-top: 1px solid var(--line); }
.sent-text { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text2); }

/* «Приостановка работы» (F42, canvas v223): a title out of the cards, a month calendar, three reasons as tiles, the
   button held at the bottom over the page, notes in grey on the background. */
/* the common header of «Ещё» (canvas v374, audit 02.11) in place of the old bar; the button held over the bottom menu */
.pause-title { margin: 4px 0 4px; font-size: 22px; font-weight: 700; line-height: 1.15; }
.pause-sub { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.35; }
/* «Настройки» → «Приостановка работы»: a row that leads to the screen (canvas v233) */
.set-nav { width: 100%; border: 0; background: transparent; color: var(--text); font: inherit; text-align: left;
  cursor: pointer; }
.set-nav-value { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.pause-why { display: block; box-sizing: border-box; width: 100%; min-height: 48px; margin: 12px 0 0; padding: 0 12px;
  border: 1px solid var(--axis); border-radius: 12px; background: var(--card); color: var(--text); font: inherit;
  font-size: 17px; text-align: left; }
.pause-why::placeholder { color: var(--muted); }
.pause-label { display: block; margin: 12px 0 4px; font-size: 13px; color: var(--muted); }
.pause-month { display: flex; justify-content: space-between; align-items: center; font-size: 17px; font-weight: 600; }
.pause-step { background: transparent; padding: 8px; color: var(--accent); }
.pause-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 8px; text-align: center; }
.pause-wd { font-size: 12px; color: var(--muted); padding: 4px 0; }
.pause-day { border: 0; border-radius: 10px; min-height: 40px; background: transparent; color: var(--text); font: inherit;
  font-size: 15px; cursor: pointer; }
.pause-day:disabled { color: var(--muted); opacity: 0.45; cursor: default; }
.pause-day.today { font-weight: 700; }
.pause-day.after { background: var(--card2); }
.pause-day.chosen { background: var(--accent); color: var(--accent-text); font-weight: 700; }
.pause-reasons { margin: 0; }
.tiles .tile.pause-reason { padding: 14px 8px; gap: 4px; cursor: pointer; }
.pause-reason-icon { display: flex; align-items: center; justify-content: center; height: 28px; color: var(--muted); }
.tiles .tile.pause-reason.chosen { box-shadow: inset 0 0 0 2px var(--accent); }
.pause-reason.chosen .tile-name { color: var(--accent); }
.pause-reason-icon.pi-metal { color: var(--metal); } .pause-reason-icon.pi-sun { color: var(--sun); }
.pause-reason-icon.pi-snow .snow-edge { stroke: var(--snow-edge); } .pause-reason-icon.pi-snow .snow-body { stroke: var(--snow); }
.pause-facts .row { padding: 8px 0; border-bottom: 1px solid var(--line); }
.pause-facts .row:last-child { border-bottom: 0; }
.pause-notes { margin: 12px 0; padding-left: 20px; font-size: 13px; color: var(--muted); }
.pause-notes li + li { margin-top: 4px; }
.pause-bar { position: fixed; left: 0; right: 0; bottom: calc(57px + env(safe-area-inset-bottom)); z-index: 9;
  padding: 12px 16px; background: var(--card); border-top: 1px solid var(--axis); }
body.pause-screen main { padding-bottom: calc(180px + env(safe-area-inset-bottom)); }
.pause-button { width: 100%; min-height: 48px; font-size: 17px; font-weight: 600; }
.pause-error { margin: 0 0 8px; color: var(--warn); font-size: 13px; }
.pause-error:empty { display: none; }
.pause-journal { margin: 12px 0 0; font-size: 13px; }
.pause-journal summary { color: var(--accent); cursor: pointer; min-height: 32px; display: flex; align-items: center; }
/* «Журнал приостановок» (coordinator 02.11): a 13 px --accent link under the points; the journal opens below it. */
.pause-journal-link { display: inline-flex; min-height: 32px; align-items: center; border: 0; background: transparent;
  font: inherit; font-size: 13px; color: var(--accent); cursor: pointer; padding: 0; margin: 0 0 8px; }
.pause-journal-box { margin: 0 0 12px; font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
/* the state on the right of an «Ещё» row (canvas v373): 13 px, grey by default, orange when it waits for action */
.more-value { font-size: 13px; color: var(--muted); margin-right: 4px; }
.more-value:empty { display: none; }
.more-value.warn { color: var(--warn); font-weight: 600; }
.more-value.planned { color: var(--accent); }
/* the window of «Название и адрес» (canvas v373): a live preview of the header line */
.sheet-hint { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }
.sheet-preview { margin: 0; font-size: 15px; color: var(--text); }
/* the banknote glyph in a collection line sits on the text baseline */
.sub-icon { display: inline-flex; vertical-align: -2px; color: var(--muted); }

/* Touch targets of at least 44 px (Council 30.10): buttons, the way back, the two-way switch, the day list, the month
   steps of the pause calendar, «Ремонт» - the look stays, the area to press grows. */
.button, .seg2 button, .repair-button { min-height: 44px; }
.back-link { min-height: 44px; }
.day-list summary { min-height: 44px; }
.pause-step { min-width: 44px; min-height: 44px; }

/* «Кассета пуста — 0 ₽» in the recount form (migration 078): the words and the switch on one pressable row. */
.check-row { min-height: 44px; align-items: center; cursor: pointer; }

/* «Вход без Telegram» (migration 079): the code read off one screen and typed on another; the devices one a row. */
.login-code-value { font: 600 28px/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0.08em;
  margin: 4px 0 8px; user-select: all; }
/* «Создать кабинет» (login-v2 stage 2a): the PC's code of 19 signs fits a phone; the offer's box beside its line. */
.connect-code-value { font-size: 22px; letter-spacing: 0.04em; overflow-wrap: anywhere; }
.offer-line { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0; }
.offer-line input { margin-top: 3px; flex: none; }
/* «Сотрудник рядом» (login-v2): the QR code of the join link, dark on white in either theme, never wider than the card. */
.join-qr-box { display: flex; justify-content: center; margin: 8px 0 12px; }
.join-qr { display: block; width: min(232px, 100%); height: auto; border-radius: 8px; background: #fff; }
.steps { margin: 8px 0 12px; padding-left: 20px; }
.steps li + li { margin-top: 4px; }
.device-row { align-items: center; margin-top: 10px; }
.device-row + .device-row { border-top: 1px solid var(--line); padding-top: 10px; }

/* «Первые шаги» (owner 01.11, migration 095): a check in a ring per step, the actions one under another on the right. */
.steps-head .fill-bar { margin: 8px 0; }
.step-row { align-items: flex-start; padding-top: 12px; padding-bottom: 12px; }
.step-row + .step-row { border-top: 1px solid var(--line); }
.step-mark { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 12px; border: 2px solid var(--axis); box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.step-mark.done { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); }
.step-row.done .set-name { color: var(--muted); }
.step-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.step-actions .set-link { min-height: 24px; }
.step-undo { color: var(--muted); font-weight: 400; }
