/* Layout: working surfaces on a cool ground; one enamel-blue accent taken from Belgrade's street-name plates; status
   colours carry meaning only; the kitchen screen is dark by design.
   (30 October, 12:35, the owner: «Давай сформируем цветовую палитру на основе нашего синего. Максимум 5 цветов для всего
   приложения»; 12:52: «Цвета принимаются») Five colours for the whole app, the four others found from the blue in OKLCH —
   its chroma, each at its own place on the wheel and at the lightness its meaning needs (words in them and white words on
   them 4.5:1 and more; a colour's words on its own shade too): the blue — to press, chosen, today, «Добавить»; green —
   ready, paid; amber — cooking, attention, few left; red — stop, an error, take away; violet — the bill. Each has its
   pressed step, its light shade (one lightness and chroma for all five) and its night colours. No sixth colour: the
   charts and the platforms are the five's (the first series the blue, the second the blue's lighter step, the third the
   amber's lighter step; Wolt the blue's shade, Glovo the amber's), the stars amber. The greys from the blue's hue: a
   breath of it in the ground, the lines and the ink. Status colours always come with their words or an icon.
   Scale: one type ramp, a 4px spacing grid, three control heights and four corner radii.
   Every size on the page comes from these tokens. */
:root {
  --bg: #EAEDF3;
  --bg-2: #DEE1E9;
  --surface: #FFFFFF;
  --surface-2: #F5F7FA;
  --surface-3: #E4E8EF;
  --ink: #131824;
  --ink-2: #49505E;
  --ink-3: #5D6370; /* 4.5:1 and more on every light ground, the darkest (--bg-2) included */
  --line: #D5D9E1;
  --line-2: #BFC4CF;
  --grid: #DCE0E6;
  --accent: #1E44B0;
  --accent-2: #0D2D99;
  --accent-ink: #FFFFFF;
  --accent-soft: #D8E5FF;
  --ok: #007440;
  --ok-ink: #FFFFFF;
  --ok-soft: #CBEFD6;
  --warn: #805202;
  --warn-ink: #FFFFFF;
  --warn-soft: #FAE0C1;
  --bad: #BE2E31;
  --bad-ink: #FFFFFF;
  --bad-soft: #FEDBD7;
  --bill: #7F3395;
  --bill-ink: #FFFFFF;
  --bill-soft: #F3DBFB;
  /* (12 November, 03:10, the owner: «цвета A + B») the departments' own colours: the floor and the bar, the kitchen,
     the back office — on the staff's squares and avatars */
  --dep-floor: #2F5BD8; --dep-kitchen: #C2571A; --dep-office: #7A4FD0;
  --s1: #1E44B0; /* the series of a chart: the blue, its lighter step, the amber's lighter step */
  --s2: #5C82DA;
  --s3: #D69727;
  --s2-soft: #D8E5FF;
  --s3-soft: #FAE0C1;
  --star: #805202; /* the stars of a rating: the amber, 3:1 and more on white for a glyph drawn bold and large */
  /* Wolt and Glovo in their own colours wherever they are marked (the owner, 1 November, 20:47: «Вольт … всегда голубым
     цветом, их фирменным. Глова желтым»): Wolt's blue with white, Glovo's yellow with near-black — a brand's name on its
     own colour, the same by day and at night */
  --wolt: #009DE0; --wolt-ink: #FFFFFF; --wolt-soft: #D9F1FB;
  --glovo: #FFC244; --glovo-ink: #1D1D1B; --glovo-soft: #FFF1D4;
  --ghost: #ADB1B9;
  --knob: #FFFFFF;
  --seg-on: #FFFFFF; /* the selected part of a segmented control: lighter than its track in both themes */
  --pill: #FFFFFF; /* a pill key on a screen's shade (the iPhone's headers and foot): lighter than the shade in both themes */
  --pill-press: #DCE0E8;
  /* a menu or a calendar over the page (10 November, 00:32, the owner: «пилюля закругленная, а выпадающий список
     квадратный — странно»): the iPhone's menus — a light layer a little see-through, a thin edge, a soft shadow */
  --menu: rgb(255 255 255 / 0.94); --menu-line: rgb(19 24 36 / 0.09); --menu-hover: rgb(19 24 36 / 0.06);
  --shadow-menu: 0 0 0 1px rgb(19 24 36 / 0.07), 0 12px 32px rgb(19 24 36 / 0.16), 0 2px 6px rgb(19 24 36 / 0.06);
  --seg-track: rgb(118 118 128 / 0.12); /* the iPhone's segmented control: its track */
  --paper: #FCFCF9;
  --paper-ink: #1B1B1B;
  --shadow-1: 0 1px 2px rgb(19 24 36 / 0.06), 0 2px 10px rgb(19 24 36 / 0.05);
  --shadow-2: 0 10px 36px rgb(19 24 36 / 0.18);
  --scrim: rgb(19 24 36 / 0.42);

  /* faces: Onest for all text and numbers; Unbounded only for the wordmark and the launcher title;
     JetBrains Mono only for running timers, so the digits do not jump while they count */
  --font-ui: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-brand: "Unbounded", "Onest", system-ui, sans-serif;
  --font-timer: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* type: caption · secondary · body · title · screen · page · display */
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: 22px;
  --fs-2xl: 28px;
  --fs-3xl: 36px;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --lh-tight: 1.2;
  --lh-base: 1.4;
  --lh-loose: 1.5;
  --track-caps: 0.06em;
  --track-tight: -0.01em;

  /* space: 4px grid */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;

  /* controls: compact (inside tables) · standard 44px touch target · large primary actions */
  --h-sm: 36px;
  --h-md: 44px;
  --h-lg: 52px;

  /* corners: compact controls · controls and tiles · cards · sheets */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-pill: 999px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1016; --bg-2: #080A0E; --surface: #161920; --surface-2: #1C1F27; --surface-3: #262A33;
    --ink: #ECEEF4; --ink-2: #B5BBC5; --ink-3: #969BA7; --line: #272B34; --line-2: #373C46; --grid: #2C3039;
    --accent: #81A8FF; --accent-2: #9EBDFF; --accent-ink: #0E1016; --accent-soft: #1E2F54;
    --ok: #5AC485; --ok-ink: #0E1016; --ok-soft: #083A20;
    --warn: #EFB146; --warn-ink: #0E1016; --warn-soft: #442A00;
    --bad: #F17074; --bad-ink: #0E1016; --bad-soft: #4E201E;
    --bill: #CE8EE2; --bill-ink: #0E1016; --bill-soft: #3F2447;
    --s1: #81A8FF; --s2: #A8C4FE; --s3: #EFB146; --s2-soft: #1E2F54; --s3-soft: #442A00; --ghost: #51555E; --star: #EFB146; --dep-floor: #81A8FF; --dep-kitchen: #F59E6B; --dep-office: #B79CFF;
    --wolt-soft: #0A3344; --glovo-soft: #45360F;
    --knob: #ECEEF4; --shadow-1: 0 1px 2px rgb(0 0 0 / 0.45); --shadow-2: 0 14px 44px rgb(0 0 0 / 0.6); --scrim: rgb(0 0 0 / 0.62);
    --seg-on: #383D47; --pill: #262A33; --pill-press: #373C46;
  --menu: rgb(36 39 47 / 0.94); --menu-line: rgb(255 255 255 / 0.08); --menu-hover: rgb(255 255 255 / 0.07);
  --shadow-menu: 0 0 0 1px rgb(255 255 255 / 0.07), 0 16px 44px rgb(0 0 0 / 0.55);
  --seg-track: rgb(118 118 128 / 0.24);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1016; --bg-2: #080A0E; --surface: #161920; --surface-2: #1C1F27; --surface-3: #262A33;
  --ink: #ECEEF4; --ink-2: #B5BBC5; --ink-3: #969BA7; --line: #272B34; --line-2: #373C46; --grid: #2C3039;
  --accent: #81A8FF; --accent-2: #9EBDFF; --accent-ink: #0E1016; --accent-soft: #1E2F54;
  --ok: #5AC485; --ok-ink: #0E1016; --ok-soft: #083A20;
  --warn: #EFB146; --warn-ink: #0E1016; --warn-soft: #442A00;
  --bad: #F17074; --bad-ink: #0E1016; --bad-soft: #4E201E;
  --bill: #CE8EE2; --bill-ink: #0E1016; --bill-soft: #3F2447;
  --s1: #81A8FF; --s2: #A8C4FE; --s3: #EFB146; --s2-soft: #1E2F54; --s3-soft: #442A00; --ghost: #51555E; --star: #EFB146; --dep-floor: #81A8FF; --dep-kitchen: #F59E6B; --dep-office: #B79CFF;
    --wolt-soft: #0A3344; --glovo-soft: #45360F;
  --knob: #ECEEF4; --shadow-1: 0 1px 2px rgb(0 0 0 / 0.45); --shadow-2: 0 14px 44px rgb(0 0 0 / 0.6); --scrim: rgb(0 0 0 / 0.62);
  --seg-on: #383D47; --pill: #262A33; --pill-press: #373C46;
  --menu: rgb(36 39 47 / 0.94); --menu-line: rgb(255 255 255 / 0.08); --menu-hover: rgb(255 255 255 / 0.07);
  --shadow-menu: 0 0 0 1px rgb(255 255 255 / 0.07), 0 16px 44px rgb(0 0 0 / 0.55);
  --seg-track: rgb(118 118 128 / 0.24);
  color-scheme: dark;
}
/* the kitchen screen is dark: less glare next to the pass — and, chosen on the screen itself (2 November, the owner: «Сделать и
   светлый»), light: the day's palette, the same on every device whatever its own theme (.kds.kds-light, below) */
.kds {
  --bg: #0E1016; --bg-2: #080A0E; --surface: #161920; --surface-2: #1C1F27; --surface-3: #262A33;
  --ink: #ECEEF4; --ink-2: #B5BBC5; --ink-3: #969BA7; --line: #272B34; --line-2: #373C46; --grid: #2C3039;
  --accent: #81A8FF; --accent-2: #9EBDFF; --accent-ink: #0E1016; --accent-soft: #1E2F54;
  --ok: #5AC485; --ok-ink: #0E1016; --ok-soft: #083A20;
  --warn: #EFB146; --warn-ink: #0E1016; --warn-soft: #442A00;
  --bad: #F17074; --bad-ink: #0E1016; --bad-soft: #4E201E;
  --bill: #CE8EE2; --bill-ink: #0E1016; --bill-soft: #3F2447;
  --s1: #81A8FF; --s2: #A8C4FE; --s3: #EFB146; --s2-soft: #1E2F54; --s3-soft: #442A00; --ghost: #51555E; --star: #EFB146; --dep-floor: #81A8FF; --dep-kitchen: #F59E6B; --dep-office: #B79CFF;
    --wolt-soft: #0A3344; --glovo-soft: #45360F;
  --knob: #ECEEF4; --shadow-1: 0 1px 2px rgb(0 0 0 / 0.45); --shadow-2: 0 14px 44px rgb(0 0 0 / 0.6); --scrim: rgb(0 0 0 / 0.62);
  --seg-on: #383D47; --pill: #262A33; --pill-press: #373C46;
  --menu: rgb(36 39 47 / 0.94); --menu-line: rgb(255 255 255 / 0.08); --menu-hover: rgb(255 255 255 / 0.07);
  --shadow-menu: 0 0 0 1px rgb(255 255 255 / 0.07), 0 16px 44px rgb(0 0 0 / 0.55);
  --seg-track: rgb(118 118 128 / 0.24);
  color-scheme: dark;
}
.kds.kds-light {
  --bg: #EAEDF3; --bg-2: #DEE1E9; --surface: #FFFFFF; --surface-2: #F5F7FA; --surface-3: #E4E8EF;
  --ink: #131824; --ink-2: #49505E; --ink-3: #5D6370; --line: #D5D9E1; --line-2: #BFC4CF; --grid: #DCE0E6;
  --accent: #1E44B0; --accent-2: #0D2D99; --accent-ink: #FFFFFF; --accent-soft: #D8E5FF;
  --ok: #007440; --ok-ink: #FFFFFF; --ok-soft: #CBEFD6;
  --warn: #805202; --warn-ink: #FFFFFF; --warn-soft: #FAE0C1;
  --bad: #BE2E31; --bad-ink: #FFFFFF; --bad-soft: #FEDBD7;
  --bill: #7F3395; --bill-ink: #FFFFFF; --bill-soft: #F3DBFB;
  --s1: #1E44B0; --s2: #5C82DA; --s3: #D69727; --s2-soft: #D8E5FF; --s3-soft: #FAE0C1; --ghost: #ADB1B9; --star: #805202;
  --wolt-soft: #D9F1FB; --glovo-soft: #FFF1D4;
  --knob: #FFFFFF; --shadow-1: 0 1px 2px rgb(19 24 36 / 0.06), 0 2px 10px rgb(19 24 36 / 0.05); --shadow-2: 0 10px 36px rgb(19 24 36 / 0.18); --scrim: rgb(19 24 36 / 0.42);
  --seg-on: #FFFFFF; --pill: #FFFFFF; --pill-press: #DCE0E8;
  --menu: rgb(255 255 255 / 0.94); --menu-line: rgb(19 24 36 / 0.09); --menu-hover: rgb(19 24 36 / 0.06);
  --shadow-menu: 0 0 0 1px rgb(19 24 36 / 0.07), 0 12px 32px rgb(19 24 36 / 0.16), 0 2px 6px rgb(19 24 36 / 0.06);
  --seg-track: rgb(118 118 128 / 0.12); /* the iPhone's segmented control: its track */
  color-scheme: light;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--fs-md);
  font-weight: var(--fw-regular);
  line-height: var(--lh-base);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow: hidden;
}
#app { height: 100%; }
/* The lines of a text (with typo.js, which keeps short words, numbers and their units together by no-break spaces):
   a paragraph never ends on one lonely word, and a title, a name or a label breaks into lines of even length —
   «Тост с авокадо / и яйцом пашот», not «Тост с авокадо и яйцом / пашот». */
body { text-wrap-style: pretty; }
h1, h2, h3, .card-title, .sheet-title, .screen-title, .page-title, .empty-title, .empty-hint, .role-title, .item-name,
.line-name, .tl-row, .ig-name, .ks-name, .ks-h, .ks-modal-title, .ks-line-name, .ks-done-t, .gu-st-title, .gu-cam-t,
.gu-scan-h, .gu-place-name, .rk-item, .field-label, .tile-l, .check-name, .of-head h1 { text-wrap-style: balance; }
/* the front of the house is touched with a finger: every control at least 44px high there, the small ones too */
.ipad, .kds, .kiosk, .phone-shell, .guest-shell, .launcher { --h-sm: var(--h-md); }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { -webkit-touch-callout: none; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* (29 October, RUVO from TestFlight on the owner's iPad: the top bar ran under the clock and the battery) the page is
   drawn edge to edge (viewport-fit=cover), so every screen starts below the iPad's or iPhone's status bar and clears
   the rounded corners at its sides; its background fills the strip under the status bar. The bottom is cleared by the
   bars at the bottom themselves (the tab bar, the bill's foot, the sheets). */
.app {
  height: 100%; display: flex; flex-direction: column; min-height: 0;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) 0 env(safe-area-inset-left, 0px);
  background: var(--bg); color: var(--ink);
}
/* (29 October, the owner on his iPhone: «почему у нас верхняя полоса черная — можем ее сделать в цвет фона?») On the
   iPad, the kitchen screen and the waiter's iPhone the screen's own top reaches under the status bar, in its own shade
   — the top bar, a phone screen's header, the PIN's screen —, its content below the clock and the battery: no strip of
   another colour above it. */
.app.ipad, .app.kds, .app.phone-shell { padding-top: 0; }
.app.ipad > .topbar, .app.kds > .kds-top {
  padding-top: calc(var(--sp-2) + env(safe-area-inset-top, 0px)); min-height: calc(60px + env(safe-area-inset-top, 0px));
}

/* ---------- text roles: one style per role, used on every screen ---------- */
/* caption: column headers, section labels, field labels */
.caption, .field-label, .tile-l, .tbl-data th, .ph-section, .course-head, .stop-cat-h, .tl-cat,
.dcol-head, .kds-side-head, .mod-title {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--ink-3);
}
/* title: cards, sheets, side panels */
.card-title, .card-head h2, .sheet-title, .rail-head, .role-title, .empty-title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  color: var(--ink);
}
/* screen title: the order panel, phone headers, iPad tabs */
.screen-title, .os-title, .ph-title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--track-tight);
}
/* page title: back office */
.page-title, .of-head h1 {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--track-tight);
}
.title-row { display: flex; align-items: center; gap: var(--sp-1); min-width: 0; }

.display { font-weight: var(--fw-bold); line-height: var(--lh-tight); letter-spacing: var(--track-tight); }
.mono { font-variant-numeric: tabular-nums; }
.timer { font-family: var(--font-timer); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.muted, .faint { color: var(--ink-3); }
.small { font-size: var(--fs-sm); }
.strong { font-weight: var(--fw-semibold); }
.big { font-size: var(--fs-lg); }
.grow { flex: 1; min-width: 0; }
.nw { white-space: nowrap; }
.warn-txt { color: var(--warn); }
.bad-txt { color: var(--bad); }
.ok-txt { color: var(--ok); }
.note { margin: 0; max-width: 90ch; font-size: var(--fs-sm); line-height: var(--lh-loose); color: var(--ink-3); }

/* ---------- layout helpers ---------- */
.pad { padding: var(--sp-3) var(--sp-4); }
.pad-b { padding-bottom: var(--sp-2); }
.mb { margin-bottom: var(--sp-2); }
.ml { margin-left: var(--sp-2); }
.row-gap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.col-gap { display: flex; flex-direction: column; gap: var(--sp-2); }
.as-link { cursor: pointer; }

/* Screens that scroll as a whole keep every block at its natural height. Without this a block that
   scrolls sideways (a segmented control, a table) gets squeezed when the screen is longer than the view. */
.ph-body > *, .checks > *, .dboard > *, .sheet-body > *, .kds-sum > *, .kds-done > *, .hall-rail > *,
.menu-cats > *, .of-side > *, .hall-head, .demo-hint { flex-shrink: 0; }

/* enamel street-plate wordmark: blue field, thin white inner rule (a logo, so its size is its own).
   The rule is its own box, inset 2px and rounded 2px less than the plate, so both corners share one centre
   and stay clean at any size; the left padding takes back the tracking after the last letter. */
.wordmark {
  position: relative;
  display: inline-block;
  flex: none;
  padding: 6px 10px 5px calc(10px + 0.08em);
  border-radius: 7px;
  background: #1E44B0;
  color: #FFFFFF;
  font-family: var(--font-brand);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  line-height: 1;
  letter-spacing: 0.08em;
}
.wordmark::after {
  content: ''; position: absolute; inset: 2px; border: 1.5px solid rgb(255 255 255 / 0.92); border-radius: 5px; pointer-events: none;
}
.wordmark.sm { padding: 5px 7px 4px calc(7px + 0.08em); border-radius: 6px; font-size: var(--fs-xs); }
.wordmark.sm::after { border-width: 1px; border-radius: 4px; }
/* the wordmark with the restaurant's own name beside it, both on one middle line */
.brand { display: inline-flex; flex: none; align-items: center; gap: var(--sp-3); min-width: 0; }
.brand-loc { max-width: 240px; overflow: hidden; color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 20px; white-space: nowrap; text-overflow: ellipsis; }

/* ---------- buttons ---------- */
.ic { flex: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: var(--h-md); padding: 0 var(--sp-4);
  border: 1px solid transparent; border-radius: var(--r-md);
  font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: var(--lh-tight);
  white-space: nowrap; cursor: pointer;
  transition: background 0.12s, border-color 0.12s, transform 0.06s;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.42; cursor: not-allowed; }
.btn-sm { min-height: var(--h-sm); padding: 0 var(--sp-3); gap: var(--sp-1); border-radius: var(--r-sm); font-size: var(--fs-sm); }
.btn-lg { min-height: var(--h-lg); padding: 0 var(--sp-5); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled) { background: var(--accent-2); }
.btn-secondary { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-secondary:hover:not(:disabled) { border-color: var(--ink-3); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-3); color: var(--ink); }
.btn-ok { background: var(--ok); color: var(--ok-ink); }
.btn-danger { background: var(--bad); color: var(--bad-ink); }
.btn-danger-ghost { background: transparent; color: var(--bad); }
.btn-danger-ghost:hover:not(:disabled) { background: var(--bad-soft); }
.btn-wolt, .btn-wolt:hover:not(:disabled) { background: var(--wolt); border-color: var(--wolt); color: var(--wolt-ink); }
.btn-glovo, .btn-glovo:hover:not(:disabled) { background: var(--glovo); border-color: var(--glovo); color: var(--glovo-ink); }
.btn.wide { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center; flex: none;
  width: var(--h-md); height: var(--h-md); padding: 0;
  border: 0; border-radius: var(--r-md); background: transparent; color: var(--ink-2); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.icon-btn.sm { width: var(--h-sm); height: var(--h-sm); border-radius: var(--r-sm); }

/* ---------- segmented control: same outer height as a button ----------
   Each part is as tall as the whole control, so a finger anywhere on the bar hits it; the white pill of the chosen
   part is drawn 4px inside (::before), as before. */
.seg {
  display: inline-flex; gap: 2px; max-width: 100%; min-height: var(--h-md); padding: 0 var(--sp-1);
  border-radius: var(--r-md); background: var(--surface-3);
  overflow-x: auto; scrollbar-width: none;
}
.seg-sm { min-height: var(--h-sm); }
.seg::-webkit-scrollbar { display: none; }
.seg-btn {
  position: relative; z-index: 0; display: inline-flex; align-items: center; gap: var(--sp-2);
  min-height: var(--h-md); padding: 0 var(--sp-3);
  border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink-2);
  font-size: var(--fs-md); font-weight: var(--fw-semibold); white-space: nowrap; cursor: pointer;
}
.seg-btn::before { content: ''; position: absolute; inset: var(--sp-1) 0; z-index: -1; border-radius: var(--r-sm); }
.seg-btn.on { color: var(--ink); }
.seg-btn.on::before { background: var(--seg-on); box-shadow: var(--shadow-1); }
.seg-btn:focus-visible { outline: 0; }
.seg-btn:focus-visible::before { outline: 2px solid var(--accent); outline-offset: 1px; }
.seg-btn:disabled { cursor: default; opacity: 0.55; }
.seg-sm .seg-btn { min-height: var(--h-sm); font-size: var(--fs-sm); }
/* many options (a menu's folders): chips that wrap onto the next line instead of tabs that run off behind the edge */
.seg.seg-chips { flex-wrap: wrap; gap: var(--sp-2); min-height: 0; padding: 0; overflow: visible; border-radius: 0; background: none; }
.seg-chips .seg-btn { min-height: var(--h-sm); padding: 0 var(--sp-3); border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--surface); font-size: var(--fs-sm); }
.seg-chips .seg-btn::before { display: none; }
.seg-chips .seg-btn:hover { border-color: var(--ink-3); }
.seg-chips .seg-btn.on { border-color: transparent; background: var(--accent-soft); color: var(--accent); }
.seg-chips .seg-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* (15 November, the brand book: words 4.5:1 — the kitchen's «Все цеха 8» was 3.9) */
.seg-count { color: var(--ink-2); font-weight: var(--fw-medium); font-variant-numeric: tabular-nums; }
.seg-btn.on .seg-count { color: inherit; opacity: 0.75; }
.seg-badge {
  min-width: 20px; padding: 0 6px; border-radius: var(--r-pill);
  background: var(--accent); color: var(--accent-ink);
  font-size: var(--fs-xs); font-weight: var(--fw-semibold); line-height: 20px; text-align: center;
}

.chip {
  display: inline-flex; align-items: center; min-height: var(--h-sm); padding: 0 var(--sp-4);
  border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--surface); color: var(--ink);
  font-size: var(--fs-sm); font-weight: var(--fw-semibold); white-space: nowrap; cursor: pointer;
}
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--surface); }

/* the frame is an outline drawn over the buttons, so each button is the switch's full height (44px on a touch screen) */
.lang { display: inline-flex; flex: none; overflow: hidden; border-radius: var(--r-sm); outline: 1px solid var(--line-2); outline-offset: -1px; }
.lang-btn {
  min-width: var(--h-sm); min-height: var(--h-sm); padding: 0 var(--sp-2);
  border: 0; background: transparent; color: var(--ink-3);
  font-size: var(--fs-xs); font-weight: var(--fw-bold); cursor: pointer;
}
.lang-btn.on { background: var(--ink); color: var(--surface); }

.sync { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--ink-2); white-space: nowrap; }
.sync-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.sync-live .sync-dot { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.sync-local .sync-dot { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.sync-err .sync-dot { background: var(--bad); }
.sync-conn .sync-dot { animation: pulse 1s ease-in-out infinite; }

.avatar {
  display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-size: var(--fs-sm); font-weight: var(--fw-bold);
}
.avatar-lg { width: 40px; height: 40px; font-size: var(--fs-md); }
.avatar-xl { width: 56px; height: 56px; font-size: var(--fs-xl); }

/* ---------- inputs: one height and one text size (16px also stops iPhone zooming on focus) ---------- */
.search {
  display: flex; align-items: center; gap: var(--sp-2); min-width: 0; height: var(--h-md); padding: 0 var(--sp-3);
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); color: var(--ink-3);
}
.search:focus-within { border-color: var(--accent); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: var(--fs-md); }
.search-x { display: grid; place-items: center; padding: var(--sp-1); border: 0; background: none; color: var(--ink-3); cursor: pointer; }

.field { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.field input {
  min-width: 0; height: var(--h-md); padding: 0 var(--sp-3);
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); color: var(--ink);
  font-size: var(--fs-md);
}
.field input:focus { border-color: var(--accent); outline: 0; }
.field input:disabled { background: var(--surface-2); color: var(--ink-3); }
.cell-input, .line-input {
  height: var(--h-sm); padding: 0 var(--sp-2);
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink);
  font-size: var(--fs-md);
}
.cell-input { width: 96px; text-align: right; }
/* (0.89) a price its person may not change: seen, greyed, like a field's */
.cell-input:disabled, .line-input:disabled { background: var(--surface-2); color: var(--ink-3); cursor: not-allowed; }
.cell-input.short { width: 64px; }
.cell-input.bad, .cell-input[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 2px var(--bad-soft); }
.tbl-data tr.off td { color: var(--ink-3); }
.cell-input:focus { border-color: var(--accent); outline: 0; }
.line-input { border-color: var(--accent); }

/* dropdown: the closed field is the same box as an input; the open list has 44px rows */
.select {
  display: inline-flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
  width: 100%; min-width: 0; height: var(--h-md); padding: 0 var(--sp-3) 0 var(--sp-4);
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); color: var(--ink);
  font-size: var(--fs-md); font-weight: var(--fw-regular); text-align: left; cursor: pointer;
}
.select:hover { border-color: var(--ink-3); }
.select.open, .select:focus-visible { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 3px var(--accent-soft); }
.select.sm { height: var(--h-sm); padding: 0 var(--sp-2) 0 var(--sp-3); border-radius: var(--r-sm); }
.select-value { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.select-icon { flex: none; margin-left: -2px; color: var(--ink-3); }
.select-chevron { color: var(--ink-3); transition: transform 0.15s; }
.select.open .select-chevron { color: var(--accent); transform: rotate(180deg); }
.select-pop {
  position: fixed; z-index: 90; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2);
  font-family: var(--font-ui); font-size: var(--fs-md); font-weight: var(--fw-regular); letter-spacing: 0; text-transform: none;
  animation: rise 0.12s ease-out;
}
.select-search { flex: none; padding: var(--sp-2); border-bottom: 1px solid var(--line); }
.select-list { flex: 1; min-height: 0; padding: var(--sp-1); overflow: auto; outline: 0; }
.select-opt {
  display: flex; align-items: center; gap: var(--sp-3); width: 100%; min-height: var(--h-md); padding: 0 var(--sp-3);
  border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink); font-size: var(--fs-md); text-align: left; cursor: pointer;
}
.select-opt.active { background: var(--surface-2); }
.select-opt[aria-selected="true"] { color: var(--accent); font-weight: var(--fw-semibold); }
.select-opt-label { flex: 1; min-width: 0; }
.select-empty { padding: var(--sp-3); font-size: var(--fs-sm); color: var(--ink-3); }

/* the frame is an outline over the buttons (as the language switch's): the − and + are full 44px squares */
.stepper { display: inline-flex; align-items: center; flex: none; overflow: hidden; border-radius: var(--r-md); background: var(--surface); outline: 1px solid var(--line-2); outline-offset: -1px; }
.step-btn { display: grid; place-items: center; width: var(--h-md); height: var(--h-md); border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.step-btn:disabled { opacity: 0.3; cursor: default; }
.step-btn:focus-visible { outline-offset: -2px; }
.step-val { min-width: 28px; text-align: center; font-weight: var(--fw-bold); }
.stepper-sm { border-radius: var(--r-sm); }
.stepper-sm .step-btn { width: var(--h-sm); height: var(--h-sm); }
/* minutes a minute at a time: the number does not move the buttons as it grows; a held finger is not a zoom or a selection */
.min-stepper .step-val { min-width: 74px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.min-stepper .step-btn { touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

.switch { position: relative; display: inline-flex; align-items: center; gap: var(--sp-3); cursor: pointer; font-weight: var(--fw-semibold); }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.switch-ui { position: relative; flex: none; width: 44px; height: 26px; border-radius: var(--r-pill); background: var(--line-2); transition: background 0.15s; }
.switch-ui::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--knob); box-shadow: 0 1px 2px rgb(0 0 0 / 0.25); transition: transform 0.15s;
}
.switch input:checked + .switch-ui { background: var(--accent); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch input:disabled + .switch-ui { opacity: 0.4; }

/* a list of switches with a label and a hint, used in forms */
.check-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-md); }
.check-row { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3); border-bottom: 1px solid var(--line); cursor: pointer; }
.check-row:last-child { border-bottom: 0; }
.check-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.check-name { font-weight: var(--fw-semibold); }
.check-hint { font-size: var(--fs-sm); color: var(--ink-2); }

/* ---------- tags ---------- */
.st, .ch {
  display: inline-flex; align-items: center; gap: var(--sp-1); padding: 2px var(--sp-2);
  border-radius: var(--r-pill); background: var(--surface-3); color: var(--ink-2);
  font-size: var(--fs-xs); font-weight: var(--fw-semibold); line-height: var(--lh-base); white-space: nowrap;
}
.st-sent { background: var(--surface-3); color: var(--ink-2); }
/* a later course on the kitchen screen, not called yet */
.st-held { background: transparent; color: var(--ink-3); outline: 1px dashed var(--line-2); outline-offset: -1px; }
.st-cooking, .st-warn { background: var(--warn-soft); color: var(--warn); }
.st-ready, .st-ok { background: var(--ok-soft); color: var(--ok); }
.st-served { background: transparent; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.st-void, .st-bad { background: var(--bad-soft); color: var(--bad); }
.st-draft { background: var(--accent-soft); color: var(--accent); }
.st-paid { background: transparent; color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok); }
.st-bill { background: var(--bill-soft); color: var(--bill); }
/* app.ruvo.ac: done without the line, waiting on the device to go to the server */
.st-pending { background: transparent; color: var(--warn); box-shadow: inset 0 0 0 1px var(--warn); }
.bill-wait { color: var(--warn); }
.st-muted { background: transparent; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); }
/* a delivery's platform: its name on its own colour (the owner, 20:47 — Wolt blue, Glovo yellow) */
.ch { font-weight: var(--fw-semibold); }
.ch-wolt { background: var(--wolt); color: var(--wolt-ink); }
.ch-glovo { background: var(--glovo); color: var(--glovo-ink); }
/* (server 0.75) a guest's order from the restaurant's own page of orders: RUVO's own colour */
.ch-site { background: var(--accent); color: var(--accent-ink); }

.pct { padding: 2px var(--sp-2); border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: var(--fw-semibold); white-space: nowrap; }
.pct-ok { background: var(--ok-soft); color: var(--ok); }
.pct-warn { background: var(--warn-soft); color: var(--warn); }
.pct-bad { background: var(--bad-soft); color: var(--bad); }
.pct.big { padding: var(--sp-1) var(--sp-3); font-size: var(--fs-md); }

.money { white-space: nowrap; }
.money-u { color: var(--ink-3); font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: 0.02em; }
.money.big { font-size: var(--fs-xl); font-weight: var(--fw-bold); letter-spacing: var(--track-tight); }
.money.big .money-u { font-size: var(--fs-sm); }

/* ---------- empty states ---------- */
.empty { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); padding: var(--sp-8) var(--sp-4); text-align: center; color: var(--ink-2); }
.empty-ic { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: var(--sp-1); border-radius: var(--r-lg); background: var(--surface-3); color: var(--ink-3); }
.empty-hint { max-width: 42ch; font-size: var(--fs-sm); }
.empty .btn { margin-top: var(--sp-2); }

/* ---------- reference notes live behind an "i" next to the heading ---------- */
.info-btn {
  position: relative; display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; margin: -4px 0; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); cursor: pointer;
  vertical-align: middle; text-transform: none; letter-spacing: 0;
}
/* the «i» is drawn small beside a heading, but a finger finds it in a 44px circle around it */
.info-btn::before { content: ''; position: absolute; inset: -8px; border-radius: 50%; }
/* beside a field's label it keeps the label one line high, so the fields of a row start at one height */
.field-label .info-btn { margin: -8px 0; }
.info-btn:hover, .info-btn[aria-expanded="true"] { background: var(--accent-soft); color: var(--accent); }
.info-btn.has-dot { position: relative; }
.info-btn.has-dot::after {
  content: ''; position: absolute; top: 3px; right: 3px; width: 8px; height: 8px;
  border: 2px solid var(--surface); border-radius: 50%; background: var(--warn);
}
.info-pop {
  position: fixed; z-index: 80; width: max-content; max-width: min(360px, calc(100vw - 32px));
  padding: var(--sp-3) var(--sp-4); border: 1px solid var(--line-2); border-radius: var(--r-md);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2);
  font-family: var(--font-ui); font-size: var(--fs-sm); font-weight: var(--fw-regular); line-height: var(--lh-loose);
  letter-spacing: 0; text-transform: none; text-align: left;
  animation: rise 0.14s ease-out;
}
.info-pop > * + * { margin-top: var(--sp-2); }
.info-pop ul, .info-pop ol { display: flex; flex-direction: column; gap: var(--sp-1); margin: 0; padding-left: var(--sp-5); }
.info-pop b { font-weight: var(--fw-semibold); }

/* ---------- sheets: modals, bottom sheets, side panels ---------- */
.sheet-wrap {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
  padding: var(--sp-4); background: var(--scrim); animation: fade 0.15s ease-out;
}
.sheet {
  display: flex; flex-direction: column; width: min(560px, 100%); max-height: 100%; overflow: hidden;
  border-radius: var(--r-xl); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2);
  animation: rise 0.18s ease-out;
}
.sheet-wide { width: min(980px, 100%); }
.sheet-head { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-2) var(--sp-3) var(--sp-5); border-bottom: 1px solid var(--line); }
.sheet-titles { flex: 1; min-width: 0; padding: var(--sp-1) 0; }
.sheet-sub { margin-top: 2px; font-size: var(--fs-sm); color: var(--ink-2); }
.sheet-body { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-5); overflow: auto; }
.sheet-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5); padding-bottom: max(var(--sp-3), env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
}
.sheet-center { padding-top: max(var(--sp-4), env(safe-area-inset-top, 0px)); padding-bottom: max(var(--sp-4), env(safe-area-inset-bottom, 0px)); }
.sheet-bottom { align-items: flex-end; padding: 0; }
.sheet-bottom .sheet { width: 100%; max-width: 560px; max-height: 92%; border-radius: var(--r-xl) var(--r-xl) 0 0; }
.sheet-right { justify-content: flex-end; align-items: stretch; padding: 0; }
.sheet-right .sheet { width: min(560px, 100%); height: 100%; border-radius: 0; }
.sheet-right .sheet-wide { width: min(820px, 100%); }

.toasts {
  position: fixed; left: 50%; z-index: 70; display: flex; flex-direction: column; align-items: center; gap: var(--sp-2);
  width: max-content; max-width: calc(100% - 2 * var(--sp-4)); transform: translateX(-50%); pointer-events: none;
}
.toasts-bottom { bottom: max(var(--sp-5), env(safe-area-inset-bottom, 0px)); }
.toasts-top { top: calc(76px + env(safe-area-inset-top, 0px)); }
.toast {
  padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); background: var(--ink); color: var(--surface);
  box-shadow: var(--shadow-2); font-size: var(--fs-sm); font-weight: var(--fw-semibold); text-align: center;
  animation: rise 0.2s ease-out;
}
.toast-ok { background: var(--ok); color: var(--ok-ink); }
.toast-warn { background: var(--warn); color: var(--warn-ink); }
.toast-bad { background: var(--bad); color: var(--bad-ink); }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { opacity: 0.35; } }
@keyframes flash { 0% { box-shadow: 0 0 0 0 var(--accent); } 40% { box-shadow: 0 0 0 7px var(--accent-soft); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- cards ---------- */
.card {
  display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; padding: var(--sp-4);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
}
.card.flush { gap: 0; padding: 0; overflow: hidden; }
/* one height for every card head, with or without a button, so titles of cards side by side stand level */
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-3); min-height: var(--h-sm); }
.card-head h2 { display: flex; align-items: center; gap: var(--sp-2); }
.card-sub { margin-top: 2px; font-size: var(--fs-sm); color: var(--ink-2); }

/* ---------- tables: cells align with the edge of the card they sit in ---------- */
.table-wrap { min-width: 0; overflow-x: auto; }
.tbl-data { width: 100%; border-collapse: collapse; font-size: var(--fs-md); }
.tbl-data th { padding: var(--sp-3); border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.tbl-data td { padding: var(--sp-3); border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl-data th:first-child, .tbl-data td:first-child { padding-left: 0; }
.tbl-data th:last-child, .tbl-data td:last-child { padding-right: 0; }
.card.flush .tbl-data th:first-child, .card.flush .tbl-data td:first-child { padding-left: var(--sp-4); }
.card.flush .tbl-data th:last-child, .card.flush .tbl-data td:last-child { padding-right: var(--sp-4); }
.tbl-data tbody tr:last-child td { border-bottom: 0; }
.tbl-data .num { text-align: right; white-space: nowrap; }
.tbl-data tr.clickable { cursor: pointer; }
.tbl-data tr.clickable:hover td { background: var(--surface-2); }
.tbl-data.compact th, .tbl-data.compact td { padding-top: var(--sp-2); padding-bottom: var(--sp-2); }
/* the column heads stay on top while the page scrolls (the owner, 22 October: «названия столбцов оставались сверху»):
   sticky-heads.js moves them down by --th-y while the table's top is above its box's; then they cover the rows under
   them, keep their line and cast a little shadow. A head that sticks to the left already (the first column of the
   reports and the schedule) keeps its own position, above the rest */
.tbl-data[data-th-up] > thead th { transform: translateY(var(--th-y, 0px)); background: var(--surface); }
.tbl-data[data-th-up] > thead th:not(.mn-stick):not(.sc-who) { position: relative; z-index: 3; }
.tbl-data[data-th-up] > thead th.mn-stick, .tbl-data[data-th-up] > thead th.sc-who { z-index: 4; }
.tbl-data[data-th-up] > thead tr:last-child th { box-shadow: inset 0 -1px 0 var(--line), 0 6px 6px -6px rgba(0, 0, 0, 0.18); }
.row-low td:first-child { box-shadow: inset 3px 0 var(--warn); }
.row-neg td { color: var(--bad); }
.row-hidden td { color: var(--ink-3); }
.cell-sub { margin-top: 2px; font-size: var(--fs-sm); color: var(--ink-3); }

/* ---------- the stop list (iPad, iPhone, kitchen, back office) ---------- */
.stop-list { display: flex; flex-direction: column; }
.stop-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); padding-bottom: var(--sp-2); }
.stop-tools .search { flex: 1 1 220px; }
.stop-cat-h { padding: var(--sp-3) 0 var(--sp-1); }
.stop-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--sp-3); border-bottom: 1px solid var(--line); }
.stop-row { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; min-height: var(--h-md); padding: var(--sp-1) 0; cursor: pointer; }
.stop-row .grow { min-width: 0; }
.stop-item.is-stop .stop-row .grow { color: var(--bad); font-weight: var(--fw-semibold); }
.stop-row .switch input:checked + .switch-ui { background: var(--bad); }
.stop-limit-btn {
  position: relative; min-height: 32px; padding: 0 var(--sp-3); border: 0; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--ink-2); font-size: var(--fs-sm); font-weight: var(--fw-semibold); cursor: pointer;
}
/* (29 October: «Линии не должны задваиваться») a capsule of its own shade, no outline: the outline met the rows' lines
   above and below it; the finger's target stays 44px high */
.stop-limit-btn::after { content: ''; position: absolute; inset: -6px 0; }
.stop-limit-btn:hover, .stop-limit-btn.on { background: var(--accent-soft); color: var(--accent); }
.stop-limit { grid-column: 1 / -1; display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-1) 0 var(--sp-3); }
.stop-limit-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
/* «осталось 3» on a menu card */
.left-tag { color: var(--warn); font-weight: var(--fw-semibold); }
/* (server 0.103, Sales Force 2) a bonus dish: «+50» — the waiter's for a portion, in the amber of the achievements */
.bonus-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-size: 12px; font-weight: var(--fw-semibold); line-height: 18px; vertical-align: 1px; }

/* a tool in a top bar: the kitchen's summary and sound, the stop list on the iPad and the kitchen */
.tool-btn {
  display: inline-flex; align-items: center; gap: var(--sp-2); min-height: var(--h-md); padding: 0 var(--sp-3);
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: transparent; color: var(--ink-2);
  font-weight: var(--fw-semibold); white-space: nowrap; cursor: pointer;
}
.tool-btn.on { background: var(--surface-3); color: var(--ink); }
.stop-btn.has { border-color: var(--bad); color: var(--bad); }
.stop-btn .seg-badge { background: var(--bad); color: var(--bad-ink, #fff); }
.stop-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--sp-3); padding: var(--sp-1) 0; border-bottom: 1px solid var(--line); }
.stop-head-main { display: flex; justify-content: space-between; }
.stop-head-main > span:last-child { width: 44px; text-align: center; }
.stop-head > span:last-child { min-width: 72px; text-align: center; }
.stop-limit-btn { min-width: 72px; }

/* no connection: one bar at the top of every screen, above sheets, until a write or an update gets through */
.net-bar {
  position: fixed; top: max(var(--sp-2), env(safe-area-inset-top, 0px)); left: 50%; z-index: 95; display: flex; align-items: center; gap: var(--sp-2);
  max-width: calc(100vw - 32px); padding: var(--sp-2) var(--sp-4); border-radius: var(--r-pill);
  background: var(--bad); color: #fff; box-shadow: var(--shadow-2); font-size: var(--fs-sm); font-weight: var(--fw-semibold);
  transform: translateX(-50%);
}
.net-bar .spinner { width: 14px; height: 14px; border-color: rgb(255 255 255 / 0.4); border-top-color: #fff; }
/* app.ruvo.ac, in the top bar of the front: no line (and what waits on the device), sending, what did not go */
.line-chip {
  display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 44px; padding: 0 var(--sp-3); border: 0; border-radius: var(--r-pill);
  font: inherit; font-size: var(--fs-sm); font-weight: var(--fw-semibold); white-space: nowrap; cursor: pointer;
}
.line-off { background: var(--bad); color: #fff; }
.line-send { background: var(--surface-3); color: var(--ink-2); }
.line-send svg { animation: pulse 1s ease-in-out infinite; }
.line-fail { background: var(--warn-soft); color: var(--warn); }
.line-n { font-variant-numeric: tabular-nums; }
.line-words { display: none; }
@media (min-width: 1300px) { .line-words { display: inline; } }
.net-fails { display: flex; flex-direction: column; gap: var(--sp-3); }
.net-fail { display: flex; gap: var(--sp-3); }

/* ---------- a finger's 44 px (15 November, the brand book's robot) ----------
   On a touch screen the small keys reach out of their look to 44 px: a segment of a strip or of the kitchen's stations
   (32–40 tall), a link in a row («Подключить», «Во всех заведениях») — an invisible band over and under them; a field and
   a picker on a phone 44 tall. What one sees stays as it is. */
@media (pointer: coarse) {
  .seg-btn::after { content: ''; position: absolute; inset: min(0px, calc((100% - 44px) / 2)) 0; }
  .link-btn, .ig-row .ig-where { position: relative; }
  .link-btn::after, .ig-row .ig-where::after { content: ''; position: absolute; inset: min(0px, calc((100% - 44px) / 2)) 0; }
}
@media (pointer: coarse) and (max-width: 700px) {
  .front-look :is(.select, .cell-input) { min-height: 44px; }
}

/* a dish without a photo (ui/dish-art.jsx, 15 November: no drawn dishes): the chef's hat on a quiet tile, as on the
   restaurant's page of orders */
.dish-none-bg { fill: var(--surface-2); }
.dish-none-ic { fill: var(--ink-3); }

/* ---------- launcher ---------- */
.launcher { overflow: auto; }
.l-wrap { display: flex; flex-direction: column; gap: var(--sp-6); width: 100%; max-width: 1060px; margin: 0 auto; padding: var(--sp-6) var(--sp-5) var(--sp-8); }
.l-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: var(--h-md); }
.l-head-r { display: flex; align-items: center; gap: var(--sp-3); }
.l-title {
  max-width: 22ch; font-family: var(--font-brand); font-size: clamp(var(--fs-2xl), 4vw, var(--fs-3xl));
  font-weight: var(--fw-semibold); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance;
}
.l-title .info-btn { margin-left: var(--sp-1); vertical-align: 0.15em; }
/* two steps with the same head: a caption on the left, at most one action on the right, one 44px row */
.l-step { display: flex; flex-direction: column; gap: var(--sp-3); }
.l-step-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-4); min-height: var(--h-md); }
.l-step-head h2 { margin: 0; }
.l-locs { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
/* a bound device: its restaurant, a note and «Сменить ресторан» in one row */
.l-bound { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); min-height: var(--h-sm); }
.l-bound-loc {
  display: inline-flex; align-items: center; gap: var(--sp-2); min-height: var(--h-sm); padding: 0 var(--sp-4) 0 var(--sp-3);
  border-radius: var(--r-pill); background: var(--ink); color: var(--surface); font-size: var(--fs-sm); font-weight: var(--fw-semibold); white-space: nowrap;
}
.l-bound .muted { font-size: var(--fs-sm); }
.l-move { padding-block: var(--sp-1); }
/* a text-like button: its icon and words line up with the edge of the text, not of its padding */
.l-pair-btn { margin: 0 calc(-1 * var(--sp-4)); }
.l-pair { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-2); }
.l-pair input { width: 140px; font-size: var(--fs-lg); letter-spacing: 0.14em; font-variant-numeric: tabular-nums; }
.l-pair-err { flex-basis: 100%; color: var(--bad); font-size: var(--fs-sm); }
.l-demo { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }

/* five devices in one row; every card has the same rows: picture, who it is for, name, two-line note, link */
.roles { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: var(--sp-4); }
.role {
  display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; padding: var(--sp-4);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1);
  color: var(--ink); text-align: left; cursor: pointer; transition: transform 0.12s, border-color 0.12s;
}
.role:hover { border-color: var(--accent); transform: translateY(-2px); }
.role-glyph { display: flex; flex: none; align-items: flex-end; height: 84px; }
.role-text { display: flex; flex: 1; flex-direction: column; gap: var(--sp-1); min-width: 0; }
.role-for { color: var(--ink-3); font-size: var(--fs-xs); font-weight: var(--fw-semibold); line-height: 16px; letter-spacing: var(--track-caps); text-transform: uppercase; }
.role .role-title { overflow: hidden; line-height: 24px; white-space: nowrap; text-overflow: ellipsis; }
.role-desc { min-height: 60px; color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; text-wrap: pretty; }
.role-foot { display: flex; align-items: center; justify-content: space-between; color: var(--accent); }
.role-hint { color: var(--ink-3); font-size: var(--fs-sm); }
/* a note under the description: the demo's back office «za sada samo na ruskom» */
.role-note { color: var(--ink-3); font-size: var(--fs-xs); font-weight: var(--fw-semibold); line-height: 16px; }
/* a name too long for one line (the demo's «Устройство официанта») wraps; in the row of five every card keeps two
   lines for its name, so the descriptions start on one line */
.roles.long .role .role-title { white-space: normal; text-wrap: balance; }
@media (min-width: 1000px) { .roles.long .role .role-title { min-height: 48px; } }
/* narrower than five cards: one list, the picture on the left */
@media (max-width: 999px) {
  .roles { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
  .role { flex-direction: row; align-items: center; gap: var(--sp-4); padding: var(--sp-3) var(--sp-4); }
  .role:hover { transform: none; }
  .role-glyph { justify-content: center; width: 132px; height: 96px; align-items: center; }
  .role-desc { min-height: 0; }
  .role-hint { display: none; }
}
@media (max-width: 520px) {
  .role-glyph { width: 84px; }
  .role-glyph .glyph { transform: scale(0.7); }
}

/* device glyphs drawn in CSS */
.glyph { position: relative; display: block; padding: 6px; border: 2.5px solid var(--ink); background: var(--surface-2); }
.glyph-ui { display: block; width: 100%; height: 100%; border-radius: 3px; }
.g-ipad { width: 112px; height: 78px; border-radius: var(--r-md); }
.g-ipad .glyph-ui { background: linear-gradient(90deg, var(--surface-3) 0 62%, transparent 62% 66%, var(--accent-soft) 66%); }
.g-iphone { width: 42px; height: 80px; padding: 5px 4px; border-radius: var(--r-md); }
.g-iphone .glyph-ui { background: repeating-linear-gradient(180deg, var(--surface-3) 0 9px, transparent 9px 13px); }
.g-kds { width: 124px; height: 70px; border-radius: 6px; background: #161920; }
.g-kds .glyph-ui { background: linear-gradient(90deg, #5AC485 0 30%, transparent 30% 35%, #EFB146 35% 65%, transparent 65% 70%, #5AC485 70%); opacity: 0.85; }
.g-office { width: 116px; height: 70px; border-radius: 6px 6px 3px 3px; }
.g-office .glyph-ui { background: linear-gradient(90deg, var(--surface-3) 0 24%, transparent 24% 30%, var(--accent-soft) 30%); }
/* the guest kiosk: an upright tablet on a stand, a blue pill over photo cards */
/* (its stand stands on the same line as the other devices) */
.g-kiosk { width: 50px; height: 66px; margin-bottom: 14px; padding: 5px; border-radius: 7px; }
.g-kiosk .glyph-ui {
  background:
    linear-gradient(var(--accent) 0 0) 0 0 / 46% 6px no-repeat,
    linear-gradient(var(--surface-3) 0 0) 0 11px / 45% 40% no-repeat,
    linear-gradient(var(--surface-3) 0 0) 100% 11px / 45% 40% no-repeat,
    linear-gradient(var(--surface-3) 0 0) 0 100% / 45% 34% no-repeat,
    linear-gradient(var(--surface-3) 0 0) 100% 100% / 45% 34% no-repeat;
}
.g-kiosk::after { content: ''; position: absolute; bottom: -14px; left: 50%; width: 8px; height: 12px; margin-left: -4px; border-radius: 0 0 2px 2px; background: var(--ink); }
/* a device whose module is switched off */
.module-off {
  align-items: center; justify-content: center;
  padding: calc(var(--sp-6) + env(safe-area-inset-top, 0px)) calc(var(--sp-4) + env(safe-area-inset-right, 0px)) var(--sp-6) calc(var(--sp-4) + env(safe-area-inset-left, 0px));
}
.mo-box { display: flex; flex-direction: column; align-items: center; gap: var(--sp-4); max-width: 440px; text-align: center; }

/* ---------- the demo on the website (ruvo.ac/demo): its start page in the website's look — white and Apple's grey,
   the system's face (San Francisco on Apple's devices, Inter elsewhere), a thin frosted bar, large centred words, tiles
   with the devices drawn to their points (demo-art.jsx); the screens themselves keep the app's look ---------- */
.launcher.demo {
  --d-bg: #FFFFFF;
  --d-tile: #F5F5F7;
  --d-fill: #E8E8ED;
  --d-seg-on: #FFFFFF;
  --d-ink: #1D1D1F;
  --d-ink-2: #424245;
  --d-ink-3: #6E6E73;
  --d-line: #D2D2D7;
  --d-line-2: #BDBDC2;
  --d-link: #1E44B0;
  --d-danger: #C2412D;
  --d-nav-bg: rgb(255 255 255 / 0.78);
  --d-nav-line: rgb(0 0 0 / 0.1);
  /* the devices: graphite glass in a silver edge, an aluminium base and stand */
  --d-glass: #0C0C0E;
  --d-edge: #B8BAC0;
  --d-alu: #C3C5CB;
  --d-alu-2: #9C9EA5;
  --d-shadow: 0.16;
  --d-shadow-2: 0.1;
  /* (15 November, the owner: «Шрифт надо унифицировать везде») the demo's own page in the brand's face too */
  --d-font: var(--font-ui);
  --d-gutter: clamp(16px, 4.2vw, 44px);
  display: block;
  overflow: auto;
  background: var(--d-bg);
  color: var(--d-ink);
  font-family: var(--d-font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.012em;
  font-variant-numeric: normal;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .launcher.demo {
    --d-bg: #000000; --d-tile: #161617; --d-fill: #2C2C2E; --d-seg-on: #636366;
    --d-ink: #F5F5F7; --d-ink-2: #D2D2D7; --d-ink-3: #98989D; --d-line: #38383A; --d-line-2: #4A4A4D;
    --d-link: #81A8FF; --d-danger: #F17074; --d-nav-bg: rgb(22 22 23 / 0.78); --d-nav-line: rgb(255 255 255 / 0.12);
    --d-glass: #0A0A0B; --d-edge: #55565B; --d-alu: #4B4C51; --d-alu-2: #2F3034;
    --d-shadow: 0.62; --d-shadow-2: 0.5;
  }
}
:root[data-theme="dark"] .launcher.demo {
  --d-bg: #000000; --d-tile: #161617; --d-fill: #2C2C2E; --d-seg-on: #636366;
  --d-ink: #F5F5F7; --d-ink-2: #D2D2D7; --d-ink-3: #98989D; --d-line: #38383A; --d-line-2: #4A4A4D;
  --d-link: #81A8FF; --d-danger: #F17074; --d-nav-bg: rgb(22 22 23 / 0.78); --d-nav-line: rgb(255 255 255 / 0.12);
  --d-glass: #0A0A0B; --d-edge: #55565B; --d-alu: #4B4C51; --d-alu-2: #2F3034;
  --d-shadow: 0.62; --d-shadow-2: 0.5;
}
/* under the page (where a phone overscrolls) the same white or black */
body:has(.launcher.demo) { background: #FFFFFF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body:has(.launcher.demo) { background: #000000; } }
:root[data-theme="dark"] body:has(.launcher.demo) { background: #000000; }

.dl-in { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--d-gutter); }
.launcher.demo a { color: var(--d-link); text-decoration: none; }
.launcher.demo a:hover { text-decoration: underline; text-underline-offset: 0.16em; text-decoration-thickness: 1px; }
.launcher.demo :focus-visible { outline: 2px solid var(--d-link); outline-offset: 3px; }

/* (the website's demo: its frosted bar goes under the status bar itself — .dl-top) */
.app.launcher.demo { padding-top: 0; }
/* the bar: Apple's global navigation — thin, frosted, staying at the top */
.dl-top {
  position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px);
  background: var(--d-nav-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--d-nav-line);
}
.dl-top-in { display: flex; align-items: center; gap: 12px; height: 52px; }
.dl-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.dl-brand .wordmark { padding: 7px 10px 6px calc(10px + 0.08em); border-radius: 6px; font-size: 13px; }
.dl-brand .wordmark::after { inset: 2px; border-width: 1.2px; border-radius: 4.5px; }
.dl-brand-l { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.dl-top-r { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.launcher.demo .dl-back { display: inline-flex; align-items: center; gap: 3px; color: var(--d-ink); font-size: 13px; letter-spacing: -0.01em; white-space: nowrap; opacity: 0.86; }
.launcher.demo .dl-back:hover { opacity: 1; text-decoration: none; }
/* the language, as the website's: two letters in a pill */
.launcher.demo .lang { gap: 2px; padding: 2px; border: 0; border-radius: 999px; outline: 0; background: var(--d-fill); }
.launcher.demo .lang-btn {
  min-width: 34px; min-height: 26px; padding: 0 8px; border-radius: 999px;
  color: var(--d-ink-3); font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
}
.launcher.demo .lang-btn:hover { color: var(--d-ink); }
.launcher.demo .lang-btn.on { background: var(--d-seg-on); color: var(--d-ink); box-shadow: 0 1px 3px rgb(0 0 0 / 0.12); }
@media (max-width: 380px) { .dl-brand-l { display: none; } }

/* the first words: centred, large, the lead in grey */
.dl-hero { display: grid; justify-items: center; padding-block: clamp(44px, 6vw, 96px) clamp(40px, 5vw, 76px); text-align: center; }
.dl-eyebrow { color: var(--d-link); font-size: clamp(19px, 0.5vw + 16px, 21px); font-weight: 600; letter-spacing: -0.016em; }
.dl-title { margin-top: 10px; font-size: clamp(40px, 3.4vw + 20px, 72px); font-weight: 600; line-height: 1.05; letter-spacing: -0.032em; text-wrap: balance; }
.dl-lead { max-width: 40em; margin-top: 22px; color: var(--d-ink-3); font-size: clamp(17px, 0.5vw + 15px, 21px); line-height: 1.42; letter-spacing: -0.018em; text-wrap: pretty; }

/* the screens: tiles of Apple's grey — who it is for, the name, a note, «Otvori ›», the device under them */
.dl-group { padding-bottom: clamp(56px, 7vw, 104px); }
.dl-h2 { margin-bottom: clamp(20px, 2.2vw, 28px); font-size: clamp(28px, 1.4vw + 22px, 40px); font-weight: 600; line-height: 1.1; letter-spacing: -0.026em; text-wrap: balance; }
.dl-h2.dl-c { text-align: center; }
.dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.dl-tile {
  --art: 252px;
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  padding: clamp(26px, 2.6vw, 36px) clamp(22px, 2.4vw, 34px) clamp(22px, 2.4vw, 30px);
  border: 0; border-radius: 28px; background: var(--d-tile); color: var(--d-ink);
  font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer;
}
.dl-tile.wide { grid-column: span 2; }
.dl-tile.t-ipad, .dl-tile.t-iphone { --art: 378px; }
.dl-tile.t-guest, .dl-tile.t-board { --art: 346px; }
.dl-text { display: flex; flex-direction: column; align-items: flex-start; }
.dl-for { color: var(--d-ink-3); font-size: 14px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.dl-name { margin-top: 4px; font-size: clamp(24px, 0.7vw + 19px, 30px); font-weight: 600; line-height: 1.12; letter-spacing: -0.024em; text-wrap: balance; }
.dl-desc { max-width: 30em; margin-top: 8px; color: var(--d-ink-2); font-size: 17px; line-height: 1.42; text-wrap: pretty; }
.dl-note { margin-top: 6px; color: var(--d-ink-3); font-size: 14px; line-height: 1.35; }
.dl-go { display: inline-flex; align-items: center; gap: 1px; margin-top: 14px; color: var(--d-link); font-size: 17px; }
.dl-go .ic { width: 0.8em; height: 0.8em; margin-top: 1px; }
.dl-tile:hover .dl-go { text-decoration: underline; text-underline-offset: 0.16em; text-decoration-thickness: 1px; }
.dl-art { display: block; margin-top: auto; padding-top: clamp(26px, 3vw, 40px); }
.dla { display: block; width: 100%; height: var(--art); transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
@media (hover: hover) { .dl-tile:hover .dla { transform: translateY(-4px) scale(1.012); } }
.dl-tile:active .dla { transform: scale(0.99); }
@media (max-width: 1000px) {
  .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-tile.wide { grid-column: auto; }
  .dl-tile.t-ipad { grid-column: span 2; }
  .dl-tile { --art: 262px; }
  .dl-tile.t-ipad { --art: 378px; }
  .dl-tile.t-iphone, .dl-tile.t-guest { --art: 315px; }
  .dl-tile.t-board { --art: 315px; }
}
@media (max-width: 640px) {
  .dl-grid { grid-template-columns: minmax(0, 1fr); }
  .dl-tile.t-ipad { grid-column: auto; }
  .dl-tile, .dl-tile.t-ipad, .dl-tile.t-board { --art: 231px; }
  .dl-tile.t-iphone, .dl-tile.t-guest, .dl-tile.t-kiosk { --art: 305px; }
  .dl-tile { border-radius: 22px; }
}

/* the drawings: the app's screens with its words and data, in its colours (they follow the theme; the kiosk and the
   guest app are always light, the kitchen and the board dark, as in the app). The shadow is drawn in the picture. */
.dla .k-edge { fill: var(--d-edge); }
.dla .k-glass { fill: var(--d-glass); }
.dla .k-cam { fill: #1B2633; }
.dla .k-shadow { fill: #000000; opacity: var(--d-shadow); }
.dla .k-shadow-2 { fill: #000000; opacity: var(--d-shadow-2); }
.dla .k-stand, .dla .k-alu { fill: var(--d-alu); }
.dla .k-alu-2 { fill: var(--d-alu-2); }
.dla .k-bg { fill: var(--bg); }
.dla .k-sf { fill: var(--surface); }
.dla .k-s2 { fill: var(--surface-2); }
.dla .k-s3 { fill: var(--surface-3); }
.dla .k-ln { fill: var(--line); }
.dla .k-ink { fill: var(--ink); }
.dla .k-i2 { fill: var(--ink-2); }
.dla .k-t3, .dla .k-t3r { fill: var(--ink-3); }
.dla .k-inkf { fill: var(--ink); }
.dla .k-sff { fill: var(--surface); }
.dla .k-segon { fill: var(--seg-on, var(--surface)); }
.dla .k-dim { opacity: 0.55; }
.dla .k-ac { fill: var(--accent); }
.dla .k-aci { fill: var(--accent-ink); }
.dla .k-acs { fill: var(--accent-soft); }
.dla .k-ok { fill: var(--ok); }
.dla .k-oki { fill: var(--ok-ink); }
.dla .k-oks { fill: var(--ok-soft); }
.dla .k-wn { fill: var(--warn); }
.dla .k-wns { fill: var(--warn-soft); }
.dla .k-wnl { fill: none; stroke: var(--warn); stroke-width: 1.2; }
.dla .k-bad { fill: var(--bad); }
.dla .k-bads { fill: var(--bad-soft); }
.dla .k-c1 { fill: var(--s1); }
.dla .k-c2 { fill: var(--s2); }
.dla .k-c3 { fill: var(--s3); }
.dla .k-c2s { fill: var(--s2-soft); }
.dla .k-plate { fill: #1E44B0; }
.dla .k-rule { fill: none; stroke: rgb(255 255 255 / 0.92); stroke-width: 1.6; }
.dla .k-w { fill: #FFFFFF; }
.dla .k-w-15 { fill: rgb(255 255 255 / 0.16); }
.dla .k-w-86 { fill: rgb(255 255 255 / 0.86); }
.dla .k-o { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.dla .k-o1 { fill: none; stroke: var(--line-2); stroke-width: 1.2; }
.dla .k-dash1 { fill: none; stroke: var(--line-2); stroke-width: 1.2; stroke-dasharray: 3 2.5; }
.dla .k-dash { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 5 4; }
.dla .k-okl { fill: none; stroke: var(--ok); stroke-width: 2.5; }
.dla .k-okl-1 { fill: none; stroke: var(--ok); stroke-width: 1.5; opacity: 0.35; }
.dla .k-inkl { fill: none; stroke: var(--ink); stroke-width: 2; }
.dla .k-wifi { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.dla .k-bat { fill: none; stroke: var(--ink); stroke-width: 1.6; opacity: 0.5; }
.dla .k-gs0 { stop-color: var(--ok); stop-opacity: 0.08; }
.dla .k-gs1 { stop-color: var(--ok); stop-opacity: 0; }
.dla .k-fs0 { stop-color: var(--bg); stop-opacity: 0; }
.dla .k-fs1 { stop-color: var(--bg); stop-opacity: 1; }
.dla text { font-family: var(--font-ui); }
.dla .k-mono { font-family: var(--font-timer); }
.dla .k-plate-t { fill: #FFFFFF; font-family: var(--font-brand); font-weight: 700; }
.dla .k-time { fill: var(--ink); font-family: var(--d-font); font-size: 17px; font-weight: 600; letter-spacing: 0; }
/* the kitchen and the board are dark in both themes, as in the app */
.dla .k-dark {
  --bg: #0E1016; --surface: #161920; --surface-2: #1C1F27; --surface-3: #272B34;
  --ink: #ECEEF4; --ink-2: #B5BBC5; --ink-3: #969BA7; --line: #272B34; --line-2: #373C46;
  --accent: #81A8FF; --accent-ink: #0E1016; --accent-soft: #1E2F54; --ok: #5AC485; --ok-ink: #0E1016; --ok-soft: #083A20;
  --warn: #EFB146; --warn-soft: #442A00; --bad: #F17074; --bad-soft: #4E201E; --seg-on: #383D47;
  --s2: #0E9E9A; --s2-soft: #0F2C2B;
}
/* the kiosk and the guest app are light in both themes: their tokens, as 55-kiosk.css and 57-guest.css set them */
.dla .k-kiosk, .dla .k-guest {
  --bg: #EAEDF3; --surface: #FFFFFF; --surface-2: #F5F7FA; --surface-3: #E4E8EF;
  --ink: #131824; --ink-2: #49505E; --ink-3: #6B747B; --line: #D5D9E1; --line-2: #BFC4CF;
  --accent: #1E44B0; --accent-ink: #FFFFFF; --accent-soft: #D8E5FF; --ok: #007440; --ok-soft: #CBEFD6; --bad: #BE2E31;
  --card: #F7F8FB; --seg: #DEE1E9; --seg-on: #FFFFFF;
}
.dla .k-guest { --bg: #F0F2F6; --ink-3: #5D6370; --card: #FFFFFF; --seg: #E4E8EF; }
.dla .k-card { fill: var(--card); }
.dla .k-seg { fill: var(--seg); }
/* the guest app's plan of Belgrade, in guest-map's colours */
.dla .k-land { fill: #EEF1F6; }
.dla .k-park { fill: #CBEFD6; }
.dla .k-river { fill: none; stroke: #D8E5FF; stroke-linecap: round; }
.dla .k-bridge { stroke: #FFFFFF; stroke-width: 4; stroke-linecap: round; }
.dla .k-water { fill: #5C82DA; font-size: 11px; font-style: italic; font-weight: 500; }
.dla .k-cityl { fill: #ADB1B9; font-size: 10px; font-weight: 600; letter-spacing: 0.18em; }
.dla .k-pinl { fill: #FFFFFF; }
.dla .k-pin { fill: var(--accent); stroke: #FFFFFF; stroke-width: 3; }

/* the devices' window (launcher.jsx): the demo's front, kitchen, kiosk, waiter's iPhone or guest app in a frame — an
   iPad Pro 11″ lying down or standing up, or an iPhone 18 Pro Max, at its own size scaled to fit, graphite glass in a
   silver edge as the tiles draw them; over the page dimmed and blurred */
.launcher.demo.kp-open { overflow: hidden; }
.kp {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center;
  background: rgb(0 0 0 / 0.58); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
}
.kp-dev {
  display: grid; place-items: center; border-radius: calc(58px * var(--s)); background: var(--d-glass);
  box-shadow: 0 0 0 calc(2.5px * var(--s)) var(--d-edge), 0 28px 80px rgb(0 0 0 / 0.42);
}
.kp-screen { overflow: hidden; border-radius: calc(20px * var(--s)); background: #EAEDF3; }
.kp-view { overflow: hidden; }
.kp-screen iframe { display: block; border: 0; transform-origin: 0 0; background: #EAEDF3; }
/* the iPhone: its rounder body and screen, the status bar with the Dynamic Island over the app, the home indicator
   under it — both in the colours of the app's own top and foot */
.kp-dev.kp-phone { border-radius: calc(74px * var(--s)); box-shadow: 0 0 0 calc(3px * var(--s)) var(--d-edge), 0 28px 80px rgb(0 0 0 / 0.42); }
.kp-phone .kp-screen { display: flex; flex-direction: column; border-radius: calc(60px * var(--s)); background: var(--surface); }
.kp-phone .kp-screen iframe { background: transparent; }
.kp-bar { display: block; flex: none; width: 100%; height: auto; }
.kp-bar text { font-family: var(--d-font); letter-spacing: 0; }
.kp-foot { display: flex; flex: none; align-items: flex-end; justify-content: center; padding-bottom: calc(8px * var(--s)); }
.kp-foot span { width: calc(140px * var(--s)); height: calc(5px * var(--s)); border-radius: 999px; }
.kp-x {
  position: fixed; top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; display: grid; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgb(255 255 255 / 0.16); color: #FFFFFF; cursor: pointer;
}
.kp-x:hover { background: rgb(255 255 255 / 0.26); }
.launcher.demo .kp-x:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .kp { animation: kp-fade 0.22s ease-out; }
  .kp-dev { animation: kp-rise 0.32s cubic-bezier(0.2, 0.8, 0.2, 1); }
}
@keyframes kp-fade { from { opacity: 0; } }
@keyframes kp-rise { from { opacity: 0; transform: translateY(18px) scale(0.97); } }

/* how to try: a path of six steps — a large thin numeral, a line on to the next (as the website's «Kako počinje») */
.dl-try { padding-block: clamp(64px, 8vw, 120px); background: var(--d-tile); }
.dl-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 0; margin: clamp(28px, 3.4vw, 48px) 0 0; padding: 0; list-style: none; }
.dl-step { display: grid; align-content: start; gap: 14px; min-width: 0; padding-right: clamp(16px, 1.8vw, 26px); }
.dl-n { display: flex; align-items: center; gap: 16px; color: var(--d-link); font-size: clamp(48px, 2.4vw + 26px, 64px); font-weight: 200; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.dl-n::after { content: ''; flex: 1; height: 1px; background: var(--d-line-2); }
.dl-step:nth-child(3n) .dl-n::after { background: linear-gradient(90deg, var(--d-line-2), transparent); }
.dl-step p { color: var(--d-ink-2); font-size: 17px; line-height: 1.47; text-wrap: pretty; }
.dl-mail { max-width: 40em; margin: clamp(44px, 4.4vw, 64px) auto 0; color: var(--d-ink-3); text-align: center; text-wrap: balance; }
@media (max-width: 1000px) {
  .dl-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-step:nth-child(3n) .dl-n::after { background: var(--d-line-2); }
  .dl-step:nth-child(2n) .dl-n::after { background: linear-gradient(90deg, var(--d-line-2), transparent); }
}
@media (max-width: 560px) {
  .dl-steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .dl-step { grid-template-columns: auto minmax(0, 1fr); column-gap: 20px; padding: 0; }
  .dl-n { flex-direction: column; align-self: stretch; gap: 12px; font-size: 44px; }
  .dl-step .dl-n::after, .dl-step:nth-child(3n) .dl-n::after, .dl-step:nth-child(2n) .dl-n::after { width: 1px; height: auto; background: var(--d-line-2); }
  .dl-step:last-child .dl-n::after { background: linear-gradient(180deg, var(--d-line-2), transparent); }
  .dl-step p { padding: 4px 0 28px; }
}

/* the foot: Apple's — small, on the grey; what stays where, and «Počni ispočetka» */
.dl-foot { padding-block: 0 calc(28px + env(safe-area-inset-bottom, 0px)); background: var(--d-tile); color: var(--d-ink-3); font-size: 12px; line-height: 1.5; }
.dl-foot-in { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 22px; }
.dl-foot-in::before { content: ''; position: absolute; top: 0; left: var(--d-gutter); right: var(--d-gutter); height: 1px; background: var(--d-line); }
.dl-foot-in p { font-size: 14px; }
.dl-reset {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px;
  background: var(--d-fill); color: var(--d-ink); font: inherit; font-size: 14px; letter-spacing: -0.01em; cursor: pointer;
}
.dl-reset:hover { background: var(--d-line); }
.dl-reset.sure { background: var(--d-danger); color: #FFFFFF; }
.dl-foot-base { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 4px; }
.dl-foot-base .wordmark { font-size: 11px; }


/* ---------- app.ruvo.ac: connecting a device, the back office's sign-in, «Это устройство» (ui/server-start.jsx) ---------- */
.srv-wrap { max-width: 980px; }
.srv-narrow { max-width: 620px; }
.srv-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); align-items: stretch; }
/* (29 October, the owner on the iPad: «блоки разного размера») side by side the two cards are one height, and their
   parts stand on the same lines — the icon, the title, the words, the field with its button */
@supports (grid-template-rows: subgrid) {
  .srv-cards { grid-template-rows: repeat(4, auto); }
  .srv-cards > .srv-card { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: var(--sp-3); align-content: start; }
  .srv-cards > .srv-card > .srv-ic { justify-self: start; }
}
@media (max-width: 760px) {
  .srv-cards { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .srv-cards > .srv-card { display: flex; grid-row: auto; }
}
.srv-card {
  display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; padding: var(--sp-5);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1);
}
.srv-ic {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent);
}
.srv-card-t { margin: 0; font-size: var(--fs-lg); font-weight: var(--fw-semibold); line-height: var(--lh-tight); }
.srv-card-p { margin: 0; color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; text-wrap: pretty; }
.srv-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-2) var(--sp-3); }
.srv-form .field { min-width: 0; }
/* (the address and «Получить код» on one line in a card half an iPad wide) */
.srv-form .field.grow { flex: 1 1 180px; }
.srv-form input { width: 100%; }
.srv-code { width: 150px !important; font-size: var(--fs-lg); letter-spacing: 0.14em; font-variant-numeric: tabular-nums; }
.srv-err { flex-basis: 100%; color: var(--bad); font-size: var(--fs-sm); }
.srv-sent { flex-basis: 100%; margin: 0; color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; overflow-wrap: anywhere; }
.srv-pick { flex-direction: column; align-items: stretch; }
.srv-more { display: flex; flex: 1 1 100%; flex-wrap: wrap; gap: var(--sp-1) var(--sp-5); }
.srv-more .btn { padding: 0; }
.srv-pick .srv-sent .spinner { display: inline-block; width: 14px; height: 14px; margin-right: var(--sp-1); border-width: 2px; vertical-align: -2px; }
.srv-foot { margin: 0; }
.srv-foot a { color: var(--accent); font-weight: var(--fw-semibold); text-decoration: none; }
.srv-foot a:hover { text-decoration: underline; }
/* «Деньги» at app.ruvo.ac/eje (0.13): what it is, then the sign-in; opening a firm — its name and PIB on one line */
.srv-money { display: flex; flex-direction: column; gap: var(--sp-4); }
.srv-money .l-title { margin: 0; }
.srv-lead { margin: 0; color: var(--ink-2); font-size: var(--fs-md); line-height: 1.5; text-wrap: pretty; }
.srv-create .field.srv-pib { flex: 0 1 160px; }

/* the back office's own PIN screen */
.srv-office { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); text-align: center; }
.srv-office .muted { margin: 0; }
.srv-office .srv-card { width: 100%; text-align: left; }
.srv-pin { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); }
.srv-pin .field-label { margin: 0; }
.srv-office-foot { justify-content: center; }
/* (13 November, 13:18, the owner of the back office's sign-in on the Mac: «Верхнюю строчку давай отцентруем») the
   sign-in's column is centred, so is its top line: the wordmark and the name over the middle of it; the language, where
   the screen has it («Деньги»), stays at the right edge */
.srv-wrap:has(> .srv-office) > .l-head { position: relative; justify-content: center; }
@media (min-width: 701px) {
  .srv-wrap:has(> .srv-office) > .l-head > .l-head-r { position: absolute; top: 50%; right: 0; transform: translateY(-50%); }
}

/* «Это устройство» */
.srv-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--sp-2) var(--sp-5); margin: 0; }
.srv-dl dt { color: var(--ink-3); font-size: var(--fs-sm); }
.srv-dl dd { margin: 0; overflow-wrap: anywhere; }
.srv-line { display: inline-flex; align-items: center; gap: var(--sp-2); }
.srv-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.srv-line-live .srv-dot { background: var(--ok); }
.srv-line-offline .srv-dot, .srv-line-off .srv-dot { background: var(--bad); }
.srv-now { display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-4); border-radius: var(--r-md); background: var(--surface-2); }
.srv-now p { margin: 0; }
.srv-ask { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-4); border: 1px solid var(--bad-soft); border-radius: var(--r-md); background: var(--bad-soft); }
.srv-ask p { margin: 0; }
.srv-msg .spinner { width: 28px; height: 28px; border-width: 3px; }

/* one quiet line over the back office's pages that still keep their data in this browser (ServerStrip) */
/* (above the page, with the page's side padding; the page keeps its own top) */
.srv-strip {
  display: flex; align-items: flex-start; gap: var(--sp-2); margin: var(--sp-4) var(--sp-6) 0; padding: 6px var(--sp-3);
  border-radius: var(--r-md); background: var(--surface-2); color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px;
}
.srv-strip svg { flex: none; margin-top: 2px; color: var(--ink-3); }
@media (max-width: 640px) { .srv-strip { margin: var(--sp-3) var(--sp-4) 0; } }

/* ---------- top bar (iPad and kitchen) ---------- */
.topbar, .kds-top {
  display: flex; flex: none; align-items: center; gap: var(--sp-3); min-height: 60px; padding: var(--sp-2) var(--sp-4);
  border-bottom: 1px solid var(--line); background: var(--surface);
}
.tb-left { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
.tb-tabs { margin: 0 auto; }
.tb-right { display: flex; align-items: center; gap: var(--sp-2); margin-left: auto; }
.op-chip {
  display: inline-flex; align-items: center; gap: var(--sp-2); min-height: var(--h-sm); padding: var(--sp-1) var(--sp-3) var(--sp-1) var(--sp-1);
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface-2); font-weight: var(--fw-semibold); cursor: pointer;
}
.alert-bar {
  display: flex; flex: none; align-items: center; justify-content: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-4);
  border: 0; background: var(--warn-soft); color: var(--warn); font-weight: var(--fw-semibold); cursor: pointer;
  animation: drop 0.2s ease-out;
}

/* ---------- iPad: hall ---------- */
.ipad-main { flex: 1; display: flex; min-height: 0; }
.hall { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 320px; min-height: 0; }
.hall-left { display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; min-height: 0; padding: var(--sp-4); overflow: auto; }
.hall-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.legend { display: flex; flex-wrap: wrap; gap: var(--sp-4); font-size: var(--fs-sm); color: var(--ink-2); }
/* legend keys are «legend-i», not «lg»: a bare «lg» also matched the large waiter avatars and drew this swatch on them */
.legend-i { display: inline-flex; align-items: center; gap: var(--sp-2); }
.legend-i::before { content: ''; width: 12px; height: 12px; border: 1.5px dashed var(--line-2); border-radius: 4px; background: var(--surface); }
.legend-i-open::before { border: 1.5px solid var(--ink); }
.legend-i-ready::before { border: 1.5px solid var(--ok); background: var(--ok-soft); }
.legend-i-bill::before { border: 1.5px solid var(--bill); background: var(--bill-soft); }
.legend-cook { display: inline-flex; align-items: center; gap: var(--sp-2); }
.legend-cook .b-cook { padding: 1px 4px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--warn); }
.plan-wrap { flex: 1; display: flex; align-items: flex-start; justify-content: center; min-height: 0; }
.plan {
  position: relative; width: 100%; max-width: 1100px; aspect-ratio: 16 / 10;
  border: 1px solid var(--line); border-radius: var(--r-xl); background-color: var(--surface-2);
  /* the dots: one in each cell of the plan's grid (40 × 25 — catalog.js GRID_X, GRID_Y), so the tables stand on them */
  background-image: radial-gradient(circle, var(--line-2) 1px, transparent 1.4px); background-size: 2.5% 4%;
}
.decor {
  position: absolute; display: grid; place-items: center; color: var(--ink-3);
  font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: 0.14em; text-transform: uppercase;
}
.decor-bar { border: 1px solid var(--line-2); border-radius: var(--r-md); background: repeating-linear-gradient(135deg, var(--surface-3) 0 7px, transparent 7px 14px); }
.decor-door { border-bottom: 4px solid var(--ink-3); border-radius: 2px; }
.decor-rail { place-items: start center; padding-top: 6px; border-top: 2px dashed var(--line-2); }
/* tables scale with the plan, so their labels follow the plan width between two steps of the ramp */
.tbl {
  position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: var(--sp-1); overflow: visible; border: 1.5px dashed var(--line-2); border-radius: var(--r-lg);
  background: var(--surface); color: var(--ink-2); cursor: pointer;
  transition: transform 0.08s, box-shadow 0.12s, border-color 0.12s;
}
.tbl:hover { border-color: var(--accent); }
.tbl:active { transform: scale(0.97); }
.tbl-round { border-radius: 50%; }
.tbl-open { border: 1.5px solid var(--ink); color: var(--ink); box-shadow: var(--shadow-1); }
.tbl-ready { border: 2px solid var(--ok); background: var(--ok-soft); color: var(--ink); }
.tbl-bill { border: 2px solid var(--bill); background: var(--bill-soft); color: var(--ink); }
.tbl-n { font-size: clamp(var(--fs-lg), 2.1vw, var(--fs-2xl)); line-height: 1; }
.tbl-meta { display: inline-flex; align-items: center; gap: 2px; font-size: clamp(var(--fs-xs), 1.05vw, var(--fs-sm)); color: var(--ink-2); white-space: nowrap; }
.tbl-sum { font-size: clamp(var(--fs-xs), 1.05vw, var(--fs-sm)); font-weight: var(--fw-bold); }
.tbl-badge {
  position: absolute; top: -10px; right: -8px; padding: 2px var(--sp-2); border-radius: var(--r-pill); box-shadow: var(--shadow-1);
  font-size: var(--fs-xs); font-weight: var(--fw-semibold); white-space: nowrap;
}
.b-ready { background: var(--ok); color: var(--ok-ink); }
.b-bill { background: var(--bill); color: var(--bill-ink); }
/* portions still in the kitchen: the opposite corner from «готово» and «счёт» */
.b-cook { display: inline-flex; align-items: center; gap: 3px; background: var(--warn-soft); color: var(--warn); box-shadow: inset 0 0 0 1px var(--warn), var(--shadow-1); }
.tbl-badge.b-cook { right: auto; left: -8px; }
/* guests at the table ordered in the guest app (paid, no bill open): the bottom corner, until their dishes are on the table */
.b-app { display: inline-flex; align-items: center; gap: 3px; background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), var(--shadow-1); }
.tbl-badge.b-app { top: auto; bottom: -10px; }
.demo-hint {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4); border-radius: var(--r-lg); background: var(--accent-soft); color: var(--ink);
}

.hall-rail { display: flex; flex-direction: column; gap: var(--sp-3); min-height: 0; padding: var(--sp-4); overflow: auto; border-left: 1px solid var(--line); background: var(--surface); }
.rail-card { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.rail-head { display: flex; align-items: center; gap: var(--sp-2); padding: 0; border: 0; background: none; text-align: left; }
/* a head that opens its screen («Доставка»): a 44px target, drawn at the height of the other heads */
.rail-head.as-link { min-height: var(--h-md); margin-block: -10px; cursor: pointer; }
.rail-count {
  min-width: 24px; margin-left: auto; padding: 0 var(--sp-2); border-radius: var(--r-pill); background: var(--surface-3); color: var(--ink-2);
  font-size: var(--fs-xs); font-weight: var(--fw-semibold); line-height: 24px; text-align: center;
}
.rail-row {
  display: flex; flex-direction: column; gap: 2px; padding: var(--sp-2) var(--sp-3);
  border: 0; border-radius: var(--r-md); background: var(--surface-2); color: var(--ink); font-size: var(--fs-sm); text-align: left; cursor: pointer;
}
.rail-row-top { display: flex; align-items: center; gap: var(--sp-2); }
.rail-row-top .timer { margin-left: auto; }
.rail-row-sub { color: var(--ink-2); }
.rail-row.d-new { background: var(--warn-soft); }
.rail-empty { padding: var(--sp-1) 0; font-size: var(--fs-sm); color: var(--ink-3); }
.rail-ready { display: flex; flex-direction: column; gap: var(--sp-2); }
.rail-ready-main {
  display: flex; align-items: flex-start; gap: var(--sp-3); min-width: 0; padding: var(--sp-2) var(--sp-3);
  border: 0; border-radius: var(--r-md); background: var(--ok-soft); color: var(--ink); font-size: var(--fs-sm); text-align: left; cursor: pointer;
}
.display.small { font-size: var(--fs-lg); }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.kpi { display: flex; flex-direction: column; gap: 2px; }
.kpi-v { font-size: var(--fs-xl); }
.kpi-l { font-size: var(--fs-sm); color: var(--ink-3); }

/* ---------- iPad: order — one grid of rows ----------
   (29 October, the owner: «нам критически важно поработать над сеткой экрана — горизонтальные линии не должны быть
   чуть на разных уровнях») The order screen stands on rows of one height, --row: its height cut into whole rows of at
   least 104px (ui/row-grid.js sets it in whole pixels). The dishes are tiles one row high; the bill's head is one row;
   a delivery's number and courier as many rows as they need; the bill's foot as many rows as it needs, down to the
   bottom. So every horizontal line — between rows of dishes, under the bill's head, under a delivery's fields, above
   the foot — falls on the same heights in both columns: a block's line is its last pixel, as a tile's is. In the bill
   only these lines: its dishes are set apart by room, not by rules. */
.order-screen { --row: 104px; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 400px; min-height: 0; }
.os-menu { display: flex; min-width: 0; min-height: 0; }
.menu-grid { flex: 1; display: grid; grid-template-columns: 196px minmax(0, 1fr); min-width: 0; min-height: 0; }
/* the categories: the search and each category half a row, one under another, no room between them — the chosen one's
   edges stand where the tiles' lines are, or halfway between (a scrolled list stops on whole halves) */
.menu-cats {
  display: flex; flex-direction: column; gap: 0; min-width: 0; padding: 0 var(--sp-3); overflow: auto; scroll-snap-type: y mandatory;
  border-right: 1px solid var(--line); background: var(--surface);
}
.menu-cats > .search { margin-block: calc((var(--row, 104px) / 2 - var(--h-md)) / 2); scroll-snap-align: start; }
.cat-list { display: flex; flex-direction: column; gap: 0; }
.cat-btn {
  flex: none; height: calc(var(--row, 104px) / 2); min-height: 0; padding: 0 var(--sp-3); border: 0; border-radius: var(--r-md);
  background: transparent; color: var(--ink-2); font-weight: var(--fw-semibold); text-align: left; cursor: pointer; scroll-snap-align: start;
}
.cat-btn:hover { background: var(--surface-2); }
.cat-btn.on { background: var(--accent); color: var(--accent-ink); }
/* (29 October, the owner on the iPad: «карточки блюд не должны иметь места между друг другом») the dishes are tiles
   side by side — no room between them, a hairline between neighbours (the right and the bottom edge of each; the
   categories' column and the bar above give the left and the top); a touch lights the tile up */
/* (a scrolled list stops on whole rows: the tiles' lines come back onto the grid) */
.item-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); grid-auto-rows: var(--row, 104px); align-content: start;
  gap: 0; min-width: 0; padding: 0; overflow: auto; scroll-snap-type: y mandatory;
}
.item-card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: var(--sp-2);
  min-height: 0; padding: var(--sp-3); overflow: hidden; scroll-snap-align: start;
  border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0;
  background: var(--surface); color: var(--ink); text-align: left; cursor: pointer;
}
.item-card:hover:not(:disabled):not(.stopped) { background: var(--surface-2); }
.item-card:active:not(:disabled):not(.stopped) { background: var(--accent-soft); }
.item-card:focus-visible { outline-offset: -2px; }
/* long press opens the stop list: no text selection or callout on touch */
.item-card, .row-item { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.item-card.stopped { background: var(--surface-2); box-shadow: none; opacity: 0.55; cursor: default; }
/* a tile is one row: the name in up to three lines, the price on one. (2 November, «не растягивай блоки»: five to a
   row, a tile 162 wide — the name has the tile's whole width; the room for the count at the corner only when the dish
   has one: «Tost sa avokadom i poširanim jajetom» whole in three lines, not «i poširanim…») */
.item-name {
  display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow-wrap: anywhere;
  font-weight: var(--fw-semibold); line-height: var(--lh-tight);
  /* (room under the third line for its letters' tails — «jajetom», «сыром» had theirs cut — the box as tall as before) */
  padding-bottom: 2px; margin-bottom: -2px;
}
.item-card:has(> .item-count) > .item-name { padding-right: var(--sp-6); }
.item-foot { display: flex; flex-wrap: nowrap; align-items: baseline; gap: 0 var(--sp-1); min-width: 0; overflow: hidden; font-size: var(--fs-sm); color: var(--ink-2); white-space: nowrap; }
/* (a narrow tile: «· варианты» ends with «…», the price stays whole) */
.item-foot > :not(:first-child) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.item-count {
  position: absolute; top: var(--sp-2); right: var(--sp-2); display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px;
  border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font-size: var(--fs-xs); font-weight: var(--fw-bold);
}
.stop-tag { color: var(--bad); font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: var(--track-caps); text-transform: uppercase; }

/* (29 October, the owner: «Линии не должны задваиваться», «разные блоки могут быть разных оттенков») the bill has no
   line of its own on the left: beside the dishes the tiles' last column draws the one line, below them the bill's white
   against the grey is the edge — its line and the tiles' were two pixels side by side */
.os-ticket { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--surface); }
/* the bill's head: one row of the grid — the way back, the title and what the bill is on the left, the guests (or the
   platform) on the right; ui/row-grid.js gives it its height */
.os-head {
  display: grid; flex: none; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto; align-content: center;
  gap: 2px var(--sp-3); height: var(--row, 104px); padding: 0 var(--sp-4); overflow: hidden; border-bottom: 1px solid var(--line);
}
.back-btn {
  align-self: flex-start; display: inline-flex; align-items: center; gap: var(--sp-1); min-height: var(--h-md); margin: calc(var(--sp-2) * -1) 0; padding: 0 var(--sp-3) 0 0;
  border: 0; background: none; color: var(--accent); font-weight: var(--fw-semibold); cursor: pointer;
}
/* in the head the way back is a line of text; its finger target stays 44px high (::after) */
.os-head > .back-btn { position: relative; grid-column: 1; justify-self: start; min-height: 22px; margin: 0; line-height: 22px; }
.os-head > .back-btn::after { content: ''; position: absolute; inset: -11px -8px; }
.os-title-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.os-head .os-title-row { display: contents; }
.os-head .os-title-row > :first-child { grid-column: 1; min-width: 0; }
.os-head .os-title-row > :last-child:not(:first-child) { grid-column: 2; grid-row: 1 / 3; align-self: center; }
/* what the bill is — the hall, the waiter, the time — under both, the whole width: one line on an iPad either way */
.os-head .os-meta { grid-column: 1 / -1; }
.os-guests { display: flex; align-items: center; gap: var(--sp-2); color: var(--ink-2); }
.os-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-2); font-size: var(--fs-sm); color: var(--ink-2); }
.os-course { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-4); border-bottom: 1px solid var(--line); }
/* a Wolt or Glovo order copied by hand: the number, the courier's minutes, the way of paying — one under another */
/* (its fields one to a row of the grid, each in the middle of its row: the field's box is never a few pixels off a
   tile's line) */
.os-course.os-delivery { display: grid; flex: none; grid-auto-rows: var(--row, 104px); align-items: center; gap: 0; padding-block: 0; overflow: hidden; }
/* (its line under it on the first pixel of the row below, where the tiles draw theirs: across the screen one line) */
.os-ticket > .os-delivery { border-bottom: 0; box-shadow: 0 1px 0 0 var(--line-2); }
.os-delivery .field { flex: none; width: 100%; }
.os-delivery .seg { width: 100%; }
.os-delivery .seg-btn { flex: 1; }
.os-lines { flex: 1; min-height: 0; padding: var(--sp-1) var(--sp-2); overflow: auto; }
.os-guest { padding: var(--sp-2) var(--sp-2) var(--sp-1); }
/* the foot: whole rows down to the bottom (ui/row-grid.js); its line in its own first pixel — where the tiles' lines are
   (3 November: each tile its line at its top) —, what it holds at the bottom, by the thumb. Its last row is two halves: the buttons fill one half
   exactly, so their top and bottom edges stand on the grid too (a button's edge a few pixels off a tile's line read as
   «чуть на разных уровнях»); under the last row, the home indicator's band (--row-left). A sent bill: the discounts and
   the total in the rows above (at their bottom), «Счёт» and «Закрыть стол» in the upper half, the guest, the discount,
   a move in the lower; a new one and a delivery: the total in the upper half, «Отправить» in the lower — one row. */
.os-foot {
  display: flex; flex: none; flex-direction: column; justify-content: flex-end; padding: 0 var(--sp-4);
  overflow: hidden; border-top: 0; box-shadow: inset 0 1px 0 0 var(--line-2);
}
.os-sum { display: flex; flex: 1 1 auto; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 0; padding: var(--sp-1) 0 var(--sp-2); }
.os-sum:empty { display: none; }
.os-act {
  display: grid; flex: none; grid-template-rows: repeat(2, calc(var(--row, 104px) / 2)); align-content: start;
  height: calc(var(--row, 104px) + var(--row-left, 0px));
}
.os-act > .os-total { align-self: center; }
/* (a button lit by a touch fills its half too: no edge of it a few pixels off a line) */
.os-act > .os-actions .btn, .os-act > .os-more .btn { min-height: 0; height: 100%; }
/* the guest, the discount, a move: one line in the half, whatever the bill's width (a second line had no room) */
.os-act > .os-more { flex-wrap: nowrap; gap: 0; }
.os-total { display: flex; align-items: baseline; justify-content: space-between; font-weight: var(--fw-semibold); }
.os-paid { font-size: var(--fs-sm); color: var(--ink-3); }
.os-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.os-actions .wide { grid-column: 1 / -1; }
.os-closed { padding: var(--sp-2) var(--sp-3); border-radius: var(--r-md); background: var(--ok-soft); color: var(--ok); font-weight: var(--fw-semibold); }
/* the guest, the discount, a move: one line, whatever the bill's width */
.os-more { display: flex; flex-wrap: nowrap; justify-content: space-between; margin: 0 calc(var(--sp-2) * -1); }
.os-more .btn { flex: 0 1 auto; min-width: 0; padding-inline: var(--sp-2); }

.ticket-lines { display: flex; flex-direction: column; }
.course-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); padding: var(--sp-3) var(--sp-2) var(--sp-1); }
.course-head.is-held .course-note { color: var(--ink-2); }
/* «Вызвать»: a button among the caption letters, written like any other button */
.course-fire { text-transform: none; letter-spacing: normal; }
.line {
  display: flex; align-items: flex-start; gap: var(--sp-3); width: 100%; padding: var(--sp-3) var(--sp-2);
  border: 0; border-radius: var(--r-md); background: transparent; color: var(--ink); text-align: left; cursor: pointer;
}
.line:disabled { cursor: default; }
button.line:hover:not(:disabled) { background: var(--surface-2); }
.line-qty { min-width: 32px; font-weight: var(--fw-bold); }
.line-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.line-name { font-weight: var(--fw-semibold); }
.line-mods { font-size: var(--fs-sm); color: var(--ink-2); }
.line-comment { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--warn); }
.line-comment.as-link { padding: 0; border: 0; background: none; text-align: left; }
.line-side { display: flex; flex: none; flex-direction: column; align-items: flex-end; gap: var(--sp-1); }
.line-actions { display: flex; gap: 2px; }
.line-void { opacity: 0.55; }
.line-void .line-name { text-decoration: line-through; }
.line-draft { flex-direction: column; align-items: stretch; gap: var(--sp-2); margin: var(--sp-1) 0; padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-3); border-bottom: 0; border-radius: var(--r-md); background: var(--accent-soft); cursor: default; }
.ld-top { display: flex; align-items: flex-start; gap: var(--sp-3); padding-top: var(--sp-1); }
.ld-top .line-sum { padding-right: var(--sp-2); }
.ld-ctl { display: flex; align-items: center; gap: var(--sp-2); }
.is-paid { opacity: 0.6; }

/* ---------- modifiers ---------- */
.mod-group { display: flex; flex-direction: column; gap: var(--sp-2); }
.mod-opts { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.mod-opt {
  display: inline-flex; align-items: center; gap: var(--sp-2); min-height: var(--h-md); padding: 0 var(--sp-4) 0 var(--sp-3);
  border: 1.5px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); color: var(--ink);
  font-weight: var(--fw-medium); cursor: pointer;
}
.mod-opt.on { border-color: var(--accent); background: var(--accent-soft); }
.mod-mark {
  display: grid; place-items: center; flex: none; width: 20px; height: 20px; border: 1.5px solid var(--line-2); border-radius: 6px;
  background: var(--surface); color: var(--accent-ink);
}
.mod-opt.radio .mod-mark { border-radius: 50%; }
.mod-opt.on .mod-mark, .pay-line.on .mod-mark { border-color: var(--accent); background: var(--accent); }
.mod-price { font-size: var(--fs-sm); color: var(--ink-2); }
.mod-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-4); }
.mod-row .grow { flex: 1; }
/* (13 November, the kitchen's check, 2: «Да») «Аллергия у гостя» under the comment: an option's tile with the sign at
   its end, red when it is on; a dish's note that is an allergy red on the waiter's lines too, as on the kitchen's */
.mod-opt.mod-alg > svg { flex: none; margin-left: auto; color: var(--bad); }
.mod-opt.mod-alg.on { border-color: var(--bad); background: var(--bad-soft); }
.mod-opt.mod-alg.on .mod-mark { border-color: var(--bad); background: var(--bad); color: var(--bad-ink, #fff); }
.line-comment.line-alg, .line-alg { color: var(--bad); font-weight: var(--fw-semibold); }

/* ---------- closing a table ---------- */
.pay-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--sp-5); }
.pay-items, .pay-methods { display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; }
.pay-list { display: flex; flex-direction: column; max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.pay-line {
  display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3);
  border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer;
}
.pay-line:last-child { border-bottom: 0; }
/* a row of the list: the line to pick, and for 2× and more the button that splits off one portion */
.pay-row { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.pay-row:last-child { border-bottom: 0; }
.pay-row .pay-line { flex: 1; min-width: 0; border-bottom: 0; }
.pay-split { margin-right: var(--sp-1); }
.pay-line:disabled { cursor: default; }
.pay-total { display: flex; align-items: baseline; justify-content: space-between; font-weight: var(--fw-semibold); }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.method {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); min-height: 76px; padding: var(--sp-3);
  border: 1.5px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); color: var(--ink);
  font-weight: var(--fw-semibold); text-align: left; cursor: pointer;
}
.method.on { border-color: var(--accent); background: var(--accent-soft); }
/* locked while the terminal or the QR waits: the chosen way stays clear, the others fade */
.method:disabled { cursor: default; }
.method:disabled:not(.on) { opacity: 0.5; }
.reason-list { display: flex; flex-direction: column; gap: var(--sp-2); }
/* (29 October, the owner: «при выборе кол-ва гостей тоже не должно быть расстояния между плашками») the numbers are
   one block of tiles, a hairline between neighbours, as the dishes */
.guest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; overflow: hidden; border: 1px solid var(--line-2); border-radius: var(--r-md); }
.guest-btn {
  aspect-ratio: 1.25; border: 0; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); border-radius: 0;
  background: var(--surface); color: var(--ink); font-size: var(--fs-2xl); cursor: pointer;
}
.guest-btn:nth-child(4n) { border-right: 0; }
.guest-btn:nth-last-child(-n + 4) { border-bottom: 0; }
.guest-btn:hover { background: var(--surface-2); }
.guest-btn:active { background: var(--accent-soft); }
.guest-btn:focus-visible { outline-offset: -2px; }
.staff-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.staff-btn {
  display: flex; align-items: center; gap: var(--sp-3); min-height: var(--h-lg); padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink);
  font-weight: var(--fw-semibold); text-align: left; cursor: pointer;
}
.staff-btn > span:nth-child(2) { flex: 1; }
.staff-btn.on { border-color: var(--accent); background: var(--accent-soft); }
.move-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: var(--sp-2); }
.move-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: var(--sp-3) var(--sp-2);
  border: 1.5px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); color: var(--ink); cursor: pointer;
}
.move-btn .display { font-size: var(--fs-xl); }
.move-btn:disabled { opacity: 0.32; cursor: default; }
/* (0.77) a table with a bill of its own: a tap merges the two bills (asked first); its line says so in the accent */
.move-btn.busy .small { color: var(--accent); }

/* ---------- the bill shown to the guest ---------- */
.bill {
  align-self: center; display: flex; flex-direction: column; gap: var(--sp-3); width: min(380px, 100%); padding: var(--sp-4);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1);
}
.bill-head { display: flex; align-items: center; gap: var(--sp-3); padding-bottom: var(--sp-3); border-bottom: 1px dashed var(--line-2); }
.bill-lines { display: flex; flex-direction: column; gap: var(--sp-2); padding: 0; list-style: none; }
.bill-lines li { display: flex; align-items: baseline; gap: var(--sp-3); }
.bill-q { min-width: 28px; font-weight: var(--fw-bold); }
.bill-n { flex: 1; min-width: 0; }
.bill-total { display: flex; align-items: baseline; justify-content: space-between; padding-top: var(--sp-3); border-top: 1px dashed var(--line-2); font-weight: var(--fw-semibold); }

/* ---------- iPad: delivery ---------- */
.dboard { flex: 1; display: flex; flex-direction: column; gap: var(--sp-4); min-height: 0; padding: var(--sp-4); overflow: auto; }
.dboard-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.dboard-sim { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
/* the columns side by side are one height, whatever is in each */
.dcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: stretch; gap: var(--sp-3); }
.dcol { display: flex; flex-direction: column; gap: var(--sp-2); min-height: 140px; padding: var(--sp-2); border-radius: var(--r-lg); background: var(--bg-2); }
.dcol-head { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-1); }
.dcard {
  display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3);
  border: 1px solid var(--line); border-left: 4px solid var(--wolt); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-1);
}
.dcard-glovo { border-left-color: var(--glovo); }
/* (server 0.75) a site order: the guest, how and when, the address, how it is paid, the courier */
.dcard-site { border-left-color: var(--accent); }
.site-how { display: flex; align-items: center; gap: var(--sp-2); }
.site-where, .site-note { color: var(--ink-2); }
.di-fee { font-size: var(--fs-sm); }
.site-pay { display: flex; align-items: center; gap: var(--sp-2); min-height: 40px; padding: 0 var(--sp-3); background: var(--bg-2); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.site-pay .money { font-weight: var(--fw-bold); }
.site-pay-ok { background: var(--ok-soft); color: var(--ok); }
.site-pay-warn { background: var(--warn-soft); color: var(--warn); }
.site-courier { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
.site-cancel .site-own { display: flex; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); }
.site-cancel .site-own input { flex: 1; min-width: 0; min-height: 56px; padding: 0 var(--sp-3); border: 1px solid var(--line-2); border-radius: 0; background: var(--surface); color: var(--ink); font: inherit; font-size: var(--fs-md); }
.site-cancel .site-own .btn { min-height: 56px; }
.ds-new { box-shadow: 0 0 0 2px var(--warn), var(--shadow-1); }
.ds-rejected { opacity: 0.6; }
.dcard-top { display: flex; align-items: center; gap: var(--sp-2); }
.dcard-items { display: flex; flex-direction: column; gap: 2px; padding: 0; list-style: none; font-size: var(--fs-sm); }
.di-ready { color: var(--ok); }
.di-served { color: var(--ink-2); }
.dcard-sum { font-weight: var(--fw-bold); }
.dcard-act { display: flex; flex-direction: column; gap: var(--sp-2); }
.countdown { display: flex; align-items: center; gap: var(--sp-1); font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--warn); }
.progress { height: 6px; overflow: hidden; border-radius: var(--r-pill); background: var(--surface-3); }
.progress span { display: block; height: 100%; border-radius: var(--r-pill); background: var(--ok); transition: width 0.3s; }
.log-toggle { min-height: var(--h-md); margin-block: -12px; padding: 0; border: 0; background: none; color: var(--ink-3); font-size: var(--fs-sm); text-align: left; cursor: pointer; }
.dlog { display: flex; flex-direction: column; gap: 2px; padding-left: var(--sp-5); font-size: var(--fs-sm); color: var(--ink-2); }

/* ---------- iPad: closed tables ---------- */
.checks { flex: 1; display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-4); overflow: auto; }
.checks-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.checks-sum { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); font-weight: var(--fw-semibold); }
/* the sums by way of payment: columns by their number (70-office.css, .kpi-row); the sums stand on one line at the
   bottom of their row, a name of two lines or not */
.reconcile-row { display: grid; grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); grid-auto-rows: 1fr; gap: var(--sp-2); }
.reconcile-row:has(> :last-child:nth-child(3)) { --cols: 3; }
.reconcile-row:has(> :last-child:nth-child(6)) { --cols: 6; }
.rec-cell { display: flex; flex-direction: column; justify-content: space-between; gap: 2px; padding: var(--sp-2) var(--sp-3); border-radius: var(--r-md); background: var(--surface-2); }
.rec-cell .muted { font-size: var(--fs-sm); }
.rec-cell .strong { font-size: var(--fs-lg); }

/* kiosk orders in the iPad rail: the number, what is in it, unpaid / cooking / ready */
.rail-kiosk { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.rail-kiosk.unpaid { border-color: var(--warn); box-shadow: inset 3px 0 0 var(--warn); }
.rail-kiosk.ready { border-color: var(--ok); box-shadow: inset 3px 0 0 var(--ok); }
.rk-top { display: flex; align-items: flex-start; gap: var(--sp-3); }
.rk-n { flex: none; min-width: 44px; font-size: var(--fs-2xl); line-height: 1; }
.rk-what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rk-items { font-size: var(--fs-sm); }
.rk-sub { color: var(--ink-3); font-size: var(--fs-sm); }
.rk-state { font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.rail-kiosk.unpaid .rk-state { color: var(--warn); }
.rail-kiosk.ready .rk-state { color: var(--ok); }

/* ---------- «Изменить зал»: the plan editor ---------- */
.hall-head-r { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); }
.he-halls, .he-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.plan-edit { outline: 2px dashed var(--accent); outline-offset: -1px; }
.plan-edit .tbl-edit, .plan-edit .decor-edit { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.plan-edit .tbl-edit:active, .plan-edit .decor-edit:active { cursor: grabbing; transform: none; }
.tbl-edit { border-style: solid; }
.tbl-edit.sel, .decor-edit.sel { z-index: 2; border: 2px solid var(--accent); }
.tbl-edit:focus-visible, .decor-edit:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* a table with an open check: it can move, but not go */
.tbl-has-check::after { content: ''; position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.tbl-round.tbl-has-check::after { top: 14%; right: 14%; }
.decor-edit { border: 1.5px dashed var(--line-2); border-radius: var(--r-md); }
.decor-label { border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); }
.rs-handle { position: absolute; right: -11px; bottom: -11px; width: 22px; height: 22px; cursor: nwse-resize; touch-action: none; }
.rs-handle::after { content: ''; position: absolute; inset: 4px; border: 2px solid var(--surface); border-radius: 50%; background: var(--accent); }
.plan-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: var(--sp-4); text-align: center; pointer-events: none; }
.he-panel .field input { width: 100%; }
.he-add, .he-row, .he-size { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.he-add > .btn { flex: 1 1 0; }
.he-sel { gap: var(--sp-3); }
.he-del { align-self: flex-start; }
.he-del:not(:disabled) { color: var(--bad); }
.he-err { color: var(--bad); font-size: var(--fs-sm); }
/* a name in both languages: the screen's language first */
.he-names { display: flex; flex-direction: column; gap: var(--sp-2); }
.he-name { position: relative; display: block; }
.he-name input { width: 100%; padding-left: 44px; }
.he-lang { position: absolute; top: 50%; left: var(--sp-3); transform: translateY(-50%); color: var(--ink-3); font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: var(--track-caps); pointer-events: none; }
/* the shape choice: three equal parts across the panel, so it never runs out of it */
.he-shape .seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
.he-shape .seg-btn { min-width: 0; padding-inline: var(--sp-1); white-space: normal; text-align: center; }

/* the course of a new dish, on its line: first by default, a tap moves it on */
.course-chip {
  display: inline-flex; align-items: center; min-height: var(--h-md); padding: 0 var(--sp-4);
  border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--surface); color: var(--ink-2);
  font-size: var(--fs-sm); font-weight: var(--fw-semibold); cursor: pointer;
}
.course-chip:hover { border-color: var(--accent); color: var(--accent); }
.course-chip.c2, .course-chip.c3 { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }

/* «Вернуть стол»: a free table when the old one is taken; returned payments in the closed list */
.move-btn.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent); }
.reopen { display: flex; flex-direction: column; gap: var(--sp-3); }
.row-back td { color: var(--ink-3); }
.row-back .st { margin-left: var(--sp-1); }

/* ---------- cash: the change calculator ---------- */
.os-course { flex-wrap: wrap; align-items: flex-end; }
.cash-calc { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); outline: 0; }
.cash-top { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.cash-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: var(--sp-2) var(--sp-3); border-radius: var(--r-md); background: var(--surface); }
.cash-val { font-size: var(--fs-2xl); font-weight: var(--fw-bold); line-height: 1.15; font-variant-numeric: tabular-nums; }
.cash-change.ok { background: var(--ok-soft); }
.cash-change.ok .cash-val { color: var(--ok); }
.cash-change.short { background: var(--bad-soft); }
.cash-change.short .cash-val, .cash-change.short .field-label { color: var(--bad); }
.cash-quick { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.cash-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); }
.cash-key {
  display: grid; place-items: center; min-height: var(--h-md); border: 1px solid var(--line-2); border-radius: var(--r-md);
  background: var(--surface); color: var(--ink); font-size: var(--fs-lg); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; cursor: pointer;
}
.cash-key:active { background: var(--surface-3); }
.rec-groups { margin-top: var(--sp-2); padding-top: var(--sp-2); border-top: 1px dashed var(--line-2); }
.rec-groups .rec-cell { background: transparent; border: 1px solid var(--line); }

/* ---------- shifts: start and end with a PIN ---------- */
.shift-btn .seg-badge { background: var(--ok); color: var(--ok-ink, #fff); }
.shift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--sp-2); }
.shift-person {
  display: flex; align-items: center; gap: var(--sp-3); min-height: 72px; padding: var(--sp-3);
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink); text-align: left; cursor: pointer;
}
.shift-person:hover { border-color: var(--line-2); background: var(--surface-2); }
.shift-person.on { border-color: var(--ok); }
.shift-person.on .avatar { background: var(--ok-soft); color: var(--ok); }
.shift-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.staff-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* ---------- payment by the IPS QR code ---------- */
.qr { display: block; flex: none; max-width: 100%; height: auto; border-radius: var(--r-sm, 6px); }
.ips-panel { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: var(--sp-4); padding: var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); }
.ips-qr { padding: var(--sp-2); border-radius: var(--r-md); background: #fff; line-height: 0; }
.ips-side { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); min-width: 0; }
.ips-wait { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--accent); font-weight: var(--fw-semibold); }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; animation: pulse 1.2s ease-in-out infinite; }
.prebill-ips { display: flex; flex-direction: column; gap: var(--sp-2); align-self: center; width: min(520px, 100%); }

/* ---------- the card terminal ---------- */
.term-hint { display: flex; align-items: center; gap: var(--sp-2); }
.term-panel { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); }
.term-panel.declined, .term-panel.offline { border-color: var(--bad); background: var(--bad-soft); }
.term-panel.ok { border-color: var(--ok); background: var(--ok-soft); }
.term-row { display: flex; align-items: center; gap: var(--sp-2); }
.term-demo { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.term-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.spinner { flex: none; width: 18px; height: 18px; border: 2px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* a payment that did not go through: what happened, what the bank already took, and the way out */
.pay-fail { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-4); padding: var(--sp-3) var(--sp-4); border: 1px solid var(--bad); border-radius: var(--r-md); background: var(--bad-soft); color: var(--ink); font-size: var(--fs-sm); }
.pay-fail-act { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.pay-free { padding: var(--sp-3) 0; font-size: var(--fs-sm); line-height: var(--lh-loose); }
.pay-note { margin-bottom: var(--sp-3); padding: var(--sp-2) var(--sp-3); border-radius: var(--r-md); background: var(--warn-soft); color: var(--ink); font-size: var(--fs-sm); }
/* «Принять оплату» over «Отменить», each the card's width: the words of neither are cut */
.rk-act { display: flex; flex-direction: column; gap: var(--sp-1); }
/* what is in an order, one dish to a line (item-lines.jsx) */
.item-lines { display: flex; flex-direction: column; gap: 2px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.item-more { color: var(--ink-3); }

/* ---------- «Гость 1, Гость 2…» inside a table (the owner, 9 November) ----------
   The guests over the bill, kept in view while it scrolls (01:17, the owner: «сделай гостей без закруглений - в нашем
   стиле»): keys as the categories' — the screen's shade, square, a line between them and under them, 16 semibold grey,
   the lit one the accent's key (where new dishes go); by guest, each key the guest's name over what they still have to
   pay. «−» and «+» squares at the strip's end, always in view — how many sit at the table is changed only here; the
   guests scroll under the strip when more than fit. Below, the bill in folders — a guest's name and sum over their
   dishes; «Общее» for the table's. */
.seat-bar {
  position: sticky; top: calc(var(--sp-1) * -1); z-index: 2; display: flex; align-items: stretch; flex: none;
  height: var(--seat-h, 52px); margin: calc(var(--sp-1) * -1) calc(var(--sp-2) * -1) 0; padding: 0;
  background: var(--bg); box-shadow: inset 0 -1px 0 0 var(--line-2);
}
/* three guests to the strip's width (one or two share it), the rest past its edge: it goes by whole keys, its end
   fading while more lie past it — as the categories' strip */
.seat-keys {
  display: flex; flex: 1 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.seat-keys::-webkit-scrollbar { display: none; }
.seat-keys[data-more] { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); }
.seat-key {
  display: flex; flex: 1 0 calc(100% / 3); flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: 0; height: 100%; min-height: 0; margin: 0; padding: 0 var(--sp-2); border: 0; border-radius: 0; scroll-snap-align: start;
  background: var(--bg); color: var(--ink-2); font: inherit; font-size: var(--fs-md); font-weight: var(--fw-semibold);
  line-height: 1.15; white-space: nowrap; cursor: pointer; touch-action: manipulation;
  box-shadow: inset 1px 0 0 0 var(--line-2), inset 0 -1px 0 0 var(--line-2);
}
.seat-key:first-child { box-shadow: inset 0 -1px 0 0 var(--line-2); }
.seat-key:active:not(:disabled) { background: var(--surface-3); }
.seat-key.on, .seat-key.on:active { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.seat-key:disabled { cursor: default; }
.by-seat .seat-key-name { font-size: var(--fs-sm); }
.seat-key-sum { color: var(--ink-2); font-size: var(--fs-xs); font-weight: var(--fw-regular); }
.seat-key.on .seat-key-sum { color: var(--accent-ink); }
.seat-steps { display: flex; flex: none; }
.seat-step {
  display: grid; place-items: center; width: var(--seat-h, 52px); height: 100%; min-height: 0; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: var(--bg); color: var(--ink); cursor: pointer; touch-action: manipulation;
  box-shadow: inset 1px 0 0 0 var(--line-2), inset 0 -1px 0 0 var(--line-2);
}
.seat-step:active:not(:disabled) { background: var(--surface-3); }
.seat-step:disabled { color: var(--ink-3); cursor: default; }
.seat-group { margin-top: var(--sp-2); }
.seat-head {
  display: flex; align-items: baseline; gap: var(--sp-2); width: 100%; padding: var(--sp-3) var(--sp-2) var(--sp-2);
  border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer;
}
.seat-head:disabled { cursor: default; }
.seat-name { font-weight: var(--fw-bold); }
/* (no pill: the words in the accent, as the lit key over them) */
.seat-here { color: var(--accent); font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.seat-sum { margin-left: auto; font-weight: var(--fw-semibold); }
.seat-group.on .seat-head { border-bottom-color: var(--accent); }
.seat-empty { padding: var(--sp-2) var(--sp-2) var(--sp-3); color: var(--ink-3); font-size: var(--fs-sm); }
.line-tag { margin-right: var(--sp-2); color: var(--ink-2); font-weight: var(--fw-semibold); }
.seat-chip { color: var(--ink); }
.seat-chip.s-on { border-color: var(--accent); color: var(--accent); }
.seat-move { display: flex; flex-direction: column; gap: var(--sp-2); padding-bottom: var(--sp-2); }
.seat-move-keys { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.seat-move-keys .btn { flex: 1 1 30%; }
.pay-seat-name { display: block; font-weight: var(--fw-semibold); }
.pay-seat-items { display: block; margin-top: 2px; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.35; }
.pay-seat .pay-line { align-items: flex-start; }
.bill-lines .bill-seat { margin-top: var(--sp-2); padding-top: var(--sp-2); border-top: 1px dashed var(--line-2); font-weight: var(--fw-semibold); }
.bill-lines .bill-seat:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---------- loyalty at the table: the guest's card, discount rows, the discount picker, the PIN pad ---------- */
.guest-chip {
  align-self: flex-start; display: inline-flex; align-items: center; gap: var(--sp-2); max-width: 100%; min-height: var(--h-sm);
  padding: 0 var(--sp-3); border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink);
  font-size: var(--fs-sm); cursor: pointer;
}
.guest-chip .ic { flex: none; color: var(--s3); }
.guest-chip-name { overflow: hidden; font-weight: var(--fw-semibold); white-space: nowrap; text-overflow: ellipsis; }
.guest-chip-lvl { flex: none; color: var(--ink-2); }
/* the guest has coupons to use (coupons.js) */
.guest-chip-cp { display: inline-flex; flex: none; align-items: center; gap: 3px; padding: 1px 7px; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font-size: var(--fs-xs); font-weight: var(--fw-bold); }
.guest-chip .guest-chip-cp .ic { color: inherit; }
.lvl-tag {
  display: inline-flex; align-items: center; padding: 2px var(--sp-2); border-radius: var(--r-pill);
  background: var(--s3-soft); color: var(--ink); font-size: var(--fs-xs); font-weight: var(--fw-semibold); white-space: nowrap;
}

.disc-rows { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-sm); }
.disc-row { display: flex; align-items: center; gap: var(--sp-2); min-height: 28px; }
.disc-row .ic { flex: none; color: var(--ok); }
.disc-row.muted { color: var(--ink-3); }
.disc-amt { color: var(--ok); font-weight: var(--fw-semibold); }
/* the cross that removes a discount takes a whole finger: 44 px, so a row with it is 44 px tall */
.disc-row .icon-btn.sm { width: var(--h-md); height: var(--h-md); margin-right: calc(var(--sp-3) * -1); }

.guest-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-md); }
.guest-row {
  display: flex; align-items: center; gap: var(--sp-3); min-height: var(--h-lg); padding: var(--sp-2) var(--sp-3);
  border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer;
}
.guest-row:last-child { border-bottom: 0; }
.guest-row:hover:not(:disabled) { background: var(--surface-2); }
.guest-row.on { background: var(--accent-soft); }
.guest-row-main { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.guest-row-side { display: flex; flex: none; flex-direction: column; align-items: flex-end; gap: 2px; }
.guest-card { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); background: var(--surface-2); }
.guest-card-top { display: flex; align-items: center; gap: var(--sp-3); }
.guest-card-top .ic { flex: none; color: var(--s3); }
.guest-card-stats { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-6); }
.guest-card-stats > div { display: flex; flex-direction: column; gap: 2px; }
.guest-cps { display: flex; flex-direction: column; gap: 4px; padding-top: var(--sp-2); border-top: 1px solid var(--line); }
.guest-cp { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); }
.guest-cp .ic { flex: none; color: var(--accent); }
.check-row.consent { border: 1px solid var(--line); border-radius: var(--r-md); }

.disc-group { display: flex; flex-direction: column; gap: var(--sp-1); }
.disc-line { display: flex; align-items: center; gap: var(--sp-2); min-height: var(--h-sm); }
.disc-line.auto .ic { flex: none; color: var(--ink-3); }
.disc-line.coupon { padding: var(--sp-1) var(--sp-1) var(--sp-1) var(--sp-3); border-radius: var(--r-md); background: var(--accent-soft); }
.disc-line.coupon .ic { flex: none; color: var(--accent); }
.disc-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--sp-2); }
.disc-choice {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); min-height: 64px; padding: var(--sp-3);
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); color: var(--ink); text-align: left; cursor: pointer;
}
.disc-choice:hover { border-color: var(--accent); background: var(--accent-soft); }
.disc-choice-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.disc-choice .st { flex: none; }

.pin { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); padding: var(--sp-2) 0; outline: 0; }
.pin-dots { display: flex; gap: var(--sp-3); }
.pin-dot { width: 14px; height: 14px; border: 2px solid var(--line-2); border-radius: 50%; }
.pin-dot.on { border-color: var(--accent); background: var(--accent); }
.pin-dots.bad .pin-dot { border-color: var(--bad); }
.pin-msg { min-height: 20px; font-size: var(--fs-sm); text-align: center; }
.pin-grid { display: grid; grid-template-columns: repeat(3, 72px); gap: var(--sp-2); }
.pin-key {
  display: grid; place-items: center; height: var(--h-lg); border: 1px solid var(--line-2); border-radius: var(--r-md);
  background: var(--surface); color: var(--ink); font-size: var(--fs-xl); font-weight: var(--fw-semibold); cursor: pointer;
}
.pin-key:active { background: var(--surface-3); }

.pay-sub { display: flex; justify-content: space-between; color: var(--ink-2); font-size: var(--fs-sm); }
.pay-line s { margin-right: var(--sp-1); }
.pay-points { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3); border-radius: var(--r-md); background: var(--s3-soft); }
/* the guest confirms spending points: the code from an SMS or their card */
.pts-confirm { display: flex; flex-direction: column; gap: var(--sp-2); padding-top: var(--sp-2); border-top: 1px dashed var(--line-2); }
.pts-confirm > .btn { align-self: flex-start; }
.field input.pts-code { width: 7.5em; font-size: var(--fs-xl); letter-spacing: 0.3em; text-align: center; }
.field input.bad { border-color: var(--bad); }
.pts-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--sp-1) var(--sp-3); }
.pts-demo { color: var(--ink-3); }
.pts-link { min-height: var(--h-md); padding: 0; border: 0; background: none; color: var(--accent); font-weight: var(--fw-semibold); cursor: pointer; }
.pts-link:disabled { color: var(--ink-3); cursor: default; }
.pts-card-row { display: flex; gap: var(--sp-2); }
.pts-card-row input { flex: 1; }
.pts-ok { display: flex; align-items: center; gap: var(--sp-1); color: var(--ok); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.bill-disc { padding-top: var(--sp-2); border-top: 1px dashed var(--line-2); font-size: var(--fs-sm); }
.bill-row { display: flex; justify-content: space-between; gap: var(--sp-3); }
.bill-guest { display: flex; align-items: center; gap: var(--sp-2); padding-top: var(--sp-2); border-top: 1px dashed var(--line-2); color: var(--ink-2); }
.bill-guest .ic { flex: none; color: var(--s3); }
.os-more { flex-wrap: wrap; gap: 0 var(--sp-1); }
/* guest, discount, move: full 44 px to tap, narrow sides so the three stay on one line */
.os-more .btn { gap: var(--sp-1); padding-inline: var(--sp-2); }
.ph-body > .guest-chip { margin: var(--sp-1) var(--sp-1) 0; }

/* ---------- tips (ui/tip-parts.jsx): the pay sheet, the bill, the iPad's closed list, «Сводка», the waiter's phone ---------- */

/* the choice on the pay sheet: five tiles in a row, as tall as a finger needs; a percentage shows what it gives.
   «Без чаевых» and «Своя сумма» take the width of their words (one line: «Bez napojnice» keeps its no-break space),
   the three percentages share the rest; in a narrow column (a portrait iPad) «Своя сумма» goes to a line of its own
   rather than squeezing the percentages under a finger's width */
.tip-pick { display: flex; flex-direction: column; gap: var(--sp-2); }
.tip-opts { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.tip-opt:first-child, .tip-opt:last-child { flex: 1 1 auto; padding: var(--sp-1) var(--sp-3); white-space: nowrap; }
.tip-opt {
  display: flex; flex: 1 1 56px; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 56px; min-height: 56px;
  padding: var(--sp-1) var(--sp-2); border: 1.5px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); color: var(--ink);
  font-size: var(--fs-sm); font-weight: var(--fw-semibold); line-height: var(--lh-tight); text-align: center; cursor: pointer;
}
.tip-opt .tip-o { text-wrap: balance; }
.tip-opt .tip-v { color: var(--ink-2); font-size: var(--fs-xs); font-weight: var(--fw-medium); font-variant-numeric: tabular-nums; }
.tip-opt.on { border-color: var(--accent); background: var(--accent-soft); }
.tip-opt.on .tip-v { color: var(--ink); }
.tip-opt:disabled { cursor: default; }
.tip-opt:disabled:not(.on) { opacity: 0.5; }
.tip-own input { font-variant-numeric: tabular-nums; }
.tip-who { line-height: var(--lh-base); }

/* under «К оплате»: the tip, then what the guest pays in all (by card: the one amount for the terminal) */
.pay-tipline { color: var(--ok); }
.pay-charge {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3);
  padding-top: var(--sp-2); border-top: 1px dashed var(--line-2); font-weight: var(--fw-semibold);
}
.pay-charge .money { font-size: var(--fs-lg); font-variant-numeric: tabular-nums; }
/* «Сдачу — в чаевые» under the change calculator's amounts (the iPad's pay sheet draws it as a row: 88-ipad-look.css) */
.cash-keep { display: flex; align-items: center; justify-content: center; gap: var(--sp-1); min-height: 44px; border: 1.5px dashed var(--line-2); border-radius: var(--r-md); background: var(--surface); color: var(--ok); font-weight: var(--fw-semibold); cursor: pointer; }

/* the bill: the tip beside the payment, in the colour of money received */
.bill-tip { color: var(--ok); }

/* the closed list: what in a total came as tips, and the day's tips by person. With the tip line the name takes the
   free space, so the sums and their tip lines stand level at the bottom, a name of two lines or not */
.rec-tip { color: var(--ink-2); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.rec-cell:has(> .rec-tip) { justify-content: flex-end; }
.rec-cell:has(> .rec-tip) > :first-child { flex: 1; }
.tips-today { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-2); padding-top: var(--sp-2); border-top: 1px dashed var(--line-2); }
.tips-today-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.tips-who { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.tip-chip {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-1); padding: var(--sp-1) var(--sp-3);
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); font-size: var(--fs-sm); line-height: var(--lh-tight);
}
.tip-chip.warn { border-color: var(--warn); background: var(--warn-soft); }
.row-tip { color: var(--ink-2); }

/* «Сводка»: the period's tips under the ways of paying — apart from sales */
.sum-tips { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-1) var(--sp-3); margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px dashed var(--line-2); }
.sum-tips-l { font-weight: var(--fw-semibold); }
.sum-tips-v { font-size: var(--fs-lg); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }

/* «Смены и зарплата»: the tips column stands apart from the pay */
.sh-pay .c-tips { border-left: 1px dashed var(--line-2); }
.sh-tips-sub { display: block; color: var(--ink-3); font-size: var(--fs-xs); font-weight: var(--fw-regular); white-space: nowrap; }
.sh-unassigned { padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--line); color: var(--ink-2); font-size: var(--fs-sm); }

/* the waiter's phone: «Мои чаевые сегодня» */
.my-tips { display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.my-tips-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.my-tips-v { display: flex; align-items: baseline; gap: 2px; }
.my-tips-v .display { font-size: var(--fs-2xl); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
.my-tips-sub { font-variant-numeric: tabular-nums; }

/* ---------- who is at the screen: the lock of the iPad and the iPhone, confirmations by a personal PIN ---------- */
/* the lock covers the screen as it was (a sheet, an order with new dishes) and keeps it for whoever logs in */
.lock {
  position: fixed; inset: 0; z-index: 85; display: flex; align-items: flex-start; justify-content: center;
  padding: max(var(--sp-6), env(safe-area-inset-top, 0px)) var(--sp-4) max(var(--sp-6), env(safe-area-inset-bottom, 0px));
  overflow: auto; background: var(--bg);
}
.lock-box { display: flex; flex-direction: column; align-items: center; gap: var(--sp-4); width: 100%; max-width: 380px; margin: auto; text-align: center; }
.lock-titles { display: flex; flex-direction: column; align-items: center; gap: var(--sp-1); }
.lock-titles .screen-title { margin: 0; }
.lock-person { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-2); font-size: var(--fs-lg); }
.lock-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); }
/* on the phone the lock lives inside the phone frame */
.lock-compact { position: absolute; z-index: 45; }
.lock .pin-key { width: 76px; height: 64px; font-size: var(--fs-xl); }
.lock .pin-grid { grid-template-columns: repeat(3, 76px); }
/* The waiter's iPhone (29 October, the owner: «Кнопки при входе слишком маленькие — может сделаем их на всю ширину?»;
   then, 20:19: «кривовато выглядит, нужно, чтобы все было аккуратно с логикой отступов между текстом», «лого можно
   сделать больше»; 20:21: «нижняя линия у блока 7 отсутствует — а должна быть», «другого сотрудника сделать иконкой и
   переместить под цифру 7», «весь блок сдвинуть до края экрана»). Two blocks:
   — above, in the middle of what the keys leave: the RUVO plate, large; the person (when the phone remembers who it
     was); «Введите свой PIN» and under it the restaurant's name in the same letters (20:48: «Фразу "действия в
     заказе…" убираем, оставляем только название заведения шрифтом, как "Введите свой PIN"»); the dots; the line for
     a wrong PIN. One rhythm of 8: 32 between the parts, 24 under the person, 8 inside a part; 24 at the sides;
   — below, from edge to edge and down to the screen's very edge: the keys (their lines: 86-tiles.css) — under 7 the
     eye that shows the PIN or hides it (20:58; «Другой сотрудник» there before: the phone shows no one now — «Давай
     всегда оставим такой вход визуально» — and any PIN of the restaurant opens it): the block is whole, a line under
     7 —; every row one
     height, the block standing on the screen's very edge (20:29: «все кнопки должны быть одинаковой высоты… но
     все-равно начинай снизу»): the home indicator lies over the last row's lower part, its figures well above it.
   Three styles of letters and no more (20:31: «Шрифты еще раз проверь — их не может быть больше 3х на экране»): the
   figures, 28 semibold; the person's name, «Введите свой PIN» and the restaurant, 22 semibold (the avatar's letter
   too); a wrong PIN, 14 regular. The RUVO plate is the logo, a picture of its own. The screen's shade goes up under
   the status bar; its content starts below it. */
.lock-compact { --key-h: clamp(56px, 9vh, 76px); align-items: stretch; padding: calc(var(--sp-4) + env(safe-area-inset-top, 0px)) 0 0; }
.lock-compact .lock-box { max-width: none; min-height: 100%; margin: 0; gap: 0; }
.lock-compact .lock-box > .wordmark {
  margin: auto 0 var(--sp-8); padding: 12px 18px 10px calc(18px + 0.08em); border-radius: 12px; font-size: 26px;
}
.lock-compact .lock-box > .wordmark::after { inset: 3px; border-width: 2px; border-radius: 9px; }
.lock-compact .lock-titles { gap: var(--sp-2); width: 100%; padding-inline: var(--sp-6); }
.lock-compact .lock-person { gap: var(--sp-2); margin-bottom: var(--sp-6); font-size: var(--fs-xl); line-height: var(--lh-tight); }
.lock-compact .lock-person .strong { font-weight: var(--fw-semibold); }
.lock-compact .lock-person .avatar { width: 48px; height: 48px; font-size: var(--fs-xl); font-weight: var(--fw-semibold); }
.lock-compact .lock-titles .screen-title { font-size: var(--fs-xl); font-weight: var(--fw-semibold); }
.lock-compact .lock-loc { margin: 0; color: var(--ink-2); font-size: var(--fs-xl); font-weight: var(--fw-semibold); line-height: var(--lh-tight); }
.lock-compact .lock-box > p, .lock-compact .demo-pins { margin-top: var(--sp-4); padding-inline: var(--sp-6); }
.lock-compact .lock-box > p b, .lock-compact .demo-pins b { font: inherit; } /* (the prototype's demo PINs: no fourth style) */
.lock-compact .pin { display: contents; }
.lock-compact .pin-dots { margin-top: var(--sp-8); }
.lock-compact .pin-msg { margin: var(--sp-4) 0 auto; padding-inline: var(--sp-6); font-size: var(--fs-sm); font-weight: var(--fw-regular); }
.lock-compact .pin-grid { order: 2; margin-top: var(--sp-6); }
.lock-compact .pin-grid > span { background: var(--surface); box-shadow: inset 0 1px 0 0 var(--tile-line); }
.lock-compact .pin-extra { color: var(--ink-2); }
/* (the eye under 7, 20:58: «Слева снизу можем поставить кнопку показывать пароль или его скрывать — глаз») shown, the
   digits stand each in its dot's place in the title's letters, the dots not yet typed stay rings; the eye is crossed
   and blue while they show */
.lock-compact .pin-eye[aria-pressed="true"] { color: var(--accent); }
.lock-compact .pin-dots, :is(.phone, .of-phone) .approve .pin-dots { align-items: center; }
.lock-compact .pin-dots.shown .pin-dot.on, :is(.phone, .of-phone) .approve .pin-dots.shown .pin-dot.on {
  display: block; height: auto; overflow: visible; border: 0; background: none; text-align: center;
  color: var(--ink); font-size: var(--fs-xl); font-weight: var(--fw-semibold); line-height: 1;
  /* (21:17: «цифры должны ровно стоять относительно точек по вертикали») the line trimmed to the figures' own height —
     from the baseline to the top of the capitals —, so the box's middle is the figure's middle, on the dots' middle
     line (the dots are centred on one line); a Safari before iOS 18.2 cannot trim: its untrimmed line puts the figure
     a pixel high, moved down by as much */
  text-box: trim-both cap alphabetic;
}
@supports not (text-box: trim-both cap alphabetic) {
  .lock-compact .pin-dots.shown .pin-dot.on, :is(.phone, .of-phone) .approve .pin-dots.shown .pin-dot.on { transform: translateY(0.05em); }
}
.lock-compact .lock-foot { order: 3; display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 0; width: 100%; }
.lock-compact .lock-foot:empty { display: none; }
.lock-compact .lock-foot .btn { height: var(--key-h); border: 0; border-radius: 0; background: var(--surface); box-shadow: inset 0 1px 0 0 var(--line-2); }
.lock-compact .lock-foot .btn + .btn { box-shadow: inset 0 1px 0 0 var(--line-2), inset 1px 0 0 0 var(--line-2); }
/* (the line for a wrong PIN under the dots is empty most of the time, and the keys keep 24 from it: as much room above
   the plate, so what is seen — the plate down to the dots — stands in the very middle; on a short screen it gives way
   first) */
.lock-compact .lock-box::before { content: ''; order: -1; flex: 0 1 auto; min-height: 0; height: calc(20px + var(--sp-4) + var(--sp-6)); }

/* the demo PINs, folded: shown only while nobody has changed them */
.demo-pins { width: 100%; max-width: 320px; font-size: var(--fs-sm); color: var(--ink-2); }
.demo-pins summary { display: inline-flex; align-items: center; min-height: var(--h-md); padding: 0 var(--sp-3); border-radius: var(--r-md); cursor: pointer; }
.demo-pins summary:hover { background: var(--surface-3); }
.demo-pins ul { display: flex; flex-direction: column; margin: var(--sp-1) 0 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--r-md); }
.demo-pins li { display: flex; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--line); text-align: left; }
.demo-pins li:last-child { border-bottom: 0; }

.approve { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); }
.approve .field-label { align-self: stretch; }
.approve-who { align-self: stretch; margin: 0; }

.op-chip .op-lock { color: var(--ink-3); }

/* ---------- «Сотрудники» ---------- */
.pp-who { display: flex; align-items: center; gap: var(--sp-3); }
.pp-name { display: flex; flex-direction: column; min-width: 0; }
.pp-name .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-locs { max-width: 260px; }
.pp-gone tr:first-child td { border-top: 1px solid var(--line-2); }
.log-who { display: flex; flex-direction: column; }
.log-text { min-width: 240px; }
.log-table td { vertical-align: top; }

/* who is at the back office: their initial at the end of the brand row; «только просмотр» at the foot of the menu */
.of-me { display: inline-flex; margin-left: auto; }
.of-look { margin-left: var(--sp-3); }

/* «Посмотреть как»: the owner sees the back office of a person; a bar in the corner says whose and leads back */
.pp-act { white-space: nowrap; }
.of-as {
  position: fixed; right: max(var(--sp-4), env(safe-area-inset-right, 0px)); bottom: max(var(--sp-4), env(safe-area-inset-bottom, 0px)); z-index: 60;
  display: flex; align-items: center; gap: var(--sp-3); max-width: calc(100vw - 2 * var(--sp-4)); padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-3);
  border: 1px solid var(--accent); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-2);
}
.of-as-t { display: flex; flex-direction: column; min-width: 0; }
.of-as-t .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewing-as .of-main { padding-bottom: 96px; }
/* (13 November, 12:31, the owner: «Надо стартовую страницу сделать, как у официанта») the back office's PIN on a phone —
   the waiter's lock over the whole screen (server-start.jsx, OfficeLogin): its keys straight in the lock's column */
.lock-office { position: fixed; z-index: 85; }
.lock-office .srv-pin { display: contents; }

/* Table bookings (app.ruvo.ac, server 0.27): the booking on a table of the iPad's plan, the rail's list, the sheet,
   «Бронирования» in the back office and the restaurant's own page where guests book */

/* the plan: the time of the booking due at the table, in the lower corner opposite the guest app's */
.b-book { display: inline-flex; align-items: center; gap: 3px; background: var(--surface); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), var(--shadow-1); }
.tbl-badge.b-book { top: auto; bottom: -10px; right: auto; left: -8px; font-variant-numeric: tabular-nums; }
/* not come 15 minutes after their time */
.b-book.b-late { color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad), var(--shadow-1); }

/* the rail */
.bk-add { margin-left: auto; width: var(--h-sm); height: var(--h-sm); }
.bk-row { position: relative; }
.bk-row .rail-row-top { flex-wrap: wrap; }
.bk-row .st { align-self: flex-start; }
.bk-row.bk-request { background: var(--warn-soft); }
.bk-web { display: inline-flex; align-items: center; gap: 3px; margin-left: var(--sp-1); color: var(--accent); }
.bk-row .muted { display: inline-flex; align-items: center; gap: 2px; }

/* the guest count of a free table with a booking due */
.bk-due { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-4); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-lg); background: var(--accent-soft); color: var(--ink); }
.bk-due-t { display: inline-flex; align-items: flex-start; gap: var(--sp-2); }
.bk-due-t svg { flex: none; margin-top: 2px; color: var(--accent); }

/* the sheet */
.bk-state-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.bk-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); padding-top: var(--sp-2); }
.bk-call { align-self: flex-end; text-decoration: none; }
.bk-reasons { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.bk-reasons .chip { white-space: normal; text-align: left; }

/* the back office */
.bk-requests { border-color: var(--warn); }
.bk-req-list { display: flex; flex-direction: column; gap: var(--sp-1); margin: 0; padding: 0; list-style: none; }
.bk-req {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-2) var(--sp-4); width: 100%; min-height: var(--h-md); padding: var(--sp-2) var(--sp-3);
  border: 0; border-radius: var(--r-md); background: var(--warn-soft); color: var(--ink); text-align: left; cursor: pointer;
}
.bk-req:hover { box-shadow: inset 0 0 0 1px var(--warn); }
.bk-daybar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); }
/* the day between the arrows: two lines in the middle of one width, so the arrows stand still and as far from it */
.bk-day { position: relative; display: flex; flex-direction: column; align-items: center; width: 136px; padding: 0; border: 0; border-radius: var(--r-md); background: none; color: var(--ink); font: inherit; line-height: var(--lh-tight); text-align: center; cursor: pointer; }
.bk-day:hover { background: var(--surface-3); }
/* (2 November) the title opens the calendar: the date field under it, unseen */
.bk-day .bk-date { position: absolute; right: 0; bottom: 0; left: 0; width: 100%; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.bk-day b, .bk-day span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-date { height: var(--h-md); padding: 0 var(--sp-3); border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font: inherit; }
.bk-sum { margin-left: auto; }
.bk-table td { vertical-align: middle; }
.bk-tr { cursor: pointer; }
.bk-tr:hover td { background: var(--surface-2); }
.bk-tr.bk-cancelled td, .bk-tr.bk-noshow td { color: var(--ink-3); }
.bk-tr.bk-cancelled .strong { text-decoration: line-through; }
.bk-tr.bk-request td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.bk-table .as-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.bk-table a { color: inherit; text-decoration: none; }
.bk-table a:hover { color: var(--accent); text-decoration: underline; }
.bk-page { display: flex; flex-direction: column; gap: var(--sp-3); }
.bk-link { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.bk-link input { flex: 1 1 280px; min-width: 0; height: var(--h-md); padding: 0 var(--sp-3); border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface-2); color: var(--ink); font: inherit; font-family: var(--font-timer); font-size: var(--fs-sm); }
/* the page's rules: one row of equal fields across the card (no empty column at its end), every control as wide as its
   field — the guests' stepper too, its − and + at the field's edges */
.bk-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--sp-3); align-items: end; }
.bk-rules .stepper { width: 100%; }
.bk-rules .stepper .step-val { flex: 1; }
.bk-areas { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.bk-areas-set .field-label { display: inline-flex; align-items: center; gap: var(--sp-1); }
.bk-ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-lg); background: var(--bad-soft); color: var(--ink); }

/* the restaurant's own page for guests: one column, phone first */
.book-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--ink); }
.bp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4); width: 100%; max-width: 640px; margin: 0 auto; padding: var(--sp-6) var(--sp-4) var(--sp-3); }
.bp-name { margin: 0; font-size: var(--fs-2xl); line-height: var(--lh-tight); letter-spacing: var(--track-tight); }
.bp-addr { margin: var(--sp-1) 0 0; }
.bp-langs { display: flex; flex: none; gap: 2px; padding: 2px; border-radius: var(--r-pill); background: var(--surface-3); }
.bp-lang { min-width: 40px; height: 32px; padding: 0 var(--sp-2); border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink-2); font: inherit; font-size: var(--fs-xs); font-weight: var(--fw-semibold); cursor: pointer; }
.bp-lang.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.bp-main { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 0 var(--sp-4) var(--sp-6); }
.bp-msg { margin: var(--sp-6) 0; font-size: var(--fs-lg); }
.bp-form { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-5) var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-1); }
.bp-h { margin: 0; font-size: var(--fs-xl); }
.bp-set { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; margin: 0; padding: 0; border: 0; }
.bp-set legend { margin-bottom: var(--sp-2); padding: 0; }
.bp-row { flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.bp-row legend { width: 100%; }
.bp-days { display: flex; gap: var(--sp-2); margin: 0 calc(-1 * var(--sp-4)); padding: 2px var(--sp-4); overflow-x: auto; scrollbar-width: none; }
.bp-days::-webkit-scrollbar { display: none; }
.bp-areas { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.bp-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: var(--sp-1); }
/* wide enough for seven times of 50px: the times in the week's seven columns, under its days (12:00–22:00 — three rows) */
@container (min-width: 380px) { .bp-times { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.bp-times .bp-chip { min-width: 0; min-height: 38px; padding: 0; font-size: var(--fs-sm); }
.bp-chip {
  flex: none; min-height: var(--h-md); padding: 0 var(--sp-3); border: 1px solid var(--line-2); border-radius: var(--r-md);
  background: var(--surface); color: var(--ink); font: inherit; font-weight: var(--fw-semibold); white-space: nowrap; cursor: pointer;
}
.bp-chip:hover { border-color: var(--accent); }
.bp-chip.on { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.bp-row .stepper-lg .step-btn { width: var(--h-lg); height: var(--h-lg); }
.bp-row .stepper-lg .step-val { min-width: 44px; font-size: var(--fs-lg); }
.bp-note { display: flex; align-items: flex-start; gap: var(--sp-2); margin: 0; padding: var(--sp-3); border-radius: var(--r-md); background: var(--accent-soft); color: var(--ink); }
.bp-note svg { flex: none; margin-top: 2px; color: var(--accent); }
.bp-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.bp-send { width: 100%; }
.bp-fine { margin: 0; }
.bp-done { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); padding: var(--sp-8) var(--sp-4); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-1); text-align: center; }
.bp-done h2 { margin: 0; font-size: var(--fs-xl); }
.bp-done p { margin: 0; }
.bp-done-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
.bp-foot { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); padding: var(--sp-4); }
/* the page switched off, a wrong link, no line: one quiet card in the middle (on a phone and on a wide screen alike) */
.bp-head-end { justify-content: flex-end; }
.bp-main-center { display: flex; flex-direction: column; align-items: center; justify-content: center; max-width: 480px; padding-bottom: 12vh; }
.bp-off {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); width: 100%; padding: var(--sp-8) var(--sp-5);
  border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-1); text-align: center;
}
.bp-off-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--surface-3); color: var(--ink-2); }
.bp-off-name { margin: 0; font-size: var(--fs-xl); line-height: var(--lh-tight); }
.bp-off-msg { margin: 0; font-size: var(--fs-lg); font-weight: var(--fw-semibold); }
.bp-off-hint { margin: 0; }
.bp-loading { text-align: center; }

/* ---------- the plan on the guest's page (book-guest-plan.jsx, server 0.31) ---------- */
/* One grid for the form (the owner, 20 October: «сделать меньше первый блок (схема зала и календарь) и выровнять все
   элементы внутри по сетке»). On a wide screen two columns all the way down: «when» — the guests, the week of days, the
   times in the week's seven columns, the table picked under them — and the plan beside it: the hall tabs on the guests'
   line, the plan's top on the days' line, its foot on the foot of the picked line; the name and the phone in the first
   column, the requests in the second, as tall as the two. On a phone one column: the plan under the times, the picked
   line under the plan. The same gaps between every part, every label over its control */
.bp-grid { display: grid; gap: var(--sp-5); }
.bp-when { display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; container-type: inline-size; }
.bp-where { min-width: 0; }
.bp-where .bpp { gap: var(--sp-4); }
.bp-where .bpp-head { min-height: var(--h-md); }
.bp-pick-line { margin-top: calc(var(--sp-3) - var(--sp-5)); }
.book-page-plan .bp-head, .book-page-plan .bp-main { max-width: 1024px; }
@media (min-width: 880px) {
  .bp-form-plan .bp-grid {
    grid-template-columns: 384px minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "when where" "line where";
    gap: var(--sp-3) var(--sp-5); align-items: start;
  }
  .bp-form-plan .bp-when { grid-area: when; }
  .bp-form-plan .bp-where { grid-area: where; }
  .bp-form-plan .bp-pick-line { grid-area: line; align-self: end; min-height: 56px; margin-top: 0; }
}
.bp-guests-row { display: flex; align-items: center; gap: var(--sp-3); }
.bp-week { display: flex; flex-direction: column; gap: var(--sp-2); }
.bp-week-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); min-height: 32px; }
.bp-week-month { font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.bp-week-nav { display: inline-flex; gap: var(--sp-1); }
.bp-week-nav .icon-btn { width: 32px; height: 32px; }
.bp-week-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--sp-1); }
.bp-dayc {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 0; min-height: 52px; padding: var(--sp-1) 0;
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer;
}
.bp-dayc:hover:not(:disabled) { border-color: var(--accent); }
.bp-dayc-w { overflow: hidden; max-width: 100%; color: var(--ink-3); font-size: var(--fs-xs); text-overflow: ellipsis; white-space: nowrap; }
.bp-dayc-n { font-size: var(--fs-md); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
.bp-dayc.today:not(.on) { border-color: var(--accent); }
.bp-dayc.today:not(.on) .bp-dayc-w { color: var(--accent); font-weight: var(--fw-semibold); }
.bp-dayc.on { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.bp-dayc.on .bp-dayc-w { color: inherit; }
.bp-dayc:disabled { opacity: 0.4; cursor: not-allowed; }
.bp-who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "name phone" "note note"; gap: var(--sp-3) var(--sp-4); }
.bp-who .field { margin: 0; }
.bp-who-name { grid-area: name; }
.bp-who-phone { grid-area: phone; }
.bp-who-note { grid-area: note; }
/* (the inputs' look is the forms' «.field textarea»: one size here, no corner to drag) */
.bp-who .field textarea { display: block; width: 100%; resize: none; }
@media (max-width: 560px) { .bp-who { grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "phone" "note"; } }
@media (min-width: 880px) {
  .bp-form-plan .bp-who { grid-template-columns: 384px minmax(0, 1fr); grid-template-areas: "name note" "phone note"; column-gap: var(--sp-5); }
  .bp-form-plan .bp-who-note textarea { flex: 1; min-height: 0; }
}
.bp-chip.bp-shut, .bp-chip.bp-shut:hover { border-style: dashed; border-color: var(--line); background: var(--surface-2); color: var(--ink-3); text-decoration: line-through; cursor: not-allowed; }
.bp-full { margin: 0; }
.bp-legend-for { font-weight: var(--fw-regular); }
.bpp { display: flex; flex-direction: column; gap: var(--sp-3); }
.bpp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-3); }
.bpp-legend { gap: var(--sp-2) var(--sp-4); font-size: var(--fs-xs); }
/* (the guest's phone keeps the key the iPad's narrow screens drop) */
.bpp .bpp-legend { display: flex; }
.bpg-l-free::before { border: 1.5px solid var(--accent); background: var(--surface); }
.bpg-l-taken::before { border: 1.5px solid var(--line-2); background: var(--surface-3); }
.bpg-l-picked::before { border: 1.5px solid var(--accent); background: var(--accent); }
.bpg-l-small::before { border: 1.5px dashed var(--line-2); background: var(--surface-2); }
/* the plan as wide as the card, its tables sized by it (container units): a phone shows the whole hall */
.bpp .plan-wrap { display: block; }
.bpp .plan { max-width: none; container-type: inline-size; border-radius: var(--r-lg); background-size: 5% 8%; }
.bpp .tbl { gap: 0; padding: 2px; }
.bpp .tbl-n { font-size: clamp(13px, 3.4cqw, 22px); }
.bpp .tbl-meta { gap: 1px; font-size: clamp(9px, 2cqw, 13px); }
.bpp .tbl-meta .ic { width: 1.05em; height: 1.05em; }
.bpp .decor { font-size: clamp(8px, 1.7cqw, var(--fs-xs)); letter-spacing: 0.1em; }
.bpg { -webkit-tap-highlight-color: transparent; }
.bpg-free { border: 1.5px solid var(--accent); color: var(--ink); }
.bpg-free:hover { box-shadow: 0 0 0 3px var(--accent-soft); }
.bpg-idle { border: 1.5px solid var(--line-2); color: var(--ink); }
/* (taken: a plain grey table — the hatching is the bar's) */
.bpg-taken, .bpg-taken:hover { border: 1.5px solid var(--line-2); background: var(--surface-3); color: var(--ink-3); cursor: not-allowed; }
.bpg-small, .bpg-small:hover { border: 1.5px dashed var(--line-2); background: var(--surface-2); color: var(--ink-3); cursor: not-allowed; }
.bpg-taken:active, .bpg-small:active { transform: none; }
.bpg-picked, .bpg-picked:hover { border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 4px var(--accent-soft); }
.bpg-picked .tbl-meta { color: inherit; }
.bpp .tbl-badge.bpg-check { top: -7px; right: -6px; display: inline-flex; padding: 2px 3px; background: var(--ok); color: var(--ok-ink); }
.bpp-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-3); min-height: 48px; padding: var(--sp-2) var(--sp-3); border-radius: var(--r-md); background: var(--surface-2); font-size: var(--fs-sm); }
.bpp-line .btn { flex: none; }
/* «Стол забронирован»: the guest's table on the plan, nothing to press */
.bpp-mini { width: 100%; max-width: 420px; margin: var(--sp-2) 0; }
.bpp-mini .tbl { cursor: default; }
.bpp-mini .tbl:hover { border-color: var(--line-2); }
.bpp-mini .tbl:active { transform: none; }
.bpp-mini .bpg-picked:hover { border-color: var(--accent); }
.bp-done-what { font-weight: var(--fw-semibold); }
.bp-done-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); margin-top: var(--sp-2); }
.bp-done-acts a, .bp-off a.btn { text-decoration: none; }

/* ---------- the floor plan in bookings (book-plan.jsx): the plan at a moment, the timeline, the sheet's picker ---------- */
.bk-views { margin-left: var(--sp-2); }
/* «План зала» on a laptop (the owner, 20 October: «сделать меньше первый блок (схема зала и календарь) и выровнять все
   элементы внутри по сетке» — «слишком большой блок справа»): the block no taller than the window from where it stands
   (--bk-fit, office-bookings.jsx useFitHeight). The plan as tall as that lets it — the hall tabs and the moment's slider
   in one row over it, as wide as it —; beside it, as tall, the day's bookings and the key. A narrow screen: the list
   under the plan. */
.bkp { display: flex; flex-direction: column; gap: var(--sp-3); }
.bk-plan-card {
  --bk-plan-h: clamp(280px, calc(var(--bk-fit, 760px) - 90px), 760px);
  flex-direction: row; align-items: stretch; gap: var(--sp-5);
}
.bkp-tools { flex: 0 1 calc(var(--bk-plan-h) * 1.6); min-width: 0; }
.bkp-tools .bkp-head { flex-wrap: nowrap; min-height: var(--h-md); }
.bkp-tools .bkp-halls { flex: none; }
.bkp-tools .bkp-time { flex: 1; min-width: 0; }
.bkp-tools .plan { max-width: none; }
.bkp-side { position: relative; flex: 1 1 280px; min-width: 260px; }
.bkp-side-in { position: absolute; inset: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.bkp-side-head { display: flex; flex: none; align-items: center; justify-content: space-between; gap: var(--sp-2); min-height: var(--h-md); padding: 0 var(--sp-2); border-bottom: 1px solid var(--line); }
.bkp-side-head h3 { margin: 0; font-size: var(--fs-md); }
.bkp-day { flex: 1; min-height: 0; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.bkp-day-b {
  display: grid; grid-template-columns: 14px 46px minmax(0, 1fr) auto; align-items: center; gap: var(--sp-2); width: 100%; min-height: 40px;
  padding: 0 var(--sp-2); border: 0; border-radius: var(--r-md); background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.bkp-day-b:hover { background: var(--surface-2); }
/* (at the plan's moment) */
.bkp-day-b.on { background: var(--accent-soft); }
.bkp-day-b .legend-i::before { width: 10px; height: 10px; }
.bkp-day-n { overflow: hidden; font-weight: var(--fw-semibold); text-overflow: ellipsis; white-space: nowrap; }
.bkp-day-m { display: inline-flex; align-items: center; gap: 3px; font-size: var(--fs-sm); white-space: nowrap; }
.bkp-day-none { margin: var(--sp-2) var(--sp-2) 0; }
.bkp-side-key { display: grid; flex: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2) var(--sp-3); margin-top: auto; padding: var(--sp-3) var(--sp-2) 0; border-top: 1px solid var(--line); font-size: var(--fs-xs); }
@media (max-width: 1100px) {
  .bk-plan-card { flex-direction: column; }
  .bkp-tools { flex: none; }
  .bkp-side { flex: none; min-height: 320px; }
}
.bkp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-3); }
.bkg-soon::before { border: 1.5px solid var(--accent); }
.bkg-request::before { border: 1.5px dashed var(--warn); background: var(--warn-soft); }
.bkg-booked::before { border: 1.5px solid var(--accent); background: var(--accent-soft); }
.bkg-seated::before { border: 1.5px solid var(--ok); background: var(--ok-soft); }
.bkg-taken::before { border: 1.5px solid var(--line-2); background: var(--surface-3); }
.bkg-late::before { border: 1.5px solid var(--bad); background: var(--bad-soft); }
.bkg-bill::before { border: 2px solid var(--ink); background: var(--surface); }
/* a table as the bookings see it */
.bkt { gap: 1px; }
.bkt-soon { border: 1.5px solid var(--accent); color: var(--ink); }
.bkt-request { border: 2px dashed var(--warn); background: var(--warn-soft); color: var(--ink); }
.bkt-booked { border: 2px solid var(--accent); background: var(--accent-soft); color: var(--ink); }
.bkt-seated { border: 2px solid var(--ok); background: var(--ok-soft); color: var(--ink); }
.bkt-late { border: 2px solid var(--bad); background: var(--bad-soft); color: var(--ink); }
/* the till's word: a bill open at the table now */
.bkt-bill { border: 2px solid var(--ink); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.tbl-badge.bkt-sum { background: var(--ink); color: var(--surface); font-variant-numeric: tabular-nums; }
.bkt-name { max-width: 100%; padding: 0 2px; overflow: hidden; font-size: clamp(var(--fs-xs), 1vw, var(--fs-sm)); font-weight: var(--fw-semibold); text-overflow: ellipsis; white-space: nowrap; }
.bkt .tbl-meta { gap: 3px; }
.bkt-soonb { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-1); }
.tbl-badge.bkt-guests { display: inline-flex; align-items: center; gap: 2px; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-1); }
/* the sheet's picker: taken then — shut; too small for the party — amber; the one picked — filled */
.bkt-taken, .bkt-taken:hover { border: 1.5px solid var(--line); background: var(--surface-3); color: var(--ink-3); cursor: not-allowed; }
.bkt-taken:active { transform: none; }
.bkt-small { border: 1.5px solid var(--warn); }
.bkt-picked, .bkt-picked:hover { border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink); }
.bkt-picked .tbl-meta { color: inherit; }
.tbl-badge.bkt-check { display: inline-flex; padding: 2px 4px; background: var(--ok); color: var(--ok-ink); }
/* (a small plan: a dot every second cell) */
.bkp-mini .plan { max-width: none; border-radius: var(--r-lg); background-size: 5% 8%; }
.bkp-mini .tbl-n { font-size: var(--fs-md); }
.bkp-mini .tbl-meta { font-size: 10px; }
.bkp-mini .tbl-badge { top: -8px; right: -6px; }
.bk-pick { padding: var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); }
.bk-table-row { display: flex; align-items: center; gap: var(--sp-2); }
.bk-table-row > :first-child { flex: 1; min-width: 0; }
.bk-plan-btn.on { background: var(--accent-soft); color: var(--accent); }
/* the moment the plan shows */
.bkp-time { display: flex; align-items: center; gap: var(--sp-2); }
.bkp-range { flex: 1; min-width: 120px; accent-color: var(--accent); }
.bkp-clock { min-width: 64px; font-size: var(--fs-xl); text-align: center; }
/* the timeline: tables down, hours across; the label column stays while it scrolls */
.bk-grid-card { overflow: hidden; }
.bkl { overflow-x: auto; overscroll-behavior-x: contain; }
/* the back office's timeline no taller than the window: it scrolls inside, the hours' row staying on top */
.bk-grid-card .bkl { max-height: max(320px, calc(var(--bk-fit, 760px) - 40px)); overflow: auto; }
.bk-grid-card .bkl-hours { position: sticky; top: 0; z-index: 4; background: var(--surface); }
.bkl-grid { display: flex; flex-direction: column; }
.bkl-row { display: flex; align-items: stretch; min-height: 36px; border-bottom: 1px solid var(--line); }
.bkl-row:last-child { border-bottom: 0; }
.bkl-label {
  position: sticky; left: 0; z-index: 3; display: flex; flex: none; align-items: center; gap: var(--sp-2); width: 128px; padding: 0 var(--sp-3);
  border-right: 1px solid var(--line); background: var(--surface);
}
.bkl-label .muted { display: inline-flex; align-items: center; gap: 2px; }
.bkl-track { position: relative; flex: none; }
.bkl-slots {
  cursor: copy;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px), linear-gradient(to right, var(--surface-3) 1px, transparent 1px);
  background-size: 88px 100%, 22px 100%;
}
.bkl-slots:hover { background-color: var(--surface-2); }
.bkl-hours { min-height: 40px; }
.bkl-hour { position: absolute; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding-left: var(--sp-2); border-left: 1px solid var(--line); font-size: var(--fs-sm); }
.bkl-cov { display: inline-flex; align-items: center; gap: 2px; color: var(--ink-2); font-size: var(--fs-xs); }
.bkl-hall { min-height: 28px; background: var(--surface-2); }
.bkl-hall .bkl-label { background: var(--surface-2); }
.bkl-loose .bkl-label { color: var(--ink-2); font-size: var(--fs-sm); }
.bkl-bar {
  position: absolute; top: 4px; bottom: 4px; z-index: 1; display: flex; align-items: center; gap: 4px; padding: 0 var(--sp-2); overflow: hidden;
  border: 0; border-radius: var(--r-md); font: inherit; font-size: var(--fs-sm); text-align: left; white-space: nowrap; cursor: pointer;
}
.bkl-bar-t { overflow: hidden; font-weight: var(--fw-semibold); text-overflow: ellipsis; }
.bkl-bar-g { display: inline-flex; flex: none; align-items: center; gap: 2px; }
.bkl-booked { background: var(--accent-soft); color: var(--ink); box-shadow: inset 3px 0 0 var(--accent); }
.bkl-request { background: var(--warn-soft); color: var(--ink); box-shadow: inset 3px 0 0 var(--warn); }
.bkl-seated { background: var(--ok-soft); color: var(--ink); box-shadow: inset 3px 0 0 var(--ok); }
.bkl-late { background: var(--bad-soft); color: var(--ink); box-shadow: inset 3px 0 0 var(--bad); }
.bkl-bar:hover { outline: 1px solid var(--accent); }
/* a booking still to come is dragged to another time or table */
.bkl-movable { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.bkl-drag { z-index: 6; cursor: grabbing; opacity: 0.92; box-shadow: var(--shadow-2), inset 3px 0 0 var(--accent); transition: none; }
.bkl-drag-t { flex: none; padding: 1px 5px; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font-size: var(--fs-xs); font-weight: var(--fw-bold); }
.bk-board-days { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.sheet .bkl { margin: 0 calc(-1 * var(--sp-5)); border-top: 1px solid var(--line); }
/* (the iPad's «Лента броней»: rows a finger's height) */
.sheet .bkl-row { min-height: 44px; }
.sheet .bkl-hours { min-height: 48px; }
.bk-add-new { margin-left: 0; }
.bkl-now { position: absolute; top: 0; bottom: 0; z-index: 2; width: 2px; margin-left: -1px; background: var(--bad); pointer-events: none; }
.bk-grid-hint { margin: 0; padding: var(--sp-2) var(--sp-3); border-top: 1px solid var(--line); }
.bk-grid-hint:empty { display: none; }
/* the rail's head with two buttons: the title on one line */
#rail-bookings .rail-head > span:nth-of-type(1) { white-space: nowrap; }
#rail-bookings .rail-head .bk-add { width: 30px; height: 30px; }

/* ---------- the iPad's bookings in its own language (1 November, 20:39, the owner: «в бронях выровнять все кнопки,
   всю информацию») ----------
   As its other sheets: rows and cells from edge to edge, a line only between them; three styles — 16 semibold (a
   time, a name, a value, a key), 14 regular (the rest), the figures of an instrument for the times; the pills at the
   foot. The plan: a free table says its booking in the line under its number (a sign over its edge lay over «4 места»
   on a small table), the sign stays for a table taken — and for a table too small for that line. */
.ipad .tbl-meta.tbl-booked { gap: 3px; color: var(--accent); font-variant-numeric: tabular-nums; }
.ipad .tbl-meta.tbl-booked.late { color: var(--bad); }
.ipad .tbl-badge.b-book.b-free { display: none; }
@container (max-height: 39px) { .ipad .tbl-badge.b-book.b-free { display: inline-flex; } }
@container (max-width: 43px) { .ipad .tbl:not(.tbl-round) > .tbl-badge.b-book.b-free { display: inline-flex; } }
@container (max-height: 50px) { .ipad .tbl-round > .tbl-badge.b-book.b-free { display: inline-flex; } }
/* «Брони сегодня»: a row a booking — its time at the left (16 semibold, the instrument's figures), who (16 semibold)
   over the table, the guests and the note (14 regular, grey, whole), its state at the right; a request from the
   website an amber stripe at its left, late a red one and its time red; the website's requests of other days a band */
.ipad .bk-today > .bk-row {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; column-gap: var(--sp-3); min-height: 64px;
  background: none; color: var(--ink); font-size: var(--fs-sm);
}
.ipad .bk-today > .bk-row.bk-request { box-shadow: inset 4px 0 0 0 var(--warn), inset 0 1px 0 0 var(--line-2); }
.ipad .bk-today > .bk-row.bk-late { box-shadow: inset 4px 0 0 0 var(--bad), inset 0 1px 0 0 var(--line-2); }
.ipad .bk-today .bk-time { align-self: start; font-family: var(--font-timer); font-size: var(--fs-md); font-weight: var(--fw-semibold); letter-spacing: -0.02em; line-height: 22px; }
.ipad .bk-today .bk-late .bk-time { color: var(--bad); }
.ipad .bk-today .bk-what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ipad .bk-today .bk-who { display: inline-flex; align-items: center; gap: var(--sp-1); min-width: 0; font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; overflow-wrap: anywhere; }
.ipad .bk-today .bk-who .bk-web { flex: none; margin: 0; }
.ipad .bk-today .bk-sub { color: var(--ink-2); font-size: var(--fs-sm); line-height: 18px; overflow-wrap: anywhere; }
.ipad .bk-today > .bk-row > .st { align-self: center; border-radius: var(--r-pill); }
.ipad .bk-today > .bk-web-ask {
  display: flex; flex-direction: row; align-items: center; gap: var(--sp-2); min-height: 44px; padding-block: 0;
  background: var(--warn-soft); color: var(--ink); font-size: var(--fs-sm);
}
.ipad .bk-today > .bk-web-ask .ic { color: var(--warn); }
/* the booking's sheet: what it is a band of its chips; the fields cells of six columns — a name over its value, the
   cell's line under it the accent's while it is typed in; «Не пришли» and «Отменить бронь» keys of a row */
.ipad .sheet-body.flush > .bk-sheet { display: flex; flex-direction: column; margin: 0; }
.ipad .bk-band { display: flex; align-items: center; min-height: 44px; padding: var(--sp-2) var(--sp-4); background: var(--bg); box-shadow: inset 0 -1px 0 0 var(--line-2); }
.ipad .bk-band .bk-state-row { gap: var(--sp-2); }
.ipad .bk-band .st { border-radius: var(--r-pill); }
.ipad .bk-band .muted.small { color: var(--ink-2); font-size: var(--fs-sm); }
.ipad .bk-cells { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-left: -1px; }
.ipad .bk-cell {
  display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; min-height: 72px; padding: var(--sp-2) var(--sp-4);
  box-shadow: inset 1px 0 0 0 var(--line-2), inset 0 -1px 0 0 var(--line-2);
}
.ipad .bk-cell.s2 { grid-column: span 2; }
.ipad .bk-cell.s3 { grid-column: span 3; }
.ipad .bk-cell.s4 { grid-column: span 4; }
.ipad .bk-cell.s6 { grid-column: 1 / -1; }
.ipad .bk-cell:focus-within:not(.bk-cell-plan) { box-shadow: inset 1px 0 0 0 var(--line-2), inset 0 -2px 0 0 var(--accent); }
.ipad .bk-cell-l { color: var(--ink-2); font-size: var(--fs-sm); line-height: 18px; }
.ipad .bk-cell :is(input, textarea) {
  width: 100%; min-width: 0; height: 32px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--ink);
  font: inherit; font-size: var(--fs-md); font-weight: var(--fw-semibold); outline: 0;
}
.ipad .bk-cell :is(input, textarea)::placeholder { color: var(--ink-3); font-weight: var(--fw-regular); }
.ipad .bk-cell :is(input, textarea):disabled { opacity: 1; color: var(--ink-2); }
/* (a note of several lines: all of it, as many lines as it has — three before it scrolls) */
.ipad .bk-cell textarea { height: auto; min-height: 32px; max-height: 84px; padding: 5px 0; line-height: 22px; resize: none; field-sizing: content; }
.ipad .bk-cell .select {
  height: 32px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
  font-size: var(--fs-md); font-weight: var(--fw-semibold);
}
.ipad .bk-cell .select.open, .ipad .bk-cell .select:focus-visible { box-shadow: none; }
.ipad .bk-cell .select.open .select-value { color: var(--accent); }
.ipad .bk-cell .stepper { align-self: stretch; justify-content: space-between; height: 32px; outline: 0; background: none; }
.ipad .bk-cell .step-btn { width: 32px; height: 32px; border-radius: var(--r-pill); background: var(--surface-3); }
.ipad .bk-cell .step-btn:active:not(:disabled) { background: var(--pill-press); }
.ipad .bk-cell .step-val { font-family: var(--font-timer); font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.ipad .bk-cell .bk-table-row { gap: var(--sp-3); }
.ipad .bk-cell .bk-plan-btn, .ipad .bk-cell .bk-call {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; min-height: 0; padding: 0; border: 0; border-radius: var(--r-pill);
  background: var(--surface-3); color: var(--ink);
}
.ipad .bk-cell .bk-plan-btn.on { background: var(--accent); color: var(--accent-ink); }
.ipad .bk-cell .bk-phone { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
.ipad .bk-cell .bk-phone > input { flex: 1; }
.ipad .bk-cell-plan { padding: var(--sp-3) var(--sp-4); background: var(--bg); }
.ipad .bk-cell-plan .bk-pick { padding: 0; border: 0; border-radius: 0; background: none; }
.ipad .bk-cell-warn { min-height: 44px; }
.ipad .bk-cell-warn > span { font-size: var(--fs-sm); }
.ipad .bk-keys { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; }
.ipad .bk-key {
  min-width: 0; min-height: 56px; padding: 0 var(--sp-4); border: 0; border-radius: 0; background: var(--surface); color: var(--ink);
  font: inherit; font-size: var(--fs-md); font-weight: var(--fw-semibold); cursor: pointer;
  box-shadow: inset 1px 0 0 0 var(--line-2), inset 0 -1px 0 0 var(--line-2);
}
.ipad .bk-key:first-child { box-shadow: inset 0 -1px 0 0 var(--line-2); }
.ipad .bk-key.bad { color: var(--bad); }
.ipad .bk-key:active:not(:disabled) { background: var(--surface-3); }
.ipad .bk-key:disabled { color: var(--ink-3); cursor: default; }
.ipad .bk-sheet > .bk-hint { padding: var(--sp-3) var(--sp-4); color: var(--ink-2); font-size: var(--fs-sm); }
/* (the plan's picker: a table taken then too narrow for its hours — the shade says it, the hours in its name) */
@container (max-width: 79px) { .ipad .bkp-mini .bkt-taken > .tbl-meta { display: none; } }
/* «Лента броней»: the days one row of keys from edge to edge (14 regular; the chosen one the accent's), the hours'
   names on one line, the timeline from edge to edge */
.ipad .sheet-body.flush > .bk-days { margin: 0; }
.ipad .bk-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); flex: none; box-shadow: inset 0 -1px 0 0 var(--line-2); }
.ipad .bk-day-key {
  min-width: 0; min-height: 48px; padding: 0 var(--sp-2); border: 0; border-radius: 0; background: var(--surface); color: var(--ink);
  font: inherit; font-size: var(--fs-sm); white-space: nowrap; cursor: pointer;
  box-shadow: inset 1px 0 0 0 var(--line-2), inset 0 -1px 0 0 var(--line-2);
}
.ipad .bk-day-key:first-child { box-shadow: inset 0 -1px 0 0 var(--line-2); }
.ipad .bk-day-key:active { background: var(--surface-3); }
.ipad .bk-day-key.on, .ipad .bk-day-key.on:active { background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 -1px 0 0 var(--accent); }
.ipad .sheet-body.flush > .bkl { flex: 1 1 auto; min-height: 0; margin: 0; border-top: 0; overflow: auto; }
.ipad .sheet-body.flush > .bkl .bkl-hours { position: sticky; top: 0; z-index: 4; background: var(--surface); }
.ipad .sheet .bkl-hour { padding-left: var(--sp-2); }
.ipad .sheet .bkl-hour > b { font-family: var(--font-timer); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.ipad .sheet .bkl-bar { font-size: var(--fs-sm); }
/* the guests of a table with a booking due: the band of the screen's blue from edge to edge, «Это они — пришли» a pill */
.ipad .sheet-body.flush > .bk-due {
  flex-direction: column; align-items: stretch; gap: var(--sp-3); margin: 0; padding: var(--sp-3) var(--sp-4) var(--sp-4); border-radius: 0;
  box-shadow: inset 0 -1px 0 0 var(--line-2); font-size: var(--fs-sm);
}
.ipad .sheet-body.flush > .bk-due > .btn { min-height: 56px; border-radius: var(--r-pill); font-size: var(--fs-md); }

/* «Поставщики» in the back office (app.ruvo.ac, server 0.28): the list, a supplier's card, the order below minimum */
.sp-table td { vertical-align: middle; }
.sp-tr { cursor: pointer; }
.sp-tr:hover td { background: var(--surface-2); }
.sp-table .as-link, .of-page .as-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }

/* the catalog of suppliers (server 0.30): the rubrics on the left, the search and the companies' cards on the right */
.sp-tabs { margin-right: auto; }
.dir { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--sp-5); align-items: start; }
.dir-rubs { position: sticky; top: var(--sp-4); display: flex; flex-direction: column; gap: 2px; padding: var(--sp-2); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.dir-rub {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); min-height: 38px; padding: var(--sp-1) var(--sp-3);
  border: 0; border-radius: var(--r-md); background: transparent; color: var(--ink); font: inherit; font-size: var(--fs-sm); text-align: left; cursor: pointer;
}
.dir-rub:hover { background: var(--surface-2); }
.dir-rub.on { background: var(--accent-soft); color: var(--accent); font-weight: var(--fw-semibold); }
.dir-n { flex: none; min-width: 24px; color: var(--ink-3); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; text-align: right; }
.dir-rub.on .dir-n { color: var(--accent); }
.dir-main { display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; }
.dir-meta { margin: 0; }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--sp-3); }
.dir-card { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.dir-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-2); }
.dir-name { margin: 0; font-size: var(--fs-md); line-height: var(--lh-tight); }
.dir-what { margin: 0; color: var(--ink); }
.dir-where { display: flex; align-items: flex-start; gap: var(--sp-1); margin: 0; }
.dir-where svg { flex: none; margin-top: 2px; }
.dir-contacts { display: flex; flex-direction: column; gap: 4px; }
.dir-c { display: inline-flex; align-items: center; gap: var(--sp-2); min-width: 0; color: var(--ink); text-decoration: none; }
.dir-c span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dir-c svg { flex: none; color: var(--ink-3); }
.dir-c:hover { color: var(--accent); }
.dir-c:hover svg { color: var(--accent); }
.dir-note { margin: 0; }
@media (max-width: 900px) {
  .dir { grid-template-columns: 1fr; }
  .dir-rubs { position: static; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .dir-rub { flex: none; }
}

/* ---------- iPhone ---------- */
.phone-shell { align-items: center; background: var(--bg-2); }
.phone { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 440px; height: 100%; overflow: hidden; background: var(--bg); }
@media (min-width: 600px) { .phone { border-left: 1px solid var(--line); border-right: 1px solid var(--line); box-shadow: var(--shadow-2); } }
.phone-screen { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.ph-head {
  display: grid; grid-template-columns: var(--h-md) minmax(0, 1fr) auto; flex: none; align-items: center; gap: var(--sp-2);
  min-height: 64px; padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--line); background: var(--surface);
}
/* (the header under the status bar, in its own shade: 10-base.css, .app.phone-shell) */
.ph-head.no-left { grid-template-columns: minmax(0, 1fr) auto; padding-left: var(--sp-4); }
/* (29 October, after «Столы»: «И пойдем дальше по экранам») a phone screen's header, as the PIN's screen: under the clock
   the screen's own shade; then one row as tall as a PIN's key — the title 22 semibold and one line under it, 14 regular;
   a line under the header (it lies on the first row's own line and stays when the rows scroll under it).
   (30 October, 01:41, the owner of the order: «давай попробуем верхнюю часть сделать пилюлями. Поиск гостя, переход
   обратно и еще что-то у нас там») its keys are pills, as the halls' on «Столы»: «‹» a round one 16 from the left edge,
   the title 20 after it (at 72, where the dishes' names start under it); at the right «Гость» and «Скидка» in words (the
   tag alone said nothing), 8 apart, the last 16 from the edge. 36 high to the eye; to the finger the header's whole row
   and halfway to the next pill. No lines between the keys and the title. */
.phone .ph-head {
  position: relative; z-index: 1; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0;
  min-height: calc(var(--key-h) + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 0 0;
  border-bottom: 0; background: var(--bg); box-shadow: 0 1px 0 0 var(--line-2);
}
.phone .ph-head.no-left { grid-template-columns: minmax(0, 1fr) auto; padding-left: var(--sp-4); }
.phone .ph-left, .phone .ph-right { display: flex; align-self: stretch; align-items: center; gap: 0; }
.phone .ph-left { padding-left: var(--sp-4); }
.phone .ph-head:not(.no-left) .ph-titles { padding-left: var(--sp-5); }
.phone .ph-title { font-weight: var(--fw-semibold); letter-spacing: 0; }
.ph-pill {
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
  height: 36px; padding: 0 var(--sp-4); border: 0; border-radius: var(--r-pill); background: var(--pill); color: var(--ink);
  font: inherit; font-size: var(--fs-sm); font-weight: var(--fw-regular); line-height: 1; white-space: nowrap; cursor: pointer;
}
.ph-pill:active { background: var(--pill-press); }
.ph-back { width: 36px; padding: 0; }
.phone .ph-pill::before { content: ''; position: absolute; inset: calc((36px - var(--key-h)) / 2) calc(var(--sp-2) / -2); }
.phone .ph-back::before { left: calc(var(--sp-4) * -1); right: calc(var(--sp-5) / -2); }
.phone .ph-right > .ph-pill, .phone .ph-right > .line-chip { margin-left: var(--sp-2); }
.phone .ph-right > .ph-pill:last-child, .phone .ph-right > .line-chip:last-child { margin-right: var(--sp-4); }
/* the line to the server in a header: nothing while all is well; without it, a pill as the others */
.phone .ph-right > .sync-live, .phone .ph-right > .sync-local { display: none; }
.phone .ph-right > .sync { padding: 0 var(--sp-4); }
.phone .ph-right > .line-chip { position: relative; height: 36px; min-height: 0; padding: 0 var(--sp-4); font-weight: var(--fw-regular); }
.phone .ph-right > .line-chip::before { content: ''; position: absolute; inset: calc((36px - var(--key-h)) / 2) calc(var(--sp-2) / -2); }
.ph-titles { min-width: 0; }
.ph-title { display: flex; align-items: center; gap: var(--sp-1); }
.ph-sub { overflow: hidden; font-size: var(--fs-sm); color: var(--ink-2); white-space: nowrap; text-overflow: ellipsis; }
.ph-right { display: flex; align-items: center; gap: var(--sp-2); }
.ph-body { flex: 1; display: flex; flex-direction: column; gap: var(--sp-3); min-height: 0; padding: var(--sp-4); overflow: auto; }
.ph-section { margin-top: var(--sp-2); }
.ph-empty { font-size: var(--fs-sm); color: var(--ink-3); }

/* ---------- «Столы», built as the PIN's screen is ----------
   (29 October, the owner: «Экран входа получился просто топовым: вибрация и звуки, большие кнопки, мимо которых не
   промахнешься, минимум текста, ровные грани и две зоны на весь экран… Попробуй экран столы пересобрать с учетом
   данного опыта») Two zones: the header — «Мои столы» or «Все столы» (22:21: «Мои» and «Все» are tabs of the tab bar
   now) — and the tables, tiles from edge to edge, three to a row, a line only between tiles (each drawn inside the tile after
   it), a row left short closed with blank tiles; a group's name («Свободные», a hall) a row of the screen's own
   shade with a line above it and under it. Three styles of letters: the table's number 28 semibold; the header 22 semibold;
   everything else 14 regular. A dish ready: the tile green, the count in a green circle; the bill asked: violet; a free
   table: its number and seats grey; another waiter's: his name where the sum is. */
.phone { --key-h: clamp(56px, 9vh, 76px); }
/* (30 October, 10:10, the audit's proposals 10 and 11 — deeper shades by day, the bill pinker at night — are the palette
   of 12:52 now, the whole app's: 00-tokens.css) the fade under the hanging pills: its height, the screen's white clear */
.phone { --fade-h: 28px; --fade-0: rgb(255 255 255 / 0); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .phone { --fade-0: rgb(22 25 32 / 0); } }
:root[data-theme="dark"] .phone { --fade-0: rgb(22 25 32 / 0); }
.pt-screen { background: var(--bg); }
/* under the last row the screen's white goes on to the tab bar, never a thin strip of another shade above the tab
   bar's line: an empty block fills what is left; its top line closes the last row, the columns' lines end there (00:47) */
.pt-body { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: auto; background: var(--surface); }
.pt-body > * { flex: none; }
.pt-body > .pt-fill { display: grid; flex: 1 0 auto; grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* (23:15, the owner of the menu: «Горизонтальная линия тоже нужна у последних блюд. Не может она обрываться
   пустотой») the last row is closed by a line under it — the empty cells' own top line, as every tile's; where only a
   few pixels are left above the tab bar or the foot, the empty cells draw no lines at all (that line would lie beside
   the bar's: a doubled line) — the cells are a size container that knows its own height.
   (30 October, 00:47, the owner: «вертикальные линии заканчивать вместе с последней горизонтальной линией, чтобы они не
   тянулись до конца экрана») under that line nothing more: the columns' lines end on it */
.pt-fill, .mt-fill { container: fill / size; }
.pt-fill > span, .mt-fill > span { box-shadow: inset 0 1px 0 0 var(--line-2); }
@container fill (max-height: 12px) {
  .pt-fill > span, .pt-fill > span + span, .mt-fill > span, .mt-fill > span + span { box-shadow: none; }
}
/* (30 October, 00:06, the owner: «справа сделаем две пилюли. Одна пилюля будет терраса, одна зал») the halls at the
   header's right, a pill each in the screen's small letters (14 regular, as the stop list's «Лимит»: the screen keeps
   its three styles): the chosen one filled with the accent, as the chosen category; the others white on the header's
   shade; 36 high to the eye, 44 to the finger. A hall not shown where a table calls — a dot on its pill: green, a dish
   ready; violet, the bill asked. Too many for the row: the pills scroll, the title keeps its room. */
/* (the row of pills as tall as the header's row: a pill's reach to the finger is not cut by the row that scrolls) */
.hall-pills { display: flex; align-self: stretch; align-items: center; gap: var(--sp-2); min-width: 0; padding: 0 var(--sp-4) 0 var(--sp-2); overflow-x: auto; scrollbar-width: none; }
.hall-pills::-webkit-scrollbar { display: none; }
.hall-pill {
  position: relative; flex: none; height: 36px; padding: 0 var(--sp-4); border: 0; border-radius: var(--r-pill);
  background: var(--pill); color: var(--ink-2); font-size: var(--fs-sm); font-weight: var(--fw-regular); line-height: 1; cursor: pointer;
}
.hall-pill::before { content: ''; position: absolute; inset: calc((36px - var(--key-h, 44px)) / 2) calc(var(--sp-2) / -2); }
.hall-pill.on { background: var(--accent); color: var(--accent-ink); }
/* (the audit of 30 October 03:44: «Терраса» in grey read as switched off) a hall not chosen in the ink of the header's other pills */
.hall-pill:not(.on) { color: var(--ink); }
.hall-pill:active:not(.on) { background: var(--pill-press); }
.hall-pill.call-ready::after, .hall-pill.call-bill::after {
  content: ''; position: absolute; top: -3px; right: -3px; width: 12px; height: 12px; border: 2px solid var(--bg); border-radius: 50%; background: var(--ok);
}
.hall-pill.call-bill::after { background: var(--bill); }
.phone .ph-head.no-left:has(.hall-pills) { grid-template-columns: auto minmax(0, 1fr); }
.phone .ph-right:has(> .hall-pills) { justify-content: flex-end; min-width: 0; }
/* a hall with nothing of this waiter's and nothing free: a line of grey words where the tiles would be */
.pt-none { padding: var(--sp-4); color: var(--ink-3); font-size: var(--fs-sm); }
/* (21:56, the owner: «у террасы нет линии сверху») a group's row has its line above it as well as under it */
.pt-cap {
  display: flex; align-items: center; height: 44px; padding: 0 var(--sp-4); background: var(--bg); color: var(--ink-3); font-size: var(--fs-sm);
  box-shadow: inset 0 1px 0 0 var(--line-2);
}
.pt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
/* (the audit of 30 October: on an iPhone SE the key is 58 and a tile of 87 cut the sum's line) never lower than a
   number, a line and the sum need */
/* (2 November, the owner: «в ней не должно быть пустых блоков» — no blank tiles closing a row; then «Не растягивай
   блоки, они все должны быть квадратами» — every tile one column, a short last row is short: ten tables 3 + 3 + 3 + 1,
   the screen's white after the last. ui/even-grid.jsx marks the tiles: data-rf starting a row, data-r0 the first row;
   the lines round a short row's end — --rim, 86-tiles.css) */
.ptable {
  height: max(calc(var(--key-h) * 1.5), 96px); background: var(--surface);
  box-shadow: inset 1px 0 0 0 var(--line-2), inset 0 1px 0 0 var(--line-2), var(--rim, 0 0 #0000);
}
.pt-grid > [data-rf] { box-shadow: inset 0 1px 0 0 var(--line-2), var(--rim, 0 0 #0000); }
.ptable {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 2px;
  min-width: 0; padding: var(--sp-3); border: 0; border-radius: 0; color: var(--ink); text-align: left; cursor: pointer;
  font-size: var(--fs-sm); font-weight: var(--fw-regular); line-height: 18px;
}
.ptable:active { background: var(--surface-3); }
.pt-n { margin-bottom: auto; font-size: var(--fs-2xl); font-weight: var(--fw-semibold); line-height: 1; }
.pt-meta { display: flex; align-items: center; gap: 2px; width: 100%; min-width: 0; color: var(--ink-2); white-space: nowrap; }
.pt-sum { max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* (30 October, 16:27, the owner: «надо сделать жирным суммы столов в графе все столы») a table's sum in bold — 16
   semibold, as a dish's name on the menu (the screen's fourth style, by the owner's word: 22 would cut «15 300 RSD» on
   his iPhone and an SE), its currency the screen's small grey; six figures (100 000 and more) 14 semibold */
.pt-sum .money { font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.pt-sum.long .money { font-size: var(--fs-sm); }
.pt-cook { display: inline-flex; flex: none; align-items: center; gap: 2px; margin-left: auto; color: var(--warn); }
/* the currency beside a sum on the phone: the screen's small letters (14 regular), grey */
.phone .money-u { font-size: var(--fs-sm); font-weight: var(--fw-regular); letter-spacing: 0; }
/* (the colours measured again after the deeper shades, 30 October: the grey «RSD» on a green or blue line fell to 3.5:1
   at night) on a shaded line or tile the currency in the darker grey */
.phone :is(.line-ready, .line-draft, .mt-tile.has, .pt-ready, .pt-bill) .money-u { color: var(--ink-2); }
/* ---------- the phone's sheets, as the PIN's screen (29 October, «пойдем дальше по экранам») ----------
   The head: the title 22 semibold, one line under it 14 regular, «×» a key as tall as a PIN's at the sheet's edge.
   (30 October, 03:14, the owner: «Давай теперь весь низ переводить в пилюли») the foot: pills hanging over the sheet's
   body, as the order's (below, «the foot's pills»). */
:is(.phone, .ipad) .sheet-title { font-size: var(--fs-xl); }
:is(.phone, .ipad) .sheet-head { min-height: var(--key-h); padding: 0 0 0 var(--sp-4); border-bottom-color: var(--line-2); }
/* (30 October, 10:10, the audit's proposal 6) «×» a round pill, as the header's «‹»: 36 to the eye, in the grey of the
   sheet's pills, 16 from the edge; to the finger the head's whole height and on to the sheet's edge */
:is(.phone, .ipad) .sheet-head > .icon-btn {
  position: relative; width: 36px; height: 36px; margin: 0 var(--sp-4) 0 var(--sp-2); border-radius: var(--r-pill);
  background: var(--surface-3); color: var(--ink);
}
:is(.phone, .ipad) .sheet-head > .icon-btn:active { background: var(--pill-press); }
:is(.phone, .ipad) .sheet-head > .icon-btn::before {
  content: ''; position: absolute;
  inset: calc((36px - var(--key-h)) / 2) calc(var(--sp-4) * -1) calc((36px - var(--key-h)) / 2) calc(var(--sp-2) * -1);
}
/* (the audit of 30 October: a title or its line in two lines — «Новые позиции не отправлены», a dish's allergens — stood
   against the sheet's top edge) room above and under the words whatever their lines; one line still fits the key's
   height */
:is(.phone, .ipad) .sheet-titles { padding: var(--sp-2) 0; }
/* (the audit: a sheet with no keys at its foot — the language, a discount's list — had its last row's words over the
   home bar) its body ends above the home bar; the guests' digits and the keys one under another go down to the
   screen's edge themselves */
:is(.phone, .ipad) .sheet-body.flush:last-child:not(:has(> .guest-grid, > .key-stack, > .cal, > .approve)) { padding-bottom: env(safe-area-inset-bottom, 0px); }
/* the foot's pills (03:14), as the order's: 56 high, 16 from the sheet's edges, 8 apart, above the home bar, a soft
   shadow; they hang over the sheet's body, which goes on under them and whose end scrolls up clear of them (room kept
   after the body's last row). Two keys: the main one twice as wide, the gap between them on a third of the width — on
   the line of the quantity's keys above (22:21, the owner: «опять сползли внизу линии»). Their colours: the main one
   its own (the accent; «Подано» green); the others ink — black by day, white at night («Отмена», «Назад», «К столу»,
   «Новый гость»), as «Новые: N» on the menu; one that takes something away red on its light shade («Открепить»).
   To the finger a pill reaches the sheet's edges and halfway to the other; a press shrinks it a little. */
:is(.phone, .ipad) .sheet:has(> .sheet-foot) { position: relative; --foot-room: calc(56px + max(var(--sp-3), env(safe-area-inset-bottom, 0px)) + var(--fade-h)); }
:is(.phone, .ipad) .sheet:has(> .sheet-foot) > .sheet-body::after { content: ''; display: block; flex: none; height: var(--foot-room); }
:is(.phone, .ipad) .sheet:has(> .sheet-foot) > .sheet-body.flush:empty { display: block; }
:is(.phone, .ipad) .sheet-foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: var(--sp-2);
  padding: 0 var(--sp-4) max(var(--sp-3), env(safe-area-inset-bottom, 0px)); border-top: 0; background: none; pointer-events: none;
}
:is(.phone, .ipad) .sheet-foot:has(> .btn ~ .btn-primary, > .btn ~ .btn-ok, > .btn ~ .btn-danger) {
  grid-template-columns: calc((100% + 2 * var(--sp-4)) / 3 - var(--sp-4) - var(--sp-1)) minmax(0, 1fr);
}
:is(.phone, .ipad) .sheet-foot > .btn {
  position: relative; min-width: 0; height: 56px; min-height: 0; padding: 0 var(--sp-4); border: 0; border-radius: var(--r-pill);
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.16), 0 1px 3px rgb(0 0 0 / 0.1); font-size: var(--fs-md); font-weight: var(--fw-semibold);
  pointer-events: auto; transition: transform 0.08s;
}
:is(.phone, .ipad) .sheet-foot > .grow { display: none; }
:is(.phone, .ipad) .sheet-foot > .btn-ghost, :is(.phone, .ipad) .sheet-foot > .btn-secondary,
:is(.phone, .ipad) .sheet-foot > .btn-ghost:hover:not(:disabled), :is(.phone, .ipad) .sheet-foot > .btn-secondary:hover:not(:disabled) { background: var(--ink); color: var(--surface); }
:is(.phone, .ipad) .sheet-foot > .btn-danger-ghost, :is(.phone, .ipad) .sheet-foot > .btn-danger-ghost:hover:not(:disabled) { background: var(--bad-soft); color: var(--bad); }
:is(.phone, .ipad) .sheet-foot > .btn::before { content: ''; position: absolute; inset: calc(var(--sp-2) * -1) calc(var(--sp-2) / -2) calc(var(--sp-3) * -1); }
:is(.phone, .ipad) .sheet-foot > .btn:first-of-type::before { left: calc(var(--sp-4) * -1); }
:is(.phone, .ipad) .sheet-foot > .btn:last-of-type::before { right: calc(var(--sp-4) * -1); }
:is(.phone, .ipad) .sheet-foot > .btn:active:not(:disabled) { transform: scale(0.97); }
:is(.phone, .ipad) .sheet-foot > .btn:disabled { opacity: 1; background: var(--pill-press); color: var(--ink-3); box-shadow: none; }
/* (a touch screen has no pointer resting on a key: iPhone's Safari keeps :hover after a tap, so the keys keep their own
   colour and answer the finger with :active) */
:is(.phone, .ipad) .sheet-foot > .btn-primary:hover:not(:disabled), :is(.phone, .ipad) .ph-bar > .btn-primary:hover:not(:disabled) { background: var(--accent); }
:is(.phone, .ipad) .sheet-foot > .btn-primary:active:not(:disabled), :is(.phone, .ipad) .ph-bar > .btn-primary:active:not(:disabled) { background: var(--accent-2); }
:is(.phone, .ipad) .sheet-foot .btn-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* a dish's options (ModSheet from below): a group's name a row of the screen's shade with its line above; the options
   tiles two to a row from edge to edge, a line only between them, the last one alone the whole row; the chosen one
   tinted, its mark filled — no frame of its own (30 October, 10:10, the audit's proposal 5); the comment a row from
   edge to edge; the quantity one pill (the audit's proposal 4) — «−», how many (22 semibold), «+» — 56 high as the
   foot's pills, 16 from the edges. Three styles: 22 semibold (the dish, how many), 16 semibold (the options, the
   keys), 14 regular (the rest). */
:is(.phone, .ipad) .sheet-body.flush > .mod-group, :is(.phone, .ipad) .sheet-body.flush > .mod-row { margin: 0; }
:is(.phone, .ipad) .mod-group { gap: 0; }
:is(.phone, .ipad) .mod-title, :is(.phone, .ipad) .mod-row .field-label {
  display: flex; align-items: center; min-height: 44px; padding: 0 var(--sp-4); background: var(--bg); box-shadow: inset 0 1px 0 0 var(--line-2);
  font-size: var(--fs-sm); font-weight: var(--fw-regular); letter-spacing: 0; text-transform: none; color: var(--ink-3);
}
:is(.phone, .ipad) .sheet-body.flush > .mod-group:first-child .mod-title { box-shadow: none; }
:is(.phone, .ipad) .mod-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
:is(.phone, .ipad) .mod-opt {
  position: relative; min-width: 0; min-height: 64px; padding: var(--sp-3) var(--sp-4); border: 0; border-radius: 0; background: var(--surface);
  font-size: var(--fs-md); font-weight: var(--fw-semibold); text-align: left;
  box-shadow: inset 1px 0 0 0 var(--line-2), inset 0 1px 0 0 var(--line-2);
}
:is(.phone, .ipad) .mod-opt:nth-child(2n + 1) { box-shadow: inset 0 1px 0 0 var(--line-2); }
:is(.phone, .ipad) .mod-opt:last-child:nth-child(2n + 1) { grid-column: 1 / -1; }
:is(.phone, .ipad) .mod-opt.on { background: var(--accent-soft); }
:is(.phone, .ipad) .mod-opt.mod-alg.on { background: var(--bad-soft); }
:is(.phone, .ipad) .sheet-body.flush > .mod-alg-group { margin: 0; }
:is(.phone, .ipad) .mod-opt > span:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }
:is(.phone, .ipad) .mod-price { margin-left: auto; font-size: var(--fs-sm); font-weight: var(--fw-regular); }
:is(.phone, .ipad) .mod-row { display: block; }
:is(.phone, .ipad) .mod-row .field { gap: 0; }
:is(.phone, .ipad) .mod-row .field input { height: 56px; padding: 0 var(--sp-4); border: 0; border-radius: 0; box-shadow: inset 0 1px 0 0 var(--line-2); }
:is(.phone, .ipad) .mod-row .field input:focus { box-shadow: inset 0 1px 0 0 var(--line-2), inset 0 -2px 0 0 var(--accent); }
:is(.phone, .ipad) .mod-row .stepper {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-self: stretch; width: auto; height: 56px; margin: var(--sp-3) var(--sp-4);
  overflow: hidden; border-radius: var(--r-pill); background: var(--surface-3); outline: 0;
}
:is(.phone, .ipad) .mod-row .step-btn { width: auto; height: 56px; }
:is(.phone, .ipad) .mod-row .step-btn:active:not(:disabled) { background: var(--pill-press); }
:is(.phone, .ipad) .mod-row .step-val { display: grid; place-items: center; height: 56px; font-size: var(--fs-xl); font-weight: var(--fw-semibold); }
:is(.phone, .ipad) .mod-row .step-btn .ic { width: 22px; height: 22px; }

/* the bill for the guest (PrebillSheet from below): no card — the bill's rows from edge to edge: the restaurant and
   the table, the dishes, «Итого» on a row with its line above; then «Оплата по QR» a group's row, the hint, the QR with
   the amount beside it. Three styles: 22 semibold (the title, the totals), 16 semibold (the restaurant, the dishes,
   their sums, the keys), 14 regular (the rest). */
:is(.phone, .ipad) .sheet-body.flush > .bill, :is(.phone, .ipad) .sheet-body.flush > .prebill-ips { width: 100%; margin: 0; }
:is(.phone, .ipad) .sheet-body.flush > .bill { gap: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
:is(.phone, .ipad) .bill-head { padding: var(--sp-3) var(--sp-4); border-bottom: 0; }
:is(.phone, .ipad) .bill-head .strong { font-size: var(--fs-md); }
:is(.phone, .ipad) .bill-lines { gap: 0; padding: var(--sp-2) 0; box-shadow: inset 0 1px 0 0 var(--line-2); }
:is(.phone, .ipad) .bill-lines li { min-height: 36px; padding: var(--sp-2) var(--sp-4); align-items: baseline; font-weight: var(--fw-semibold); }
:is(.phone, .ipad) .bill-lines li .small, :is(.phone, .ipad) .bill-lines .muted { font-weight: var(--fw-regular); }
:is(.phone, .ipad) .bill-q { font-weight: var(--fw-semibold); }
:is(.phone, .ipad) .bill-disc { font-size: var(--fs-sm); }
:is(.phone, .ipad) .bill-disc li { font-weight: var(--fw-regular); }
:is(.phone, .ipad) .bill-total { align-items: center; min-height: var(--key-h); padding: 0 var(--sp-4); border-top: 0; box-shadow: inset 0 1px 0 0 var(--line-2); }
:is(.phone, .ipad) .bill-row, :is(.phone, .ipad) .bill-guest { padding: var(--sp-2) var(--sp-4); }
:is(.phone, .ipad) .bill-guest { border-top: 0; box-shadow: inset 0 1px 0 0 var(--line-2); }
:is(.phone, .ipad) .prebill-ips { gap: 0; }
:is(.phone, .ipad) .prebill-ips > .field-label {
  display: flex; align-items: center; min-height: 44px; padding: 0 var(--sp-4); background: var(--bg); box-shadow: inset 0 1px 0 0 var(--line-2);
  font-size: var(--fs-sm); font-weight: var(--fw-regular); letter-spacing: 0; text-transform: none; color: var(--ink-3);
}
:is(.phone, .ipad) .prebill-ips > p { padding: var(--sp-3) var(--sp-4) 0; }
:is(.phone, .ipad) .prebill-ips .ips-panel { padding: var(--sp-3) var(--sp-4) var(--sp-4); border: 0; border-radius: 0; background: var(--surface); }
:is(.phone, .ipad) .ips-wait { font-size: var(--fs-sm); font-weight: var(--fw-regular); }
/* (the audit: a stepper's number bold — a fourth style on the stop list's limit) */
:is(.phone, .ipad) .step-val { font-weight: var(--fw-semibold); }
:is(.phone, .ipad) .ips-side .btn { font-size: var(--fs-md); }

/* keys one under another in a sheet (leaving an order with new dishes; 03:14: pills too): pills 56 high, 16 from the
   sheet's edges, 8 apart, the last above the home bar; the colours of the foot's pills — «Отправить и выйти» the accent,
   «Удалить и выйти» red on its light shade, «Остаться» ink */
:is(.phone, .ipad) .sheet-body.flush > .key-stack, :is(.phone, .ipad) .sheet-body.flush > .col-gap.key-stack { gap: var(--sp-2); margin: 0; padding: var(--sp-3) var(--sp-4) max(var(--sp-3), env(safe-area-inset-bottom, 0px)); }
:is(.phone, .ipad) .key-stack > .btn {
  height: 56px; min-height: 0; border: 0; border-radius: var(--r-pill); box-shadow: 0 4px 14px rgb(0 0 0 / 0.16), 0 1px 3px rgb(0 0 0 / 0.1);
  font-size: var(--fs-md); font-weight: var(--fw-semibold); transition: transform 0.08s;
}
:is(.phone, .ipad) .key-stack > .btn-ghost, :is(.phone, .ipad) .key-stack > .btn-secondary,
:is(.phone, .ipad) .key-stack > .btn-ghost:hover:not(:disabled), :is(.phone, .ipad) .key-stack > .btn-secondary:hover:not(:disabled) { background: var(--ink); color: var(--surface); }
:is(.phone, .ipad) .key-stack > .btn-danger-ghost, :is(.phone, .ipad) .key-stack > .btn-danger-ghost:hover:not(:disabled) { background: var(--bad-soft); color: var(--bad); }
:is(.phone, .ipad) .key-stack > .btn-primary:hover:not(:disabled) { background: var(--accent); }
:is(.phone, .ipad) .key-stack > .btn:active:not(:disabled) { transform: scale(0.97); }
/* a sheet with nothing in its body (a ready dish: its name on top, «Подано» below) */
:is(.phone, .ipad) .sheet-body.flush:empty { display: none; }

/* «Готово», as the PIN's screen: each table a block from edge to edge — its number a key (the ready tiles' green), the
   dishes beside it (16 semibold, their options 14 regular), how long they wait; «Подано» a key from edge to edge under
   them; a line between the tables. Three styles: 22 semibold (the header, the table's number), 16 semibold, 14
   regular. */
.rd-body { gap: 0; padding: 0; background: var(--surface); }
.rd-body > .empty { flex: none; padding: var(--sp-8) var(--sp-4); }
/* (30 October, 15:01, the owner: «Экран готово тоже надо привести к нашему стилю») nothing ready: no grey square with a
   bell and two lines in the middle of white — a tile of the screen's grid across its whole width, as tall as a table,
   its line on top as every tile's: the bell on top (24, ink), at the bottom «Пока ничего не готово» and under it, grey,
   when it shows up (14 regular, as the profile's tiles); the screen's white under it to the tab bar, its top line
   closing the row. Two styles on the screen: 22 semibold (the header), 14 regular. */
.rd-none {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; flex: none;
  height: max(calc(var(--key-h) * 1.5), 96px); padding: var(--sp-3) var(--sp-4); background: var(--surface);
  box-shadow: inset 0 1px 0 0 var(--line-2); color: var(--ink); font-size: var(--fs-sm); line-height: 18px;
}
.rd-none > .ic { flex: none; }
.rd-none-words { display: flex; flex-direction: column; }
.rd-none-hint { color: var(--ink-2); }
.phone .ready-card { gap: 0; padding: 0; border: 0; border-radius: 0; background: var(--surface); box-shadow: inset 0 1px 0 0 var(--line-2); }
.phone .ready-top { align-items: stretch; gap: 0; min-height: var(--key-h); }
.phone .ready-top:active { background: var(--surface-3); }
.phone .ready-n {
  align-self: stretch; width: var(--key-h); min-width: var(--key-h); height: auto; min-height: var(--key-h); border-radius: 0;
  font-size: var(--fs-xl); font-weight: var(--fw-semibold); letter-spacing: 0; box-shadow: inset 0 1px 0 0 var(--line-2);
}
.phone .ready-top > .grow { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: var(--sp-3) var(--sp-4); }
.phone .ready-line { padding: 0; font-weight: var(--fw-semibold); }
.phone .ready-line b { font-weight: var(--fw-semibold); }
.phone .ready-line .small { font-weight: var(--fw-regular); }
.phone .ready-age { align-self: center; padding: 0 var(--sp-4); font-weight: var(--fw-regular); }
.phone .ready-card > .btn {
  height: var(--key-h); min-height: 0; border: 0; border-radius: 0; font-size: var(--fs-md); font-weight: var(--fw-semibold);
}
.phone .ready-card > .btn:active:not(:disabled) { transform: none; filter: brightness(0.94); }

/* «Профиль», as the PIN's screen: blocks from edge to edge one under another, a line between them; then the rows of what
   is done here (.pf-row, below): the shifts (30 October, 10:09: a row as the others, the calendar behind it), the stop
   list, the language, another person, another device. Three styles: 22 semibold (the header, the name, the day's tips), 16 semibold, 14 regular. */
.pf-body { gap: 0; padding: 0; background: var(--surface); }
.pf-body > .key-stack { gap: 0; margin: 0; }
/* (30 October, 03:17, the owner: «Сверху вот у нас есть сетка наша, которая состоит из трех квадратов слева направо. Два
   квадрата я отвел бы под имя, фамилию и должность, а один квадрат, самый правый, я отвел бы под чаевые сегодня, а уже
   ниже пустил бы всю остальную информацию») the top row of the tables' grid, its tiles as tall as a table's: the
   person two of them — the name 22 semibold on top (two lines at most), the role and the restaurant 14 regular at the
   bottom; the day's tips the right one — the sum 22 semibold on top, «чаевые сегодня» at the bottom; a touch opens what
   they are made of. A line between the two, as between tables; the row's line under it is the next block's own. */
.phone .pf-top { display: grid; flex: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.phone .pf-top > .prof-card, .phone .pf-top > .my-tips {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 2px; min-width: 0;
  height: max(calc(var(--key-h) * 1.5), 96px); padding: var(--sp-3) var(--sp-4); border: 0; border-radius: 0; background: var(--surface);
  color: var(--ink); text-align: left;
}
.phone .pf-top > .prof-card { grid-column: span 2; }
.phone .pf-top > .my-tips { box-shadow: inset 1px 0 0 0 var(--line-2); font: inherit; cursor: pointer; }
.phone .pf-top > .my-tips:active { background: var(--surface-3); }
.phone .prof-name {
  display: -webkit-box; max-width: 100%; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  font-size: var(--fs-xl); font-weight: var(--fw-semibold); line-height: 28px; overflow-wrap: anywhere;
}
.phone .prof-role, .phone .my-tips-label { max-width: 100%; overflow: hidden; color: var(--ink-2); font-size: var(--fs-sm); font-weight: var(--fw-regular); line-height: 18px; white-space: nowrap; text-overflow: ellipsis; }
/* («чаевые сегодня» is wider than a third of the screen: in two lines, «чаевые / сегодня») */
.phone .my-tips-label { white-space: normal; }
.phone .pf-top .my-tips-v { display: flex; align-items: baseline; max-width: 100%; }
.phone .pf-top .my-tips-v .display { font-size: var(--fs-xl); font-weight: var(--fw-semibold); letter-spacing: 0; line-height: 28px; }
/* (30 October, 16:29, the owner: «Точно необходимо добавить сумму продаж за месяц») under the person's row the month's
   sales (two tiles) and the average bill (one), as tall: the sum 22 semibold on top, the words at the bottom; their
   line on top, between them a line, the next row's line under them */
.phone .pf-month { display: grid; flex: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.phone .pf-stat {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 2px; min-width: 0;
  height: max(calc(var(--key-h) * 1.5), 96px); padding: var(--sp-3) var(--sp-4); background: var(--surface);
  box-shadow: inset 1px 0 0 0 var(--line-2), inset 0 1px 0 0 var(--line-2);
}
.phone .pf-stat-wide { grid-column: span 2; box-shadow: inset 0 1px 0 0 var(--line-2); }
.phone .pf-stat-v { display: flex; align-items: baseline; max-width: 100%; min-width: 0; white-space: nowrap; }
.phone .pf-stat-v .display { overflow: hidden; font-size: var(--fs-xl); font-weight: var(--fw-semibold); letter-spacing: 0; line-height: 28px; text-overflow: ellipsis; }
.phone .pf-stat-label { max-width: 100%; color: var(--ink-2); font-size: var(--fs-sm); font-weight: var(--fw-regular); line-height: 18px; }
/* (the currency 4 after the sum: a flex box drops the space before it) */
.phone .pf-stat-v, .phone .pf-top .my-tips-v { column-gap: 4px; }
/* (13 November, Sales Force 1) «Мой заработок»: a row of the profile as the month's sales — the whole row one key, no
   frame of its own; pressed — its ground as a tile's */
.phone .pf-earn { width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.phone .pf-earn:active .pf-stat { background: var(--surface-2); }
.phone .pf-earn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* what it is made of: a row each — its name and what it is at the left, the sum at the right; the month's total and
   today's in bold; how to earn more under them; the words of the rules last */
:is(.phone, .ipad) .sheet-body.flush > .my-earn-sheet { margin: 0; }
:is(.phone, .ipad) .my-earn-rows { margin: 0; padding: 0; list-style: none; }
:is(.phone, .ipad) .my-earn-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 56px; padding: var(--sp-2) var(--sp-4); box-shadow: inset 0 -1px 0 0 var(--line-2); }
:is(.phone, .ipad) .my-earn-row.sub { min-height: 44px; padding-left: calc(var(--sp-4) * 2); color: var(--ink-2); }
:is(.phone, .ipad) .my-earn-l { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
:is(.phone, .ipad) .my-earn-n { font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 20px; }
:is(.phone, .ipad) .my-earn-row.sub .my-earn-n { font-weight: var(--fw-regular); }
:is(.phone, .ipad) .my-earn-w { color: var(--ink-2); font-size: var(--fs-sm); line-height: 18px; }
:is(.phone, .ipad) .my-earn-v { flex: none; font-size: var(--fs-md); font-variant-numeric: tabular-nums; }
:is(.phone, .ipad) .my-earn-row:is(.total, .today) .my-earn-v { font-weight: var(--fw-semibold); }
:is(.phone, .ipad) .my-earn-more { display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-3) var(--sp-4); font-size: var(--fs-sm); line-height: 20px; box-shadow: inset 0 -1px 0 0 var(--line-2); }
:is(.phone, .ipad) .my-earn-more-h { font-size: var(--fs-md); font-weight: var(--fw-semibold); }
:is(.phone, .ipad) .my-earn-sheet > p { margin: 0; padding: var(--sp-3) var(--sp-4); font-size: var(--fs-sm); }
/* what the day's tips are made of, in a sheet: one line (16 semibold), then the words of the rules (14 regular) */
:is(.phone, .ipad) .my-tips-sheet > .my-tips-sub { padding: var(--sp-4); font-size: var(--fs-md); font-weight: var(--fw-semibold); }
:is(.phone, .ipad) .my-tips-sheet > p { margin: 0; padding: var(--sp-3) var(--sp-4); box-shadow: inset 0 1px 0 0 var(--line-2); font-size: var(--fs-sm); }
/* (the restaurant beside the role, in the line's own letters) */
.phone .prof-card .prof-loc { display: inline; padding: 0; color: inherit; font: inherit; }
/* (30 October, 11:25, the owner: «давай профиль попробуем сделать тоже квадратами, как в столах») under the person's row
   what is done here — the shifts, the stop list, the language, another person, another device — tiles of the same grid:
   three to a row, as tall as a table's, a line only between them (each drawn inside the tile after it), a row left
   short closed with blank tiles. An icon on top (24, ink); at the bottom its name (14 regular, two lines at most) and
   under it what it is now (14 regular, grey: the next shift, the language); the dishes on the stop list a red count at
   the corner, as a table's ready ones. Under the last row the screen's white down to the tab bar, its top line closing
   the row (00:47: the columns' lines end on it). */
.phone .pf-grid { display: grid; flex: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.phone .pf-tile {
  height: max(calc(var(--key-h) * 1.5), 96px); background: var(--surface);
  box-shadow: inset 1px 0 0 0 var(--line-2), inset 0 1px 0 0 var(--line-2), var(--rim, 0 0 #0000);
}
.phone .pf-grid > [data-rf] { box-shadow: inset 0 1px 0 0 var(--line-2), var(--rim, 0 0 #0000); }
.phone .pf-tile {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 2px; min-width: 0;
  padding: var(--sp-3) var(--sp-4); border: 0; border-radius: 0; color: var(--ink); text-align: left; cursor: pointer;
  font: inherit; font-size: var(--fs-sm); font-weight: var(--fw-regular); line-height: 18px;
}
.phone .pf-tile:active { background: var(--surface-3); }
.phone .pf-tile > .ic { flex: none; }
.phone .pf-tile-words { display: flex; flex-direction: column; max-width: 100%; min-width: 0; }
.phone .pf-tile-label { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.phone .pf-tile-val { overflow: hidden; color: var(--ink-2); white-space: nowrap; text-overflow: ellipsis; }
.phone .pf-badge {
  position: absolute; top: var(--sp-3); right: var(--sp-4); display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px;
  border-radius: var(--r-pill); background: var(--bad); color: var(--bad-ink); font-size: var(--fs-sm); line-height: 1;
}
.phone .pf-fill { flex: 1 0 auto; min-height: var(--tab-room); box-shadow: inset 0 1px 0 0 var(--line-2); }
/* (0.64; 30 October, 16:41, the owner of the twelve achievements: «Я бы добавлял бы все») «Ачивки», a sheet of two zones:
   the twelve as the profile's tiles (three to a row, four rows; a line only between them, none under the sheet's head),
   a little taller for the medal — its icon (20) in a ring (40): the track grey, the arc the accent as far as the period
   has gone toward it; an earned one the tile amber, as a table's state is its colour (the ring and the icon amber, the
   arc full when earned this time), how many times at the corner; «скоро» ones the track dashed. The touched one a shade
   deeper; under the grid its name (16 semibold), the rule and where it stands (14 regular). */
.phone .sheet-body.flush > .ach-grid, .phone .sheet-body.flush > .ach-detail { margin: 0; }
.phone .ach-grid { display: grid; flex: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.phone .ach-tile { height: max(calc(var(--key-h) * 1.75), 116px); background: var(--surface); box-shadow: inset 1px 0 0 0 var(--line-2), inset 0 1px 0 0 var(--line-2); }
.phone .ach-grid > :nth-child(3n + 1) { box-shadow: inset 0 1px 0 0 var(--line-2); }
.phone .ach-grid > :nth-child(2), .phone .ach-grid > :nth-child(3) { box-shadow: inset 1px 0 0 0 var(--line-2); }
.phone .ach-grid > :first-child { box-shadow: none; }
.phone .ach-tile.got { background: var(--warn-soft); }
/* (the touched one a shade deeper, as a pressed key: a ring around it would lie beside the grid's lines) */
.phone .ach-tile.sel, .phone .ach-tile:active { background: var(--surface-3); }
.phone .ach-tile.got.sel, .phone .ach-tile.got:active { background: color-mix(in oklab, var(--warn-soft) 80%, var(--warn)); }
.phone .ach-medal { position: relative; display: grid; flex: none; place-items: center; width: 40px; height: 40px; color: var(--accent); }
.phone .ach-medal > .ach-ring { position: absolute; inset: 0; overflow: visible; }
.phone .ach-medal > .ic { color: var(--ink-2); }
.phone .ach-track, .phone .ach-arc { fill: none; stroke-width: 3; }
.phone .ach-track { stroke: var(--line); }
.phone .ach-arc { stroke: currentColor; stroke-linecap: round; }
.phone .ach-tile.got .ach-medal, .phone .ach-tile.got .ach-medal > .ic { color: var(--warn); }
.phone .ach-tile.got .ach-track { stroke: color-mix(in oklab, var(--warn) 24%, transparent); }
.phone .ach-tile.off .ach-track { stroke-dasharray: 3 4; }
.phone .ach-tile.off .ach-medal > .ic { color: var(--ink-3); }
.phone .ach-times { position: absolute; top: var(--sp-3); right: var(--sp-4); color: var(--warn); line-height: 18px; }
.phone .ach-detail {
  display: flex; flex-direction: column; gap: var(--sp-1); min-height: calc(22px + 3 * 18px + 2 * 18px + var(--sp-3) + var(--sp-4) + 2 * var(--sp-1));
  padding: var(--sp-3) var(--sp-4) var(--sp-4); box-shadow: inset 0 1px 0 0 var(--line-2); font-size: var(--fs-sm); line-height: 18px;
}
.phone .ach-detail-name { font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; }
.phone .ach-detail-now { color: var(--ink-2); }

/* ---------- the phone's other sheets, as the PIN's screen: a discount, the guest's card, the stop list ----------
   Their bodies flush: a group's name a row of the screen's shade with its line above (14 regular, as everywhere); the
   rows from edge to edge with a line only between them; the fields and the search rows from edge to edge; a choice of
   two (the stop list's «Все блюда · Стоп и лимиты») two keys, the chosen one filled with the accent. Three styles: 22
   semibold (the title; a PIN's digits), 16 semibold (the rows' names, the keys), 14 regular (the rest). */
:is(.phone, .ipad) .sheet-body.flush > .col-gap, :is(.phone, .ipad) .sheet-body.flush > .pay-list, :is(.phone, .ipad) .sheet-body.flush > .approve,
:is(.phone, .ipad) .sheet-body.flush > .stop-list, :is(.phone, .ipad) .sheet-body.flush > .muted { margin: 0; gap: 0; }
:is(.phone, .ipad) .sheet-body.flush > .muted, :is(.phone, .ipad) .sheet-body.flush .col-gap > .muted { padding: var(--sp-3) var(--sp-4); font-size: var(--fs-sm); }
:is(.phone, .ipad) .disc-group > .field-label, :is(.phone, .ipad) .sheet-body.flush .field > .field-label, :is(.phone, .ipad) .approve > .field-label,
:is(.phone, .ipad) .stop-head, :is(.phone, .ipad) .stop-cat-h, :is(.phone, .ipad) .stop-limit > .field-label {
  display: flex; align-items: center; min-height: 44px; padding: 0 var(--sp-4); background: var(--bg); box-shadow: inset 0 1px 0 0 var(--line-2);
  font-size: var(--fs-sm); font-weight: var(--fw-regular); letter-spacing: 0; text-transform: none; color: var(--ink-3);
}
:is(.phone, .ipad) .sheet-body.flush > .col-gap > :first-child > .field-label:first-child, :is(.phone, .ipad) .sheet-body.flush > .approve > .field-label:first-child,
:is(.phone, .ipad) .sheet-body.flush > .col-gap > .field:first-child > .field-label { box-shadow: none; }
/* a discount: what is on the bill, the guest's coupons, what works now — rows; the choices — rows as tall as a key */
:is(.phone, .ipad) .disc-group { gap: 0; }
:is(.phone, .ipad) .disc-group > .muted.small { padding: var(--sp-2) var(--sp-4); }
:is(.phone, .ipad) .disc-line { gap: var(--sp-3); min-height: 56px; padding: var(--sp-3) var(--sp-4); box-shadow: inset 0 1px 0 0 var(--line-2); font-weight: var(--fw-semibold); }
:is(.phone, .ipad) .disc-line .small { font-weight: var(--fw-regular); }
:is(.phone, .ipad) .disc-line.coupon { border-radius: 0; }
:is(.phone, .ipad) .disc-line .btn { min-height: 44px; font-size: var(--fs-md); }
:is(.phone, .ipad) .disc-choices { grid-template-columns: minmax(0, 1fr); padding: 0; }
:is(.phone, .ipad) .disc-choice {
  flex-direction: row; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: var(--key-h); padding: var(--sp-3) var(--sp-4);
  border: 0; border-radius: 0; box-shadow: inset 0 1px 0 0 var(--line-2);
}
:is(.phone, .ipad) .disc-choice:hover { background: var(--surface); }
:is(.phone, .ipad) .disc-choice:disabled { opacity: 0.5; }
:is(.phone, .ipad) .disc-choice .st { gap: var(--sp-1); padding: 0; background: none; box-shadow: none; outline: 0; color: var(--ink-3); font-size: var(--fs-sm); font-weight: var(--fw-regular); }
/* choosing dishes for a discount */
:is(.phone, .ipad) .sheet-body.flush > .pay-list { max-height: none; border: 0; border-radius: 0; }
:is(.phone, .ipad) .sheet-body.flush .pay-line { min-height: 56px; padding: var(--sp-3) var(--sp-4); border: 0; border-radius: 0; box-shadow: inset 0 1px 0 0 var(--line-2); font-weight: var(--fw-semibold); }
:is(.phone, .ipad) .sheet-body.flush .pay-line:first-child { box-shadow: none; }
:is(.phone, .ipad) .sheet-body.flush .pay-line .small { font-weight: var(--fw-regular); }
/* a PIN to confirm (the discount for staff, a dish taken back) and the PIN under Face ID: the keys as the PIN's screen
   (30 October, 14:56, the owner: «Кнопки надо привести к нашему стандарту») — from edge to edge, every row one height,
   the block down to the screen's very edge (the home indicator over the last row's lower part), 28 semibold, the eye
   under 7, no pill under them */
:is(.phone, .ipad) .sheet-body.flush > .approve { align-items: stretch; }
:is(.phone, .ipad) .approve-who { padding: var(--sp-3) var(--sp-4) 0; }
:is(.phone, .ipad) .approve .pin { gap: var(--sp-3); padding: var(--sp-4) 0 0; }
:is(.phone, .ipad) .approve .pin-grid { width: 100%; padding: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
:is(.phone, .ipad) .approve .pin-key {
  width: auto; height: var(--key-h); border-radius: 0; font-size: var(--fs-2xl); font-weight: var(--fw-semibold);
  box-shadow: inset 1px 0 0 0 var(--tile-line), inset 0 1px 0 0 var(--tile-line);
}
:is(.phone, .ipad) .approve .pin-key:nth-child(3n + 1) { box-shadow: inset 0 1px 0 0 var(--tile-line); }
:is(.phone, .ipad) .approve .pin-extra { color: var(--ink-2); }
:is(.phone, .ipad) .approve .pin-eye[aria-pressed="true"] { color: var(--accent); }
:is(.phone, .ipad) .approve .pin-grid > span { background: var(--surface); box-shadow: inset 0 1px 0 0 var(--tile-line); }
:is(.phone, .ipad) .approve .demo-pins { max-width: none; padding: var(--sp-3) var(--sp-4); box-shadow: inset 0 1px 0 0 var(--line-2); }
:is(.phone, .ipad) .approve .demo-pins b { font: inherit; }
/* the guest's card: the search a row from edge to edge, the guests rows; a new guest: the fields rows, the consents rows */
:is(.phone, .ipad) .sheet-body.flush .col-gap > .search { height: 56px; padding: 0 var(--sp-4); border: 0; border-radius: 0; box-shadow: inset 0 1px 0 0 var(--line-2); }
:is(.phone, .ipad) .sheet-body.flush > .col-gap > .search:first-child { box-shadow: none; }
:is(.phone, .ipad) .sheet-body.flush .guest-list { border: 0; border-radius: 0; }
:is(.phone, .ipad) .sheet-body.flush .guest-row { min-height: 56px; padding: var(--sp-2) var(--sp-4); border-bottom: 0; box-shadow: inset 0 1px 0 0 var(--line-2); }
:is(.phone, .ipad) .sheet-body.flush .lvl-tag { padding: 0; background: none; font-size: var(--fs-sm); font-weight: var(--fw-regular); color: var(--ink-2); }
:is(.phone, .ipad) .sheet-body.flush .guest-card { border-radius: 0; }
:is(.phone, .ipad) .sheet-body.flush .field { gap: 0; }
:is(.phone, .ipad) .sheet-body.flush .field input { height: 56px; padding: 0 var(--sp-4); border: 0; border-radius: 0; box-shadow: inset 0 1px 0 0 var(--line-2); }
:is(.phone, .ipad) .sheet-body.flush .field input:focus { box-shadow: inset 0 1px 0 0 var(--line-2), inset 0 -2px 0 0 var(--accent); }
:is(.phone, .ipad) .sheet-body.flush .check-row { min-height: 56px; padding: var(--sp-3) var(--sp-4); border: 0; border-radius: 0; box-shadow: inset 0 1px 0 0 var(--line-2); }
/* the stop list. (30 October, 10:10, the owner took the audit's proposal 2) «Все блюда · Стоп и лимиты» two pills on a
   row of the screen's shade, as the halls on «Столы»: 36 high to the eye (14 regular), the chosen one filled with the
   accent; to the finger the row's whole height, to the edges and halfway to the other */
:is(.phone, .ipad) .stop-tools { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0; padding: 0; }
:is(.phone, .ipad) .stop-tools .search { flex: none; height: 56px; padding: 0 var(--sp-4); border: 0; border-radius: 0; }
:is(.phone, .ipad) .stop-tools .seg {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); min-height: 0; padding: 10px var(--sp-4); border-radius: 0;
  background: var(--bg); box-shadow: inset 0 1px 0 0 var(--line-2);
}
:is(.phone, .ipad) .stop-tools .seg-btn, :is(.phone, .ipad) .stop-tools .seg-btn + .seg-btn {
  justify-content: center; height: 36px; min-height: 0; padding: 0 var(--sp-3); border-radius: var(--r-pill); background: var(--pill); color: var(--ink);
  font-size: var(--fs-sm); font-weight: var(--fw-regular); box-shadow: none;
}
:is(.phone, .ipad) .stop-tools .seg-btn:active:not(.on) { background: var(--pill-press); }
:is(.phone, .ipad) .stop-tools .seg-btn::before, :is(.phone, .ipad) .stop-tools .seg-btn.on::before {
  display: block; inset: -10px calc(var(--sp-2) / -2); border-radius: 0; background: none; box-shadow: none;
}
:is(.phone, .ipad) .stop-tools .seg-btn:first-child::before { left: calc(var(--sp-4) * -1); }
:is(.phone, .ipad) .stop-tools .seg-btn:last-child::before { right: calc(var(--sp-4) * -1); }
:is(.phone, .ipad) .stop-tools .seg-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
:is(.phone, .ipad) .stop-tools .seg-btn:focus-visible::before { outline: 0; }
:is(.phone, .ipad) .stop-tools .seg-btn.on { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
:is(.phone, .ipad) .stop-tools .seg-badge { font-size: var(--fs-sm); font-weight: var(--fw-regular); }
:is(.phone, .ipad) .stop-tools .seg-btn.on .seg-badge { background: var(--accent-ink); color: var(--accent); }
:is(.phone, .ipad) .stop-head { display: grid; border-bottom: 0; }
:is(.phone, .ipad) .stop-item { padding: 0 var(--sp-4); border-bottom: 0; box-shadow: inset 0 1px 0 0 var(--line-2); }
:is(.phone, .ipad) .stop-row { min-height: 56px; font-weight: var(--fw-semibold); }
:is(.phone, .ipad) .stop-row .st { padding: 0; background: none; box-shadow: none; outline: 0; font-size: var(--fs-sm); font-weight: var(--fw-regular); }
:is(.phone, .ipad) .stop-limit-btn { font-weight: var(--fw-regular); }
:is(.phone, .ipad) .stop-limit { margin: 0 calc(var(--sp-4) * -1); padding: 0 0 var(--sp-3); gap: var(--sp-3); }
:is(.phone, .ipad) .stop-limit-row { padding: 0 var(--sp-4); }
/* (the audit's proposal 2) a dish's limit: «− 5 +» a pill of the grey, «Сохранить» and «Без лимита» pills, 44 high */
:is(.phone, .ipad) .stop-limit-row .stepper { height: 44px; border-radius: var(--r-pill); outline: 0; background: var(--surface-3); }
:is(.phone, .ipad) .stop-limit-row .step-btn:active:not(:disabled) { background: var(--pill-press); }
:is(.phone, .ipad) .stop-limit-row .btn { height: 44px; min-height: 0; padding: 0 var(--sp-5); border: 0; border-radius: var(--r-pill); font-size: var(--fs-md); }
:is(.phone, .ipad) .stop-limit-row .btn-ghost, :is(.phone, .ipad) .stop-limit-row .btn-ghost:hover:not(:disabled) { background: var(--surface-3); color: var(--ink); }
:is(.phone, .ipad) .stop-list > .muted { padding: var(--sp-4); font-size: var(--fs-sm); }

/* (22:41, the owner of «Профиль»: «каша… из элементов и текста. Нам необходимо это стандартизировать») one row for
   everything done on a screen: from edge to edge, as tall as 56, an icon (22, grey), the row's name (16 semibold),
   what it is now (14 regular, grey) at the right and «›»; a line between rows; the chosen one in a list (the language)
   with a check instead of «›» */
.pf-rows { display: flex; flex-direction: column; }
.pf-row {
  display: flex; align-items: center; gap: var(--sp-3); width: 100%; min-height: 56px; padding: 0 var(--sp-4);
  border: 0; border-radius: 0; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer;
  font-size: var(--fs-md); font-weight: var(--fw-semibold); box-shadow: inset 0 1px 0 0 var(--line-2);
}
.pf-row > .ic:first-child { flex: none; color: var(--ink-2); }
.pf-row-label { flex: 1; min-width: 0; }
.pf-row-val { flex: none; color: var(--ink-2); font-size: var(--fs-sm); font-weight: var(--fw-regular); }
.pf-row[data-n] .pf-row-val { color: var(--bad); }
.pf-row-go { flex: none; color: var(--ink-3); }
.pf-row.on .pf-row-go { color: var(--accent); }
.pf-row:active { background: var(--surface-3); }
:is(.phone, .ipad) .sheet-body.flush > .pf-rows { margin: 0; }
:is(.phone, .ipad) .sheet-body.flush > .pf-rows > .pf-row:first-child { box-shadow: none; }

/* (the audit: «Готово» as the tables) a ready dish's row in the sheet: how many, the dish */
.rd-dish { cursor: default; }
.rd-q { flex: none; min-width: 32px; }
.rd-dish .small { font-weight: var(--fw-regular); }
/* (the audit: the menu as the tables) the dishes tiles two to a row from edge to edge, a line only between them; the
   dish's name on top (16 semibold), its price at the bottom (14 regular); how many in the accent circle at the top
   right, as a ready table's count; «−» under it at the bottom right.
   (23:26, the owner on his iPhone: «опять линии у нас друг на друга заходят… сбиваются кнопки минуса и плюса») every
   row one height — as tall as a table's, never less than two lines of a name and the price need (a dish's row,
   .row-item, would set a lower one: these rules name the grid to win over it); no line inside a tile — «−» is a key
   with no lines of its own, as it was in the rows; the circle and «−» on one upright axis (24 px from the tile's
   right), the circle level with the name's first line, «−» level with the price, so neither can come near the other */
.phone .mt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(max(calc(var(--key-h) * 1.5), 100px), auto); }
.phone .mt-grid > .mt-tile { position: relative; min-height: 0; background: var(--surface); }
/* (23:02, the owner on his iPhone: «Может быть, нам сделать… вертикальные разделители, также между блюдами… чтобы это
   выглядело как в меню столы») the line between the two columns too, as between the tables' tiles — each tile draws
   its lines inside its left and top */
.phone .mt-grid > .mt-tile { box-shadow: inset 1px 0 0 0 var(--line-2), inset 0 1px 0 0 var(--line-2), var(--rim, 0 0 #0000); }
.phone .mt-grid > .mt-tile[data-rf] { box-shadow: inset 0 1px 0 0 var(--line-2), var(--rim, 0 0 #0000); }
/* (and under the last row an empty block fills what is left down to the foot, as under the tables: its top line closes
   the last row, the line between the columns ends there — 00:47) */
.phone .rows:has(> .mt-grid) { display: flex; flex-direction: column; }
.phone .rows > .mt-grid { flex: none; }
.mt-fill { display: none; }
.phone .rows > .mt-fill { display: grid; flex: 1 0 auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.phone .mt-grid > .mt-tile .row-hit { align-items: stretch; width: 100%; height: 100%; padding: var(--sp-3); }
/* (a tile pressed: its own shade, under its lines — the key inside it would cover them) */
.phone .mt-grid > .mt-tile .row-hit:active { background: none; }
.phone .mt-grid > .mt-tile:has(> .row-hit:active:not([aria-disabled="true"])) { background: var(--surface-3); }
.phone .mt-grid > .mt-tile .row-main { justify-content: space-between; gap: var(--sp-2); }
/* the name 24 px a line; only its first line gives way to the circle (an empty float as wide as the circle and the
   room beside it), the next ones have the tile's whole width. (The audit of 30 October: in Serbian «Tost sa avokadom i
   poširanim jajetom» lost its third line, on an iPhone SE «Датская слойка с ванильным кремом» its fourth) up to four
   lines — the row grows for them, both its tiles with it */
.phone .mt-grid > .mt-tile .row-name { display: block; max-height: 96px; overflow: hidden; line-height: 24px; }
.phone .mt-grid > .mt-tile .row-name::before { content: ''; float: right; width: 36px; height: 24px; }
/* the price one line, 20 px; with «−» it stops before the key */
.phone .mt-grid > .mt-tile .row-sub { overflow: hidden; line-height: 20px; white-space: nowrap; text-overflow: ellipsis; }
.phone .mt-grid > .mt-tile.has-less .row-sub { padding-right: 40px; }
/* how many: the circle of a ready table's count — 24 px, at the tile's corner as the name's first line */
.phone .mt-grid > .mt-tile .row-count {
  position: absolute; top: var(--sp-3); right: var(--sp-3); min-width: 24px; height: 24px; padding: 0 6px; line-height: 1; pointer-events: none;
}
/* «−» (30 October, 10:10, the owner took the audit's proposal 13): a round key, as the order's pills — a circle of the
   pills' white (grey at night) with a soft shadow, 40 across, its middle on the count's axis (28 from the tile's right)
   and at the price's height; to the finger the tile's corner, 56 × 56 */
.phone .mt-grid > .mt-tile .row-less {
  position: absolute; right: 0; bottom: 0; z-index: 1; display: grid; place-items: center;
  width: 56px; height: 56px; padding: 0; background: none; box-shadow: none;
}
.phone .mt-grid > .mt-tile .row-less::before {
  content: ''; position: absolute; right: var(--sp-2); bottom: var(--sp-2); z-index: -1; width: 40px; height: 40px;
  border-radius: 50%; background: var(--pill); box-shadow: 0 1px 4px rgb(0 0 0 / 0.16);
}
.phone .mt-grid > .mt-tile .row-less:active { background: none; }
.phone .mt-grid > .mt-tile .row-less:active::before { background: var(--pill-press); }
.phone .mt-grid > .mt-tile.has { background: var(--accent-soft); }
/* (a dish on the stop list: its words pale — not its lines, which stay as every tile's) */
.phone .mt-grid > .mt-tile.stopped { opacity: 1; }
.phone .mt-grid > .mt-tile.stopped .row-hit { opacity: 0.5; }

/* (the audit: an order with less text) a dish's state in words only where the waiter acts on it — «Готово» (its line
   green) and «Готовится»; sent and served lines without a word, a served one grey */
.phone .po-body .line .st-sent, .phone .po-body .line .st-served { display: none; }
.phone .po-body .line-served { color: var(--ink-3); }
.phone .po-body .line-served .line-mods, .phone .po-body .line-served .money-u { color: var(--ink-3); }

.pt-badge {
  position: absolute; top: var(--sp-3); right: var(--sp-3); display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px;
  border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: var(--fw-regular); line-height: 1;
}
.pt-badge.b-ready { background: var(--ok); color: var(--ok-ink); }
.pt-badge.b-bill { padding: 0; background: none; color: var(--bill); }
.pt-ready { background: var(--ok-soft); }
.pt-bill { background: var(--bill-soft); }
.pt-free .pt-n { color: var(--ink-2); }
.pt-free .pt-meta { color: var(--ink-3); }
.ptable.other .pt-n { color: var(--ink-2); }
.ptable.other .pt-meta, .ptable.other .pt-sum { color: var(--ink-3); }

.tabbar { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; flex: none; padding-bottom: env(safe-area-inset-bottom, 0px); border-top: 1px solid var(--line); background: var(--surface); }
/* (30 October, 02:19, the owner: «меню наше основное, которое внизу из трех пунктов, сделать тоже в формате одной большой
   пилюли, внутри которой выделен активный пункт. И когда переключаешься на другой пункт, он как бы перетекает из первого
   во второй») the tab bar one big pill hanging over the screen, as the order's foot: 16 from the screen's edges, above
   the home bar, 64 high, a soft shadow; the screen goes on under it and scrolls up clear of it. Inside, the three tabs
   (the icon and its word in the middle of each, 14 regular) and under the chosen one the lens: a pill of the accent,
   56 high as the order's pills, the chosen tab's icon and word white on it. Going to another tab the lens flows: the edge
   on the side it goes runs ahead with a little overshoot, the other follows a moment later, the lens a little thinner on
   the way; the words change their colour as the lens comes. To the finger a tab reaches the screen's edges. */
.phone { --tab-top: calc(64px + max(var(--sp-3), env(safe-area-inset-bottom, 0px))); --tab-room: calc(var(--tab-top) + var(--fade-h)); }
.phone .tabbar {
  position: absolute; left: var(--sp-4); right: var(--sp-4); bottom: max(var(--sp-3), env(safe-area-inset-bottom, 0px)); z-index: 3;
  height: 64px; padding: var(--sp-1); border-top: 0; border-radius: var(--r-pill);
  background: var(--pill); box-shadow: 0 4px 14px rgb(0 0 0 / 0.16), 0 1px 3px rgb(0 0 0 / 0.1);
}
.phone .tab {
  position: relative; z-index: 1; justify-content: center; gap: 2px; height: 56px; padding: 0; border-radius: var(--r-pill);
  color: var(--ink-2); line-height: 16px; transition: color 0.15s;
}
.phone .tab.on { color: var(--accent-ink); transition: color 0.18s 0.1s; }
.phone .tab::before { content: ''; position: absolute; inset: calc(var(--sp-3) * -1) calc(var(--sp-1) / -2) calc(var(--sp-4) * -1); }
.phone .tab:first-of-type::before { left: calc(var(--sp-5) * -1); }
.phone .tab:last-of-type::before { right: calc(var(--sp-5) * -1); }
/* (the lens runs in a track as round as the bar: a run past the end is cut by the bar's own edge, never outside it) */
.tab-track { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.tab-lens {
  position: absolute; top: var(--sp-1); bottom: var(--sp-1);
  left: calc(var(--sp-1) + var(--i, 0) * (100% - 2 * var(--sp-1)) / var(--n, 3));
  right: calc(var(--sp-1) + (var(--n, 3) - 1 - var(--i, 0)) * (100% - 2 * var(--sp-1)) / var(--n, 3));
  border-radius: var(--r-pill); background: var(--accent);
  transition: right 0.26s cubic-bezier(0.3, 1.25, 0.5, 1), left 0.34s cubic-bezier(0.5, 0, 0.2, 1) 0.06s;
}
.tabbar[data-dir="l"] .tab-lens { transition: left 0.26s cubic-bezier(0.3, 1.25, 0.5, 1), right 0.34s cubic-bezier(0.5, 0, 0.2, 1) 0.06s; }
.tabbar[data-flow="a"] .tab-lens { animation: lens-a 0.4s ease-in-out; }
.tabbar[data-flow="b"] .tab-lens { animation: lens-b 0.4s ease-in-out; }
@keyframes lens-a { 40% { top: 7px; bottom: 7px; } }
@keyframes lens-b { 40% { top: 7px; bottom: 7px; } }
@media (prefers-reduced-motion: reduce) { .tab-lens, .phone .tab { transition: none !important; animation: none !important; } }
/* the count of what is ready: a ring of the bar's colour between it and the bell, on the lens too (the audit: a blue ring
   on the blue lens left the green circle no edge) */
.phone .tab-badge { box-shadow: 0 0 0 2px var(--pill); }
/* the room under the last thing on a screen with the tab bar: the bar, the home bar's room under it, and the fade above
   it (28) */
.phone:has(> .tabbar) .pt-body > .pt-fill { min-height: var(--tab-room); }
.phone:has(> .tabbar) .rd-body::after { content: ''; flex: none; height: var(--tab-room); }
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: var(--sp-2) 0 var(--sp-3);
  border: 0; background: none; color: var(--ink-3); font-size: var(--fs-sm); font-weight: var(--fw-regular); cursor: pointer;
}
.tab.on { color: var(--accent); }
.tab-ic { position: relative; display: inline-flex; }
/* (14 November, 15:31, the owner: «кое-где съехавшие пилюли») the count off the icon's corner: on the iPad's «Dostava»
   the scooter's wide glyph went under it */
.tab-badge {
  position: absolute; top: -9px; left: calc(100% - 3px); right: auto; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--r-pill); background: var(--ok); color: var(--ok-ink); font-size: var(--fs-sm); font-weight: var(--fw-regular); line-height: 1;
}
.ph-bar {
  display: flex; flex: none; align-items: center; gap: var(--sp-3); padding: var(--sp-3);
  padding-bottom: max(var(--sp-3), env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--surface);
}
.ph-bar > .btn { flex: 1; }
.ph-bar-info { flex: 1; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; }
.ph-total { display: flex; align-items: baseline; justify-content: space-between; padding: var(--sp-1) var(--sp-1) 0; font-weight: var(--fw-semibold); }

/* ---------- the order, built as the PIN's screen is ----------
   Two zones: the bill — its lines from edge to edge, a line only between them (each drawn inside the line after it),
   as the tables' tiles; a dish ready — its line green, as a ready table's tile; a dish's state in words of its colour,
   no pill; a course's name a row of the screen's own shade — and over the bill two pills, above the home bar (01:41,
   02:03). Three styles of letters: 22 semibold (the table, the total), 16 semibold (the dishes, their sums, the foot's
   pills), 14 regular (all the rest, the header's pills too). */
.po-body { gap: 0; padding: 0; background: var(--surface); }
.po-body > .empty { flex: none; padding: var(--sp-8) var(--sp-4); }
.phone .po-body .course-head {
  min-height: 44px; padding: 0 var(--sp-4); background: var(--bg); box-shadow: inset 0 1px 0 0 var(--line-2);
  font-size: var(--fs-sm); font-weight: var(--fw-regular); letter-spacing: 0; text-transform: none; color: var(--ink-3);
}
.phone .po-body .course-fire { min-height: 0; height: 44px; margin-right: calc(var(--sp-4) * -1); border-radius: 0; font-size: var(--fs-sm); font-weight: var(--fw-regular); }
.phone .po-body .line {
  min-height: var(--key-h); padding: var(--sp-3) var(--sp-4); border-radius: 0; background: var(--surface);
  box-shadow: inset 0 1px 0 0 var(--line-2);
}
.phone .po-body button.line:hover:not(:disabled) { background: var(--surface); }
.phone .po-body button.line:active:not(:disabled) { background: var(--surface-3); }
.phone .po-body .line-ready, .phone .po-body button.line-ready:hover:not(:disabled) { background: var(--ok-soft); }
/* (the dish's name starts where the header's title does: 16 + 44 + 12 = 72, past the line of «‹» at 56) */
.phone .po-body .line-qty { min-width: 44px; font-weight: var(--fw-semibold); }
.phone .po-body .line-sum { font-weight: var(--fw-semibold); }
/* (30 October, 10:10, the owner took the audit's proposal 7) a dish's comment in the text's ink, in the quotes of the
   phone's language — not the amber of «Готовится», which is a dish's state */
.phone .po-body .line-comment { color: var(--ink); font-weight: var(--fw-regular); }
.phone .po-body .line-comment::before { content: open-quote; }
.phone .po-body .line-comment::after { content: close-quote; }
/* (an allergy: red and semibold, «Аллергия: орехи» without the quotes — the kitchen's check, 2) */
.phone .po-body .line-comment.line-alg { color: var(--bad); font-weight: var(--fw-semibold); }
.phone .po-body .line-comment.line-alg::before, .phone .po-body .line-comment.line-alg::after { content: none; }
.phone[lang="ru"] { quotes: '«' '»' '„' '“'; }
.phone[lang="sr"] { quotes: '„' '”' '‘' '’'; }
.phone[lang="en"] { quotes: '“' '”' '‘' '’'; }
.phone .po-body .line-side { gap: 2px; }
.phone .po-body .line .st { padding: 0; border-radius: 0; background: none; box-shadow: none; outline: 0; font-size: var(--fs-sm); font-weight: var(--fw-regular); line-height: 20px; }
.phone .po-body .line-draft { margin: 0; padding: var(--sp-3) var(--sp-4); border-radius: 0; background: var(--accent-soft); }
.phone .po-body .ld-top { padding-top: 0; }
.phone .po-body .ld-top .line-sum { padding-right: 0; }
.phone .po-body .step-val { font-weight: var(--fw-semibold); }
.phone .po-body .course-chip { font-weight: var(--fw-regular); }
/* (the audit's proposal 3) a new dish's keys pills on its tint: «− 1 +» one pill, the course a pill (the second and the
   third filled with the accent), the comment's and the bin's keys round — in the pills' white (grey at night), a soft
   shadow, no outline */
.phone .po-body .line-draft .stepper, .phone .po-body .line-draft .course-chip, .phone .po-body .line-draft .ld-ctl .icon-btn {
  border: 0; border-radius: var(--r-pill); outline: 0; background: var(--pill); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / 0.1);
}
.phone .po-body .line-draft .course-chip:hover { color: var(--ink); }
.phone .po-body .line-draft .course-chip.c2, .phone .po-body .line-draft .course-chip.c3 { background: var(--accent); color: var(--accent-ink); }
.phone .po-body .line-draft .ld-ctl .icon-btn:active, .phone .po-body .line-draft .course-chip:active:not(.c2):not(.c3),
.phone .po-body .line-draft .step-btn:active:not(:disabled) { background: var(--pill-press); }
.phone .po-body .guest-chip {
  align-self: stretch; max-width: none; min-height: 56px; margin: 0; padding: 0 var(--sp-4); border: 0; border-radius: 0; background: var(--surface);
}
.phone .po-body .guest-chip-name { font-size: var(--fs-md); }
.phone .po-body .guest-chip-cp { padding: 0; background: none; color: var(--accent); font-size: var(--fs-sm); font-weight: var(--fw-regular); }
.phone .po-body .disc-rows { padding: var(--sp-2) var(--sp-4); box-shadow: inset 0 1px 0 0 var(--line-2); }
/* (a discount's amount in its row's letters — 14, regular, its green: «Обеденное время» at lunch was a fourth style) */
.phone .po-body .disc-amt { font-weight: var(--fw-regular); }
.phone .po-body .ph-total {
  align-items: center; min-height: var(--key-h); padding: 0 var(--sp-4); box-shadow: inset 0 1px 0 0 var(--line-2);
}
.phone .po-body .po-note { padding: 0 var(--sp-4) var(--sp-3); color: var(--ink-3); font-size: var(--fs-sm); }
.phone .money.big { font-weight: var(--fw-semibold); letter-spacing: 0; }
/* the foot (30 October, 01:41, the owner: «И нижнюю часть сделать тоже пилюлями. Счет и добавить блюдо»): two pills,
   56 high, 16 from the screen's edges and 8 apart, on two equal columns (the gap on the line between the dishes'
   columns above), the words alone in the middle of each, 16 semibold; under them the home bar's room (12 where there is
   none). (02:03: «Снизу не делай фон отдельный под пилюли. Просто повесь их поверх общей зоны и сделай их обе
   контрастными. Голубая окей. Вторую можно сделать… какого-нибудь цвета другого») no band and no line of its own: the
   pills hang over the screen, the bill and the dishes go on under them and scroll up clear of them (room kept under the
   last thing on the screen); a soft shadow under each. «Добавить блюда», «Отправить» the accent; «Счёт» the bill's
   violet — the colour a table's tile takes when its bill is asked; «Новые: N» ink. To the finger a pill reaches the
   screen's edges and halfway to the other; a press shrinks it a little. */
.phone .phone-screen { position: relative; }
.phone .ph-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; align-items: stretch; gap: var(--sp-2);
  padding: 0 var(--sp-4) max(var(--sp-3), env(safe-area-inset-bottom, 0px)); border-top: 0;
  background: none; box-shadow: none; pointer-events: none;
}
.phone .ph-bar > .btn, .phone .ph-bar > .ph-bar-info {
  position: relative; min-width: 0; height: 56px; min-height: 0; padding: 0 var(--sp-4); border: 0; border-radius: var(--r-pill);
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.16), 0 1px 3px rgb(0 0 0 / 0.1); font-size: var(--fs-md); font-weight: var(--fw-semibold);
  pointer-events: auto; transition: transform 0.08s;
}
.phone .ph-bar > .btn-secondary, .phone .ph-bar > .btn-secondary:hover:not(:disabled) { background: var(--bill); color: var(--bill-ink); }
.phone .ph-bar > .ph-bar-info { background: var(--ink); color: var(--surface); }
.phone .ph-bar > *::before { content: ''; position: absolute; inset: calc(var(--sp-2) * -1) calc(var(--sp-2) / -2) calc(var(--sp-3) * -1); }
.phone .ph-bar > :first-child::before { left: calc(var(--sp-4) * -1); }
.phone .ph-bar > :last-child::before { right: calc(var(--sp-4) * -1); }
.phone .ph-bar > .btn:active:not(:disabled), .phone .ph-bar > .ph-bar-info:active { transform: scale(0.97); }
/* (a pill that cannot be pressed yet: solid grey, not see-through over the bill under it) */
.phone .ph-bar > .btn:disabled { opacity: 1; background: var(--pill-press); color: var(--ink-3); }
.phone .ph-bar > .ph-bar-info { align-items: center; justify-content: center; gap: 2px; text-align: center; }
.phone .ph-bar-info > .strong { font-weight: var(--fw-semibold); }
.phone .ph-bar-info > .small { color: inherit; font-weight: var(--fw-regular); opacity: 0.72; }
.phone .ph-bar .btn-label, .phone .ph-bar-info > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the room under the last thing on a screen with the pills: the pills, the home bar's room under them, and the fade
   above them (28) */
.phone .phone-screen:has(> .ph-bar) { --foot-room: calc(56px + max(var(--sp-3), env(safe-area-inset-bottom, 0px)) + var(--fade-h)); }
.phone .phone-screen:has(> .ph-bar) > .po-body::after { content: ''; flex: none; height: var(--foot-room); }
.phone .phone-screen:has(> .ph-bar) .rows > .mt-fill { min-height: var(--foot-room); }

.push {
  position: absolute; top: calc(var(--sp-2) + env(safe-area-inset-top, 0px)); left: var(--sp-2); right: var(--sp-2); z-index: 40; display: flex; align-items: center; gap: var(--sp-1);
  border-radius: var(--r-lg); background: var(--ink); color: var(--surface); box-shadow: var(--shadow-2); animation: drop 0.25s ease-out;
}
.push-main { flex: 1; display: flex; align-items: center; gap: var(--sp-3); min-width: 0; padding: var(--sp-3); border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.push-x { display: grid; flex: none; place-items: center; width: 44px; height: 44px; margin-right: var(--sp-1); border: 0; border-radius: var(--r-md); background: none; color: inherit; cursor: pointer; opacity: 0.75; }
.push-ic { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: var(--r-md); background: var(--ok); color: var(--ok-ink); }
/* (30 October, 10:10, the owner took the audit's proposal 9) the banner of a dish ready green, as everything ready; its
   bell in the green on the green's own ink */
.push { background: var(--ok); color: var(--ok-ink); }
.push-ic { background: var(--ok-ink); color: var(--ok); }
.push-body { display: flex; flex-direction: column; min-width: 0; font-size: var(--fs-sm); }
/* (the audit of 30 October: the phone's three styles of letters) the banner's title in the keys' letters, 16 semibold —
   not a fourth style, 14 bold */
.push-body > b { font-size: var(--fs-md); font-weight: var(--fw-semibold); }
/* (2 November, «Счёт на кассу») the bill's «Наличными» and «Картой»: two keys of one width — neither is the main one,
   and «Наличными» did not fit a third */
:is(.phone, .ipad) .sheet-foot:has(> #ask-cash) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* (2 November, «Счёт на кассу») a bill's banner — asked at the front, paid for the waiter — in the bill's violet */
.push.push-bill { background: var(--bill); color: var(--bill-ink); }
.push-bill .push-ic { background: var(--bill-ink); color: var(--bill); }
.push > span.push-main { cursor: default; }
/* (the audit: a toast stood under the clock and the Dynamic Island — the phone's toasts had no place of their own;
   00:46, the owner on his iPhone: «это окошко перекрывается Dynamic Island… Исправляем») a toast low on the screen,
   just above the foot's keys and the tab bar: never under the island, never over the header with the table's name;
   its words in the keys' letters, 16 semibold */
.toasts-phone { bottom: calc(var(--key-h) + env(safe-area-inset-bottom, 0px) + var(--sp-2)); }
/* (02:19) over the tab bar's pill: 12 above it */
.phone:has(> .tabbar) .toasts-phone { bottom: calc(var(--tab-top) + var(--sp-3)); }
/* (01:41, 02:03) over the foot's pills: 12 above them on every iPhone (56 + the home bar's room or 12) */
.phone:has(.ph-bar) .toasts-phone { bottom: calc(56px + max(var(--sp-3), env(safe-area-inset-bottom, 0px)) + var(--sp-3)); }
.toasts-phone .toast { font-size: var(--fs-md); }
/* (30 October, 10:10, the audit's proposal 8) green is for what is ready: «Отправлено…» and the other good news a dark
   pill — the ink (white at night); a warning amber, a failure red, pills too */
.toasts-phone .toast { border-radius: var(--r-pill); }
.toasts-phone .toast-ok { background: var(--ink); color: var(--surface); }

.menu-list { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.menu-list-top { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-3); border-bottom: 1px solid var(--line); background: var(--surface); }
.chips { display: flex; gap: var(--sp-2); padding-bottom: 2px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.rows { flex: 1; min-height: 0; padding: var(--sp-1) var(--sp-3) var(--sp-4); overflow: auto; }
.row-item {
  display: flex; align-items: center; gap: var(--sp-3); width: 100%; min-height: 64px; padding: var(--sp-3) var(--sp-1);
  border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer;
}
/* the row's parts: the dish (a key that adds one), «−» (with new lines of it), how many, «+» */
.row-hit { flex: 1; display: flex; align-items: center; min-width: 0; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.row-less { display: grid; place-items: center; flex: none; width: var(--h-sm); height: var(--h-sm); padding: 0; border: 0; border-radius: var(--r-md); background: none; color: var(--accent); cursor: pointer; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-name { font-weight: var(--fw-semibold); }
.row-sub { font-size: var(--fs-sm); color: var(--ink-2); }
.row-count {
  display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 var(--sp-2);
  border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); font-size: var(--fs-xs); font-weight: var(--fw-bold);
}
.row-add { display: grid; place-items: center; flex: none; width: var(--h-sm); height: var(--h-sm); padding: 0; border: 0; border-radius: var(--r-md); background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.row-item.stopped { opacity: 0.5; cursor: default; }
.row-item.stopped .row-add { background: var(--surface-3); color: var(--ink-3); }
/* (29 October: the menu of the waiter's phone, built as the PIN's screen and «Столы» are) The top zone in the screen's
   shade: the search a row of its own, from edge to edge; the categories keys in one strip, a line between them, the
   chosen one in the dishes' shade (as «Мои» over the tables). The dishes: rows from edge to edge, a line only between
   them, each row a key as tall as a PIN's; how many are on the new lines in an accent circle, «+» an icon. Three styles:
   22 semibold (the header), 16 semibold (the categories, the dishes), 14 regular (the rest, the price's currency
   too). */
.phone .menu-list-top { gap: 0; padding: 0; border-bottom: 0; background: var(--bg); }
.phone .menu-list-top .search { height: 56px; padding: 0 var(--sp-4); border: 0; border-radius: 0; background: var(--bg); }
.phone .menu-list-top .search:focus-within { background: var(--surface); }
/* (the audit: «×» of the search was a 24 px target) 44 px to the finger, its sign where it was */
.phone .search-x { width: 44px; height: 44px; margin-right: calc(-1 * var(--sp-3)); padding: 0; }
.phone .chips { gap: 0; padding: 0; box-shadow: inset 0 1px 0 0 var(--line-2); }
.phone .chip {
  min-height: 0; height: 56px; padding: 0 var(--sp-5); border: 0; border-radius: 0; background: var(--bg); color: var(--ink-2);
  font-size: var(--fs-md); box-shadow: inset 1px 0 0 0 var(--line-2), inset 0 1px 0 0 var(--line-2);
}
.phone .chip:first-child { box-shadow: inset 0 1px 0 0 var(--line-2); }
.phone .chip.on { background: var(--accent); color: var(--accent-ink); }
/* (3 November: «И проверь все на горизонтальные и вертикальные линии») the categories' keys one width, three to the
   screen — the keys as wide as their words had put a line 3 px beside the dishes' middle line —; a long name takes two
   lines; the strip goes by whole keys, its end fading while more keys lie past it */
.phone .menu-list-top .chips { scroll-snap-type: x mandatory; }
.phone .menu-list-top .chips > .chip { flex: 0 0 calc(100% / 3); justify-content: center; padding: 0 var(--sp-2); line-height: 20px; white-space: normal; text-align: center; text-wrap: balance; scroll-snap-align: start; }
.phone .menu-list-top .chips[data-more] { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }
.phone .rows { padding: 0; background: var(--surface); }
/* (22:26, the owner: «нет возможности уменьшить количество блюда, только увеличить») a row: the dish a key that adds
   one; with new lines of it, «−» · how many · «+», each key 56 wide and the row's whole height, no lines of their own */
.phone .row-item { align-items: stretch; gap: 0; min-height: var(--key-h); padding: 0; border-bottom: 0; box-shadow: inset 0 1px 0 0 var(--line-2); cursor: default; }
.phone .row-hit { padding: var(--sp-3) var(--sp-2) var(--sp-3) var(--sp-4); }
.phone .row-hit:active:not([aria-disabled="true"]) { background: var(--surface-3); }
.phone .row-less, .phone .row-add { align-self: stretch; width: 56px; height: auto; border-radius: 0; background: none; color: var(--accent); }
.phone .row-less:active, .phone .row-add:active:not(:disabled) { background: var(--surface-3); }
.phone .row-count { align-self: center; min-width: 28px; height: 28px; background: var(--accent); color: var(--accent-ink); font-size: var(--fs-sm); font-weight: var(--fw-regular); }
.phone .row-item.stopped .row-add { background: none; color: var(--ink-3); }
.phone .row-item.stopped .row-hit { cursor: default; }
.phone .row-sub .money-u, .phone .row-sub .left-tag, .phone .row-sub .stop-tag { font-size: inherit; font-weight: inherit; letter-spacing: 0; text-transform: none; }
.phone .rows > .muted { padding: var(--sp-4); font-size: var(--fs-sm); }

.ready-card { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.ready-top { display: flex; align-items: flex-start; gap: var(--sp-3); padding: 0; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; }
.ready-n { display: grid; place-items: center; flex: none; min-width: 48px; height: 48px; border-radius: var(--r-md); background: var(--ok-soft); color: var(--ok); font-size: var(--fs-xl); line-height: 1; }
.ready-line { display: block; padding: 1px 0; }
.ready-age { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--warn); white-space: nowrap; }
.center-screen { justify-content: center; gap: var(--sp-6); padding: calc(var(--sp-6) + env(safe-area-inset-top, 0px)) var(--sp-4) var(--sp-6); }
.pick-head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
/* «Кто на смене?» and, under it, which restaurant this phone works in */
.pick-title { display: flex; flex-direction: column; gap: 2px; }
.pick-loc { margin: 0; color: var(--ink-2); font-size: var(--fs-md); }
.prof-card { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.prof-rows { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.prof-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 60px; padding: var(--sp-2) var(--sp-4); border-bottom: 1px solid var(--line); }
.prof-row:last-child { border-bottom: 0; }
.prof-row .select { width: auto; min-width: 180px; }
.prof-loc { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--ink); font-weight: var(--fw-semibold); }
.prof-loc .ic { color: var(--ink-3); }

/* ---------- (30 October: what a fresh-eyes review of the phone's screens found) ---------- */
/* a scroll at its very end showed a strip of the screen's grey (1pt) between the bill and its foot — the scrolled
   content ends a fraction short of the box; behind it now the bill's own white */
.phone .phone-screen, .phone .pt-screen { background: var(--surface); }
/* a group's grey row has its line under it too where what follows draws none: the tips, «Оплата по QR», a PIN to confirm */
.phone .my-tips-head, .phone .prebill-ips > .field-label, .phone .approve > .field-label { box-shadow: inset 0 1px 0 0 var(--line-2), inset 0 -1px 0 0 var(--line-2); }
.phone .sheet-body.flush > .approve > .field-label:first-child { box-shadow: inset 0 -1px 0 0 var(--line-2); }
/* a row of two lines of words breathes as a row of one: the stop list's dishes */
.phone .stop-row { padding: var(--sp-3) 0; }
/* a discount that needs a PIN says so under its size, not beside it: the name keeps the row's width */
.phone .disc-choice { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
.phone .disc-choice .st { order: 2; }
/* the bill's options under the dish, not after a dot that ended a line */
.phone .bill-n .bill-mods { display: block; }
.phone .bill-n .bill-sep { display: none; }
/* the dish's name one column on every phone list: how many 44pt wide, as on the order — the ready sheet, the bill */
.phone .rd-q, .phone .bill-q { min-width: 44px; }
/* a manager's «Все столы»: a table taken is as dark as on its waiter's phone (grey is for a free one); whose it is in the
   minutes' line (the guests' count is its waiter's), its sum under it as on his phone */
.ptable.other .pt-n { color: var(--ink); }
.ptable.other .pt-meta { color: var(--ink-2); }
.ptable.other .pt-sum { color: var(--ink); }
.pt-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* the screen's empty words in its three styles: the title 16 semibold, not 18 */
.phone .empty-title { font-size: var(--fs-md); }
/* a field's hint in the screen's grey. (The audit of 30 October 03:44: a field's words, 16 regular, were a fourth style
   on the menu, a guest's card, a dish's options and the stop list) what is typed is an item, 16 semibold — 16, so that
   the iPhone does not zoom in on the field; the hint before it the screen's small words, 14 regular */
.phone input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), .phone textarea { font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.phone input::placeholder, .phone textarea::placeholder { color: var(--ink-3); opacity: 1; font-size: var(--fs-sm); font-weight: var(--fw-regular); }
/* the tiles' words 16pt from their edges, as the header's title and every row's — 12 left them 4pt off the title above */
.ptable { padding: var(--sp-3) var(--sp-4); }
.pt-badge { right: var(--sp-4); }
.phone .mt-grid > .mt-tile .row-hit { padding: var(--sp-3) var(--sp-4); }
.phone .mt-grid > .mt-tile .row-count { right: var(--sp-4); }
.phone .mt-grid > .mt-tile.has-less .row-sub { padding-right: 36px; }
/* a name gives way to the circle only when there is one: «Паста карбонара» on one line on a tile with none */
.phone .mt-grid > .mt-tile .row-name::before { display: none; }
.phone .mt-grid > .mt-tile.has .row-name::before { display: block; }

/* (30 October, 10:10, the owner took the audit's proposal 12) under the hanging pills — the order's foot, a sheet's foot
   and the tab bar — the screen's white comes in softly over what scrolls under them: from 28 above the pills to full a
   little below their top, and full down to the screen's edge (nothing under the home bar); the room kept under the last
   thing on a screen is as tall, so at its end nothing lies under the fade */
.phone .ph-bar::before, :is(.phone, .ipad) .sheet-foot::before {
  content: ''; position: absolute; z-index: -1; left: 0; right: 0; top: calc(var(--fade-h) * -1); bottom: 0; pointer-events: none;
  background: linear-gradient(to bottom, var(--fade-0), var(--surface) calc(var(--fade-h) + 6px));
}
.phone:has(> .tabbar)::after {
  content: ''; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: var(--tab-room); pointer-events: none;
  background: linear-gradient(to bottom, var(--fade-0), var(--surface) calc(var(--fade-h) + 6px));
}

/* ---------- «технологичность» (30 October, 16:49, the owner of the six ways shown on «Все столы»: «Технологичность -
   1,2,3 делаем») ----------
   1 — the figures of an instrument: a table's number (two digits always, 01…09 — the zero drawn here) and its sum, the
   profile's sums in the monospace of the kitchen's timers (JetBrains Mono, semibold), on the scale's sizes as before —
   the number 28, a table's sum 16 (six figures 14), the profile's 22; the currency beside them stays the screen's small
   letters. */
.phone .pt-n, .phone .pt-sum .money, .phone .pf-stat-v .display, .phone .pf-top .my-tips-v .display { font-family: var(--font-timer); font-weight: var(--fw-semibold); letter-spacing: -0.03em; }
.phone .pt-n[data-pad]::before { content: '0'; }
.phone .pt-sum .money-u, .phone .pf-stat-v .money-u, .phone .pf-top .my-tips-v .money-u { font-family: var(--font-ui); }
/* 2 — glass, as iOS 26: the tab bar half clear, what scrolls under it blurred behind it, a light rim on its edge and a
   soft shadow; the fade under it gone (the screen goes on under the glass); the halls' pills not chosen glass on the
   header's shade; the header itself a light gradient of its shade. */
.phone { --glass: rgb(255 255 255 / 0.55); --glass-rim: rgb(255 255 255 / 0.75); --glass-top: rgb(255 255 255 / 0.9); --glass-shadow: 0 12px 30px rgb(19 24 36 / 0.16); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .phone { --glass: rgb(36 40 49 / 0.55); --glass-rim: rgb(255 255 255 / 0.12); --glass-top: rgb(255 255 255 / 0.16); --glass-shadow: 0 12px 30px rgb(0 0 0 / 0.5); } }
:root[data-theme="dark"] .phone { --glass: rgb(36 40 49 / 0.55); --glass-rim: rgb(255 255 255 / 0.12); --glass-top: rgb(255 255 255 / 0.16); --glass-shadow: 0 12px 30px rgb(0 0 0 / 0.5); }
.phone .tabbar {
  background: var(--glass); -webkit-backdrop-filter: blur(30px) saturate(2); backdrop-filter: blur(30px) saturate(2);
  box-shadow: inset 0 0 0 1px var(--glass-rim), inset 0 1px 0 var(--glass-top), var(--glass-shadow);
}
.phone:has(> .tabbar)::after { display: none; }
.phone .tab-badge { box-shadow: 0 0 0 2px var(--surface); }
.phone .hall-pill:not(.on) { background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-rim), 0 2px 8px rgb(19 24 36 / 0.08); }
.phone .hall-pill:active:not(.on) { background: var(--pill-press); }
.phone .ph-head { background: linear-gradient(180deg, color-mix(in oklab, var(--bg), var(--accent) 4%), color-mix(in oklab, var(--bg), var(--surface) 35%)); }
/* 3 — live: beside the title a green dot «на связи» that breathes; a table calling — its ready count with a halo
   that pulses; the bill asked — a violet dot before «Счёт» with its halo; cooking — the cook's ring. Still for whoever
   asked the iPhone for less motion. */
.ph-live { position: relative; display: inline-block; flex: none; width: 8px; height: 8px; margin-left: 10px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--ok) 22%, transparent), 0 0 0 9px color-mix(in oklab, var(--ok) 9%, transparent); }
/* (the breath a ring of the dot's green that grows out of it and fades — a shadow, so it takes no room: nothing beside
   it moves, the title is never pushed or cut) */
.ph-live::after, .phone .pt-badge.b-ready::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  animation: live-dot 2.4s ease-out infinite;
}
.phone .pt-badge.b-ready::after { animation-name: live-badge; }
@keyframes live-dot { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--ok) 50%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px color-mix(in oklab, var(--ok) 0%, transparent); } }
@keyframes live-badge { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--ok) 40%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px color-mix(in oklab, var(--ok) 0%, transparent); } }
.phone .pt-badge.b-ready { box-shadow: 0 0 0 4px color-mix(in oklab, var(--ok) 25%, transparent), 0 0 0 9px color-mix(in oklab, var(--ok) 10%, transparent); }
.phone .pt-badge.b-bill::before {
  content: ''; position: absolute; left: -16px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--bill);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--bill) 22%, transparent);
}
.phone .pt-cook .ic { border-radius: 50%; box-shadow: 0 0 0 2px color-mix(in oklab, var(--warn) 30%, transparent); }
@media (prefers-reduced-motion: reduce) { .ph-live::after, .phone .pt-badge.b-ready::after { animation: none; } }

/* ---------- what the iPad does to a table, on the waiter's iPhone too (1 November, 23:05, the owner — «да») ----------
   The guests a round pill with their number in the order's header: the table's sheet — the numbers as at its opening,
   the table's own filled, «Пересадить» a key under them; the tables to move to three to a row from edge to edge as the
   tables screen, a busy one greyed; a dish cancelled — the reasons a row each from edge to edge (16 semibold, a line only
   between rows), then the manager's PIN on the keys from edge to edge. A booking on a table's tile (app.ruvo.ac): a free
   table's hour under its number with the calendar — the accent's, red when its guests are late —, a busy table's at its
   corner; the guests of a booking due — the band of the screen's blue and «Это они — пришли» a green pill */
/* (the pill's number in the pills' own letters, 14 regular: a screen has three styles of letters, no more) */
.ph-guests { gap: 4px; }
.guest-btn.on, .guest-btn.on:hover, .guest-btn.on:active { position: relative; z-index: 1; background: var(--accent); color: var(--accent-ink); }
.phone .sheet-body.flush > .guest-grid + .key-stack { box-shadow: inset 0 1px 0 0 var(--line-2); }
.phone .sheet-body.flush > .reason-list:not(.key-stack) { gap: 0; margin: 0; }
.phone .sheet-body.flush .reason-list:not(.key-stack) > .btn {
  justify-content: flex-start; width: 100%; min-height: 56px; padding: 0 var(--sp-4); border: 0; border-radius: 0; background: var(--surface); color: var(--ink);
  font-size: var(--fs-md); font-weight: var(--fw-semibold); box-shadow: inset 0 1px 0 0 var(--line-2);
}
.phone .sheet-body.flush > .reason-list:not(.key-stack) > .btn:first-child { box-shadow: none; }
.phone .sheet-body.flush .reason-list:not(.key-stack) > .btn:active:not(:disabled) { background: var(--surface-3); transform: none; }
.phone .sheet-body.flush > .move-grid { gap: 0; margin: 0; padding: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.phone .sheet-body.flush .move-grid > .move-btn {
  min-height: 80px; border: 0; border-radius: 0; background: var(--surface); box-shadow: inset 1px 0 0 0 var(--tile-line), inset 0 1px 0 0 var(--tile-line), var(--rim, 0 0 #0000);
}
.phone .sheet-body.flush .move-grid > .move-btn[data-rf] { box-shadow: inset 0 1px 0 0 var(--tile-line), var(--rim, 0 0 #0000); }
.phone .sheet-body.flush > .move-grid > .move-btn[data-r0] { box-shadow: inset 1px 0 0 0 var(--tile-line), var(--rim, 0 0 #0000); }
.phone .sheet-body.flush > .move-grid > .move-btn[data-r0][data-rf] { box-shadow: var(--rim, none); }
.phone .sheet-body.flush .move-grid > .move-btn { justify-content: center; }
.phone .sheet-body.flush .move-grid > .move-btn .display { font-family: var(--font-timer); font-size: var(--fs-2xl); font-weight: var(--fw-semibold); letter-spacing: -0.03em; }
.phone .sheet-body.flush .move-grid > .move-btn:active:not(:disabled) { background: var(--surface-3); }
.phone .sheet-body.flush .move-grid > .move-btn:disabled { opacity: 1; background: var(--bg); color: var(--ink-3); }
.phone .sheet-body.flush .move-grid > .move-btn:disabled .muted { color: var(--ink-3); }
.pt-meta.pt-booked, .pt-free .pt-meta.pt-booked { gap: 4px; color: var(--accent); font-family: var(--font-timer); font-weight: var(--fw-semibold); }
.pt-meta.pt-booked.late, .pt-free .pt-meta.pt-booked.late { color: var(--bad); }
/* (the busy table's corner: close to its edge, its number left room) */
.pt-badge.b-book { display: inline-flex; align-items: center; gap: 2px; right: var(--sp-2); padding: 0 var(--sp-1); box-shadow: none; background: var(--accent-soft); color: var(--accent); font-family: var(--font-timer); font-weight: var(--fw-semibold); }
.pt-badge.b-book.late { background: var(--bad-soft); color: var(--bad); }
.phone .sheet-body.flush > .bk-due {
  flex-direction: column; align-items: stretch; gap: var(--sp-3); margin: 0; padding: var(--sp-3) var(--sp-4) var(--sp-4); border-radius: 0;
  box-shadow: inset 0 -1px 0 0 var(--line-2); font-size: var(--fs-sm);
}
.phone .sheet-body.flush > .bk-due > .btn { min-height: 56px; border-radius: var(--r-pill); font-size: var(--fs-md); }

/* ---------- «Гость 1, Гость 2…» on the waiter's iPhone (9 November) ----------
   The guests in a row over the bill and over the menu (where new dishes go — the lit one), the bill in guests' folders
   from edge to edge as its lines are; a folder's name a row of the screen's shade, as a course's. */
/* (01:17: «без закруглений - в нашем стиле») the keys as the categories' over the dishes: 56 high, the screen's shade,
   a line between them and under them; «−» and «+» squares at the end */
.phone .seat-bar { --seat-h: 56px; }
.phone .po-body .seat-bar { top: 0; margin: 0; }
/* (the grid check: «no line doubled») the bill's rows draw the line over them, so the row right under the strip leaves
   its own out — the strip's line under its keys is that line */
.phone .po-body .seat-bar + .ticket-lines > .course:first-child > :first-child { box-shadow: none; }
.phone .po-body .seat-bar + .seat-lines > .seat-group:first-child > .seat-head { box-shadow: none; }
.phone .po-body .seat-bar + .seat-lines > .seat-group.on:first-child > .seat-head { box-shadow: inset 0 -2px 0 0 var(--accent); }
.phone .ph-seats { flex: none; background: var(--bg); }
.phone .ph-seats:empty { display: none; }
.phone .ph-seats .seat-bar { position: static; margin: 0; }
.phone .po-body .seat-group { margin-top: 0; }
.phone .po-body .seat-head {
  min-height: 44px; align-items: center; padding: 0 var(--sp-4); border-bottom: 0; background: var(--bg);
  box-shadow: inset 0 1px 0 0 var(--line-2); font-size: var(--fs-sm);
}
.phone .po-body .seat-group.on .seat-head { box-shadow: inset 0 1px 0 0 var(--line-2), inset 0 -2px 0 0 var(--accent); }
.phone .po-body .seat-empty { padding: var(--sp-3) var(--sp-4); box-shadow: inset 0 1px 0 0 var(--line-2); }
.phone .po-body .line-draft .seat-chip { border: 0; border-radius: var(--r-pill); background: var(--pill); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / 0.1); font-weight: var(--fw-regular); }
.phone .po-body .line-draft .seat-chip.s-on { color: var(--accent); }
.phone .guest-btn:disabled { opacity: 0.35; }
/* (server 0.104, Sales Force 3) «Задания» and «Рейтинг»: a row each — the words at the left (a mission's bar of how far
   under its name), the prize or the figure at the right; done — the amber of the achievements; the person's own row of
   the rating a shade apart; the unranked dimmed */
:is(.phone, .ipad) .sheet-body.flush > .ct-sheet { margin: 0; }
:is(.phone, .ipad) .ct-rows { margin: 0; padding: 0; list-style: none; }
:is(.phone, .ipad) .ct-row { display: flex; align-items: center; gap: var(--sp-3); min-height: 64px; padding: var(--sp-2) var(--sp-4); box-shadow: inset 0 -1px 0 0 var(--line-2); }
:is(.phone, .ipad) .ct-l { display: flex; flex: 1 1 auto; flex-direction: column; gap: 4px; min-width: 0; }
:is(.phone, .ipad) .ct-n { font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 20px; }
:is(.phone, .ipad) .ct-w { color: var(--ink-2); font-size: var(--fs-sm); line-height: 18px; }
:is(.phone, .ipad) .ct-v { flex: none; font-size: var(--fs-md); font-weight: var(--fw-semibold); }
:is(.phone, .ipad) .ct-bar { display: block; height: 4px; overflow: hidden; border-radius: 2px; background: var(--surface-3); }
:is(.phone, .ipad) .ct-bar > span { display: block; height: 100%; border-radius: 2px; background: var(--accent); }
:is(.phone, .ipad) .ct-row.done { background: var(--warn-soft); }
:is(.phone, .ipad) .ct-row.done .ct-bar > span { background: var(--warn); }
:is(.phone, .ipad) .ct-row.done .ct-v { color: var(--warn); }
:is(.phone, .ipad) .ct-place { flex: none; width: 28px; color: var(--ink-2); font-size: var(--fs-lg); font-weight: var(--fw-semibold); text-align: center; }
:is(.phone, .ipad) .ct-rating .ct-row.me { background: var(--surface-2); }
:is(.phone, .ipad) .ct-rating .ct-row.out { color: var(--ink-3); }
:is(.phone, .ipad) .ct-rating .ct-row.out .ct-n { font-weight: var(--fw-regular); }
:is(.phone, .ipad) .ct-empty { margin: 0; padding: var(--sp-4); font-size: var(--fs-md); }
:is(.phone, .ipad) .ct-sheet > p.muted { margin: 0; padding: var(--sp-3) var(--sp-4); font-size: var(--fs-sm); }

/* ---------- guest kiosk: a light photo menu on an iPad stand ----------
   Always light, like a printed menu: the light tokens are set again on .kiosk, so a dark device theme
   does not reach it. Big touch targets (56–72px), large type, one blue for the active pill and the prices. */
.kiosk {
  --bg: #EAEDF3; --surface: #FFFFFF; --surface-2: #F5F7FA; --surface-3: #E4E8EF;
  --ink: #131824; --ink-2: #49505E; --ink-3: #5D6370; --line: #D5D9E1; --line-2: #BFC4CF; --star: #805202;
  --accent: #1E44B0; --accent-2: #0D2D99; --accent-ink: #FFFFFF; --accent-soft: #D8E5FF;
  --ok: #007440; --ok-soft: #CBEFD6; --bad: #BE2E31; --scrim: rgb(19 24 36 / 0.45);
  --ks-card: #F7F8FB;
  position: relative; overflow: hidden; color-scheme: light; background: var(--bg); color: var(--ink);
}
.ks-head { display: flex; flex: none; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-5) 28px var(--sp-2); }
.ks-head .wordmark { padding: 7px 12px 6px calc(12px + 0.08em); border-radius: 8px; font-size: var(--fs-md); }
.ks-head .wordmark::after { border-radius: 6px; }
.ks-head .brand-loc { max-width: 420px; font-size: var(--fs-lg); line-height: 22px; }
.ks-head-r { display: flex; align-items: center; gap: var(--sp-2); }
.ks-lang { display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: #DEE1E9; }
.ks-lang button { min-height: 44px; padding: 0 var(--sp-4); border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink-2); font-size: var(--fs-md); font-weight: var(--fw-medium); cursor: pointer; }
.ks-lang button.on { background: #FFFFFF; color: var(--ink); box-shadow: var(--shadow-1); }
.ks-staff { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); opacity: 0.55; cursor: pointer; }

/* search and the category pills, as in a café menu: the active one is a solid blue pill */
.ks-nav { display: flex; flex: none; align-items: center; gap: var(--sp-3); padding: var(--sp-3) 28px var(--sp-2); }
.ks-search-btn { display: grid; flex: none; place-items: center; width: 56px; height: 56px; border: 0; border-radius: 50%; background: #FFFFFF; color: var(--ink); box-shadow: var(--shadow-1); cursor: pointer; }
.ks-search-btn.on { background: var(--ink); color: #FFFFFF; }
.ks-pills {
  display: flex; flex: 1; gap: var(--sp-1); min-width: 0; padding: 4px 24px 4px 4px; overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent);
}
.ks-pills::-webkit-scrollbar { display: none; }
.ks-pill { flex: none; min-height: 56px; padding: 0 22px; border: 0; border-radius: var(--r-pill); background: transparent; color: #4F575D; font-size: var(--fs-lg); font-weight: var(--fw-regular); white-space: nowrap; cursor: pointer; transition: background 0.15s, color 0.15s; }
.ks-pill.on { background: var(--accent); color: #FFFFFF; font-weight: var(--fw-medium); }
.ks-search { flex: 1; min-width: 0; height: 56px; padding: 0 var(--sp-5); border: 1px solid var(--line-2); border-radius: var(--r-pill); background: #FFFFFF; color: var(--ink); font-size: var(--fs-lg); }
.ks-search:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 3px var(--accent-soft); }

/* the menu: a section per category, three cards to a row on an upright iPad */
.ks-menu { flex: 1; min-height: 0; padding: 0 28px; overflow-y: auto; overscroll-behavior: contain; }
.ks-sec { padding-top: var(--sp-5); }
.ks-h { margin: var(--sp-3) 4px var(--sp-5); color: var(--ink); font-size: var(--fs-2xl); font-weight: var(--fw-regular); line-height: 1.15; letter-spacing: 0.06em; text-transform: uppercase; }
.ks-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ks-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); min-width: 0; padding: var(--sp-4) 18px var(--sp-5);
  border: 0; border-radius: 28px; background: var(--ks-card); color: var(--ink); text-align: left; cursor: pointer; transition: transform 0.12s;
}
.ks-card:active { transform: scale(0.98); }
.ks-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ks-img { display: grid; place-items: center; width: 100%; aspect-ratio: 1 / 0.86; margin-bottom: var(--sp-1); overflow: hidden; border-radius: 20px; }
.ks-img img { width: 100%; height: 100%; object-fit: cover; }
.ks-img .dish-art { width: 100%; height: 100%; }
/* the whole name, however long; the price under it stands at the bottom of the card, level with the prices beside it */
.ks-name { min-height: 2.6em; font-size: var(--fs-lg); line-height: 1.3; }
.ks-price { margin-top: auto; color: var(--accent); font-size: var(--fs-lg); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
.ks-cur { font-size: var(--fs-sm); }
.ks-card.off { cursor: default; opacity: 0.5; }
.ks-card.off .ks-price { color: var(--ink-3); }
.ks-badge { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 var(--sp-2); border-radius: var(--r-pill); background: var(--accent); color: #FFFFFF; font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.ks-none { padding: var(--sp-6) 4px; color: var(--ink-3); font-size: var(--fs-lg); }
.ks-end { height: 132px; }

/* the basket bar: always at the bottom while something is in the basket */
.ks-bar { position: absolute; right: 0; bottom: 0; left: 0; padding: var(--sp-4) 28px calc(var(--sp-5) + env(safe-area-inset-bottom, 0px)); background: linear-gradient(rgb(234 237 243 / 0), var(--bg) 34%); pointer-events: none; }
.ks-bar-btn { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 0 12px 0 14px; border: 0; border-radius: var(--r-pill); background: var(--ink); color: #FFFFFF; box-shadow: var(--shadow-2); cursor: pointer; pointer-events: auto; }
.ks-bar-n { display: grid; place-items: center; min-width: 48px; height: 48px; border-radius: 50%; background: #FFFFFF; color: var(--ink); font-size: var(--fs-lg); font-weight: var(--fw-bold); }
.ks-bar-t { font-size: var(--fs-lg); font-weight: var(--fw-medium); }
.ks-bar-sum { margin-left: auto; font-size: var(--fs-xl); font-weight: var(--fw-semibold); }
.ks-bar-go { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 56px; padding: 0 var(--sp-6); border-radius: var(--r-pill); background: var(--accent); font-size: var(--fs-lg); font-weight: var(--fw-semibold); }

/* a dish up close and the basket: a sheet rising from the bottom */
.ks-scrim { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; padding: var(--sp-6) var(--sp-6) 0; background: var(--scrim); }
.ks-modal { position: relative; display: flex; flex-direction: column; width: min(720px, 100%); max-height: calc(100% - 24px); overflow: hidden; border-radius: 32px 32px 0 0; background: #FFFFFF; box-shadow: var(--shadow-2); animation: ks-up 0.2s ease-out; }
@keyframes ks-up { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
.ks-x { position: absolute; top: var(--sp-4); right: var(--sp-4); z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgb(255 255 255 / 0.92); color: var(--ink); box-shadow: var(--shadow-1); cursor: pointer; }
.ks-modal-img { display: grid; flex: none; place-items: center; height: min(340px, 34vh); background: var(--ks-card); }
.ks-modal-img img { width: 100%; height: 100%; object-fit: cover; }
.ks-modal-img .dish-art { width: 76%; height: 88%; }
.ks-modal-body { display: flex; flex: 1; flex-direction: column; gap: var(--sp-2); min-height: 0; padding: var(--sp-6) 28px var(--sp-3); overflow-y: auto; }
.ks-basket .ks-modal-body { padding-top: 28px; }
.ks-modal-title { padding-right: 56px; font-size: var(--fs-2xl); font-weight: var(--fw-semibold); line-height: 1.2; }
.ks-modal-price { color: var(--accent); font-size: var(--fs-xl); font-weight: var(--fw-medium); }
/* what the dish is: its weight beside the price, a line or two about it, and its allergens */
.ks-weight { color: var(--ink-3); font-weight: var(--fw-regular); }
.ks-desc { max-width: 60ch; margin: var(--sp-1) 0 0; color: var(--ink-2); font-size: var(--fs-lg); line-height: 1.45; }
.ks-alg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--sp-2); margin-top: var(--sp-2); }
.ks-alg-t { color: var(--ink-3); font-size: var(--fs-sm); font-weight: var(--fw-semibold); letter-spacing: var(--track-caps); text-transform: uppercase; }
.ks-alg-chip { padding: 4px 12px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink); font-size: var(--fs-md); box-shadow: inset 0 0 0 1px var(--line); }
/* the options start as the guest had them last time (the guest app) */
.ks-kept { display: flex; align-items: center; gap: var(--sp-2); margin-top: 14px; padding: 8px 8px 8px 12px; border-radius: 14px; background: var(--ok-soft); color: var(--ok); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.ks-kept .ic { flex: none; }
.ks-kept-reset { min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--r-pill); background: #FFFFFF; color: var(--ink); font-size: var(--fs-sm); font-weight: var(--fw-semibold); cursor: pointer; }
.ks-group { display: flex; flex-direction: column; gap: 10px; margin-top: var(--sp-4); }
.ks-group-t { color: var(--ink-3); font-size: var(--fs-sm); font-weight: var(--fw-semibold); letter-spacing: var(--track-caps); text-transform: uppercase; }
.ks-opts { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.ks-opt { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 56px; padding: 0 var(--sp-5); border: 1.5px solid var(--line); border-radius: var(--r-pill); background: #FFFFFF; color: var(--ink); font-size: var(--fs-lg); cursor: pointer; }
.ks-opt.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: var(--fw-medium); }
.ks-opt-p { color: var(--ink-3); font-size: var(--fs-md); }
.ks-modal-foot { display: flex; flex: none; align-items: center; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5) calc(var(--sp-5) + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.ks-step { display: inline-flex; flex: none; align-items: center; gap: var(--sp-1); padding: 4px; border-radius: var(--r-pill); background: var(--surface-2); }
/* beside the big button the counter is as tall as it */
.ks-modal-foot > .ks-step { align-self: stretch; }
.ks-step button { display: grid; place-items: center; width: 56px; height: 56px; border: 0; border-radius: 50%; background: #FFFFFF; color: var(--ink); box-shadow: var(--shadow-1); cursor: pointer; }
.ks-step button:disabled { cursor: default; opacity: 0.4; }
.ks-step span { min-width: 40px; font-size: var(--fs-xl); font-weight: var(--fw-semibold); text-align: center; }
.ks-step.sm button { width: 48px; height: 48px; }
.ks-primary { flex: 1; min-height: 68px; padding: 0 var(--sp-6); border: 0; border-radius: var(--r-pill); background: var(--accent); color: #FFFFFF; font-size: var(--fs-lg); font-weight: var(--fw-semibold); cursor: pointer; }
.ks-primary:disabled { background: #C3C9D4; cursor: default; }
.ks-lines { display: flex; flex-direction: column; margin-top: var(--sp-2); padding: 0; list-style: none; }
.ks-line { display: flex; align-items: center; gap: 14px; padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
.ks-line-img { display: grid; flex: none; place-items: center; width: 72px; height: 62px; overflow: hidden; border-radius: 16px; background: var(--ks-card); }
.ks-line-img img { width: 100%; height: 100%; object-fit: cover; }
.ks-line-img .dish-art { width: 92%; height: 92%; }
.ks-line-main { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.ks-line-name { font-size: var(--fs-lg); font-weight: var(--fw-medium); }
.ks-line-sum { color: var(--ink-2); font-size: var(--fs-md); }
.ks-muted { color: var(--ink-3); font-size: var(--fs-md); }
.ks-where { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.ks-where-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-2); min-height: 108px; border: 1.5px solid var(--line); border-radius: 24px; background: #FFFFFF; color: var(--ink); font-size: var(--fs-xl); font-weight: var(--fw-medium); cursor: pointer; }
.ks-where-btn.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.ks-total { display: flex; flex: none; flex-direction: column; gap: 2px; min-width: 150px; }
.ks-total .mono { font-size: var(--fs-2xl); font-weight: var(--fw-bold); }

/* the number to pay with */
.ks-done { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-8); padding: var(--sp-8) var(--sp-6); text-align: center; }
.ks-done .wordmark { padding: 7px 12px 6px calc(12px + 0.08em); border-radius: 8px; font-size: var(--fs-md); }
.ks-done .brand-loc { font-size: var(--fs-lg); line-height: 22px; }
.ks-done-card { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); width: min(560px, 100%); padding: 44px var(--sp-8); border-radius: 36px; background: #FFFFFF; box-shadow: var(--shadow-1); }
.ks-done-l { color: var(--ink-3); font-size: var(--fs-lg); letter-spacing: 0.08em; text-transform: uppercase; }
.ks-done-n { color: var(--accent); font-size: 144px; line-height: 1; font-variant-numeric: tabular-nums; }
.ks-done-t { font-size: var(--fs-xl); font-weight: var(--fw-semibold); }
.ks-done .ks-primary { flex: none; width: min(560px, 100%); }

/* an iPad on its side: four to a row; a phone: two, smaller type */
@media (min-width: 1100px) {
  .ks-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ks-head, .ks-nav { padding-right: var(--sp-4); padding-left: var(--sp-4); }
  .ks-menu { padding: 0 var(--sp-4); }
  .ks-lang button { padding: 0 var(--sp-3); font-size: var(--fs-sm); }
  .ks-search-btn { width: 48px; height: 48px; }
  .ks-pill { min-height: 48px; padding: 0 var(--sp-4); font-size: var(--fs-md); }
  .ks-h { font-size: var(--fs-xl); }
  .ks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
  .ks-card { padding: var(--sp-3) var(--sp-3) var(--sp-4); border-radius: 22px; }
  .ks-name { font-size: var(--fs-md); }
  .ks-price { font-size: var(--fs-md); }
  .ks-bar { padding-right: var(--sp-4); padding-left: var(--sp-4); }
  .ks-bar-t { display: none; }
  .ks-bar-go { padding: 0 var(--sp-4); }
  .ks-scrim { padding: var(--sp-3) 0 0; }
  .ks-modal-body { padding-right: var(--sp-5); padding-left: var(--sp-5); }
  .ks-modal-foot { flex-wrap: wrap; }
  .ks-primary { min-height: 60px; font-size: var(--fs-md); }
  .ks-done-n { font-size: 112px; }
}

/* a promotion running now: the price before it and what it takes off, above the total */
.ks-modal-foot { flex-wrap: wrap; }
.ks-promo { display: flex; flex: 1 0 100%; flex-direction: column; gap: 2px; font-size: var(--fs-md); }
.ks-promo-row { display: flex; justify-content: space-between; gap: 12px; }
.ks-promo-row:not(:first-child) { color: var(--accent); font-weight: var(--fw-semibold); }
/* a dish with a limit: how many are left, under its price */
.ks-left { margin-top: calc(-1 * var(--sp-1)); color: #8A5300; font-size: var(--fs-sm); font-weight: var(--fw-medium); }

/* ---------- «Poruči»: «Dodati uz porudžbinu?», the guest's phone, the guest in the basket (16 October) ---------- */
/* the second big button: as tall and as wide as the blue one beside it — «Preskoči» as visible as «Dalje» */
.ks-secondary { flex: 1; min-height: 68px; padding: 0 var(--sp-6); border: 1.5px solid var(--line-2); border-radius: var(--r-pill); background: #FFFFFF; color: var(--ink); font-size: var(--fs-lg); font-weight: var(--fw-semibold); cursor: pointer; }
.ks-secondary:active, .ks-key:active, .ks-up-btn:active { transform: scale(0.98); }
.ks-modal-foot.ks-two { display: grid; grid-template-columns: 1fr 1fr; }
.ks-modal-foot.ks-two > button { width: 100%; }

/* «Dodati uz porudžbinu?»: up to three cards like the menu's, each with its own «Dodaj» */
.ks-up .ks-modal-body { padding-top: 28px; }
.ks-up-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: var(--sp-4) 0 var(--sp-2); padding: 0; list-style: none; }
.ks-up-card { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; padding: var(--sp-3) var(--sp-3) 14px; border-radius: 24px; background: var(--ks-card); transition: box-shadow 0.15s; }
.ks-up-card.on { box-shadow: inset 0 0 0 2px var(--ok); }
.ks-up-card .ks-img { border-radius: 18px; }
.ks-up-name { min-height: 2.6em; font-size: var(--fs-md); font-weight: var(--fw-medium); line-height: 1.3; }
.ks-up-card .ks-price { margin-top: auto; font-size: var(--fs-md); }
.ks-up-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: 56px; padding: 0 var(--sp-3); border: 0; border-radius: var(--r-pill); background: var(--accent); color: #FFFFFF; font-size: var(--fs-md); font-weight: var(--fw-semibold); cursor: pointer; }
.ks-up-btn.on { background: var(--ok-soft); color: var(--ok); }

/* the guest's phone: +381, a big keypad, the consent */
.ks-phone .ks-modal-body { align-items: center; padding-top: 28px; text-align: center; }
.ks-phone-ic { display: grid; flex: none; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.ks-phone .ks-modal-title { max-width: 560px; padding: 0 44px; font-size: var(--fs-xl); text-wrap: balance; }
.ks-tel { display: flex; flex: none; align-items: baseline; justify-content: center; gap: var(--sp-3); width: min(440px, 100%); min-height: 72px; margin-top: var(--sp-3); padding: 14px var(--sp-5); border-radius: 22px; background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.ks-tel.ks-tel-ok { box-shadow: inset 0 0 0 2px var(--accent); }
.ks-tel-cc { color: var(--ink-3); font-size: var(--fs-xl); font-weight: var(--fw-medium); }
.ks-tel-n { color: var(--ink); font-size: var(--fs-2xl); font-weight: var(--fw-semibold); letter-spacing: 0.02em; white-space: nowrap; }
.ks-tel.ks-tel-blank .ks-tel-n { color: var(--ink-3); font-weight: var(--fw-regular); }
.ks-tel-hint { min-height: 22px; margin-top: var(--sp-1); color: var(--ink-2); font-size: var(--fs-md); }
.ks-keys { display: grid; flex: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); width: min(420px, 100%); margin-top: var(--sp-1); }
.ks-key { display: grid; place-items: center; min-height: 72px; border: 0; border-radius: 20px; background: #FFFFFF; color: var(--ink); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); font-size: var(--fs-2xl); font-weight: var(--fw-medium); cursor: pointer; }
.ks-key:disabled { cursor: default; opacity: 0.4; }
.ks-key-fn { background: transparent; color: var(--ink-2); box-shadow: none; }
.ks-consent { position: relative; display: flex; flex: none; align-items: center; gap: 14px; width: min(560px, 100%); min-height: 64px; margin-top: var(--sp-5); padding: var(--sp-3) var(--sp-4); border-radius: 18px; background: var(--surface-2); text-align: left; cursor: pointer; }
.ks-consent.ks-consent-ask { box-shadow: inset 0 0 0 2px var(--accent); }
.ks-consent input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ks-consent-box { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border: 2px solid var(--line-2); border-radius: 10px; background: #FFFFFF; color: transparent; }
.ks-consent.ks-consent-on .ks-consent-box { border-color: var(--accent); background: var(--accent); color: #FFFFFF; }
.ks-consent input:focus-visible + .ks-consent-box { outline: 3px solid var(--accent); outline-offset: 2px; }
.ks-consent-t { color: var(--ink); font-size: var(--fs-md); line-height: 1.4; }
.ks-demo-note { margin: var(--sp-2) 0 0; color: var(--ink-3); font-size: var(--fs-sm); }

/* the guest in the basket: a greeting by name and their card, or the way back to the phone */
.ks-guest { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 14px var(--sp-3) 14px var(--sp-4); border-radius: 20px; background: var(--surface-2); }
.ks-guest.ks-guest-known { background: var(--accent-soft); }
.ks-guest-ic { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #FFFFFF; color: var(--accent); }
.ks-guest-main { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.ks-guest-hi { font-size: var(--fs-lg); font-weight: var(--fw-semibold); line-height: 1.3; }
.ks-guest-sub { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.4; }
.ks-guest.ks-guest-none .ks-guest-hi { font-weight: var(--fw-medium); }
.ks-link { flex: none; min-height: 48px; padding: 0 var(--sp-4); border: 0; border-radius: var(--r-pill); background: #FFFFFF; color: var(--accent); box-shadow: var(--shadow-1); font-size: var(--fs-md); font-weight: var(--fw-semibold); cursor: pointer; }

/* the number screen: where the SMS goes */
.ks-done-sms { display: flex; align-items: flex-start; gap: 10px; max-width: 460px; margin-top: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-radius: 16px; background: var(--accent-soft); color: var(--ink); font-size: var(--fs-md); line-height: 1.4; text-align: left; }
.ks-done-sms .ic { flex: none; margin-top: 1px; color: var(--accent); }
.ks-done-sms .ks-demo-note { display: block; margin-top: 2px; }

/* the iPad's rail «Киоск»: an order whose guest left a phone — «SMS», ticked once the «ready» notice went — and the guest
   card it brought */
.rk-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.rk-sms, .rk-card { display: inline-flex; flex: none; align-items: center; gap: 4px; padding: 3px 8px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); font-size: var(--fs-xs); font-weight: var(--fw-semibold); line-height: 1.3; }
.rk-sms.sent { background: var(--ok-soft); color: var(--ok); }
.rk-card { background: var(--s3-soft); color: var(--ink); }

@media (max-width: 640px) {
  .ks-up-list { grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); }
  .ks-up-card { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; grid-template-areas: 'img name btn' 'img price btn'; align-items: center; gap: 2px var(--sp-3); padding: var(--sp-2); border-radius: 20px; }
  .ks-up-card .ks-img { grid-area: img; width: 76px; margin: 0; border-radius: 14px; }
  .ks-up-name { grid-area: name; align-self: end; min-height: 0; font-size: var(--fs-sm); }
  .ks-up-card .ks-price { grid-area: price; align-self: start; margin: 0; font-size: var(--fs-sm); }
  .ks-up-btn { grid-area: btn; width: 116px; min-height: 48px; padding: 0 var(--sp-2); font-size: var(--fs-sm); }
  .ks-phone .ks-modal-title { padding: 0 40px; font-size: var(--fs-lg); }
  .ks-tel { min-height: 60px; margin-top: var(--sp-2); padding: 10px var(--sp-4); }
  .ks-tel-cc { font-size: var(--fs-lg); }
  .ks-tel-n { font-size: var(--fs-xl); }
  .ks-key { min-height: 56px; border-radius: 16px; font-size: var(--fs-xl); }
  .ks-keys { gap: var(--sp-2); }
  .ks-consent { min-height: 56px; margin-top: var(--sp-3); }
  .ks-consent-t { font-size: var(--fs-sm); }
  .ks-secondary { min-height: 60px; font-size: var(--fs-md); }
  .ks-guest { flex-wrap: wrap; padding: var(--sp-3); }
  .ks-guest .ks-link { margin-left: 58px; }
}

/* ---------- the kiosk's settings in the back office (ui/office-kiosk.jsx): the app's own tokens, light and dark ---------- */
.ko-period { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); }
.ko-period .select { width: auto; min-width: 200px; }
.ko-switch { padding: 0; border: 0; cursor: default; }
.ko-fig { color: var(--ink-2); }
.ko-h { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.ko-rules-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2); min-height: var(--h-sm); margin-top: var(--sp-1); }
.ko-rules { display: flex; flex-direction: column; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-md); list-style: none; }
.ko-rules.ko-dim .ko-rule-main { opacity: 0.6; }
.ko-rule { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3); border-bottom: 1px solid var(--line); }
.ko-rule:last-child { border-bottom: 0; }
.ko-rule-top { display: flex; align-items: flex-start; gap: var(--sp-3); }
.ko-rule-n { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.ko-rule-main { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.ko-rule-t { font-weight: var(--fw-semibold); line-height: var(--lh-tight); }
.ko-rule.off .ko-rule-t { color: var(--ink-3); }
.ko-rule-now { text-wrap: balance; }
.ko-rule-fig { color: var(--ink-2); }
.ko-rule-act { padding-left: 40px; }
.ko-form { display: flex; flex-direction: column; gap: var(--sp-3); margin-left: 40px; padding: var(--sp-3); border-radius: var(--r-md); background: var(--surface-2); }
.ko-field { display: flex; flex-direction: column; gap: var(--sp-2); }
.ko-warn { display: flex; align-items: flex-start; gap: var(--sp-2); color: var(--warn); }
.ko-warn .ic { flex: none; margin-top: 2px; }
.ko-form-act { display: flex; justify-content: flex-end; gap: var(--sp-2); }
.ko-sample { padding: var(--sp-3); border-radius: var(--r-md); background: var(--surface-2); color: var(--ink); }
@media (max-width: 640px) {
  .ko-rule-act { padding-left: 0; }
  .ko-form { margin-left: 0; }
}

/* ---------- the kiosk in the front's look (2 November) ----------
   The owner, 2 November, 10:27: «дорисуем киоск до нашего нового визуала. То есть уберем пустые места и закругленные
   углы». As the iPad's front and the kitchen screen (88-ipad-look.css, 60-kds.css): straight edges — the cards, the
   pictures, the sheets without a radius; only keys are pills and marks round. No empty places: the dishes are the brand
   grid's tiles from edge to edge with a line between them, the rows even and full (ui/even-grid.jsx), no gaps, no
   margins at the sides. The header as tall as a key on the screen's shade, its pills at the right; the menu's folders a
   strip of keys under it, as the iPad's categories; a folder's name a row of the shade. Three styles of letters —
   22 semibold (a title, a total), 16 semibold (a dish, a key), 14 regular (the rest) — and the figures of an instrument
   for prices and numbers; no capitals. Always light, as before (55-kiosk.css). The guest app keeps its own look
   (57-guest.css): everything here is under .app.kiosk. */
.app.kiosk { --key-h: 64px; --ks-row: 64px; --ks-img: 200px; --pill: #FFFFFF; --pill-press: #DCE0E8; --zl: var(--line-2); }
/* the header's shade reaches under the status bar, as on the iPad and the kitchen screen (10-base.css) */
.app.kiosk { padding-top: 0; }

/* ---------- the header ---------- */
.app.kiosk .ks-head {
  position: relative; z-index: 2; min-height: calc(var(--key-h) + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) var(--sp-5) 0;
  background: linear-gradient(180deg, color-mix(in oklab, var(--bg), var(--accent) 4%), color-mix(in oklab, var(--bg), var(--surface) 35%));
  box-shadow: 0 1px 0 0 var(--zl);
}
.app.kiosk .ks-head .brand-loc { font-size: var(--fs-xl); font-weight: var(--fw-semibold); line-height: 28px; }
.app.kiosk .ks-lang { gap: var(--sp-1); padding: 0; border-radius: 0; background: none; }
.app.kiosk .ks-lang button { height: 44px; min-height: 0; padding: 0 var(--sp-4); border-radius: var(--r-pill); background: var(--pill); color: var(--ink); font-size: var(--fs-sm); font-weight: var(--fw-regular); box-shadow: none; }
.app.kiosk .ks-lang button:active { background: var(--pill-press); }
.app.kiosk .ks-lang button.on { background: var(--accent); color: var(--accent-ink); }
/* the staff's way out: a round key, quiet — guests should not reach for it */
.app.kiosk .ks-staff { border-radius: var(--r-pill); }

/* ---------- the folders: a strip of keys across the screen, as the iPad's categories ---------- */
.app.kiosk .ks-nav { gap: 0; padding: 0; background: var(--bg); box-shadow: inset 0 -1px 0 0 var(--zl); }
.app.kiosk .ks-search-btn {
  width: var(--ks-row); height: var(--ks-row); border-radius: 0; background: var(--bg); color: var(--ink);
  box-shadow: inset -1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl);
}
.app.kiosk .ks-search-btn:active { background: var(--surface-3); }
.app.kiosk .ks-search-btn.on { background: var(--surface); }
.app.kiosk .ks-pills { gap: 0; padding: 0; -webkit-mask-image: none; mask-image: none; }
.app.kiosk .ks-pill {
  flex: 1 0 auto; min-width: 160px; height: var(--ks-row); min-height: 0; padding: 0 var(--sp-5); border-radius: 0;
  background: var(--bg); color: var(--ink-2); font-size: var(--fs-md); font-weight: var(--fw-semibold); transition: none;
  box-shadow: inset -1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl);
}
.app.kiosk .ks-pill:active { background: var(--surface-3); }
.app.kiosk .ks-pill.on { background: var(--accent); color: var(--accent-ink); font-weight: var(--fw-semibold); box-shadow: none; }
.app.kiosk .ks-search {
  height: var(--ks-row); padding: 0 var(--sp-5); border: 0; border-radius: 0; background: var(--surface); font-size: var(--fs-md);
  box-shadow: inset 0 -1px 0 0 var(--zl);
}
.app.kiosk .ks-search:focus { border: 0; box-shadow: inset 0 -2px 0 0 var(--accent); }

/* ---------- the menu: a folder's name a row of the shade; its dishes the brand grid's tiles ---------- */
.app.kiosk .ks-menu { padding: 0; background: var(--bg); }
.app.kiosk .ks-sec { padding: 0; }
.app.kiosk .ks-h {
  display: flex; align-items: center; min-height: 52px; margin: 0; padding: 0 var(--sp-5); background: var(--bg); color: var(--ink);
  font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; letter-spacing: 0; text-transform: none;
  box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl);
}
.app.kiosk .ks-sec:first-child .ks-h { box-shadow: inset 0 -1px 0 0 var(--zl); }
.app.kiosk .ks-grid { gap: 0; background: var(--surface); }
/* a tile: one column of its row, as every tile (the owner, 2 November: «не растягивай блоки»), its picture as tall in
   every row, the dish 16 semibold, its price in the figures of an instrument; a line at its left and above it — not at
   the start of a row, not in the first row (ui/even-grid.jsx marks them); round a short row's end the lines of --rim
   (86-tiles.css) */
.app.kiosk .ks-card {
  gap: var(--sp-1); padding: var(--sp-4) var(--sp-5) var(--sp-5); border-radius: 0; background: var(--surface); transition: background 0.12s;
  box-shadow: inset 1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl), var(--rim, 0 0 #0000);
}
.app.kiosk .ks-grid > .ks-card[data-rf] { box-shadow: inset 0 1px 0 0 var(--zl), var(--rim, 0 0 #0000); }
.app.kiosk .ks-grid > .ks-card[data-r0] { box-shadow: inset 1px 0 0 0 var(--zl), var(--rim, 0 0 #0000); }
.app.kiosk .ks-grid > .ks-card[data-r0][data-rf] { box-shadow: var(--rim, none); }
.app.kiosk .ks-card:active { transform: none; background: var(--surface-3); }
.app.kiosk .ks-card:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
/* in the basket: tinted, as a dish in the order on the iPhone */
.app.kiosk .ks-card:has(> .ks-badge) { background: var(--accent-soft); }
.app.kiosk .ks-img { height: var(--ks-img); aspect-ratio: auto; margin: 0 0 var(--sp-2); border-radius: 0; }
.app.kiosk .ks-img img { object-fit: contain; }
.app.kiosk .ks-name { min-height: 0; font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; }
.app.kiosk .ks-price { padding-top: var(--sp-1); color: var(--ink); font-family: var(--font-timer); font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.app.kiosk .ks-cur { color: var(--ink-2); font-family: var(--font-ui); font-size: var(--fs-sm); font-weight: var(--fw-regular); }
.app.kiosk .ks-left { margin-top: 0; color: #8A5300; font-size: var(--fs-sm); font-weight: var(--fw-regular); }
.app.kiosk .ks-badge { top: var(--sp-3); right: var(--sp-3); min-width: 32px; height: 32px; font-family: var(--font-timer); font-size: var(--fs-md); }
.app.kiosk .ks-card.off { opacity: 1; }
.app.kiosk .ks-card.off > * { opacity: 0.45; }
.app.kiosk .ks-card.off .ks-price { color: var(--ink-2); font-family: var(--font-ui); font-weight: var(--fw-regular); font-size: var(--fs-sm); }
.app.kiosk .ks-none { padding: var(--sp-6) var(--sp-5); color: var(--ink-2); font-size: var(--fs-md); }
.app.kiosk .ks-end { height: 120px; background: var(--bg); box-shadow: inset 0 1px 0 0 var(--zl); }

/* ---------- the basket's key at the foot: one big pill, the accent's ---------- */
.app.kiosk .ks-bar { padding: var(--sp-6) var(--sp-5) calc(var(--sp-4) + env(safe-area-inset-bottom, 0px)); background: linear-gradient(rgb(234 237 243 / 0), var(--bg) 45%); }
.app.kiosk .ks-bar-btn { gap: var(--sp-3); min-height: 72px; padding: 0 var(--sp-2) 0 10px; background: var(--accent); color: var(--accent-ink); }
.app.kiosk .ks-bar-btn:active { background: var(--accent-2); }
.app.kiosk .ks-bar-n { min-width: 52px; height: 52px; padding: 0 var(--sp-2); border-radius: var(--r-pill); color: var(--accent); font-family: var(--font-timer); font-size: var(--fs-xl); font-weight: var(--fw-semibold); }
.app.kiosk .ks-bar-t { font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.app.kiosk .ks-bar-sum { font-family: var(--font-timer); font-size: var(--fs-xl); font-weight: var(--fw-semibold); }
.app.kiosk .ks-bar-go { min-height: 52px; padding: 0 var(--sp-4); background: none; font-size: var(--fs-md); font-weight: var(--fw-semibold); }

/* ---------- the sheets: from edge to edge, no radius; on a lying iPad a column in the middle ---------- */
.app.kiosk .ks-scrim { padding: var(--key-h) 0 0; }
.app.kiosk .ks-modal { width: 100%; max-height: 100%; border-radius: 0; box-shadow: 0 -1px 0 0 var(--zl); }
.app.kiosk .ks-x { top: var(--sp-3); right: var(--sp-4); width: 44px; height: 44px; border-radius: var(--r-pill); background: var(--surface-3); box-shadow: none; }
.app.kiosk .ks-x:active { background: var(--pill-press); }
.app.kiosk .ks-modal-img { height: min(320px, 30vh); background: var(--bg); box-shadow: inset 0 -1px 0 0 var(--zl); }
.app.kiosk .ks-modal-img img { object-fit: contain; }
.app.kiosk .ks-modal-img .ks-x, .app.kiosk .ks-modal > .ks-x { background: var(--surface-3); }
.app.kiosk .ks-modal-body { gap: var(--sp-1); padding: var(--sp-5) 0 0; }
.app.kiosk .ks-modal-body > :is(.ks-modal-title, .ks-modal-price, .ks-desc, .ks-alg, .ks-muted, .ks-kept, .ks-none) { margin-right: var(--sp-5); margin-left: var(--sp-5); }
.app.kiosk :is(.ks-basket, .ks-up) .ks-modal-body { padding-top: var(--sp-4); }
.app.kiosk .ks-modal-title { padding-right: 60px; font-size: var(--fs-xl); font-weight: var(--fw-semibold); line-height: 28px; }
.app.kiosk .ks-modal-price { color: var(--ink); font-family: var(--font-timer); font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.app.kiosk .ks-weight { font-family: var(--font-ui); font-size: var(--fs-sm); font-weight: var(--fw-regular); }
.app.kiosk .ks-desc { margin-top: var(--sp-1); color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; }
/* the allergens: the words, not chips — a pill is a key */
.app.kiosk .ks-alg { gap: 0 var(--sp-2); margin-top: var(--sp-1); font-size: var(--fs-sm); }
.app.kiosk .ks-alg-t { color: var(--ink-3); font-size: var(--fs-sm); font-weight: var(--fw-regular); letter-spacing: 0; text-transform: none; }
.app.kiosk .ks-alg-chip { padding: 0; border-radius: 0; background: none; box-shadow: none; color: var(--ink); font-size: var(--fs-sm); }
.app.kiosk .ks-alg-chip:not(:last-child)::after { content: ','; }
.app.kiosk .ks-muted { color: var(--ink-2); font-size: var(--fs-sm); }
/* a group of options: its name a row of the shade between two lines; the options the brand grid's tiles, 64 high, the
   chosen one tinted — as the iPad's dish options */
.app.kiosk .ks-group { gap: 0; margin-top: var(--sp-5); }
.app.kiosk .ks-group-t {
  display: flex; align-items: center; min-height: 44px; padding: 0 var(--sp-5); background: var(--bg); color: var(--ink-2);
  font-size: var(--fs-sm); font-weight: var(--fw-regular); letter-spacing: 0; text-transform: none;
  box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl);
}
.app.kiosk .ks-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.app.kiosk .ks-opt {
  justify-content: space-between; min-width: 0; min-height: var(--key-h); padding: 0 var(--sp-5); border: 0; border-radius: 0;
  background: var(--surface); color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); text-align: left;
  box-shadow: inset 1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl), var(--rim, 0 0 #0000);
}
.app.kiosk .ks-opts > .ks-opt[data-rf] { box-shadow: inset 0 1px 0 0 var(--zl), var(--rim, 0 0 #0000); }
.app.kiosk .ks-opts > .ks-opt[data-r0] { box-shadow: inset 1px 0 0 0 var(--zl), var(--rim, 0 0 #0000); }
.app.kiosk .ks-opts > .ks-opt[data-r0][data-rf] { box-shadow: var(--rim, none); }
.app.kiosk .ks-opt:active { background: var(--surface-3); }
.app.kiosk .ks-opt.on { background: var(--accent-soft); color: var(--accent-2); font-weight: var(--fw-semibold); }
.app.kiosk .ks-opt-p { color: var(--ink-2); font-family: var(--font-timer); font-size: var(--fs-sm); }
.app.kiosk .ks-kept { border-radius: 0; }
.app.kiosk .ks-kept-reset { border-radius: var(--r-pill); }
/* the foot: a line over it; the quantity one pill — «−», how many, «+» — as tall as the key beside it */
.app.kiosk .ks-modal-foot {
  gap: var(--sp-3); padding: var(--sp-4) var(--sp-5) calc(var(--sp-4) + env(safe-area-inset-bottom, 0px)); border-top: 0;
  box-shadow: inset 0 1px 0 0 var(--zl);
}
.app.kiosk .ks-step { gap: 0; height: var(--key-h); padding: 0; border-radius: var(--r-pill); background: var(--surface-3); }
.app.kiosk .ks-modal-foot > .ks-step { align-self: center; }
.app.kiosk .ks-step button { width: var(--key-h); height: var(--key-h); border-radius: var(--r-pill); background: none; box-shadow: none; }
.app.kiosk .ks-step button:active:not(:disabled) { background: var(--pill-press); }
.app.kiosk .ks-step span { min-width: 32px; font-family: var(--font-timer); font-size: var(--fs-xl); font-weight: var(--fw-semibold); }
.app.kiosk .ks-step.sm { height: 52px; }
.app.kiosk .ks-step.sm button { width: 52px; height: 52px; }
.app.kiosk .ks-step.sm span { min-width: 28px; font-size: var(--fs-md); }
.app.kiosk .ks-primary { min-height: var(--key-h); border-radius: var(--r-pill); font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.app.kiosk .ks-primary:active:not(:disabled) { background: var(--accent-2); }
.app.kiosk .ks-secondary { min-height: var(--key-h); border: 0; border-radius: var(--r-pill); background: var(--surface-3); font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.app.kiosk .ks-secondary:active { background: var(--pill-press); }
.app.kiosk .ks-total .mono { font-size: var(--fs-xl); font-weight: var(--fw-semibold); }
.app.kiosk .ks-total .ks-muted { font-size: var(--fs-sm); }
.app.kiosk .ks-promo { font-size: var(--fs-sm); }
.app.kiosk .ks-promo-row:not(:first-child) { color: var(--ok); font-weight: var(--fw-regular); }

/* ---------- the basket: the guest's row and the lines from edge to edge; here or to go — two keys of the grid ---------- */
.app.kiosk .ks-guest {
  gap: var(--sp-3); margin-top: var(--sp-4); padding: var(--sp-3) var(--sp-5); border-radius: 0; background: var(--bg);
  box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl);
}
.app.kiosk .ks-guest.ks-guest-known { background: var(--accent-soft); }
.app.kiosk .ks-guest-hi { font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.app.kiosk .ks-guest.ks-guest-none .ks-guest-hi { font-weight: var(--fw-semibold); }
.app.kiosk .ks-guest-sub { font-size: var(--fs-sm); }
.app.kiosk .ks-link { min-height: 44px; border-radius: var(--r-pill); background: var(--pill); box-shadow: none; font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.app.kiosk .ks-lines { margin-top: 0; }
.app.kiosk .ks-line { gap: var(--sp-3); padding: var(--sp-3) var(--sp-5); border-bottom: 0; box-shadow: inset 0 -1px 0 0 var(--zl); }
.app.kiosk .ks-line-img { width: 64px; height: 64px; border-radius: 0; background: var(--bg); }
.app.kiosk .ks-line-img img { object-fit: contain; }
.app.kiosk .ks-line-name { font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.app.kiosk .ks-line-sum { color: var(--ink-2); font-family: var(--font-timer); font-size: var(--fs-sm); }
.app.kiosk .ks-where { gap: 0; }
.app.kiosk .ks-where-btn {
  min-height: 96px; border: 0; border-radius: 0; background: var(--surface); color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold);
  box-shadow: inset 1px 0 0 0 var(--zl);
}
.app.kiosk .ks-where-btn:first-child { box-shadow: none; }
.app.kiosk .ks-where-btn:active { background: var(--surface-3); }
.app.kiosk .ks-where-btn.on { background: var(--accent); color: var(--accent-ink); box-shadow: none; }

/* ---------- «Dodati uz porudžbinu?»: the menu's tiles, each with its own key ---------- */
/* (3 November: the lines checked again) the first row draws its own top line too — the list's own lay under the tiles */
.app.kiosk .ks-up-list { gap: 0; margin: var(--sp-4) 0 0; box-shadow: inset 0 1px 0 0 var(--zl); }
.app.kiosk .ks-up-card {
  gap: var(--sp-1); padding: var(--sp-4) var(--sp-5) var(--sp-5); border-radius: 0; background: var(--surface);
  box-shadow: inset 1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl), var(--rim, 0 0 #0000);
}
.app.kiosk .ks-up-list > .ks-up-card[data-rf] { box-shadow: inset 0 1px 0 0 var(--zl), var(--rim, 0 0 #0000); }
.app.kiosk .ks-up-card.on { background: var(--accent-soft); box-shadow: inset 1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl), var(--rim, 0 0 #0000); }
.app.kiosk .ks-up-list > .ks-up-card.on[data-rf] { box-shadow: inset 0 1px 0 0 var(--zl), var(--rim, 0 0 #0000); }
.app.kiosk .ks-up-card .ks-img { height: 160px; border-radius: 0; }
.app.kiosk .ks-up-name { min-height: 0; font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; }
.app.kiosk .ks-up-card .ks-price { margin-top: auto; }
.app.kiosk .ks-up-btn { margin-top: var(--sp-2); min-height: 52px; border-radius: var(--r-pill); font-size: var(--fs-md); }
.app.kiosk .ks-up-btn.on { background: var(--ok); color: #FFFFFF; }

/* ---------- the guest's phone: the number a row of the shade; the keypad from edge to edge ---------- */
.app.kiosk .ks-phone .ks-modal-body { gap: 0; padding-top: var(--sp-5); }
.app.kiosk .ks-phone-ic { width: 56px; height: 56px; margin-bottom: var(--sp-3); }
.app.kiosk .ks-phone .ks-modal-title { max-width: 600px; padding: 0 var(--sp-6); font-size: var(--fs-xl); }
.app.kiosk .ks-tel {
  width: 100%; min-height: 80px; margin-top: var(--sp-4); padding: var(--sp-3) var(--sp-5); border-radius: 0; background: var(--bg);
  box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl);
}
.app.kiosk .ks-tel.ks-tel-ok { box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -3px 0 0 var(--accent); }
.app.kiosk .ks-tel-cc { font-family: var(--font-timer); font-size: var(--fs-xl); font-weight: var(--fw-semibold); }
.app.kiosk .ks-tel-n { font-size: var(--fs-2xl); letter-spacing: 0; }
.app.kiosk .ks-tel-hint { min-height: 44px; margin: 0; padding: var(--sp-3) var(--sp-5) 0; color: var(--ink-2); font-size: var(--fs-sm); }
.app.kiosk .ks-keys { gap: 0; width: 100%; margin: 0; box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.app.kiosk .ks-key {
  min-height: 80px; border-radius: 0; background: var(--surface); font-family: var(--font-timer); font-size: var(--fs-2xl); font-weight: var(--fw-semibold);
  box-shadow: inset 1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl);
}
.app.kiosk .ks-key:nth-child(3n + 1) { box-shadow: inset 0 1px 0 0 var(--zl); }
/* (3 November: the lines checked again) the first row draws its top line itself — the keypad's own lay under the keys */
.app.kiosk .ks-key:active:not(:disabled) { transform: none; background: var(--surface-3); }
.app.kiosk .ks-key-fn { background: var(--bg); color: var(--ink); }
.app.kiosk .ks-consent {
  width: 100%; min-height: 72px; margin-top: 0; padding: var(--sp-3) var(--sp-5); border-radius: 0; background: var(--surface);
  box-shadow: inset 0 -1px 0 0 var(--zl);
}
.app.kiosk .ks-consent.ks-consent-ask { background: var(--accent-soft); box-shadow: inset 0 -1px 0 0 var(--zl); }
.app.kiosk .ks-consent-box { width: 32px; height: 32px; border-radius: 0; }
.app.kiosk .ks-consent-t { font-size: var(--fs-sm); }
.app.kiosk .ks-demo-note { margin: 0; padding: var(--sp-3) var(--sp-5); color: var(--ink-2); font-size: var(--fs-sm); }
.app.kiosk .ks-modal-foot.ks-two { gap: var(--sp-3); }

/* ---------- the number: two zones — the header, then the number on the screen's surface; the key at the foot ---------- */
.app.kiosk .ks-done { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; place-content: stretch; place-items: stretch; gap: 0; padding: 0; background: var(--surface); }
.app.kiosk .ks-done > .brand {
  display: flex; align-items: center; min-height: calc(var(--key-h) + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) var(--sp-5) 0;
  background: linear-gradient(180deg, color-mix(in oklab, var(--bg), var(--accent) 4%), color-mix(in oklab, var(--bg), var(--surface) 35%));
  box-shadow: 0 1px 0 0 var(--zl);
}
.app.kiosk .ks-done .brand-loc { font-size: var(--fs-xl); font-weight: var(--fw-semibold); line-height: 28px; }
.app.kiosk .ks-done-card { justify-content: center; gap: var(--sp-2); width: 100%; padding: var(--sp-6) var(--sp-5); border-radius: 0; background: none; box-shadow: none; }
.app.kiosk .ks-done-l { color: var(--ink-2); font-size: var(--fs-md); font-weight: var(--fw-semibold); letter-spacing: 0; text-transform: none; }
.app.kiosk .ks-done-n { color: var(--accent); font-family: var(--font-timer); font-size: 168px; font-weight: var(--fw-semibold); line-height: 1; }
.app.kiosk .ks-done-t { margin-top: var(--sp-2); font-size: var(--fs-xl); }
.app.kiosk .ks-done .ks-muted { font-size: var(--fs-sm); }
.app.kiosk .ks-done-sms { margin-top: var(--sp-3); border-radius: 0; font-size: var(--fs-sm); }
.app.kiosk .ks-done > .ks-primary { width: auto; margin: 0 var(--sp-5) calc(var(--sp-5) + env(safe-area-inset-bottom, 0px)); }

/* ---------- a lying iPad: four tiles to a row (55-kiosk.css); the sheets a column in the middle, its edges lines ---------- */
@media (min-width: 1000px) {
  .app.kiosk .ks-modal { width: min(760px, 100%); box-shadow: -1px 0 0 0 var(--zl), 1px 0 0 0 var(--zl), 0 -1px 0 0 var(--zl); }
  .app.kiosk .ks-done-card { width: min(760px, 100%); justify-self: center; }
  .app.kiosk .ks-done > .ks-primary { width: min(720px, calc(100% - 40px)); justify-self: center; margin-right: 0; margin-left: 0; }
}
/* a narrow window (the kiosk in a phone's width): two tiles to a row, the pictures lower */
@media (max-width: 640px) {
  .app.kiosk { --ks-img: 140px; }
  .app.kiosk .ks-head { padding-right: var(--sp-4); padding-left: var(--sp-4); }
  .app.kiosk .ks-lang button { padding: 0 var(--sp-3); }
  .app.kiosk .ks-pill { min-width: 120px; padding: 0 var(--sp-4); }
  .app.kiosk .ks-card { padding: var(--sp-3) var(--sp-4) var(--sp-4); }
  .app.kiosk .ks-grid { gap: 0; }
  .app.kiosk .ks-bar { padding-right: var(--sp-4); padding-left: var(--sp-4); }
  .app.kiosk .ks-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app.kiosk .ks-up-list { grid-template-columns: minmax(0, 1fr); }
  .app.kiosk .ks-up-card { grid-template-columns: 76px minmax(0, 1fr) auto; padding: var(--sp-3) var(--sp-4); border-radius: 0; }
  .app.kiosk .ks-up-card .ks-img { width: 76px; height: 76px; }
  .app.kiosk .ks-up-btn { margin-top: 0; }
  .app.kiosk .ks-key { min-height: 64px; }
  .app.kiosk .ks-done-n { font-size: 120px; }
}

/* ---------- the kiosk's menu as cards (15 November, the owner chose «А» of three) ----------
   As the restaurant's page on order.ruvo.ac: the folders chips on the shade (the chosen one ink, not a blue cell — «В
   киоске тоже много синих квадратов»), tiles over the menu — the promotions running now, then the best sellers «Хит» —,
   the dishes white cards on the shade (three to a row upright, four on a lying iPad, two on a phone), a round «+» on
   each. A dish in the basket is not tinted: its count says so. The blue is the key that moves the order on. */
.app.kiosk { --ks-img: 196px; }
.app.kiosk .ks-nav { gap: var(--sp-2); padding: var(--sp-3) var(--sp-5); background: var(--bg); box-shadow: none; }
.app.kiosk .ks-search-btn { flex: none; width: 52px; height: 52px; border-radius: var(--r-pill); background: var(--surface); box-shadow: none; }
.app.kiosk .ks-search-btn.on { background: var(--surface); }
.app.kiosk .ks-search { height: 52px; border-radius: var(--r-pill); box-shadow: none; }
.app.kiosk .ks-search:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.app.kiosk .ks-pills { gap: var(--sp-2); }
.app.kiosk .ks-pill { flex: none; min-width: 0; height: 52px; padding: 0 var(--sp-5); border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font-weight: var(--fw-semibold); box-shadow: none; }
.app.kiosk .ks-pill:active { background: var(--surface-3); }
.app.kiosk .ks-pill.on { background: var(--ink); color: var(--surface); box-shadow: none; }
/* the tiles over the menu */
.app.kiosk .ks-promos { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: var(--sp-3); padding: var(--sp-2) var(--sp-5); overflow-x: auto; scrollbar-width: none; }
.app.kiosk .ks-promos::-webkit-scrollbar { display: none; }
.app.kiosk .ks-promo-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-1); height: 164px; padding: var(--sp-4) var(--sp-5); border: 0; border-radius: 20px; background: var(--surface); color: var(--ink); text-align: left; overflow: hidden; cursor: pointer; }
.app.kiosk .ks-promo-tile:active { background: var(--surface-3); }
.app.kiosk .ks-promo-tile.is-off { background: var(--ink); color: var(--surface); }
.app.kiosk .ks-promo-big { font-family: var(--font-timer); font-size: 40px; font-weight: var(--fw-semibold); line-height: 1; }
.app.kiosk .ks-promo-t { max-width: 46%; font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; }
.app.kiosk .ks-promo-tag { padding: 2px 10px; border-radius: var(--r-pill); background: var(--bg); color: var(--ink); font-size: var(--fs-sm); font-weight: var(--fw-regular); line-height: 20px; }
.app.kiosk .ks-promo-img { position: absolute; right: 4px; bottom: 4px; width: 50%; height: 90%; }
.app.kiosk .ks-promo-img :is(img, svg) { width: 100%; height: 100%; object-fit: contain; }
/* the folders' names over their cards; the cards */
.app.kiosk .ks-menu { background: var(--bg); }
.app.kiosk :is(.ks-sec, .ks-sec:first-child) .ks-h { min-height: 0; padding: var(--sp-5) var(--sp-5) var(--sp-3); background: var(--bg); font-size: var(--fs-xl); line-height: 28px; box-shadow: none; }
.app.kiosk .ks-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); padding: 0 var(--sp-5); background: var(--bg); }
.app.kiosk .ks-grid > .ks-card:is([data-rf][data-r0], [data-rf], [data-r0], *) { --rim: 0 0 #0000; position: relative; padding: var(--sp-3) var(--sp-4) var(--sp-4); border-radius: 20px; background: var(--surface); box-shadow: none; }
.app.kiosk .ks-grid > .ks-card:is([data-rf][data-r0], [data-rf], [data-r0], *):active { background: var(--surface-3); }
.app.kiosk .ks-card:has(> .ks-badge) { background: var(--surface); }
.app.kiosk .ks-name { padding-right: 48px; }
.app.kiosk .ks-add { position: absolute; right: var(--sp-3); bottom: var(--sp-3); display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-pill); background: var(--bg); color: var(--ink); }
.app.kiosk .ks-end { background: var(--bg); box-shadow: none; }
@media (min-width: 1100px) { .app.kiosk .ks-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .app.kiosk .ks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 var(--sp-4); }
  .app.kiosk .ks-promos { padding: var(--sp-2) var(--sp-4); }
  .app.kiosk :is(.ks-sec, .ks-sec:first-child) .ks-h { padding: var(--sp-4) var(--sp-4) var(--sp-2); }
}

/* ---------- the guest app (#guest): RUVO on a guest's own phone ----------
   Always light, like the kiosk's menu (its cards, dish sheet and basket are reused, sized here for a phone). On a wide
   screen the app stands in a phone-wide column; the column is the containing block of its sheets and toasts
   (transform), so they never spill over the rest of the screen. Prefix gu- (g- is taken by the launcher's glyphs). */
.guest-shell { align-items: center; background: #D5D9E1; }
.guest {
  --bg: #F0F2F6; --surface: #FFFFFF; --surface-2: #F5F7FA; --surface-3: #E4E8EF;
  --ink: #131824; --ink-2: #49505E; --ink-3: #5D6370; --line: #D5D9E1; --line-2: #BFC4CF; --star: #805202;
  --accent: #1E44B0; --accent-2: #0D2D99; --accent-ink: #FFFFFF; --accent-soft: #D8E5FF;
  --ok: #007440; --ok-soft: #CBEFD6; --warn: #805202; --warn-soft: #FAE0C1; --bad: #BE2E31; --bad-soft: #FEDBD7;
  --scrim: rgb(19 24 36 / 0.45); --ks-card: #FFFFFF; --knob: #FFFFFF;
  position: relative; display: flex; flex-direction: column; width: 100%; max-width: 440px; height: 100%; min-height: 0; overflow: hidden;
  background: var(--bg); color: var(--ink); color-scheme: light;
  transform: translateZ(0);
}
@media (min-width: 600px) { .guest { box-shadow: var(--shadow-2); } }
.gu-home, .gu-menuview, .gu-statusview, .gu-scanview { position: relative; display: flex; flex: 1; flex-direction: column; min-height: 0; }
.gu-scroll { flex: 1; min-height: 0; padding: var(--sp-2) var(--sp-4) var(--sp-6); overflow-y: auto; overscroll-behavior: contain; }
.gu-note { color: var(--ink-3); font-size: var(--fs-sm); line-height: 1.45; }
.gu-h { margin: 28px 4px 12px; font-size: var(--fs-xl); font-weight: var(--fw-bold); letter-spacing: var(--track-tight); line-height: var(--lh-tight); }
.gu-h-first { margin-top: var(--sp-2); }
.gu-sub-h { margin: var(--sp-4) 4px var(--sp-2); color: var(--ink-3); font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: var(--track-caps); text-transform: uppercase; }
.gu-btn2 {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: 48px; margin-top: 14px; padding: 0 18px;
  border: 1.5px solid var(--line-2); border-radius: var(--r-pill); background: #FFFFFF; color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); cursor: pointer;
}

/* home: the brand, the language, the QR button, the map and the venues; the tab bar below */
.gu-head { display: flex; flex: none; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-4) var(--sp-4) var(--sp-2); }
.gu-brand { display: inline-flex; align-items: center; gap: 10px; }
.gu-brand .wordmark { padding: 7px 12px 6px calc(12px + 0.08em); border-radius: 8px; font-size: var(--fs-md); }
.gu-brand .wordmark::after { border-radius: 6px; }
.gu-brand-for { color: var(--ink-3); font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: var(--track-caps); text-transform: uppercase; }
.gu-lang { display: inline-flex; padding: 0 3px; border-radius: var(--r-pill); background: #E4E8EF; }
/* each language is as tall as the switch (44px); its white pill is drawn 3px inside */
.gu-lang button { position: relative; z-index: 0; min-width: 44px; min-height: 44px; padding: 0 10px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink-2); font-size: var(--fs-sm); font-weight: var(--fw-semibold); cursor: pointer; }
.gu-lang button::before { content: ''; position: absolute; inset: 3px 0; z-index: -1; border-radius: var(--r-pill); }
.gu-lang button.on { color: var(--ink); }
.gu-lang button.on::before { background: #FFFFFF; box-shadow: var(--shadow-1); }
.gu-scan {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px 16px 18px 18px; border: 0; border-radius: 24px;
  background: var(--accent); color: #FFFFFF; text-align: left; box-shadow: 0 10px 24px rgb(30 68 176 / 0.26); cursor: pointer;
}
.gu-scan:active { transform: scale(0.99); }
.gu-scan-ic { display: grid; flex: none; place-items: center; width: 56px; height: 56px; border-radius: var(--r-lg); background: rgb(255 255 255 / 0.16); }
.gu-scan-t { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.gu-scan-h { font-size: var(--fs-lg); font-weight: var(--fw-semibold); line-height: 1.25; }
.gu-scan-s { font-size: var(--fs-sm); line-height: 1.35; opacity: 0.86; }

/* the map: a drawn plan of the city with the venues' pins over it */
.gu-map { position: relative; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 24px; background: #EEF1F6; box-shadow: var(--shadow-1); container-type: inline-size; }
.gu-map svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.gu-map-land { fill: #EEF1F6; }
.gu-map-park { fill: #CBEFD6; }
.gu-map-river { fill: none; stroke: #D8E5FF; stroke-linecap: round; }
.gu-map-river.dunav { stroke-width: 22; }
.gu-map-river.sava { stroke-width: 14; }
.gu-map-bridge { stroke: #FFFFFF; stroke-width: 4; stroke-linecap: round; }
.gu-map-water { fill: #5C82DA; font-family: var(--font-ui); font-size: 11px; font-style: italic; font-weight: var(--fw-medium); }
.gu-map-city { fill: #ADB1B9; font-family: var(--font-ui); font-size: 10px; font-weight: var(--fw-semibold); letter-spacing: 0.18em; }
.gu-pin {
  position: absolute; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: none;
  color: var(--ink); transform: translate(-11px, -50%); cursor: pointer;
}
.gu-pin.left { flex-direction: row-reverse; transform: translate(calc(-100% + 11px), -50%); }
.gu-pin.below { flex-direction: column; gap: 2px; transform: translate(-50%, -11px); }
.gu-pin.above { flex-direction: column-reverse; gap: 2px; transform: translate(-50%, calc(-100% + 11px)); }
.gu-pin-dot { flex: none; width: 22px; height: 22px; border: 3px solid #FFFFFF; border-radius: 50%; background: var(--accent); box-shadow: 0 2px 6px rgb(19 24 36 / 0.3); }
.gu-pin-label { padding: 3px 9px; border-radius: var(--r-pill); background: #FFFFFF; font-size: var(--fs-xs); font-weight: var(--fw-semibold); white-space: nowrap; box-shadow: 0 1px 4px rgb(19 24 36 / 0.18); }
.gu-pin:hover .gu-pin-label, .gu-pin:focus-visible .gu-pin-label { background: var(--accent); color: #FFFFFF; }
/* a small phone: smaller names, so they stay on the plan */
@container (max-width: 340px) { .gu-pin-label { padding: 2px 6px; } .gu-pin-dot { width: 18px; height: 18px; } .gu-pin { transform: translate(-9px, -50%); } .gu-pin.left { transform: translate(calc(-100% + 9px), -50%); } .gu-pin.below { transform: translate(-50%, -9px); } .gu-pin.above { transform: translate(-50%, calc(-100% + 9px)); } }

.gu-places { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.gu-place {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 14px 14px 16px; border: 0; border-radius: var(--r-xl);
  background: #FFFFFF; color: var(--ink); text-align: left; box-shadow: var(--shadow-1); cursor: pointer;
}
.gu-place > .ic { flex: none; color: var(--ink-3); }
.gu-place-t { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.gu-place-name { font-size: var(--fs-lg); font-weight: var(--fw-semibold); line-height: 1.25; }
.gu-place-sub { color: var(--ink-3); font-size: var(--fs-sm); }
.gu-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.gu-tag { padding: 2px 8px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.gu-places + .gu-note { margin: 14px 4px 0; }
.gu-proto { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: var(--sp-4); padding: 0 4px; border: 0; background: none; color: var(--ink-3); font-size: var(--fs-sm); cursor: pointer; }

/* an order on its way: a bar above the tabs, and the tabs */
.gu-live {
  display: flex; flex: none; align-items: center; gap: 10px; margin: 0 12px 10px; padding: 12px 14px; border: 0; border-radius: 18px;
  background: var(--ink); color: #FFFFFF; text-align: left; box-shadow: var(--shadow-2); cursor: pointer;
}
.gu-live-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #5AC485; animation: gu-pulse 1.6s ease-in-out infinite; }
@keyframes gu-pulse { 50% { opacity: 0.35; } }
.gu-live-no { font-weight: var(--fw-bold); }
.gu-live-t { flex: 1; min-width: 0; overflow: hidden; font-size: var(--fs-sm); white-space: nowrap; text-overflow: ellipsis; }
.gu-tabs { display: grid; flex: none; grid-template-columns: 1fr 1fr; padding-bottom: env(safe-area-inset-bottom, 0px); border-top: 1px solid var(--line); background: #FFFFFF; }
.gu-tab {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; padding: 6px 0 8px;
  border: 0; background: none; color: var(--ink-3); font-size: var(--fs-xs); font-weight: var(--fw-semibold); cursor: pointer;
}
.gu-tab.on { color: var(--accent); }
.gu-tab-badge { position: absolute; top: 5px; left: calc(50% + 8px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill); background: var(--accent); color: #FFFFFF; font-size: var(--fs-xs); line-height: 18px; text-align: center; }

/* this phone's orders */
.gu-orders { display: flex; flex-direction: column; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.gu-order-row {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px 12px 12px; border: 0; border-radius: 18px;
  background: #FFFFFF; color: var(--ink); text-align: left; box-shadow: var(--shadow-1); cursor: pointer;
}
.gu-order-no { display: grid; flex: none; place-items: center; min-width: 52px; height: 44px; padding: 0 8px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent); font-weight: var(--fw-bold); }
.gu-order-row.gus-ready .gu-order-no { background: var(--ok-soft); color: var(--ok); }
.gu-order-row.gus-served .gu-order-no, .gu-order-row.gus-void .gu-order-no { background: var(--surface-3); color: var(--ink-2); }
.gu-order-t { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.gu-order-st { font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 1.3; }
.gu-order-sub { overflow: hidden; color: var(--ink-3); font-size: var(--fs-sm); white-space: nowrap; text-overflow: ellipsis; }
.gu-order-at { flex: none; color: var(--ink-3); font-size: var(--fs-sm); }
.gu-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 64px 24px; text-align: center; }
.gu-empty-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--surface-3); color: var(--ink-2); }
.gu-empty-t { font-size: var(--fs-lg); font-weight: var(--fw-semibold); }

/* the QR code: a camera's viewfinder above, the demo's choice of the table below */
.gu-scanview { background: #0E1016; color: #FFFFFF; }
.gu-cam {
  position: relative; display: flex; flex: none; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  height: 44%; min-height: 250px; padding: 48px 24px 28px; background: radial-gradient(120% 90% at 50% 40%, #262A33 0%, #0E1016 70%);
}
.gu-cam-x { position: absolute; top: 12px; left: 12px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgb(255 255 255 / 0.12); color: #FFFFFF; cursor: pointer; }
.gu-cam-frame { position: relative; width: min(52vw, 180px); aspect-ratio: 1; }
.gu-cam-frame span { position: absolute; width: 34px; height: 34px; border: 4px solid #FFFFFF; transition: border-color 0.2s; }
.gu-cam-frame span:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.gu-cam-frame span:nth-child(2) { top: 0; right: 0; border-bottom: 0; border-left: 0; border-top-right-radius: 14px; }
.gu-cam-frame span:nth-child(3) { bottom: 0; left: 0; border-top: 0; border-right: 0; border-bottom-left-radius: 14px; }
.gu-cam-frame span:nth-child(4) { right: 0; bottom: 0; border-top: 0; border-left: 0; border-bottom-right-radius: 14px; }
.gu-cam-frame i { position: absolute; top: 10%; right: 12px; left: 12px; height: 2px; border-radius: 2px; background: #81A8FF; box-shadow: 0 0 12px #81A8FF; animation: gu-scan 2.2s ease-in-out infinite; }
@keyframes gu-scan { 50% { top: 88%; } }
.gu-cam-frame.hit span { border-color: #5AC485; }
.gu-cam-frame.hit i { display: none; }
.gu-cam-t { max-width: 30ch; font-size: var(--fs-md); text-align: center; opacity: 0.9; }
.gu-demo { flex: 1; min-height: 0; padding: 18px 16px 24px; overflow-y: auto; border-radius: 24px 24px 0 0; background: var(--bg); color: var(--ink); }
.gu-demo-t { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.45; }
.gu-chips { display: flex; gap: var(--sp-2); margin: 14px -16px 0; padding: 2px 16px; overflow-x: auto; scrollbar-width: none; }
.gu-chips::-webkit-scrollbar { display: none; }
.gu-chip { flex: none; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: var(--r-pill); background: #FFFFFF; color: var(--ink); font-size: var(--fs-md); cursor: pointer; }
.gu-chip.on { border-color: var(--accent); background: var(--accent); color: #FFFFFF; }
.gu-tables { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-2); }
.gu-table { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; border: 1.5px solid var(--line); border-radius: var(--r-lg); background: #FFFFFF; color: var(--ink); cursor: pointer; }
.gu-table:disabled { cursor: default; }
.gu-table.on { border-color: var(--ok); background: var(--ok-soft); }
.gu-table-n { font-size: var(--fs-xl); font-weight: var(--fw-bold); line-height: 1; }
.gu-table-s { color: var(--ink-3); font-size: var(--fs-xs); }

/* a venue's menu: a header with the way back, the venue's card or the table's note, the pills, the dishes */
.gu-top {
  display: grid; flex: none; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: var(--sp-2);
  min-height: 60px; padding: var(--sp-2) 12px; border-bottom: 1px solid var(--line); background: #FFFFFF;
}
.gu-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.gu-icon:hover { background: var(--surface-2); }
.gu-top-t { display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; }
.gu-top-h { max-width: 100%; overflow: hidden; font-size: var(--fs-lg); font-weight: var(--fw-bold); line-height: 1.25; white-space: nowrap; text-overflow: ellipsis; }
.gu-top-s { max-width: 100%; overflow: hidden; color: var(--ink-3); font-size: var(--fs-sm); white-space: nowrap; text-overflow: ellipsis; }
.gu-top-r { display: grid; place-items: center; color: var(--accent); }
.gu-top-table { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #FFFFFF; font-weight: var(--fw-bold); }
.gu-top-no { padding: 4px 8px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.gu-menu { position: relative; padding: 0 0 var(--sp-6); }
.gu-banner { display: flex; align-items: flex-start; gap: 10px; margin: 12px 16px 4px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--accent-soft); color: var(--accent-2); font-size: var(--fs-sm); line-height: 1.4; }
.gu-banner .ic { flex: none; margin-top: 1px; }
.gu-hero { padding: 20px 16px 6px; }
/* the kitchen is busy (kitchen.js): said before the guest pays */
.gu-busy { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; padding: 10px 12px; border-radius: 14px; background: var(--warn-soft); color: var(--warn); font-size: var(--fs-sm); font-weight: var(--fw-semibold); line-height: 1.4; }
.gu-busy .ic { flex: none; margin-top: 1px; }
.gu-busy-table { margin: 8px 16px 0; }
.gu-busy-foot { flex: 1 0 100%; margin: 0; }
.gu-hero-arts { display: flex; gap: 10px; margin-bottom: 14px; }
.gu-hero-art { display: grid; place-items: center; width: 84px; height: 84px; overflow: hidden; border-radius: 22px; background: #FFFFFF; box-shadow: var(--shadow-1); }
.gu-hero-art .dish-art { width: 86%; height: 86%; }
.gu-hero-h { font-size: var(--fs-2xl); font-weight: var(--fw-bold); letter-spacing: var(--track-tight); line-height: 1.15; }
.gu-hero-s { margin-top: 2px; color: var(--ink-3); font-size: var(--fs-md); }
.gu-hero-note { margin-top: 10px; color: var(--ink-2); font-size: var(--fs-md); line-height: 1.45; }
.gu-hero-acts { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 14px; }
.gu-hero-acts .gu-btn2 { margin-top: 0; text-decoration: none; }
.gu-route { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 6px; color: var(--accent); font-size: var(--fs-sm); font-weight: var(--fw-semibold); text-decoration: none; }
.gu-nav { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: var(--sp-2); padding: 10px 12px 8px; background: var(--bg); }
.guest .gu-nav .ks-search-btn { width: 44px; height: 44px; }
.guest .gu-nav .ks-pills { padding-right: 20px; }
.guest .gu-nav .ks-pill { min-height: 44px; padding: 0 16px; font-size: var(--fs-md); }
.guest .gu-nav .ks-search { height: 44px; padding: 0 var(--sp-4); font-size: var(--fs-md); }
.gu-menu .ks-sec { padding: 8px 16px 0; }
.gu-blocked { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-4); padding: 32px 24px; font-size: var(--fs-md); text-align: center; }
.gu-blocked .ks-primary { flex: none; width: 100%; }

/* the kiosk's cards, dish sheet and basket at a phone's size, whatever the screen */
.guest .ks-h { margin: 10px 4px 12px; font-size: var(--fs-lg); font-weight: var(--fw-semibold); }
.guest .ks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.guest .ks-card { gap: 6px; padding: 10px 10px 14px; border-radius: 22px; box-shadow: var(--shadow-1); }
.guest .ks-img { border-radius: var(--r-lg); background: var(--surface-2); }
.guest .ks-name { font-size: var(--fs-md); }
.guest .ks-price { font-size: var(--fs-md); }
.guest .ks-badge { top: 10px; right: 10px; min-width: 28px; height: 28px; font-size: var(--fs-sm); }
.guest .ks-left { font-size: var(--fs-sm); }
.guest .ks-none { padding: var(--sp-5) 4px; font-size: var(--fs-md); }
.guest .ks-end { height: 104px; }
.guest .ks-bar { padding: 12px 12px calc(14px + env(safe-area-inset-bottom, 0px)); }
.guest .ks-bar-btn { gap: 10px; min-height: 64px; padding: 0 8px 0 10px; }
.guest .ks-bar-n { min-width: 42px; height: 42px; font-size: var(--fs-md); }
.guest .ks-bar-t { font-size: var(--fs-md); }
.guest .ks-bar-sum { font-size: var(--fs-lg); }
.guest .ks-bar-go { min-height: 48px; padding: 0 var(--sp-4); font-size: var(--fs-md); }
.guest .ks-scrim { padding: 12px 0 0; }
.guest .ks-modal { width: 100%; border-radius: 28px 28px 0 0; }
.guest .ks-x { top: 12px; right: 12px; width: 44px; height: 44px; }
.guest .ks-modal-img { height: min(240px, 30vh); }
.guest .ks-modal-body { padding: 20px 20px 12px; }
.guest .ks-basket .ks-modal-body { padding-top: 22px; }
.guest .ks-modal-title { padding-right: 48px; font-size: var(--fs-xl); }
.guest .ks-modal-price { font-size: var(--fs-lg); }
.guest .ks-desc { font-size: var(--fs-md); }
.guest .ks-alg-chip { font-size: var(--fs-sm); }
.guest .ks-group { margin-top: 14px; }
.guest .ks-opt { min-height: 48px; padding: 0 var(--sp-4); font-size: var(--fs-md); }
.guest .ks-modal-foot { padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
.guest .ks-step button { width: 44px; height: 44px; }
.guest .ks-step.sm button { width: 44px; height: 44px; }
.guest .ks-step span { min-width: 28px; font-size: var(--fs-lg); }
.guest .ks-primary { min-height: 56px; padding: 0 var(--sp-4); font-size: var(--fs-md); }
.guest .ks-line { gap: 12px; }
.guest .ks-line-img { width: 56px; height: 48px; border-radius: var(--r-md); }
.guest .ks-line-name { font-size: var(--fs-md); }
.guest .ks-total { min-width: 120px; }
.guest .ks-total .mono { font-size: var(--fs-xl); }

/* a pair at a discount (domain.js, combosAt): the badge and the pair's price on a card, the note in the dish sheet,
   the offer in the basket */
.gu-pair-badge { position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: var(--r-pill); background: #FFFFFF; color: var(--accent); font-size: var(--fs-xs); font-weight: var(--fw-bold); box-shadow: 0 1px 4px rgb(19 24 36 / 0.16); }
.gu-pair-badge.on { background: var(--ok); color: #FFFFFF; }
.gu-was { color: var(--ink-3); font-size: 0.85em; font-weight: var(--fw-regular); }
.guest .ks-price .gu-was { margin-right: 2px; }
.gu-pair-note { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.gu-pair-note p { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-2); font-size: var(--fs-sm); line-height: 1.4; }
.gu-pair-note .ic { flex: none; margin-top: 1px; }
.gu-pair { margin-top: 14px; padding: 12px; border-radius: 18px; background: var(--accent-soft); }
.gu-pair-h { display: flex; align-items: flex-start; gap: 8px; color: var(--accent-2); font-size: var(--fs-sm); line-height: 1.4; }
.gu-pair-h .ic { flex: none; margin-top: 1px; }
.gu-pair-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.gu-pair-opt { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 6px 8px 6px 6px; border: 0; border-radius: 14px; background: #FFFFFF; color: var(--ink); text-align: left; cursor: pointer; }
.gu-pair-img { display: grid; flex: none; place-items: center; width: 44px; height: 44px; overflow: hidden; border-radius: 10px; background: var(--surface-2); }
.gu-pair-img img { width: 100%; height: 100%; object-fit: cover; }
.gu-pair-img .dish-art { width: 90%; height: 90%; }
.gu-pair-t { display: flex; flex: 1; flex-direction: column; gap: 1px; min-width: 0; }
.gu-pair-name { font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.gu-pair-price { font-size: var(--fs-sm); }
.gu-pair-price .mono { color: var(--ok); font-weight: var(--fw-bold); }
.gu-pair-plus { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #FFFFFF; }

/* «Вы заказывали»: the last orders of this phone, to order again */
.gu-again { margin-top: 4px; }
.gu-again-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.gu-again-card { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 4px; border-radius: 18px; background: #FFFFFF; box-shadow: var(--shadow-1); }
.gu-again-main { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; padding: 8px 10px; border: 0; border-radius: 14px; background: none; color: var(--ink); text-align: left; cursor: pointer; }
.gu-again-where { color: var(--ink-3); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.gu-again-what { display: -webkit-box; overflow: hidden; font-size: var(--fs-md); line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gu-again-sum { color: var(--ink-2); font-size: var(--fs-sm); }
.gu-again-go { flex: none; min-height: 44px; margin-top: 0; padding: 0 14px; }
.gu-again-here { display: flex; align-items: center; gap: 12px; margin: 12px 16px 0; padding: 12px 12px 12px 14px; border-radius: 18px; background: #FFFFFF; box-shadow: var(--shadow-1); }
.gu-again-t { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.gu-again-here .gu-btn2 { flex: none; min-height: 44px; margin-top: 0; padding: 0 14px; font-size: var(--fs-sm); }
@media (max-width: 360px) { .gu-again-here { flex-wrap: wrap; } .gu-again-here .gu-btn2 { width: 100%; } }

/* the guest's rating of an order (rating.js) */
.gu-rate, .gu-rated { margin: 0 0 14px; }
.gu-stars { display: flex; justify-content: center; gap: 4px; margin: 6px 0 2px; }
.gu-star { display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: none; color: var(--line-2); cursor: pointer; transition: transform 0.12s, color 0.12s; }
.gu-star:active { transform: scale(0.9); }
.gu-star.on { color: var(--star); }
.gu-star-l { margin: 0 0 4px; font-size: var(--fs-md); font-weight: var(--fw-semibold); text-align: center; }
.gu-rate .gu-note { margin: 0 0 4px; text-align: center; }
.gu-rate-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.gu-rate-tags .gu-chip { min-height: 44px; padding: 0 14px; font-size: var(--fs-sm); }
.gu-rate-field { display: block; margin-top: 14px; }
.gu-rate-field .ks-group-t { margin-bottom: 6px; }
.gu-field textarea { width: 100%; padding: 10px var(--sp-4); border: 1.5px solid var(--line-2); border-radius: 14px; background: #FFFFFF; color: var(--ink); font: inherit; font-size: var(--fs-md); line-height: 1.4; resize: vertical; }
.gu-field textarea:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 3px var(--accent-soft); }
.gu-rate .ks-primary { width: 100%; margin-top: 14px; }
.gu-stars-ro { color: var(--star); font-size: var(--fs-2xl); font-weight: var(--fw-bold); letter-spacing: 2px; }
.gu-rate-text { margin: 10px 0 0; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); font-size: var(--fs-md); line-height: 1.45; white-space: pre-wrap; }
.gu-rated .gu-note { margin-top: 10px; }
.gu-order-at { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.gu-order-rate { padding: 2px 8px; border-radius: var(--r-pill); background: #FAE0C1; color: #805202; font-size: var(--fs-xs); font-weight: var(--fw-bold); white-space: nowrap; }
.gu-order-rate.ask { background: var(--accent-soft); color: var(--accent); }
.gu-live-rate { background: #FFFFFF; color: var(--ink); box-shadow: var(--shadow-2), inset 0 0 0 1.5px var(--line); }
.gu-live-rate > .ic:first-child { color: var(--star); }

/* the basket of a pre-order: when, and a name to hand it over by */
.gu-slots { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.gu-slot { min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r-pill); background: #FFFFFF; color: var(--ink); font-size: var(--fs-md); font-variant-numeric: tabular-nums; cursor: pointer; }
.gu-slot.wide { display: inline-flex; align-items: center; gap: var(--sp-2); }
.gu-slot-s { color: var(--ink-3); font-size: var(--fs-sm); }
.gu-slot.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: var(--fw-semibold); }
.gu-slot.on .gu-slot-s { color: var(--accent); }
.gu-field input { width: 100%; min-height: 48px; padding: 0 var(--sp-4); border: 1.5px solid var(--line-2); border-radius: 14px; background: #FFFFFF; color: var(--ink); font-size: var(--fs-md); }
.gu-field input:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 3px var(--accent-soft); }
/* a pre-order's phone for the SMS when it is ready (ready.js): optional; how it was read, or what is wrong; the consent */
.gu-opt { font-weight: var(--fw-medium); letter-spacing: 0; text-transform: none; }
.gu-field input[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.gu-err, .gu-ok-line, .gu-warn-line { display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: var(--fs-sm); font-weight: var(--fw-semibold); line-height: 1.4; }
.gu-err .ic, .gu-ok-line .ic { flex: none; margin-top: 2px; }
.gu-err { color: var(--bad); }
.gu-ok-line { color: var(--ok); }
.gu-warn-line { color: var(--warn); }
.gu-phone .gu-note { margin: 0; font-size: var(--fs-xs); }

/* the tip before paying: 5, 10 and 15% with what they come to, then «Без чаевых» (chosen at first) and «Своя сумма» */
.gu-tips { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--sp-2); }
.gu-tip {
  display: flex; grid-column: span 2; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; min-height: 60px; padding: 6px 4px;
  border: 1.5px solid var(--line); border-radius: var(--r-lg); background: #FFFFFF; color: var(--ink); text-align: center; cursor: pointer;
}
.gu-tip.wide { grid-column: span 3; min-height: 52px; }
.gu-tip-v { font-size: var(--fs-lg); font-weight: var(--fw-bold); line-height: 1.2; font-variant-numeric: tabular-nums; }
.gu-tip.wide .gu-tip-v { font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.gu-tip-s { color: var(--ink-3); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gu-tip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.gu-tip.on .gu-tip-s { color: var(--accent); }
.gu-tip-own { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-3); }
.gu-tip-own label { font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.gu-tip-in { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--ink-2); font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.gu-tip-in input {
  width: 7.5em; min-height: 48px; padding: 0 var(--sp-3); border: 1.5px solid var(--line-2); border-radius: 14px; background: #FFFFFF; color: var(--ink);
  font-size: var(--fs-lg); font-weight: var(--fw-semibold); text-align: right; font-variant-numeric: tabular-nums;
}
.gu-tip-in input:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 3px var(--accent-soft); }
.gu-tips-group .gu-note { margin: 0; font-size: var(--fs-xs); }
/* the basket's sum: the order, the tip, then the total paid */
.ks-promo-row.gu-tip-row { color: var(--ink); }

/* the payment: the wallets, the bank's page, the moment of waiting */
.gu-pay .ks-modal-body { padding-bottom: 20px; }
.gu-pay-sum { margin: 10px 0 18px; font-size: var(--fs-3xl); font-weight: var(--fw-bold); letter-spacing: var(--track-tight); line-height: 1.1; }
.gu-pay-sum span { color: var(--ink-2); font-size: var(--fs-lg); font-weight: var(--fw-semibold); }
.gu-pay-tip { margin: -12px 0 16px; color: var(--ink-2); font-size: var(--fs-sm); }
.gu-wallets { display: flex; flex-direction: column; gap: 10px; }
.gu-wallet { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; border: 0; border-radius: 14px; font-size: var(--fs-lg); font-weight: var(--fw-semibold); cursor: pointer; }
.gu-wallet.apple { background: #000000; color: #FFFFFF; }
.gu-wallet.google { background: #FFFFFF; color: #1F1F1F; box-shadow: inset 0 0 0 1.5px #747775; }
.gu-wallet.card { background: var(--accent-soft); color: var(--accent); }
.gu-wallets .gu-note { margin-top: 2px; font-size: var(--fs-xs); }
.gu-pay-busy { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 0 8px; font-size: var(--fs-lg); font-weight: var(--fw-semibold); text-align: center; }
.gu-pay-busy .spinner { width: 34px; height: 34px; border-width: 3px; }
.gu-bank { display: flex; flex-direction: column; gap: 12px; padding: var(--sp-4); border: 1.5px dashed var(--line-2); border-radius: 18px; background: var(--surface-2); }
.gu-bank-h { display: flex; align-items: center; gap: var(--sp-2); font-weight: var(--fw-bold); }
.gu-bank .ks-primary { flex: none; width: 100%; }
.gu-demo-note { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); color: var(--ink-3); font-size: var(--fs-xs); line-height: 1.45; }
.gu-demo-note .ic { flex: none; margin-top: 1px; }

/* an order after payment: where it stands, its dishes, the payment and the place of the fiscal receipt */
.gu-status { padding: var(--sp-2) var(--sp-4) var(--sp-6); }
.gu-st-head { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 8px 18px; text-align: center; }
.gu-st-ic { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.gus-cooking .gu-st-ic { background: var(--warn-soft); color: var(--warn); }
.gus-ready .gu-st-ic { background: var(--ok-soft); color: var(--ok); animation: gu-ring 1.4s ease-in-out 2; }
.gus-served .gu-st-ic { background: var(--surface-3); color: var(--ink-2); }
.gus-void .gu-st-ic { background: var(--bad-soft); color: var(--bad); }
@keyframes gu-ring { 20% { transform: rotate(-12deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(4deg); } }
.gu-st-title { max-width: 22ch; font-size: var(--fs-xl); font-weight: var(--fw-bold); line-height: 1.25; text-wrap: balance; }
.gu-st-no { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 4px; padding: 14px 24px; border-radius: 22px; background: #FFFFFF; box-shadow: var(--shadow-1); }
.gu-st-no-l { color: var(--ink-3); font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: var(--track-caps); text-transform: uppercase; }
.gu-st-no-n { color: var(--accent); font-size: 52px; font-weight: var(--fw-bold); line-height: 1.05; font-variant-numeric: tabular-nums; }
.gu-st-no-s { max-width: 30ch; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.4; }
.gu-steps { display: flex; flex-direction: column; margin: 0 0 14px; padding: 10px 16px; border-radius: var(--r-xl); background: #FFFFFF; box-shadow: var(--shadow-1); list-style: none; }
.gu-step { position: relative; display: flex; align-items: center; gap: 12px; min-height: 42px; color: var(--ink-3); }
.gu-step + .gu-step::before { content: ''; position: absolute; top: -13px; left: 7px; width: 2px; height: 26px; background: var(--line); }
.gu-step.done + .gu-step.done::before { background: var(--accent); }
.gu-step-dot { position: relative; z-index: 1; flex: none; width: 16px; height: 16px; border: 2px solid var(--line-2); border-radius: 50%; background: #FFFFFF; }
.gu-step.done { color: var(--ink); }
.gu-step.done .gu-step-dot { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px #FFFFFF; }
.gu-step.next .gu-step-dot { border-color: var(--accent); animation: gu-pulse 1.6s ease-in-out infinite; }
.gu-step-l { flex: 1; font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.gu-step-n { color: var(--ink-3); font-weight: var(--fw-regular); }
.gu-step-at { color: var(--ink-3); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.gu-card { padding: 2px 16px 14px; border-radius: var(--r-xl); background: #FFFFFF; box-shadow: var(--shadow-1); }
.gu-card .gu-sub-h { margin: 12px 0 4px; }
.gu-lines { margin: 0; padding: 0; list-style: none; }
.gu-line { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.gu-line:last-child { border-bottom: 0; }
.gu-line.void { color: var(--ink-3); text-decoration: line-through; }
.gu-line-q { min-width: 28px; font-weight: var(--fw-bold); }
.gu-line-t { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; font-size: var(--fs-md); }
.gu-chip-st { flex: none; padding: 3px 9px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--ink-2); font-size: var(--fs-xs); font-weight: var(--fw-semibold); white-space: nowrap; }
.gu-chip-st.gus-sent { background: var(--accent-soft); color: var(--accent); }
.gu-chip-st.gus-cooking { background: var(--warn-soft); color: var(--warn); }
.gu-chip-st.gus-ready { background: var(--ok-soft); color: var(--ok); }
.gu-promo { margin-top: 10px; }
.gu-paid { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.gu-fiscal { display: flex; gap: 12px; margin-top: 14px; padding: 14px 16px; border: 1.5px dashed var(--line-2); border-radius: var(--r-xl); }
.gu-fiscal-ic { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--surface-3); color: var(--ink-2); }
.gu-fiscal-t { display: flex; flex-direction: column; gap: 2px; }
.gu-fiscal-h { font-size: var(--fs-md); font-weight: var(--fw-bold); }
.gu-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.gu-actions .ks-primary { flex: none; width: 100%; }
.gu-actions .gu-btn2 { width: 100%; min-height: 52px; margin-top: 0; }

/* «Готово» (16 October): the head of a ready order is the banner — green, the number and what to do */
.gu-st-head.gus-ready { margin: 6px 0 14px; padding: 22px 16px 20px; border-radius: 24px; background: var(--ok); color: #FFFFFF; box-shadow: 0 10px 26px rgb(0 116 64 / 0.28); animation: gu-pop 0.35s ease-out; }
.gu-st-head.gus-ready .gu-st-ic { background: rgb(255 255 255 / 0.18); color: #FFFFFF; }
.gu-st-do { max-width: 32ch; font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 1.45; text-wrap: balance; }
.gu-st-head.gus-ready .gu-st-no { margin-top: 2px; }
@keyframes gu-pop { from { opacity: 0.4; transform: scale(0.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .gu-st-head.gus-ready, .gu-st-head.gus-ready .gu-st-ic { animation: none; } }
/* «Сообщить, когда будет готово» and a pre-order's SMS (ready.js) */
.gu-notify { margin: 0 0 14px; padding: 2px 16px; }
.gu-nt { padding: 12px 0; }
.gu-nt + .gu-nt { border-top: 1px solid var(--line); }
.gu-nt-main { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; cursor: pointer; }
.gu-sms .gu-nt-main { cursor: default; }
.gu-nt-ic { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-3); color: var(--ink-2); }
.gu-nt-ic.on { background: var(--accent-soft); color: var(--accent); }
.gu-nt-t { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; padding-top: 1px; }
.gu-nt-h { font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 1.3; overflow-wrap: anywhere; }
.gu-nt-s { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.45; }
.gu-switch { flex: none; align-self: center; justify-content: flex-end; min-width: 52px; min-height: 44px; }
.gu-nt-allow { min-height: 44px; margin: 10px 0 0 52px; padding: 0 16px; font-size: var(--fs-sm); }
.gu-sms-text { margin-top: 6px; padding: 10px 12px; border-radius: 4px 16px 16px; background: var(--surface-2); color: var(--ink); font-size: var(--fs-sm); line-height: 1.45; }
.gu-nt .gu-demo-note { margin-top: 6px; }
/* the tip, paid with the order and apart from it */
.gu-tip-paid { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; padding: 10px 12px; border-radius: 14px; background: var(--ok-soft); color: var(--ok); font-size: var(--fs-sm); font-weight: var(--fw-semibold); line-height: 1.4; }
.gu-tip-paid .ic { flex: none; margin-top: 1px; }
/* «Оставить отзыв в Google Картах» after the rating — the same button for every guest who rated */
.gu-review { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.gu-rated .gu-review .gu-note { margin: 0; }
.gu-review-btn { justify-content: flex-start; gap: 12px; width: 100%; min-height: 56px; margin-top: 0; padding: 8px 16px; border-radius: 18px; text-align: left; text-decoration: none; }
.gu-review-btn .ic { flex: none; color: var(--ink-3); }
.gu-review-btn .ic:first-child { color: var(--star); }
.gu-review-t { flex: 1; min-width: 0; line-height: 1.3; }
.gu-review-sheet .ks-modal-body { gap: 10px; padding-bottom: 8px; }
.gu-review-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: #FAE0C1; color: #805202; }
.gu-review-p { font-size: var(--fs-md); line-height: 1.5; }
.gu-review-sheet .gu-note { margin-bottom: 4px; }

/* the start page of the prototype: the guest app and the pickup board under the restaurant's devices */
.l-guests { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: var(--sp-4); }
.l-guest {
  display: flex; align-items: center; gap: var(--sp-4); width: 100%; padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow-1); color: var(--ink); text-align: left; cursor: pointer; transition: transform 0.12s, border-color 0.12s;
}
.l-guest:hover { border-color: var(--accent); transform: translateY(-2px); }
.l-guest-ic { display: grid; flex: none; place-items: center; width: 64px; height: 64px; border-radius: var(--r-lg); background: var(--accent-soft); color: var(--accent); }
.l-guest-t { display: flex; flex: 1; flex-direction: column; gap: var(--sp-1); min-width: 0; }
.l-guest .role-desc { min-height: 0; }
.l-guest .role-foot { gap: var(--sp-3); }
@media (max-width: 520px) {
  .l-guest { align-items: flex-start; gap: var(--sp-3); }
  .l-guest-ic { width: 48px; height: 48px; }
  .l-guest .role-hint { display: none; }
  .l-guest .role-foot { align-self: center; }
}

/* the back office: «Отзывы в Google Картах» in «Оценки гостей» (office-ratings.jsx) — each restaurant's link to its
   review page and how many guests opened it; the back office's own tokens, light and dark */
.rvl-lead { max-width: 75ch; margin: 0; }
.rvl-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.rvl-row { display: flex; flex-direction: column; gap: 6px; padding: var(--sp-3) 0; border-top: 1px solid var(--line); }
.rvl-row:last-child { padding-bottom: 0; }
.rvl-row p { margin: 0; }
.rvl-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-2) var(--sp-3); }
.rvl-form .field { flex: 1 1 18rem; }
.rvl-form .field input { width: 100%; }
.rvl-form .field input[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 2px var(--bad-soft); }
.rvl-off { font-weight: var(--fw-regular); }
.rvl-n { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- the pickup board (#board): a screen over the counter ----------
   Dark like the kitchen screen, to be read across the room: big numbers, «Готовим» quiet on the left, «Готово —
   заберите» in green on the right; a number that has just become ready flashes.
   (2 November, the owner: «Г — да») In the front's look, as the kitchen screen (60-kds.css): the header as tall as a
   key on the screen's shade, its keys pills; two zones from edge to edge with a line between them, each its name a row
   of the shade, no capitals; the numbers the brand grid's tiles (ui/even-grid.jsx — one column each, the lines round a
   short row's end), the figures of an instrument; where an order came from in words of its colour, not a tag. The
   board scales its letters with the screen it hangs on (the visual audit does not count them). */
.board {
  --bg: #0E1016; --bg-2: #080A0E; --surface: #161920; --surface-2: #1C1F27; --surface-3: #262A33;
  --ink: #ECEEF4; --ink-2: #B5BBC5; --ink-3: #969BA7; --line: #272B34; --line-2: #373C46;
  --ok: #5AC485; --ok-soft: #083A20; --accent: #81A8FF; --accent-ink: #0E1016; --accent-soft: #1E2F54; --seg-on: #383D47;
  --pill: #262A33; --pill-press: #373C46; --zl: var(--line-2); --key-h: 64px;
  --bd-no: clamp(44px, 5.2vw, 84px); --bd-row: calc(var(--bd-no) * 2.7); --bd-h: clamp(22px, 2.3vw, 36px); --bd-name: clamp(16px, 1.7vw, 26px); --bd-s: clamp(14px, 1.2vw, 18px);
  color-scheme: dark; background: var(--bg); color: var(--ink);
}
.app.board { padding-top: 0; }

/* the header: as tall as a key, the screen's shade, its pills at the right, a line under it — as the kitchen's */
.board .bd-head {
  position: relative; z-index: 2; display: flex; flex: none; align-items: center; justify-content: space-between; gap: var(--sp-2);
  min-height: calc(var(--key-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--sp-5) 0; border-bottom: 0;
  background: linear-gradient(180deg, color-mix(in oklab, var(--bg), var(--accent) 4%), color-mix(in oklab, var(--bg), var(--surface) 35%));
  box-shadow: 0 1px 0 0 var(--zl);
}
.board .bd-head .brand-loc { font-size: var(--fs-xl); font-weight: var(--fw-semibold); line-height: 28px; }
.board .bd-head-r { display: flex; align-items: center; gap: var(--sp-2); }
.board .tool-btn {
  position: relative; height: 44px; min-height: 0; gap: var(--sp-1); padding: 0 var(--sp-4); border: 0; border-radius: var(--r-pill);
  background: var(--pill); color: var(--ink); font-size: var(--fs-sm); font-weight: var(--fw-regular);
}
.board .tool-btn:active { background: var(--pill-press); }
.board .tool-btn.on { background: var(--accent); color: var(--accent-ink); }
.board .bd-clock { margin: 0 var(--sp-2); font-family: var(--font-timer); font-size: var(--fs-xl); font-weight: var(--fw-semibold); line-height: 28px; }
.board .lang { gap: var(--sp-1); overflow: visible; border-radius: 0; outline: 0; background: none; }
.board .lang-btn { min-width: 44px; height: 44px; min-height: 0; padding: 0 var(--sp-3); border: 0; border-radius: var(--r-pill); background: var(--pill); color: var(--ink); font-size: var(--fs-sm); font-weight: var(--fw-regular); }
.board .lang-btn.on { background: var(--accent); color: var(--accent-ink); }
.board .bd-head .sync-live, .board .bd-head .sync-local { display: none; }
.board .bd-head .icon-btn { width: 44px; height: 44px; border-radius: var(--r-pill); background: var(--pill); color: var(--ink); }
.board .bd-head .icon-btn:active { background: var(--pill-press); }

/* two zones from edge to edge, a line between them */
.bd-cols { display: grid; flex: 1; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); min-height: 0; }
.bd-col { display: flex; flex-direction: column; min-height: 0; padding: 0; overflow: hidden; background: var(--bg); }
.bd-ready { box-shadow: inset 1px 0 0 0 var(--zl); }
/* a zone's name: a row of the shade, a line under it, no capitals */
.bd-h {
  display: flex; flex: none; align-items: center; min-height: calc(var(--bd-h) * 2.4); margin: 0; padding: 0 var(--sp-6);
  background: var(--surface); color: var(--ink-2); font-size: var(--bd-h); font-weight: var(--fw-semibold); line-height: 1.2; letter-spacing: 0; text-transform: none;
  box-shadow: inset 0 -1px 0 0 var(--zl);
}
.bd-ready .bd-h { box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); color: var(--ok); }
/* the numbers: the brand grid's tiles, a line at the left of each (not at a row's start) and under it, as the kitchen's
   tickets. (15 November, the owner: «ВСЕ квадраты должны быть одинаковыми») every tile of both zones the same square,
   --bd-row a side: a zone's row ends where its last square ends, the screen's ground after it */
.bd-list {
  display: grid; grid-template-columns: repeat(auto-fill, var(--bd-row)); grid-auto-rows: var(--bd-row); align-content: start; justify-content: start;
  gap: 0; margin: 0; padding: 0; overflow: hidden; list-style: none;
}
/* (15 November) the numbers of a row on one line: each tile's words from the same height down, not centred — a ticket
   with a name, its source and a time no longer stands higher than its neighbour with a word */
.bd-item {
  display: flex; flex-direction: column; justify-content: flex-start; gap: var(--sp-1); min-width: 0; min-height: calc(var(--bd-no) * 2.1);
  padding: calc(var(--bd-no) * 0.42) var(--sp-6) var(--sp-4); border-radius: 0; background: var(--surface);
  box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl), var(--rim, 0 0 #0000);
}
.bd-list > .bd-item[data-rf] { box-shadow: inset 0 -1px 0 0 var(--zl), var(--rim, 0 0 #0000); }
/* (the ready zone's first column keeps the zone's line at its left) */
.bd-ready .bd-list > .bd-item[data-rf] { box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl), var(--rim, 0 0 #0000); }
.bd-no { font-family: var(--font-timer); font-size: var(--bd-no); font-weight: var(--fw-semibold); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.bd-cooking .bd-no { color: var(--ink-2); }
.bd-ready .bd-no { color: var(--ok); }
/* (15 November, the owner chose «1» of three: no blue, no fill) a ready number on the same tile as a cooking one, green
   and half as large again */
.bd-ready .bd-no { font-size: calc(var(--bd-no) * 1.35); }
.bd-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--sp-2); min-width: 0; }
.bd-name { overflow: hidden; font-size: var(--bd-name); font-weight: var(--fw-semibold); line-height: 1.25; white-space: nowrap; text-overflow: ellipsis; }
/* where it came from: words of its colour */
.bd-src { padding: 0; border-radius: 0; background: none; color: var(--ink-3); font-size: var(--bd-s); font-weight: var(--fw-regular); letter-spacing: 0; text-transform: none; }
.bd-app { background: none; color: var(--accent); }
.bd-at { color: var(--ink-3); font-family: var(--font-timer); font-size: var(--bd-s); }
.bd-none { margin: 0; padding: var(--sp-5) var(--sp-6); color: var(--ink-3); font-size: var(--bd-name); }
.bd-item.fresh { animation: bd-flash 1.1s ease-in-out 6; }
@keyframes bd-flash { 50% { background: var(--ok); } }
.bd-item.fresh .bd-no { animation: bd-no 1.1s ease-in-out 6; }
@keyframes bd-no { 50% { color: #0E1016; } }
@media (prefers-reduced-motion: reduce) { .bd-item.fresh, .bd-item.fresh .bd-no { animation: none; } }
/* the foot: a row of the shade, a line over it */
.bd-foot {
  display: flex; flex: none; align-items: center; gap: var(--sp-4); min-height: 64px; padding: var(--sp-3) var(--sp-6) calc(var(--sp-3) + env(safe-area-inset-bottom, 0px));
  border-top: 0; background: var(--surface); color: var(--ink-2); font-size: var(--bd-s); box-shadow: inset 0 1px 0 0 var(--zl);
}
@media (max-width: 760px) {
  .bd-cols { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .bd-ready { order: -1; box-shadow: inset 0 -1px 0 0 var(--zl); }
  .bd-ready .bd-h { box-shadow: inset 0 -1px 0 0 var(--zl); }
  .bd-ready .bd-list > .bd-item[data-rf] { box-shadow: inset 0 -1px 0 0 var(--zl), var(--rim, 0 0 #0000); }
  .board .bd-head { flex-wrap: wrap; padding: calc(env(safe-area-inset-top, 0px) + var(--sp-2)) var(--sp-4) var(--sp-2); }
  .board .bd-head-r { flex-wrap: wrap; }
  .board .bd-head-r .tool-btn { padding: 0 10px; }
  .board .bd-clock { display: none; }
  .bd-h, .bd-item, .bd-none { padding-inline: var(--sp-4); }
}

/* ---------- the guest app in the front's look (2 November) ----------
   The owner, 2 November, 13:51: «Г — да» — the guest app and the pickup board as the front, the kitchen and the kiosk
   are now (88-ipad-look.css, 50-phone.css, 56-kiosk-look.css): straight edges, no box inside a box; zones from edge to
   edge with a line between them; the dishes, the tables, the tips and the hours the brand grid's tiles (ui/even-grid.jsx:
   one column each, a short row short, the lines round its end); a group's name a row of the shade; pills only for keys
   (the round marks — a count, a number — stay round); words, not tags; no capitals. Three styles of letters — 22 semibold
   (a title, a total), 16 semibold (a dish, a place, a key), 14 regular (the rest) — and the figures of an instrument for
   prices, numbers and hours. The header as the waiter's iPhone: as tall as a key under the clock, the screen's shade, a
   line under it, «‹» a round pill; the tabs one glass pill over the screen, the chosen one the accent's. Always light, as
   before (57-guest.css keeps the palette); the kiosk's sheets and tiles at a phone's size. */
.guest {
  --key-h: 56px; --zl: var(--line-2); --pill: #FFFFFF; --pill-press: #DCE0E8;
  --head-bg: linear-gradient(180deg, color-mix(in oklab, var(--bg), var(--accent) 4%), color-mix(in oklab, var(--bg), var(--surface) 35%));
  --tab-top: calc(64px + max(var(--sp-3), env(safe-area-inset-bottom, 0px)));
  --glass: rgb(255 255 255 / 0.55); --glass-rim: rgb(255 255 255 / 0.75); --glass-top: rgb(255 255 255 / 0.9); --glass-shadow: 0 12px 30px rgb(19 24 36 / 0.16);
}
/* the header's shade reaches under the status bar, as the iPhone's */
.app.guest-shell { padding-top: 0; }
.guest .gu-cam { padding-top: calc(48px + env(safe-area-inset-top, 0px)); }
.guest .gu-cam-x { top: calc(12px + env(safe-area-inset-top, 0px)); }
.guest .gu-cam-t { font-weight: var(--fw-semibold); opacity: 1; }

/* ---------- the header: one row as tall as a key; «‹» a round pill, the place 22 semibold, where 14 under it ---------- */
.guest :is(.gu-top, .gu-head) {
  position: relative; z-index: 3; flex: none; min-height: calc(var(--key-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--sp-4) 0; border-bottom: 0; background: var(--head-bg); box-shadow: 0 1px 0 0 var(--zl);
}
.guest .gu-top { grid-template-columns: auto minmax(0, 1fr) auto; gap: 0; padding-right: 0; padding-left: 0; }
.guest .gu-top > .gu-icon { width: 36px; height: 36px; margin-left: var(--sp-4); border-radius: var(--r-pill); background: var(--pill); color: var(--ink); }
.guest .gu-top > .gu-icon::before { content: ''; position: absolute; inset: calc((36px - var(--key-h)) / 2) calc(var(--sp-5) / -2) calc((36px - var(--key-h)) / 2) calc(var(--sp-4) * -1); }
.guest .gu-top > .gu-icon { position: relative; }
.guest .gu-top > .gu-icon:hover { background: var(--pill); }
.guest .gu-top > .gu-icon:active { background: var(--pill-press); }
.guest .gu-top-t { align-items: flex-start; padding: 0 var(--sp-3) 0 var(--sp-5); text-align: left; }
.guest .gu-top-h { font-size: var(--fs-xl); font-weight: var(--fw-semibold); letter-spacing: 0; line-height: 28px; }
.guest .gu-top-s { color: var(--ink-2); font-size: var(--fs-sm); line-height: 18px; }
.guest .gu-top-r { margin-right: var(--sp-4); color: var(--ink-2); }
/* the table and the order's number: round marks, the figures of an instrument */
.guest :is(.gu-top-table, .gu-top-no) {
  display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 var(--sp-3); border-radius: var(--r-pill);
  background: var(--accent); color: var(--accent-ink); font-family: var(--font-timer); font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 1;
}
.guest .gu-head { display: flex; align-items: center; }
.guest .gu-brand-for { color: var(--ink-2); font-size: var(--fs-sm); font-weight: var(--fw-regular); letter-spacing: 0; text-transform: none; }
/* the languages: three pills, the chosen one the accent's */
.guest .gu-lang { gap: var(--sp-1); padding: 0; border-radius: 0; background: none; }
.guest .gu-lang button { min-width: 44px; min-height: 0; height: 36px; padding: 0 var(--sp-3); border-radius: var(--r-pill); background: var(--pill); color: var(--ink); font-size: var(--fs-sm); font-weight: var(--fw-regular); }
.guest .gu-lang button::before { inset: -4px 0; z-index: 0; border-radius: 0; background: none; box-shadow: none; } /* (a target 44 high) */
.guest .gu-lang button.on { background: var(--accent); color: var(--accent-ink); }
.guest .gu-lang button.on::before { background: none; box-shadow: none; }

/* ---------- the pages: from edge to edge; a group's name a row of the shade between two lines ---------- */
.guest .gu-scroll { padding: 0 0 var(--sp-6); }
.guest :is(.gu-h, .gu-sub-h) {
  display: flex; align-items: center; margin: 0; padding: 0 var(--sp-4); background: var(--bg); letter-spacing: 0; text-transform: none;
  box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl);
}
.guest .gu-h { min-height: 52px; color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; }
.guest .gu-sub-h { min-height: 44px; color: var(--ink-2); font-size: var(--fs-sm); font-weight: var(--fw-regular); line-height: 18px; }
.guest .gu-h + .gu-sub-h { box-shadow: inset 0 -1px 0 0 var(--zl); }
.guest .gu-note { color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; }
.guest .gu-scroll > .gu-note, .guest .gu-places + .gu-note { margin: 0; padding: var(--sp-3) var(--sp-4); }
.guest .gu-proto { margin: 0 var(--sp-4); }
/* a key that is not the main one: a pill of the screen's shade, 16 semibold */
.guest .gu-btn2 {
  min-height: 48px; margin-top: 0; padding: 0 var(--sp-5); border: 0; border-radius: var(--r-pill); background: var(--surface-3); color: var(--ink);
  font-size: var(--fs-md); font-weight: var(--fw-semibold);
}
.guest .gu-btn2:active { background: var(--pill-press); }

/* ---------- home: the QR a zone of the accent; the map; the places rows from edge to edge ---------- */
.guest .gu-scan { gap: var(--sp-4); min-height: 96px; padding: var(--sp-4) var(--sp-4) var(--sp-4) var(--sp-5); border-radius: 0; box-shadow: none; }
.guest .gu-scan:active { transform: none; background: var(--accent-2); }
.guest .gu-scan-ic { width: 52px; height: 52px; border-radius: 50%; }
.guest .gu-scan-h { font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; }
.guest .gu-scan-s { font-size: var(--fs-sm); line-height: 18px; }
.guest .gu-map { border-radius: 0; box-shadow: none; }
.guest .gu-pin-label { font-size: var(--fs-sm); font-weight: var(--fw-regular); }
/* the city's name on the plan without capitals, as the rivers' */
.guest .gu-map-city { font-size: 12px; font-weight: var(--fw-regular); letter-spacing: 0; }
.guest .gu-places { gap: 0; margin: 0; box-shadow: inset 0 1px 0 0 var(--zl); }
.guest .gu-place {
  gap: var(--sp-3); min-height: 76px; padding: var(--sp-3) var(--sp-4); border-radius: 0; background: var(--surface); box-shadow: inset 0 -1px 0 0 var(--zl);
}
.guest .gu-place:active { background: var(--surface-3); }
.guest .gu-place-name { font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; }
.guest .gu-place-sub { color: var(--ink-2); font-size: var(--fs-sm); line-height: 18px; }
/* what a place does: words, not tags */
.guest .gu-tags { display: block; margin-top: 0; color: var(--ink-2); font-size: var(--fs-sm); line-height: 18px; }
.guest .gu-tag { padding: 0; border-radius: 0; background: none; color: inherit; font-size: inherit; font-weight: var(--fw-regular); }
.guest .gu-tag + .gu-tag::before { content: ' · '; }
/* «Вы заказывали»: a row each; «Повторить» a key */
.guest .gu-again { margin-top: 0; }
.guest .gu-again-list { gap: 0; }
.guest .gu-again-card { gap: var(--sp-3); padding: var(--sp-2) var(--sp-4) var(--sp-2) 0; border-radius: 0; background: var(--surface); box-shadow: inset 0 -1px 0 0 var(--zl); }
.guest .gu-again-main { padding: var(--sp-2) 0 var(--sp-2) var(--sp-4); border-radius: 0; }
.guest .gu-again-where { color: var(--ink-2); font-size: var(--fs-sm); font-weight: var(--fw-regular); }
.guest .gu-again-what { font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; }
.guest .gu-again-sum { color: var(--ink-2); font-family: var(--font-timer); font-size: var(--fs-sm); }
.guest .gu-again-here { margin: 0; padding: var(--sp-3) var(--sp-4); border-radius: 0; background: var(--surface); box-shadow: inset 0 -1px 0 0 var(--zl); }
.guest .gu-again-here .gu-btn2 { min-height: 44px; font-size: var(--fs-sm); font-weight: var(--fw-regular); }

/* ---------- the tabs: one glass pill over the screen, the chosen one the accent's (as the waiter's) ---------- */
.guest .gu-home .gu-scroll { padding-bottom: calc(var(--tab-top) + var(--sp-6)); }
.guest .gu-home:has(> .gu-live) .gu-scroll { padding-bottom: calc(var(--tab-top) + 56px + var(--sp-8)); }
.guest .gu-tabs {
  position: absolute; right: var(--sp-4); bottom: max(var(--sp-3), env(safe-area-inset-bottom, 0px)); left: var(--sp-4); z-index: 3;
  height: 64px; padding: var(--sp-1); border-top: 0; border-radius: var(--r-pill);
  background: var(--glass); -webkit-backdrop-filter: blur(30px) saturate(2); backdrop-filter: blur(30px) saturate(2);
  box-shadow: inset 0 0 0 1px var(--glass-rim), inset 0 1px 0 var(--glass-top), var(--glass-shadow);
}
.guest .gu-tab { gap: 2px; height: 56px; min-height: 0; padding: 0; border-radius: var(--r-pill); color: var(--ink-2); font-size: var(--fs-sm); font-weight: var(--fw-regular); line-height: 16px; }
.guest .gu-tab.on { background: var(--accent); color: var(--accent-ink); }
.guest .gu-tab-badge { top: 4px; left: calc(50% + 6px); background: var(--ok); color: #FFFFFF; font-size: var(--fs-sm); line-height: 18px; box-shadow: 0 0 0 2px var(--surface); }
/* an order on its way: a pill key over the tabs */
.guest .gu-live {
  position: absolute; right: var(--sp-4); bottom: calc(var(--tab-top) + var(--sp-2)); left: var(--sp-4); z-index: 3;
  min-height: 56px; margin: 0; padding: 0 var(--sp-4) 0 var(--sp-5); border-radius: var(--r-pill); box-shadow: var(--glass-shadow);
}
.guest .gu-live-no { font-family: var(--font-timer); font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.guest .gu-live-t { font-size: var(--fs-sm); }
.guest .gu-live-rate { background: var(--surface); color: var(--ink); box-shadow: var(--glass-shadow); }

/* ---------- «Заказы»: a row each; the number in the figures of an instrument, its colour the state's ---------- */
.guest .gu-orders { gap: 0; }
.guest .gu-order-row { gap: var(--sp-3); min-height: 76px; padding: var(--sp-3) var(--sp-4); border-radius: 0; background: var(--surface); box-shadow: inset 0 -1px 0 0 var(--zl); }
.guest .gu-order-row:active { background: var(--surface-3); }
.guest .gu-order-no {
  place-items: center start; min-width: 52px; height: auto; padding: 0; border-radius: 0; background: none; color: var(--accent);
  font-family: var(--font-timer); font-size: var(--fs-xl); font-weight: var(--fw-semibold);
}
.guest .gu-order-row.gus-ready .gu-order-no { background: none; color: var(--ok); }
.guest .gu-order-row:is(.gus-served, .gus-void) .gu-order-no { background: none; color: var(--ink-3); }
.guest .gu-order-st { font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; }
.guest :is(.gu-order-sub, .gu-order-at) { color: var(--ink-2); font-size: var(--fs-sm); }
.guest .gu-order-at { font-family: var(--font-timer); }
.guest .gu-order-rate { padding: 0; border-radius: 0; background: none; color: var(--warn); font-family: var(--font-ui); font-size: var(--fs-sm); font-weight: var(--fw-regular); }
.guest .gu-order-rate.ask { background: none; color: var(--accent); }
.guest .gu-empty-t { font-size: var(--fs-md); font-weight: var(--fw-semibold); }

/* ---------- the QR: the camera; under it the demo's choice — the places a strip of keys, the tables tiles ---------- */
.guest .gu-demo { padding: 0 0 var(--sp-6); border-radius: 0; }
.guest .gu-demo-t { margin: 0; padding: var(--sp-4); color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; }
.guest .gu-scanview .gu-chips { gap: 0; margin: 0; padding: 0; box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.guest .gu-scanview .gu-chip {
  flex: 1 0 auto; min-height: 52px; padding: 0 var(--sp-5); border: 0; border-radius: 0; background: var(--bg); color: var(--ink-2);
  font-size: var(--fs-md); font-weight: var(--fw-semibold); box-shadow: inset -1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl);
}
.guest .gu-scanview .gu-chip.on { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.guest .gu-hall .gu-sub-h { box-shadow: inset 0 -1px 0 0 var(--zl); }
.guest .gu-tables { gap: 0; background: var(--surface); }
.guest .gu-table {
  gap: 2px; min-height: 80px; border: 0; border-radius: 0; background: var(--surface);
  box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl), var(--rim, 0 0 #0000);
}
.guest .gu-tables > .gu-table[data-rf] { box-shadow: inset 0 -1px 0 0 var(--zl), var(--rim, 0 0 #0000); }
.guest .gu-table:active:not(:disabled) { background: var(--surface-3); }
.guest .gu-table.on { border: 0; background: var(--ok-soft); }
.guest .gu-table-n { font-family: var(--font-timer); font-size: var(--fs-xl); font-weight: var(--fw-semibold); }
.guest .gu-table-s { color: var(--ink-2); font-size: var(--fs-sm); }

/* ---------- a place's menu: its note a row of the accent's shade; its card; the folders a strip of keys ---------- */
.guest .gu-banner { gap: var(--sp-3); margin: 0; padding: var(--sp-3) var(--sp-4); border-radius: 0; background: var(--accent-soft); color: var(--accent-2); font-size: var(--fs-sm); line-height: 20px; box-shadow: inset 0 -1px 0 0 var(--zl); }
.guest .gu-busy { gap: var(--sp-2); margin: 0; padding: var(--sp-3) var(--sp-4); border-radius: 0; background: var(--warn-soft); color: var(--warn); font-size: var(--fs-sm); font-weight: var(--fw-regular); line-height: 20px; box-shadow: inset 0 -1px 0 0 var(--zl); }
.guest .gu-busy-table { margin: 0; }
.guest .gu-hero { padding: 0 0 var(--sp-4); background: var(--surface); }
/* three of its dishes: tiles from edge to edge, a line between them */
.guest .gu-hero-arts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 var(--sp-4); box-shadow: inset 0 -1px 0 0 var(--zl); }
.guest .gu-hero-art { width: auto; height: 104px; border-radius: 0; background: var(--bg); box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.guest .gu-hero-art:first-child { box-shadow: inset 0 -1px 0 0 var(--zl); }
.guest .gu-hero-art .dish-art { width: auto; height: 84%; }
.guest :is(.gu-hero-h, .gu-hero-s, .gu-hero-note, .gu-hero-acts) { margin-right: var(--sp-4); margin-left: var(--sp-4); }
.guest .gu-hero > .gu-busy { margin-top: var(--sp-3); box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.guest .gu-hero-h { font-size: var(--fs-xl); font-weight: var(--fw-semibold); letter-spacing: 0; line-height: 28px; }
.guest .gu-hero-s { color: var(--ink-2); font-size: var(--fs-sm); }
.guest .gu-hero-note { margin-top: var(--sp-2); color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; }
.guest .gu-hero-acts { gap: var(--sp-2); margin-top: var(--sp-4); }
.guest .gu-hero-acts .gu-btn2 { min-height: 44px; padding: 0 var(--sp-4); font-size: var(--fs-sm); font-weight: var(--fw-regular); }
.guest .gu-route { font-size: var(--fs-sm); font-weight: var(--fw-regular); }
.guest .gu-nav { gap: 0; padding: 0; background: var(--bg); box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
/* (under a row that draws its own line — the table's note, «busy», «order again» — one line, not two) */
.guest :is(.gu-banner, .gu-busy, .gu-again-here) + .gu-nav { box-shadow: inset 0 -1px 0 0 var(--zl); }
.guest :is(.gu-banner, .gu-busy, .gu-again-here) + .gu-nav :is(.ks-search-btn, .ks-pill) { box-shadow: inset -1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.guest :is(.gu-banner, .gu-busy, .gu-again-here) + .gu-nav .ks-pill.on { box-shadow: none; }
.guest .gu-nav .ks-search-btn {
  flex: none; width: 52px; height: 52px; border-radius: 0; background: var(--bg); color: var(--ink);
  box-shadow: inset -1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl), inset 0 1px 0 0 var(--zl);
}
.guest .gu-nav .ks-search-btn:active { background: var(--surface-3); }
.guest .gu-nav .ks-search-btn.on { background: var(--surface); }
.guest .gu-nav .ks-pills { gap: 0; padding: 0; -webkit-mask-image: none; mask-image: none; }
.guest .gu-nav .ks-pill {
  flex: 1 0 auto; min-width: 112px; height: 52px; min-height: 0; padding: 0 var(--sp-4); border: 0; border-radius: 0;
  background: var(--bg); color: var(--ink-2); font-size: var(--fs-md); font-weight: var(--fw-semibold); transition: none;
  box-shadow: inset -1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl), inset 0 1px 0 0 var(--zl);
}
.guest .gu-nav .ks-pill:active { background: var(--surface-3); }
.guest .gu-nav .ks-pill.on { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
/* (3 November: «И проверь все на горизонтальные и вертикальные линии») the folders' keys one width, three after the
   search key — keys as wide as their names had been three widths; a long name takes two lines; the strip goes by whole
   keys, its end fading while more lie past it (ui/even-grid.jsx, useMoreEdge) */
.guest .gu-nav .ks-pills { scroll-snap-type: x mandatory; }
.guest .gu-nav .ks-pill { flex: 0 0 calc(100% / 3); min-width: 0; padding: 0 var(--sp-2); line-height: 20px; white-space: normal; text-align: center; text-wrap: balance; scroll-snap-align: start; }
.guest .gu-nav .ks-pills[data-more] { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }
.guest .gu-nav .ks-search {
  height: 52px; padding: 0 var(--sp-4); border: 0; border-radius: 0; background: var(--surface); font-size: var(--fs-md);
  box-shadow: inset 0 -1px 0 0 var(--zl), inset 0 1px 0 0 var(--zl);
}
.guest .gu-nav .ks-search:focus { border: 0; box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -2px 0 0 var(--accent); }

/* ---------- the dishes: a folder's name a row of the shade; its dishes the brand grid's tiles, two to a row ---------- */
.guest .gu-menu { padding-bottom: 0; background: var(--bg); }
.guest .gu-menu .ks-sec { padding: 0; }
.guest .ks-h {
  display: flex; align-items: center; min-height: 52px; margin: 0; padding: 0 var(--sp-4); background: var(--bg); color: var(--ink);
  font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; letter-spacing: 0; text-transform: none;
  box-shadow: inset 0 -1px 0 0 var(--zl);
}
.guest .ks-sec + .ks-sec .ks-h { box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.guest .ks-grid { gap: 0; background: var(--surface); }
.guest .ks-card {
  gap: var(--sp-1); padding: var(--sp-3) var(--sp-4) var(--sp-4); border-radius: 0; background: var(--surface); transition: background 0.12s;
  box-shadow: inset 1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl), var(--rim, 0 0 #0000);
}
.guest .ks-grid > .ks-card[data-rf] { box-shadow: inset 0 1px 0 0 var(--zl), var(--rim, 0 0 #0000); }
.guest .ks-grid > .ks-card[data-r0] { box-shadow: inset 1px 0 0 0 var(--zl), var(--rim, 0 0 #0000); }
.guest .ks-grid > .ks-card[data-r0][data-rf] { box-shadow: var(--rim, none); }
.guest .ks-card:active { transform: none; background: var(--surface-3); }
.guest .ks-card:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.guest .ks-card:has(> .ks-badge) { background: var(--accent-soft); }
.guest .ks-img { height: 132px; aspect-ratio: auto; margin: 0 0 var(--sp-2); border-radius: 0; background: none; }
.guest .ks-img img { object-fit: contain; }
.guest .ks-name { min-height: 0; font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; }
.guest .ks-price { padding-top: var(--sp-1); color: var(--ink); font-family: var(--font-timer); font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.guest .ks-cur { color: var(--ink-2); font-family: var(--font-ui); font-size: var(--fs-sm); font-weight: var(--fw-regular); }
.guest .ks-left { margin-top: 0; color: #8A5300; font-size: var(--fs-sm); font-weight: var(--fw-regular); }
.guest .ks-badge { top: var(--sp-3); right: var(--sp-3); min-width: 32px; height: 32px; font-family: var(--font-timer); font-size: var(--fs-md); }
.guest .ks-card.off { opacity: 1; }
.guest .ks-card.off > * { opacity: 0.45; }
.guest .ks-card.off .ks-price { color: var(--ink-2); font-family: var(--font-ui); font-weight: var(--fw-regular); font-size: var(--fs-sm); }
.guest .ks-none { padding: var(--sp-5) var(--sp-4); color: var(--ink-2); font-size: var(--fs-md); }
.guest .ks-end { height: 112px; background: var(--bg); box-shadow: inset 0 1px 0 0 var(--zl); }
/* a pair at a discount: a straight label at the tile's corner, the accent's shade; the price before it struck out */
.guest .gu-pair-badge { top: 0; left: 0; padding: 2px var(--sp-2); border-radius: 0; background: var(--accent-soft); color: var(--accent-2); font-size: var(--fs-sm); font-weight: var(--fw-regular); box-shadow: none; }
.guest .gu-pair-badge.on { background: var(--ok); color: #FFFFFF; }
.guest .ks-card:has(> .gu-pair-badge) .ks-badge { top: var(--sp-3); }
.guest .gu-was { color: var(--ink-3); font-family: var(--font-timer); font-weight: var(--fw-regular); }

/* ---------- the basket's key at the foot: one big pill of the accent ---------- */
.guest .ks-bar { padding: var(--sp-6) var(--sp-4) calc(var(--sp-3) + env(safe-area-inset-bottom, 0px)); background: linear-gradient(rgb(240 242 246 / 0), var(--bg) 45%); }
.guest .ks-bar-btn { gap: var(--sp-3); min-height: 64px; padding: 0 var(--sp-2) 0 var(--sp-2); background: var(--accent); color: var(--accent-ink); }
.guest .ks-bar-btn:active { background: var(--accent-2); }
.guest .ks-bar-n { min-width: 48px; height: 48px; padding: 0 var(--sp-2); border-radius: var(--r-pill); color: var(--accent); font-family: var(--font-timer); font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.guest .ks-bar-t { font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.guest .ks-bar-sum { font-family: var(--font-timer); font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.guest .ks-bar-go { min-height: 48px; padding: 0 var(--sp-3); background: none; font-size: var(--fs-md); font-weight: var(--fw-semibold); }

/* ---------- the sheets: from edge to edge under the header, no radius ---------- */
.guest .ks-scrim { padding: calc(var(--key-h) + env(safe-area-inset-top, 0px)) 0 0; }
.guest .ks-modal { width: 100%; max-height: 100%; border-radius: 0; box-shadow: 0 -1px 0 0 var(--zl); }
.guest .ks-x { top: var(--sp-2); right: var(--sp-3); width: 44px; height: 44px; border-radius: var(--r-pill); background: var(--surface-3); box-shadow: none; }
.guest .ks-x:active { background: var(--pill-press); }
.guest .ks-modal-img { height: min(220px, 28vh); border-radius: 0; background: var(--bg); box-shadow: inset 0 -1px 0 0 var(--zl); }
.guest .ks-modal-img img { object-fit: contain; }
.guest .ks-modal-body { gap: var(--sp-1); padding: var(--sp-4) 0 var(--sp-4); }
.guest .ks-modal-body > :is(.ks-modal-title, .ks-modal-price, .ks-desc, .ks-alg, .ks-muted, .ks-kept, .ks-none, .gu-pay-sum, .gu-pay-tip, .gu-note, .gu-demo-note, .gu-review-p, .gu-review-ic) {
  margin-right: var(--sp-4); margin-left: var(--sp-4);
}
.guest :is(.ks-basket, .gu-pay) .ks-modal-body { padding-top: 0; }
/* the basket's and the payment's head — its name and what is under it — kept at the sheet's top as it scrolls, the
   close key over its end: the key never lies over a tile */
.guest .gu-sheet-h {
  position: sticky; top: 0; z-index: 1; display: flex; flex: none; flex-direction: column; gap: var(--sp-1);
  padding: var(--sp-4) 68px var(--sp-3) var(--sp-4); background: var(--surface); box-shadow: 0 1px 0 0 var(--zl);
}
.guest .gu-sheet-h > .ks-modal-title { padding-right: 0; }
/* (the basket's lines start at the head's line — one line, not two) */
.guest .gu-sheet-h + .ks-lines { margin-top: calc(-1 * var(--sp-1)); }
.guest .gu-sheet-h + .gu-pay-sum { margin-top: var(--sp-4); }
.guest .ks-modal > .ks-x { z-index: 2; }
.guest .ks-modal-title { padding-right: 52px; font-size: var(--fs-xl); font-weight: var(--fw-semibold); line-height: 28px; }
.guest .ks-modal-price { color: var(--ink); font-family: var(--font-timer); font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.guest .ks-weight { font-family: var(--font-ui); font-size: var(--fs-sm); font-weight: var(--fw-regular); }
.guest .ks-desc { margin-top: var(--sp-1); color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; }
/* the allergens: the words, not chips */
.guest .ks-alg { gap: 0 var(--sp-2); margin-top: var(--sp-1); font-size: var(--fs-sm); }
.guest .ks-alg-t { color: var(--ink-3); font-size: var(--fs-sm); font-weight: var(--fw-regular); letter-spacing: 0; text-transform: none; }
.guest .ks-alg-chip { padding: 0; border-radius: 0; background: none; box-shadow: none; color: var(--ink); font-size: var(--fs-sm); }
.guest .ks-alg-chip:not(:last-child)::after { content: ','; }
.guest .ks-muted { color: var(--ink-2); font-size: var(--fs-sm); }
/* a group: its name a row of the shade; the options tiles, two to a row, the chosen one tinted */
.guest .ks-group { gap: 0; margin-top: var(--sp-4); }
.guest .ks-group-t {
  display: block; min-height: 44px; padding: 12px var(--sp-4); background: var(--bg); color: var(--ink-2);
  font-size: var(--fs-sm); font-weight: var(--fw-regular); line-height: 20px; letter-spacing: 0; text-transform: none;
  box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl);
}
.guest .ks-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.guest .ks-opt {
  justify-content: space-between; min-width: 0; min-height: var(--key-h); padding: 0 var(--sp-4); border: 0; border-radius: 0;
  background: var(--surface); color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); text-align: left;
  box-shadow: inset 1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl), var(--rim, 0 0 #0000);
}
.guest .ks-opts > .ks-opt[data-rf] { box-shadow: inset 0 1px 0 0 var(--zl), var(--rim, 0 0 #0000); }
.guest .ks-opts > .ks-opt[data-r0] { box-shadow: inset 1px 0 0 0 var(--zl), var(--rim, 0 0 #0000); }
.guest .ks-opts > .ks-opt[data-r0][data-rf] { box-shadow: var(--rim, none); }
/* (3 November, 13:04, the owner: «Каждый блок, у которого есть две линии … должен быть заключен в прямоугольник или
   квадрат») a dish whose sheet ends with its options: the last row of tiles stands on the foot's line — no strip of the
   sheet under it, where «+ ягоды» beside an empty half had no line under it */
/* (the dish's sheet only: the basket's tips and the payment draw their own line under them) */
.guest .ks-modal:not(.gu-basket):not(.gu-pay) .ks-modal-body:has(> .ks-group:last-child) { padding-bottom: 0; }
.guest .ks-opt:active { background: var(--surface-3); }
.guest .ks-opt.on { background: var(--accent-soft); color: var(--accent-2); font-weight: var(--fw-semibold); }
.guest .ks-opt-p { color: var(--ink-2); font-family: var(--font-timer); font-size: var(--fs-sm); }
/* «as last time»: a row of the green shade from edge to edge, its reset a small key */
.guest .ks-modal-body > .ks-kept {
  margin: var(--sp-4) 0 0; padding: var(--sp-1) var(--sp-3) var(--sp-1) var(--sp-4); border-radius: 0; font-weight: var(--fw-regular); line-height: 20px;
  box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl);
}
.guest .ks-kept-reset { min-height: 44px; border-radius: var(--r-pill); background: var(--surface); font-weight: var(--fw-regular); }
/* the pair's note, «as last time» and the groups one under another without a gap — one line between them */
/* (the sheet's rows stand a small gap apart: here none) */
.guest .gu-pair-note + .ks-kept { margin-top: calc(-1 * var(--sp-1)); box-shadow: inset 0 -1px 0 0 var(--zl); }
.guest :is(.ks-group, .gu-pair-note, .ks-kept) + .ks-group { margin-top: calc(-1 * var(--sp-1)); }
.guest :is(.gu-pair-note, .ks-kept) + .ks-group > .ks-group-t { box-shadow: inset 0 -1px 0 0 var(--zl); }
/* the foot: a line over it; the quantity one pill — «−», how many, «+» — as tall as the key beside it */
.guest .ks-modal-foot {
  gap: var(--sp-3); padding: var(--sp-3) var(--sp-4) calc(var(--sp-3) + env(safe-area-inset-bottom, 0px)); border-top: 0;
  box-shadow: inset 0 1px 0 0 var(--zl);
}
.guest .ks-step { gap: 0; height: var(--key-h); padding: 0; border-radius: var(--r-pill); background: var(--surface-3); }
.guest .ks-modal-foot > .ks-step { align-self: center; }
.guest .ks-step button { width: var(--key-h); height: var(--key-h); border-radius: var(--r-pill); background: none; box-shadow: none; }
.guest .ks-step button:active:not(:disabled) { background: var(--pill-press); }
.guest .ks-step span { min-width: 28px; font-family: var(--font-timer); font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.guest .ks-step.sm { height: 44px; }
.guest .ks-step.sm button { width: 44px; height: 44px; }
.guest .ks-step.sm span { min-width: 24px; font-size: var(--fs-md); }
.guest .ks-primary { min-height: var(--key-h); padding: 0 var(--sp-4); border-radius: var(--r-pill); font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.guest .ks-primary:active:not(:disabled) { background: var(--accent-2); }
.guest .ks-total { min-width: 0; }
.guest .ks-total .mono { font-size: var(--fs-xl); font-weight: var(--fw-semibold); }
.guest .ks-total .ks-muted { font-size: var(--fs-sm); }
.guest .ks-promo { font-size: var(--fs-sm); }
.guest .ks-promo-row:not(:first-child) { color: var(--ok); font-weight: var(--fw-regular); }
.guest .ks-promo-row.gu-tip-row { color: var(--ink); }
/* a pair's note in the dish's sheet: a row of the accent's shade */
.guest .gu-pair-note { gap: 0; margin-top: var(--sp-4); box-shadow: inset 0 1px 0 0 var(--zl); }
.guest .gu-pair-note p { gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-radius: 0; background: var(--accent-soft); color: var(--accent-2); font-size: var(--fs-sm); line-height: 20px; box-shadow: inset 0 -1px 0 0 var(--zl); }
.guest .gu-pair-note b { font-weight: var(--fw-regular); }

/* ---------- the basket: the lines from edge to edge; a pair's offer, the hours, the name, the phone, the tip ---------- */
.guest .ks-lines { margin-top: var(--sp-3); box-shadow: inset 0 1px 0 0 var(--zl); }
.guest .ks-line { gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-bottom: 0; box-shadow: inset 0 -1px 0 0 var(--zl); }
.guest .ks-line-img { width: 56px; height: 56px; border-radius: 0; background: var(--bg); }
.guest .ks-line-img img { object-fit: contain; }
.guest .ks-line-name { font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; }
.guest .ks-line-sum { color: var(--ink-2); font-family: var(--font-timer); font-size: var(--fs-sm); }
.guest .gu-pair { margin-top: var(--sp-4); padding: 0; border-radius: 0; background: var(--surface); box-shadow: inset 0 1px 0 0 var(--zl); }
.guest .gu-pair-h { gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); background: var(--accent-soft); color: var(--accent-2); font-size: var(--fs-sm); line-height: 20px; box-shadow: inset 0 -1px 0 0 var(--zl); }
.guest .gu-pair-h b { font-weight: var(--fw-regular); }
.guest .gu-pair-opts { gap: 0; margin-top: 0; }
.guest .gu-pair-opt { gap: var(--sp-3); min-height: 64px; padding: var(--sp-2) var(--sp-4); border-radius: 0; background: var(--surface); box-shadow: inset 0 -1px 0 0 var(--zl); }
.guest .gu-pair-opt:active { background: var(--surface-3); }
.guest .gu-pair-img { width: 48px; height: 48px; border-radius: 0; background: var(--bg); }
.guest .gu-pair-name { font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.guest .gu-pair-price { color: var(--ink-2); font-family: var(--font-timer); font-size: var(--fs-sm); }
.guest .gu-pair-price .mono { color: var(--ok); font-weight: var(--fw-semibold); }
.guest .gu-pair-plus { width: 44px; height: 44px; }
/* the hours of a pre-order: «как можно скорее» a row; the quarter hours tiles, four to a row */
.guest .gu-slot.wide {
  display: flex; justify-content: space-between; width: 100%; min-height: var(--key-h); padding: 0 var(--sp-4); border: 0; border-radius: 0;
  background: var(--surface); color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); box-shadow: inset 0 -1px 0 0 var(--zl);
}
.guest .gu-slot.wide.on { background: var(--accent-soft); color: var(--accent-2); }
.guest .gu-slot-s { color: var(--ink-2); font-size: var(--fs-sm); font-weight: var(--fw-regular); }
.guest .gu-slot.on .gu-slot-s { color: var(--accent-2); }
.guest .gu-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.guest .gu-slots > .gu-slot {
  min-width: 0; min-height: var(--key-h); padding: 0; border: 0; border-radius: 0; background: var(--surface); color: var(--ink);
  font-family: var(--font-timer); font-size: var(--fs-md); font-weight: var(--fw-semibold);
  box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl), var(--rim, 0 0 #0000);
}
.guest .gu-slots > .gu-slot[data-rf] { box-shadow: inset 0 -1px 0 0 var(--zl), var(--rim, 0 0 #0000); }
.guest .gu-slots > .gu-slot:active { background: var(--surface-3); }
.guest .gu-slots > .gu-slot.on { background: var(--accent-soft); color: var(--accent-2); }
/* a field: a row of the screen's white, a line under it — the accent's under the one being typed in */
.guest .gu-field input, .guest .gu-field textarea {
  min-height: var(--key-h); padding: 0 var(--sp-4); border: 0; border-radius: 0; background: var(--surface); color: var(--ink);
  font-size: var(--fs-md); font-weight: var(--fw-semibold); box-shadow: inset 0 -1px 0 0 var(--zl);
}
.guest .gu-field textarea { padding-top: var(--sp-3); padding-bottom: var(--sp-3); line-height: 22px; }
.guest .gu-field input::placeholder, .guest .gu-field textarea::placeholder { color: var(--ink-3); font-size: var(--fs-sm); font-weight: var(--fw-regular); }
.guest .gu-field :is(input, textarea):focus { border: 0; outline: 0; box-shadow: inset 0 -2px 0 0 var(--accent); }
.guest .gu-field input[aria-invalid="true"] { border: 0; box-shadow: inset 0 -2px 0 0 var(--bad); }
.guest .gu-opt { font-weight: var(--fw-regular); }
.guest :is(.gu-err, .gu-ok-line, .gu-warn-line) { padding: var(--sp-2) var(--sp-4) 0; font-weight: var(--fw-regular); }
.guest :is(.gu-phone, .gu-tips-group) .gu-note { margin: 0; padding: var(--sp-2) var(--sp-4) 0; font-size: var(--fs-sm); }
/* the tip: 5, 10 and 15%, «Без чаевых», «Своя сумма» — tiles, three to a row */
.guest .gu-tips { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.guest .gu-tip, .guest .gu-tip.wide {
  grid-column: auto; gap: 2px; min-height: 64px; padding: var(--sp-2) var(--sp-1); border: 0; border-radius: 0; background: var(--surface); color: var(--ink);
  box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl), var(--rim, 0 0 #0000);
}
.guest .gu-tips > .gu-tip[data-rf] { box-shadow: inset 0 -1px 0 0 var(--zl), var(--rim, 0 0 #0000); }
.guest .gu-tip:active { background: var(--surface-3); }
.guest .gu-tip.on { background: var(--accent-soft); color: var(--accent-2); }
.guest .gu-tip-v, .guest .gu-tip.wide .gu-tip-v { font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; }
.guest .gu-tip:not(.wide) .gu-tip-v { font-family: var(--font-timer); }
.guest .gu-tip-s { color: var(--ink-2); font-family: var(--font-timer); font-size: var(--fs-sm); }
.guest .gu-tip.on .gu-tip-s { color: var(--accent-2); }
.guest .gu-tip-own { padding: var(--sp-3) var(--sp-4) 0; }
.guest .gu-tip-own label { font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.guest .gu-tip-in { color: var(--ink-2); font-size: var(--fs-sm); font-weight: var(--fw-regular); }
.guest .gu-tip-in input { min-height: 48px; border: 0; border-radius: 0; background: var(--bg); font-family: var(--font-timer); font-size: var(--fs-md); box-shadow: inset 0 -1px 0 0 var(--zl); }
.guest .gu-tip-in input:focus { border: 0; outline: 0; box-shadow: inset 0 -2px 0 0 var(--accent); }

/* ---------- the payment: the sum in the figures of an instrument; the wallets keys; the bank's page a zone ---------- */
.guest .gu-pay-sum { margin-top: var(--sp-3); margin-bottom: var(--sp-4); font-family: var(--font-timer); font-size: 36px; font-weight: var(--fw-semibold); letter-spacing: -0.02em; line-height: 1.1; }
.guest .gu-pay-sum span { color: var(--ink-2); font-family: var(--font-ui); font-size: var(--fs-sm); font-weight: var(--fw-regular); }
.guest .gu-pay-tip { margin-top: calc(var(--sp-3) * -1); color: var(--ink-2); font-size: var(--fs-sm); }
.guest .gu-wallets { gap: var(--sp-2); padding: 0 var(--sp-4); }
.guest .gu-wallet { min-height: var(--key-h); border-radius: var(--r-pill); font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.guest .gu-wallet.card { background: var(--surface-3); color: var(--ink); }
.guest .gu-wallets .gu-note { margin: var(--sp-1) 0 0; font-size: var(--fs-sm); }
.guest .gu-pay-busy { font-size: var(--fs-md); }
.guest .gu-bank { gap: var(--sp-3); padding: var(--sp-4); border: 0; border-radius: 0; background: var(--bg); box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.guest .gu-bank-h { font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.guest .gu-demo-note { margin-top: var(--sp-4); color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; }

/* ---------- an order after payment: the state; its steps, its dishes, the payment — zones from edge to edge ---------- */
.guest .gu-status { padding: 0 0 var(--sp-6); background: var(--bg); }
.guest .gu-st-head { gap: var(--sp-3); padding: var(--sp-6) var(--sp-4) var(--sp-5); background: var(--surface); box-shadow: inset 0 -1px 0 0 var(--zl); }
.guest .gu-st-ic { width: 64px; height: 64px; }
.guest .gu-st-title { font-size: var(--fs-xl); font-weight: var(--fw-semibold); line-height: 28px; }
.guest .gu-st-do { font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; }
/* a pre-order's number: the figures of an instrument, large, on the page's white — no card round it */
.guest .gu-st-no { gap: var(--sp-1); margin-top: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; }
.guest .gu-st-no-l { color: var(--ink-2); font-size: var(--fs-sm); font-weight: var(--fw-regular); letter-spacing: 0; text-transform: none; }
.guest .gu-st-no-n { font-family: var(--font-timer); font-size: 64px; font-weight: var(--fw-semibold); letter-spacing: -0.02em; line-height: 1; }
.guest .gu-st-no-s { color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; }
/* ready: the head a zone of green from edge to edge */
.guest .gu-st-head.gus-ready { margin: 0; padding: var(--sp-6) var(--sp-4); border-radius: 0; background: var(--ok); color: #FFFFFF; box-shadow: none; }
.guest .gu-st-head.gus-ready .gu-st-no-l, .guest .gu-st-head.gus-ready .gu-st-no-s { color: rgb(255 255 255 / 0.86); }
.guest .gu-st-head.gus-ready .gu-st-no-n { color: #FFFFFF; }
.guest .gu-st-head.gus-ready .gu-route { color: #FFFFFF; }
/* the steps: a zone of white, a row each */
.guest .gu-steps { margin: var(--sp-4) 0 0; padding: var(--sp-2) var(--sp-4); border-radius: 0; background: var(--surface); box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.guest .gu-step { min-height: 44px; }
.guest .gu-step-l { font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.guest .gu-step-n { font-size: var(--fs-sm); }
.guest .gu-step-at { color: var(--ink-2); font-family: var(--font-timer); font-size: var(--fs-sm); }
/* a zone: its name a row of the shade, its rows with a line between them */
.guest .gu-card { margin-top: var(--sp-4); padding: 0; border-radius: 0; background: var(--surface); box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.guest .gu-card .gu-sub-h { margin: 0; box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.guest .gu-lines { padding: 0; }
.guest .gu-line { gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-bottom: 0; box-shadow: inset 0 -1px 0 0 var(--zl); }
.guest .gu-line:last-child { box-shadow: inset 0 -1px 0 0 var(--zl); }
.guest .gu-line-q { min-width: 32px; font-family: var(--font-timer); font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.guest .gu-line-t { font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; }
.guest .gu-line-t .ks-muted { font-weight: var(--fw-regular); }
.guest .gu-chip-st { padding: 2px var(--sp-2); font-size: var(--fs-sm); font-weight: var(--fw-regular); line-height: 20px; }
.guest .gu-promo { margin-top: 0; padding: var(--sp-3) var(--sp-4) 0; }
.guest .gu-paid { margin-top: 0; padding: var(--sp-3) var(--sp-4); border-top: 0; font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.guest .gu-paid .mono { font-family: var(--font-timer); }
.guest .gu-tip-paid { gap: var(--sp-2); margin: 0; padding: var(--sp-3) var(--sp-4); border-radius: 0; background: var(--ok-soft); color: var(--ok); font-size: var(--fs-sm); font-weight: var(--fw-regular); line-height: 20px; box-shadow: inset 0 1px 0 0 var(--zl); }
/* the fiscal receipt: a row with a line, its icon alone */
.guest .gu-fiscal { gap: var(--sp-3); margin-top: var(--sp-4); padding: var(--sp-4); border: 0; border-radius: 0; background: var(--surface); box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.guest .gu-fiscal-ic { width: 24px; height: 24px; border-radius: 0; background: none; color: var(--ink-2); }
.guest .gu-fiscal-h { font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.guest .gu-actions { gap: var(--sp-2); margin-top: var(--sp-4); padding: 0 var(--sp-4); }
.guest .gu-actions .gu-btn2 { min-height: var(--key-h); }
/* «Сообщить, когда будет готово» and the SMS: rows; the icons alone */
.guest .gu-notify { padding: 0; }
.guest .gu-nt { padding: var(--sp-3) var(--sp-4); }
.guest .gu-nt + .gu-nt { border-top: 0; box-shadow: inset 0 1px 0 0 var(--zl); }
.guest .gu-nt-ic { width: 24px; height: 40px; border-radius: 0; background: none; color: var(--ink-2); }
.guest .gu-nt-ic.on { background: none; color: var(--accent); }
.guest .gu-nt-h { font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; }
.guest .gu-nt-s { color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; }
.guest .gu-nt-allow { min-height: 44px; margin: var(--sp-2) 0 0 36px; font-size: var(--fs-sm); font-weight: var(--fw-regular); }
.guest .gu-sms-text { font-size: var(--fs-sm); }
/* the rating: the stars round keys; the words keys; the field a row */
.guest .gu-rate, .guest .gu-rated { margin: var(--sp-4) 0 0; padding: var(--sp-2) 0 var(--sp-4); }
.guest .gu-star-l { font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.guest .gu-rate .gu-note { margin: 0 var(--sp-4) var(--sp-1); }
.guest .gu-rate-tags { gap: var(--sp-2); margin: var(--sp-3) var(--sp-4) 0; }
.guest .gu-rate-tags .gu-chip { min-height: 44px; padding: 0 var(--sp-4); border: 0; border-radius: var(--r-pill); background: var(--surface-3); color: var(--ink); font-size: var(--fs-sm); }
.guest .gu-rate-tags .gu-chip.on { background: var(--accent); color: var(--accent-ink); }
.guest .gu-rate-field { margin-top: var(--sp-4); }
.guest .gu-rate .ks-primary { width: calc(100% - 2 * var(--sp-4)); margin: var(--sp-4) var(--sp-4) 0; }
.guest .gu-stars-ro { padding: 0 var(--sp-4); font-size: var(--fs-xl); font-weight: var(--fw-semibold); }
.guest .gu-rate-text { margin: var(--sp-3) var(--sp-4) 0; padding: var(--sp-3) var(--sp-4); border-radius: 0; background: var(--bg); font-size: var(--fs-sm); box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.guest .gu-rated .gu-note { margin: var(--sp-3) var(--sp-4) 0; }
.guest .gu-rated > :is(.gu-sub-h, h2) + * { margin-top: var(--sp-3); }
.guest .gu-review { gap: var(--sp-2); margin: var(--sp-4) var(--sp-4) 0; padding-top: var(--sp-4); border-top: 0; box-shadow: inset 0 1px 0 0 var(--zl); }
.guest .gu-review-btn { min-height: var(--key-h); padding: 0 var(--sp-4); border-radius: var(--r-pill); }
.guest .gu-review-ic { border-radius: 50%; }
.guest .gu-review-p { font-size: var(--fs-sm); line-height: 20px; }
/* a narrow phone: the folders' keys a little narrower */
@media (max-width: 380px) {
  .guest .gu-nav .ks-pill { padding: 0 var(--sp-2); }
  .guest .ks-img { height: 112px; }
}
/* the smallest phones: the three languages keep their room, «для гостей» gives way (the screen says whose it is) */
@media (max-width: 339px) {
  .guest .gu-brand-for { display: none; }
}

/* ---------- the kitchen screen, calm (13 November, 20:04 — the owner of three calm looks drawn: «Кухня 1») ----------
   Before it, 17:42: «экран кухни — каша». The tickets are cards on the screen's dark ground with a gap between them,
   rounded (16), each as tall as its dishes, in columns — the oldest across the top from the left. No lines and no
   shaded bands: what matters is said by colour alone where it lives — the wait on the card's top edge and in its clock
   (amber, then red), a dish cooking its number and flame amber, ready grey with a green tick, a note amber, an allergy
   red with its sign. The header on the same ground: the restaurant, the stations as the iPhone's segmented control
   with how many, the clock, «Звук», «⋯»; the rest behind «⋯». Light, chosen there, the same cards on the day's grey.
   Letters: a dish and its number 20 semibold (the number in the figures of an instrument), what it is 15 grey, the
   table 30 and the clock 22 in the instrument's figures, the little labels 13 semibold grey. */
.kds { --gap: 12px; --kds-card: 16px; }
.kds:not(.kds-light) { --bg: #0B0D12; }
.kds.kds-light { --bg: #E4E8EF; }

/* ---------- the header ---------- */
.app.kds > .kds-top {
  position: relative; z-index: 2; display: flex; flex: none; align-items: center; gap: 12px;
  min-height: calc(72px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 20px 0;
  border: 0; background: var(--bg); box-shadow: none;
}
.kds .kds-top .tb-left { flex: none; gap: 12px; }
.kds .kds-top .brand-loc { font-size: 20px; font-weight: var(--fw-semibold); line-height: 26px; }
.kds .kds-top .tb-right { display: flex; flex: none; align-items: center; gap: 10px; margin-left: auto; }
/* the stations: a pill track, the chosen one lighter, how many beside each name */
.kds-stations { flex: 0 1 auto; min-width: 0; margin-left: 8px; }
.kds-stations .seg { display: flex; width: auto; max-width: none; min-height: 0; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--surface-2); }
.kds.kds-light .kds-stations .seg { background: var(--seg-track); }
.kds-stations .seg-btn {
  flex: none; justify-content: center; gap: 8px; min-width: 0; height: 40px; min-height: 0; padding: 0 18px; border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--ink-2); font-size: 16px; font-weight: var(--fw-semibold); box-shadow: none;
}
.kds-stations .seg-btn::before { display: none; }
.kds-stations .seg-btn.on { background: var(--seg-on); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / 0.18); }
/* (15 November, the brand book: 4.5:1 — «Все цеха 8» was 3.9) */
.kds-stations .seg-badge { min-width: 0; margin: 0; padding: 0; background: none; color: var(--ink-2); font-size: 16px; font-weight: var(--fw-semibold); line-height: 1; opacity: 1; }
/* its keys: pills 48 high; «Звук» on — its sign in the accent, off — grey; «⋯» round, a dot on it while the stop list has
   something */
.kds .tool-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; min-width: 48px; min-height: 0;
  padding: 0 18px; border: 0; border-radius: var(--r-pill); background: var(--pill); color: var(--ink); font-size: 16px; font-weight: var(--fw-semibold);
}
.kds .tool-btn:active { background: var(--pill-press); }
.kds .tool-btn.on svg { color: var(--accent); }
.kds #kds-sound:not(.on):not(.kds-shut) { color: var(--ink-3); }
.kds .tool-btn .seg-badge { min-width: 0; margin: 0; padding: 0; background: none; color: var(--warn); font-family: var(--font-timer); font-size: 16px; line-height: 1; }
.kds .tool-btn.kds-menu { width: 48px; padding: 0; }
.kds .kds-dot { position: absolute; top: 9px; right: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 2px var(--pill); }
.kds .kds-clock { margin: 0 6px; font-size: 24px; font-weight: var(--fw-semibold); line-height: 28px; }
.kds .kds-top .sync-live, .kds .kds-top .sync-local { display: none; }
/* (13 November; 16:32, the owner of a box over the whole screen: «Будет выглядеть колхозно») the sound on, the browser not
   letting it play yet (a reload, the iPad asleep; RUVO's app lets it): «Звук» in amber says to touch the screen — the
   first touch anywhere opens the sound */
.kds .tool-btn.kds-shut, .kds .tool-btn.kds-shut:hover { background: var(--warn-soft); color: var(--warn); }
.kds .tool-btn.kds-shut svg { color: currentColor; }

/* ---------- the tickets ---------- */
.kds-body { flex: 1; display: flex; min-height: 0; }
.kds-grid { flex: 1; min-width: 0; min-height: 0; padding: 4px 16px 16px; overflow: auto; background: var(--bg); }
.kds-cols-row { display: flex; align-items: flex-start; gap: var(--gap); }
.kds-col { display: flex; flex: 1 1 0; flex-direction: column; gap: var(--gap); min-width: 0; }
/* «Ряды»: rows, a row as tall as its tallest ticket */
.kds-grid.kds-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); grid-auto-rows: max-content; align-content: start; gap: var(--gap); }
.kds-empty { grid-column: 1 / -1; padding: 64px 16px; }
.kds .kds-empty .empty { padding: 32px 16px; }
.kds .kds-empty .empty-title { color: var(--ink); font-size: 22px; font-weight: var(--fw-semibold); }
.kds .kds-empty .empty-hint { color: var(--ink-2); font-size: 15px; }

.kt { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 0; border-radius: var(--kds-card); background: var(--surface); box-shadow: none; }
.kds.kds-light .kt { box-shadow: 0 1px 2px rgb(19 24 36 / 0.06); }
/* how long it waits: the card's top edge and its clock — amber when late, red when very late */
.kt.kt-warn { box-shadow: inset 0 4px 0 0 var(--warn); }
.kt.kt-bad, .kt.kt-off { box-shadow: inset 0 4px 0 0 var(--bad); }
.kt-new { animation: kt-new 1.2s ease-out 3; }
@keyframes kt-new { from { outline: 3px solid var(--accent); outline-offset: -3px; } to { outline: 3px solid transparent; outline-offset: -3px; } }
@media (prefers-reduced-motion: reduce) { .kt-new { animation: none; outline: 3px solid var(--accent); outline-offset: -3px; } }

/* its head: where it goes — a tag (the kiosk, the app, Wolt), the table or the number 30, who 15 grey — the clock right */
.kt-head { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 8px; height: auto; min-height: 0; padding: 14px 16px 4px; border: 0; background: none; box-shadow: none; }
.kt-src { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.kt-table { font-family: var(--font-timer); font-size: 30px; font-weight: var(--fw-semibold); line-height: 34px; }
.kt-code { font-family: var(--font-timer); font-size: 22px; font-weight: var(--fw-semibold); line-height: 30px; white-space: nowrap; }
.kt-who { min-width: 0; overflow: hidden; color: var(--ink-3); font-size: 15px; line-height: 20px; white-space: nowrap; text-overflow: ellipsis; }
/* (a ticket with a tag — the kiosk, the app, a delivery: who goes on a line of its own under the tag and the number, so
   a narrow card does not cut it to a letter) */
.kt-src:has(.kt-kiosk, .ch) { flex-wrap: wrap; row-gap: 0; }
.kt-src:has(.kt-kiosk, .ch) > .kt-who { flex: 1 1 100%; }
.kt-timer { flex: none; color: var(--ink-2); font-family: var(--font-timer); font-size: 22px; font-weight: var(--fw-semibold); line-height: 30px; }
.kt-warn .kt-timer { color: var(--warn); }
.kt-bad .kt-timer { color: var(--bad); }
.kt-kiosk { align-self: center; padding: 3px 10px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: var(--fw-semibold); letter-spacing: 0; text-transform: none; }
.kt-app { background: var(--ok-soft); color: var(--ok); }
.kds .kt-head .ch { align-self: center; padding: 3px 10px; border-radius: var(--r-pill); font-size: 13px; font-weight: var(--fw-semibold); letter-spacing: 0; text-transform: none; }
/* a courier or a pickup: a line under the head, its sign and when */
.kt-courier { display: block; min-height: 0; margin: 2px 16px 6px; padding: 0; border: 0; background: none; box-shadow: none; color: var(--ink-2); font-size: 15px; font-weight: var(--fw-semibold); line-height: 20px; }
/* (one line of words that wraps as words do: its sign before them, the minutes left inline) */
.kt-courier > .ic { display: inline-block; margin-right: 4px; vertical-align: -3px; }
.kt-courier.late, .kt-pickup.late { color: var(--bad); }
.kt-wait .kt-pickup { color: var(--ink-3); }
/* an allergy the waiter was told of: a red line under the head, seen before the dishes */
.kt-alg { display: flex; align-items: center; gap: 8px; min-height: 0; margin: 4px 12px 2px; padding: 6px 10px; border-radius: 10px; background: var(--bad-soft); box-shadow: none; color: var(--bad); font-size: 15px; font-weight: var(--fw-semibold); line-height: 20px; }
/* «Все цеха»: a station's name over its dishes; a course's line — the little labels */
.kt-station, .kt-course { margin: 10px 16px 0; padding: 0; border: 0; background: none; box-shadow: none; color: var(--ink-3); font-size: 13px; font-weight: var(--fw-semibold); letter-spacing: 0; line-height: 18px; text-transform: none; }

/* the dishes: how many, the dish and what it is, the state's sign at the right; a touch: cooking, again ready */
.kt-items { flex: 1; margin: 0; padding: 4px 8px; list-style: none; }
.kt-items > li { box-shadow: none; }
.ki { display: grid; grid-template-columns: 28px minmax(0, 1fr) 22px; gap: 10px; align-items: start; width: 100%; min-height: 0; padding: 8px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.ki:active { background: var(--surface-2); }
.ki-qty { min-width: 0; font-family: var(--font-timer); font-size: 20px; font-weight: var(--fw-semibold); line-height: 26px; }
.ki-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ki-name { font-size: 20px; font-weight: var(--fw-semibold); line-height: 26px; }
.ki-mods { color: var(--ink-3); font-size: 15px; font-weight: var(--fw-regular); line-height: 20px; }
/* a table by guest: whose the dish is («Гость 2») — the runner takes it to that guest */
.ki-seat { color: var(--accent); font-size: 15px; font-weight: var(--fw-semibold); line-height: 20px; }
.ki-comment { align-self: auto; margin: 2px 0 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--warn); font-size: 15px; font-weight: var(--fw-semibold); line-height: 20px; }
/* (13 November, the kitchen's check, 2: «Да») an allergy: red with its sign, «Аллергия: орехи» */
.ki-comment.ki-alg, .ki-held .ki-comment.ki-alg { display: flex; align-items: flex-start; gap: 6px; background: none; box-shadow: none; color: var(--bad); }
.ki-comment.ki-alg svg { flex: none; margin-top: 1px; }
.ki-state { display: grid; place-items: center; width: 22px; padding-top: 3px; color: var(--ink-3); }
.ki-cooking { background: none; }
.ki-cooking .ki-qty, .ki-cooking .ki-state { color: var(--warn); }
.ki-ready { opacity: 1; }
.ki-ready .ki-name, .ki-ready .ki-qty { color: var(--ink-3); text-decoration: none; }
.ki-ready .ki-mods { color: var(--ink-3); }
.ki-ready .ki-state { color: var(--ok); }
/* a dish past its norm: how much, in red after its name */
.ki-over { margin-left: 8px; padding: 0; border-radius: 0; background: none; color: var(--bad); font-family: var(--font-ui); font-size: 14px; font-weight: var(--fw-semibold); line-height: 20px; vertical-align: 2px; white-space: nowrap; }
/* a dish cancelled after it reached the kitchen: struck out in place, «Отменено» and why in red */
.ki-void { cursor: default; }
.ki-void .ki-name, .ki-void .ki-qty { color: var(--ink-3); text-decoration: line-through; }
.ki-cancel { color: var(--bad); font-size: 15px; font-weight: var(--fw-semibold); line-height: 20px; }
/* a course the waiter has not called yet: grey, not to be cooked, its clock at the right */
.ki-held { cursor: default; color: var(--ink-3); }
.ki-held:active { background: transparent; }
.ki-held .ki-name, .ki-held .ki-mods, .ki-held .ki-qty, .ki-held .ki-comment { color: var(--ink-3); }
.kt-wait .kt-timer { color: var(--ink-3); font-family: var(--font-ui); font-size: 15px; font-weight: var(--fw-regular); }
.kt-wait .ki:not(.ki-held) .ki-name { color: var(--ink-2); }
/* a ticket cancelled whole: «Отменён» in red where the clock was */
.kt-off .kt-timer { color: var(--bad); font-family: var(--font-ui); font-size: 16px; font-weight: var(--fw-semibold); }

/* the foot: the order's number (and its stations) in the little letters, «Готово» a green pill at the right */
.kt-foot { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 12px; height: auto; min-height: 0; padding: 6px 12px 12px 16px; border: 0; box-shadow: none; }
.kt-foot > .muted { flex: 0 1 auto; min-width: 0; color: var(--ink-3); font-size: 13px; line-height: 18px; }
.kt-foot > .btn { flex: none; height: 44px; min-height: 0; padding: 0 20px; border-radius: var(--r-pill); font-size: 16px; font-weight: var(--fw-semibold); }

/* a new ticket below the fold: a pill at the bottom of the screen */
.kds-more {
  position: sticky; bottom: 12px; z-index: 3; display: flex; align-items: center; gap: 8px; width: max-content; max-width: 100%; margin: 12px auto 0;
  min-height: 52px; padding: 0 22px; border: 0; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink);
  box-shadow: var(--shadow-2); font-size: 17px; font-weight: var(--fw-semibold); cursor: pointer;
}
.kds-grid.kds-rows > .kds-more { grid-column: 1 / -1; justify-self: center; }

/* ---------- «⋯»: the rest of the screen, a row each ---------- */
.kd-menu { display: flex; flex-direction: column; }
.kd-menu-row {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 8px 20px; border: 0; border-radius: 0;
  background: var(--surface); color: var(--ink); font-size: 17px; font-weight: var(--fw-semibold); text-align: left; box-shadow: inset 0 -1px 0 0 var(--line);
}
button.kd-menu-row { cursor: pointer; }
button.kd-menu-row:active { background: var(--surface-2); }
.kd-menu-row > .ic:first-child { color: var(--ink-2); }
.kd-menu-l { flex: 1; min-width: 0; }
.kd-menu-v { color: var(--ink-3); font-family: var(--font-timer); font-size: 17px; }
.kd-menu-v.warn { color: var(--warn); }
.kd-menu-go { color: var(--ink-3); }
/* a switch as the iPhone's: green on */
.kd-switch { position: relative; flex: none; width: 51px; height: 31px; border-radius: var(--r-pill); background: var(--surface-3); transition: background 0.15s; }
.kd-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgb(0 0 0 / 0.3); transition: transform 0.15s; }
.kd-switch.on { background: var(--ok); }
.kd-switch.on::after { transform: translateX(20px); }
.kd-menu-view .seg { width: auto; min-height: 0; padding: 3px; border-radius: var(--r-pill); background: var(--seg-track); }
.kd-menu-view .seg-btn { height: 36px; min-height: 0; padding: 0 14px; border-radius: var(--r-pill); font-size: 15px; }
.kd-menu-view .seg-btn::before { display: none; }
.kd-menu-view .seg-btn.on { background: var(--seg-on); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / 0.18); }
.kds .kd-menu-lang .lang { display: flex; gap: 6px; overflow: visible; border-radius: 0; outline: 0; background: none; }
.kds .kd-menu-lang .lang-btn { min-width: 48px; height: 40px; min-height: 0; padding: 0 12px; border: 0; border-radius: var(--r-pill); background: var(--pill); color: var(--ink); font-size: 15px; font-weight: var(--fw-semibold); }
.kds .kd-menu-lang .lang-btn.on { background: var(--accent); color: var(--accent-ink); }

/* what to cook now, done lately: rows in a sheet */
.kd-list { display: flex; flex-direction: column; }
.kd-list-none { padding: 20px; }
.sum-row { display: flex; align-items: baseline; gap: 14px; padding: 14px 20px; box-shadow: inset 0 -1px 0 0 var(--line); }
.sum-n { min-width: 32px; color: var(--warn); font-family: var(--font-timer); font-size: 22px; font-weight: var(--fw-semibold); line-height: 26px; text-align: right; }
.sum-row > span:last-child { font-size: 18px; font-weight: var(--fw-semibold); line-height: 26px; }
.kds-load { margin: 0; padding: 14px 20px; border-radius: 0; background: none; box-shadow: inset 0 -1px 0 0 var(--line); color: var(--ink-2); font-size: 15px; }
.kds-load.busy { background: var(--warn-soft); color: var(--warn); }
.kds-norm { display: flex; align-items: baseline; gap: 10px; margin: 0; padding: 14px 20px; box-shadow: inset 0 -1px 0 0 var(--line); }
.kds-norm-v { font-family: var(--font-timer); font-size: 24px; font-weight: var(--fw-semibold); }
.kds-norm-v.good { color: var(--ok); }
.kds-norm-v.mid { color: var(--warn); }
.kds-norm-v.low { color: var(--bad); }
.done-row { display: flex; flex-direction: column; gap: 2px; padding: 12px 20px; border-radius: 0; background: none; box-shadow: inset 0 -1px 0 0 var(--line); }
.done-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.done-top > .strong { font-size: 17px; font-weight: var(--fw-semibold); }
.done-top > .btn { min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--r-pill); background: var(--pill); color: var(--ink); font-size: 15px; font-weight: var(--fw-semibold); }
.done-row .item-lines, .done-row > .muted { font-size: 15px; }

/* ---------- (the kitchen's check, 7 — «Да») «Крупно»: the cards for a screen seen from across the kitchen ----------
   the letters a step larger, a card at least 340 wide (fewer to a row), «Готово» 52 high; the header as it is */
.kds.kds-big .kds-grid.kds-rows { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.kds.kds-big .kt-table { font-size: 38px; line-height: 42px; }
.kds.kds-big .kt-code, .kds.kds-big .kt-timer { font-size: 28px; line-height: 34px; }
.kds.kds-big .kt-who, .kds.kds-big .kt-courier, .kds.kds-big .kt-alg, .kds.kds-big .ki-mods, .kds.kds-big .ki-comment, .kds.kds-big .ki-seat, .kds.kds-big .ki-cancel { font-size: 18px; line-height: 24px; }
.kds.kds-big .ki { grid-template-columns: 34px minmax(0, 1fr) 26px; padding: 10px 8px; }
.kds.kds-big .ki-qty, .kds.kds-big .ki-name { font-size: 26px; line-height: 32px; }
.kds.kds-big .kt-station, .kds.kds-big .kt-course { font-size: 16px; line-height: 22px; }
.kds.kds-big .kt-foot > .muted { font-size: 15px; }
.kds.kds-big .kt-foot > .btn { height: 52px; padding: 0 24px; font-size: 18px; }

/* a narrower screen (an iPad upright, 820): the restaurant's name and the keys' words give way, their signs stay */
@media (max-width: 1080px) {
  .kds .kds-top .brand-loc, .kds .kds-tool-words { display: none; }
  .kds .tool-btn:has(.kds-tool-words) { width: 48px; padding: 0; }
  .kds .tool-btn.kds-shut { width: auto; padding: 0 16px; }
  .kds-stations .seg-btn { padding: 0 14px; }
}
@media (max-width: 760px) {
  .app.kds > .kds-top { flex-wrap: wrap; row-gap: 8px; padding-bottom: 8px; }
  .kds-stations { order: 3; flex: 1 1 100%; margin-left: 0; }
  .kds-stations .seg { width: 100%; }
  .kds-stations .seg-btn { flex: 1 1 0; }
}

/* (13 November, the kitchen's check, 6) a dish's tech card, by a long press on it: rows from edge to edge — the product
   left, its net weight right in the instrument's figures, the gross under it where some is lost; a semi-finished
   product's own lines under it on the shade, set in; the options and the note on top, the allergens at the end */
.kd-tech { display: flex; flex-direction: column; }
.kds .sheet-body.flush > .kd-tech { margin: 0; }
.kd-tech-notes { display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-3) var(--sp-4); box-shadow: inset 0 -1px 0 0 var(--line-2); }
.kd-tech-notes .ki-comment { align-self: flex-start; }
.kd-tech-row { display: grid; grid-template-columns: 1fr auto; column-gap: var(--sp-3); align-items: baseline; padding: var(--sp-3) var(--sp-4); box-shadow: inset 0 -1px 0 0 var(--line-2); }
.kd-tech-name { min-width: 0; font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.kd-tech-q { font-size: var(--fs-md); font-weight: var(--fw-semibold); text-align: right; white-space: nowrap; }
.kd-tech-g:empty { display: none; }
.kd-tech-g { grid-column: 1 / -1; color: var(--ink-3); font-size: var(--fs-sm); }
.kd-tech-sub .kd-tech-row { padding-left: calc(var(--sp-4) * 2); background: var(--surface-2); }
.kd-tech-sub .kd-tech-name { font-weight: var(--fw-regular); }
.kd-tech-alg { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); color: var(--warn); font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.kd-tech-none { padding: var(--sp-4); }

/* (13 November, the kitchen's check, 8) «Заготовки»: the tech card's rows, each a key — a touch ticks it off (struck
   out, the green tick at its end); a group's name a row of the shade */
.kd-prep-head { display: flex; align-items: center; min-height: 44px; padding: 0 var(--sp-4); background: var(--bg); box-shadow: inset 0 -1px 0 0 var(--line-2); color: var(--ink-3); font-size: var(--fs-sm); }
.kd-prep-row { display: grid; grid-template-columns: 1fr auto 24px; column-gap: var(--sp-3); align-items: center; width: 100%; min-height: 56px; padding: var(--sp-2) var(--sp-4); border: 0; background: var(--surface); box-shadow: inset 0 -1px 0 0 var(--line-2); color: var(--ink); text-align: left; cursor: pointer; }
.kd-prep-row:active { background: var(--surface-3); }
.kd-prep-row.done .kd-tech-name, .kd-prep-row.done .kd-tech-q { color: var(--ink-3); text-decoration: line-through; }
.kd-prep-mark { display: grid; place-items: center; color: var(--ok); }

/* ---------- back office ----------
   The sidebar and the page stand on one grid of rows: the same 24px top, a 44px head row (the wordmark ↔ the
   page title), a 16px gap, then a 44px row (the restaurant picker ↔ the page's first block: the question,
   a toolbar, tiles), a 16px gap, and the menu ↔ the page's content. Every page keeps its head to one 44px row. */
.office { flex-direction: row; --of-top: var(--sp-6); --of-row: var(--h-md); --of-gap: var(--sp-4); }
.of-side {
  display: flex; flex: none; flex-direction: column; gap: var(--of-gap); width: 240px; padding: var(--of-top) var(--sp-3) var(--sp-4);
  overflow: auto; border-right: 1px solid var(--line); background: var(--surface);
}
/* a wide screen gives the menu a little more: «Счета поставщиков» keeps its words beside the count of new invoices */
@media (min-width: 1440px) { .of-side { width: 272px; } }
/* one left line too: the wordmark, the picker's icon and the menu icons start 24px in; the picker's text
   starts where the menu labels do */
.of-brand { display: flex; align-items: center; gap: var(--sp-3); height: var(--of-row); padding: 0 var(--sp-3); }
.of-brand-sub { font-weight: var(--fw-semibold); white-space: nowrap; }
.of-scope { display: flex; }
.of-scope .select { gap: var(--sp-3); padding-left: 11px; }
/* one restaurant: its name where the picker stands — the picker's height and inset, nothing to open */
.of-scope-one { display: flex; align-items: center; gap: var(--sp-3); width: 100%; min-width: 0; height: var(--h-md); padding: 0 var(--sp-3) 0 11px; color: var(--ink); font-size: var(--fs-md); }
.of-scope-one svg { flex: none; color: var(--ink-3); }
.of-scope-one span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.of-nav { display: flex; flex-direction: column; gap: 2px; }
.of-nav-btn {
  display: flex; align-items: center; gap: var(--sp-3); min-height: var(--h-md); padding: 0 var(--sp-3);
  border: 0; border-radius: var(--r-md); background: transparent; color: var(--ink-2);
  font-weight: var(--fw-semibold); text-align: left; white-space: nowrap; cursor: pointer;
}
.of-nav-btn:hover { background: var(--surface-2); color: var(--ink); }
.of-nav-btn.on { background: var(--accent-soft); color: var(--accent); }
/* a section with pages inside («Меню и цены»): its pages unfold under its name, aligned with the label.
   Folded, the section that holds the page on screen is marked itself; the chevron turns up when open. */
.of-group { display: flex; flex-direction: column; }
.of-chev { margin-left: auto; color: var(--ink-3); transition: transform 0.2s; }
.of-group.open > .of-group-btn .of-chev { transform: rotate(180deg); }
.of-group.in > .of-group-btn { color: var(--ink); }
.of-group.in:not(.open) > .of-group-btn { background: var(--accent-soft); color: var(--accent); }
.of-group.in:not(.open) > .of-group-btn .of-chev { color: currentColor; }
/* the rows open from nothing to their height; folded, they are hidden from the keyboard and screen readers too */
.of-subwrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.2s ease; }
.of-group.open > .of-subwrap { grid-template-rows: 1fr; }
.of-subnav {
  display: flex; flex-direction: column; gap: 2px; min-height: 0; overflow: hidden;
  visibility: hidden; transition: visibility 0s linear 0.2s;
}
.of-subnav::before { content: ''; } /* with the gap, 2px under the section's name */
.of-group.open > .of-subwrap > .of-subnav { visibility: visible; transition-delay: 0s; }
.of-sub-btn {
  display: flex; flex: none; align-items: center; min-height: var(--h-sm); padding: 0 var(--sp-3) 0 42px;
  border: 0; border-radius: var(--r-md); background: transparent; color: var(--ink-2);
  font-size: var(--fs-md); font-weight: var(--fw-medium); text-align: left; white-space: nowrap; cursor: pointer;
}
.of-sub-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.of-sub-btn[data-badge] { gap: var(--sp-2); }
.of-sub-btn:hover { background: var(--surface-2); color: var(--ink); }
.of-sub-btn.on { background: var(--accent-soft); color: var(--accent); font-weight: var(--fw-semibold); }
.of-sub-btn:focus-visible { outline-offset: -2px; } /* inside the button: the unfolding rows clip what is outside */
.of-subbar { display: none; }
/* the connection and «Сменить устройство» keep the menu's lines: the mark at 24px, the words at 54px */
.of-side-foot { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-1); margin-top: auto; }
.of-side-foot .sync { min-height: var(--h-sm); gap: var(--sp-3); padding: 0 var(--sp-3); }
.of-side-foot .sync-dot { margin: 0 5px; }
.of-side-foot .btn { gap: var(--sp-3); padding: 0 var(--sp-3); }
/* SR · EN · RU and «Сменить устройство»: one under the other; side by side on a short screen, the button an icon.
   The languages start on the line of the marks above and below them (24 px in), not at the sidebar's edge: there they
   stuck out to the left of the column (the owner, 18 October: «выбор языка сползает») */
.of-foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1); }
.of-side-foot .lang { margin-left: var(--sp-3); }
@media (min-width: 961px) and (max-height: 640px) {
  .of-foot-row { flex-wrap: nowrap; }
  .of-foot-row .of-dev .btn-label { display: none; }
}
/* with the sidebar down the side, the wordmark and the picker stay put and only the menu scrolls,
   so the rows keep level with the page however long the menu is (4px of room for the focus ring);
   when more of the menu is below, its last row fades out */
@media (min-width: 961px) {
  .of-side { overflow: hidden; }
  .of-side > .of-nav {
    flex: 0 1 auto; min-height: 0; margin: -4px calc(-1 * var(--sp-3)); padding: 4px var(--sp-3);
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  }
  .of-side > .of-nav.more {
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 48px), transparent);
    mask-image: linear-gradient(180deg, #000 calc(100% - 48px), transparent);
  }
  .of-side > .of-nav.more-up {
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 28px);
    mask-image: linear-gradient(180deg, transparent, #000 28px);
  }
  .of-side > .of-nav.more-both {
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 28px, #000 calc(100% - 48px), transparent);
    mask-image: linear-gradient(180deg, transparent, #000 28px, #000 calc(100% - 48px), transparent);
  }
}
.of-main { flex: 1; min-width: 0; overflow: auto; }
/* the page takes all the width there is (the owner, 20 October, on a wide screen: «всю информацию надо давать на всю
   свободную ширину — справа пустое поле надо убрать») */
.of-page { display: flex; flex-direction: column; gap: var(--of-gap); padding: var(--of-top) var(--sp-6) var(--sp-6); }
/* tabs over a page are as wide as their tabs, not a grey bar across the whole page */
.of-page > .seg { align-self: flex-start; }
/* the head is one 44px row; when the buttons do not fit beside the title they take the next row of the grid */
.of-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--of-gap) var(--sp-4); min-height: var(--of-row); }
.of-head-text { display: flex; flex: 1 1 auto; align-items: center; min-width: 0; min-height: var(--of-row); }
.of-head h1 { display: flex; align-items: center; gap: var(--sp-2); }
.of-back { flex: none; margin: 0 var(--sp-1) 0 calc(-1 * var(--sp-2)); }
.of-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); min-height: var(--of-row); }
.of-actions .select { width: auto; min-width: 200px; }

/* key numbers: as many columns as tiles up to five, so no tile is left alone on a row of its own (six — three and
   three, seven or eight — rows of four); every row as tall as the tallest, so the tiles stand as one block. The
   payment ways of «Сводка» and the iPad's closing of the day (.reconcile-row) take the same rule. */
.kpi-row {
  display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: var(--sp-3);
  grid-auto-rows: auto auto minmax(20px, auto) auto;
}
/* a tile is four rows of the row it stands in — its name, its number, a line under it, the change — shared with the
   tiles beside it (subgrid): a name of two lines moves every number of the row down with it, so the numbers stand on
   one line; and the third row is there in every tile, so two rows of tiles are one height */
.kpi-row > .tile { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: var(--sp-1); }
:is(.kpi-row, .reconcile-row):has(> :last-child:nth-child(1)) { --cols: 1; }
:is(.kpi-row, .reconcile-row):has(> :last-child:nth-child(2)) { --cols: 2; }
:is(.kpi-row, .reconcile-row):has(> :last-child:nth-child(4)) { --cols: 4; }
:is(.kpi-row, .reconcile-row):has(> :last-child:nth-child(5)) { --cols: 5; }
:is(.kpi-row, .reconcile-row):has(> :last-child:nth-child(7)), :is(.kpi-row, .reconcile-row):has(> :last-child:nth-child(8)) { --cols: 4; }
@media (max-width: 640px) { .kpi-row, .reconcile-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile {
  display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; padding: var(--sp-4);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); text-align: left;
}
.tile-v { font-size: var(--fs-2xl); }
.tile-sub { margin-top: calc(-1 * var(--sp-1)); font-size: var(--fs-sm); color: var(--ink-2); }
.tile-btn { cursor: pointer; }
.tile-btn.on { border-color: var(--warn); box-shadow: inset 0 0 0 1px var(--warn); }
/* Two cards side by side are one row: the same height, heads, header rows and rows level with each other.
   They stand side by side only where both tables fit on one line per row; narrower, one under the other. */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: var(--sp-4); }
/* «Сводка»: the payments, the kitchen's speed and the guests' ratings — as many side by side as fit, 460 px each at least */
.sum-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); align-items: stretch; gap: var(--sp-4); }
/* app.ruvo.ac: the server's bills on their way — the chart's place, so nothing jumps when they come; no line to the
   server — one quiet line on the page itself */
.sum-wait { display: flex; align-items: center; justify-content: center; min-height: 240px; }
.of-page > .srv-strip { margin: 0; }
@media (min-width: 1366px) { .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.two-col .tbl-data th, .two-col .tbl-data td { white-space: nowrap; }
.two-col .tbl-data td:first-child { max-width: 0; width: 100%; overflow: hidden; text-overflow: ellipsis; }
.low-qty { color: var(--warn); font-weight: var(--fw-semibold); }
/* one line per row, like the table beside it: a long product name ends with «…» (the full name is in the hint) */
.low-table th, .low-table td { white-space: nowrap; }

/* chart: drawn at the container's pixel width, so its text stays at the caption size */
.chart-wrap { position: relative; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .axis { stroke: var(--line-2); stroke-width: 1; }
.chart .axis-t { fill: var(--ink-3); font-family: var(--font-ui); font-size: var(--fs-xs); }
.chart .bar.s1 { fill: var(--s1); }
.chart .bar.s2 { fill: var(--s2); }
.chart .bar.s3 { fill: var(--s3); }
.chart .bar.wolt { fill: var(--wolt); }
.chart .bar.glovo { fill: var(--glovo); }
.chart .hit { fill: transparent; }
.tip {
  position: absolute; top: var(--sp-1); z-index: 2; min-width: 180px; padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2);
  font-size: var(--fs-sm); transform: translateX(-50%); pointer-events: none;
}
.tip-h { margin-bottom: var(--sp-1); font-weight: var(--fw-semibold); }
.tip-r { display: flex; align-items: center; gap: var(--sp-2); padding: 1px 0; }
.tip-r .mono { margin-left: auto; padding-left: var(--sp-3); }
.sw { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 3px; }
.sw.s1 { background: var(--s1); }
.sw.s2 { background: var(--s2); }
.sw.s3 { background: var(--s3); }
.sw.wolt { background: var(--wolt); }
.sw.glovo { background: var(--glovo); }
.legend-table { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-6); padding-top: var(--sp-3); border-top: 1px solid var(--line); }
.lt-row { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); }
.lt-name { font-weight: var(--fw-semibold); }

.low-list { display: flex; flex-direction: column; padding: 0; list-style: none; }
.low-list li { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); }
.low-list li:last-child { border-bottom: 0; }

/* menu: dishes, modifier groups, products, semi-finished products */
.menu-table > tbody > tr > td:first-child { min-width: 220px; }
/* the prices in the table are read first: no box around each until the row is pointed at or the price is changed
   (159 dishes were a grid of boxes — the audit of 20 October) */
.menu-table > tbody > tr > td > .cell-input { border-color: transparent; background: transparent; }
.menu-table > tbody > tr:hover > td > .cell-input { border-color: var(--line-2); background: var(--surface); }
.menu-table > tbody > tr > td > .cell-input:focus { border-color: var(--accent); background: var(--surface); }
.menu-table > tbody > tr > .c-nodlv { text-align: center; }
.dish-note { margin: calc(-1 * var(--sp-1)) 0 0; }
.edit-cell { width: 1%; }
.wrap-cell { min-width: 200px; max-width: 360px; font-size: var(--fs-sm); color: var(--ink-2); }
.mods-table td:first-child { min-width: 160px; }
.plain-list { display: flex; flex-direction: column; padding: 0; list-style: none; }
.plain-list li { display: flex; align-items: center; gap: var(--sp-3); min-height: var(--h-md); padding: var(--sp-1) 0; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 0; }
.opt-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.opt-card { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-md); }
.opt-top { display: grid; grid-template-columns: 24px minmax(0, 1.3fr) minmax(0, 1fr) auto auto; align-items: center; gap: var(--sp-2); }
.opt-n { color: var(--ink-3); font-size: var(--fs-sm); font-weight: var(--fw-semibold); text-align: center; }
.cell-input.opt-name { width: 100%; text-align: left; }
.opt-price { display: flex; align-items: center; gap: var(--sp-1); }
.opt-price .cell-input { width: 80px; }
.opt-tools { display: flex; gap: 2px; }
.icon-gap { display: inline-block; width: var(--h-sm); }
.opt-note { padding-left: 32px; }
.opt-line { display: grid; grid-template-columns: 96px minmax(0, 320px) 80px 28px auto; align-items: center; gap: var(--sp-2); padding-left: 32px; }
.opt-line .opt-line-fill { grid-column: span 2; }
.opt-kind { color: var(--ink-3); font-size: var(--fs-sm); }
.opt-line .cell-input { width: 80px; }
.opt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-2); padding-left: 24px; }
.opt-cost { margin-left: auto; }
.tl-foot { padding: var(--sp-2) var(--sp-3) var(--sp-3); border-top: 1px solid var(--line); }

/* tech cards */
/* the list of dishes is as tall as the card beside it (its own height does not count: contain) and scrolls inside;
   never shorter than 420px */
/* (20 October: the list reaches the bottom of the screen and stays put while the editor scrolls — it was as short as an
   empty editor, six dishes of 159; a little wider, so a name keeps its line) */
.tech-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: start; gap: var(--sp-4); }
.tech-list { position: sticky; top: var(--sp-4); height: calc(100dvh - 190px); min-height: 420px; overflow: auto; }
.tl-none { padding: var(--sp-1) var(--sp-4) 0; }
/* the editor stretched to the list's height keeps its «Сохранить» at the bottom */
.tech-editor > .tech-actions { margin-top: auto; }
.tl-cat { padding: var(--sp-3) var(--sp-4) var(--sp-1); }
.tl-row {
  display: flex; align-items: center; gap: var(--sp-2); width: 100%; min-height: var(--h-md); padding: var(--sp-2) var(--sp-4);
  border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer;
}
.tl-row:hover { background: var(--surface-2); }
.tl-row.on { background: var(--accent-soft); }
.dot-edit { display: inline-block; width: 8px; height: 8px; margin-left: var(--sp-2); border-radius: 50%; background: var(--accent); vertical-align: 2px; }
.tech-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.tech-total { display: flex; align-items: baseline; gap: var(--sp-3); font-weight: var(--fw-semibold); }
.mod-effects ul { display: flex; flex-direction: column; gap: var(--sp-1); margin-top: var(--sp-2); padding-left: var(--sp-5); font-size: var(--fs-sm); }
.tech-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); padding-top: var(--sp-3); border-top: 1px solid var(--line); }
.tech-table th, .tech-table td { padding-left: var(--sp-2); padding-right: var(--sp-2); }
.tech-table td { vertical-align: top; }
.tech-table .select.sm { width: 100%; min-width: 140px; max-width: 220px; }
.tech-table .select.sm.stage-select { width: 132px; min-width: 0; }
.tech-table .cell-input { width: 72px; }
.tech-table .cell-input.short { width: 56px; }
.tech-table td:first-child { min-width: 150px; }
.tech-table td.cost { padding-top: var(--sp-5); }

/* forms */
.form-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.form-row .grow { flex: 1 1 220px; }
.form-row .field { flex: 1 1 140px; }
.form-table .select.sm { width: 100%; min-width: 200px; max-width: 340px; }
.form-section { display: flex; flex-direction: column; gap: var(--sp-2); }
.form-hint { font-size: var(--fs-sm); color: var(--ink-3); }

/* Wolt and Glovo, restaurants */
.int-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: stretch; gap: var(--sp-4); }
.int-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); }
.int-stats > div { display: flex; flex-direction: column; gap: var(--sp-1); min-width: 0; }
.int-stats .display { font-size: var(--fs-xl); }
.loc-card .int-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.int-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-top: auto; }
.ev-list { display: flex; flex-direction: column; padding: 0; list-style: none; }
.ev-list li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); }
.ev-list li:last-child { border-bottom: 0; }
.loc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--sp-4); }
.loc-dl { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-2) var(--sp-3); font-size: var(--fs-sm); }
.loc-dl dt { color: var(--ink-3); }
/* app.ruvo.ac: the restaurant's address and «Изменить» beside it (wrapping under it when long) */
.loc-address { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-1) var(--sp-3); min-width: 0; overflow-wrap: anywhere; }
.loc-address .link-btn { align-self: baseline; }

/* loyalty */
.toggle-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.kpi-row.compact .tile { padding: var(--sp-3); }
.kpi-row.compact .tile-v { font-size: var(--fs-xl); }
.adj-row { align-items: flex-end; }
.adj-row .field { flex: 0 1 140px; }
.adj-row .field.grow { flex: 1 1 200px; }
.cell-input.lv-name { width: 160px; text-align: left; }
.levels-table td { vertical-align: middle; }
.disc-table td:first-child { min-width: 180px; }
.disc-table .c-phone { display: none; }

/* «Рестораны»: a restaurant's own name, a field and its button on one line */
.loc-name { display: flex; align-items: flex-end; gap: var(--sp-2); }

/* «Сводка»: the dates on the right of the head; a change under each number */
.period { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.period .select { min-width: 220px; }
.period-dates { display: flex; align-items: center; gap: var(--sp-2); }
.period-dates input { width: 156px; height: var(--h-md); padding: 0 var(--sp-3); border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font-size: var(--fs-md); font-variant-numeric: tabular-nums; }
.period-dates input:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 3px var(--accent-soft); }
.tile-d { font-size: var(--fs-sm); white-space: nowrap; }
/* six numbers: three to a row, all six on a wide screen, two on a phone */
.summary .kpi-row { --cols: 3; }
@media (min-width: 1500px) { .summary .kpi-row { --cols: 6; } }
@media (max-width: 640px) { .period .select { min-width: 0; } }
/* a dish's photo in its editor: the picture, then upload / remove */
.dish-photo { display: flex; align-items: center; gap: var(--sp-4); }
.dish-photo-img { display: grid; flex: none; place-items: center; width: 112px; height: 112px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: #F5F7FA; }
.dish-photo-img img { width: 100%; height: 100%; object-fit: cover; }
.dish-photo-img .dish-art { width: 92%; height: 92%; }
.dish-photo-img .dish-photo-none { padding: 0 8px; color: #5D6370; text-align: center; } /* (the box is light in both themes) */
.dish-photo-act { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); min-width: 0; }
.file-btn { position: relative; cursor: pointer; }
.file-btn input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-btn:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
/* «Рестораны» → «Устройства»: grouped by restaurant, who is online, a code for a new device, moving one */
.devices .card-head { flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); }
.dev-table tr.off td { color: var(--ink-3); }
/* a restaurant's row opens its group: its name in body text, not a column caption; a line between groups */
.dev-table tbody.dev-group + tbody.dev-group { border-top: 1px solid var(--line); }
.dev-table .dev-loc th, .dev-table .dev-loc td { padding-top: var(--sp-4); background: var(--surface); }
.dev-table .dev-loc th { color: var(--ink-2); font-size: var(--fs-md); font-weight: var(--fw-regular); letter-spacing: 0; text-transform: none; }
.dev-loc-name { color: var(--ink); font-weight: var(--fw-semibold); }
.dev-loc-n::before { content: ' · '; }
.dev-table .dev-row td:first-child { padding-left: var(--sp-4); }
/* the restaurant and its devices read as one block: no line under the name */
.dev-table .dev-loc.has th, .dev-table .dev-loc.has td { padding-bottom: var(--sp-1); border-bottom: 0; }
.dev-acts { display: inline-flex; justify-content: flex-end; gap: var(--sp-1); }
.dev-name { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.dev-name:hover .strong { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.dev-me { margin-left: var(--sp-2); }
.dev-st { display: inline-flex; align-items: center; gap: var(--sp-2); white-space: nowrap; }
.dev-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.dev-on .dev-dot { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.dev-off .dev-dot { background: var(--bad); }
.pair-code { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); padding: var(--sp-4); border-radius: var(--r-lg); background: var(--surface-2); }
.pair-digits { font-size: var(--fs-3xl); font-weight: var(--fw-bold); letter-spacing: 0.08em; }
.pair-steps { margin: var(--sp-2) 0 0; padding-left: var(--sp-5); color: var(--ink-2); line-height: var(--lh-loose); }
.pair-done { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); padding: var(--sp-4); border-radius: var(--r-lg); background: var(--surface-2); }
.pair-ok { color: var(--ok); font-weight: var(--fw-semibold); }

/* ---------- «Интеграции» ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.check-box { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.check-box:disabled { cursor: default; }
/* Wolt и Glovo: the road to the API */
/* «Все интеграции»: one list per kind; the icon, the status and the button keep their own columns on every row
   of every list, so the statuses stand in one line down the page */
.ig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); align-items: stretch; gap: var(--sp-4); }
/* the four kinds — all, on, off, planned: on a phone on two lines, not «Выключены» cut and «В планах» behind the edge */
@media (max-width: 700px) { .ig-kinds { flex-wrap: wrap; overflow: visible; } }
/* the action log's groups (app.ruvo.ac): six of them — on a phone in rows, none behind the edge */
@media (max-width: 1000px) { .log-groups { flex-wrap: wrap; overflow: visible; } }
.ig-card {
  display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; padding: var(--sp-5);
  border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface);
}
.ig-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); }
/* the icon takes its category's colour: guests blue, payment green, staff teal, money gold, marketing purple */
.ig-ic { display: grid; flex: none; place-items: center; width: 52px; height: 52px; border-radius: var(--r-lg); background: var(--surface-2); color: var(--ink-2); }
.ig-ic.t-blue { background: var(--accent-soft); color: var(--accent); }
.ig-ic.t-green { background: var(--ok-soft); color: var(--ok); }
.ig-ic.t-teal { background: var(--s2-soft); color: var(--s2); }
.ig-ic.t-gold { background: var(--s3-soft); color: var(--s3); }
.ig-ic.wolt { background: var(--wolt); color: var(--wolt-ink); }
.ig-ic.glovo { background: var(--glovo); color: var(--glovo-ink); }
.ig-ic.t-purple { background: var(--bill-soft); color: var(--bill); }
.ig-tag { padding-top: var(--sp-1); color: var(--ink-3); font-size: var(--fs-sm); font-weight: var(--fw-semibold); white-space: nowrap; }
.ig-title { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; }
.ig-name { font-size: var(--fs-lg); font-weight: var(--fw-semibold); line-height: var(--lh-tight); }
.ig-text { color: var(--ink-2); }
.ig-limit { display: flex; align-items: flex-start; gap: var(--sp-2); color: var(--warn); font-size: var(--fs-sm); }
.ig-limit .ic { flex: none; margin-top: 2px; }
/* the switch (or the plan) and the button, on one line at the bottom of every card */
.ig-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2);
  min-height: calc(var(--h-sm) + var(--sp-3) + 1px); margin-top: auto; padding-top: var(--sp-3); border-top: 1px solid var(--line);
}
.api-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--sp-4); }
.api-col { display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; }
/* (3 November, the lines both ways) the steps of Wolt and of Glovo side by side share their rows: the two columns are
   one grid (subgrid), a step as tall as the taller of the pair — a step without a hint, or of fewer lines on a narrow
   screen, had ended 13–20 px above its neighbour */
@supports (grid-template-rows: subgrid) {
  .api-grid { row-gap: 0; }
  .api-col { display: grid; grid-row: span 7; grid-template-rows: subgrid; gap: 0; }
  .api-col > .check-list { display: contents; }
  .api-col > .api-col-head { margin-bottom: var(--sp-3); }
  .api-col > .api-id { margin-top: var(--sp-3); }
}
.api-col-head { display: flex; align-items: center; gap: var(--sp-2); min-height: var(--h-sm); }
.api-col-head .muted { margin-left: auto; }
.api-id { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-2); }
/* Telegram: settings on the left, the message on the right */
.tg-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); align-items: start; gap: var(--of-gap); }
.tg-col { display: flex; flex-direction: column; gap: var(--of-gap); min-width: 0; }
.tg-on { min-height: var(--of-row); }
.tg-steps { display: flex; flex-direction: column; gap: var(--sp-2); margin: 0; padding-left: 1.3em; color: var(--ink-2); }
.tg-steps b { color: var(--ink); }
.tg-preview { position: sticky; top: var(--of-top); }
.tg-chat { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); }
.tg-chat-head { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--line); background: var(--surface); }
.tg-ava {
  display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink, #fff);
}
.tg-who { display: flex; flex-direction: column; line-height: 1.25; }
.tg-chat-body {
  padding: var(--sp-4) var(--sp-3); background-color: var(--accent-soft);
  background-image: radial-gradient(circle, color-mix(in srgb, var(--accent) 14%, transparent) 1px, transparent 1.5px); background-size: 18px 18px;
}
.tg-msg {
  position: relative; max-width: 100%; padding: var(--sp-3) var(--sp-3) var(--sp-5); border-radius: 14px 14px 14px 4px;
  background: var(--surface); box-shadow: var(--shadow-1); color: var(--ink); font-size: var(--fs-sm); line-height: 20px; overflow-wrap: anywhere;
}
.tg-b { font-weight: var(--fw-semibold); }
.tg-gap { height: 10px; }
.tg-time { position: absolute; right: var(--sp-3); bottom: 6px; color: var(--ink-3); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.tg-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2); }
/* app.ruvo.ac: the bot on the server — who it is, the chat, the «/start» code */
.tg-bot { display: flex; flex-direction: column; gap: var(--sp-2); }
.tg-bot p { margin: 0; }
.tg-bot-acts { flex-wrap: wrap; align-items: center; }
.tg-code { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3); border: 1px dashed var(--line); border-radius: var(--r-lg); background: var(--surface-2); }
.tg-code-text { font-size: var(--fs-2xl); letter-spacing: .02em; }
@media (max-width: 1100px) {
  .tg-grid { grid-template-columns: minmax(0, 1fr); }
  .tg-preview { position: static; }
}

/* ---------- «Перенос из POS» ---------- */
.mg-steps { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); margin: 0; padding: 0; list-style: none; color: var(--ink-3); font-weight: var(--fw-semibold); }
.mg-steps li { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 28px; }
.mg-step-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1.5px solid currentColor; border-radius: 50%; font-size: var(--fs-xs); }
.mg-steps li.now { color: var(--accent); }
.mg-steps li.now .mg-step-n { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.mg-steps li.past { color: var(--ink-2); }
.mg-hint { max-width: 72ch; margin: 0; }
.mg-drop {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-2); min-height: 150px; padding: var(--sp-5);
  border: 2px dashed var(--line-2); border-radius: var(--r-lg); background: var(--surface-2); color: var(--ink-2); text-align: center; cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.mg-drop:hover, .mg-drop.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.mg-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.mg-drop:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.mg-sample { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--sp-3); }
.mg-errs { margin: 0; padding-left: 1.2em; color: var(--bad); font-size: var(--fs-sm); }
.mg-files { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.mg-files li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); min-height: var(--h-md); padding: var(--sp-1) 0; border-bottom: 1px solid var(--line); }
.mg-files li:last-child { border-bottom: 0; }
.mg-files .grow { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); min-width: 0; }
.mg-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--sp-3); min-height: var(--of-row); }
.mg-foot > .muted { margin-right: auto; }
.mg-status { display: flex; align-items: flex-start; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-lg); background: var(--accent-soft); color: var(--ink); }
.mg-status.warn { background: var(--warn-soft); }
.mg-status svg { flex: none; margin-top: 2px; }
.mg-tables { display: flex; flex-direction: column; gap: var(--sp-3); }
.mg-table { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-lg); }
.mg-table-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); }
.mg-table-head .grow { min-width: 200px; }
.mg-table-head .mg-kind { flex: 0 0 240px; width: 240px; }
.mg-sum .tile-d { white-space: normal; }
.mg-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--sp-2) var(--sp-5); }
.mg-map-row { display: grid; grid-template-columns: minmax(120px, 0.9fr) minmax(140px, 1fr); grid-template-rows: auto auto; align-items: center; gap: 2px var(--sp-3); }
.mg-map-f { font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.mg-map-ex { grid-column: 2; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mg-map-row.missing .mg-map-f, .mg-map-row.missing .mg-map-ex { color: var(--bad); }
.req { color: var(--bad); }
.mg-cats { display: flex; flex-direction: column; gap: var(--sp-2); }
.mg-cat { display: grid; grid-template-columns: minmax(160px, 1fr) auto minmax(180px, 1fr) minmax(160px, 1fr); align-items: center; gap: var(--sp-3); }
.mg-cat > svg { color: var(--ink-3); }
.mg-cat-name { min-height: var(--h-sm); padding: 0 var(--sp-3); border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font: inherit; }
.mg-cat-name:focus { border-color: var(--accent); outline: 0; }
.mg-issues { display: flex; flex-direction: column; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.mg-issues li { display: flex; align-items: flex-start; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--ink-2); }
.mg-issues li svg { flex: none; margin-top: 2px; color: var(--ink-3); }
.mg-issues li.warn { color: var(--ink); }
.mg-issues li.warn svg { color: var(--warn); }
.mg-err { padding: var(--sp-3) var(--sp-4); border-radius: var(--r-lg); background: var(--bad-soft); color: var(--bad); }
.mg-prev td { vertical-align: top; }
.mg-history { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.mg-history li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
.mg-history li:last-child { border-bottom: 0; }
.mg-history li.undone { color: var(--ink-3); }
@media (max-width: 720px) {
  .mg-cat { grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--line); }
  .mg-cat > svg { display: none; }
  .mg-map { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- «Папки меню» ---------- */
.link-btn { align-self: flex-start; padding: 0; border: 0; background: none; color: var(--accent); font-size: var(--fs-sm); font-weight: var(--fw-semibold); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.new-folder { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.new-folder input { flex: 1 1 160px; min-width: 0; }
.folder-add { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-2); }
.folders { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--r-md); }
.folder { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "names act" "n act"; align-items: center; gap: var(--sp-1) var(--sp-3); padding: var(--sp-3); border-bottom: 1px solid var(--line); }
.folder:last-child { border-bottom: 0; }
.folder-names { grid-area: names; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-2); }
.folder-names input {
  min-width: 0; min-height: var(--h-sm); padding: 0 var(--sp-3); border: 1px solid var(--line-2); border-radius: var(--r-md);
  background: var(--surface); color: var(--ink); font: inherit; font-size: var(--fs-md);
}
.folder-names input:first-child { font-weight: var(--fw-semibold); }
.folder-names input:focus { border-color: var(--accent); outline: 0; }
.folder-n { grid-area: n; }
.folder-act { grid-area: act; display: flex; gap: 2px; }

/* ---------- «Все интеграции»: module switches and settings ---------- */
.ig-switch { gap: var(--sp-2); }
.ig-card.is-off .ig-ic { opacity: 0.55; }
/* a partner's own logo: on white in both themes, the logo's colours as they are */
.ig-ic.ig-logo { border: 1px solid var(--line); background: #FFFFFF; }
.ig-ic.ig-logo img { width: 36px; height: 36px; object-fit: contain; }
.ig-card.is-off .ig-name { color: var(--ink-2); }
.ips-preview { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: var(--sp-3); padding: var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); }
.ips-preview .qr { padding: 6px; background: #fff; border-radius: var(--r-md); }
.ips-preview-text { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.ips-code { font-size: var(--fs-xs); line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.term-port { flex: 0 0 120px; }

/* ---------- «Смены и зарплата» ---------- */
.sh-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: var(--of-row); }
.sh-bar .select { width: auto; min-width: 200px; }
.sh-now { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.sh-now li { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) 0; }
.sh-now li + li { border-top: 1px solid var(--line); }
.sh-now-who { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.sh-who { display: flex; flex-direction: column; gap: 2px; white-space: nowrap; }
.sh-table th.is-today { color: var(--accent); }
.sh-cell {
  min-width: 52px; min-height: var(--h-sm); padding: 0 var(--sp-2); border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); color: var(--ink); font: inherit; font-variant-numeric: tabular-nums; cursor: pointer;
}
.sh-cell:hover { border-color: var(--accent); }
.sh-cell.open { border-color: var(--ok); color: var(--ok); font-weight: var(--fw-semibold); }
.sh-cell.edited { border-style: dashed; }
.sh-cell.stale { border-color: var(--bad); background: var(--bad-soft); color: var(--bad); font-weight: var(--fw-semibold); }
.sh-demo { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.sh-pay tfoot td { padding: var(--sp-3); border-top: 1px solid var(--line-2); font-weight: var(--fw-semibold); }
.card.flush .sh-pay tfoot td:first-child { padding-left: var(--sp-4); }
.card.flush .sh-pay tfoot td:last-child { padding-right: var(--sp-4); }
.field-static { display: flex; align-items: center; min-height: var(--h-md); color: var(--ink-2); }

/* «Рабочий день» in «Рестораны»: the hour the day ends, and the day going on now */
.day-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-2) var(--sp-4); }
.day-field { width: min(100%, 280px); }
.day-now { margin: 0 0 var(--sp-3); }

/* textareas in forms look like the inputs */
.field textarea {
  min-width: 0; min-height: calc(var(--h-md) * 1.6); padding: var(--sp-2) var(--sp-3); resize: vertical;
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); color: var(--ink);
  font-size: var(--fs-md); line-height: var(--lh-base);
}
.field textarea:focus { border-color: var(--accent); outline: 0; }
/* allergens: the chips of the fourteen; those from the tech card are on by themselves */
.alg-chips .chip { gap: var(--sp-1); padding: 0 var(--sp-3); }
.alg-chips .chip.auto { background: var(--ink-2); border-color: var(--ink-2); color: var(--surface); cursor: default; opacity: 1; }


/* «Сводка» → «Скорость кухни» (kitchen.js) */
.sp-row { display: flex; flex-direction: column; gap: var(--sp-2); }
.sp-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-2) var(--sp-3); }
.sp-v { font-size: var(--fs-2xl); }
.sp-st, .sp-late { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.sp-chip { padding: 4px 10px; border-radius: var(--r-pill); background: var(--surface-2); font-size: var(--fs-sm); }
.dish-norm { width: 140px; flex: none; }

/* «Оценки гостей»: the guests' ratings from the guest app (office-ratings.jsx) */
.of-sub-btn[data-badge]::after {
  content: attr(data-badge); min-width: 18px; height: 18px; margin-left: auto; padding: 0 5px; border-radius: var(--r-pill);
  background: var(--warn); color: var(--warn-ink); font-size: 11px; font-weight: var(--fw-bold); line-height: 18px; text-align: center; font-variant-numeric: tabular-nums;
}
.of-subbar .of-sub-btn[data-badge]::after { margin-left: var(--sp-2); }
.tile-warn { box-shadow: inset 0 0 0 1.5px var(--warn); }
.rt-star { color: var(--star); font-size: 0.7em; }
.rt-list { margin: 0; padding: 0; list-style: none; }
.rt-row { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); padding: var(--sp-4); border-top: 1px solid var(--line); }
.rt-row.open { box-shadow: inset 4px 0 0 var(--bad); background: color-mix(in srgb, var(--bad-soft) 45%, transparent); }
.rt-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); width: 100%; }
.rt-stars { color: var(--star); font-size: var(--fs-xl); font-weight: var(--fw-bold); letter-spacing: 1px; line-height: 1; white-space: nowrap; }
.rt-stars.low { color: var(--bad); }
.rt-where { flex: 1; min-width: 12rem; }
.rt-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rt-tag { padding: 2px 10px; border-radius: var(--r-pill); background: var(--bad-soft); color: var(--bad); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.rt-tag.good { background: var(--ok-soft); color: var(--ok); }
.rt-text { max-width: 70ch; margin: 0; padding: var(--sp-2) var(--sp-3); border-radius: var(--r-md); background: var(--surface-2); line-height: 1.45; white-space: pre-wrap; }
.rt-facts { display: flex; flex-wrap: wrap; gap: 4px var(--sp-4); font-size: var(--fs-sm); }
.rt-facts b { color: var(--ink); font-weight: var(--fw-semibold); }
.rt-facts b.bad-txt { color: var(--bad); }
.rt-facts b.ok-txt { color: var(--ok); }
.rt-done { margin: 0; font-size: var(--fs-sm); }
.rt-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-2) var(--sp-3); width: 100%; }
.rt-form .field { min-width: min(100%, 18rem); margin: 0; }
.rt-people .rt-avg { min-width: 4.5em; font-weight: var(--fw-semibold); text-align: right; font-variant-numeric: tabular-nums; }

/* «Купоны»: the two campaigns and the coupons issued (office-coupons.jsx) */
.cp-cols { align-items: start; }
.cp-card { display: flex; flex-direction: column; gap: var(--sp-3); }
.cp-card > .muted { margin: 0; font-size: var(--fs-sm); line-height: 1.45; }
/* the fields stand on one line: a label of two lines lifts its own label, not the field */
.cp-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); align-items: end; gap: var(--sp-2) var(--sp-3); }
.cp-fields .field { margin: 0; }
.cp-fields input { max-width: 8rem; }
.cp-save { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.cp-list li { min-height: var(--h-sm); }
.cp-msg { display: flex; flex-direction: column; gap: var(--sp-1); }
.cp-msg p { margin: 0; }
.cp-bubble { max-width: 46ch; padding: var(--sp-2) var(--sp-3); border-radius: 16px 16px 16px 4px; background: var(--accent-soft); color: var(--ink); line-height: 1.45; }
.cp-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); margin-top: auto; padding-top: var(--sp-2); border-top: 1px solid var(--line); }
.cp-table td { vertical-align: top; }

/* «Прогноз»: the day ahead (office-forecast.jsx) */
.fc-sub { margin: calc(-1 * var(--sp-2)) 0 0; font-size: var(--fs-sm); }
.fc-holiday { display: flex; align-items: flex-start; gap: var(--sp-2); margin: 0; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); background: var(--warn-soft); color: var(--ink); line-height: 1.45; }
.fc-holiday .ic { flex: none; margin-top: 2px; color: var(--warn); }
.fc-live { display: flex; align-items: center; gap: var(--sp-2); margin: 0; font-size: var(--fs-sm); }
.fc-live b { color: var(--ink); }
.fc-events .fc-ask { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--sp-2) var(--sp-3); }
.fc-events textarea { flex: 1 1 22rem; box-sizing: border-box; min-height: var(--h-md); max-height: 12rem; padding: 10px var(--sp-3); border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font: inherit; line-height: 22px; resize: none; overflow-y: auto; }
.fc-events textarea:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 3px var(--accent-soft); }
.fc-ask-btns { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.fc-adj { display: flex; flex-direction: column; gap: 6px; margin: var(--sp-3) 0 0; padding: 0; list-style: none; }
.fc-adj-row { display: flex; align-items: center; gap: var(--sp-2); min-height: var(--h-sm); padding: 2px 4px 2px var(--sp-3); border-radius: var(--r-md); background: var(--accent-soft); }
.fc-adj-row > .ic { flex: none; color: var(--accent); }
.fc-via { margin: var(--sp-2) 0 0; }
.fc-legend { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: var(--fs-sm); }
.fc-legend .sw + .sw, .fc-legend .sw:not(:first-child) { margin-left: var(--sp-2); }
.chart .fc-base { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 2; opacity: 0.55; }
.fc-staff th, .fc-staff td { padding-right: var(--sp-2); padding-left: var(--sp-2); }
.fc-staff td.fc-more { color: var(--accent); font-weight: var(--fw-bold); }
.fc-staff .fc-over { background: var(--bad-soft); color: var(--bad); }
.fc-warn { display: flex; align-items: flex-start; gap: var(--sp-2); margin: 0; color: var(--bad); font-size: var(--fs-sm); line-height: 1.45; }
.fc-warn .ic { flex: none; margin-top: 2px; }
.fc-set { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-2) var(--sp-3); border-top: 1px solid var(--line); }
.fc-set .field { margin: 0; }
.fc-set input { max-width: 7rem; }
.fc-gap { margin-top: var(--sp-3); }
.fc-dishes, .fc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 0 var(--sp-5); margin: 0; padding: 0; list-style: none; }
.fc-dishes li, .fc-grid li { display: flex; align-items: center; gap: var(--sp-3); min-height: var(--h-sm); border-bottom: 1px solid var(--line); }
.fc-dishes li .mono.strong { min-width: 2.5em; text-align: right; }
.fc-dishes li .small { min-width: 4.5em; text-align: right; }
.fc-explain p { max-width: 80ch; margin: 0; line-height: 1.55; }
.fc-explain .fc-ai { margin-top: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); background: var(--accent-soft); white-space: pre-wrap; }
.fc-order tfoot td { border-top: 1px solid var(--line-2); }

/* app.ruvo.ac «Перенос из Quick Resto» (server 0.17): what comes, the plan's restaurant, what came */
.qr-notes { display: flex; flex-direction: column; gap: var(--sp-2); margin: 0; padding-left: 1.2em; }
.qr-notes li { overflow-wrap: anywhere; }
.qr-replace { padding: var(--sp-3) 0 0; border: 0; gap: var(--sp-2); align-items: flex-start; }
.qr-replace > span { min-width: 0; overflow-wrap: anywhere; }
.qr-plan { max-width: 420px; margin-top: var(--sp-4); }
.qr-done { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--sp-3); }
.qr-done > div { display: flex; flex-direction: column; gap: 2px; flex: 1 1 240px; min-width: 0; }

/* «Цены в доставке — как в зале» above the dishes (server 0.18) */
.dlv-card { padding: 0; }
.dlv-card .check-row { padding: var(--sp-3) var(--sp-4); }

/* Lists switched by a folder, a tab or a search keep their columns in place: each column its own width, the first takes
   the rest (the owner, 20 October: «Столбцы должны быть одинаковыми при переключении между папками — по ширине»). On a
   phone «Блюда» is a list of cards (90-responsive.css). */
@media (min-width: 641px) {
  .menu-table, .sef-table, .log-table, .stock-list, .ings-table { table-layout: fixed; min-width: 860px; }
  /* (the widths grow with the screen, between what a column needs and what is enough: at 1180 px the first column
     keeps 230 px or so, on a wide screen the rest) */
  /* (by the column's kind, 2 November: Wolt and Glovo are there only once a dish has a price of its own there) */
  .menu-table th.c-st { width: clamp(84px, 7vw, 110px); }
  .menu-table th.c-price { width: clamp(100px, 8vw, 128px); }
  .menu-table th.c-cost { width: clamp(110px, 9vw, 150px); }
  .menu-table th.c-fc { width: clamp(100px, 8vw, 130px); }
  .menu-table > tbody > tr > td > .cell-input { width: 100%; max-width: 96px; }
  .sef-table th:nth-child(2) { width: clamp(140px, 12vw, 190px); }
  .sef-table th:nth-child(3) { width: clamp(140px, 13vw, 220px); }
  .sef-table th:nth-child(4) { width: clamp(110px, 9vw, 150px); }
  .sef-table th:nth-child(5) { width: clamp(150px, 12vw, 210px); }
  .sef-table th:nth-child(6) { width: clamp(130px, 10vw, 170px); }
  .log-table th:nth-child(1) { width: clamp(130px, 9vw, 150px); }
  .log-table th:nth-child(2) { width: clamp(150px, 12vw, 200px); }
  .log-table th:nth-child(4) { width: clamp(150px, 11vw, 190px); }
  .log-table th:nth-child(5) { width: clamp(130px, 10vw, 170px); }
  .log-table th:nth-child(6) { width: clamp(90px, 7vw, 120px); }
  .stock-list th:nth-child(2) { width: clamp(110px, 9vw, 140px); }
  .stock-list th:nth-child(3) { width: clamp(90px, 7vw, 120px); }
  .stock-list th:nth-child(4) { width: clamp(120px, 10vw, 170px); }
  .stock-list th:nth-child(5) { width: clamp(130px, 10vw, 160px); }
  .stock-list th:nth-child(6) { width: clamp(140px, 10vw, 170px); }
  /* (2 November: one price — the average per restaurant is the stock's — and no pencils; 9 November: the group's column,
     second since the stocktake by groups, had the unit's 64 px — «Овощи и фрукты» broke into letters) */
  .ings-table th:nth-child(2) { width: clamp(130px, 11vw, 180px); }
  .ings-table th:nth-child(3) { width: 64px; }
  .ings-table th:nth-child(4) { width: clamp(100px, 8vw, 130px); }
  .ings-table th:nth-child(5) { width: clamp(90px, 7vw, 120px); }
  .ings-table th:nth-child(6) { width: clamp(160px, 15vw, 260px); }
  .ings-table th:nth-child(7) { width: clamp(96px, 8vw, 130px); }
  /* (in a fixed table a long name or tag wraps inside its column instead of widening it; a long head — at its spaces) */
  .menu-table > tbody > tr > td, .sef-table td, .log-table td, .stock-list td, .ings-table td { overflow-wrap: anywhere; }
  .menu-table > thead > tr > th, .sef-table th, .log-table th, .stock-list th, .ings-table th { white-space: normal; vertical-align: bottom; }
  .log-table td:first-child { white-space: nowrap; }
}

/* «Приём заказов по API» (server 0.29): a restaurant's Wolt and Glovo links */
.pl-col { display: flex; flex-direction: column; gap: var(--sp-3); }
.pl-col .api-col-head .st { margin-left: auto; }
.pl-note { margin: 0; color: var(--ink-2); }
.pl-form { display: flex; flex-direction: column; gap: var(--sp-3); }
.pl-on { align-self: flex-start; }
.pl-last, .pl-err, .pl-id { margin: 0; }
.pl-id { overflow-wrap: anywhere; }
.pl-id .as-link { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; cursor: pointer; text-align: left; }
.pl-hook { display: inline; overflow-wrap: anywhere; }
.pl-hook svg { vertical-align: -2px; margin-right: 3px; }

/* «Настройки» → «Валюта» (ui/office-currency.jsx): the currency and how the front writes it */
/* (2 November: a card of «Рестораны» beside the working day — its two choices on one line, as the day's) */
.cur-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-3) var(--sp-5); }
.cur-card .field { display: flex; flex-direction: column; gap: var(--sp-1); }
.cur-card .field:first-child { width: min(100%, 280px); }
.cur-card .seg { align-self: flex-start; }
.cur-now { margin: 0; }
/* (2 November, Б) the forecast's norms as a card of «Рестораны» */
.fc-norms .fc-set { padding: 0; border-top: 0; }
.tech-fc { font-size: var(--fs-md); font-weight: var(--fw-semibold); }

/* «Сайт для заказов» (server 0.78): the page's cards, its two pictures with their previews, the address after its
   «order.ruvo.ac/», the orders' table */
.site-slug { display: flex; align-items: center; gap: var(--sp-1); }
.site-slug input { flex: 1; min-width: 0; }
.site-pic-box { display: grid; place-items: center; min-height: 0; padding: var(--sp-3); background: var(--surface-2); }
.site-pic-logo .site-pic-box img { max-width: 100%; max-height: 80px; }
/* the main picture in the frame the site shows it in (3 : 1, cut evenly at its edges): what the owner sees is what a
   guest sees (9 November: the picture sat low in a 16 : 6 box, its top cut — «Странно смотрится») */
.site-pic-size { color: var(--ink-3); font-size: 13px; line-height: 18px; }
.site-pic-hero .site-pic-box { position: relative; display: block; flex: none; padding: 0; aspect-ratio: 3 / 1; min-height: 0; overflow: hidden; }
.site-pic-hero .site-pic-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.site-pic-hero .site-pic-box > span { position: absolute; inset: 0; display: grid; place-items: center; }
.site-period { margin-bottom: var(--sp-4); }
.site-kpis { margin-bottom: var(--sp-4); }
.site-table td { vertical-align: top; }
.site-refund { display: block; }

/* (server 0.79) «Инвентаризация» by groups and at the shelf from a phone: the groups as chips, a group's name before its
   products, the difference under the product's name on a phone (its columns hidden there), the inputs large enough to
   type into without the page zooming */
.grp-chips { margin: 0 0 var(--sp-3); }
.card-head .grp-chips { margin: var(--sp-3) 0 0; }
.count-note { margin: 0 0 var(--sp-3); }
.count-table .count-grp th { text-align: left; background: var(--bg); color: var(--ink-2); font-weight: var(--fw-semibold); }
.count-table .count-diff { display: none; }
@media (max-width: 640px) {
  .count-table th:nth-child(4), .count-table td:nth-child(4), .count-table th:nth-child(5), .count-table td:nth-child(5) { display: none; }
  .count-table .count-grp th { display: table-cell; }
  .count-table .count-diff { display: block; }
  .front-look .tbl-data.count-table th, .front-look .tbl-data.count-table td, .tbl-data.count-table th, .tbl-data.count-table td { padding-left: 6px; padding-right: 6px; }
  .tbl-data.count-table td:nth-child(3) { white-space: nowrap; }
  .count-table .cell-input { width: 80px; font-size: 16px; min-height: 44px; }
  /* (the audit of 9 November: at 390 points the table was 53 wider than the sheet — «Факт» cut at the edge) the columns
     sized to the sheet: the product's name takes what is left and wraps, «on record» wraps under itself (an automatic
     layout: a fixed one keeps room for the hidden columns, which the group's row spans) */
  .tbl-data.count-table { width: 100%; }
  .tbl-data.count-table th:nth-child(2), .tbl-data.count-table td:nth-child(2) { width: 84px; white-space: normal; }
  .tbl-data.count-table th:nth-child(3), .tbl-data.count-table td:nth-child(3) { width: 112px; }
  .tbl-data.count-table td:first-child { overflow-wrap: anywhere; }
  .count-table .cell-input { width: 64px; }
}

/* (server 0.80) «Возврат поставщику»: the receipt's supplier above its lines; a receipt's returns and a return's receipt
   as links in their sheets; on a phone the amount's column goes (the footer sums it) and the cells come closer */
.ret-of { margin: 0; }
.doc-links { margin: 0 0 var(--sp-3); }
.doc-links .link-btn { font-size: inherit; }
.ret-table .ret-came { display: none; }
@media (max-width: 640px) {
  .ret-table th:nth-child(2), .ret-table td:nth-child(2), .ret-table th:nth-child(5), .ret-table td:nth-child(5) { display: none; }
  .ret-table .ret-came { display: block; }
  .front-look .tbl-data.ret-table th, .front-look .tbl-data.ret-table td, .tbl-data.ret-table th, .tbl-data.ret-table td { padding-left: 6px; padding-right: 6px; }
  .tbl-data.ret-table td:nth-child(3) { white-space: nowrap; }
  .ret-table .cell-input { width: 72px; font-size: 16px; }
}
/* (server 0.86) the transfer's form: on a phone what is here and its average go under the product's name */
.move-table .move-here { display: none; }
@media (max-width: 640px) {
  .move-table th:nth-child(2), .move-table td:nth-child(2), .move-table th:nth-child(4), .move-table td:nth-child(4), .move-table th:nth-child(5), .move-table td:nth-child(5) { display: none; }
  .move-table .move-here { display: block; }
  .front-look .tbl-data.move-table th, .front-look .tbl-data.move-table td, .tbl-data.move-table th, .tbl-data.move-table td { padding-left: 6px; padding-right: 6px; }
  .tbl-data.move-table td:nth-child(3) { white-space: nowrap; }
  .move-table .cell-input { width: 64px; font-size: 16px; }
  /* (the product's cell takes what the row leaves, and no more: «Выберите продукт» pushed the row past the sheet — its
     select cut short instead) */
  .move-table td:first-child { width: 100%; max-width: 0; }
  .move-table td:first-child .select { width: 100%; min-width: 0; }
  .move-table td:nth-child(3) .muted { display: none; } /* (the unit: said under the name) */
}

/* «Фото пачкой» (9 November): a file a row — its picture, its name, the dish it goes to, how it went */
.bulk-count { margin: var(--sp-4) 0 0; }
.bulk-list { display: grid; gap: var(--sp-2); margin: var(--sp-2) 0 0; padding: 0; list-style: none; }
.bulk-row { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: var(--sp-3); padding: var(--sp-2); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.bulk-row.none { border-color: var(--warn); }
.bulk-row.ok { background: var(--surface-2); }
.bulk-row.fail { border-color: var(--bad); }
.bulk-thumb { display: block; width: 64px; height: 64px; overflow: hidden; border-radius: var(--r-md); background: #F5F7FA; }
.bulk-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bulk-main { display: grid; gap: 4px; min-width: 0; }
.bulk-file { overflow: hidden; color: var(--ink-2); text-overflow: ellipsis; white-space: nowrap; }
.bulk-state { min-height: 1.2em; color: var(--ink-2); }
.bulk-row.ok .bulk-state { color: var(--ok); }
.bulk-row.fail .bulk-state { color: var(--bad); }

/* ---------- the week's shift schedule: «Смены и зарплата» → «График» (ui/office-schedule.jsx), the late mark in the
   timesheet, today's plan on the iPad's shift screen, «Мои смены» on the waiter's iPhone ---------- */
.sc-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-4); min-height: var(--of-row); }
.sc-week { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1); min-width: 0; }
.sc-week .icon-btn { border: 1px solid var(--line-2); background: var(--surface); }
.sc-week .icon-btn:disabled { opacity: 0.4; cursor: default; }
.sc-week-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 0 var(--sp-2); }
.sc-week-t b { font-size: var(--fs-lg); font-weight: var(--fw-semibold); line-height: var(--lh-tight); }
.sc-bar .st { white-space: normal; }
.sc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.sc-note { display: flex; align-items: center; gap: var(--sp-2); margin: 0; }
.sc-note .ic { flex: none; }

/* the grid: people by role down, days across; it scrolls inside its card on a narrow screen, the names stay */
.sc-table { min-width: 720px; table-layout: fixed; }
.sc-table .sc-who { width: 136px; }
.sc-table .sc-sum { width: 72px; }
.sc-table thead th.sc-day { padding-left: 2px; padding-right: 2px; text-align: center; }
.sc-table thead th.is-today { color: var(--accent); }
.sc-table thead th.is-past { color: var(--ghost); }
.sc-table .sc-who { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.sc-table tbody th.sc-who {
  padding-top: var(--sp-1); padding-bottom: var(--sp-1); text-align: left; text-transform: none; letter-spacing: 0;
  font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--ink); line-height: var(--lh-tight);
}
.sc-table tbody th.sc-who .muted { display: block; font-weight: var(--fw-regular); }
.sc-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-table .sc-td { padding: 3px 2px; }
.sc-table .sc-td.is-today { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.sc-group-h th { padding-top: var(--sp-2); padding-bottom: var(--sp-2); background: var(--surface-2); text-align: left; }
.sc-stick { position: sticky; left: var(--sp-4); }
.sc-group-h .muted { text-transform: none; letter-spacing: 0; font-weight: var(--fw-regular); }

.sc-cell {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 100%; min-height: var(--h-md);
  padding: 3px var(--sp-1); border: 1px solid transparent; border-radius: var(--r-sm); background: transparent; color: var(--ink);
  font: inherit; font-size: var(--fs-sm); line-height: var(--lh-tight); text-align: center; font-variant-numeric: tabular-nums;
}
button.sc-cell { cursor: pointer; }
.sc-cell.has { background: var(--accent-soft); font-weight: var(--fw-semibold); }
.sc-cell.off { border-color: var(--line); border-style: dashed; color: var(--ink-3); }
.sc-cell.away { background: var(--surface-2); color: var(--ink-2); }
.sc-cell.empty { color: var(--ghost); }
button.sc-cell.empty:hover { color: var(--accent); }
.sc-cell.clash { box-shadow: inset 0 0 0 1.5px var(--warn); }
button.sc-cell:hover { border-color: var(--accent); border-style: solid; }
button.sc-cell:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.sc-cell.locked.has { background: var(--surface-2); color: var(--ink-2); }
.sc-cell.locked.off, .sc-cell.locked.empty { border-color: transparent; }
.sc-t > span { white-space: nowrap; }
.sc-role, .sc-off-l, .sc-away-l { font-size: var(--fs-xs); font-weight: var(--fw-medium); color: var(--ink-2); }
.sc-off-l { color: var(--ink-3); }
.sc-cell .warn-txt { color: var(--warn); }

.sc-table td.sc-sum { vertical-align: middle; }
.sc-sum .sc-h { display: inline-flex; align-items: center; gap: 2px; font-weight: var(--fw-semibold); }
.sc-sum .sc-also { display: block; font-size: var(--fs-xs); color: var(--ink-3); }
.sc-sum.over .sc-h { color: var(--warn); }

/* the forecast's need against the plan, a day of a role: «3/3» and the opening hours in a strip */
.sc-cover .sc-cov-row th.sc-who { font-weight: var(--fw-medium); color: var(--ink-2); }
/* (relative: its visually hidden text stays inside the scrolling grid) */
.sc-table td.sc-cov { position: relative; padding: var(--sp-2) 4px; text-align: center; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.sc-cov.none { color: var(--ink-3); font-size: var(--fs-xs); }
.sc-cov-n { display: block; margin-bottom: 4px; }
.sc-cov.ok .sc-cov-n b { color: var(--ok); }
.sc-cov.short .sc-cov-n b { color: var(--warn); }
.sc-hours { display: flex; gap: 1px; height: 6px; overflow: hidden; border-radius: 3px; }
.sc-hours > span { flex: 1; min-width: 1px; background: var(--ok-soft); background: color-mix(in srgb, var(--ok) 55%, transparent); }
.sc-hours > span.short { background: var(--warn); }
.sc-legend { margin: 0; border-top: 1px solid var(--line); }

.sc-gaps .sc-gap-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.sc-gap-list li { display: grid; grid-template-columns: minmax(96px, 140px) minmax(0, 1fr); gap: var(--sp-3); padding: var(--sp-2) 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.sc-gap-list li:first-child { border-top: 0; }
.sc-gap-list b { color: var(--warn); }
.sc-gaps.short h2 { color: var(--ink); }
.sc-gaps.ok h2 { color: var(--ok); }

/* the cell's sheet: the need of the day for the role, hour by hour, the shift's hours underlined */
.sc-warn { display: flex; align-items: flex-start; gap: var(--sp-2); margin: 0; color: var(--warn); }
.sc-warn .ic { flex: none; margin-top: 1px; }
.sc-warn.bad { color: var(--bad); }
.sc-need { display: flex; flex-direction: column; gap: var(--sp-2); padding-top: var(--sp-3); border-top: 1px solid var(--line); }
.sc-need p { margin: 0; }
.sc-strip { display: grid; gap: 2px; }
.sc-hr { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.sc-hr b {
  display: grid; place-items: center; width: 100%; height: 28px; border-radius: 6px;
  background: var(--ok-soft); color: var(--ok); font-size: var(--fs-sm); font-variant-numeric: tabular-nums;
}
.sc-hr.short b { background: var(--warn-soft); color: var(--warn); }
.sc-hr.in b { box-shadow: inset 0 -3px 0 var(--accent); }
.sc-hr > span { height: 14px; font-size: var(--fs-xs); line-height: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* the timesheet: a shift started more than 10 minutes after the plan */
.sh-cell.late { border-color: var(--warn); }
.sh-late { margin-left: var(--sp-1); font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--warn); }

/* the iPad's shift screen: today's plan beside each name, who has not clocked in */
.shift-plan-sum { margin: 0; }
.shift-plan { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px var(--sp-1); }
.shift-person.miss { border-color: var(--warn); }
.shift-person.miss .avatar { background: var(--warn-soft); color: var(--warn); }
.shift-late-dot { flex: none; width: 10px; height: 10px; margin-left: 2px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 2px var(--surface); }

/* the waiter's iPhone: «Мои смены» — the calendar (30 October, 10:09, the owner: «календаря из квадратиков, которые
   можно крутить там вперед-назад. И видишь все даты. И в отмеченные даты видишь свои смены со временем»). The weekdays
   a row of the screen's shade that stays on top; a month's name a row of the shade (16 semibold) that stays under them
   while its weeks pass; the days squares from edge to edge, seven to a row, a line only between them (each drawn inside
   the square after it), the days of other months blank. A shift: the square tinted (the accent's light shade; one gone
   by grey), its start and its end under the date; today's date in the accent's circle; the days gone by and those of a
   week not published yet in grey, a row of the shade before that week saying so. Three styles: 22 semibold (the
   title), 16 semibold (the month, the dates), 14 regular (the rest). */
.cal { display: flex; flex: none; flex-direction: column; }
/* (from edge to edge: a sheet's flush body sets its blocks in by 20 — 86-tiles.css) */
.phone .sheet-body.flush > .cal { margin: 0; }
.cal-wd {
  position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: center;
  height: 32px; background: var(--bg); color: var(--ink-3); font-size: var(--fs-sm); text-align: center;
}
.cal-month { display: flex; flex-direction: column; }
.cal-mh {
  position: sticky; top: 32px; z-index: 1; display: flex; align-items: center; height: 44px; margin: 0; padding: 0 var(--sp-4);
  background: var(--bg); box-shadow: inset 0 1px 0 0 var(--line-2);
  color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); letter-spacing: 0; line-height: 1;
}
.cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-day {
  display: flex; flex-direction: column; align-items: center; min-width: 0; height: 70px; padding: 6px 0 0;
  border: 0; border-radius: 0; background: var(--surface); color: var(--ink); font: inherit; font-variant-numeric: tabular-nums;
  box-shadow: inset 1px 0 0 0 var(--line-2), inset 0 1px 0 0 var(--line-2);
}
.cal-week > :first-child { box-shadow: inset 0 1px 0 0 var(--line-2); }
/* (30 October, 11:23, the owner on his iPhone: «Не заканчивай ячейки графика без горизонтальной линии, вообще они должны
   крутится до последних дней и упираться в низ экрана») the last row of days goes down to the screen's very edge — taller
   by the home bar's room, its date and hours where every row has them — and the sheet keeps no room of its own under
   it (50-phone.css): the calendar ends on the screen's edge, never on lines hanging in the white */
.cal-month:last-child > .cal-week:last-child > .cal-day { height: calc(70px + env(safe-area-inset-bottom, 0px)); }
.cal-n {
  display: grid; place-items: center; min-width: 26px; height: 26px; margin-bottom: 2px; padding: 0 3px; border-radius: var(--r-pill);
  font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 1;
}
.cal-t { font-size: var(--fs-sm); font-weight: var(--fw-regular); line-height: 16px; white-space: nowrap; }
.cal-day.has { background: var(--accent-soft); cursor: pointer; }
.cal-day.has:active { filter: brightness(0.94); }
.cal-day.past .cal-n { color: var(--ink-3); }
.cal-day.has.past { background: var(--surface-3); }
.cal-day.has.past .cal-t { color: var(--ink-2); }
.cal-day.today .cal-n { background: var(--accent); color: var(--accent-ink); }

@media (max-width: 600px) {
  .sc-bar { align-items: flex-start; }
  .sc-actions .grow { display: none; }
  .sc-gap-list li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- reports: a gallery of report cards, then one report on its own screen ----------
   A card: the name, the period, the figure with its change, and one line with the leader or the peak —
   text only, in fixed rows. The report screen: back and the question, the title, one row of settings,
   then one card holding the figure, the chart and the AI note.
   Marks: the period in the series colour, the compared period in grey (a tick, a short bar or a thin line). */

/* the question */
.ask { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.ask-form { min-width: 0; }
.ask-field { position: relative; min-width: 0; }
/* the question is a 44px field, like the restaurant picker it sits level with */
.ask-ic { position: absolute; top: 50%; left: 14px; color: var(--accent); transform: translateY(-50%); pointer-events: none; }
.ask-field input {
  width: 100%; height: var(--h-md); padding: 0 50px 0 44px;
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); color: var(--ink);
  font-size: var(--fs-md); text-overflow: ellipsis;
}
.ask-field input::placeholder { color: var(--ink-3); }
.ask-field input:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 3px var(--accent-soft); }
.ask-field input:disabled { background: var(--surface-2); color: var(--ink-3); }
.ask-go {
  position: absolute; top: 50%; right: 5px; display: grid; place-items: center; width: 34px; height: 34px;
  border: 0; border-radius: var(--r-sm); background: var(--accent); color: var(--accent-ink); transform: translateY(-50%); cursor: pointer;
}
.ask-go:hover:not(:disabled) { background: var(--accent-2); }
.ask-go:disabled { background: var(--surface-3); color: var(--ink-3); cursor: default; }
.ask-suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20; display: flex; flex-direction: column;
  padding: var(--sp-2); border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-2);
}
.ask-suggest .caption { padding: var(--sp-1) var(--sp-2) var(--sp-2); }
.ask-sug {
  display: flex; align-items: center; gap: var(--sp-2); min-height: var(--h-md); padding: 0 var(--sp-2);
  border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink); text-align: left; cursor: pointer;
}
.ask-sug .ic { flex: none; color: var(--ink-3); }
.ask-sug:hover, .ask-sug:focus-visible { background: var(--surface-2); }
.ask-status { padding: 0 var(--sp-1); font-size: var(--fs-sm); }
.ask-status.muted { color: var(--ink-3); }
.ask-status.warn { color: var(--warn); }

/* the gallery: a section per topic, four cards to a row; the first topic's name sits level with the first
   menu item on the left (12px + a 20px line puts its middle 22px below the row line, like a 44px menu item) */
.reports .rg { display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; margin-top: var(--sp-3); }
.rg-h { font-size: var(--fs-lg); font-weight: var(--fw-semibold); line-height: 20px; }
.rg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); }
@media (max-width: 1179px) {
  .rg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.rcard { position: relative; display: flex; min-width: 0; container-type: inline-size; }
.rcard-btn {
  flex: 1; display: flex; flex-direction: column; min-width: 0; padding: var(--sp-4);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--ink);
  font: inherit; text-align: left; cursor: pointer; transition: border-color 0.12s, box-shadow 0.12s;
}
.rcard-btn:hover { border-color: var(--line-2); box-shadow: var(--shadow-1); }
.rcard-btn:focus-visible { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 3px var(--accent-soft); }
/* Five rows of fixed height, one line each, the same on every card in every state:
   name · period — figure · change — leader or peak. A row of cards reads straight across. */
.rcard-title, .rcard-sub, .rcard-fig, .rcard-d, .rcard-lead { display: block; flex: none; overflow: hidden; min-width: 0; white-space: nowrap; text-overflow: ellipsis; }
.rcard-title { height: 20px; font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 20px; }
.rcard-sub { height: 20px; margin-top: 2px; color: var(--ink-3); font-size: var(--fs-sm); line-height: 20px; }
.rcard.mine .rcard-title, .rcard.mine .rcard-sub { padding-right: var(--sp-8); }
.rcard-fig { display: flex; align-items: baseline; gap: var(--sp-2); height: 34px; margin-top: var(--sp-3); }
.rcard-v { flex: none; font-size: var(--fs-2xl); font-weight: var(--fw-bold); line-height: 34px; letter-spacing: var(--track-tight); }
.rcard-u { overflow: hidden; min-width: 0; color: var(--ink-3); font-size: var(--fs-sm); font-weight: var(--fw-semibold); line-height: 20px; text-overflow: ellipsis; }
.rcard-ph { align-self: center; width: 60%; height: 24px; border-radius: var(--r-sm); background: var(--surface-2); }
.rcard-d { height: 20px; margin-top: 2px; font-size: var(--fs-sm); line-height: 20px; }
.rcard-vs { color: var(--ink-2); font-size: var(--fs-xs); line-height: 16px; }
.rcard-lead { display: flex; gap: 6px; height: 20px; margin-top: var(--sp-3); font-size: var(--fs-sm); line-height: 20px; }
.rcard-lk { flex: none; color: var(--ink-3); }
.rcard-ln { flex: 0 1 auto; overflow: hidden; min-width: 0; color: var(--ink); text-overflow: ellipsis; }
.rcard-lv { flex: none; margin-left: auto; color: var(--ink); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
.rcard-del { position: absolute; top: var(--sp-2); right: var(--sp-2); color: var(--ink-3); }
.rcard-del:hover { color: var(--bad); }
/* a narrow card (four in a row on an iPad or a laptop) gets a smaller figure and last line; the rows stay level */
@container (max-width: 250px) {
  .rcard-btn { padding: var(--sp-3); }
  .rcard-fig { height: 28px; margin-top: var(--sp-2); }
  .rcard-v { font-size: var(--fs-xl); line-height: 28px; }
  .rcard-lead { margin-top: var(--sp-2); font-size: var(--fs-xs); }
}

/* the report screen */
.rv-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-4); min-height: var(--of-row); }
.rv-top .back-btn { align-self: center; min-height: var(--h-md); font-size: var(--fs-md); }
.rv-top .ask { flex: 0 1 440px; }
.rv-ask-toggle { display: none; color: var(--accent); }
.rv-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3) var(--sp-4); min-height: var(--of-row); }
.rv-title {
  display: flex; align-items: center; gap: var(--sp-2); min-width: 0;
  font-size: var(--fs-2xl); font-weight: var(--fw-bold); line-height: var(--lh-tight); letter-spacing: var(--track-tight); text-wrap: balance;
}
.rv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.name-form { display: flex; align-items: center; gap: var(--sp-2); }
.name-form .cell-input { width: 220px; text-align: left; }
.rv-bar-wrap { position: relative; }
/* the settings row is a 44px row of the grid, so its controls sit level with the first menu item */
.rv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); min-height: var(--of-row); }
.rv-bar .select.sm { width: auto; min-width: 0; max-width: 280px; }
.rv-tune { margin-left: auto; }
.rv-card { gap: var(--sp-5); padding: var(--sp-5) var(--sp-6); }
.rv-fig { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sp-3) var(--sp-6); }
.rv-fig-main { display: flex; flex-direction: column; gap: var(--sp-1); min-width: 0; }
.rv-fig-l { color: var(--ink-2); font-size: var(--fs-sm); }
.rv-fig-v { font-size: var(--fs-3xl); font-weight: var(--fw-bold); line-height: 1.1; letter-spacing: var(--track-tight); font-variant-numeric: proportional-nums; }
.rv-fig-d { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-1) var(--sp-2); font-size: var(--fs-sm); }
.dlt { font-weight: var(--fw-semibold); white-space: nowrap; }
.dlt-good { color: var(--ok); }
.dlt-bad { color: var(--bad); }
.dlt-neutral { color: var(--ink-2); }
.dlt-flat { color: var(--ink-3); }
.tile-v, .display { font-variant-numeric: proportional-nums; }

/* «Настроить»: a panel under the row of settings; the report stays in view */
.tune {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; display: flex; flex-direction: column; gap: var(--sp-4);
  width: min(360px, 100%); padding: var(--sp-4); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow-2);
}
.tune .seg { display: flex; width: 100%; }
.tune .seg-btn { flex: 1; justify-content: center; }
.tune-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.tune-foot { display: flex; justify-content: flex-end; }

/* the other key numbers of a report without a breakdown */
.kpi-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--sp-3); }
.ks { display: flex; flex-direction: column; gap: var(--sp-1); min-width: 0; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); background: var(--surface-2); }
.ks-l { color: var(--ink-3); font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: var(--track-caps); text-transform: uppercase; }
.ks-v { font-size: var(--fs-xl); font-weight: var(--fw-bold); letter-spacing: var(--track-tight); font-variant-numeric: proportional-nums; }
.ks-d { font-size: var(--fs-sm); }

/* legend and tooltip keys mirror the marks */
.r-legend { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); padding-bottom: 2px; color: var(--ink-2); font-size: var(--fs-sm); }
.r-key { display: inline-flex; align-items: center; gap: var(--sp-2); }
.key-rect { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.key-line { flex: none; width: 16px; height: 2px; border-radius: 1px; }
.key-tick { flex: none; width: 2px; height: 14px; border-radius: 1px; background: var(--ink-3); }
.key-htick { flex: none; width: 14px; height: 2px; border-radius: 1px; background: var(--ink-3); }
.key-rect.cur, .key-line.cur { background: var(--s1); }
/* («Месяц: факт и прогноз») the days ahead: the series' colour, lighter */
.key-rect.ghost { background: color-mix(in oklab, var(--s1) 32%, var(--surface)); }
.chart .bar.s1.ghost { fill: color-mix(in oklab, var(--s1) 32%, var(--surface)); }
.key-line.prev { background: var(--ink-3); }
.tip { min-width: 220px; }
.tip .tip-r .grow { color: var(--ink-2); }
.tip-r .key-rect, .tip-r .key-line, .tip-r .key-tick, .tip-r .key-htick { margin-right: 2px; }
.tip-foot { gap: var(--sp-3); margin-top: 2px; padding-top: var(--sp-1); border-top: 1px solid var(--line); }

/* charts */
.chart .val-t { fill: var(--ink-2); font-family: var(--font-ui); font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.chart .end-t { paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.chart .prev-mark { fill: var(--ink-3); }
.chart .prev-ring { fill: var(--surface); }
.chart .line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chart .line.s1 { stroke: var(--s1); }
.chart .line.prev { stroke: var(--ink-3); stroke-width: 1.5; }
.chart .area.s1 { fill: var(--s1); opacity: 0.1; }
.chart .dot { stroke: var(--surface); stroke-width: 2; }
.chart .dot.s1 { fill: var(--s1); }
.chart .dot.prev { fill: var(--ink-3); }
.chart .cross { stroke: var(--line-2); stroke-width: 1; }
.chart .is-hover .bar { opacity: 0.82; }

/* ranked bars: the name, the bar with the compared period's mark, the value, the change */
.hbars { display: flex; flex-direction: column; gap: 2px; }
.hb-row {
  position: relative; display: grid; grid-template-columns: minmax(110px, 30%) minmax(80px, 1fr) minmax(88px, auto) 72px;
  align-items: center; gap: var(--sp-4); min-height: 40px; padding: var(--sp-1) var(--sp-2); border-radius: var(--r-sm); outline: 0;
}
.hbars:not(.with-prev) .hb-row { grid-template-columns: minmax(110px, 30%) minmax(80px, 1fr) minmax(88px, auto) 56px; }
.hb-row.is-hover, .hb-row:focus-visible { background: var(--surface-2); }
.hb-label { display: -webkit-box; overflow: hidden; font-weight: var(--fw-medium); line-height: var(--lh-tight); -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.hb-track { position: relative; height: 24px; }
.hb-bar { position: absolute; top: 50%; left: 0; min-width: 2px; height: 14px; border-radius: 0 4px 4px 0; background: var(--s1); transform: translateY(-50%); }
.hb-prev { position: absolute; top: 50%; width: 2px; height: 22px; border-radius: 1px; background: var(--ink-3); box-shadow: 0 0 0 1.5px var(--surface); transform: translate(-1px, -50%); }
.hb-row.is-hover .hb-prev, .hb-row:focus-visible .hb-prev { box-shadow: 0 0 0 1.5px var(--surface-2); }
.hb-val { font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.hb-side { font-size: var(--fs-sm); text-align: right; }
.hb-row .hb-tip { top: auto; right: var(--sp-2); bottom: calc(100% - 2px); left: auto; z-index: 3; transform: none; }
.report-table tfoot td { border-top: 1px solid var(--line-2); border-bottom: 0; font-weight: var(--fw-semibold); }

/* filters that narrow the report, shown as chips */
.chip:hover:not(.on):not(:disabled) { border-color: var(--ink-3); }
.chip-saved { gap: 0; padding: 0; cursor: default; }
.chip-saved .chip-main {
  display: inline-flex; align-items: center; min-height: calc(var(--h-sm) - 2px); padding: 0 var(--sp-1) 0 var(--sp-4);
  border: 0; background: none; color: inherit; font: inherit;
}
.chip-saved .chip-x {
  display: grid; place-items: center; width: 32px; height: calc(var(--h-sm) - 2px);
  border: 0; border-radius: 0 var(--r-pill) var(--r-pill) 0; background: none; color: inherit; opacity: 0.7; cursor: pointer;
}
.chip-saved .chip-x:hover { opacity: 1; }

/* what the AI sees in the numbers: a strip at the bottom of the report */
.ai-strip { display: flex; flex-direction: column; gap: var(--sp-2); padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.ai-head { display: flex; align-items: center; gap: var(--sp-2); min-height: var(--h-sm); color: var(--accent); }
.ai-head .strong { color: var(--ink); }
.ai-text { max-width: 76ch; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); background: var(--accent-soft); color: var(--ink); line-height: var(--lh-loose); white-space: pre-wrap; }
.ai-note { color: var(--ink-3); font-size: var(--fs-sm); }

/* phones: cards scroll sideways a section at a time; the report screen keeps its header to one row */
@media (max-width: 640px) {
  .rg-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%;
    margin: 0 calc(-1 * var(--sp-4)); padding: 0 var(--sp-4) var(--sp-1); overflow-x: auto;
    scroll-snap-type: x mandatory; scroll-padding: 0 var(--sp-4); scrollbar-width: none;
  }
  .rg-grid::-webkit-scrollbar { display: none; }
  .rg-grid > .rcard { scroll-snap-align: start; }
  .rv-top { flex-wrap: nowrap; }
  .rv-top .ask { display: none; }
  .rv-ask-toggle { display: inline-grid; margin-left: auto; }
  .rv-top.ask-open { flex-wrap: wrap; }
  .rv-top.ask-open .ask { display: flex; flex-basis: 100%; }
  .rv-head { flex-wrap: nowrap; align-items: flex-start; }
  .rv-title { flex: 1; font-size: var(--fs-xl); }
  .rv-actions { flex-wrap: nowrap; }
  .rv-save .btn-label, .rv-view .seg-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .rv-save { width: var(--h-sm); padding: 0; }
  .rv-bar {
    flex-wrap: nowrap; margin: 0 calc(-1 * var(--sp-4)); padding: 0 var(--sp-4) 2px; overflow-x: auto; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent);
  }
  .rv-bar::-webkit-scrollbar { display: none; }
  .rv-bar > * { flex: none; }
  .rv-tune { margin-left: 0; }
  .tune { left: 0; right: 0; width: auto; }
  .rv-card { gap: var(--sp-4); padding: var(--sp-4); }
  .rv-fig-v { font-size: var(--fs-2xl); }
  .hb-row, .hbars:not(.with-prev) .hb-row {
    grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "label label label" "track val side";
    row-gap: 2px; padding: var(--sp-2);
  }
  .hb-label { grid-area: label; }
  .hb-track { grid-area: track; height: 18px; }
  .hb-val { grid-area: val; }
  .hb-side { grid-area: side; min-width: 56px; }
}

/* ---------- Google: the connection, the reviews, the ads (office-google.jsx, office-ads.jsx; server 0.33) ---------- */
.gg-page .card + .card, .gr-page .card + .card { margin-top: 0; }
.gg-conn { display: flex; flex-direction: column; gap: var(--sp-3); }
.gg-conn .card-head .st { display: inline-flex; align-items: center; gap: 4px; }
.gg-who { display: flex; align-items: center; gap: var(--sp-2); margin: 0; }
.gg-scopes { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.gg-scopes .chip { display: inline-flex; align-items: center; gap: 4px; cursor: default; }
.gg-want { display: flex; flex-direction: column; gap: var(--sp-1); }
.gg-rows { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.gg-row { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3) 0; border-top: 1px solid var(--line); }
.gg-row:first-child { border-top: 0; padding-top: 0; }
.gg-row-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.gg-rating { display: inline-flex; align-items: center; gap: var(--sp-1); font-variant-numeric: tabular-nums; }
.gg-row-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.gg-book-on { display: inline-flex; align-items: center; gap: 4px; }
.gg-ads-now { margin: 0; }
.gg-ads-pick { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-3); margin: var(--sp-3) 0; }
.gg-ads-pick .select { min-width: min(420px, 100%); }
.gg-rate { width: 140px; margin: 0; }

/* «Отзывы Google»: classes gr- (the reports' own are rv-: .rv-bar, .rv-card and .rv-head of a report must not take these) */
/* the stars: the review's own, in the stars' colour; the empty ones outlined in ink */
.gr-stars { display: inline-flex; flex: none; gap: 1px; color: var(--ink-3); }
.gr-stars .ic.on { color: var(--star, #E8AE3A); }

.gr-places { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--sp-3); }
.gr-place { display: flex; flex-direction: column; gap: var(--sp-2); }
.gr-place-head { display: flex; flex-direction: column; gap: 2px; }
.gr-big { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.gr-num { font-size: var(--fs-2xl); font-weight: var(--fw-bold); letter-spacing: var(--track-tight); font-variant-numeric: tabular-nums; }
.gr-facts { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); font-size: var(--fs-sm); }
.gr-wait { padding: 0; border: 0; background: none; color: var(--ink-2); font: inherit; cursor: pointer; }
.gr-wait.on { color: var(--warn); }
.gr-wait.on b { color: var(--warn); }
.gr-wait:disabled { cursor: default; }
.gr-place .btn { align-self: flex-start; }
.gr-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-4); margin: var(--sp-4) 0 var(--sp-3); }
.gr-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.gr-list > .btn { align-self: center; }
.gr-card { display: flex; flex-direction: column; gap: var(--sp-2); }
.gr-low { box-shadow: inset 3px 0 0 var(--warn), var(--shadow-1); }
.gr-head { display: flex; align-items: center; gap: var(--sp-3); }
.gr-who { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.gr-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gr-text { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.gr-text.clip { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 5; }
.gr-reply { display: flex; flex-direction: column; gap: var(--sp-1); margin-left: var(--sp-3); padding: var(--sp-2) var(--sp-3); border-left: 2px solid var(--line-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--surface-2); }
.gr-reply > span { display: inline-flex; align-items: center; gap: 2px; }
.gr-reply p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.gr-box { display: flex; flex-direction: column; gap: var(--sp-2); }
.gr-box textarea { width: 100%; min-height: 72px; resize: vertical; }
.gr-qr { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); text-align: center; }
.gr-qr input { width: 100%; }

/* «Реклама Google»: the key figures, two charts of the same days side by side (one above the other on a narrow screen) */
.ads-kpis { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.ads-none { margin: var(--sp-3) 0 0; }
.ads-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--sp-5); }
.ads-fig { min-width: 0; margin: 0; }
.ads-cap { margin-bottom: var(--sp-2); color: var(--ink-2); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.ads-foot { margin: var(--sp-3) 0 0; }
.gr-unmatched { margin: var(--sp-2) 0 0; }
.gr-acts { margin-top: var(--sp-1); }

/* ---------- «Счета поставщиков» (SEF) and «Фирмы и SEF» ---------- */
/* the number of new invoices beside the menu item's name, at the end of its line (before a section's chevron), drawn
   here: the item's text stays its name. (It sat on the icon's corner and covered it — the audit of 20 October.) */
.of-nav-btn[data-badge]::after {
  content: attr(data-badge); order: 2; min-width: 18px; height: 18px; margin-left: auto; padding: 0 5px;
  border-radius: var(--r-pill); background: var(--warn); color: var(--warn-ink);
  font-size: 11px; font-weight: var(--fw-bold); line-height: 18px; text-align: center; font-variant-numeric: tabular-nums;
}
.of-nav-btn[data-badge] .of-chev { order: 3; margin-left: 0; }

.sef-table td { vertical-align: top; }
.sef-table td b { font-weight: var(--fw-semibold); }
.sef-due { white-space: nowrap; }
.sef-empty-acts { justify-content: center; }

.sef-sheet { display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; }
.sef-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2) var(--sp-5); margin: 0; }
.sef-facts > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: var(--sp-3); align-items: baseline; min-width: 0; }
.sef-facts > div.wide { grid-column: 1 / -1; }
.sef-facts dt { color: var(--ink-3); font-size: var(--fs-sm); }
.sef-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

.sef-result { display: flex; align-items: flex-start; gap: var(--sp-3); margin: 0; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); background: var(--surface-2); }
.sef-result.ok > svg { color: var(--ok); flex: none; margin-top: 2px; }
.sef-result.bad > svg { color: var(--bad); flex: none; margin-top: 2px; }
.sef-result > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.sef-loc { max-width: 360px; }
/* «Разделить между ресторанами» under the restaurant (server 0.16) */
.sef-loc .check-row { padding: var(--sp-1) 0; border: 0; gap: var(--sp-2); }
.sef-hint-why { white-space: nowrap; }

.sef-lines { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.sef-line { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--sp-2) var(--sp-5); align-items: center; padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
.sef-src { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sef-name { font-weight: var(--fw-semibold); overflow-wrap: anywhere; }
.sef-calc { color: var(--ink-2); }
.sef-map { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); min-width: 0; }
.sef-map .select { flex: 1 1 200px; min-width: 0; max-width: 300px; }
.sef-factor { display: inline-flex; align-items: center; gap: var(--sp-2); white-space: nowrap; }
.sef-out { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-2); min-width: 0; }
.sef-tag { font-size: var(--fs-xs); }
/* a line between restaurants: what the others got, the rest in the chosen one */
.sef-parts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); flex-basis: 100%; padding-top: var(--sp-1); }
.sef-part { display: inline-flex; align-items: center; gap: var(--sp-2); min-width: 0; }
.sef-part > span:first-child { overflow-wrap: anywhere; }
.sef-part-rest { overflow-wrap: anywhere; }

.sef-totals { display: grid; justify-content: end; gap: var(--sp-1); margin: 0; }
.sef-totals > div { display: grid; grid-template-columns: 160px 140px; gap: var(--sp-3); }
.sef-totals dt { color: var(--ink-3); text-align: right; }
.sef-totals dd { margin: 0; text-align: right; }
.sef-totals .sum dt, .sef-totals .sum dd { color: var(--ink); font-weight: var(--fw-semibold); }
.sef-totals .sum { padding-top: var(--sp-1); border-top: 1px solid var(--line); }

.sef-xml summary { cursor: pointer; color: var(--ink-2); font-size: var(--fs-sm); }
.sef-xml pre {
  max-height: 260px; margin: var(--sp-2) 0 0; padding: var(--sp-3); overflow: auto; border-radius: var(--r-sm);
  background: var(--surface-2); color: var(--ink-2); font-size: 12px; line-height: 1.45; white-space: pre; tab-size: 2;
}
.sef-foot-note { min-width: 0; }

.firm-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.firm-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: var(--sp-2) var(--sp-4); align-items: center; padding: var(--sp-3) 0; border-top: 1px solid var(--line); }
.firm-row:first-child { border-top: 0; }
.firm-main, .firm-sef { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.firm-sef { align-items: flex-start; }
.firm-locs .chip { gap: var(--sp-1); }
.sef-steps { display: flex; flex-direction: column; gap: var(--sp-2); margin: 0; padding-left: 1.3em; }
.sef-note { display: flex; gap: var(--sp-2); align-items: flex-start; margin: 0; padding: var(--sp-3); border-radius: var(--r-md); background: var(--surface-2); color: var(--ink-2); }
.sef-note > svg { flex: none; margin-top: 1px; }

/* app.ruvo.ac (the server's SEF): the receipt of this same paper already in stock — «другая поставка» to take it again;
   a firm SEF refuses, over the inbox; the inbox and the firms while the server answers */
.sef-alert { display: flex; align-items: flex-start; gap: var(--sp-3); margin: 0; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); background: var(--surface-2); }
.sef-alert > svg { flex: none; margin-top: 2px; color: var(--ink-3); }
.sef-alert.warn { background: var(--warn-soft); }
.sef-alert.warn > svg { color: var(--warn); }
.sef-alert > div { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; overflow-wrap: anywhere; }
.sef-alert .check-row { padding: 0; border: 0; gap: var(--sp-2); }
.sef-wait { margin: 0; padding: var(--sp-5) var(--sp-4); }
.sef-retry { margin: 0; }
.sef-since input { max-width: 220px; }
/* a firm's restaurants by the server's names: a long one and «из другой фирмы» wrap inside their chip, never out of it */
.firm-chips .chip { max-width: 100%; padding-top: 6px; padding-bottom: 6px; line-height: 1.3; white-space: normal; text-align: left; }

@media (max-width: 480px) {
  .sef-foot-note { display: none; }
}
@media (max-width: 720px) {
  .sef-facts { grid-template-columns: minmax(0, 1fr); }
  .sef-facts > div { grid-template-columns: 96px minmax(0, 1fr); }
  .sef-line { grid-template-columns: minmax(0, 1fr); }
  .sef-map .select { max-width: none; }
  .sef-totals { justify-content: stretch; }
  .sef-totals > div { grid-template-columns: minmax(0, 1fr) auto; }
  .firm-row { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- «По фото»: a supplier's paper invoice into the stock (ui/office-scan.jsx) ---------- */
/* The paper is an object, as on a photo: the same paper colour in either theme (--paper, --paper-ink), print-like type. */
.paper {
  width: 680px; padding: 30px 34px 58px; background: var(--paper); color: var(--paper-ink);
  font-family: Arial, "Helvetica Neue", "Liberation Sans", sans-serif; font-size: 12px; line-height: 1.35;
}
.paper-head { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 12px; border-bottom: 2px solid var(--paper-ink); }
.paper-from, .paper-doc { display: flex; flex-direction: column; gap: 1px; }
.paper-from b { font-size: 15px; letter-spacing: 0.02em; }
.paper-doc { text-align: right; }
.paper-doc b { font-size: 17px; letter-spacing: 0.08em; }
.paper-doc i { font-style: normal; font-weight: 700; }
.paper-to { margin: 10px 0 8px; }
.paper-tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.paper-tbl th, .paper-tbl td { padding: 3px 5px; border: 1px solid #8b8b86; text-align: left; white-space: nowrap; }
.paper-tbl th { background: #ecebe6; font-weight: 700; font-size: 11px; }
.paper-tbl .w { width: 100%; white-space: normal; }
.paper-tbl .n { text-align: right; }
.paper-sums { display: grid; justify-content: end; gap: 2px; margin-top: 10px; font-variant-numeric: tabular-nums; }
.paper-sums > div { display: grid; grid-template-columns: 120px 84px 84px 76px; gap: 8px; text-align: right; white-space: nowrap; }
.paper-sums .tot { padding-top: 3px; border-top: 1px solid #8b8b86; font-weight: 700; }
.paper-sums .pay { grid-template-columns: 120px 260px; font-size: 14px; font-weight: 700; }
.paper-sign { position: relative; display: flex; gap: 60px; margin-top: 22px; }
.paper-sign > div { display: flex; flex-direction: column; gap: 2px; width: 170px; border-top: 1px solid #8b8b86; padding-top: 3px; font-size: 11px; }
.paper-sign > div svg { width: 110px; height: 30px; fill: none; stroke: #23338f; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-top: -40px; }
.paper-stamp { position: absolute; right: 18px; top: -28px; width: 104px; height: 104px; transform: rotate(-14deg); opacity: 0.78; }
.paper-stamp circle { fill: none; stroke: #3446a8; stroke-width: 2; }
.paper-stamp text { fill: #3446a8; font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em; }
.paper-stamp text.mid { font-size: 12px; }

/* the paper as a photo: a little turned on a soft table, cut by the frame; small — a thumbnail of its top */
.paper-photo {
  --scale: 0.7; position: relative; width: calc(680px * var(--scale) + 32px); max-width: 100%; height: calc(560px * var(--scale) + 32px);
  overflow: hidden; border-radius: var(--r-md); background: radial-gradient(120% 90% at 30% 20%, var(--surface-3), var(--bg-2)); isolation: isolate;
}
.paper-photo .paper-fit {
  position: absolute; left: 16px; top: 16px; width: 680px; transform: rotate(-1.2deg) scale(var(--scale)); transform-origin: top left;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.12);
}
.paper-photo.small { --scale: 0.38; height: calc(420px * var(--scale) + 24px); }
.paper-photo.small .paper-fit { left: 12px; top: 12px; }
.paper-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent);
  box-shadow: 0 0 14px 4px color-mix(in srgb, var(--accent) 45%, transparent); animation: paper-scan 1.5s ease-in-out infinite alternate;
}
@keyframes paper-scan { from { top: 4%; } to { top: 94%; } }
@media (prefers-reduced-motion: reduce) { .paper-scan { animation: none; top: 50%; } }
.paper-full { overflow: auto; display: flex; justify-content: center; padding: var(--sp-2); border-radius: var(--r-md); background: var(--surface-2); }
.paper-full .paper { flex: none; box-shadow: var(--shadow-1); }

/* the first step: the example papers (the camera in the working version) */
.scan-pick { display: flex; flex-direction: column; gap: var(--sp-4); }
.scan-lead { margin: 0; color: var(--ink-2); max-width: 62ch; }
.scan-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.scan-card {
  display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; padding: var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; font: inherit;
}
.scan-card:hover { border-color: var(--accent); }
.scan-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.scan-card .paper-photo { width: 100%; }
.scan-card-text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.scan-card-go { display: inline-flex; align-items: center; gap: var(--sp-2); align-self: flex-start; color: var(--accent); font-weight: var(--fw-semibold); }

/* the reading */
.scan-reading { display: flex; flex-direction: column; align-items: center; gap: var(--sp-4); padding: var(--sp-2) 0 var(--sp-4); }
.scan-reading-text { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }

/* the check: the photo beside what was read */
.scan-review { display: grid; grid-template-columns: minmax(0, 272px) minmax(0, 1fr); gap: var(--sp-5); align-items: start; }
.scan-photo { position: sticky; top: 0; display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.scan-photo-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--r-md); }
.scan-photo-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.scan-photo .paper-photo { width: 100%; }
.scan-draft { min-width: 0; }
.scan-head { align-items: flex-end; }
.scan-head .field { flex: 1 1 160px; min-width: 0; }
.scan-head .field.grow { flex: 2 1 220px; }
.scan-alert { display: flex; align-items: flex-start; gap: var(--sp-3); margin: 0; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); background: var(--surface-2); }
.scan-alert > svg { flex: none; margin-top: 2px; color: var(--ink-3); }
.scan-alert.warn { background: var(--warn-soft); }
.scan-alert.warn > svg { color: var(--warn); }
.scan-alert > div { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.scan-alert .check-row { padding: 0; border: 0; gap: var(--sp-2); }
.scan-lines .sef-line.off .sef-src { opacity: 0.62; }
.scan-fix { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-3); font-size: var(--fs-sm); color: var(--ink-2); }
.scan-fix label { display: inline-flex; align-items: center; gap: var(--sp-1); white-space: nowrap; }
.scan-fix .cell-input { width: 92px; }
.scan-fix-btn {
  align-self: flex-start; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: var(--fs-xs); cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}
.scan-ask { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }

/* the receipt form's offer, and the photo of a receipt */
.scan-offer, .doc-photo {
  display: flex; align-items: center; gap: var(--sp-3); width: 100%; padding: var(--sp-3) var(--sp-4); border: 1px dashed var(--line-2);
  border-radius: var(--r-md); background: var(--surface-2); color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.scan-offer { margin-bottom: var(--sp-4); }
.scan-offer:hover, .doc-photo:hover { border-color: var(--accent); }
.scan-offer > svg { flex: none; color: var(--accent); }
.scan-offer > span:nth-child(2), .doc-photo > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.scan-offer-go { flex: none; padding: 4px 12px; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font-weight: var(--fw-semibold); font-size: var(--fs-sm); }
.doc-photo { margin-bottom: var(--sp-4); border-style: solid; }
.doc-photo .paper-photo { flex: none; width: 150px; --scale: 0.2; height: calc(420px * 0.2 + 24px); }
.doc-scan-ic { color: var(--ink-3); vertical-align: -3px; margin-right: 6px; }

/* ---------- app.ruvo.ac: a real photo or PDF, read by Claude on the server ---------- */
/* the first step: the camera and the file; the pages picked, which wrap; the limits; the photos of the last month */
.scan-take { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.scan-take .btn { flex: 1 1 240px; min-height: 56px; white-space: normal; text-align: left; }
.scan-limits { margin: 0; color: var(--ink-3); font-size: var(--fs-sm); }
.scan-thumbs { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: 0; padding: 0; list-style: none; }
.scan-thumbs > li { display: flex; min-width: 0; max-width: 100%; }
.scan-thumb {
  position: relative; width: 112px; height: 150px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2);
}
.scan-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.scan-thumb.pdf {
  align-items: center; gap: var(--sp-3); width: auto; height: auto; min-height: 72px;
  padding: var(--sp-3) 56px var(--sp-3) var(--sp-3); color: var(--accent);
}
.scan-thumb-pdf { display: flex; flex-direction: column; gap: 2px; min-width: 0; color: var(--ink); overflow-wrap: anywhere; }
.scan-thumb-n {
  position: absolute; left: 6px; bottom: 6px; min-width: 22px; padding: 0 6px; border-radius: var(--r-pill);
  background: rgb(0 0 0 / 0.6); color: #fff; font-size: var(--fs-xs); font-weight: var(--fw-bold); line-height: 22px; text-align: center;
}
.scan-thumb-x {
  position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
  border: 0; border-radius: 50%; background: rgb(0 0 0 / 0.55); color: #fff; cursor: pointer;
}
/* (a finger finds it in 44px around it) */
.scan-thumb-x::before { content: ''; position: absolute; inset: -6px; }
.scan-thumb-x:disabled { opacity: 0.5; cursor: default; }
.scan-thumb.pdf .scan-thumb-x { top: 50%; right: 8px; margin-top: -16px; background: var(--surface-3); color: var(--ink-2); }
.scan-thumb-add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-2); width: 112px; height: 150px;
  padding: var(--sp-2); border: 1px dashed var(--line-2); border-radius: var(--r-md); background: transparent; color: var(--accent);
  font: inherit; font-size: var(--fs-sm); font-weight: var(--fw-semibold); text-align: center; cursor: pointer;
}
.scan-thumb-add:hover:not(:disabled) { border-color: var(--accent); }
.scan-thumb-add:disabled { opacity: 0.5; cursor: default; }

/* the photo while Claude reads it, when it could not, and beside the check: in a frame, as the example paper lies */
.scan-shot {
  position: relative; display: grid; place-items: center; width: min(360px, 100%); aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: var(--r-md); background: radial-gradient(120% 90% at 30% 20%, var(--surface-3), var(--bg-2)); isolation: isolate;
}
.scan-shot img { display: block; width: 100%; height: 100%; object-fit: contain; }
.scan-shot-wait { width: 100%; height: 100%; }
.scan-shot-pdf { display: flex; flex-direction: column; align-items: center; gap: var(--sp-1); padding: var(--sp-4); color: var(--ink-2); text-align: center; overflow-wrap: anywhere; }
.scan-shot-pdf > svg { color: var(--accent); }
.scan-photo .scan-shot { width: 100%; }
/* a receipt's photo on the server in its card of «Документы» (ScanThumb), as the example paper's there */
.doc-photo .scan-shot { flex: none; width: 81px; }
.scan-reading .scan-alert { align-self: stretch; width: 100%; max-width: 62ch; margin-inline: auto; }
.scan-alert.ok { background: var(--ok-soft); }
.scan-alert.ok > svg { color: var(--ok); }
.scan-posted { display: flex; flex-direction: column; gap: var(--sp-4); }

/* every page of a photo at the sheet's width; a PDF is a link that opens it */
.scan-pages { display: flex; flex-direction: column; gap: var(--sp-4); }
.scan-page { display: flex; flex-direction: column; gap: var(--sp-1); margin: 0; }
.scan-page img { display: block; width: 100%; height: auto; border-radius: var(--r-md); background: var(--paper); box-shadow: var(--shadow-1); }
.scan-page-wait { display: grid; place-items: center; min-height: 240px; border-radius: var(--r-md); background: var(--surface-2); }
.scan-pdf {
  display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border: 1px solid var(--line-2);
  border-radius: var(--r-md); background: var(--surface); color: var(--ink); text-decoration: none;
}
.scan-pdf:hover { border-color: var(--accent); }
.scan-pdf > svg { flex: none; color: var(--accent); }
.scan-pdf > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.scan-pdf-go { flex: none; padding: 4px 12px; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font-weight: var(--fw-semibold); font-size: var(--fs-sm); }
.scan-pdf[aria-disabled="true"] { opacity: 0.6; pointer-events: none; }

/* «Недавние фото» */
.scan-recent { display: flex; flex-direction: column; gap: var(--sp-2); }
.scan-recent-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.scan-recent-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--sp-1) var(--sp-3); width: 100%; min-height: 56px;
  padding: var(--sp-2) 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.scan-recent-row > svg { color: var(--ink-3); }
.scan-recent-row:hover:not(:disabled) .scan-recent-main b { color: var(--accent); }
.scan-recent-row:disabled { cursor: default; }
.scan-recent-row[aria-busy="true"] { opacity: 0.6; }
.scan-recent-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.scan-recent-main b { font-weight: var(--fw-semibold); overflow-wrap: anywhere; }

/* «По фото» on «Документы»: its camera alone where four buttons would not fit on the row */
@media (max-width: 1180px) {
  .doc-scan-btn .btn-label { display: none; }
  .doc-scan-btn.btn { padding-inline: 10px; }
}
/* on a phone the four, two by two under the restaurant — with their names again (on one row of 390 px «Инвентаризация»
   was left alone under the other three); «Остатки»' three — «Приход» across, the other two under it (in English
   «Stocktake» was left alone) */
@media (max-width: 700px) {
  .doc-acts, .stock-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  /* (0.80) five on «Документы» with «Возврат»: «Приход» across, the other four two by two */
  .doc-acts > .select, .stock-acts > .select, .stock-acts > .btn-primary, .doc-acts > .btn-primary { grid-column: 1 / -1; width: 100%; min-width: 0; }
  .doc-acts > .btn, .stock-acts > .btn { min-width: 0; padding-inline: var(--sp-3); }
  .doc-acts .doc-scan-btn .btn-label { display: inline; }
  .doc-acts .btn-label, .stock-acts .btn-label { overflow: hidden; text-overflow: ellipsis; }
  /* (the audit of 9 November: with «Перемещение» «Инвентариза…» was cut on its own half of a row; the restaurant's
     picker and «Приход» go across, so the key left alone is an odd last one) it takes the row */
  .doc-acts > .btn:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .scan-review { grid-template-columns: minmax(0, 1fr); }
  .scan-photo { position: static; max-width: 300px; }
  /* a photo above the lines: its top, where the supplier and the number are — the whole of it a tap away */
  .scan-photo .scan-shot { aspect-ratio: 4 / 3; }
  .scan-photo .scan-shot img { object-fit: cover; object-position: top; }
}
@media (max-width: 640px) {
  .scan-cards { grid-template-columns: minmax(0, 1fr); }
  .paper-photo { --scale: 0.46; }
  .scan-offer-go { display: none; }
  /* a photo of the list: what became of it under its name */
  .scan-recent-row { grid-template-columns: auto minmax(0, 1fr); }
  .scan-recent-row .st { grid-column: 2; justify-self: start; }
}

/* ---------- RUVO: the product's name, new restaurants, the subscription, RUVO's console ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the start page: the wordmark with the name spelled out; RUVO's console at the foot, for the page's owner */
.l-brand { display: inline-flex; align-items: center; gap: var(--sp-3); min-width: 0; }
.l-brand-full { color: var(--ink-3); font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: var(--track-caps); text-transform: uppercase; }
.l-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-3); padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.l-foot .btn { margin-left: calc(-1 * var(--sp-4)); }

/* a stepper in a field keeps its own width */
.field > .stepper { align-self: flex-start; }

/* «Добавить заведение» */
.venue-mods { display: flex; flex-direction: column; gap: var(--sp-3); margin: 0; padding: 0; border: 0; }
.venue-mods legend { margin-bottom: var(--sp-3); padding: 0; }
.venue-mods .switch { font-weight: var(--fw-medium); }
.venue-cost { padding: var(--sp-3); border-radius: var(--r-md); background: var(--surface-2); }
.loc-new { margin-top: auto; }

/* an integration's restaurants and price on its card */
.ig-where { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); min-width: 0; }
.ig-where > span { min-width: 0; overflow: hidden; color: var(--ink-2); text-overflow: ellipsis; white-space: nowrap; }
.ig-where .btn { flex: none; margin-right: calc(-1 * var(--sp-3)); }
.ig-price { color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* the month's bill, like an invoice: the thing and how it is counted on the left, the sum on the right edge */
.rc-bill td, .rc-bill th { vertical-align: top; font-variant-numeric: tabular-nums; }
.rc-bill tbody td { padding-top: var(--sp-2); padding-bottom: var(--sp-2); }
.rc-bill-what { display: block; color: var(--ink); }
.rc-bill-calc { display: block; margin-top: 2px; color: var(--ink-3); font-size: var(--fs-sm); font-weight: var(--fw-regular); text-transform: none; letter-spacing: normal; }
.rc-bill .num { white-space: nowrap; }
.rc-bill tfoot th, .rc-bill tfoot td { padding-top: var(--sp-3); border-top: 1px solid var(--line-2); color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); text-transform: none; letter-spacing: normal; }
.rc-bill tfoot th { padding-left: 0; text-align: left; }
.rc-bill tfoot .rc-year th, .rc-bill tfoot .rc-year td { padding-top: var(--sp-2); border-top: 0; color: var(--ink-2); font-size: var(--fs-sm); font-weight: var(--fw-regular); }

/* ---------- RUVO's console ---------- */
.rc { overflow: auto; }
.rc-top {
  position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-4);
  padding: var(--sp-3) var(--sp-6); border-bottom: 1px solid var(--line); background: var(--surface);
}
.rc-brand { display: flex; align-items: center; gap: var(--sp-3); }
.rc-brand-sub { font-weight: var(--fw-semibold); }
.rc-top-r { display: flex; align-items: center; gap: var(--sp-3); }
.rc-main { width: 100%; max-width: 1180px; margin: 0 auto; padding: var(--sp-6) var(--sp-6) var(--sp-8); }
.rc-page { display: flex; flex-direction: column; gap: var(--sp-4); --of-row: var(--h-md); --of-gap: var(--sp-4); }
.rc-callout { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-lg); background: var(--warn-soft); color: var(--warn); }
.rc-callout > span { flex: 1 1 260px; color: var(--ink); }
.rc-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); }
.rc-tile { display: flex; flex-direction: column; gap: var(--sp-1); min-width: 0; padding: var(--sp-4); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); }
.rc-tile .display { font-size: var(--fs-2xl); font-variant-numeric: tabular-nums; }
.rc-clients td { vertical-align: top; }
.rc-clients td:first-child, .rc-clients td:nth-child(2) { min-width: 180px; }
.rc-name { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: var(--fw-semibold); text-align: left; cursor: pointer; }
.rc-name:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.rc-demo { margin-left: var(--sp-2); vertical-align: 1px; }
.rc-owner, .rc-note, .rc-free { display: block; margin-top: 2px; }
.rc-clients .rc-status { vertical-align: middle; }
.rc-client { gap: var(--sp-4); }
.rc-st-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); }
.rc-acts { gap: var(--sp-2); }
.rc-box { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.rc-box h3 { margin: 0; }
.rc-invite {
  max-height: 260px; margin: 0; padding: var(--sp-3) var(--sp-4); overflow: auto; border-radius: var(--r-md); background: var(--surface-2);
  color: var(--ink); font-family: var(--font-ui); font-size: var(--fs-sm); line-height: var(--lh-loose); white-space: pre-wrap; overflow-wrap: anywhere;
}
.rc-venues { display: flex; flex-direction: column; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.rc-venues li { display: flex; flex-direction: column; gap: 2px; padding: var(--sp-3); border-radius: var(--r-md); background: var(--surface-2); }
.rc-list { display: flex; flex-direction: column; gap: var(--sp-1); margin: 0; padding-left: 1.2em; color: var(--ink-2); font-size: var(--fs-sm); }
.rc-remove { padding-top: var(--sp-2); }
.rc-remove .btn { margin-left: calc(-1 * var(--sp-3)); }
/* the price list: a row per thing RUVO charges for — its name, what it is counted by, the price on one right edge */
.rc-prices { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: var(--sp-4); }
.rc-pricelist { gap: 0; padding: var(--sp-1) var(--sp-5) var(--sp-3); }
.rc-pl-group { display: flex; flex-direction: column; }
.rc-pl-group + .rc-pl-group { margin-top: var(--sp-2); border-top: 1px solid var(--line); }
.rc-pl-h { display: flex; align-items: center; gap: var(--sp-2); margin: 0; padding: var(--sp-4) 0 var(--sp-1); }
.rc-pl-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 64px; padding: var(--sp-2) 0; }
.rc-pl-row + .rc-pl-row { border-top: 1px solid var(--line); }
.rc-pl-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; cursor: pointer; }
.rc-pl-name > span:first-child { color: var(--ink); font-weight: var(--fw-medium); }
.rc-pl-unit { color: var(--ink-3); font-size: var(--fs-sm); }
.rc-money {
  display: inline-flex; flex: none; align-items: center; width: 160px; height: var(--h-md);
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface);
}
.rc-money:focus-within { border-color: var(--accent); }
.rc-money.bad { border-color: var(--bad); }
.rc-money input {
  flex: 1 1 auto; min-width: 0; height: 100%; padding: 0 var(--sp-2) 0 var(--sp-3); border: 0; outline: 0;
  background: transparent; color: var(--ink); font-size: var(--fs-md); text-align: right; font-variant-numeric: tabular-nums;
}
.rc-money input::placeholder { color: var(--ink-3); }
.rc-cur { flex: none; width: 44px; padding-right: var(--sp-3); color: var(--ink-3); font-size: var(--fs-sm); font-weight: var(--fw-semibold); text-align: left; }
/* what the restaurant's price includes: under its row, in a quiet panel */
.rc-pl-inc { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); background: var(--surface-2); }
.rc-pl-inc p { margin: 0; color: var(--ink-2); font-size: var(--fs-sm); }
.rc-pl-steps { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); }
.rc-pl-step { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); }
.rc-pl-state { margin-left: var(--sp-3); white-space: nowrap; }
.rc-pl-bad { margin: var(--sp-2) 0 0; }
.rc-preview td { vertical-align: top; font-variant-numeric: tabular-nums; }
.rc-pv-name { display: block; }
.rc-pv-meta { display: block; margin-top: 2px; }
@media (min-width: 1100px) {
  .rc-prices { grid-template-columns: minmax(0, 1.4fr) minmax(340px, 1fr); }
  .rc-preview-card { position: sticky; top: calc(var(--h-md) + 2 * var(--sp-3) + var(--sp-4)); }
}

/* ---------- the owner's setup: what a new client sees after the invitation ---------- */
.rc-onb { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; overflow: auto; background: var(--bg); color: var(--ink); }
.rc-onb-top {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: var(--sp-3);
  padding: calc(var(--sp-3) + env(safe-area-inset-top, 0px)) var(--sp-6) var(--sp-3); border-bottom: 1px solid var(--line); background: var(--surface);
}
.rc-onb-who { flex: 1 1 auto; min-width: 0; color: var(--ink-2); font-size: var(--fs-sm); }
.rc-onb-body { display: flex; flex-direction: column; gap: var(--sp-4); width: 100%; max-width: 720px; margin: 0 auto; padding: var(--sp-6) var(--sp-5) var(--sp-8); }
.rc-steps { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); margin: 0; padding: 0; list-style: none; color: var(--ink-3); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.rc-steps li { display: inline-flex; align-items: center; gap: var(--sp-2); }
.rc-steps li.on { color: var(--ink); }
.rc-steps li.done { color: var(--ok); }
.rc-step-n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-3); color: var(--ink-2); font-size: var(--fs-xs); }
.rc-steps li.on .rc-step-n { background: var(--accent); color: var(--accent-ink); }
.rc-steps li.done .rc-step-n { background: var(--ok-soft); color: var(--ok); }
.rc-onb-card { display: flex; flex-direction: column; gap: var(--sp-5); padding: var(--sp-6); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-1); }
.rc-onb-sub { margin: var(--sp-3) 0 0; color: var(--ink); font-size: var(--fs-lg); font-weight: var(--fw-semibold); letter-spacing: normal; text-transform: none; }
.rc-choices { display: grid; gap: var(--sp-2); }
.rc-choice {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-1); padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.rc-choice.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.rc-choice:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rc-mods { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--sp-3) var(--sp-4); }
.rc-mod { align-items: flex-start; font-weight: var(--fw-medium); }
.rc-mod .switch-ui { margin-top: 2px; }
.rc-mod-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rc-devs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-3); }
.rc-dev { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); padding: var(--sp-3); border-radius: var(--r-md); background: var(--surface-2); }
.rc-dev .display { font-size: var(--fs-2xl); font-variant-numeric: tabular-nums; }
.rc-onb-cost { padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); background: var(--accent-soft); }
.rc-onb-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.rc-onb-hint { margin-top: calc(-1 * var(--sp-3)); }

@media (max-width: 480px) {
  .rc-money { width: 140px; }
  .rc-pricelist { padding-inline: var(--sp-4); }
}
@media (max-width: 720px) {
  /* the brand and «Сменить устройство» on one row, the tabs under them */
  .rc-top { padding: var(--sp-2) var(--sp-4); }
  .rc-top .seg { order: 3; width: 100%; }
  .rc-top .seg-btn { flex: 1 1 0; }
  .rc-top-r { margin-left: auto; }
  .rc-home-t { display: none; }
  .rc-main { padding: var(--sp-4) var(--sp-4) var(--sp-6); }
  .rc-sum { grid-template-columns: minmax(0, 1fr); }
  .rc-onb-top { padding-left: var(--sp-4); padding-right: var(--sp-4); }
  .rc-onb-body { padding: var(--sp-4) var(--sp-4) var(--sp-6); }
  .rc-onb-card { padding: var(--sp-4); }
  .l-brand-full { display: none; }
}

/* «Деньги» — app.ruvo.ac/eje (ui/money-*.jsx): the back office's frame and cards; amounts in tabular figures, what
   left in red, what waits for an article in the warning colour; the statement's table with its first column fixed. */
/* the firm this is (0.13): under the wordmark, on the row of the restaurants' picker in the back office
   (11 November) it is the back office's .of-scope-one now — the sidebar's row, on a phone under the page's title */
.mn-amt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.mn-neg { color: var(--bad); }
.mn-pos { color: var(--ok); }
.mn-zero { color: var(--ink-3); }
.mn-review-txt { color: var(--warn); }
.mn-ok-txt { display: flex; align-items: center; gap: var(--sp-2); color: var(--ok); }
.mn-note { padding: var(--sp-3); border-radius: var(--r-md); background: var(--warn-soft); color: var(--ink); }
/* ДДС: «в пути» below nothing — where the revenue comes from */
.mn-transit-note { display: grid; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.mn-transit-note p { margin: 0; line-height: 1.5; }
.mn-transit-note .btn { margin-left: var(--sp-1); vertical-align: baseline; }
.mn-empty { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-4); }
/* a flush card's head — its title, its «+ Место»: the card's air above it and under it, as much, before the table's
   heads or the list's line (with none under it they were 7 px under the button and the line right on it — the owner,
   18 October: «кнопки с плюсом очень близко к информации ниже») */
.mn-pad { padding: var(--sp-4); }
.mn-place { display: flex; align-items: center; gap: var(--sp-2); }
.mn-place > svg { flex: none; }
/* a bank account's number: under its name, in one piece (broken at its hyphens it took four lines on a phone) */
.mn-place-acc { display: block; padding-left: calc(18px + var(--sp-2)); color: var(--ink-3); font-size: var(--fs-sm); white-space: nowrap; }
.mn-row-review td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.mn-who { display: flex; flex-direction: column; gap: 2px; min-width: 160px; }
td > .mn-who { min-width: 160px; }
.nowrap { white-space: nowrap; }

.mn-form { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: flex-end; }
.mn-form > .field { flex: 1 1 200px; }
.mn-filters { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: flex-end; }
.mn-filters > .field { min-width: 150px; }
.mn-filters .field input { min-width: 0; }
/* (0.58) the search of «Операции» says what it finds — the other side, the note, a sum: room for its words */
.mn-filters > .mn-search { flex: 1 1 280px; min-width: 260px; }
.mn-check { padding: var(--sp-2) 0; border: 0; }
.mn-narrow { max-width: 320px; }
/* settings: the pencil of a row — «Переименовать» */
.mn-edit-cell { width: 1%; white-space: nowrap; }
/* «Сверка с банком» (0.37): the weekends — the bank pays them in on Monday; the month's total below */
.mn-cards tr.mn-weekend > td { background: var(--surface-2); }
.mn-cards tfoot th, .mn-cards tfoot td { border-top: 1px solid var(--line); font-weight: 600; }
/* Syrve's pivot «Тип оплаты»: what is read, then the sum to take */
.mn-pivot { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.mn-pivot p { margin: 0; }
.mn-learn { border: 1px solid var(--line); border-radius: var(--r-md); }
.mn-more { margin-top: var(--sp-2); }
.mn-line { display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-3); border-radius: var(--r-md); background: var(--surface-2); }
.mn-parts { display: flex; flex-direction: column; gap: var(--sp-3); }
.mn-part { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: flex-end; padding-bottom: var(--sp-3); border-bottom: 1px dashed var(--line); }
.mn-part > .field { flex: 1 1 180px; }

.mn-sumbar { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); align-items: baseline; padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--line); }
.card:not(.flush) .mn-sumbar { padding: var(--sp-3) 0; }
.mn-steps { display: flex; flex-direction: column; gap: var(--sp-3); margin: 0; padding-left: 1.4em; }
.mn-steps li { line-height: 1.5; }
/* a step: its words, its button at the end of the line, in the middle of the words' height; on a phone under them */
.mn-step { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-4); }
.mn-step > span { flex: 1 1 auto; min-width: 0; }
.mn-step > .btn { flex: none; }
@media (max-width: 600px) { .mn-step { flex-wrap: wrap; } }
.mn-month { display: grid; grid-template-columns: max-content max-content; gap: var(--sp-2) var(--sp-6); align-items: baseline; }
.mn-month > :nth-child(even) { text-align: right; }

.mn-cash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: var(--sp-4); align-items: start; }
.mn-cash .card-head h2 { display: flex; align-items: center; gap: var(--sp-2); }
.mn-bal { font-size: var(--fs-xl); font-weight: var(--fw-semibold); }
/* a register's four buttons: four equal ones on one line; on a narrower card two and two — never three and one left
   alone on a line of its own (the owner, 18 October: «кнопки кое-где съезжают»); the fee of «в пути» — one, as wide as
   its words */
.mn-cash { container-type: inline-size; }
.mn-cash-act { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-2); }
.mn-cash-act > .btn { min-width: 0; padding: 0 var(--sp-2); }
.mn-cash-act > .btn:only-child { grid-column: 1 / -1; justify-self: start; padding: 0 var(--sp-3); }
@container (max-width: 520px) { .mn-cash-act { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 260px) { .mn-cash-act { grid-template-columns: minmax(0, 1fr); } }

.mn-drop { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--sp-3); min-height: 140px; padding: var(--sp-5);
  border: 2px dashed var(--line-2); border-radius: var(--r-lg); background: var(--surface); color: var(--ink-2); text-align: center; }
.mn-drop.over { border-color: var(--accent); background: var(--surface-2); }
.mn-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--sp-3); }
.mn-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.mn-result .mn-facts { display: flex; flex-direction: column; gap: var(--sp-2); margin: 0; padding-left: 1.2em; }
.mn-preview td.small { max-width: 360px; }
.mn-map td { vertical-align: middle; }
.mn-map .select { min-width: 200px; }

/* (11 November: the articles — keys of the five under their groups' heads, the months — rows of a block: 99-money.css) */

/* the statement: wide, scrolls sideways under its fixed first column */
.mn-report-wrap { overflow-x: auto; }
.mn-report { min-width: 100%; border-collapse: separate; border-spacing: 0; }
.mn-report th, .mn-report td { white-space: nowrap; }
/* rows of whole pixels: at 1.4 × 16 px a row was 39.4 px, and the fixed first column — painted on its own — lost every
   other line under it to the rounding */
.mn-report tbody th, .mn-report tbody td { line-height: 22px; }
.mn-report thead th { line-height: 16px; }
/* (0.58: the groups of P&L go deeper — «Расходы на персонал» → «Оплата труда» → its articles: a wider column, a step of
   indent per level that is smaller on a phone) */
.mn-report { --mn-indent: 14px; }
.mn-report .mn-stick { position: sticky; left: 0; z-index: 1; min-width: 340px; max-width: 400px; background: var(--surface); text-align: left; white-space: normal; }
/* the row names are names, not column heads: the table's own case and size */
.mn-report tbody th { text-transform: none; letter-spacing: normal; font-size: var(--fs-md); font-weight: 400; color: var(--ink); }
.mn-report tbody tr.mn-r-group th { color: var(--ink-2); }
.mn-report thead .mn-stick { z-index: 2; }
.mn-report tr.mn-strong th, .mn-report tr.mn-strong td { font-weight: var(--fw-semibold); }
.mn-report tr.mn-r-section th, .mn-report tr.mn-r-section td { background: var(--surface-2); }
.mn-report tr.mn-r-section .mn-stick { background: var(--surface-2); }
.mn-report tr.mn-r-bal th, .mn-report tr.mn-r-bal td, .mn-report tr.mn-r-net th, .mn-report tr.mn-r-net td { border-top: 2px solid var(--line-2); }
.mn-report tr.mn-r-warn th, .mn-report tr.mn-r-warn td { color: var(--warn); }
.mn-report tr.mn-r-place th, .mn-report tr.mn-r-place td { color: var(--ink-2); font-size: var(--fs-sm); }
.mn-report td.mn-cell { cursor: pointer; }
.mn-report td.mn-cell:hover { background: var(--surface-2); text-decoration: underline; }
.mn-report thead th svg { margin-left: 4px; vertical-align: -1px; color: var(--ink-3); }
.mn-toggle { display: inline-flex; align-items: center; gap: var(--sp-1); padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
/* (0.58) a group's arrow hangs in its indent: its name stands where its neighbours' names do */
.mn-report .mn-fold { margin-left: calc(-14px - var(--sp-1)); text-align: left; }
.mn-report .mn-fold .ic { flex: 0 0 auto; color: var(--ink-3); }
@media (max-width: 640px) {
  .mn-report { --mn-indent: 10px; }
  .mn-report .mn-stick { min-width: 180px; }
  .mn-filters > .field { flex: 1 1 140px; }
}
.mn-op-who { margin-top: var(--sp-3); }

/* ---------- «Деньги» on a narrow screen (the visual audit, 18 October: «кнопки кое-где съезжают») ---------- */
/* tabs in a field or a card's column are as wide as their tabs — not a grey bar to the field's end with the tabs bunched
   at its start */
.mn-app .field > .seg, .mn-app .sheet-body > .seg { align-self: flex-start; }
/* a filter with tabs (Чьё: Всё · Ресторан · Отель · Общее) does not shrink beside a button and cut its tabs: the button
   goes to the next line */
.mn-app .mn-filters > .field:has(> .seg) { flex: 0 0 auto; max-width: 100%; }
@media (max-width: 700px) {
  /* tabs wider than the screen (Месяц · Год по месяцам, Все · К оплате · Оплаченные · Не долг, the tabs of a card):
     every tab in sight, on a second line if need be — not the last ones hidden behind the edge */
  .mn-app .seg { flex-wrap: wrap; overflow: visible; }
}
.mn-app .bl-sef > .row-gap { margin-left: auto; }
@media (max-width: 640px) {
  /* the page's own buttons: lines of their own across the page, the buttons sharing each line — not two and one
     hanging on the left */
  .mn-app .of-actions { width: 100%; }
  .mn-app .of-actions > .btn { flex: 1 1 auto; }
  /* the main one first, a line of its own; the others share the next */
  .mn-app .of-actions > .btn-primary { order: -1; flex-basis: 100%; }
  /* (a card's buttons: as the back office's — 12 November, the deep visual audit of «Деньги»: the main one had a line of
     its own, «Отмена» under it, no other sheet so) */
  /* SEF's two buttons share their line under the words */
  .mn-app .bl-sef > .row-gap { flex: 1 1 100%; margin-left: 0; }
  .mn-app .bl-sef > .row-gap > .btn { flex: 1 1 auto; }
}

/* «Обзор» → «Начало учёта», «Закрыть месяц», «Вопросы», «Пришло по почте» — on the brand's grid since 11 November:
   99-money.css */
/* «Выписки» → «Отменить» (0.36) */
.mn-st-undo { text-align: right; }
.mn-st-undo .row-gap { justify-content: flex-end; flex-wrap: wrap; }
.mn-st-reason { min-width: 200px; }
/* (0.41) a row whose money all went to bills: P&L goes by the bills' months */
.mn-form > .mn-billed-note { flex: 1 1 200px; margin: 0 0 var(--sp-2); align-self: center; }
/* (0.44) a safe into its register: one «Наличные» */
.mn-merge { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--line); }
.mn-merge p { margin: 0; }
/* (0.47) «Настройки» → «Подключения»: the Syrve server — what is known of it as a list of facts, the form under it */
.sy-card .card-head { align-items: center; }
.sy-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--sp-2) var(--sp-4); margin: 0 0 var(--sp-3); }
.sy-facts dt { color: var(--ink-2); }
.sy-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.sy-facts dd .select { max-width: 360px; }
.sy-field { display: inline-block; margin-right: var(--sp-3); white-space: nowrap; }
.sy-field.ok { color: var(--ok); }
.sy-field.no { color: var(--bad); }
.sy-form { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-3); }
.sy-acts { flex-wrap: wrap; margin-top: var(--sp-3); }
@media (max-width: 600px) {
  .sy-facts { grid-template-columns: minmax(0, 1fr); gap: 2px var(--sp-3); }
  .sy-facts dd { margin-bottom: var(--sp-2); }
  /* a phone: the card's buttons across their rows, none left alone on a line */
  .sy-acts > .btn, .sy-pl-acts > .btn, .sy-pl-acts > .select { flex: 1 1 auto; }
  .sy-pl-acts { align-self: stretch; }
}
/* (0.48) the takings from Syrve: the period and its two buttons, the new ways of paying, the days that differ */
.sy-takings { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.sy-takings h3 { margin: 0; font-size: var(--fs-lg); }
.sy-takings p { margin: 0; }
.sy-pull-acts { align-self: flex-end; flex-wrap: wrap; }
/* (0.54) P&L from Syrve: each month's state, the month to update, the button */
.sy-pl-months { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 2px; }
.sy-pl-acts { align-self: flex-start; align-items: center; }
.sy-pl-acts .select { width: auto; min-width: 160px; }
.sy-ways { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3); border-radius: var(--r-md); background: var(--warn-soft, var(--surface-2)); }
.sy-way { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-3); }
.sy-way .select { min-width: 240px; flex: 0 1 320px; }
.sy-days tr.sy-differ td:first-child { color: var(--bad); font-weight: var(--fw-semibold); }
.sy-takings > .btn { align-self: flex-start; }
/* (0.49) what came by e-mail («Обзор») and the firm's address for it («Подключения») */
.mm-address { flex-wrap: wrap; margin-bottom: var(--sp-2); }
.mm-address code { padding: 6px 10px; border-radius: var(--r-sm); background: var(--surface-2); font-size: var(--fs-md); overflow-wrap: anywhere; }

/* (0.56) «Расходы наличными»: the look before loading */
.co-file { display: flex; flex-direction: column; gap: var(--sp-2); }
.co-file .field { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.co-file .field .field-label { flex-basis: 100%; }
.co-look { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-3); }
.co-look p { margin: 0; }
.co-block { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-2); }
.co-block h3 { margin: 0; font-weight: var(--fw-semibold); }
.co-block summary { cursor: pointer; }
.co-block .select { min-width: 12rem; max-width: 22rem; }
.co-wait td:first-child { color: var(--warn); }
.co-guess { margin-left: var(--sp-2); }

/* (0.57) «Виды оплаты и куда они идут» under the Syrve comparison */
.sy-ways-all { margin-top: var(--sp-2); }
.sy-ways-all summary { cursor: pointer; }
.sy-ways-all .table-wrap { margin-top: var(--sp-2); }
.sy-ways-all .select { min-width: 12rem; max-width: 20rem; }
.sy-ways-all p { margin: var(--sp-2) 0 0; }
/* (0.68) «Расходы с iPad»: what for → its article, three to a row — an article's name whole in its field; one under
   another on a phone */
.mn-form.rc-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) { .mn-form.rc-kinds { grid-template-columns: minmax(0, 1fr); } }

/* «P&L и бюджет» — app.ruvo.ac/eje (ui/pl-*.jsx): the statement's table (the first column fixed, as «Деньги»), the
   deviation good or bad by the line's direction, the budget's cells typed in place, the mapping of a report's lines. */
.pl-good { color: var(--ok); }
.pl-bad { color: var(--bad); }
/* (11 November: the month's reports are cells of the page's row — 99-money.css) */
.pl-ytd { border-left: 1px solid var(--line); }

.pl-budget td.pl-cell { padding: 2px 4px; }
.pl-cell input { width: 100%; min-width: 84px; padding: 4px 6px; border: 1px solid transparent; border-bottom-color: var(--line); border-radius: var(--r-sm);
  background: transparent; color: var(--ink); font: inherit; font-variant-numeric: tabular-nums; text-align: right; }
.pl-cell input::placeholder { color: var(--ink-3); }
.pl-cell input:hover { border-color: var(--line); }
.pl-cell input:focus { border-color: var(--accent); background: var(--surface); outline: none; }
.pl-cell input.bad { border-color: var(--bad); }
.pl-dirty input { background: var(--warn-soft); }
.pl-row-name { display: inline-flex; align-items: center; gap: var(--sp-1); }
.pl-fill { display: inline-flex; padding: 2px; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink-3); cursor: pointer; opacity: 0; }
tr:hover .pl-fill, .pl-fill:focus-visible { opacity: 1; }
@media (hover: none) { .pl-fill { opacity: 1; } }

.pl-map { max-height: 55vh; overflow: auto; }
.pl-map td { vertical-align: middle; }
.pl-map-type { background: var(--surface-2); font-weight: var(--fw-semibold); text-align: left; }
.pl-map-pick { min-width: 260px; }
.pl-map-pick > .muted { display: block; margin-top: 2px; }
/* (0.54) «Взять из Syrve»: the button and what it does; where the lines came from; the restaurant's month */
.pli-syrve { flex-wrap: wrap; align-items: center; margin-top: var(--sp-2); }
.pli-api { display: flex; flex-direction: column; gap: var(--sp-1, 4px); margin-top: var(--sp-2); padding: var(--sp-3); border-radius: var(--r-md); background: var(--surface-2); }
.pli-api p { margin: 0; }
.pli-unit { display: inline-flex; align-items: center; min-height: var(--h-md); font-weight: var(--fw-semibold); }
.pl-map tr.off > td:not(.pl-map-pick) { color: var(--ink-3); }
.pl-drill h3 { margin: var(--sp-3) 0 var(--sp-2); font-size: var(--fs-md); }
.pl-void { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-3); padding: var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-md); }

/* (11 November: the tree of the lines — the five columns of the grid, a line a row — 99-money.css) */

/* a section's or a group's row folds what is under it (P&L and the budget alike) */
.pl-toggle { text-align: left; }
.pl-toggle .ic { flex: 0 0 auto; color: var(--ink-3); }
.pl-leaf { padding-left: calc(14px + var(--sp-1)); } /* the arrow's 14 px and the gap after it */

/* (0.58) «ДДС = P&L» in «Настройки»: the state, what «Сравнять» would change — lists, each its own heading */
.pl-align-part { margin-bottom: var(--sp-4); }
.pl-align-part h3 { margin: 0 0 var(--sp-2); font-size: var(--fs-md); }
.pl-align-part p { margin: 0 0 var(--sp-2); }
.pl-align-list { margin: 0; padding-left: var(--sp-5, 20px); }
.pl-align-list li { padding: 2px 0; overflow-wrap: anywhere; }
.pl-align-group { font-size: var(--fs-sm); }
/* «По строкам P&L» folds its articles: the toggle reads as the other groups' names; how many and why — in plain case;
   under it the groups of P&L, a step lower: in plain case, indented */
.pl-map-type .mn-toggle { text-transform: inherit; letter-spacing: inherit; }
.pl-map-note { color: var(--ink-3); font-weight: var(--fw-regular, 400); letter-spacing: normal; text-transform: none; }
.card.flush .tbl-data .pl-map-sub > th { padding-left: calc(var(--sp-4) + var(--sp-4)); background: var(--surface); color: var(--ink-2); font-size: var(--fs-sm);
  font-weight: var(--fw-semibold); letter-spacing: normal; text-align: left; text-transform: none; white-space: normal; }

/* (0.94) the budget as the owner's sheet counts it: a counted line's mark — ƒ a formula's (a percent of revenue), ÷ one
   divided between the units — its cells read, not typed; «Коэффициенты»: the growth, the percents, the divided lines */
.pl-mark { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; margin-left: var(--sp-1); padding: 0 4px;
  border-radius: var(--r-pill); background: var(--accent-soft, var(--surface-2)); color: var(--accent); font-size: 12px; font-style: italic; font-weight: var(--fw-semibold); line-height: 1; cursor: help; }
.pl-budget tr.pl-counted td.num { color: var(--ink-2); }
.pl-coef-table .pl-cell input { min-width: 64px; }
.pl-coef-table td.pl-coef-year, .pl-coef-table th.pl-coef-year { border-right: 1px solid var(--line); background: var(--surface-2); }
.pl-coef-table td.pl-coef-base { min-width: 220px; padding: 2px var(--sp-2); }
.pl-coef-table td.pl-coef-x { width: 36px; padding: 2px; }
/* (11 November: the three blocks of «Коэффициенты» and the divided lines' rows are on the grid — 99-money.css) */

/* «Счета» — app.ruvo.ac/eje (ui/bills.jsx): SEF connected or not, the payment calendar by due day, who is owed what,
   the bills without an article to say what they are, a bill's card; a row's bills in its sheet; the split of what is
   shared by revenue (P&L and the cash flow). */
/* (11 November: SEF's row, the calendar's figures, the review rows and the file's plan are on the grid — 99-money.css) */
.bl-how { margin: 0 0 var(--sp-3); padding-left: var(--sp-5); color: var(--ink-2); font-size: var(--fs-sm); }
.bl-how li + li { margin-top: var(--sp-1); }

.bl-sup { font-weight: var(--fw-medium); }
.bl-cal tr.bl-day th { padding-top: var(--sp-3); background: var(--surface-2); font-weight: var(--fw-semibold); text-align: left; }
.bl-cal tr.bl-day th.num { text-align: right; }
.bl-cal tr.bl-day.bad th { color: var(--bad); }
.bl-after { font-weight: var(--fw-regular, 400); color: var(--ink-3); }
.bl-after.neg { color: var(--bad); font-weight: var(--fw-semibold); }
.bl-sup-bills { max-height: 40vh; overflow: auto; margin-top: var(--sp-3); }

.bl-status { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); margin-bottom: var(--sp-3); }
.bl-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--sp-3); padding: var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-md); }
.bl-facts > div { display: flex; flex-direction: column; gap: 2px; }
.bl-facts b { font-variant-numeric: tabular-nums; }
.bl-payto { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-top: var(--sp-3); }
.bl-copy { display: inline-flex; align-items: center; gap: var(--sp-1); padding: 4px var(--sp-2); border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); font-size: var(--fs-sm); cursor: pointer; }
.bl-copy:hover { border-color: var(--accent); }
.bl-copy .ic { color: var(--ink-3); }
.bl-h { margin: var(--sp-4) 0 var(--sp-2); font-size: var(--fs-md); font-weight: var(--fw-semibold); }
button.bl-h { display: inline-flex; }
.bl-pays td { vertical-align: middle; }
.bl-op-link { font-size: inherit; text-align: left; }
.bl-payact { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); margin-top: var(--sp-3); }
.bl-cands { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-3); }
.bl-cands table td { vertical-align: middle; }
tr.bl-theirs td { background: var(--accent-soft); }
.bl-cash { align-items: end; margin-top: var(--sp-3); }
.bl-lines td { font-size: var(--fs-sm); }

.bl-op-bills { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin: var(--sp-2) 0 var(--sp-3); }
.bl-op-bills > .field-label { flex: 0 0 100%; }
.bl-chip { display: inline-flex; align-items: center; gap: var(--sp-1); padding: 4px var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink); font-size: var(--fs-sm); cursor: pointer; }
.bl-chip:hover { border-color: var(--accent); }
/* (0.41) the month of P&L the money went to; a long chip wraps on a phone */
.bl-op-bills .bl-chip { flex-wrap: wrap; max-width: 100%; text-align: left; border-radius: var(--r-lg); }
.bl-chip-pl { color: var(--accent); font-weight: var(--fw-medium, 500); }

/* the split of what is shared by each month's revenue (its note — a note row of the page, 11 November) */
.mn-report tr.pl-share-row th, .mn-report tr.pl-share-row td { color: var(--ink-3); font-size: var(--fs-sm); font-weight: var(--fw-regular, 400); }

/* «Из файла» (0.36): the owner's file of invoices carried over — the columns, the rows as read, what the server would
   do with each kind of row (each kind folds), the uploads with «Отменить загрузку» */
.bf-rows td, .bf-rows th { white-space: nowrap; }
.bf-rows td:nth-child(2) { white-space: normal; min-width: 180px; }
.bf-group .table-wrap { max-height: 50vh; overflow: auto; }
/* (0.51) a bill here already that the file marks «оплачен до начала учёта» */
.bf-mark { color: var(--ok); }
.bf-undo { text-align: right; }
.bf-undo .row-gap { justify-content: flex-end; flex-wrap: wrap; }
.bf-reason { min-width: 200px; }

/* «Отчёт ресепшена» (ui/money-reception.jsx, server 0.52): the day's bar, a card for each way of paying with its
   payments and their lines (a room, what for, the sum, a note — on a phone two lines), the safe against RUVO, the
   comment, the message as it goes to Telegram, the last days. */
.rp-page { display: flex; flex-direction: column; gap: var(--sp-4); }
.rp-page > .card { margin: 0; }
.rp-daybar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.rp-day input { min-height: 40px; padding: 0 var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font: inherit; }
.rp-wd { color: var(--ink-3); min-width: 2.5em; }
.rp-status { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.rp-sum { font-size: var(--fs-lg, 1.125rem); font-weight: var(--fw-semibold); }

/* a payment: its number, who paid, its sum, × — then its lines */
.rp-pay { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3) 0; border-top: 1px solid var(--line); }
.rp-pay-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: var(--sp-2); }
.rp-pay-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); color: var(--ink-3); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.rp-pay-sum { font-weight: var(--fw-semibold); }
.rp-pay input, .rp-part input { min-width: 0; min-height: 40px; padding: 0 var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font: inherit; }
.rp-pay input:focus, .rp-day input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.rp-part { display: grid; grid-template-columns: 6.5rem minmax(9rem, 14rem) 9rem minmax(0, 1fr) auto; align-items: center; gap: var(--sp-2); }
.rp-part .rp-kind { min-width: 0; }
.rp-amt { text-align: right; font-variant-numeric: tabular-nums; }
.rp-part input.bad, .rp-fact input.bad { border-color: var(--bad); }
.rp-addpart { align-self: flex-start; }
.rp-addpay { align-self: flex-start; margin-top: var(--sp-2); }
.rp-hint { margin: var(--sp-2) 0 0; }

/* (0.55) the cash paid out: what for, to whom, the sum, a note, × */
.rp-exp-row { grid-template-columns: minmax(14rem, 22rem) minmax(8rem, 12rem) 9rem minmax(0, 1fr) auto; }
.rp-exp-row .rp-art, .rp-exp-row .rp-who { min-width: 0; }
.rp-exp-row .select { width: 100%; }
.rp-exp .rp-addpay { margin-top: var(--sp-2); }

/* the safe against RUVO */
.rp-ok { margin-top: var(--sp-2); }
.rp-fact { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-3); margin-top: var(--sp-2); }
.rp-fact .field { flex: 0 1 220px; }
.rp-fact input { text-align: right; font-variant-numeric: tabular-nums; }
.rp-diff { padding-bottom: 10px; font-weight: var(--fw-semibold); }

.rp-end { display: flex; flex-direction: column; gap: var(--sp-3); }
.rp-end textarea { width: 100%; min-height: 64px; padding: var(--sp-2) var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font: inherit; resize: vertical; }
.rp-totals { line-height: 1.6; }
.rp-preview-box summary { cursor: pointer; color: var(--accent); font-weight: var(--fw-semibold); }
.rp-preview { margin: var(--sp-2) 0 0; padding: var(--sp-3); border-radius: var(--r-md); background: var(--surface-2); color: var(--ink); font-family: var(--font-ui); font-size: var(--fs-sm); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.rp-list tr.on td { background: var(--accent-soft); }

/* a phone: a line in two rows — the room and what for; the sum, × — and the note under them */
@media (max-width: 640px) {
  .rp-part { grid-template-columns: 5rem minmax(0, 1fr) auto; grid-template-areas: 'room kind kind' 'amt amt drop' 'note note note'; }
  .rp-part .rp-room { grid-area: room; }
  .rp-part .rp-kind { grid-area: kind; }
  .rp-part .rp-amt { grid-area: amt; }
  .rp-part .rp-note { grid-area: note; }
  .rp-part .rp-drop { grid-area: drop; }
  .rp-part + .rp-part { padding-top: var(--sp-2); border-top: 1px dashed var(--line); }
  /* an expense: what for across; to whom, the sum, ×; the note */
  .rp-exp-row { grid-template-columns: minmax(0, 1fr) 8rem auto; grid-template-areas: 'art art art' 'who amt drop' 'note note note'; }
  .rp-exp-row .rp-art { grid-area: art; }
  .rp-exp-row .rp-who { grid-area: who; }
}

/* «Подключения» → Telegram: the reception's chat under the bot's own */
.tg-rc { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-2); padding-top: var(--sp-3); border-top: 1px solid var(--line); }
.tg-rc p { margin: 0; }
.tg-rc-h { margin: 0; font-size: var(--fs-md, 16px); font-weight: var(--fw-semibold); }

/* (0.56) an expense that was another unit's (the restaurant's wages out of the hotel's safe) — under its row */
.rp-exp-row .rp-unit { grid-column: 1 / -1; }
/* «Загрузить прошлые дни» */
.rpi-sum { display: flex; flex-direction: column; gap: var(--sp-1); margin-top: var(--sp-3); }
.rpi-sum p { margin: 0; }

/* ---------- «Зарплата» in «Деньги» (ui/money-pay.jsx, server 0.61): the month's schedule — a person a row, a day a
   cell; the month's pay; the positions and the people ---------- */
.pr-month { flex-wrap: nowrap; }
.pr-month .sc-week-t b { min-width: 9.5em; text-align: center; }

/* the month: up to 31 narrow day columns — the whole month and its sums fit a laptop's screen; narrower, it scrolls
   inside the card and the names stay on the left */
.pr-table { min-width: calc(120px + 60px + 88px + var(--pay-days, 31) * 26px); }
.pr-table .sc-who { width: 120px; }
.pr-table .sc-sum { width: 60px; }
.pr-table thead th.sc-day { font-size: var(--fs-xs); line-height: var(--lh-tight); }
.pr-table thead th.sc-day span { display: block; }
.pr-table thead th.pr-we { color: var(--ink-3); }
.pr-table .pr-sum { width: 88px; }
.pr-table .sc-td { padding: 2px 1px; }
.pr-cell { min-height: 34px; padding: 2px 0; font-size: var(--fs-sm); letter-spacing: -0.02em; }
.pr-cell.empty { color: var(--ghost); }
.pr-cell.off { color: var(--ink-3); }
/* worked otherwise than planned: the hours worked, marked */
.pr-cell.pr-fixed { background: var(--warn-soft); color: var(--warn); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 45%, transparent); }
.pr-cell .sc-role { font-size: 10px; line-height: 1; }
.pr-who { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pr-who:hover .sc-name { color: var(--accent); text-decoration: underline; }
.pr-who:disabled { cursor: default; }
.pr-who:disabled:hover .sc-name { color: inherit; text-decoration: none; }

.pr-presets { margin: calc(-1 * var(--sp-1)) 0 var(--sp-2); }

/* the month's pay */
.pr-calc td { vertical-align: top; }
.pr-adj { font-variant-numeric: tabular-nums; }

/* positions and people: a row opens its sheet */
.pr-list tr { cursor: pointer; }
.pr-list tr:hover td { background: var(--surface-2); }
.pr-list .pr-line { display: block; }

/* ---------- tiles: plates chosen by a finger, side by side, no room between them ----------
   (29 October, the owner on the iPad: «карточки блюд не должны иметь места между друг другом», «при выборе кол-ва
   гостей тоже не должно быть расстояния между плашками»; then «Давай аудит всего фронта по сетке») Every block of
   plates the front chooses from is one block: the ways of paying, the tips, the discounts, the tables to move to, the
   PIN's keys, the guests (the dishes are tiles of the screen's grid, 40-ipad.css). The plates touch; one hairline
   between neighbours and round the block — each plate draws it on its own left and top inside, on its right and bottom
   outside, so two neighbours share one line whatever the number of columns, and a row left short ends cleanly. The
   chosen plate is filled and ringed inside; a plate that cannot be chosen is greyed, not faded (its lines stay). */
.method-grid, .tip-opts, .disc-choices, .move-grid, .pin-grid, .guest-grid {
  --tile-line: var(--line-2);
  --tile-lines: 1px 0 0 0 var(--tile-line), 0 1px 0 0 var(--tile-line), 1px 1px 0 0 var(--tile-line),
    inset 1px 0 0 0 var(--tile-line), inset 0 1px 0 0 var(--tile-line);
  gap: 0; padding: 0 1px 1px 0; overflow: visible; border: 0; border-radius: 0;
}
.method, .tip-opt, .disc-choice, .move-btn, .pin-key, .guest-btn {
  border: 0; border-radius: 0; box-shadow: var(--tile-lines);
}
.method:hover:not(:disabled), .tip-opt:hover:not(:disabled), .disc-choice:hover, .move-btn:hover:not(:disabled), .guest-btn:hover {
  border-color: transparent; background: var(--surface-2);
}
.method.on, .tip-opt.on, .move-btn.on {
  position: relative; z-index: 1; background: var(--accent-soft);
  /* (29 October: «Линии не должны задваиваться») the chosen plate's line becomes its frame, 2px wide on the line's own
     pixels — not a ring beside the grey line; above its neighbours, whose lines it covers */
  box-shadow: 1px 0 0 0 var(--accent), 0 1px 0 0 var(--accent), 1px 1px 0 0 var(--accent),
    inset 2px 0 0 0 var(--accent), inset 0 2px 0 0 var(--accent), inset -1px 0 0 0 var(--accent), inset 0 -1px 0 0 var(--accent);
}
.method:active:not(:disabled), .tip-opt:active:not(:disabled), .disc-choice:active, .move-btn:active:not(:disabled), .pin-key:active, .guest-btn:active {
  background: var(--accent-soft);
}
.method:disabled:not(.on), .tip-opt:disabled:not(.on), .move-btn:disabled {
  opacity: 1; background: var(--surface-2); color: var(--ink-3);
}
.method:focus-visible, .tip-opt:focus-visible, .disc-choice:focus-visible, .move-btn:focus-visible, .pin-key:focus-visible, .guest-btn:focus-visible {
  outline-offset: -3px;
}
/* (the guests' block was the first: its own border and rounded corners give way to the lines above) */
.guest-btn:nth-child(4n), .guest-btn:nth-last-child(-n + 4) { border: 0; }
/* the PIN's keys: as wide and tall as before, in one block (the empty place left of 0 stays empty) */
.pin-grid { justify-content: center; }
.pin-key { background: var(--surface); }
.lock .pin-key { border-radius: 0; }

/* the buttons of a sheet's foot are one height: «Отмена» beside «Закрыть стол» was 44px beside 52 */
.ipad .sheet-foot .btn, .phone-shell .sheet-foot .btn, .kds .sheet-foot .btn { min-height: var(--h-lg); }

/* ---------- plates from edge to edge (29 October, the owner on his iPhone) ----------
   The guests' numbers: «может не делать поля слева и справа и сверху в блоке, а занять его целиком блоками с цифрами?»
   — the sheet's body has no padding (Sheet flush); the numbers fill it. Lines only between the plates, each drawn by
   the plate after it, inside its own left and top (a line drawn outside would lie under its neighbour's background):
   the sheet's head line is the block's top (a plate's own top line beside it would double it), its sides are the
   sheet's edges, its bottom the screen's very edge — no band under it on a phone (21:47, the owner: «пустое поле снизу
   не нужно, можно начинать блок цифр прям с нижнего края экрана»): the home indicator lies over the last row's lower
   part, as over the PIN's keys. */
.sheet-body.flush { gap: 0; padding: 0; }
/* (the phone's digits as the PIN's: 28 semibold) */
.phone .guest-btn .display { font-weight: var(--fw-semibold); }
.sheet-body.flush > :not(.guest-grid) { margin: var(--sp-4) var(--sp-5); }
.sheet-body.flush > .guest-grid { padding: 0; }
.sheet-body.flush .guest-btn { box-shadow: inset 1px 0 0 0 var(--tile-line), inset 0 1px 0 0 var(--tile-line); }
.sheet-body.flush .guest-btn:nth-child(4n + 1) { box-shadow: inset 0 1px 0 0 var(--tile-line); }
.sheet-body.flush > .guest-grid:first-child .guest-btn:nth-child(-n + 4) { box-shadow: inset 1px 0 0 0 var(--tile-line); }
.sheet-body.flush > .guest-grid:first-child .guest-btn:first-child { box-shadow: none; }

/* The waiter's iPhone, the PIN: «Кнопки при входе слишком маленькие — может сделаем их на всю ширину?» — the keys from
   edge to edge (47-access.css); a line above the block and between the keys, each drawn inside the key after it. */
.lock-compact .pin-grid { width: 100%; padding: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lock-compact .pin-key {
  width: auto; height: var(--key-h); font-size: var(--fs-2xl); font-weight: var(--fw-semibold);
  box-shadow: inset 1px 0 0 0 var(--tile-line), inset 0 1px 0 0 var(--tile-line);
}
.lock-compact .pin-key:nth-child(3n + 1) { box-shadow: inset 0 1px 0 0 var(--tile-line); }

/* ---------- the brand grid's short last row: the lines round its end ----------
   (2 November, the owner: «в ней не должно быть пустых блоков», then «Не растягивай блоки, они все должны быть
   квадратами») Every tile is one column of its grid, a short last row is short — ten tables at three to a row
   3 + 3 + 3 + 1 — and after its last tile the grid's own ground: no blank tile, no line across it. The lines go round
   that end as round a tile, each drawn outside the tile on the pixels where the next tile's own line would lie, so they
   meet the lines of the rows above edge to edge: the last tile of the short row its line at the right (data-rl), a tile
   with nothing under it its line below (data-rb) — ui/even-grid.jsx marks them, each grid's tile adds --rim to its
   lines. Under the waiter's tables, the profile's tiles and the phone's dishes the line closing the last row comes from
   the empty block below them, across the whole width: under a short row the tiles draw it themselves (data-rz, in a
   grid marked data-tail) and the block draws none, so it stops where they stop — the vertical line at their end
   reaches it. The kitchen's tickets, the pickup board's numbers, the back office's cards and the guest app's tables, tips
   and hours draw their own line under them already: only the right one is theirs to add. */
:is(.pt-grid, .pf-grid, .mt-grid)[data-tail] > [data-rz], :is(.pt-grid, .pf-grid, .mt-grid) > [data-rb] { --rim: 0 1px 0 0 var(--line-2); }
:is(.pt-grid, .pf-grid, .mt-grid)[data-tail] > [data-rl] { --rim: 0 1px 0 0 var(--line-2), 1px 0 0 0 var(--line-2), 1px 1px 0 0 var(--line-2); }
.pt-grid[data-tail] + .pt-fill > span, .mt-grid[data-tail] + .mt-fill > span, .pf-grid[data-tail] + .pf-fill { box-shadow: none; }
/* the tables to move to, the kiosk's dishes, its choices, its «к заказу»: nothing of theirs under the last row (the
   sheet's foot, the next category's band closes it) */
:is(.move-grid, .ks-grid, .ks-opts, .ks-up-list) > [data-rb] { --rim: 0 1px 0 0 var(--line-2); }
:is(.move-grid, .ks-grid, .ks-opts, .ks-up-list) > [data-rl] { --rim: 1px 0 0 0 var(--line-2); }
:is(.kds-grid, .bd-list, .gu-tables, .gu-tips, .gu-slots) > [data-rl], .front-look :is(.of-page > :is(.kpi-row, .two-col, .sum-grid, .ig-grid, .int-grid, .loc-grid), .rg-grid, .card > .reconcile-row) > [data-rl] {
  --rim: 1px 0 0 0 var(--line-2);
}

/* (server 0.81) «Что сделать»: the server's tips in «Сводка» and «Деньги». A list, not a wall of cards: each tip a block
   with a thin rule on its left — the colour of trouble (warn), of good news (ok) —, its sum on the right in tabular
   figures, what to do under the sentence, the buttons quiet until needed */
/* (11 November) a block of the brand's grid: a tip a row, its keys a row of the five (99-money.css) */

/* (server 0.82) «Сколько стоит бизнес» and (0.84) the norm of the food's cost — on the grid since 11 November (99-money.css) */

/* «Ещё …» under the tips (more than five): its key the whole row, the line over it — not the key grid's line under it
   (13 November: in a sheet the row hung under the tips' keys with no line between) */
.front-look .dt-keys.dl-row.todo-more-row > .dt-key { box-shadow: inset 0 1px 0 0 var(--zl); }

/* ---------- the iPad's front as the waiter's iPhone (1 November) ----------
   The owner, 1 November, 15:23: «давай нашу логику визуала официантского приложения применим для фронта айпада»; of the
   two ways asked for each — the hall «План в новом стиле», the tabs «Пилюля внизу». The phone's logic (50-phone.css):
   big keys one cannot miss, few words, straight edges, two zones on the whole screen, three styles of letters (22
   semibold, 16 semibold, 14 regular) and the figures of an instrument, the pills as the language of keys, the glass
   of iOS 26, the green dot «на связи». Here: no bar of keys on top — each screen its header; the tabs one glass pill
   at the bottom; the plan's tables tiles; the order's header pills; the lock two zones, the keys from edge to edge. */

.app.ipad { position: relative; }
.ipad {
  --key-h: 64px; --fade-h: 28px; --fade-0: rgb(255 255 255 / 0);
  --tab-top: calc(64px + max(var(--sp-3), env(safe-area-inset-bottom, 0px)));
  --tab-room: calc(var(--tab-top) + var(--sp-5));
  --glass: rgb(255 255 255 / 0.55); --glass-rim: rgb(255 255 255 / 0.75); --glass-top: rgb(255 255 255 / 0.9); --glass-shadow: 0 12px 30px rgb(19 24 36 / 0.16);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ipad { --fade-0: rgb(22 25 32 / 0); --glass: rgb(36 40 49 / 0.55); --glass-rim: rgb(255 255 255 / 0.12); --glass-top: rgb(255 255 255 / 0.16); --glass-shadow: 0 12px 30px rgb(0 0 0 / 0.5); } }
:root[data-theme="dark"] .ipad { --fade-0: rgb(22 25 32 / 0); --glass: rgb(36 40 49 / 0.55); --glass-rim: rgb(255 255 255 / 0.12); --glass-top: rgb(255 255 255 / 0.16); --glass-shadow: 0 12px 30px rgb(0 0 0 / 0.5); }
.ipad .btn { border-radius: var(--r-pill); }
/* the captions (10-base.css: 12 semibold capitals) in the screen's small letters, as the iPhone's: 14 regular, no
   capitals — three styles of letters on a screen */
.ipad :is(.caption, .field-label, .tile-l, .course-head, .tl-cat) { font-size: var(--fs-sm); font-weight: var(--fw-regular); letter-spacing: 0; text-transform: none; }
/* (as the iPhone's) a sum in the figures of an instrument, its currency beside it in the screen's own letters */
.ipad .money-u { font-family: var(--font-ui); letter-spacing: 0; }
.ipad-screen { position: relative; flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--surface); }

/* a screen's header: under the clock the screen's own shade, a light gradient of it; one row as tall as a key — the
   title 22 semibold (the green dot «на связи» beside it) and one line under it, 14 regular; «‹» a round pill at the left;
   its pills at the right, 44 high, the screen's small letters; a line under the header */
.ipad .ph-head {
  position: relative; z-index: 1; display: grid; flex: none; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0;
  min-height: calc(var(--key-h) + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 0 0; border-bottom: 0;
  background: linear-gradient(180deg, color-mix(in oklab, var(--bg), var(--accent) 4%), color-mix(in oklab, var(--bg), var(--surface) 35%));
  box-shadow: 0 1px 0 0 var(--line-2);
}
.ipad .ph-head.no-left { grid-template-columns: minmax(0, 1fr) auto; padding-left: var(--sp-5); }
.ipad .ph-left, .ipad .ph-right { display: flex; align-self: stretch; align-items: center; gap: var(--sp-2); min-width: 0; }
.ipad .ph-left { padding-left: var(--sp-5); }
.ipad .ph-right { justify-content: flex-end; padding-right: var(--sp-5); }
.ipad .ph-head:not(.no-left) .ph-titles { padding-left: var(--sp-4); }
.ipad .ph-titles { min-width: 0; }
.ipad .ph-title { display: flex; align-items: center; gap: var(--sp-1); min-width: 0; font-size: var(--fs-xl); font-weight: var(--fw-semibold); letter-spacing: 0; line-height: 28px; }
.ipad .ph-title > span:first-child { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ipad .ph-sub { overflow: hidden; color: var(--ink-2); font-size: var(--fs-sm); line-height: 18px; white-space: nowrap; text-overflow: ellipsis; }
.ipad .ph-sub .timer { font: inherit; }
/* (1 November, the audit: the order's line under its title in one line — it had wrapped, «· 14:01» alone under it; when
   the column is narrow the hour it was opened gives way, how long it is open stays) */
.ipad .ph-titles { container-type: inline-size; }
.ipad .ph-sub .os-meta { display: inline; }
@container (max-width: 260px) { .ipad .ph-sub .os-opened { display: none; } }
.ipad .ph-right > .sync-live, .ipad .ph-right > .sync-local { display: none; }
.ipad .ph-pill { height: 44px; padding: 0 var(--sp-4); gap: var(--sp-1); font-size: var(--fs-sm); }
.ipad .ph-pill:disabled { opacity: 0.45; cursor: default; }
.ipad .ph-pill::before { content: ''; position: absolute; inset: calc((44px - var(--key-h)) / 2) calc(var(--sp-2) / -2); }
.ipad .ph-back { width: 44px; padding: 0; }
.ipad .ph-head .ph-back.back-btn { align-self: center; margin: 0; }
.ipad .ph-back::before { left: calc(var(--sp-5) * -1); right: calc(var(--sp-4) / -2); }
.ipad .ph-right > .line-chip { position: relative; height: 44px; min-height: 0; padding: 0 var(--sp-4); border-radius: var(--r-pill); font-weight: var(--fw-regular); }
.ipad .hall-pills { padding: 0; }
.ipad .hall-pill { height: 44px; padding: 0 var(--sp-5); }
.ipad .hall-pill::before { inset: calc((44px - var(--key-h)) / 2) calc(var(--sp-2) / -2); }
.ipad .hall-pill:not(.on) { background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-rim), 0 2px 8px rgb(19 24 36 / 0.08); }
.ipad .hall-pill:active:not(.on) { background: var(--pill-press); }
.ipad .hall-pill.call-ready::after, .ipad .hall-pill.call-bill::after { border-color: var(--bg); }
/* «+ Wolt», «+ Glovo»: pills in their own colours, as their tags (the owner, 1 November, 20:47: «Вольт … всегда
   голубым цветом, их фирменным. Глова желтым») */
.ipad .dboard-sim { display: flex; gap: var(--sp-2); }
.ipad .ph-pill.pill-wolt, .ipad .ph-pill.pill-wolt:active { background: var(--wolt); color: var(--wolt-ink); box-shadow: none; }
/* a new delivery while an order is open: its bell and count, amber, as the alert's banner */
.ipad .ph-pill.pill-alert, .ipad .ph-pill.pill-alert:active { background: var(--warn); color: var(--warn-ink); box-shadow: none; font-family: var(--font-timer); font-weight: var(--fw-semibold); }
.ipad .ph-pill.pill-glovo, .ipad .ph-pill.pill-glovo:active { background: var(--glovo); color: var(--glovo-ink); box-shadow: none; }
/* the guests of a bill: «−» and «+» round pills, the number between them */
.ipad .ph-right .os-guests { gap: 0; color: var(--ink); }
.ipad .ph-right .os-guests .stepper { gap: var(--sp-1); border: 0; outline: 0; background: none; }
.ipad .ph-right .os-guests .step-btn { width: 44px; height: 44px; border: 0; border-radius: var(--r-pill); background: var(--pill); color: var(--ink); }
.ipad .ph-right .os-guests .step-btn:active:not(:disabled) { background: var(--pill-press); }
.ipad .ph-right .os-guests .step-val { min-width: 28px; font-family: var(--font-timer); font-size: var(--fs-md); font-weight: var(--fw-semibold); text-align: center; }
.ipad .ph-right .checks-sum { display: flex; align-items: baseline; gap: var(--sp-2); }

/* ---------- the tab bar: one glass pill hanging over the screen (as the iPhone's, its lens and flow: 50-phone.css),
   in the middle at the bottom above the home indicator, four tabs; the screens keep room for it under what scrolls ---------- */
.ipad .tabbar {
  position: absolute; left: 50%; bottom: max(var(--sp-3), env(safe-area-inset-bottom, 0px)); z-index: 3; transform: translateX(-50%);
  width: min(520px, calc(100% - 2 * var(--sp-4))); height: 64px; padding: var(--sp-1); border-top: 0; border-radius: var(--r-pill);
  background: var(--glass); -webkit-backdrop-filter: blur(30px) saturate(2); backdrop-filter: blur(30px) saturate(2);
  box-shadow: inset 0 0 0 1px var(--glass-rim), inset 0 1px 0 var(--glass-top), var(--glass-shadow);
}
.ipad .tab {
  position: relative; z-index: 1; justify-content: center; gap: 2px; height: 56px; padding: 0; border-radius: var(--r-pill);
  color: var(--ink-2); line-height: 16px; transition: color 0.15s;
}
.ipad .tab.on { color: var(--accent-ink); transition: color 0.18s 0.1s; }
.ipad .tab::before { content: ''; position: absolute; inset: calc(var(--sp-3) * -1) calc(var(--sp-1) / -2) calc(var(--sp-4) * -1); }
.ipad .tab-badge { box-shadow: 0 0 0 2px var(--surface); }
/* who works at the iPad: their initial in a circle, the size of the icons (14 semibold); on the chosen tab in its ink */
.ipad .tab-ava { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; font-size: var(--fs-sm); font-weight: var(--fw-semibold); line-height: 1; }
@media (prefers-reduced-motion: reduce) { .ipad .tab { transition: none !important; } }
.ipad .hall-left, .ipad .hall-rail, .ipad .dboard, .ipad .checks, .ipad .pf-body { padding-bottom: var(--tab-room); }
/* a new delivery waiting to be taken: a pill banner at the top, over the header */
.ipad .alert-bar {
  position: absolute; top: calc(env(safe-area-inset-top, 0px) + var(--sp-2)); left: 50%; z-index: 4; transform: translateX(-50%);
  min-height: 48px; padding: 0 var(--sp-5); border-radius: var(--r-pill); box-shadow: var(--shadow-2);
}

/* ---------- the hall: two zones — the plan (the tables where they stand) and the rail ----------
   (the owner, 1 November, of three looks: «B · как раньше + цифры прибора») the plan as before: a floor, light, a dot
   in each cell of its grid (the tables stand on them), its corners round; the bar striped, the door a bar. Each table
   its own shape — a round one round, the others their corners soft — and all in its middle: the number in the figures
   of an instrument, two digits (01…09), the guests and the minutes under it, the sum under them (a round table, as
   before, without its sum). A free table white with a line round it; a table taken a dark line and a shadow; a dish
   ready green, the bill asked violet. The signs as on the waiter's iPhone, each at its corner over the table's edge: a
   dish ready a green circle with the count that pulses, the bill asked «• Счёт» on a white pill ringed violet (top
   right); what the kitchen still cooks the cook and the count ringed amber (top left); a guest's order from the app
   and a booking at the foot. No legend: the colours are the iPhone's. */
.ipad .hall { flex: 1; min-height: 0; }
.ipad .hall-left { gap: var(--sp-4); padding: var(--sp-5) var(--sp-5) var(--tab-room); background: var(--surface); }
.ipad .tbl {
  --tbl-line: var(--line-2);
  align-items: center; justify-content: center; gap: 2px; padding: var(--sp-1); text-align: center;
  border: 1.5px solid var(--tbl-line); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); box-shadow: none;
  transition: background-color 0.12s;
}
.ipad .tbl-round { border-radius: 50%; }
/* (a tap leaves :hover on an iPad: the line stays the table's own) */
.ipad .tbl:hover { border-color: var(--tbl-line); }
.ipad .tbl:active { transform: none; background: var(--surface-3); }
.ipad .tbl-open { --tbl-line: var(--ink); box-shadow: var(--shadow-1); }
.ipad .tbl-ready { --tbl-line: var(--ok); border-width: 2px; background: var(--ok-soft); }
.ipad .tbl-bill { --tbl-line: var(--bill); border-width: 2px; background: var(--bill-soft); }
.ipad .tbl-ready:active { background: color-mix(in oklab, var(--ok-soft) 85%, var(--ok)); }
.ipad .tbl-bill:active { background: color-mix(in oklab, var(--bill-soft) 85%, var(--bill)); }
/* (a table with a sign over its edge above its neighbours, so the sign is not under the next table) */
.ipad .tbl:has(> .tbl-badge) { z-index: 1; }
.ipad .tbl-n { font-family: var(--font-timer); font-size: var(--fs-2xl); font-weight: var(--fw-semibold); letter-spacing: -0.03em; line-height: 1; }
.ipad .tbl-n[data-pad]::before { content: '0'; }
.ipad .tbl-free .tbl-n { color: var(--ink-2); }
.ipad .tbl-meta { display: flex; align-items: center; justify-content: center; gap: 2px; max-width: 100%; color: var(--ink-2); font-size: var(--fs-sm); line-height: 18px; white-space: nowrap; }
.ipad .tbl-meta.faint { color: var(--ink-3); }
.ipad .tbl-sum { max-width: 100%; overflow: hidden; font-size: var(--fs-md); line-height: 20px; white-space: nowrap; text-overflow: ellipsis; }
.ipad .tbl-sum .money { font-family: var(--font-timer); font-weight: var(--fw-semibold); letter-spacing: -0.03em; }
.ipad .tbl-round .tbl-sum { display: none; }
/* the signs: a pill at a corner, half over the table's edge. (2 November, 13:57, the owner: «Надо сделать плашки над
   столами просторнее (которые счет, цифры и тд)») 32 high, the words and the figures 12 from its ends, an icon 16 with 6
   to its figure; the figures — how many are ready, how many cook, the app's number, the booking's hour — in the
   instrument's (16 semibold), the words («Счёт», how the guest pays) 14 regular */
.ipad .tbl-badge {
  top: -16px; right: -12px; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: var(--fw-regular); line-height: 32px;
}
.ipad .tbl-badge:is(.b-ready, .b-cook, .b-app, .b-book) { font-family: var(--font-timer); font-size: var(--fs-md); font-weight: var(--fw-semibold); letter-spacing: -0.02em; }
.ipad .tbl-badge.b-ready {
  z-index: 0; justify-content: center; min-width: 32px; padding: 0 10px;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--ok) 25%, transparent), 0 0 0 9px color-mix(in oklab, var(--ok) 10%, transparent);
}
.ipad .tbl-badge.b-ready::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; animation: live-badge 2.4s ease-out infinite; }
.ipad .tbl-badge.b-bill { padding: 0 14px 0 32px; background: var(--surface); color: var(--bill); box-shadow: inset 0 0 0 1.5px var(--bill), var(--shadow-1); }
.ipad .tbl-badge.b-bill::before {
  content: ''; position: absolute; left: 13px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--bill);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--bill) 22%, transparent);
}
.ipad .tbl-badge.b-cook { left: -12px; right: auto; padding: 0 13px 0 10px; background: var(--surface); color: var(--warn); box-shadow: inset 0 0 0 1.5px var(--warn), var(--shadow-1); }
.ipad .tbl-badge.b-app, .ipad .tbl-badge.b-book { top: auto; bottom: -16px; padding: 0 13px 0 10px; }
.ipad .tbl-badge.b-book { left: -12px; right: auto; }
@media (prefers-reduced-motion: reduce) { .ipad .tbl-badge.b-ready::after { animation: none; } }
/* a table drawn small (an iPad held upright, an iPad mini): by what it holds inside its edges. Three lines (the number
   28, the guests and the minutes, the sum: 70): with less its number 22 and the line under it 12; with less than 60
   the number and the sum; with less than 42 the number alone. Two (a free table, a round one: 48): with less the
   number 22 and the line 12; with less than 40 the number alone */
.ipad .tbl { container-type: size; }
@container (max-height: 69px) {
  .ipad .tbl:not(.tbl-round):has(> .tbl-sum) .tbl-n { font-size: var(--fs-xl); }
  .ipad .tbl:not(.tbl-round):has(> .tbl-sum) .tbl-meta { font-size: var(--fs-xs); line-height: 16px; }
  .ipad .tbl:not(.tbl-round):has(> .tbl-sum) .tbl-sum { line-height: 18px; }
}
@container (max-height: 59px) { .ipad .tbl:not(.tbl-round):has(> .tbl-sum) .tbl-meta { display: none; } }
@container (max-height: 47px) {
  .ipad .tbl-n { font-size: var(--fs-xl); }
  .ipad .tbl-meta { font-size: var(--fs-xs); line-height: 16px; }
}
@container (max-height: 41px) { .ipad .tbl-sum { display: none; } }
@container (max-height: 39px) { .ipad .tbl-meta { display: none; } }
/* a round one: its two lines stand inside the circle, not over its edge (the line under the number is the circle's
   narrow part) — full from 62 inside its edges, smaller from 51, the number alone below */
@container (max-height: 61px) {
  .ipad .tbl-round .tbl-n { font-size: var(--fs-xl); }
  .ipad .tbl-round .tbl-meta { font-size: var(--fs-xs); line-height: 16px; }
}
@container (max-height: 50px) { .ipad .tbl-round .tbl-meta { display: none; } }
/* a narrow one: the line under the number 12 when «4 места» would not fit its width, gone when even that would not */
@container (max-width: 51px) { .ipad .tbl:not(.tbl-round) .tbl-meta { font-size: var(--fs-xs); line-height: 16px; } }
@container (max-width: 43px) { .ipad .tbl:not(.tbl-round) .tbl-meta { display: none; } }
/* (a narrow one: «Счёт» would lie over the number — the violet dot alone on its white circle at the corner) */
@container (max-width: 79px) { .ipad .tbl-badge.b-bill { width: 24px; padding: 0; font-size: 0; } }
/* the rail: the second zone (the hall's is tiles now, below; the plan's editor keeps its blocks) — its blocks one under
   another, a line between them, no cards. A block's head a row, 56 high (16 semibold, the count at its right); its rows
   from edge to edge, a line above each — so too a tile's list in its sheet; a row's state a stripe of its colour at
   its left edge — a kiosk's order to pay amber, ready green —, never a frame; the numbers in the figures of an
   instrument; the keys pills 44 high */
.ipad .hall-rail { gap: 0; padding: 0 0 var(--tab-room); border-left: 0; box-shadow: inset 1px 0 0 0 var(--line-2); background: var(--surface); }
.ipad .rail-card { gap: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: inset 0 -1px 0 0 var(--line-2); }
.ipad .rail-head { min-height: 56px; padding: 0 var(--sp-4) 0 calc(var(--sp-4) + 1px); font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.ipad .rail-head.as-link { width: 100%; margin-block: 0; }
.ipad .rail-count { background: var(--pill-press); font-family: var(--font-timer); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.ipad .rail-card > :is(.rail-kiosk, .rail-row, .rail-ready) {
  margin: 0; padding: var(--sp-3) var(--sp-4) var(--sp-3) calc(var(--sp-4) + 1px); border: 0; border-radius: 0; background: none;
  box-shadow: inset 0 1px 0 0 var(--line-2);
}
.ipad .rail-card > :is(.rail-kiosk.unpaid, .rail-row.d-new) { background: none; box-shadow: inset 4px 0 0 0 var(--warn), inset 0 1px 0 0 var(--line-2); }
.ipad .rail-card > :is(.rail-kiosk.ready, .rail-ready) { box-shadow: inset 4px 0 0 0 var(--ok), inset 0 1px 0 0 var(--line-2); }
.ipad .rail-card > .rail-empty { padding: 0 var(--sp-4) var(--sp-4) calc(var(--sp-4) + 1px); color: var(--ink-3); font-size: var(--fs-sm); }
.ipad .rail-card > .rail-row:hover { background: none; }
.ipad .rail-card > .rail-row:active, .ipad .rail-ready-main:active { background: var(--surface-3); }
.ipad .rk-n, .ipad .rail-ready-main > .display { font-family: var(--font-timer); font-size: var(--fs-2xl); font-weight: var(--fw-semibold); letter-spacing: -0.03em; }
.ipad .rail-ready { gap: var(--sp-3); }
.ipad .rail-ready-main { min-height: 44px; padding: 0; border-radius: 0; background: none; font-size: var(--fs-sm); }
.ipad .hall-rail .btn { min-height: 44px; font-size: var(--fs-md); }
/* an iPad held upright: the rail's blocks under the plan (the editor's panel), side by side — a line between them and
   above them; the plan no room for the tab bar under it (the rail has it). (The owner, 1 November: «в вертикальной
   развертке не хватает линий в сетке, там где смена») three columns, and the last block takes what its row has left —
   no cell without its lines */
@media (max-width: 960px) {
  .ipad .hall-left { padding-bottom: var(--sp-5); }
  .ipad .hall-rail { margin-left: -1px; border-top: 0; box-shadow: inset 0 1px 0 0 var(--line-2); grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ipad .hall-rail > .rail-card { box-shadow: inset 1px 0 0 0 var(--line-2), inset 0 -1px 0 0 var(--line-2); }
  .ipad .hall-rail > .rail-card:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
  .ipad .hall-rail > .rail-card:last-child:nth-child(3n + 2) { grid-column: span 2; }
}
/* (an iPad's window narrower still, beside another app: two columns, the last block alone across both) */
@media (max-width: 719px) {
  .ipad .hall-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ipad .hall-rail > .rail-card:last-child:is(:nth-child(3n + 1), :nth-child(3n + 2)) { grid-column: auto; }
  .ipad .hall-rail > .rail-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---------- the hall's tiles ----------
   (1 November, 18:19, the owner: «Все пункты под ней давай сделаем в квадратах, как в меню профиль или в двойных
   квадратах») the rail's blocks tiles of «Профиль» (ui/ipad.jsx, HallTiles): 128 high, a line only between them;
   lying, beside the plan, two columns; upright, under it, six — a tile as wide as its cells (--s2, --s6). Its sign at
   the top, its name and one word under it at the foot; its counts at the corner — grey a count, amber what waits for
   someone, green with its halo pulsing what is ready. The shift's two numbers in the figures of an instrument (22),
   their words under them. Under the last row the screen's white down to the tab bar, the row's line over it. */
.ipad .hall-rail.hall-tiles { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: auto; }
.ipad .ht-grid { display: grid; flex: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ipad .ht-tile { grid-column: span var(--s2, 1); }
.ipad .ht-fill { flex: 1 0 auto; min-height: var(--tab-room); box-shadow: inset 0 1px 0 0 var(--line-2); }
.ipad .ht-badges { position: absolute; top: var(--sp-4); right: var(--sp-5); display: flex; gap: var(--sp-2); }
.ipad .ht-badge {
  position: relative; display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: var(--fw-regular); line-height: 1;
}
.ipad .ht-badge.tone-n { background: var(--pill-press); color: var(--ink); }
.ipad .ht-badge.tone-warn { background: var(--warn); color: var(--warn-ink); }
.ipad .ht-badge.tone-ok {
  background: var(--ok); color: var(--ok-ink);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--ok) 25%, transparent), 0 0 0 9px color-mix(in oklab, var(--ok) 10%, transparent);
}
.ipad .ht-badge.live::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; animation: live-badge 2.4s ease-out infinite; }
@media (prefers-reduced-motion: reduce) { .ipad .ht-badge.live::after { animation: none; } }
/* the shift: the tables open and the day's takings side by side, the takings the wider */
.ipad .pf-tile.ht-shift { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: var(--sp-4); align-items: stretch; }
.ipad .ht-kpi { display: flex; flex-direction: column; justify-content: space-between; gap: 2px; min-width: 0; }
.ipad .ht-kpi-v { font-family: var(--font-timer); font-size: var(--fs-xl); font-weight: var(--fw-semibold); letter-spacing: -0.03em; line-height: 28px; white-space: nowrap; }
.ipad .ht-kpi-v .money-u { color: var(--ink-2); font-size: var(--fs-sm); font-weight: var(--fw-regular); letter-spacing: 0; }
.ipad .ht-kpi-l { color: var(--ink-2); }
@media (max-width: 960px) {
  .ipad .hall-rail.hall-tiles { flex: 1 0 auto; overflow: visible; }
  .ipad .ht-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ipad .ht-tile { grid-column: span var(--s6, 1); }
  /* (an iPad mini upright: a cell 124 wide — «Приложение» keeps its line) */
  .ipad .pf-tile.ht-tile { padding: var(--sp-4); }
  .ipad .ht-badges { right: var(--sp-4); }
}
/* a tile's list in its sheet: the rows from edge to edge under the sheet's head (its line the first row's), no line
   under the last; the keys 44 high */
/* (1 November, the audit: the sheet's general margin had kept them 20 from its edges) */
.ipad .sheet-body > .rail-card, .ipad .sheet-body.flush > .rail-card { margin: -1px 0 0; box-shadow: none; }
.ipad .sheet-body > .rail-card > .rail-empty { padding: var(--sp-5) var(--sp-5) var(--sp-6); }
.ipad .sheet-body > .rail-card .btn { min-height: 44px; font-size: var(--fs-md); }

/* «Изменить зал»: a screen of its own — in its header the halls as pills (each its tables' count), «Новый зал», and
   «Сохранить» the accent's pill; the plan in edit its dashed frame; the panel's blocks their own room inside (they hold
   fields and keys, not rows) */
.ipad .ph-pill-main { background: var(--accent); color: var(--accent-ink); }
.ipad .ph-pill-main:active:not(:disabled) { background: var(--accent-2); }
.ipad .ph-right .he-halls, .ipad .ph-right .he-actions { flex-wrap: nowrap; gap: var(--sp-2); }
.ipad .ph-right .he-halls .seg { gap: var(--sp-2); padding: 0; border-radius: 0; background: none; box-shadow: none; }
.ipad .ph-right .he-halls .seg-btn {
  height: 44px; min-height: 0; padding: 0 var(--sp-4); border-radius: var(--r-pill); background: var(--glass); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--glass-rim), 0 2px 8px rgb(19 24 36 / 0.08); font-size: var(--fs-sm); font-weight: var(--fw-regular);
}
.ipad .ph-right .he-halls .seg-btn::before { display: none; }
.ipad .ph-right .he-halls .seg-btn.on { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.ipad .ph-right .he-halls .seg-btn.on .seg-badge { background: var(--accent-ink); color: var(--accent); }
.ipad .hall-editing .hall-left, .ipad .hall-editing .hall-rail { padding-bottom: var(--sp-5); }
/* (the owner, 1 November: «сетку из мелких квадратов серых, как в тетрадке») the plan in edit a sheet of a squared
   exercise book: a grey square in each cell of the grid the tables snap to (catalog.js GRID_X 2.5 %, GRID_Y 4 % — at
   16:10 the cells square), so where a table will stand is seen before it is let go */
.ipad .plan.plan-edit {
  background-color: var(--surface);
  background-image: linear-gradient(to right, var(--grid) 1px, transparent 1px), linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 2.5% 4%;
}
/* the table chosen: the accent's line round it (else the table's own) */
.ipad .tbl-edit.sel { --tbl-line: var(--accent); border-width: 2px; }
/* (the dot of a table with its check open: on a round one at its square's corner, beside the circle — inside it
   the dot would touch the number or the edge) */
.ipad .tbl-round.tbl-has-check::after { top: 0; right: 0; }
.ipad .he-panel .rail-card { gap: var(--sp-3); padding: var(--sp-4) var(--sp-4) var(--sp-4) calc(var(--sp-4) + 1px); }
.ipad .he-panel .rail-card > .rail-head { min-height: 0; padding: 0; }

/* ---------- the order: the header over both zones; the categories keys; the bill's lines as the iPhone's ---------- */
.ipad .order-screen { flex: 1; }
/* the two zones: the dishes on the screen's shade — under the last row of tiles the shade, not white, so the tiles'
   edges and the bill's white column stand clear without one more line */
.ipad .item-cards { background: var(--bg); }
/* (the grid's audit: a pill a few pixels under the header's line) the search a row of the categories' column from edge
   to edge, half a row of the dishes high, a line under it — as the iPhone's sheets' search */
.ipad .menu-cats { padding: 0; background: var(--bg); }
.ipad .menu-cats > .search {
  height: calc(var(--row, 104px) / 2); min-height: 0; margin: 0; padding: 0 var(--sp-4);
  border: 0; border-radius: 0; background: var(--surface); box-shadow: inset 0 -1px 0 0 var(--line-2);
}
/* (1 November, 18:19, the owner: «Когда забиваешь стол - выбор категорий должен быть реализован, как в приложении
   официанта») the categories keys as the iPhone's, not pills: half a row of the dishes high, side by side in a strip
   that scrolls when they do not fit, the screen's shade, a line between them and under them, 16 semibold grey; the
   chosen one the accent's key. (Then, on his iPad held upright: «выбор категорий полосой во всю страницу … так же, как
   и поиск, а уже после этого открывать блок в заказе пока пусто. Наверное, то же самое … в горизонтальном положении»)
   the search and the categories across the whole screen under its header, lying or upright — one row of the screen's
   grid, the search its upper half, the strip of keys the lower; the dishes and the bill under them, on the same rows
   (ui/row-grid.js) */
.ipad .order-screen:not(.os-lost) { grid-template-rows: var(--row, 104px) minmax(0, 1fr); }
.ipad .order-screen > .os-menu, .ipad .order-screen .menu-grid { display: contents; }
.ipad .order-screen .menu-cats {
  grid-column: 1 / -1; grid-row: 1; display: flex; flex-direction: column; justify-content: flex-start; gap: 0; height: auto; min-height: 0;
  padding: 0; overflow: hidden; scroll-snap-type: none; border: 0; background: var(--bg);
}
.ipad .order-screen .item-cards { grid-column: 1; grid-row: 2; }
.ipad .order-screen > .os-ticket { grid-column: 2; grid-row: 2; }
.ipad .cat-list {
  flex: none; flex-direction: row; height: calc(var(--row, 104px) / 2); gap: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
}
.ipad .cat-list::-webkit-scrollbar { display: none; }
.ipad .cat-btn {
  flex: 1 0 auto; height: 100%; min-height: 0; padding: 0 var(--sp-5); border-radius: 0; background: var(--bg); color: var(--ink-2);
  font-size: var(--fs-md); font-weight: var(--fw-semibold); white-space: nowrap; text-align: center;
  box-shadow: inset 1px 0 0 0 var(--line-2), inset 0 -1px 0 0 var(--line-2);
}
.ipad .cat-btn:first-child { box-shadow: inset 0 -1px 0 0 var(--line-2); }
.ipad .cat-btn:hover { background: var(--bg); }
.ipad .cat-btn:active { background: var(--surface-3); }
.ipad .cat-btn.on, .ipad .cat-btn.on:hover { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
/* (3 November, the owner: «И проверь все на горизонтальные и вертикальные линии») the order screen in whole columns
   (ui/row-grid.js: --cols of at least 164, --col): the dishes all but two of them, the bill two; the categories' keys one
   column each, so their lines stand on the dishes' lines and the bill's — the keys as wide as their words had put their
   lines 17 px beside the dishes'. A long name takes two lines; the strip goes by whole keys, its end fading while more
   keys lie past it (ui/even-grid.jsx, useMoreEdge). */
@media (min-width: 641px) {
  .ipad .order-screen:not(.os-lost) { grid-template-columns: minmax(0, calc(var(--col, 170px) * var(--menu-cols, 4))) minmax(0, 1fr); }
  .ipad .order-screen .item-cards { grid-template-columns: repeat(var(--menu-cols, 4), minmax(0, 1fr)); }
  .ipad .order-screen .cat-list { scroll-snap-type: x mandatory; }
  .ipad .order-screen .cat-btn { flex: 0 0 var(--col, auto); padding: 0 var(--sp-2); line-height: 20px; white-space: normal; text-wrap: balance; scroll-snap-align: start; }
}
.ipad .cat-list[data-more] { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 72px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 72px), transparent); }
/* (3 November, 13:06, the owner on the order screen: «Тут тоже смотри вертикальные линии съехали») the dishes' lines as
   every tile's of the front (86-tiles.css): each tile its line at its left and at its top, on its own first pixel — the
   way the categories' keys draw theirs, so a key's line runs straight on into the line between the dishes under it.
   Before, each tile drew its right and its bottom edge: one pixel left of the keys' lines, and in the lighter grey. A
   tile starting a row no line at its left (the screen's edge), the first row none at its top (the strip's line above);
   round a short row's end and under the last row the lines of --rim, where the next tile's own would lie. The bill's
   column its own line at its left, so the key over it carries on into it down to the foot, under the last dishes too.
   A dish off sale greys its words, not its lines. The strip's last key, when the keys end short of the screen's edge, a
   line at its right; the strip's line under the keys runs on to the edge (13:04, the owner: «Каждый блок, у которого
   есть две линии … должен быть заключен в прямоугольник или квадрат») */
.ipad .item-cards > .item-card { border: 0; box-shadow: inset 1px 0 0 0 var(--line-2), inset 0 1px 0 0 var(--line-2), var(--rim, 0 0 #0000); }
.ipad .item-cards > .item-card[data-rf] { box-shadow: inset 0 1px 0 0 var(--line-2), var(--rim, 0 0 #0000); }
.ipad .item-cards > .item-card[data-r0] { box-shadow: inset 1px 0 0 0 var(--line-2), var(--rim, 0 0 #0000); }
.ipad .item-cards > .item-card[data-r0][data-rf] { box-shadow: var(--rim, none); }
.ipad .item-cards > :is([data-rz], [data-rb]) { --rim: 0 1px 0 0 var(--line-2); }
.ipad .item-cards > [data-rl] { --rim: 0 1px 0 0 var(--line-2), 1px 0 0 0 var(--line-2), 1px 1px 0 0 var(--line-2); }
/* (the rule of no capitals and three styles of letters) «нет» on a dish off sale in the price's own letters, red — not
   «NEMA» in capitals */
.ipad .stop-tag { font-size: inherit; font-weight: inherit; letter-spacing: 0; text-transform: none; }
.ipad .item-cards > .item-card.stopped { opacity: 1; }
.ipad .item-cards > .item-card.stopped > * { opacity: 0.55; }
.ipad .cat-list { box-shadow: inset 0 -1px 0 0 var(--line-2); }
.ipad .cat-btn:last-child:not(.on) { box-shadow: inset 1px 0 0 0 var(--line-2), inset 0 -1px 0 0 var(--line-2), 1px 0 0 0 var(--line-2); }
.ipad .cat-btn:last-child:first-child:not(.on) { box-shadow: inset 0 -1px 0 0 var(--line-2), 1px 0 0 0 var(--line-2); }
@media (min-width: 641px) {
  .ipad .order-screen > .os-ticket { border-left: 1px solid var(--line-2); }
}
/* the guests' keys over the bill as high as the categories' over the dishes — half a row of the screen's grid —, and
   their lines on the categories' lines: the bill is two columns (behind its own line at its left), three guests half a
   column each, so the line after the second guest runs on from the line between the two keys over the bill; «−» and «+»
   a quarter of a column each (one or two guests share the three's width) */
.ipad .seat-bar { --seat-h: calc(var(--row, 104px) / 2); }
@media (min-width: 641px) {
  .ipad .order-screen .seat-key { flex-basis: calc((var(--col, 170px) - 1px) / 2); }
  .ipad .order-screen .seat-step { width: calc((var(--col, 170px) + 1px) / 4); }
}
/* (the audit: an order with less text) a dish's state in words only where someone acts on it — «Готово» and
   «Готовится»; a sent and a served one without a word, a served one grey */
.ipad .os-ticket .line .st-sent, .ipad .os-ticket .line .st-served { display: none; }
.ipad .os-ticket .line-served { color: var(--ink-3); }
.ipad .os-ticket .line-served .line-mods { color: var(--ink-3); }
.ipad .st-bill-txt { color: var(--bill); }
/* the foot's last row: the total on its upper half, the pills on the lower — each pill the half's height */
.ipad .os-act > .os-actions .btn { border-radius: var(--r-pill); }
.ipad .os-total .money.big { font-family: var(--font-timer); letter-spacing: -0.03em; }

/* ---------- «Профиль»: the iPhone's tiles, six to a row ---------- */
.ipad .pf-body { flex: 1; display: flex; flex-direction: column; gap: 0; padding: 0 0 var(--tab-room); overflow: auto; background: var(--surface); }
.ipad .pf-top { display: grid; flex: none; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ipad .pf-top > .prof-card, .ipad .pf-top > .my-tips {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 2px; min-width: 0;
  height: 128px; padding: var(--sp-4) var(--sp-5); border: 0; border-radius: 0; background: var(--surface); color: var(--ink); text-align: left;
}
.ipad .pf-top > .prof-card { grid-column: span 4; }
.ipad .pf-top > .my-tips { grid-column: span 2; box-shadow: inset 1px 0 0 0 var(--line-2); font: inherit; cursor: pointer; }
.ipad .pf-top > .my-tips:active { background: var(--surface-3); }
.ipad .prof-name { font-size: var(--fs-xl); font-weight: var(--fw-semibold); line-height: 28px; }
.ipad .prof-role, .ipad .my-tips-label { color: var(--ink-2); font-size: var(--fs-sm); font-weight: var(--fw-regular); line-height: 18px; }
.ipad .prof-card .prof-loc { display: inline; padding: 0; color: inherit; font: inherit; }
.ipad .pf-top .my-tips-v { display: flex; align-items: baseline; column-gap: 4px; }
.ipad .pf-top .my-tips-v .display { font-family: var(--font-timer); font-size: var(--fs-xl); font-weight: var(--fw-semibold); letter-spacing: -0.03em; line-height: 28px; }
.ipad .pf-grid { display: grid; flex: none; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ipad .pf-tile { height: 128px; background: var(--surface); box-shadow: inset 1px 0 0 0 var(--line-2), inset 0 1px 0 0 var(--line-2), var(--rim, 0 0 #0000); }
.ipad .pf-grid > [data-rf] { box-shadow: inset 0 1px 0 0 var(--line-2), var(--rim, 0 0 #0000); }
.ipad .pf-tile {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 2px; min-width: 0;
  padding: var(--sp-4) var(--sp-5); border: 0; border-radius: 0; color: var(--ink); text-align: left; cursor: pointer;
  font: inherit; font-size: var(--fs-sm); font-weight: var(--fw-regular); line-height: 18px;
}
.ipad .pf-tile:active { background: var(--surface-3); }
.ipad .pf-tile > .ic { flex: none; }
.ipad .pf-tile-words { display: flex; flex-direction: column; max-width: 100%; min-width: 0; }
.ipad .pf-tile-label { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.ipad .pf-tile-val { overflow: hidden; color: var(--ink-2); white-space: nowrap; text-overflow: ellipsis; }
.ipad .pf-badge {
  position: absolute; top: var(--sp-4); right: var(--sp-5); display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px;
  border-radius: var(--r-pill); background: var(--bad); color: var(--bad-ink); font-size: var(--fs-sm); line-height: 1;
}
.ipad .pf-tile .shift-late-dot { position: absolute; top: var(--sp-4); right: var(--sp-5); }
.ipad .pf-fill { flex: 1 0 auto; min-height: var(--sp-4); box-shadow: inset 0 1px 0 0 var(--line-2); }

/* ---------- «Закрытые»: the day's sums tiles of the screen's grid, the payments rows ----------
   (as the iPhone's «Профиль») the sums by way of paying one row of tiles from edge to edge, cash and cashless the next,
   a line only between them: each its name (14 regular, grey), its sum in the figures of an instrument (22 semibold),
   what of it came as tips (14, grey); a group's name a row of the screen's shade (14 regular, grey — no capitals);
   the day's tips a row with the people's pills; the payments rows 56 high, a line between them, the columns' names
   in the screen's small grey letters. */
.ipad .checks { gap: 0; padding: 0 0 var(--tab-room); background: var(--surface); }
.ipad .checks > .card { margin: 0; padding: 0; gap: 0; border: 0; border-radius: 0; background: var(--surface); box-shadow: none; }
.ipad .checks > .card > .field-label {
  display: flex; align-items: center; min-height: 44px; padding: 0 var(--sp-5); background: var(--bg);
  font-size: var(--fs-sm); font-weight: var(--fw-regular); letter-spacing: 0; text-transform: none; color: var(--ink-3);
}
/* (3 November: the lines checked for one carried on a pixel aside) the rows the screen's width, not a pixel wider to
   hide the first cell's line past the edge: 1 181 in six and in two put the lines of both rows on half a pixel, drawn a
   pixel apart; the cell starting a row draws no line at its left instead (ui/even-grid.jsx marks it) */
.ipad .checks .reconcile-row { gap: 0; margin: 0; padding: 0; border: 0; grid-auto-rows: auto; }
.ipad .checks .rec-cell {
  justify-content: space-between; gap: 2px; min-height: 104px; padding: var(--sp-4) var(--sp-5); border: 0; border-radius: 0; background: var(--surface);
  box-shadow: inset 1px 0 0 0 var(--line-2), inset 0 1px 0 0 var(--line-2), var(--rim, 0 0 #0000);
}
.ipad .checks .reconcile-row > .rec-cell:is([data-rf], :first-child) { box-shadow: inset 0 1px 0 0 var(--line-2), var(--rim, 0 0 #0000); }
.ipad .checks .reconcile-row > [data-rb] { --rim: 0 1px 0 0 var(--line-2); }
.ipad .checks .reconcile-row > [data-rl] { --rim: 1px 0 0 0 var(--line-2); }
.ipad .checks .rec-groups { margin: 0; padding: 0; border-top: 0; }
.ipad .checks .rec-cell .muted.small { color: var(--ink-2); font-size: var(--fs-sm); }
.ipad .checks .rec-cell .mono.strong { font-family: var(--font-timer); font-size: var(--fs-xl); font-weight: var(--fw-semibold); letter-spacing: -0.03em; line-height: 28px; }
.ipad .checks .rec-tip { color: var(--ink-2); font-size: var(--fs-sm); }
.ipad .checks .tips-today { gap: 0; margin: 0; padding: 0 0 var(--sp-4); border-top: 0; box-shadow: inset 0 1px 0 0 var(--line-2); }
.ipad .checks .tips-today-head { min-height: 56px; padding: 0 var(--sp-5); }
.ipad .checks .tips-today-head .field-label { color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); letter-spacing: 0; text-transform: none; }
.ipad .checks .tips-today-head .mono { font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.ipad .checks .tips-who { padding: 0 var(--sp-5); }
.ipad .checks .tip-chip { min-height: 36px; align-items: center; padding: 0 var(--sp-4); border: 0; background: var(--surface-3); }
.ipad .checks .tip-chip.warn { background: var(--warn-soft); }
.ipad .checks > .card.flush { box-shadow: inset 0 1px 0 0 var(--line-2); }
.ipad .checks .tbl-data { font-size: var(--fs-md); }
.ipad .checks .tbl-data th {
  height: 44px; padding: 0 var(--sp-3); border-bottom: 0; background: var(--bg); box-shadow: inset 0 -1px 0 0 var(--line-2);
  font-size: var(--fs-sm); font-weight: var(--fw-regular); letter-spacing: 0; text-transform: none; color: var(--ink-3);
}
.ipad .checks .tbl-data td { height: 56px; padding: var(--sp-3); border-bottom: 1px solid var(--line-2); }
.ipad .checks .tbl-data tbody tr:last-child td { border-bottom: 1px solid var(--line-2); }
.ipad .checks .tbl-data :is(th, td):first-child { padding-left: var(--sp-5); }
.ipad .checks .tbl-data :is(th, td):last-child { padding-right: var(--sp-5); }
.ipad .checks .tbl-data td.num.mono { font-family: var(--font-timer); font-weight: var(--fw-semibold); letter-spacing: -0.03em; }
.ipad .checks .tbl-data tr.clickable:hover td { background: none; }
.ipad .checks .tbl-data tr.clickable:active td { background: var(--surface-3); }
.ipad .checks .tbl-data .st { border-radius: var(--r-pill); }

/* ---------- «Доставка»: three zones side by side from edge to edge ----------
   what cooks, what waits for the courier, what went — a line between them; a column's head a row 56 high (16
   semibold, its count beside it in the instrument's figures); the orders rows from edge to edge, a line under each,
   the platform's colour a stripe at the row's left (its tag's: Wolt blue, Glovo amber), a new one tinted amber; their keys
   pills; the sums in the figures of an instrument */
.ipad .dboard { gap: 0; padding: 0; overflow: hidden; background: var(--surface); }
.ipad .dboard > .empty { flex: 1; justify-content: center; padding-bottom: var(--tab-room); }
.ipad .dcols { flex: 1; min-height: 0; gap: 0; align-items: stretch; }
.ipad .dcol {
  min-height: 0; padding: 0 0 var(--tab-room); gap: 0; overflow: auto; border-radius: 0; background: var(--surface);
  box-shadow: inset 1px 0 0 0 var(--line-2);
}
.ipad .dcol:first-child { box-shadow: none; }
.ipad .dcol-head {
  flex: none; min-height: 56px; padding: 0 var(--sp-5); box-shadow: inset 0 -1px 0 0 var(--line-2);
  color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); letter-spacing: 0; text-transform: none;
}
.ipad .dcol:not(:first-child) > .dcol-head { box-shadow: inset 1px -1px 0 0 var(--line-2); }
.ipad .dcol-head .rail-count { background: var(--pill-press); color: var(--ink); font-family: var(--font-timer); font-size: var(--fs-sm); }
.ipad .dcard {
  flex: none; gap: var(--sp-2); padding: var(--sp-4) var(--sp-5); border: 0; border-radius: 0; background: none;
  box-shadow: inset 4px 0 0 0 var(--wolt), inset 0 -1px 0 0 var(--line-2);
}
.ipad .dcard-glovo { box-shadow: inset 4px 0 0 0 var(--glovo), inset 0 -1px 0 0 var(--line-2); }
.ipad .dcard-site { box-shadow: inset 4px 0 0 0 var(--accent), inset 0 -1px 0 0 var(--line-2); }
.ipad .dcard .site-pay { margin-inline: calc(-1 * var(--sp-5)); padding: 0 var(--sp-5); border-radius: 0; }
.ipad .dcard-site .row-gap { flex-wrap: wrap; }
.ipad .dcard.ds-new { background: var(--warn-soft); }
.ipad .dcard-top { gap: var(--sp-2); }
.ipad .dcard-top .mono.strong { font-family: var(--font-timer); font-weight: var(--fw-semibold); }
.ipad .dcard-items { font-size: var(--fs-sm); }
.ipad .dcard-sum .money { font-family: var(--font-timer); font-size: var(--fs-md); font-weight: var(--fw-semibold); letter-spacing: -0.03em; }
.ipad .dcard .btn { min-height: 44px; }
.ipad .dcard .progress { height: 4px; border-radius: 0; }
.ipad .dcard .progress span { border-radius: 0; }
.ipad .dcard .log-toggle { margin-block: -8px; }

/* ---------- the sheets, as the iPhone's (50-phone.css, its sheets' rules the iPad's too) ----------
   The head a row as tall as a key: the title 22 semibold, a line under it 14 regular, «×» a round pill; the keys at
   the foot pills 56 high hanging over the body. The iPad's own: a sheet in the middle of the screen (its corners as
   iOS draws them), a dish's options three to a row. */
/* (1 November, the audit: the sheets left in the old look — a dish cancelled, a table moved, «Вернуть стол») a reason a
   row from edge to edge (16 semibold, a line only between rows); the tables tiles five to a row from edge to edge, the
   last row filled; what is said above them a row of 14 regular; the manager's PIN the keys from edge to edge */
.ipad .sheet-body.flush > .reason-list:not(.key-stack), .ipad .sheet-body.flush .reopen > .reason-list { gap: 0; margin: 0; }
.ipad .sheet-body.flush .reason-list:not(.key-stack) > .btn {
  justify-content: flex-start; width: 100%; min-height: 56px; padding: 0 var(--sp-4); border: 0; border-radius: 0; background: var(--surface); color: var(--ink);
  font-size: var(--fs-md); font-weight: var(--fw-semibold); box-shadow: inset 0 1px 0 0 var(--line-2);
}
.ipad .sheet-body.flush > .reason-list:not(.key-stack) > .btn:first-child { box-shadow: none; }
.ipad .sheet-body.flush .reason-list:not(.key-stack) > .btn:active:not(:disabled) { background: var(--surface-3); transform: none; }
.ipad .sheet-body.flush .reason-list:not(.key-stack) > .btn:disabled { opacity: 1; color: var(--ink-3); }
.ipad .sheet-body.flush > .move-grid, .ipad .sheet-body.flush .reopen > .move-grid { gap: 0; margin: 0; padding: 0; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ipad .sheet-body.flush .move-grid > .move-btn {
  min-height: 80px; border: 0; border-radius: 0; background: var(--surface); box-shadow: inset 1px 0 0 0 var(--tile-line), inset 0 1px 0 0 var(--tile-line), var(--rim, 0 0 #0000);
}
.ipad .sheet-body.flush .move-grid > .move-btn[data-rf] { box-shadow: inset 0 1px 0 0 var(--tile-line), var(--rim, 0 0 #0000); }
.ipad .sheet-body.flush > .move-grid > .move-btn[data-r0] { box-shadow: inset 1px 0 0 0 var(--tile-line), var(--rim, 0 0 #0000); }
.ipad .sheet-body.flush > .move-grid > .move-btn[data-r0][data-rf] { box-shadow: var(--rim, none); }
.ipad .sheet-body.flush .move-grid > .move-btn { justify-content: center; }
.ipad .sheet-body.flush .move-grid > .move-btn .display { font-family: var(--font-timer); font-size: var(--fs-2xl); font-weight: var(--fw-semibold); letter-spacing: -0.03em; }
.ipad .sheet-body.flush .move-grid > .move-btn:active:not(:disabled) { background: var(--surface-3); }
.ipad .sheet-body.flush .move-grid > .move-btn:disabled { opacity: 1; background: var(--bg); color: var(--ink-3); }
.ipad .sheet-body.flush .move-grid > .move-btn:disabled .muted { color: var(--ink-3); }
.ipad .sheet-body.flush .move-grid > .move-btn.on { background: var(--accent); color: var(--accent-ink); }
.ipad .sheet-body.flush .move-grid > .move-btn.on .muted { color: inherit; }
.ipad .sheet-body.flush > .reopen { display: flex; flex-direction: column; gap: 0; margin: 0; }
.ipad .sheet-body.flush > .reopen > .muted { padding: var(--sp-3) var(--sp-4); font-size: var(--fs-sm); }
.ipad .sheet-body.flush > .reopen > .field-label {
  display: flex; align-items: center; min-height: 44px; padding: 0 var(--sp-4); background: var(--bg); box-shadow: inset 0 1px 0 0 var(--line-2), inset 0 -1px 0 0 var(--line-2);
  font-size: var(--fs-sm); font-weight: var(--fw-regular); letter-spacing: 0; text-transform: none; color: var(--ink-3);
}
.ipad .sheet-body.flush > .reopen > .field-label:first-child { box-shadow: inset 0 -1px 0 0 var(--line-2); }
.ipad .sheet-pad .mod-opts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ipad .sheet-pad .mod-opt:nth-child(2n + 1) { box-shadow: inset 1px 0 0 0 var(--line-2), inset 0 1px 0 0 var(--line-2); }
.ipad .sheet-pad .mod-opt:nth-child(3n + 1) { box-shadow: inset 0 1px 0 0 var(--line-2); }
.ipad .sheet-pad .mod-opt:last-child:nth-child(2n + 1) { grid-column: auto; }
.ipad .sheet-pad .mod-opt:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
.ipad .sheet-pad .mod-opt:last-child:nth-child(3n + 2) { grid-column: span 2; }

/* the pay sheet: two zones from edge to edge — the bill at the left, how it is paid at the right, a line between them.
   The bill: «Весь счёт · По позициям» two pills on a row of the screen's shade; the dishes rows (16 semibold, their
   sums in the instrument's figures); «К оплате» a row as tall as a key, its sum 22. How it is paid: a group's name a
   row of the shade; the ways of paying and the tips tiles from edge to edge, a line only between them, the chosen one
   tinted and framed in the accent; the rest (who gets the tip, the terminal, the cash) rows. */
.ipad .sheet-body.flush > .pay-note, .ipad .sheet-body.flush > .pay-fail { margin: 0; border: 0; border-radius: 0; padding: var(--sp-3) var(--sp-4); }
/* (the zones' line closed under them by a line across: no line ends in the white) */
.ipad .sheet-body.flush > .pay-grid { margin: 0; gap: 0; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); border-bottom: 1px solid var(--line-2); }
.ipad .sheet-body.flush .pay-items, .ipad .sheet-body.flush .pay-methods { gap: 0; }
/* (13:04, the owner: «Каждый блок, у которого есть две линии … должен быть заключен в прямоугольник или квадрат») the
   shorter column's last row closed under it: after the rows the column's room left over, its line at its top — none
   where no room is left (the line under the sheet's rows is the grid's), so «К оплате» over an empty column is a row
   with its four lines, not a row open at its foot */
.ipad .sheet-body.flush :is(.pay-items, .pay-methods)::after { content: ''; flex: 1 1 0; min-height: 0; box-shadow: inset 0 1px 0 0 var(--line-2); }
/* (3 November, 03:49, the owner: «Стало ровнее, но нет вертикальной линии») the line between the zones drawn over the
   zone's rows and tiles: the zone's own inset line lay under their shade (a way of paying, a group's name), seen only
   beside a row with no shade of its own */
.ipad .sheet-body.flush .pay-methods { position: relative; }
.ipad .sheet-body.flush .pay-methods::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 0; z-index: 2; width: 1px; background: var(--line-2); pointer-events: none;
}
.ipad .sheet-body.flush .pay-items > .seg {
  display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 0; min-height: 0; padding: 0; border-radius: 0; background: none; box-shadow: none;
}
.ipad .sheet-body.flush .pay-items > .seg .seg-btn {
  justify-content: center; height: 56px; min-height: 0; padding: 0 var(--sp-3); border-radius: 0; background: var(--surface); color: var(--ink);
  font-size: var(--fs-md); font-weight: var(--fw-semibold); box-shadow: inset 1px 0 0 0 var(--line-2);
}
.ipad .sheet-body.flush .pay-items > .seg .seg-btn:first-child { box-shadow: none; }
.ipad .sheet-body.flush .pay-items > .seg .seg-btn::before { display: none; }
.ipad .sheet-body.flush .pay-items > .seg .seg-btn.on { background: var(--accent); color: var(--accent-ink); }
.ipad .sheet-body.flush .pay-list { max-height: none; border: 0; border-radius: 0; }
.ipad .sheet-body.flush .pay-row { border-bottom: 0; box-shadow: inset 0 1px 0 0 var(--line-2); }
.ipad .sheet-body.flush .pay-line { min-height: 56px; padding: var(--sp-3) var(--sp-4); border: 0; border-radius: 0; font-weight: var(--fw-semibold); }
.ipad .sheet-body.flush .pay-line .mono { font-family: var(--font-timer); letter-spacing: -0.03em; }
.ipad .sheet-body.flush .pay-line .mono.small { font-weight: var(--fw-regular); }
.ipad .sheet-body.flush .pay-sub { min-height: 56px; align-items: center; padding: 0 var(--sp-4); box-shadow: inset 0 1px 0 0 var(--line-2); }
.ipad .sheet-body.flush .pay-total { align-items: center; min-height: 56px; padding: 0 var(--sp-4); box-shadow: inset 0 1px 0 0 var(--line-2); }
.ipad .sheet-body.flush .pay-total .money.big .money-v, .ipad .sheet-body.flush .pay-total .money.big { font-family: var(--font-timer); font-size: var(--fs-xl); font-weight: var(--fw-semibold); letter-spacing: -0.03em; }
.ipad .sheet-body.flush .pay-charge { min-height: 56px; align-items: center; padding: 0 var(--sp-4); border-top: 0; box-shadow: inset 0 1px 0 0 var(--line-2); }
.ipad .sheet-body.flush :is(.pay-methods > .field-label, .pay-methods > .tip-pick > .field-label, .pay-points > .field-label) {
  display: flex; align-items: center; min-height: 56px; padding: 0 var(--sp-4); background: var(--bg); box-shadow: inset 0 1px 0 0 var(--line-2);
  font-size: var(--fs-sm); font-weight: var(--fw-regular); letter-spacing: 0; text-transform: none; color: var(--ink-3);
}
.ipad .sheet-body.flush .pay-methods > .field-label:first-child { box-shadow: none; }
/* (3 November, 03:11, the owner of this sheet on the iPad: «Кривовато выглядит, исправим?») The ways of paying and the
   tips are the brand grid's tiles (ui/even-grid.jsx): all of a block one size — the tips had been two wide and three
   narrow —, rows filled — the ways of paying in as many columns as fill their rows (three in one row, four two by two;
   a way left alone in a row had had a blank beside it), the tips five in a row as narrow as their words allow (in a
   narrower column four, the fifth a short row, the lines round its end). The chosen one filled with the accent, as the
   chosen category and hall are — not framed: the frame had come out thicker on the zones' line, thinner at the sheet's
   edge; the bill's «Весь счёт · По позициям» the same. Every row of both zones is 56 high or twice that — the ways of
   paying their icon beside their name, the tips, who gets them, «К оплате», the change and its keys —, so a line of the
   bill and a line of the payment are one line or a row apart, never «чуть на разных уровнях» (a way's tile of two
   lines, 99 high, had stood 13 px off the bill's line). */
.ipad .sheet-body.flush .method-grid, .ipad .sheet-body.flush .tip-opts { display: grid; gap: 0; padding: 0; }
.ipad .sheet-body.flush .method-grid { grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }
.ipad .sheet-body.flush .tip-opts { grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); }
.ipad .sheet-body.flush :is(.method, .tip-opt) {
  min-height: 56px; border-radius: 0; background: var(--surface);
  box-shadow: inset 1px 0 0 0 var(--line-2), inset 0 1px 0 0 var(--line-2), var(--rim, 0 0 #0000);
}
.ipad .sheet-body.flush :is(.method, .tip-opt)[data-rf] { box-shadow: inset 0 1px 0 0 var(--line-2), var(--rim, 0 0 #0000); }
.ipad .sheet-body.flush :is(.method-grid, .tip-opts) > [data-rl] { --rim: 1px 0 0 0 var(--line-2); }
.ipad .sheet-body.flush :is(.method-grid, .tip-opts) > [data-rb] { --rim: 0 1px 0 0 var(--line-2); }
.ipad .sheet-body.flush .method {
  flex-direction: row; align-items: center; justify-content: center; gap: var(--sp-2); padding: var(--sp-1) var(--sp-2);
  font-size: var(--fs-md); font-weight: var(--fw-semibold); text-align: center;
}
.ipad .sheet-body.flush .method > svg { flex: none; }
.ipad .sheet-body.flush .method > span { text-wrap: balance; }
.ipad .sheet-body.flush :is(.method, .tip-opt).on, .ipad .sheet-body.flush :is(.method, .tip-opt).on:hover { background: var(--accent); color: var(--accent-ink); }
.ipad .sheet-body.flush .tip-opt.on .tip-v { color: inherit; }
.ipad .sheet-body.flush :is(.method, .tip-opt):disabled:not(.on) { background: var(--surface); color: var(--ink-3); }
.ipad .sheet-body.flush .tip-pick { gap: 0; }
.ipad .sheet-body.flush .tip-opt { min-width: 0; padding: var(--sp-2) var(--sp-1); font-size: var(--fs-md); white-space: normal; }
.ipad .sheet-body.flush .tip-opt .tip-v { font-family: var(--font-timer); font-size: var(--fs-sm); font-weight: var(--fw-regular); }
.ipad .sheet-body.flush .tip-pick > :is(.tip-own, .warn-txt, .tip-who) { margin: 0; padding: 0 var(--sp-4); box-shadow: inset 0 1px 0 0 var(--line-2); }
.ipad .sheet-body.flush .tip-pick > :is(.warn-txt, .tip-who) { display: flex; align-items: center; min-height: 56px; font-size: var(--fs-sm); }
/* the guest's own amount: its name and its field two rows' height */
.ipad .sheet-body.flush .tip-own { justify-content: center; gap: var(--sp-1); min-height: 112px; }
.ipad .sheet-body.flush .tip-own > .field-label { min-height: 0; padding: 0; background: none; box-shadow: none; }
.ipad .sheet-body.flush .pay-methods > :is(.cash-calc, .ips-panel, .term-panel, .pay-free, .muted.small) { margin: 0; border: 0; border-radius: 0; padding: var(--sp-3) var(--sp-4); box-shadow: inset 0 1px 0 0 var(--line-2); }
.ipad .sheet-body.flush .pay-methods > :is(.term-hint, .pay-free, .muted.small) { display: flex; align-items: center; min-height: 56px; padding-block: 0; }
/* the change (3 November): «Получено · Сдача» two cells of a row, as «К оплате» — the word at the left, the sum at the
   right; what the guest gave in tiles of one row, the bill's own amount first («без сдачи» in figures), the notes over
   it; «Сдачу — в чаевые» a row; the keys as the PIN's, one block — rows of 56, as the bill's */
/* (.cash-calc twice: over the panels' padding above, whose :is() counts .muted.small) */
.ipad .sheet-body.flush .pay-methods > .cash-calc.cash-calc { gap: 0; padding: 0; background: none; }
.ipad .sheet-body.flush .cash-top { gap: 0; }
.ipad .sheet-body.flush .cash-cell {
  flex-direction: row; align-items: center; justify-content: space-between; gap: var(--sp-2); min-height: 56px; padding: 0 var(--sp-4);
  border-radius: 0; background: var(--surface);
}
.ipad .sheet-body.flush .cash-cell { box-shadow: inset 0 1px 0 0 var(--line-2); }
.ipad .sheet-body.flush .cash-cell + .cash-cell { box-shadow: inset 1px 0 0 0 var(--line-2), inset 0 1px 0 0 var(--line-2); }
.ipad .sheet-body.flush .cash-cell > .field-label { margin: 0; color: var(--ink-3); font-size: var(--fs-sm); font-weight: var(--fw-regular); letter-spacing: 0; text-transform: none; }
.ipad .sheet-body.flush .cash-val { font-family: var(--font-timer); font-size: var(--fs-xl); font-weight: var(--fw-semibold); line-height: 28px; letter-spacing: -0.03em; }
.ipad .sheet-body.flush .cash-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 0; }
.ipad .sheet-body.flush :is(.cash-quick > .chip, .cash-key) {
  display: flex; align-items: center; justify-content: center; height: auto; min-height: 56px; padding: 0 var(--sp-1); border: 0; border-radius: 0;
  background: var(--surface); color: var(--ink); font-family: var(--font-timer); font-weight: var(--fw-semibold); letter-spacing: -0.03em;
  box-shadow: inset 1px 0 0 0 var(--line-2), inset 0 1px 0 0 var(--line-2), var(--rim, 0 0 #0000);
}
.ipad .sheet-body.flush .cash-quick > .chip { font-size: var(--fs-md); }
.ipad .sheet-body.flush .cash-key { font-size: var(--fs-xl); }
.ipad .sheet-body.flush :is(.cash-quick > .chip[data-rf], .cash-key:nth-child(3n + 1)) { box-shadow: inset 0 1px 0 0 var(--line-2), var(--rim, 0 0 #0000); }
.ipad .sheet-body.flush .cash-quick > [data-rl] { --rim: 1px 0 0 0 var(--line-2); }
.ipad .sheet-body.flush .cash-quick > [data-rb] { --rim: 0 1px 0 0 var(--line-2); }
.ipad .sheet-body.flush .cash-quick > .chip.on, .ipad .sheet-body.flush .cash-quick > .chip.on:hover { background: var(--accent); color: var(--accent-ink); }
.ipad .sheet-body.flush :is(.cash-quick > .chip, .cash-key):active { background: var(--surface-3); transform: none; }
.ipad .sheet-body.flush .cash-keep {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: 56px; padding: 0 var(--sp-4); border: 0; border-radius: 0;
  background: var(--ok-soft); color: var(--ok); font-size: var(--fs-md); font-weight: var(--fw-semibold); box-shadow: inset 0 1px 0 0 var(--line-2); cursor: pointer;
}
.ipad .sheet-body.flush .cash-keys { gap: 0; }
.ipad .sheet-body.flush .pay-points { gap: var(--sp-2); padding: 0 0 var(--sp-3); border-radius: 0; background: var(--surface); }
.ipad .sheet-body.flush .pay-points > :not(.field-label) { margin: 0 var(--sp-4); }
.ipad .sheet-body.flush .pay-split { width: 56px; height: 56px; border-radius: 0; }

/* «Смена»: the plan's line a row; the people tiles two to a row from edge to edge, a line only between them, the
   avatar green for whoever is on shift here, the words amber for whoever has not clocked in */
.ipad .sheet-body.flush > .shift-plan-sum { margin: 0; padding: var(--sp-3) var(--sp-4); }
.ipad .sheet-body.flush > .shift-grid { margin: 0; gap: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line-2); }
.ipad .sheet-body.flush .shift-person {
  min-height: 112px; padding: var(--sp-3) var(--sp-4); border: 0; border-radius: 0; background: var(--surface);
  box-shadow: inset 1px 0 0 0 var(--line-2), inset 0 1px 0 0 var(--line-2);
}
.ipad .sheet-body.flush .shift-person:nth-child(2n + 1) { box-shadow: inset 0 1px 0 0 var(--line-2); }
.ipad .sheet-body.flush .shift-person:hover { background: var(--surface); }
.ipad .sheet-body.flush .shift-person:active { background: var(--surface-3); }
.ipad .sheet-body.flush .shift-who .strong { font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.ipad .sheet-body.flush .shift-who .small { font-size: var(--fs-sm); }

/* ---------- the lock: as it was, the keys bigger ----------
   (1 November, 08:20, the owner of the two zones: «Экран входа раньше был лучше. Но кнопки можно сделать больше») in
   the middle of the screen, one under another: the RUVO plate and the restaurant, «Введите свой PIN» (22 semibold), the
   dots, a wrong PIN's line, the keys, «Это устройство»; the keys one block of tiles, as before, each 128 × 104 (on a
   lower screen — an iPad mini on its side — less high, never under 80), the figures 28 semibold; under 7 the eye that
   shows the PIN, as on the iPhone's PIN — the block whole, no corner missing */
.lock-big { --lk: clamp(80px, 12.6vh, 104px); }
.lock-big .lock-box { max-width: none; gap: var(--sp-5); }
.lock-big .lock-titles .screen-title { font-size: var(--fs-xl); font-weight: var(--fw-semibold); }
.lock-big .pin { gap: var(--sp-5); }
.lock-big .pin-dots { align-items: center; min-height: 28px; }
.lock-big .pin-grid { grid-template-columns: repeat(3, calc(var(--lk) * 1.23)); }
.lock-big .pin-key { width: calc(var(--lk) * 1.23); height: var(--lk); font-size: var(--fs-2xl); font-weight: var(--fw-semibold); }
.lock-big .pin-extra { color: var(--ink-2); }
.lock-big .pin-eye[aria-pressed="true"] { color: var(--accent); }
.lock-big .pin-dots.shown .pin-dot.on { width: auto; min-width: 16px; height: auto; border: 0; background: none; font-size: var(--fs-xl); font-weight: var(--fw-semibold); line-height: 28px; }

/* «Счёт на кассу» (2 November): a waiter's request over the iPad's screens — the phone's banner, in the middle at the top,
   as wide as a sheet; the bill's violet (50-phone.css) */
.ipad .push { left: 0; right: 0; width: min(560px, calc(100% - 2 * var(--sp-4))); margin: 0 auto; }

/* ---------- «Кассовая смена»: the cash shift on the iPad (ui/cash-shift.jsx, cash.js; server 0.65–0.66) ----------
   (1 November, the owner: «тот, кто открывает смену первый, он пересчитывает наличные в кассе … Делаем»; 20:31 — the
   name, «надо сделать возможность заносить расходы наличными через фронт») As the PIN's
   sheet: what the drawer should hold rows from edge to edge — their names 14 regular, the figures of an instrument 16
   semibold, «Должно быть» 16 semibold —, a line only between them; the question a row of the screen's shade; what is
   typed large in the figures of an instrument (grey while nothing is), the difference under it — green it matches, red
   short, amber over —; the keys 28 semibold from edge to edge, every row one height, the pills hanging under them. The
   hall's tile an amber dot while no shift is open, as «Смена» of «Профиль» when someone has not clocked in. */
.sheet-body.flush > :is(.cash-sheet, .cash-rows) { margin: 0; }
.cash-sheet { display: flex; flex-direction: column; }
.cash-rows { display: flex; flex-direction: column; }
.cash-row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 44px; padding: 0 var(--sp-4);
  box-shadow: inset 0 1px 0 0 var(--line-2); color: var(--ink-2); font-size: var(--fs-sm);
}
.cash-row:first-child { box-shadow: none; }
.cash-row-v { color: var(--ink); font-family: var(--font-timer); font-size: var(--fs-md); font-weight: var(--fw-semibold); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cash-row.total { color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.cash-row.tone-ok, .cash-row.tone-ok .cash-row-v { color: var(--ok); }
.cash-row.tone-bad, .cash-row.tone-bad .cash-row-v { color: var(--bad); }
.cash-row.tone-warn, .cash-row.tone-warn .cash-row-v { color: var(--warn); }
.cash-pad { display: flex; flex-direction: column; outline: 0; }
.cash-ask {
  display: flex; align-items: center; min-height: 44px; padding: 0 var(--sp-4); background: var(--bg);
  box-shadow: inset 0 1px 0 0 var(--line-2), inset 0 -1px 0 0 var(--line-2); color: var(--ink-3); font-size: var(--fs-sm);
}
/* (no rows above it — the first shift: the head's line is its top) */
.cash-sheet > .cash-pad:first-child > .cash-ask { box-shadow: inset 0 -1px 0 0 var(--line-2); }
.cash-show { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-1); min-height: 96px; padding: var(--sp-3) var(--sp-4); }
.cash-sum { font-family: var(--font-timer); font-size: var(--fs-2xl); font-weight: var(--fw-semibold); letter-spacing: -0.03em; line-height: 36px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cash-sum.blank { color: var(--ink-3); }
.cash-sum .money-u { color: var(--ink-2); font-family: var(--font-ui); font-size: var(--fs-sm); font-weight: var(--fw-regular); letter-spacing: 0; }
.cash-state { min-height: 20px; color: var(--ink-2); font-size: var(--fs-sm); text-align: center; }
.cash-state.tone-ok { color: var(--ok); }
.cash-state.tone-bad { color: var(--bad); }
.cash-state.tone-warn { color: var(--warn); }
.cash-pad .pin-grid { width: 100%; padding: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cash-pad .pin-key {
  width: auto; height: var(--key-h, 64px); border: 0; border-radius: 0; font-size: var(--fs-2xl); font-weight: var(--fw-semibold);
  box-shadow: inset 1px 0 0 0 var(--tile-line), inset 0 1px 0 0 var(--tile-line);
}
.cash-pad .pin-key:nth-child(3n + 1) { box-shadow: inset 0 1px 0 0 var(--tile-line); }
/* (under the keys a line: the body goes on under the pills) */
.cash-pad .pin-grid { box-shadow: 0 1px 0 0 var(--tile-line); }
/* the hall's tile: the dot */
.cash-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 2px var(--surface); }
/* (its middle on the line of the neighbours' counts, 24 high at the same corner) */
.ipad .pf-tile .cash-dot { position: absolute; top: calc(var(--sp-4) + 7px); right: var(--sp-5); }
@media (max-width: 960px) { .ipad .pf-tile .cash-dot { right: var(--sp-4); } }
/* «Расход»: what for — six keys, three to a row from edge to edge (16 semibold), the chosen one the accent's, as a
   category key; a note a row from edge to edge, the accent's line under it while it is typed in. The shift's expenses
   rows: what for 16 semibold, when · who · the word 14 regular, the amount in the figures; one voided struck out, grey;
   a tap opens «Отменить расход» under it, on the screen's shade */
.cash-sheet > .cash-ask-top:first-child { box-shadow: inset 0 -1px 0 0 var(--line-2); }
.cash-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cash-kind {
  min-width: 0; min-height: 56px; padding: 0 var(--sp-3); border: 0; border-radius: 0; background: var(--surface); color: var(--ink);
  font: inherit; font-size: var(--fs-md); font-weight: var(--fw-semibold); text-align: center; cursor: pointer;
  box-shadow: inset 1px 0 0 0 var(--line-2), inset 0 -1px 0 0 var(--line-2);
}
.cash-kind:nth-child(3n + 1) { box-shadow: inset 0 -1px 0 0 var(--line-2); }
.cash-kind:active { background: var(--surface-3); }
.cash-kind.on, .cash-kind.on:active { background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 -1px 0 0 var(--accent); }
.cash-note {
  display: block; width: 100%; height: 44px; padding: 0 var(--sp-4); border: 0; border-radius: 0; background: var(--surface); color: var(--ink);
  font: inherit; font-size: var(--fs-sm); box-shadow: inset 0 -1px 0 0 var(--line-2); outline: 0;
}
.cash-note::placeholder { color: var(--ink-3); }
.cash-note:focus { box-shadow: inset 0 -2px 0 0 var(--accent); }
.cash-out { width: 100%; border: 0; border-radius: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.cash-out .cash-row-l { display: flex; align-items: baseline; gap: var(--sp-2); min-width: 0; overflow: hidden; }
.cash-out-kind { flex: none; color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.cash-out-meta { min-width: 0; overflow: hidden; color: var(--ink-2); font-size: var(--fs-sm); text-overflow: ellipsis; white-space: nowrap; }
.cash-out.open, .cash-out:active:not(:disabled) { background: var(--bg); }
.cash-out:disabled { opacity: 1; cursor: default; }
.cash-out.voided .cash-out-kind, .cash-out.voided .cash-row-v { color: var(--ink-3); text-decoration: line-through; }
.cash-out-act { display: flex; justify-content: flex-end; padding: 0 var(--sp-4) var(--sp-3); background: var(--bg); }
.cash-out-act .btn { min-height: 44px; border-radius: var(--r-pill); }
/* (23:20, the owner: «Давай в кассовую смену добавим валюту и все типы оплат за нее») every sum with its currency, in
   the names' size and ink after the figures; «Оплаты за смену» — a way of paying a row (Wolt and Glovo their tags on
   their colours), the tips left with it 14 regular beside its name; «Всего» 16 semibold */
.cash-row-v .money-u { color: var(--ink-2); font-family: var(--font-ui); font-size: var(--fs-sm); font-weight: var(--fw-regular); letter-spacing: 0; }
.cash-row.tone-ok .cash-row-v .money-u, .cash-row.tone-bad .cash-row-v .money-u, .cash-row.tone-warn .cash-row-v .money-u { color: inherit; }
.cash-out.voided .cash-row-v .money-u { color: var(--ink-3); }
.cash-pay .cash-row-l { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; overflow: hidden; }
.cash-pay-name { flex: none; color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.cash-pay .ch { flex: none; }
/* «Кассовые смены» in the back office (ui/office-cash.jsx; server 0.67): a shift a row — its day and times, what it took
   by every way of paying, the expenses, what should have been and what was counted in the figures of an instrument, the
   difference coloured as on the iPad (green it matched, red short, amber over); the open one on top on the accent's
   shade; the period's closed shifts in all under them. A tap opens the shift in a drawer — the iPad's rows */
.cs-table td.num, .cs-table th.num { text-align: right; white-space: nowrap; }
.cs-table td { white-space: nowrap; }
.cs-table .money { font-family: var(--font-timer); font-variant-numeric: tabular-nums; }
.cs-table .money .money-u { color: var(--ink-3); font-family: var(--font-ui); }
.cs-table tr.cs-open td { background: var(--accent-soft); }
.cs-diff.tone-ok { color: var(--ok); }
.cs-diff.tone-bad { color: var(--bad); }
.cs-diff.tone-warn { color: var(--warn); }
.cs-diff:is(.tone-ok, .tone-bad, .tone-warn) .money-u { color: inherit; }
.cs-total td { font-weight: var(--fw-semibold); box-shadow: inset 0 1px 0 0 var(--line); }
.sheet-body.flush > .cs-sheet { margin: 0; }
.cs-note { margin: 0; padding: var(--sp-3) var(--sp-4); }

/* ---------- narrower screens ---------- */
@media (max-width: 1180px) {
  .hall { grid-template-columns: minmax(0, 1fr) 290px; }
  .order-screen { grid-template-columns: minmax(0, 1fr) 370px; }
  .menu-grid { grid-template-columns: 168px minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .topbar { flex-wrap: wrap; row-gap: var(--sp-2); }
  .topbar .tb-tabs { order: 3; width: 100%; margin: 0; }
  .topbar .tb-tabs .seg-btn { flex: 1; justify-content: center; }
  /* the plan, then the rail's cards under it, one column that scrolls: each as tall as it is (in a grid of two auto
     rows the plan's height, set by its width, was not counted, and the cards slid beneath its bottom edge) */
  .hall { display: flex; flex-direction: column; overflow: auto; }
  .hall-left { flex: none; overflow: visible; }
  .hall-left .plan-wrap { flex: none; }
  .hall-rail { flex: none; }
  /* the rail's cards under the plan, in rows of one height */
  .hall-rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: stretch; overflow: visible; border-left: 0; border-top: 1px solid var(--line); }
  .legend { display: none; }
  .order-screen { grid-template-columns: minmax(0, 1fr) 340px; }
  /* (the order screen's grid: the search and the categories are one row, its line where the bill's head ends) */
  .menu-grid { grid-template-columns: 1fr; grid-template-rows: var(--row, 104px) minmax(0, 1fr); }
  .menu-cats { justify-content: center; gap: var(--sp-2); height: var(--row, 104px); padding-block: 0; overflow: hidden; scroll-snap-type: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .menu-cats > .search { margin-block: 0; }
  .cat-list { flex-direction: row; gap: var(--sp-1); overflow-x: auto; scrollbar-width: none; }
  .cat-btn { height: auto; min-height: var(--h-md); white-space: nowrap; }
  .os-act > .os-more .btn { padding-inline: var(--sp-1); }
  .item-cards { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); }
  .office { flex-direction: column; }
  .of-side { flex-direction: row; align-items: center; gap: var(--sp-3); width: auto; padding: var(--sp-2) var(--sp-3); overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .of-nav { flex-direction: row; }
  /* a section is one item of the strip; its pages take a second strip under it */
  .of-group { display: contents; }
  .of-subwrap, .of-chev { display: none; }
  .of-group.in > .of-group-btn { background: var(--accent-soft); color: var(--accent); }
  .of-subbar {
    display: flex; flex: none; gap: 2px; padding: var(--sp-1) var(--sp-3); overflow-x: auto; scrollbar-width: none;
    border-bottom: 1px solid var(--line); background: var(--surface);
    -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent);
  }
  .of-subbar .of-sub-btn { min-height: var(--h-md); padding: 0 var(--sp-3); }
  .of-side-foot .btn, .of-brand-sub { display: none; }
  .of-side-foot { margin-top: 0; padding: 0; }
  .of-side-foot .lang { margin-left: 0; }
  .tech-layout { grid-template-columns: 1fr; }
  .rv-top .ask { flex: 1 1 320px; }
  .of-side { -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
  .tech-list { position: static; height: auto; contain: none; min-height: 0; max-height: 320px; }
  .of-page { padding: var(--sp-4); }
}
@media (max-width: 640px) {
  .order-screen { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) minmax(0, 1.1fr); }
  .os-ticket { border-left: 0; border-top: 1px solid var(--line); }
  .pay-grid { grid-template-columns: 1fr; }
  .op-chip span:last-child { display: none; }
  .dcols { grid-template-columns: 1fr; }
  .int-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .of-head h1 { font-size: var(--fs-xl); }
  .opt-top { grid-template-columns: minmax(0, 1fr) auto; }
  .opt-n { display: none; }
  .opt-top .opt-name { grid-column: 1 / -1; }
  .opt-line { grid-template-columns: 80px auto minmax(0, 1fr) auto; padding-left: 0; }
  .opt-kind, .opt-line .select { grid-column: 1 / -1; }
  .opt-line .opt-line-fill { grid-column: 1 / 4; }
  .opt-line > .icon-btn { grid-column: 4; }
  .opt-note, .opt-actions { padding-left: 0; }
  .l-wrap { padding: var(--sp-5) var(--sp-4) var(--sp-8); }
  .l-bound-btn { margin-left: calc(-1 * var(--sp-3)); } /* on its own line: the words start at the edge */
  .disc-table .c-opt { display: none; }
  .disc-table .c-phone { display: inline-flex; }
  .disc-table td:first-child { min-width: 132px; }
  .ig-card { padding: var(--sp-4); }
  /* the QR above its words on a phone */
  .ips-panel { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .ips-side { align-items: center; text-align: center; }
  /* (the exports come in from a computer: on a phone the head keeps «Папки» and «Блюдо» on one line) */
  .of-actions .qr-again { display: none; }
  /* devices on a phone: no columns to scroll to — a restaurant with its «Подключить», then each device as a block */
  .dev-table thead { display: none; }
  .dev-table, .dev-table tbody, .dev-table tr, .dev-table th, .dev-table td { display: block; }
  .dev-table tr.dev-loc { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding-block: var(--sp-3) var(--sp-2); }
  .dev-table tbody.dev-group:first-of-type tr.dev-loc { padding-top: 0; }
  .dev-table .dev-loc th, .dev-table .dev-loc td, .dev-table .dev-loc.has th, .dev-table .dev-loc.has td { padding: 0; border: 0; }
  .dev-table .dev-loc th { display: flex; flex-direction: column; min-width: 0; }
  .dev-loc-n { font-size: var(--fs-sm); }
  .dev-loc-n::before { content: none; }
  .dev-table tr.dev-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--sp-1) var(--sp-3); padding: 0 0 var(--sp-3) var(--sp-3); }
  .dev-table .dev-row td, .dev-table .dev-row td:first-child { padding: 0; border: 0; }
  .dev-table .dev-row td:nth-child(2) { grid-row: 2; color: var(--ink-2); font-size: var(--fs-sm); }
  .dev-table .dev-row td:nth-child(3) { grid-column: 2; grid-row: 1; }
  .dev-table .dev-row td:nth-child(4) { grid-column: 1 / -1; text-align: left; }
  .dev-table .dev-acts { margin-left: calc(-1 * var(--sp-3)); }
}

/* ---------- the back office as the front and the waiter's iPhone (2 November) ----------
   The owner, 2 November, 00:35: «давай приводить бекофис к визуалу фронта и приложения официанта». The front's logic
   (50-phone.css, 88-ipad-look.css): big keys one cannot miss, few words, straight edges, zones from edge to edge with a
   line only between them, three styles of letters — 22 semibold, 16 semibold, 14 regular — and the figures of an
   instrument for the sums, the pills as the language of keys, the accent filling what is chosen.
   Here (the root .front-look, office.jsx; «Деньги» keep their look for now):
   · the menu a zone of its own, its first row as tall as a key in the screen's shade, level with the page's header —
     one band across the screen; the sections and pages pills, the chosen one filled with the accent;
   · each page's header a row as tall as a key in the shade, a line under it, staying on top while the page scrolls:
     the title 22 semibold, its keys pills at the right;
   · the page a white zone: cards and tiles flat, a line only between them; a group's name a row of the shade, 14
     regular, grey, no capitals; the numbers of the tiles in the instrument's figures, 22 semibold;
   · tables from edge to edge: their heads a row of the shade, the rows 56 high, a line between them;
   · every key, field and choice a pill; a small key in the small letters. */
.front-look {
  --key-h: 64px; --zl: var(--line-2); --h-sm: var(--h-md);
  --head-bg: linear-gradient(180deg, color-mix(in oklab, var(--bg), var(--accent) 4%), color-mix(in oklab, var(--bg), var(--surface) 35%));
  /* the type ramp folded onto the three styles: the captions and the small to 14, the titles to 16 and 22; bold is
     semibold, medium regular */
  --fs-xs: 14px; --fs-lg: 16px; --fs-2xl: 22px; --fs-3xl: 22px; --fw-bold: 600; --fw-medium: 400;
  --of-top: 0px;
  /* the page's margins: at the sides (the header, the cards, the tables' first and last cells), above and under a card */
  --px: var(--sp-6); --py: var(--sp-5);
  font-size: var(--fs-sm);
  background: var(--surface);
}

/* ---------- letters ---------- */
.front-look :is(.caption, .field-label, .tile-l, .tbl-data th, .tl-cat, .stop-cat-h, .mod-title, .dcol-head, .course-head) {
  font-size: var(--fs-sm); font-weight: var(--fw-regular); letter-spacing: 0; text-transform: none; color: var(--ink-3);
}
.front-look :is(.page-title, .of-head h1, .screen-title, .sheet-title) { font-size: var(--fs-xl); font-weight: var(--fw-semibold); letter-spacing: 0; line-height: 28px; }
.front-look :is(.card-title, .card-head h2, .rail-head, .role-title, .empty-title, .rg-h, .ig-name) { font-size: var(--fs-md); font-weight: var(--fw-semibold); letter-spacing: 0; }
/* (a title's line 20 high, as its «i» beside it: titles of cards side by side on one line to the pixel) */
.front-look .card-head h2 { line-height: 20px; }
.front-look :is(.display, .tile-v) { font-family: var(--font-timer); font-weight: var(--fw-semibold); letter-spacing: -0.03em; }
/* (10 November) a figure's groups of digits apart by a space, not by a monospace cell: «243 800», not «243  800» —
   the no-break space between them is a word's space, and word-spacing takes the cell's half off */
.front-look :is(.display, .tile-v, .rcard-v, .rv-fig-v, .ks-v, .rec-cell .strong, .wg-v, .wg-count, .pg-count b, .cash-row-v, .cs-table .money) { word-spacing: -0.3em; }
/* (10 November, 18:03, the owner on a shift's «Оплаты» and «Как считали кассу»: «Тут сбилась сумма») the currency's space
   is no figure's: the unit after a figure a word's space apart in its own letters — «6 600 RSD», not «6 600RSD» */
.front-look .money-u { word-spacing: normal; }
.front-look .tile-v { font-size: var(--fs-xl); line-height: 28px; }
/* small keys and tags in the small letters, regular */
.front-look :is(.btn-sm, .chip, .st, .ch, .pct, .lang-btn, .seg-btn, .seg-count, .seg-badge, .line-chip, .stop-limit-btn, .ig-tag, .rcard-u, .tile-sub, .cell-sub, .card-sub, .sheet-sub, .check-hint, .form-hint, .note, .link-btn, .scan-offer-go) {
  font-weight: var(--fw-regular);
}
.front-look .money-u { font-family: var(--font-ui); font-size: var(--fs-sm); font-weight: var(--fw-regular); letter-spacing: 0; }
/* what was bold is a name: 16 semibold (bold itself is semibold); a bold word in the small letters stays small and
   regular — its colour says it (a share, a delta, a count); a tag the same */
.front-look :is(b, strong, .strong, .check-name, .dev-loc-name, .tech-total > span, .avatar) { font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.front-look .switch { font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.front-look :is(.small, .muted.small, .cell-sub) { font-size: var(--fs-sm); }
.front-look :is(.small, .switch .small, .lt-name, .sum-tips-l, .sp-chip b, .low-qty, .dlt, .lvl-tag, .rt-tag, .rt-avg, .sh-cell, .sh-late, .rcard-d, .rcard-d *, .fc-more),
.front-look :is(.small, .muted, .sp-chip, .rt-tags, .rcard-d) :is(b, strong, .strong) { font-size: var(--fs-sm); font-weight: var(--fw-regular); }
.front-look .small :is(b, strong, .strong), .front-look .small.strong { color: var(--ink); }
/* (the preview of a Telegram message is a picture of Telegram's own: its bold lines stay as Telegram draws them) */
.front-look .tg-msg :is(b, strong, .strong, .tg-b) { font-size: inherit; }

/* ---------- the menu ---------- */
.front-look .of-side { gap: 0; padding: 0 0 var(--sp-3); border-right: 1px solid var(--zl); background: var(--surface); }
/* (2 November, the owner: «линии по горизонтали — чтобы стык в стык были») the page's header is a key's height with its
   line under it (64 + 1); the menu's head the same 65 with its line as its last pixel — one line across the screen */
.front-look .of-brand { flex: none; height: calc(var(--key-h) + 1px); padding: 0 var(--sp-5) 1px; background: var(--head-bg); box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .of-brand-sub { font-size: var(--fs-md); }
.front-look .of-me .avatar { width: 36px; height: 36px; font-size: var(--fs-md); font-weight: var(--fw-semibold); }
/* (2 November) the avatar is a key: under it the device's things — the person, the languages, another device, «Выйти» */
.front-look .of-me { flex: none; align-items: center; justify-content: center; width: var(--h-md); height: var(--h-md); margin-right: calc(-1 * var(--sp-2)); padding: 0; border: 0; border-radius: var(--r-pill); background: none; cursor: pointer; }
/* (the avatar's circle stays its 36 px when pressed — the theme's beside it is the same) */
.front-look .of-me:hover .avatar, .front-look .of-me[aria-expanded='true'] .avatar { box-shadow: inset 0 0 0 18px rgb(19 24 36 / 0.08); }
.of-me-pop { display: flex; flex-direction: column; gap: var(--sp-3); min-width: 240px; padding: var(--sp-4); }
.of-me-pop > * + * { margin-top: 0; }
.of-me-who { display: flex; flex-direction: column; gap: 2px; }
.of-me-keys { display: flex; flex-direction: column; gap: var(--sp-2); }
.of-me-keys .btn { justify-content: flex-start; width: 100%; }
.front-look .of-scope { flex: none; padding: var(--sp-4) var(--sp-4) var(--sp-2); }
.front-look .of-scope .select { padding-left: var(--sp-4); }
.front-look .of-scope-one { padding: 0 var(--sp-4); font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.front-look .of-nav { gap: var(--sp-1); }
.front-look .of-side > .of-nav { margin: 0; padding: var(--sp-2) var(--sp-4); }
.front-look :is(.of-nav-btn, .of-sub-btn) {
  min-height: var(--h-md); padding: 0 var(--sp-4); border-radius: var(--r-pill); color: var(--ink);
  font-size: var(--fs-md); font-weight: var(--fw-semibold);
}
/* a section's pages: the small letters, as the halls' pills on the iPad («Зал», «Терраса»), their words under the
   section's name; the chosen one filled */
.front-look .of-sub-btn { padding-left: 46px; color: var(--ink-2); font-size: var(--fs-sm); font-weight: var(--fw-regular); }
.front-look .of-subnav { gap: var(--sp-1); }
.front-look .of-subnav::before { height: 0; }
.front-look :is(.of-nav-btn, .of-sub-btn):hover { background: var(--surface-3); color: var(--ink); }
.front-look :is(.of-nav-btn.on, .of-sub-btn.on, .of-group.in:not(.open) > .of-group-btn),
.front-look :is(.of-nav-btn.on, .of-sub-btn.on, .of-group.in:not(.open) > .of-group-btn):hover { background: var(--accent); color: var(--accent-ink); }
.front-look .of-group.in:not(.open) > .of-group-btn .of-chev { color: currentColor; }
.front-look .of-group.in > .of-group-btn { color: var(--ink); }
.front-look .of-side-foot { gap: var(--sp-2); padding: var(--sp-2) var(--sp-4) 0; }
.front-look .of-side-foot .sync { padding: 0 var(--sp-4); }
.front-look .of-side-foot .btn { padding: 0 var(--sp-4); }
.front-look .of-side-foot .lang { margin-left: 0; }
/* the languages: three pills, the chosen one filled */
.front-look .lang { gap: var(--sp-1); overflow: visible; border-radius: 0; outline: 0; }
.front-look .lang-btn { min-width: var(--h-md); min-height: var(--h-md); padding: 0 var(--sp-3); border-radius: var(--r-pill); background: var(--surface-3); color: var(--ink); font-size: var(--fs-sm); }
.front-look .lang-btn.on { background: var(--accent); color: var(--accent-ink); }

/* ---------- the page ---------- */
.front-look .of-main { background: var(--surface); }
.front-look .of-page { gap: 0; padding: 0 0 var(--sp-8); }
/* the header: a row as tall as a key in the screen's shade, a line under it, on top while the page scrolls */
.front-look .of-head {
  position: sticky; top: 0; z-index: 6; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); min-height: var(--key-h);
  padding: 10px var(--px); background: var(--head-bg); box-shadow: 0 1px 0 0 var(--zl);
}
.front-look .of-head-text, .front-look .of-actions { min-height: var(--h-md); }
.front-look .of-head h1 { gap: var(--sp-1); }
.front-look .of-back { width: var(--h-md); height: var(--h-md); margin: 0 var(--sp-3) 0 calc(-1 * var(--sp-2)); border-radius: var(--r-pill); background: var(--pill); color: var(--ink); box-shadow: 0 1px 2px rgb(19 24 36 / 0.08); }
/* its keys and choices: pills; the plain ones white on the shade, as the iPad's header pills */
.front-look .of-head :is(.btn-secondary, .btn-ghost, .select, .chip:not(.on)) { border-color: transparent; background: var(--pill); box-shadow: 0 1px 2px rgb(19 24 36 / 0.08); }
.front-look .of-head :is(.btn-secondary, .btn-ghost, .select):hover:not(:disabled) { border-color: transparent; background: var(--pill-press); }
.front-look .of-head .seg { background: none; }
/* what stands on the page itself between its zones — a choice of tabs, a toolbar, a line of words, nothing found: a
   row with the page's margins */
.front-look .of-page > :is(.seg, .sh-bar, p, .muted, .ask, .empty, .note, .row-gap, .toolbar, .stop-tools, .srv-strip, .bk-daybar) { margin: 0; padding: var(--sp-4) var(--px); }
.front-look .of-page > .seg { align-self: stretch; }
.front-look .of-page > :is(.seg, .sh-bar, p, .ask, .bk-daybar) + :is(.card, .kpi-row, .two-col, .sum-grid, .ig-grid, .int-grid, .loc-grid, .tg-grid, .tech-layout) { border-top: 1px solid var(--zl); }
/* a day's field (bookings) a pill as the others */
.front-look .bk-date { border-radius: var(--r-pill); padding: 0 var(--sp-4); }

/* ---------- cards: flat, a line under each ---------- */
.front-look .card { gap: var(--sp-3); padding: var(--py) var(--px); border: 0; border-bottom: 1px solid var(--zl); border-radius: 0; background: var(--surface); box-shadow: none; }
.front-look .dlv-card { padding: 0 var(--px); }
.front-look .card.flush { gap: 0; padding: 0; }
.front-look .card.flush > .card-head { min-height: 56px; padding: var(--sp-2) var(--px); }
.front-look .card-head { min-height: var(--h-md); }
/* a table or a list inside a card with margins reaches the card's edges: its rows' lines from edge to edge */
.front-look .card:not(.flush) > :is(.table-wrap, .tbl-data, .sh-now, .plain-list, .ev-list, .low-list, .rt-list) { margin: 0 calc(-1 * var(--px)); }
.front-look .card:not(.flush) > :is(.table-wrap, .tbl-data):last-child { margin-bottom: calc(-1 * var(--py)); }
.front-look .card > :is(.sh-now, .plain-list, .ev-list, .low-list, .rt-list) > li { min-height: 56px; padding: var(--sp-2) var(--px); border-color: var(--zl); }

/* ---------- grids of cards and tiles: side by side from edge to edge, a line only between them ----------
   (each its line at the left and under it; the first column's left line hides under the menu's) */
/* (a line of its own after the last row, on the cells' own lines; 2 November, «не растягивай блоки»: a last row not
   full — five restaurants three and two — keeps its cards one column wide, and the lines go round its end as round a
   card: the last one's line at its right (86-tiles.css), the line under the grid stops with the cells — no empty block
   closed after them) */
.front-look .of-page > :is(.kpi-row, .two-col, .sum-grid, .ig-grid, .int-grid, .loc-grid)::after {
  content: ''; grid-column: 1 / -1; height: 0; margin-top: -1px; border-top: 1px solid var(--zl);
}
.front-look .of-page > :is(.kpi-row, .two-col, .sum-grid, .ig-grid, .int-grid, .loc-grid)[data-tail]::after { display: none; }
/* (only the page's own grids, at its left edge; a grid inside a card keeps its own gaps) */
.front-look .of-page > :is(.kpi-row, .two-col, .sum-grid, .ig-grid, .int-grid, .loc-grid), .front-look .rg-grid { gap: 0; margin-left: -1px; }
.front-look .of-page > :is(.two-col, .sum-grid, .ig-grid, .int-grid, .loc-grid) > *,
.front-look .of-page > .kpi-row > .tile,
.front-look .rg-grid > .rcard > .rcard-btn {
  border: 0; border-radius: 0; background: var(--surface); box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl), var(--rim, 0 0 #0000);
}
.front-look .of-page > .kpi-row > .tile { padding: var(--sp-4) var(--px); row-gap: 2px; }
.front-look .tile-btn.on { box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl), inset 0 -4px 0 0 var(--warn), var(--rim, 0 0 #0000); }
.front-look .tile-l { color: var(--ink-2); }
.front-look .ig-card { padding: var(--py) var(--px); }
/* (its foot at the card's bottom, as before, one height whatever is in it — a switch and a key, or a tag: the feet of a
   row on one line; the switch says on or off itself — its word is for a screen reader, so the key keeps its line) */
.front-look .ig-foot {
  flex-wrap: nowrap; min-height: calc(var(--h-md) + 2 * var(--sp-3) + 1px); margin: auto calc(-1 * var(--px)) calc(-1 * var(--py));
  padding: var(--sp-3) var(--px); border-top: 0; box-shadow: inset 0 1px 0 0 var(--zl);
}
.front-look .ig-switch > .small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the sums by the way of paying (a card's .reconcile-row — «Сводка»): cells from the card's edge to edge, a line at the
   left and under each, a line over the row; the sum in the instrument's figures, as the iPad's «Закрытые» */
/* (as many cells in a row as hold a sum in the instrument's figures — 144 each at least: six of them side by side in a
   half-width card had spilled their sums) */
/* (the cells stand flush — the iPad's gap of 8 between them had broken every line into dashes; under a partial last row
   the line runs on to the card's edge) */
.front-look .card > .reconcile-row {
  grid-template-columns: repeat(auto-fill, minmax(144px, 1fr)); grid-auto-rows: auto; gap: 0;
  margin: 0 calc(-1 * var(--px)) 0 calc(-1 * var(--px) - 1px); border-top: 1px solid var(--zl); box-shadow: inset 0 -1px 0 0 var(--zl);
}
.front-look .card > .reconcile-row > .rec-cell {
  justify-content: space-between; gap: 2px; min-height: 88px; padding: var(--sp-4) var(--px); border: 0; border-radius: 0; background: var(--surface);
  box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl), var(--rim, 0 0 #0000);
}
.front-look .rec-cell .muted { color: var(--ink-2); }
.front-look .rec-cell .strong { font-family: var(--font-timer); font-size: var(--fs-xl); font-weight: var(--fw-semibold); letter-spacing: -0.03em; line-height: 28px; }
.front-look .card > .reconcile-row:last-child { margin-bottom: calc(-1 * var(--py) - 1px); }
/* (3 November, the owner: «Оплат нет — лишняя линия внизу») a card of the page's grid draws its lines inside itself and
   has no border: the row last in it reaches the card's own bottom, not a pixel past it — and fills a card the card
   beside made taller, its cells with it: the line under them is the card's, not a second one a few pixels over it */
.front-look .of-page > .sum-grid > .card > .reconcile-row:last-child { flex: 1 0 auto; margin-bottom: calc(-1 * var(--py)); }
/* (each cell one column, a short last row short: the lines round its end, 86-tiles.css — the row's own line under it
   stops with the cells) */
.front-look .card > .reconcile-row[data-tail] { box-shadow: none; }
.front-look .sum-tips { margin-top: 0; border-top: 0; }
.front-look .sum-tips-v { font-size: var(--fs-md); }

/* ---------- «Отчёты»: a topic's name a row of the shade, its reports tiles from edge to edge ---------- */
.front-look.office .reports .rg { gap: 0; margin-top: 0; }
.front-look .rg-h { display: flex; align-items: center; min-height: 44px; padding: 0 var(--px); background: var(--bg); box-shadow: inset 0 -1px 0 0 var(--zl); color: var(--ink-3); font-size: var(--fs-sm); font-weight: var(--fw-regular); }
.front-look .rcard-btn { padding: var(--sp-4) var(--px); }
.front-look .rcard-btn:hover { background: var(--surface-2); }
.front-look .rcard-v { font-family: var(--font-timer); font-size: var(--fs-xl); font-weight: var(--fw-semibold); letter-spacing: -0.03em; }
.front-look .rcard-vs { font-size: var(--fs-sm); }
.front-look .rcard-lv { font-weight: var(--fw-regular); }

/* ---------- tables ---------- */
.front-look .tbl-data { font-size: var(--fs-sm); }
.front-look .tbl-data th { height: 44px; padding: 6px var(--sp-3); border-bottom: 0; background: var(--bg); box-shadow: inset 0 -1px 0 0 var(--zl); vertical-align: middle; }
/* (a head over figures stands at the right: its left margin small, so a long word — «Себестоимость» — keeps inside) */
.front-look .tbl-data th.num { padding-left: var(--sp-1); }
.front-look .menu-table th.c-cost { width: clamp(136px, 10vw, 160px); }
/* (a row 56 high at least; a field or a key in it stands 12 away from its lines — not a few pixels off them) */
.front-look .tbl-data td { height: 56px; padding: var(--sp-3); border-bottom: 1px solid var(--zl); }
.front-look .tbl-data.compact td { height: 44px; padding-top: var(--sp-1); padding-bottom: var(--sp-1); }
/* (the cards' own «flush» edges, 16, are the page's margins now) */
.front-look .tbl-data :is(th, td):first-child, .front-look .card.flush .tbl-data :is(th, td):first-child { padding-left: var(--px); }
.front-look .tbl-data :is(th, td):last-child, .front-look .card.flush .tbl-data :is(th, td):last-child { padding-right: var(--px); }
.front-look .tbl-data[data-th-up] > thead th { background: var(--bg); }
.front-look .tbl-data[data-th-up] > thead tr:last-child th { box-shadow: inset 0 -1px 0 var(--zl), 0 6px 6px -6px rgba(0, 0, 0, 0.18); }
.front-look .tbl-data tr.clickable:hover td { background: var(--surface-2); }
.front-look .tbl-data :is(td, th) :is(b, strong, .strong):not(.small) { font-size: var(--fs-md); }
.front-look .tbl-data tfoot td { font-weight: var(--fw-semibold); font-size: var(--fs-md); }

/* ---------- keys, fields, choices: pills ---------- */
.front-look :is(.btn, .icon-btn, .icon-btn.sm, .select, .select.sm, .search, .cell-input, .line-input, .field input, .period-dates input, .ask-field input, .tool-btn, .stepper, .stepper-sm) { border-radius: var(--r-pill); }
.front-look .btn { min-height: var(--h-md); }
.front-look .btn-sm { padding: 0 var(--sp-4); font-size: var(--fs-sm); }
.front-look .select { padding: 0 var(--sp-3) 0 var(--sp-4); font-size: var(--fs-sm); }
.front-look .select-pop { border-radius: var(--r-lg); }
.front-look .select-opt { border-radius: var(--r-pill); font-size: var(--fs-sm); }
.front-look .select-opt[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); font-weight: var(--fw-regular); }
.front-look .field input, .front-look .search { padding: 0 var(--sp-4); }
.front-look textarea { border-radius: var(--r-lg); }
/* a choice of several: pills side by side, the chosen one filled with the accent (as the halls on «Столы») */
.front-look .seg { gap: var(--sp-2); padding: 0; border-radius: 0; background: none; }
.front-look .seg-btn { min-height: var(--h-md); padding: 0 var(--sp-4); border-radius: var(--r-pill); background: var(--surface-3); color: var(--ink); font-size: var(--fs-sm); }
.front-look .seg-btn::before { display: none; }
.front-look .seg-btn:hover:not(.on):not(:disabled) { background: var(--pill-press); }
.front-look .seg-btn.on { background: var(--accent); color: var(--accent-ink); }
.front-look .seg-btn.on .seg-count { color: inherit; opacity: 0.8; }
.front-look .seg-chips .seg-btn { min-height: var(--h-md); border: 0; background: var(--surface-3); }
.front-look .seg-chips .seg-btn.on { background: var(--accent); color: var(--accent-ink); }
.front-look .chip { min-height: var(--h-md); border: 0; background: var(--surface-3); font-weight: var(--fw-regular); }
.front-look .chip.on { background: var(--accent); color: var(--accent-ink); }
/* the tags: the small letters on their shade */
.front-look :is(.st, .ch, .pct) { padding: 2px 10px; font-size: var(--fs-sm); line-height: 20px; }
/* the lists of switches: rows from edge to edge, a line between them */
.front-look .check-list { border: 0; border-radius: 0; }
.front-look .check-row { min-height: 56px; padding: var(--sp-3) 0; border-bottom: 1px solid var(--zl); }
.front-look .check-row:last-child { border-bottom: 0; }

/* the counts beside the menu's words (new invoices, ratings to look at): a round tag, the small letters, as the iPad's */
.front-look :is(.of-nav-btn, .of-sub-btn)[data-badge]::after {
  min-width: 24px; height: 24px; padding: 0 7px; font-size: var(--fs-sm); font-weight: var(--fw-regular); line-height: 24px;
}

/* ---------- page by page ---------- */
/* «Рестораны»: five restaurants three and two, not four and one alone */
@media (min-width: 961px) { .front-look .of-page > .loc-grid:has(> :last-child:nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* «Отчёт в Telegram»: the settings and the message side by side, a line between them */
.front-look .tg-grid { gap: 0; }
.front-look .tg-col { gap: 0; }
.front-look .tg-grid > .tg-preview { align-self: stretch; padding: var(--py) var(--px); box-shadow: inset 1px 0 0 0 var(--zl); }
.front-look .tg-chat { border-color: var(--zl); }
/* «Оценки гостей»: one not looked at yet tinted, no stripe at its edge (it stood against the menu's line) */
.front-look .rt-row { border-top-color: var(--zl); }
.front-look .rt-row.open { box-shadow: none; }
/* «Отчёты»: the question's «→» a round key */
.front-look .ask-go { border-radius: var(--r-pill); }
/* «Техкарты»: the dishes and the editor two zones, a line between them; the list from the header down to the screen's
   bottom (its bottom line stood a few pixels off the editor's) */
.front-look .tech-layout { gap: 0; }
.front-look .tech-list { top: calc(var(--key-h) + 1px); height: calc(100dvh - var(--key-h) - 1px); border-bottom: 0; border-right: 1px solid var(--zl); }
.front-look .tech-editor { min-height: calc(100dvh - var(--key-h) - 1px); border-bottom: 0; }
/* (the visual audit, 11 November) on the grid: the dishes a column of the five — an iPad's list beside its card, a long
   name on two lines —, the recipe four, its lines whole with their delete key (the list had been 300 px wide, between
   the columns' lines) */
@media (min-width: 701px) {
  .front-look .tech-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 4fr); }
  .front-look .tl-row > .grow { min-width: 0; line-height: 18px; }
}
/* (a narrower computer: the list two columns — a name had broken into three lines —, the recipe three, its lines sideways in
   their frame as before) */
@media (min-width: 701px) and (max-width: 1239px) {
  .front-look .tech-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .front-look .tech-layout .tech-editor > .tech-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* the list's foot: «Полуфабрикаты · 2 ›» a row from edge to edge, as an iPhone's row that leads on */
.front-look .tl-foot { padding: 0; border-top: 0; }
.front-look .tl-more {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); width: 100%; min-height: 56px; padding: 0 var(--sp-3) 0 var(--px); border: 0; border-radius: 0;
  background: var(--surface); color: var(--ink); font: inherit; font-weight: var(--fw-semibold); text-align: left; cursor: pointer; box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl);
}
.front-look .tl-more > svg { flex: none; color: var(--ink-3); }
.front-look .tl-more:hover { background: var(--surface-2); }
.front-look .tl-more:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* the recipe's foot: a row of the grid — what it is in words, its keys at its end, a column each (the editor four columns
   of the five; in a dish's panel the panel's five) */
.front-look .tech-editor > .tech-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 0; border-top: 0; box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look .tech-editor.tech-bare > .tech-actions { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.front-look .tech-actions > .tech-state { display: flex; grid-column: 1 / -2; align-items: center; min-height: 56px; margin: 0; padding: var(--sp-2) var(--px); color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; box-shadow: none; }
.front-look .tech-actions.two > .tech-state { grid-column: 1 / -3; }
.front-look .tech-actions > .tech-state.on { color: var(--accent); font-weight: var(--fw-semibold); }
.front-look .tech-actions > .dt-key { min-height: 56px; box-shadow: inset 1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl); }
.front-look .tech-actions > .dt-key.acc { box-shadow: none; }
.front-look .tech-actions > .dt-key.acc:disabled { background: var(--surface-2); color: var(--ink-3); box-shadow: inset 1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl); }
/* (12 November, 03:39, the owner on the recipe's keys: «Не хватает линии») a key's own ground had hidden the row's line
   over it: the keys draw it */
@media (max-width: 700px) {
  .front-look .tech-editor.tech-bare > .tech-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* an open report: its top row the page's header (the shade, a line under it, on top while it scrolls) — «‹ Все отчёты»
   a white pill, the question at the right; the title 22 semibold and its keys, the settings row, the report flat */
.front-look .rv-top {
  position: sticky; top: 0; z-index: 6; min-height: var(--key-h); padding: 10px var(--px); background: var(--head-bg); box-shadow: 0 1px 0 0 var(--zl);
}
.front-look .rv-top .back-btn { gap: var(--sp-1); height: var(--h-md); padding: 0 var(--sp-4) 0 var(--sp-3); border-radius: var(--r-pill); background: var(--pill); color: var(--ink); box-shadow: 0 1px 2px rgb(19 24 36 / 0.08); font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.front-look .rv-top .ask-field input { background: var(--pill); border-color: transparent; box-shadow: 0 1px 2px rgb(19 24 36 / 0.08); }
.front-look .rv-head { padding: var(--sp-4) var(--px) 0; }
.front-look .rv-title { font-size: var(--fs-xl); font-weight: var(--fw-semibold); letter-spacing: 0; line-height: 28px; }
.front-look .rv-bar-wrap { padding: var(--sp-3) var(--px); }
.front-look .rv-card { padding: var(--py) var(--px); border-top: 1px solid var(--zl); }
.front-look .rv-fig-v { font-family: var(--font-timer); font-size: var(--fs-xl); font-weight: var(--fw-semibold); letter-spacing: -0.03em; }
.front-look .hb-val { font-weight: var(--fw-regular); }
/* «Бронирования» → «План зала»: the block as tall as the window lets it (useFitHeight) — the plan the rest after the
   card's own margins (now its padding top and bottom, its line under it), the tabs' row and the gap */
.front-look .bk-plan-card { --bk-plan-h: clamp(280px, calc(var(--bk-fit, 760px) - 2 * var(--py) - 57px), 760px); }
/* «Смены и зарплата»: the timesheet's cells pills */
.front-look .sh-cell { border-radius: var(--r-pill); }
/* a box to tick: a round mark, filled with the accent and a tick when on (as iOS's) */
.front-look .check-box {
  -webkit-appearance: none; appearance: none; display: inline-grid; place-items: center; width: 24px; height: 24px;
  border: 2px solid var(--line-2); border-radius: 50%; background: var(--surface);
}
.front-look .check-box:checked {
  border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.front-look .check-box:disabled { opacity: 0.45; }
.front-look .check-box:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- sheets: the head a row as tall as a key, «×» a round pill ---------- */
.front-look .sheet { border-radius: var(--r-xl); }
.front-look .sheet-head { min-height: var(--key-h); padding: 0 0 0 var(--sp-5); border-bottom-color: var(--zl); }
.front-look .sheet-head > .icon-btn { width: 44px; height: 44px; margin: 0 var(--sp-3) 0 var(--sp-2); background: var(--surface-3); color: var(--ink); }
.front-look .sheet-foot { border-top-color: var(--zl); }

/* a short screen (a laptop's low window): a section's pages a little lower, so an open section with five fits */
@media (min-width: 961px) and (max-height: 640px) {
  .front-look .of-sub-btn { min-height: 36px; }
  .front-look .of-subnav { gap: 2px; }
  .front-look .of-scope { padding-top: var(--sp-3); }
}

/* ---------- the menu along the top on a narrower screen ---------- */
@media (max-width: 960px) {
  .front-look { --px: var(--sp-4); --py: var(--sp-4); }
  .front-look .of-side { padding: 0 var(--sp-3); border-right: 0; border-bottom: 1px solid var(--zl); }
  /* (the strip keeps the avatar at its start: the languages and the device are under it) */
  .front-look .of-brand { flex: none; height: auto; padding: 0 var(--sp-2) 0 0; background: none; box-shadow: none; }
  .front-look .of-brand .wordmark { display: none; }
  .front-look .of-scope { padding: var(--sp-2) 0; }
  .front-look .of-side > .of-nav { padding: var(--sp-2) 0; }
  .front-look .of-side-foot { padding: var(--sp-2) 0; }
  .front-look .of-subbar { gap: var(--sp-1); padding: var(--sp-2) var(--sp-3); border-bottom-color: var(--zl); }
  .front-look .of-subbar .of-sub-btn { padding: 0 var(--sp-4); }
  .front-look .of-page > :is(.seg, .sh-bar, p, .muted, .ask, .empty, .note, .row-gap, .toolbar, .stop-tools, .srv-strip, .bk-daybar) { padding-block: var(--sp-3); }
  .front-look .tg-grid > .tg-preview { box-shadow: inset 0 1px 0 0 var(--zl); }
  .front-look .tech-list { height: auto; border-right: 0; border-bottom: 1px solid var(--zl); }
  .front-look .tech-editor { min-height: 0; }
  /* the strip's end: the connection and the languages on its line */
  .front-look .of-side-foot { flex-direction: row; align-items: center; }
}
@media (max-width: 640px) {
  /* the reports' cards on a phone: a row that scrolls sideways from edge to edge, a line between the cards */
  .front-look .rg-grid { margin: 0 0 0 -1px; padding: 0; scroll-padding: 0; }
}

/* (2 November, the audit: a pill is a key; a mark only where it says something out of the ordinary) — the guests'
   words on a rating: plain words, a complaint in red */
.front-look .rt-tags { gap: 2px var(--sp-3); }
.front-look .rt-tag { padding: 0; border-radius: 0; background: none; }
.front-look .rt-tag.good { color: var(--ink-2); }
/* the plans of the integrations: one line under the cards */
.front-look .ig-plans { margin: 0; padding: var(--sp-4) var(--px); }


/* (13 November: the back office in RUVO's app — office-app.jsx) «Уведомления»: the iPhone's permission over the kinds,
   each a row of the list with its switch at the end, what it says under its name */
.oa-push { display: flex; flex-direction: column; gap: var(--sp-4); }
.oa-perm { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
.oa-kinds { border: 1px solid var(--line); border-radius: var(--r-md); }
.oa-kind .switch { flex: none; }
.oa-kind .check-sub { line-height: var(--lh-tight); }

/* (13 November, 12:43, the owner of «Вход по Face ID» in the back office on his iPhone: «Вот такие вещи сразу
   исправляй. По примеру официантского») a PIN in a sheet of the back office on a phone (.of-phone — office.jsx) is the
   waiter's (50-phone.css): «Введите свой PIN» a band of the screen's shade, the words under it, the dots, the keys from
   edge to edge down to the screen's edge, every row one height, 28 semibold, the eye under 7 */
.of-phone { --key-h: clamp(56px, 9vh, 76px); }
.of-phone .sheet-body.flush:has(> .approve) { padding-inline: 0; }
.of-phone .sheet-body.flush > .approve { align-items: stretch; margin: 0; gap: 0; }
.of-phone .approve > .field-label {
  display: flex; align-items: center; min-height: 44px; margin: 0; padding: 0 var(--sp-4); background: var(--bg); box-shadow: inset 0 -1px 0 0 var(--line-2);
  font-size: var(--fs-sm); font-weight: var(--fw-regular); letter-spacing: 0; text-transform: none; color: var(--ink-3);
}
.of-phone .approve-who { padding: var(--sp-3) var(--sp-4) 0; }
.of-phone .approve .pin { gap: var(--sp-3); padding: var(--sp-4) 0 0; }
.of-phone .approve .pin-grid { width: 100%; padding: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.of-phone .approve .pin-key {
  width: auto; height: var(--key-h); border: 0; border-radius: 0; font-size: var(--fs-2xl); font-weight: var(--fw-semibold);
  box-shadow: inset 1px 0 0 0 var(--tile-line), inset 0 1px 0 0 var(--tile-line);
}
.of-phone .approve .pin-key:nth-child(3n + 1) { box-shadow: inset 0 1px 0 0 var(--tile-line); }
.of-phone .approve .pin-extra { color: var(--ink-2); }
.of-phone .approve .pin-eye[aria-pressed="true"] { color: var(--accent); }
.of-phone .approve .pin-grid > span { background: var(--surface); box-shadow: inset 0 1px 0 0 var(--tile-line); }

/* ---------- the back office, v2: the grid (9 November) ----------
   The owner, 20:13: «все, что для телефона, должно выглядеть как приложение официанта. А все, что для компьютера
   облачное, должно выглядеть как вот фронт. Блочность обязательно, линии вертикальные, горизонтальные, точно по сетке
   совпадают друг с другом. Очень аккуратно используем пилюли. Никаких полей слева-справа. Максимально полезно используем
   пространство». So, over the look of 2 November (91-office-look.css):
   · pills only where the front has them: the header's keys and choices (as the iPad's «Зал» / «Терраса») and the main
     action of a screen or a sheet (as «Отправить в цех»); every other key, field and choice a square on the lines;
   · the menu rows from edge to edge; on a phone two strips whose keys are a third of the screen each, as the waiter's
     categories — the lines of the two strips (and of the pages' own strips) one over the other;
   · a choice of one (folders, groups, periods, views): a strip of equal cells from edge to edge, a line between them, the
     chosen one filled; a choice of several (allergens, days, restaurants): a grid of equal cells whose lines go round
     its short last row;
   · a search: a row of its block from edge to edge, no box — the iPad's «Поиск», the waiter's search over the dishes;
   · a field: a cell of the form's grid — its name over it, the value under it, the line round it; the form's grids one
     set of columns at a width, so their lines run on from card to card;
   · sheets square on a computer, from the bottom edge to edge on a phone; the margins inside the blocks 16. */
.front-look { --px: var(--sp-4); --cell-h: 48px; --sx: var(--sp-5); }
.front-look :is(.btn, .icon-btn, .icon-btn.sm, .select, .select.sm, .search, .cell-input, .line-input, .field input, .period-dates input, .ask-field input, .tool-btn, .stepper, .stepper-sm, textarea, .select-pop, .select-opt, .chip, .seg-btn, .lang-btn, .bk-date, .sh-cell, .bk-link input, .site-pic-box) { border-radius: 0; }
.front-look :is(.of-head, .rv-top) :is(.btn, .select, .seg-btn, .chip, .icon-btn, .back-btn, .ask-field input), .front-look .btn.btn-primary, .front-look .sheet-head > .icon-btn { border-radius: var(--r-pill); }
.front-look .sheet-body { padding-inline: var(--sx); }

/* ---------- the menu: rows from edge to edge ---------- */
.front-look .of-side > .of-nav, .front-look .of-nav, .front-look .of-subnav { gap: 0; }
.front-look .of-side > .of-nav { padding: 0; }
.front-look :is(.of-nav-btn, .of-sub-btn) { min-height: 48px; padding: 0 var(--sp-4) 0 var(--sp-5); border-radius: 0; }
.front-look .of-sub-btn { min-height: 44px; padding-left: 52px; }
/* (15 November, the brand book's robot: «Внутренние перемеще…» cut in the menu — two pixels short) the menu's names
   8 from its right edge, not 16: «Внутренние перемещения» (177 px) on one line; a name longer still takes a second line, never an
   ellipsis */
.front-look .of-side .of-sub-btn { padding-right: var(--sp-2); }
.front-look .of-side .of-sub-btn .of-sub-t { overflow: visible; white-space: normal; text-overflow: clip; line-height: 18px; text-wrap: balance; }
.front-look .of-side .of-sub-btn:has(.of-sub-t) { padding-block: 6px; }
.front-look .of-scope { padding: 0; }
.front-look .of-scope .select { width: 100%; height: 56px; padding: 0 var(--sp-4) 0 var(--sp-5); border: 0; border-radius: 0; background: var(--surface); box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .of-scope-one { min-height: 56px; display: flex; align-items: center; padding: 0 var(--sp-5); box-shadow: inset 0 -1px 0 0 var(--zl); }

/* ---------- a choice of one: a strip of equal cells ----------
   The strip draws the line under it; each cell its line at the left (the first none: the block's edge or the menu's
   line is there), the last one its line at the right while the strip goes on past it; the chosen cell filled. On a
   computer the cells share the strip's width (a long name takes two lines), never under 112; more than fit — the strip
   scrolls. */
.front-look :is(.seg, .chip-row.grp-chips) { --strip-cell: minmax(96px, 1fr); }
.front-look :is(.of-page > .seg, .sh-bar > .seg, .bk-daybar .seg, .card-head .seg, .card > .seg, .sheet-body .seg, .seg.seg-chips, .chip-row.grp-chips, .field > .seg, .form-row > .seg) {
  display: grid; grid-auto-flow: column; grid-auto-columns: var(--strip-cell); gap: 0; min-height: 0; max-width: none; padding: 0; overflow-x: auto; overflow-y: hidden;
  border: 0; border-radius: 0; background: none; box-shadow: inset 0 -1px 0 0 var(--zl); scrollbar-width: none;
}
.front-look :is(.of-page > .seg, .sh-bar > .seg, .bk-daybar .seg, .card-head .seg, .card > .seg, .sheet-body .seg, .seg.seg-chips, .chip-row.grp-chips, .field > .seg, .form-row > .seg) > :is(.seg-btn, .chip) {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-2); min-width: 0; min-height: var(--cell-h); height: auto; padding: var(--sp-1) var(--sp-3);
  border: 0; border-radius: 0; background: var(--surface); color: var(--ink-2); font-size: var(--fs-sm); line-height: 18px; text-align: center; white-space: normal; text-wrap: balance;
  box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl);
}
.front-look :is(.seg, .chip-row.grp-chips) > :is(.seg-btn, .chip)::before { content: none; }
.front-look :is(.of-page > .seg, .sh-bar > .seg, .bk-daybar .seg, .card-head .seg, .card > .seg, .sheet-body .seg, .seg.seg-chips, .chip-row.grp-chips, .field > .seg, .form-row > .seg) > :is(.seg-btn, .chip):first-child { box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look :is(.of-page > .seg, .sh-bar > .seg, .bk-daybar .seg, .card-head .seg, .card > .seg, .sheet-body .seg, .seg.seg-chips, .chip-row.grp-chips, .field > .seg, .form-row > .seg) > :is(.seg-btn, .chip):last-child { box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl), 1px 0 0 0 var(--zl); }
.front-look :is(.seg, .chip-row.grp-chips) > :is(.seg-btn, .chip):hover:not(.on):not(:disabled) { background: var(--surface-2); color: var(--ink); }
.front-look :is(.of-page > .seg, .sh-bar > .seg, .bk-daybar .seg, .card-head .seg, .card > .seg, .sheet-body .seg, .seg.seg-chips, .chip-row.grp-chips, .field > .seg, .form-row > .seg) > :is(.seg-btn, .chip).on { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.front-look :is(.seg, .chip-row.grp-chips) > :is(.seg-btn, .chip).on :is(.seg-count, .seg-badge) { color: inherit; opacity: 0.85; }
.front-look :is(.seg, .chip-row.grp-chips) > :is(.seg-btn, .chip):focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* a strip inside a form (a choice of the record's own: «Процент» / «Сумма»): its cells boxed by the form's lines — a line
   over it too, the outer ones at both its ends */
.front-look :is(.sheet-body .seg, .card > .seg, .field > .seg, .form-row > .seg):not(.seg-chips) { box-shadow: inset 0 0 0 1px var(--zl); }
.front-look :is(.sheet-body .seg, .card > .seg, .field > .seg, .form-row > .seg):not(.seg-chips) > .seg-btn { box-shadow: inset 1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.front-look :is(.sheet-body .seg, .card > .seg, .field > .seg, .form-row > .seg):not(.seg-chips) > .seg-btn:last-child { box-shadow: inset 1px 0 0 0 var(--zl), inset -1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.front-look :is(.sheet-body .seg, .card > .seg, .field > .seg, .form-row > .seg):not(.seg-chips) > .seg-btn:first-child { box-shadow: inset 1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.front-look :is(.sheet-body .seg, .card > .seg, .field > .seg, .form-row > .seg):not(.seg-chips) > .seg-btn:only-child { box-shadow: inset 0 0 0 1px var(--zl); }
/* the page's own strip from the menu's line to the window's edge (its first cell's line is the menu's) */
.front-look .of-page > :is(.seg, .chip-row.grp-chips) { margin: 0; }
/* the header's choices stay pills, as the iPad's halls */
.front-look .of-head :is(.chip-row, .seg) { display: flex; gap: var(--sp-2); padding: 0; margin: 0; border: 0; background: none; box-shadow: none; overflow: visible; }
.front-look .of-head :is(.chip-row > .chip, .seg > .seg-btn) { min-height: var(--h-md); padding: 0 var(--sp-4); border-radius: var(--r-pill); background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(19 24 36 / 0.08); }
.front-look .of-head :is(.chip-row > .chip, .seg > .seg-btn).on { background: var(--accent); color: var(--accent-ink); }

/* ---------- a choice of several: a grid of equal cells ----------
   (the owner, 2 November: «в ней не должно быть пустых блоков», «Не растягивай блоки») each cell one column, a short
   last row short: the cells stand one pixel apart and each draws its line round itself into that pixel — the lines
   between them one pixel, round the short row's end as round a cell */
.front-look :is(.chip-row:not(.grp-chips), .toggle-row) {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(144px, 100%), 1fr)); gap: 1px; margin: 1px; padding: 0; border: 0; background: none; box-shadow: none;
}
.front-look :is(.chip-row:not(.grp-chips), .toggle-row) > .chip {
  display: flex; align-items: center; justify-content: center; min-width: 0; min-height: var(--cell-h); height: auto; padding: var(--sp-1) var(--sp-3); border: 0; border-radius: 0;
  background: var(--surface); color: var(--ink-2); font-size: var(--fs-sm); line-height: 18px; text-align: center; white-space: normal; text-wrap: balance;
  box-shadow: 0 0 0 1px var(--zl);
}
.front-look :is(.chip-row:not(.grp-chips), .toggle-row) > .chip:hover:not(.on):not(:disabled) { background: var(--surface-2); color: var(--ink); }
.front-look :is(.chip-row:not(.grp-chips), .toggle-row) > .chip.on { background: var(--accent); color: var(--accent-ink); }
.front-look :is(.chip-row:not(.grp-chips), .toggle-row) > .chip:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* the days of the week: seven to a row, at any width */
.front-look :is(.chip-row, .toggle-row).days { grid-template-columns: repeat(7, minmax(0, 1fr)); }

/* ---------- a search: a row of its block from edge to edge ---------- */
.front-look :is(.card-head.pad, .tech-list > .pad, .sheet-body, .card) > .search {
  flex: none; align-self: stretch; width: auto; height: var(--cell-h); min-height: 0; padding: 0 var(--px); border: 0; border-radius: 0;
  background: var(--surface); box-shadow: inset 0 -1px 0 0 var(--zl);
}
.front-look :is(.card-head.pad, .tech-list > .pad, .sheet-body, .card) > .search:focus-within { box-shadow: inset 0 -2px 0 0 var(--accent); }
.front-look :is(.card-head.pad, .tech-list > .pad, .sheet-body, .card) > .search input { font-size: var(--fs-md); }
/* a card's head with a search: the search a row, the groups' strip a row under it */
.front-look .card-head.pad:has(> .search) { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; min-height: 0; padding: 0; }
.front-look .card-head.pad > .grp-chips { margin: 0; }
.front-look .tech-list > .pad:has(> .search) { padding: 0; }
/* in a sheet: the search and the groups from edge to edge, the search up to the sheet's head */
.front-look .sheet-body > .search:first-child { margin: calc(-1 * var(--sheet-top, var(--sp-5))) calc(-1 * var(--sx)) 0; }
.front-look .sheet-body > .search.mb { margin-bottom: 0; }
.front-look .sheet-body > .search + .grp-chips { margin-top: calc(-1 * var(--sp-4)); }
.front-look .sheet-body > .grp-chips { margin-inline: calc(-1 * var(--sx)); }
.front-look .sheet-body > :is(.tbl-data, .table-wrap) { margin-inline: calc(-1 * var(--sx)); width: auto; }
.front-look .sheet-body > .tbl-data :is(th, td):first-child { padding-left: var(--sx); }
.front-look .sheet-body > .tbl-data :is(th, td):last-child { padding-right: var(--sx); }

/* sheets on a computer: a panel at the screen's edge square; a card in the middle rounded as the menus' layers (10
   November, 01:25, the owner: «углы попапа надо скруглить») — on a phone the waiter's sheet: from the bottom, as before */
@media (min-width: 701px) { .front-look .sheet { border-radius: 0; } .front-look .sheet-center .sheet { border-radius: 16px; } }

/* ---------- a header with many keys (four and more — «Документы») ----------
   they go under the title as a strip of equal square cells from edge to edge, the main one filled — seven pills in two
   rows were the mess; one, two or three stay pills at the title's right */
@media (min-width: 701px) {
  .front-look .of-head:has(> .of-actions > :nth-child(4)) { padding-bottom: 0; row-gap: 10px; }
  .front-look .of-head > .of-actions:has(> :nth-child(4)) {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); flex: 1 0 100%; gap: 0; margin: 0 calc(-1 * var(--px)); box-shadow: inset 0 1px 0 0 var(--zl);
  }
  /* (10 November, the owner: «сползла горизонтальная линия») 47: the header's line under them lands where the menu's
     first row draws its own — every row a line over its first pixel and one at its last */
  .front-look .of-head > .of-actions:has(> :nth-child(4)) > :is(.btn, .select) {
    width: auto; min-width: 0; min-height: 47px; height: 47px; border: 0; border-radius: 0; background: var(--surface); color: var(--ink); box-shadow: inset -1px 0 0 0 var(--zl);
  }
  .front-look .of-head > .of-actions:has(> :nth-child(4)) > :is(.btn, .select):hover:not(:disabled) { background: var(--surface-2); }
  .front-look .of-head > .of-actions:has(> :nth-child(4)) > .btn.btn-primary { background: var(--accent); color: var(--accent-ink); }
  .front-look .of-head > .of-actions:has(> :nth-child(4)) > :last-child { box-shadow: none; }
}

/* ---------- a narrower screen: the menu along the top, two strips of square cells ---------- */
@media (max-width: 960px) {
  .front-look .of-side { gap: 0; padding: 0; -webkit-mask-image: none; mask-image: none; }
  .front-look .of-side > .of-nav { gap: 0; padding: 0; }
  .front-look .of-side :is(.of-nav-btn, .of-group-btn) { flex: none; min-height: 56px; padding: 0 var(--sp-4); border-radius: 0; box-shadow: inset -1px 0 0 0 var(--zl); white-space: nowrap; }
  .front-look .of-scope { padding: 0; }
  .front-look .of-scope .select { height: 56px; box-shadow: inset -1px 0 0 0 var(--zl); }
  .front-look .of-subbar { gap: 0; padding: 0; -webkit-mask-image: none; mask-image: none; }
  .front-look .of-subbar .of-sub-btn { flex: none; min-height: 48px; padding: 0 var(--sp-4); border-radius: 0; box-shadow: inset -1px 0 0 0 var(--zl); }
}

/* ---------- the phone, as the waiter's iPhone ---------- */
@media (max-width: 700px) {
  .front-look { --cell-h: 56px; --sx: var(--sp-4); }
  /* (3 November, the waiter's categories: «И проверь все на горизонтальные и вертикальные линии») the menu's two strips
     and the pages' strips of one choice: every key a third of the screen, so their lines stand one over the other; a
     long name takes two lines; a strip goes by whole keys, its end fading while more keys lie past it */
  .front-look .of-side { scroll-snap-type: x mandatory; scrollbar-width: none; }
  .front-look .of-side > :is(.of-brand, .of-scope, .of-side-foot) { scroll-snap-align: start; }
  .front-look .of-side :is(.of-nav-btn, .of-group-btn) {
    flex: 0 0 calc(100vw / 3); justify-content: center; gap: 0; padding: 0 var(--sp-2); font-size: var(--fs-md); line-height: 20px; text-align: center;
    white-space: normal; text-wrap: balance; scroll-snap-align: start;
  }
  .front-look .of-side :is(.of-nav-btn, .of-group-btn) > svg { display: none; }
  .front-look .of-side > .of-scope { flex: 0 0 calc(100vw / 3); }
  .front-look .of-side > .of-scope .select { width: 100%; padding: 0 var(--sp-2) 0 var(--sp-3); }
  .front-look .of-subbar { display: grid; grid-auto-flow: column; grid-auto-columns: calc(100% / 3); scroll-snap-type: x mandatory; }
  .front-look .of-subbar .of-sub-btn { justify-content: center; min-width: 0; padding: var(--sp-1) var(--sp-2); font-size: var(--fs-sm); line-height: 18px; text-align: center; white-space: normal; text-wrap: balance; scroll-snap-align: start; }
  .front-look :is(.of-page > .seg, .sh-bar > .seg, .bk-daybar .seg, .card-head .seg, .seg.seg-chips, .chip-row.grp-chips) { --strip-cell: calc(100% / 3); scroll-snap-type: x mandatory; }
  .front-look :is(.of-page > .seg, .sh-bar > .seg, .bk-daybar .seg, .card-head .seg, .seg.seg-chips, .chip-row.grp-chips) > :is(.seg-btn, .chip) { scroll-snap-align: start; }
  /* a strip of a form: its few cells share its width */
  .front-look :is(.sheet-body .seg, .card > .seg, .field > .seg, .form-row > .seg):not(.seg-chips) { --strip-cell: minmax(0, 1fr); }
  .front-look :is(.of-side, .of-subbar, .seg, .chip-row.grp-chips, .dir-rubs)[data-more] { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }
  /* a choice of several: three to a row, as the strips */
  .front-look :is(.chip-row:not(.grp-chips), .toggle-row):not(.days) { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  /* the header's keys: a block of square cells from edge to edge under the title, two to a row; the restaurant's (or the
     dates') picker first and across, the main action last and across, a key left alone across too */
  .front-look .of-head:has(> .of-actions) { padding-bottom: 0; }
  .front-look .of-head > .of-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); flex: 1 0 100%; gap: 0; margin: 0 calc(-1 * var(--px)); box-shadow: inset 0 1px 0 0 var(--zl); }
  /* (12 November, 04:02, the owner: no line between the title and «Изменить») the keys' own background had hidden the line
     over them: it is drawn over them */
  .front-look .of-head > .of-actions { position: relative; }
  .front-look .of-head > .of-actions::before { content: ''; position: absolute; top: 0; right: 0; left: 0; z-index: 1; height: 1px; background: var(--zl); pointer-events: none; }
  .front-look .of-head > .of-actions > :is(.period, .seg-wrap) { display: contents; }
  .front-look .of-head > .of-actions :is(.btn, .select, .icon-btn) {
    width: auto; min-width: 0; min-height: 56px; margin: 0; border: 0; border-radius: 0; background: var(--surface); color: var(--ink);
    box-shadow: inset -1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl);
  }
  .front-look .of-head > .of-actions :is(.select, .period-dates) { order: -1; grid-column: 1 / -1; }
  /* (a cell across the row: no line at the screen's right edge — the line under it only) */
  .front-look .of-head > .of-actions .select { box-shadow: inset 0 -1px 0 0 var(--zl); }
  .front-look .of-head > .of-actions .period-dates { padding: var(--sp-2) var(--px); box-shadow: inset 0 -1px 0 0 var(--zl); }
  .front-look .of-head > .of-actions > .btn-primary { order: 1; grid-column: 1 / -1; background: var(--accent); color: var(--accent-ink); }
  .front-look .of-head > .of-actions > :is(.btn, .icon-btn):not(.btn-primary):nth-last-child(1 of :is(.btn, .icon-btn):not(.btn-primary)):nth-child(odd of :is(.btn, .icon-btn):not(.btn-primary)) { grid-column: 1 / -1; box-shadow: inset 0 -1px 0 0 var(--zl); }
  .front-look .of-head > .of-actions > .seg { grid-column: 1 / -1; }
  /* (the visual audit of the lines, 12 November: «Купоны», «Оценки гостей») its pills off the lines over and under them */
  :root .front-look .of-head > .of-actions > .seg { padding: var(--sp-2) var(--px); }

  /* the sheets come up from the bottom edge to edge, their top corners round */
  .front-look .sheet-wrap { align-items: flex-end; padding: 0; }
  .front-look .sheet { width: 100%; max-width: none; max-height: 92%; border-radius: var(--r-xl) var(--r-xl) 0 0; }
}

/* ---------- a form: every field a cell of the grid ----------
   (the front's tiles: «Киоск · ждёт оплаты», a dish and its price — the name small and grey at the top, the value under
   it) On a computer a field is a cell: its name 14 grey, the value 16 under it, no box — the cell is the box: one pixel
   apart and each cell's line round it, so the lines between them are one pixel and go on from the cell above. A form's
   row of fields shares its width (two halves, three thirds), from the block's left edge to its right. On a phone a field
   is the iPhone's row (20:41, the owner: «все управление процессами должно быть нативным, как в ios — простым и
   понятным»): its name at the left, the value at the right, 56 high, a line between the rows from edge to edge; a value
   that needs the width (a text, a choice of several) under its name. A switch is a row with its switch at the right. The
   focused field: a line of the accent under it; a wrong one: the line red. */
.front-look .card { --edge: var(--px); --gap: var(--sp-3); }
.front-look .card.flush { --edge: 0px; }
.front-look .sheet-body { --edge: var(--sx); --gap: var(--sp-4); }
.front-look .form-section { --gap: var(--sp-2); }
.front-look { --fcol: 220px; }
.front-look .sheet-body { --fcol: 160px; }
/* the grids */
.front-look :is(.card, .sheet-body, .form-section) > :is(.form-row, .site-grid, .day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form) {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 1px; margin-inline: calc(-1 * var(--edge)); padding: 0;
}
.front-look :is(.card, .sheet-body, .form-section) > :is(.form-row, .site-grid, .day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form) > * { flex: 1 1 var(--fcol); min-width: 0; }
.front-look :is(.card, .sheet-body, .form-section) > :is(.form-row, .site-grid, .day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form) > .grow { flex-grow: 2; }
.front-look :is(.card, .sheet-body, .form-section) > :is(.form-row, .site-grid, .day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form) > .site-wide { flex-basis: 100%; }
/* the cells */
.front-look :is(.card, .sheet-body, .form-section) > :is(.form-row, .site-grid, .day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form) > .field,
.front-look :is(.card, .sheet-body, .form-section) > .field:has(> :is(input, textarea, .select, .site-slug, .site-color, .chip-row, .toggle-row, .seg, .stepper, .field-static, .dish-photo)) {
  display: flex; flex-direction: column; justify-content: flex-start; gap: 2px; min-width: 0; padding: 10px var(--edge) 10px; border: 0; border-radius: 0;
  background: var(--surface); box-shadow: 0 0 0 1px var(--zl);
}
.front-look :is(.card, .sheet-body, .form-section) > .field:has(> :is(input, textarea, .select, .site-slug, .site-color, .chip-row, .toggle-row, .seg, .stepper, .field-static, .dish-photo)) { margin-inline: calc(-1 * var(--edge)); }
.front-look :is(.card, .sheet-body, .form-section) > :is(.form-row, .site-grid, .day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form) > .field:not(:first-child) { padding-left: var(--sp-4); }
/* blocks of the form one after the other: their lines one */
.front-look :is(.card, .sheet-body, .form-section) > :is(.form-row, .site-grid, .day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form, .field:has(> :is(input, textarea, .select, .site-slug, .site-color, .chip-row, .toggle-row, .seg, .stepper, .field-static, .dish-photo)), .check-row, .bk-link, .site-pics)
  + :is(.form-row, .site-grid, .day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form, .field:has(> :is(input, textarea, .select, .site-slug, .site-color, .chip-row, .toggle-row, .seg, .stepper, .field-static, .dish-photo)), .check-row, .bk-link, .site-pics) { margin-top: calc(1px - var(--gap)); }
/* the values: no box of their own */
.front-look :is(.form-row, .site-grid, .day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form, .card, .sheet-body, .form-section) > .field :is(input:not([type="checkbox"], [type="radio"], [type="color"], [type="file"], [type="range"]), textarea) {
  width: 100%; min-width: 0; height: 36px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--ink); font-size: var(--fs-md); outline: 0;
}
.front-look :is(.form-row, .site-grid, .day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form, .card, .sheet-body, .form-section) > .field textarea { height: auto; min-height: 64px; padding: var(--sp-1) 0; resize: vertical; line-height: 22px; }
.front-look :is(.form-row, .site-grid, .day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form, .card, .sheet-body, .form-section) > .field > .select {
  width: 100%; min-width: 0; height: 36px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--ink); font-size: var(--fs-md);
}
.front-look :is(.form-row, .site-grid, .day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form, .card, .sheet-body, .form-section) > .field > .select .select-chevron { margin-left: auto; color: var(--ink-3); }
.front-look :is(.form-row, .site-grid, .day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form, .card, .sheet-body, .form-section) > .field input::placeholder { color: var(--ink-3); }
.front-look :is(.form-row, .site-grid, .day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form, .card, .sheet-body, .form-section) > .field input:disabled { background: transparent; color: var(--ink-3); }
.front-look :is(.form-row, .site-grid, .day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form, .card, .sheet-body, .form-section) > .field > :is(.field-hint, .form-hint, .muted.small, .small.muted) { font-size: var(--fs-sm); line-height: 18px; color: var(--ink-3); }
/* the focused cell, the wrong one */
.front-look :is(.form-row, .site-grid, .day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form) > .field:focus-within,
.front-look :is(.card, .sheet-body, .form-section) > .field:focus-within:has(> :is(input, textarea, .select, .site-slug, .site-color, .stepper)) { box-shadow: 0 0 0 1px var(--zl), inset 0 -2px 0 0 var(--accent); }
.front-look :is(.form-row, .site-grid, .day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form, .card, .sheet-body, .form-section) > .field:has(:is(input, textarea)[aria-invalid="true"], input.bad) { box-shadow: 0 0 0 1px var(--zl), inset 0 -2px 0 0 var(--bad); }
/* a field of a choice of several: the cells of the choice the bottom of the field's own, from its edge to its edge */
.front-look :is(.form-row, .site-grid, .day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form, .card, .sheet-body, .form-section) > .field > :is(.chip-row:not(.grp-chips), .toggle-row) { margin: var(--sp-2) calc(-1 * var(--edge)) -10px; }
.front-look :is(.form-row, .site-grid, .day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form) > .field:not(:first-child) > :is(.chip-row:not(.grp-chips), .toggle-row) { margin-left: calc(-1 * var(--sp-4)); }
.front-look :is(.form-row, .site-grid, .day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form, .card, .sheet-body, .form-section) > .field > .seg { align-self: stretch; margin: var(--sp-2) calc(-1 * var(--edge)) -10px; box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look :is(.form-row, .site-grid, .day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form, .card, .sheet-body, .form-section) > .field > .seg > .seg-btn { box-shadow: inset 1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl); }
.front-look :is(.form-row, .site-grid, .day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form, .card, .sheet-body, .form-section) > .field > .seg > .seg-btn:first-child { box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look :is(.form-row, .site-grid, .day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form, .card, .sheet-body, .form-section) > .field > .seg > .seg-btn.on { box-shadow: none; }
/* (12 November, the deep visual audit: «Общее», «EUR» — the strip's last cell kept the boxed strip's ring, its line under it
   a pixel over the field's: 2 px) a field's strip ends at the field's edge — its last cell lined as the others */
.front-look :is(.form-row, .site-grid, .day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form, .card, .sheet-body, .form-section) > .field > .seg > .seg-btn:last-child:not(.on, :first-child) { box-shadow: inset 1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl); }
/* a field that is only a name: the name of the rows under it */
.front-look :is(.card, .sheet-body, .form-section) > .field:not(:has(> :not(.field-label))) { margin-bottom: calc(var(--sp-1) - var(--gap)); }
/* a switch: a row of the block, its name and words at the left, the switch at the right */
.front-look :is(.card, .sheet-body, .form-section) > .check-row {
  min-height: 56px; margin-inline: calc(-1 * var(--edge)); padding: var(--sp-3) var(--edge); border: 0; border-radius: 0; background: var(--surface); box-shadow: 0 0 0 1px var(--zl);
}
.front-look .card.flush > .check-row { box-shadow: inset 0 -1px 0 0 var(--zl); }

/* the page's address (Сайт для заказов): its start, the field */
.front-look .site-slug { gap: 0; }
.front-look .site-slug > .muted { flex: none; font-size: var(--fs-md); }
.front-look .site-color { gap: var(--sp-3); }
.front-look .site-color input[type="color"] { width: 28px; height: 28px; padding: 0; border: 1px solid var(--zl); border-radius: 0; }
/* the page's link: a strip — the link, «Скопировать», «Открыть» — cells of the block from edge to edge */
.front-look .card > .bk-link { display: grid; grid-template-columns: minmax(0, 1fr) repeat(2, minmax(144px, auto)); gap: 1px; margin-inline: calc(-1 * var(--edge)); }
.front-look .card > .bk-link > * { min-height: var(--cell-h); margin: 0; border: 0; border-radius: 0; background: var(--surface); box-shadow: 0 0 0 1px var(--zl); }
.front-look .card > .bk-link > input { height: auto; padding: 0 var(--edge); font-size: var(--fs-sm); color: var(--ink-2); }
.front-look .card > .bk-link > .btn { justify-content: center; text-decoration: none; color: var(--ink); }
.front-look .card > .bk-link > .btn:hover { background: var(--surface-2); }
/* the page's pictures: two cells, the picture the cell's width, its keys a strip at its foot */
.front-look .card > .site-pics { gap: 1px; margin-inline: calc(-1 * var(--edge)); }
.front-look .card > .site-pics > .site-pic { gap: 2px; padding: 10px 0 0; background: var(--surface); box-shadow: 0 0 0 1px var(--zl); }
.front-look .card > .site-pics > .site-pic > :is(.site-pic-head, .site-pic-size) { padding-inline: var(--edge); }
.front-look .card > .site-pics > .site-pic > .site-pic-size { font-size: var(--fs-sm); padding-bottom: var(--sp-2); }
.front-look .card > .site-pics .site-pic-box { flex: 1; min-height: 140px; background: var(--surface-2); box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.front-look .card > .site-pics .site-pic-hero .site-pic-box { flex: none; }
.front-look .card > .site-pics .site-pic > .row-gap { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; }
.front-look .card > .site-pics .site-pic > .row-gap > .btn { min-height: var(--cell-h); border: 0; border-radius: 0; background: var(--surface); color: var(--ink); box-shadow: inset 1px 0 0 0 var(--zl); }
.front-look .card > .site-pics .site-pic > .row-gap > .btn:first-child { box-shadow: none; }
.front-look .card > .site-pics .site-pic > .row-gap > .btn:hover { background: var(--surface-2); }
/* the dish's photo in its card: the photo, its keys beside it */
.front-look .field > .dish-photo, .front-look .form-section > .dish-photo { gap: var(--sp-4); }
.front-look .dish-photo-img { border-radius: 0; border-color: var(--zl); }

/* a card's own keys at its end (Сохранить · Отменить изменения): a strip of cells from edge to edge, the main one filled */
.front-look .card:not(.flush) > .row-gap:last-child:has(> .btn-primary) {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1px; margin: calc(1px - var(--gap) + var(--sp-4)) calc(-1 * var(--edge)) calc(-1 * var(--py));
}
.front-look .card:not(.flush) > .row-gap:last-child:has(> .btn-primary) > .btn { min-height: var(--cell-h); border: 0; border-radius: 0; background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--zl); }
.front-look .card:not(.flush) > .row-gap:last-child:has(> .btn-primary) > .btn.btn-primary { background: var(--accent); color: var(--accent-ink); }
.front-look .card:not(.flush) > .row-gap:last-child:has(> .btn-primary) > .btn:disabled { background: var(--surface-2); color: var(--ink-3); opacity: 1; }

/* ---------- the pages' own bars ---------- */
/* «Смены и зарплата»: its views, its dates, «Сотрудники, PIN и ставки» — one strip of cells */
.front-look .of-page > .sh-bar { gap: 0; padding: 0; min-height: 0; box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .of-page > .sh-bar > .seg { --strip-cell: minmax(112px, auto); flex: none; }
.front-look .of-page > .sh-bar > :is(.select, .btn) { min-height: var(--cell-h); height: auto; border: 0; border-radius: 0; background: var(--surface); color: var(--ink); box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.front-look .of-page > .sh-bar > .select { flex: none; min-width: 220px; padding: 0 var(--px); }
.front-look .of-page > .sh-bar > .btn { margin-left: auto; padding: 0 var(--px); }
/* (12 November, 02:00, the owner on «Табель · Зарплата · График · Эта неделя · PIN и ставки»: «Вот тут разные шрифты
   как-будто») the row's key in the row's letters — the strip's and the week's size and weight, not a key's of its own */
.front-look .of-page > .sh-bar > .btn { font-size: var(--fs-sm); font-weight: var(--fw-regular); }
/* «Бронирования»: the day, its arrows, the views — one strip */
.front-look .of-page > .bk-daybar { gap: 0; padding: 0; box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .of-page > .bk-daybar > .icon-btn { width: var(--cell-h); height: var(--cell-h); border-radius: 0; background: none; }
.front-look .of-page > .bk-daybar > .bk-day { height: var(--cell-h); justify-content: center; border-radius: 0; }
.front-look .of-page > .bk-daybar > .bk-sum { padding: 0 var(--px); }
.front-look .of-page > .bk-daybar > .bk-views { margin-left: 0; --strip-cell: minmax(112px, auto); box-shadow: none; }
.front-look .of-page > .bk-daybar > .bk-views > .seg-btn { box-shadow: inset 1px 0 0 0 var(--zl); }
.front-look .of-page > .bk-daybar > .bk-views > .seg-btn.on { box-shadow: none; }

@media (max-width: 700px) {
  /* a form on a phone: the iPhone's rows */
  .front-look :is(.card, .sheet-body, .form-section) > :is(.form-row, .site-grid, .day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form) > * { flex-basis: 100%; }
  .front-look :is(.card, .sheet-body, .form-section) > :is(.form-row, .site-grid, .day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form) > .field,
  .front-look :is(.card, .sheet-body, .form-section) > .field:has(> :is(input, textarea, .select, .site-slug, .site-color, .chip-row, .toggle-row, .seg, .stepper, .field-static, .dish-photo)) {
    display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: center; column-gap: var(--sp-3); row-gap: 2px; min-height: 56px; padding: var(--sp-2) var(--edge);
  }
  .front-look :is(.card, .sheet-body, .form-section) > :is(.form-row, .site-grid, .day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form) > .field:not(:first-child) { padding-left: var(--edge); }
  .front-look :is(.form-row, .site-grid, .day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form, .card, .sheet-body, .form-section) > .field > .field-label { grid-column: 1; color: var(--ink); font-size: var(--fs-md); line-height: 20px; }
  .front-look :is(.form-row, .site-grid, .day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form, .card, .sheet-body, .form-section) > .field > :not(.field-label, .field-hint, .form-hint, .muted, .small, .bad-txt, .warn-txt) { grid-column: 2; }
  .front-look :is(.form-row, .site-grid, .day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form, .card, .sheet-body, .form-section) > .field > :is(.field-hint, .form-hint, .muted, .small, .bad-txt, .warn-txt) { grid-column: 1 / -1; }
  .front-look :is(.form-row, .site-grid, .day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form, .card, .sheet-body, .form-section) > .field input:not([type="checkbox"], [type="radio"], [type="color"], [type="file"], [type="range"]) { height: 40px; text-align: right; }
  .front-look :is(.form-row, .site-grid, .day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form, .card, .sheet-body, .form-section) > .field > .select { height: 40px; justify-content: flex-end; gap: var(--sp-2); text-align: right; }
  .front-look :is(.form-row, .site-grid, .day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form, .card, .sheet-body, .form-section) > .field > .select .select-chevron { margin-left: 0; }
  .front-look .site-slug { justify-content: flex-end; }
  .front-look .site-slug > .muted { font-size: var(--fs-sm); }
  .front-look .site-slug input { flex: 0 1 auto; width: auto; min-width: 0; text-align: left !important; }
  /* a value that needs the width: under its name */
  .front-look :is(.form-row, .site-grid, .day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form, .card, .sheet-body, .form-section) > .field:has(> :is(textarea, .chip-row, .toggle-row, .seg, .dish-photo)) { grid-template-columns: minmax(0, 1fr); }
  .front-look :is(.form-row, .site-grid, .day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form, .card, .sheet-body, .form-section) > .field:has(> :is(textarea, .chip-row, .toggle-row, .seg, .dish-photo)) > * { grid-column: 1; }
  .front-look :is(.form-row, .site-grid, .day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form, .card, .sheet-body, .form-section) > .field:has(> :is(textarea, .chip-row, .toggle-row, .seg, .dish-photo)) > .field-label { color: var(--ink-3); font-size: var(--fs-sm); }
  .front-look :is(.form-row, .site-grid, .day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form, .card, .sheet-body, .form-section) > .field textarea { text-align: left; }
  .front-look :is(.form-row, .site-grid, .day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form, .card, .sheet-body, .form-section) > .field > :is(.chip-row:not(.grp-chips), .toggle-row) { margin: var(--sp-2) calc(-1 * var(--edge)) calc(-1 * var(--sp-2)); }
  .front-look :is(.form-row, .site-grid, .day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form, .card, .sheet-body, .form-section) > .field > .seg { margin: var(--sp-2) calc(-1 * var(--edge)) calc(-1 * var(--sp-2)); }
  /* the link: the link a row, its two keys a row of two */
  .front-look .card > .bk-link { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .front-look .card > .bk-link > input { grid-column: 1 / -1; }
  .front-look .card > .site-pics { grid-template-columns: minmax(0, 1fr); }
  /* a card's keys at its end */
  .front-look .card:not(.flush) > .row-gap:last-child:has(> .btn-primary) > .btn { min-height: 56px; }
  /* «Смены и зарплата»: the views a strip of thirds, the dates a row, «Сотрудники» a row */
  .front-look .of-page > .sh-bar { flex-direction: column; align-items: stretch; }
  .front-look .of-page > .sh-bar > .seg { --strip-cell: calc(100% / 3); }
  .front-look .of-page > .sh-bar > :is(.select, .btn) { width: 100%; min-height: 56px; margin: 0; justify-content: flex-start; box-shadow: inset 0 -1px 0 0 var(--zl); }
  .front-look .of-page > .sh-bar > .select { justify-content: space-between; }
  /* «Бронирования»: the arrows and the day a row, the sum under them, the views a strip of thirds */
  .front-look .of-page > .bk-daybar { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; }
  .front-look .of-page > .bk-daybar > .bk-day { width: auto; height: 56px; }
  .front-look .of-page > .bk-daybar > .icon-btn { width: 56px; height: 56px; }
  .front-look .of-page > .bk-daybar > :not(.icon-btn, .bk-day) { grid-column: 1 / -1; }
  .front-look .of-page > .bk-daybar > .bk-sum { margin: 0; padding: 0 var(--px) var(--sp-2); text-align: center; }
  .front-look .of-page > .bk-daybar > .bk-views { --strip-cell: calc(100% / 3); box-shadow: inset 0 1px 0 0 var(--zl); }
  .front-look .of-page > .bk-daybar > .bk-views > .seg-btn:first-child { box-shadow: none; }

}
}
/* (the lines of the grid one over the other: «Как выглядит» — the logo a third, the picture two; the short fields under
   them a third each, the wide one under them) a form's wide field after the others of its grid */
@media (min-width: 701px) { .front-look :is(.card, .sheet-body, .form-section) > :is(.form-row, .site-grid, .day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form) > .site-wide { order: 1; } }

/* ---------- the phone: a choice from a list comes up from the bottom; a wide table keeps its first column ----------
   (20:41, the owner: «нативным, как в ios — простым и понятным») a list to choose from is the iPhone's sheet: from the
   bottom edge to edge, the screen dimmed behind it, a row an option 56 high, the chosen one ticked. A table wider than
   the screen: each row one line, the table going sideways under its first column, which stays (as the iPhone's
   spreadsheets) */
@media (max-width: 700px) {
  .front-look .select-pop {
    top: auto !important; right: 0; bottom: 0; left: 0 !important; width: auto !important; max-height: min(72vh, 560px) !important;
    border: 0; border-radius: var(--r-xl) var(--r-xl) 0 0; padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 0 0 100vmax rgb(19 24 36 / 0.46); animation: rise 0.16s ease-out;
  }
  .front-look .select-pop .select-search { padding: 0; border-bottom: 0; }
  .front-look .select-pop .select-search .search { height: 56px; padding: 0 var(--sp-4); border: 0; border-radius: 0; box-shadow: inset 0 -1px 0 0 var(--zl); }
  .front-look .select-pop .select-list { padding: 0; }
  .front-look .select-pop .select-opt { min-height: 56px; padding: 0 var(--sp-4); border-radius: 0; box-shadow: inset 0 -1px 0 0 var(--zl); }
  .front-look .select-pop .select-opt:last-child { box-shadow: none; }
  .front-look .select-pop .select-opt > svg { color: var(--accent); }

  .front-look .table-wrap > .tbl-data:not(.menu-table, .form-table, .tech-table, .list-rows) :is(th, td):not(:first-child) { white-space: nowrap; }
  .front-look .table-wrap > .tbl-data:not(.menu-table, .form-table, .tech-table, .list-rows) :is(th, td):first-child { position: sticky; left: 0; z-index: 1; max-width: 46vw; background: var(--surface); box-shadow: inset -1px 0 0 0 var(--zl); }
  .front-look .table-wrap > .tbl-data:not(.menu-table, .form-table, .tech-table, .list-rows) thead :is(th, td):first-child { background: var(--bg); box-shadow: inset -1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
  /* (11 November) the heads floating over the rows (sticky-heads.js): their first cell over the rows' held first cells —
     at the same height it went under them, «Статья» of ДДС hidden by «Expedia, Agoda)» */
  .front-look .table-wrap > .tbl-data[data-th-up]:not(.menu-table, .form-table, .tech-table, .list-rows) > thead :is(th, td):first-child { z-index: 4; }
  .front-look .table-wrap > .tbl-data:not(.menu-table, .form-table, .tech-table, .list-rows) tr.clickable:hover td:first-child { background: var(--surface-2); }
}

/* ---------- «Поставщики», the catalog: the rubrics a menu, the suppliers a grid of cells ----------
   On a computer the rubrics are rows from edge to edge at the left, as the back office's own menu; the search a row of
   the page; the suppliers cells of one size, one pixel of line between them; a card's foot a strip — its source at the
   left, «Добавить в мои» a key at the right. On a phone the rubrics a strip of thirds, the suppliers one to a row. */
.front-look .of-page > .dir { gap: 0; align-items: stretch; }
.front-look .dir-rubs { top: 0; gap: 0; padding: 0; border: 0; border-radius: 0; background: var(--surface); box-shadow: inset -1px 0 0 0 var(--zl); align-self: stretch; }
.front-look .dir-rub { min-height: 44px; padding: 0 var(--px); border: 0; border-radius: 0; box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .dir-rub.on { background: var(--accent); color: var(--accent-ink); }
.front-look .dir-rub.on .dir-n { color: inherit; }
.front-look .dir-main { gap: 0; }
.front-look .dir-meta { padding: var(--sp-3) var(--px); }
/* (the visual audit of the lines, 12 November) the cards' line at their left on the rubrics' own, not a pixel right of it */
.front-look .dir-grid { gap: 1px; margin: 1px 0 0 0; }
/* (11 November, 14:18, the owner: «источник … убрать. Ошибку тоже убрать, добавить в мои, убрать. Я бы вот здесь сверху
   сделал бы две кнопки: флажок — добавить в мои, и закрыть его, вычеркнуть. А то, что это кофе, добавил бы под надпись
   Белград») a supplier's head is a row of the card — its name, then the flag and the cross, keys of the head's height
   with a line at their left —, a line under it; the rest its words; no foot */
.front-look .dir-card { gap: var(--sp-2); padding: 0 var(--px) var(--px); border: 0; border-radius: 0; box-shadow: 0 0 0 1px var(--zl); }
.front-look .dir-card-head { align-items: stretch; gap: 0; min-height: 52px; margin: 0 calc(-1 * var(--px)) var(--sp-1); padding-left: var(--px); box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .dir-name { flex: 1 1 auto; align-self: center; min-width: 0; padding: var(--sp-3) var(--sp-3) var(--sp-3) 0; }
.front-look .dir-keys { display: flex; flex: none; }
.front-look .dir-key { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 52px; min-height: 52px; padding: 0; border: 0; border-radius: 0; background: var(--surface); color: var(--ink-2); cursor: pointer; box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.front-look .dir-key:hover:not(:disabled) { background: var(--surface-2); color: var(--ink); }
.front-look .dir-key:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.front-look .dir-key:disabled { cursor: default; opacity: 0.5; }
.front-look .dir-flag.on, .front-look .dir-flag.on:disabled { color: var(--accent); opacity: 1; }
.front-look .dir-cross:hover { color: var(--bad); }
.front-look .dir-card.gone .dir-name { color: var(--ink-2); text-decoration: line-through; }
.front-look .dir-rubric { color: var(--ink-2); }
@media (max-width: 900px) {
  .front-look .dir-rubs { display: grid; grid-auto-flow: column; grid-auto-columns: calc(100% / 3); overflow-x: auto; scroll-snap-type: x mandatory; box-shadow: inset 0 -1px 0 0 var(--zl); }
  .front-look .dir-rub { flex-direction: column; justify-content: center; gap: 0; min-height: 56px; padding: var(--sp-1) var(--sp-2); text-align: center; line-height: 18px; scroll-snap-align: start; box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
  .front-look .dir-rub:first-child { box-shadow: inset 0 -1px 0 0 var(--zl); }
  .front-look .dir-rub.on { box-shadow: none; }
  .front-look .dir-rub .dir-n { min-width: 0; text-align: center; }
  .front-look .dir-grid { grid-template-columns: minmax(0, 1fr); margin-left: 0; }
}

/* ---------- a document's lines on a phone (Приход, Списание): a line a block of cells ----------
   the product a row across (its picker from edge to edge), under it the quantity, the price (or the stock), the sum and
   the bin — cells, a line between them, each named over its value; «+ Строка» a row of the sheet */
@media (max-width: 700px) {
  .front-look .sheet-body > .doc-table { display: block; }
  .front-look .doc-table thead { display: none; }
  .front-look .doc-table tbody { display: block; }
  .front-look .doc-table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 56px; box-shadow: inset 0 -1px 0 0 var(--zl); }
  .front-look .tbl-data.doc-table td { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 2px; height: auto; min-height: 64px; padding: var(--sp-2) var(--sp-3); border: 0; text-align: left; box-shadow: inset 1px 0 0 0 var(--zl); }
  .front-look .tbl-data.doc-table td:first-child { grid-column: 1 / -1; min-height: 56px; padding: 0; box-shadow: inset 0 -1px 0 0 var(--zl); }
  .front-look .tbl-data.doc-table td:nth-child(2) { box-shadow: none; padding-left: var(--sx); }
  .front-look .tbl-data.doc-table td:last-child { align-items: center; padding: 0; }
  .front-look .doc-table td[data-label]::before { content: attr(data-label); color: var(--ink-3); font-family: var(--font-ui); font-size: var(--fs-xs); font-weight: var(--fw-regular); line-height: 16px; white-space: nowrap; }
  .front-look .doc-table td:first-child .select { width: 100%; max-width: none; min-width: 0; height: 56px; padding: 0 var(--sx); border: 0; border-radius: 0; background: transparent; font-size: var(--fs-md); }
  .front-look .doc-table td .cell-input { width: 100%; max-width: 96px; font-size: 16px; }
  .front-look .doc-table td:last-child .icon-btn { width: 56px; height: 100%; min-height: 56px; border-radius: 0; }
  .front-look .sheet-body > .doc-table + .btn { align-self: stretch; justify-content: flex-start; min-height: 56px; margin: calc(-1 * var(--sp-4)) calc(-1 * var(--sx)) 0; padding: 0 var(--sx); border-radius: 0; box-shadow: inset 0 -1px 0 0 var(--zl); }
}
@media (max-width: 700px) {
  .front-look .table-wrap > .tbl-data:not(.menu-table, .form-table, .tech-table, .list-rows) :is(th, td):first-child { min-width: 64px; }
  /* a document's quantity: its field and its unit side by side under the cell's name */
  .front-look .tbl-data.doc-table td:has(> .cell-input) { display: grid; grid-template-columns: minmax(0, auto) 1fr; grid-template-areas: "l l" "i u"; align-items: center; column-gap: var(--sp-1); }
  .front-look .tbl-data.doc-table td:has(> .cell-input)::before { grid-area: l; }
  .front-look .tbl-data.doc-table td:has(> .cell-input) > .cell-input { grid-area: i; }
  .front-look .tbl-data.doc-table td:has(> .cell-input) > span { grid-area: u; }
}
@media (max-width: 900px) {
  /* a supplier's foot on a phone: the source a row, «Ошибка?» and «Добавить в мои» two keys under it */
  .front-look .dir-foot { flex-wrap: wrap; padding: 0; }
  .front-look .dir-foot > .dir-src { flex: 1 0 100%; display: flex; align-items: center; min-height: 44px; padding: 0 var(--px); }
  .front-look .dir-foot > :is(.dir-report, .btn, .st) { flex: 1 1 0; justify-content: center; min-height: 52px; box-shadow: inset 0 1px 0 0 var(--zl); }
  .front-look .dir-foot > :is(.btn, .st) { box-shadow: inset 0 1px 0 0 var(--zl), inset 1px 0 0 0 var(--zl); }
}

/* ---------- a group's options (Модификаторы): each option a block of cells from edge to edge ----------
   its number, its two names, its price and its keys a row of cells; what it adds or takes away rows under it; its own
   keys a strip at its foot; «+ Вариант» a row of the sheet */
.front-look .form-section > .opt-list { gap: 0; margin-inline: calc(-1 * var(--edge)); box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look .opt-card { gap: 0; padding: 0; border: 0; border-radius: 0; box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .opt-top { gap: 0; grid-template-columns: 44px minmax(0, 1.3fr) minmax(0, 1fr) 112px auto; min-height: 52px; }
.front-look .opt-top > * { align-self: stretch; }
.front-look .opt-n { display: grid; place-items: center; }
.front-look .opt-top > .cell-input.opt-name { height: auto; min-height: 52px; padding: 0 var(--sp-3); border: 0; border-radius: 0; background: transparent; font-size: var(--fs-md); box-shadow: inset 1px 0 0 0 var(--zl); }
.front-look .opt-top > .cell-input.opt-name:focus, .front-look .opt-price:focus-within { box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -2px 0 0 var(--accent); }
.front-look .opt-price { padding: 0 var(--sp-3); box-shadow: inset 1px 0 0 0 var(--zl); }
.front-look .opt-price .cell-input { flex: 1; width: auto; min-width: 0; border: 0; background: transparent; font-size: var(--fs-md); text-align: right; }
.front-look .opt-tools { gap: 0; box-shadow: inset 1px 0 0 0 var(--zl); }
.front-look .opt-tools > .icon-btn { width: 48px; height: 100%; min-height: 52px; border-radius: 0; background: none; }
.front-look .opt-note { padding: var(--sp-2) var(--sp-3) var(--sp-2) 44px; box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look .opt-line { gap: 0 var(--sp-2); min-height: 52px; padding: var(--sp-1) 0 var(--sp-1) 44px; box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look .opt-actions { gap: 0; padding: 0 0 0 44px; box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look .opt-actions > .btn { min-height: 44px; border-radius: 0; }
.front-look .form-section > .opt-list + div > .btn { width: calc(100% + 2 * var(--edge)); min-height: 52px; margin: calc(1px - var(--gap)) calc(-1 * var(--edge)) 0; justify-content: flex-start; padding: 0 var(--edge); border: 0; border-radius: 0; background: var(--surface); box-shadow: inset 0 -1px 0 0 var(--zl); }
@media (max-width: 640px) {
  .front-look .opt-top { grid-template-columns: minmax(0, 1fr) auto auto; }
  .front-look .opt-n { display: none; }
  .front-look .opt-top > .cell-input.opt-name { grid-column: 1 / -1; padding: 0 var(--edge); box-shadow: inset 0 -1px 0 0 var(--zl); }
  .front-look .opt-top > .cell-input.opt-name:focus { box-shadow: inset 0 -2px 0 0 var(--accent); }
  .front-look .opt-price { padding-left: var(--edge); box-shadow: none; }
  .front-look .opt-note, .front-look .opt-actions { padding-left: var(--edge); }
  .front-look .opt-line { padding-left: var(--edge); padding-right: 0; }
}

/* the rows of «Рестораны» (the working day, the currency, the forecast's norms): cells as a form's; a note or a key
   beside the fields a cell of the row too */
.front-look .card > :is(.day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form) { align-items: stretch; border-top: 0; }
.front-look .card > :is(.day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form) > :not(.field) { display: flex; align-items: center; min-height: 64px; margin: 0; padding: 10px var(--px); background: var(--surface); box-shadow: 0 0 0 1px var(--zl); }
.front-look .card > :is(.day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form) > .btn { justify-content: center; border: 0; border-radius: 0; }
.front-look .card > :is(.day-row, .cur-row, .fc-set, .cp-fields, .loc-name, :where(.card, .sheet-body, .form-section) > .mn-form) > .btn.btn-primary { background: var(--accent); color: var(--accent-ink); }
.front-look .fc-set input { max-width: none; }
@media (max-width: 700px) {
  /* a form's choice of four and more on a phone (the money's «Чьё»: seven places): three to a row, every one in sight
     (18 October, «Деньги»: not the last ones hidden behind the edge) — the cells one pixel apart, each its line round
     itself, a short last row short */
  .front-look :is(.sheet-body .seg, .card > .seg, .field > .seg, .form-row > .seg):not(.seg-chips):has(> :nth-child(4)) {
    grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 1px; overflow: visible; box-shadow: none;
  }
  .front-look :is(.sheet-body .seg, .card > .seg, .field > .seg, .form-row > .seg):not(.seg-chips):has(> :nth-child(4)) > .seg-btn,
  .front-look :is(.sheet-body .seg, .card > .seg, .field > .seg, .form-row > .seg):not(.seg-chips):has(> :nth-child(4)) > .seg-btn:is(:first-child, :last-child) { box-shadow: 0 0 0 1px var(--zl); }
  .front-look .mn-app .field > .seg, .front-look.mn-app .field > .seg { align-self: stretch; }
}

/* «Отчёты»: the question a row of the page from edge to edge, as a search */
.front-look .of-page > .ask { padding: 0; }
.front-look .of-page > .ask .ask-field input { height: var(--cell-h); padding-left: 48px; border: 0; border-radius: 0; background: var(--surface); box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .of-page > .ask .ask-field input:focus { box-shadow: inset 0 -2px 0 0 var(--accent); }
.front-look .of-page > .ask .ask-ic { left: var(--px); }
.front-look .of-page > .ask .ask-go { right: var(--sp-2); }
.front-look .of-page > .ask > :not(.ask-form) { padding-inline: var(--px); }
/* a tech card's lines on a phone: as a document's — the product across, its figures cells under it, each named */
@media (max-width: 700px) {
  .front-look .tech-table thead { display: none; }
  .front-look .tech-table, .front-look .tech-table tbody { display: block; }
  .front-look .tech-table tr { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr) auto; box-shadow: inset 0 -1px 0 0 var(--zl); }
  .front-look .tbl-data.tech-table td { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 2px; height: auto; min-height: 64px; padding: var(--sp-2); border: 0; text-align: left; box-shadow: inset 1px 0 0 0 var(--zl); }
  .front-look .tbl-data.tech-table td:first-child { grid-column: 1 / -1; min-height: 52px; padding: 0 var(--px); box-shadow: inset 0 -1px 0 0 var(--zl); }
  .front-look .tbl-data.tech-table td:nth-child(2) { padding-left: var(--px); box-shadow: none; }
  .front-look .tbl-data.tech-table td:nth-child(6) { align-items: center; padding: 0; }
  .front-look .tech-table td[data-label]::before { content: attr(data-label); color: var(--ink-3); font-family: var(--font-ui); font-size: var(--fs-xs); font-weight: var(--fw-regular); line-height: 16px; white-space: nowrap; }
  .front-look .tech-table td:first-child .select { width: calc(100% + 2 * var(--px)); max-width: none; min-width: 0; height: 52px; margin: 0 calc(-1 * var(--px)); padding: 0 var(--px); border: 0; border-radius: 0; background: transparent; font-size: var(--fs-md); }
  .front-look .tech-table .select.sm.stage-select { width: 100%; min-width: 0; }
  .front-look .tech-table .cell-input { width: 100%; max-width: 72px; font-size: 16px; }
  .front-look .tech-table td.cost { padding-top: var(--sp-2); }
  .front-look .tech-table td:nth-child(6) .icon-btn { width: 48px; height: 100%; min-height: 56px; border-radius: 0; }
}
@media (max-width: 700px) {
  .front-look .tech-table tr { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr) minmax(0, 1.4fr) minmax(0, 0.8fr) auto; }
  .front-look .tbl-data.tech-table td:has(> .cell-input) { display: grid; grid-template-columns: minmax(0, auto) 1fr; grid-template-areas: "l l" "i u" "s s"; align-items: center; align-content: center; column-gap: var(--sp-1); }
  .front-look .tbl-data.tech-table td:has(> .cell-input)::before { grid-area: l; }
  .front-look .tbl-data.tech-table td:has(> .cell-input) > .cell-input { grid-area: i; }
  .front-look .tbl-data.tech-table td:has(> .cell-input) > span { grid-area: u; }
  .front-look .tbl-data.tech-table td:has(> .cell-input) > .cell-sub { grid-area: s; }
}
@media (max-width: 700px) {
  /* (the four figures did not fit a phone's width: the prep is a row of its own under them, its name at the left) */
  .front-look .tech-table tr { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) 48px; }
  .front-look .tbl-data.tech-table td:nth-child(4) { order: 1; grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 0 0 var(--px); box-shadow: inset 0 1px 0 0 var(--zl); }
  .front-look .tbl-data.tech-table td:nth-child(4)::before { font-size: var(--fs-md); color: var(--ink); }
  .front-look .tech-table td:nth-child(4) .select.sm.stage-select { width: auto; min-width: 140px; height: 52px; border: 0; border-radius: 0; background: transparent; justify-content: flex-end; gap: var(--sp-2); padding: 0 var(--px); }
}

/* ---------- an integration's foot: its switch at the left, its key a cell at the right ----------
   (the key had stood in a box of its own inside the foot: «Настроить», «Открыть» a square key the foot's height, a
   line at its left) */
.front-look .ig-foot { align-items: stretch; padding: 0 0 0 var(--px); }
.front-look .ig-foot > .ig-switch { align-self: center; }
.front-look .ig-foot > .btn { align-self: stretch; height: auto; min-height: 56px; margin: 0 0 0 auto; padding: 0 var(--px); border: 0; border-radius: 0; background: var(--surface); color: var(--ink); box-shadow: inset 1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.front-look .ig-foot > .btn:hover { background: var(--surface-2); }
.front-look .ig-foot > .btn.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 1px 0 0 var(--accent); }
.front-look .ig-foot > :only-child.btn { margin-left: calc(-1 * var(--px)); width: calc(100% + var(--px)); box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); justify-content: flex-start; }

/* ---------- the first line under the header one line across the screen ----------
   (the visual audit: the menu's picker ended 8 px below the page's first band — two lines a step apart) under the
   header the menu's picker, a page's strip, its search and a table's head are each 48 high: their lines one line */
@media (min-width: 961px) {
  .front-look .of-scope .select { height: 48px; }
  .front-look .of-scope-one { min-height: 48px; }
  .front-look .tbl-data th { height: 48px; }
}
/* a tech card's lines wider than the editor at 1024: they go sideways in their frame, not the page */
.front-look .tech-layout > * { min-width: 0; }
.front-look .tech-editor .table-wrap { overflow-x: auto; }
/* (the words «Удалить строку» for a screen reader, placed absolutely in a table's head, had taken the page 150 px
   past the window at 1024: a table's frame holds what is placed in it) */
.front-look .table-wrap { position: relative; }

/* (the visual audit) a page's strip draws its line under it: the card after it draws none over itself — two lines
   had touched; the header's strip of keys: its line over it drawn by its cells, the cells' ground had covered it */
.front-look .of-page > :is(.seg, .sh-bar, .bk-daybar, .ask, .chip-row.grp-chips) + :is(.card, .kpi-row, .two-col, .sum-grid, .ig-grid, .int-grid, .loc-grid, .tg-grid, .tech-layout) { border-top: 0; }
@media (min-width: 701px) {
  .front-look .of-head > .of-actions:has(> :nth-child(4)) > :is(.btn, .select) { box-shadow: inset -1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl); }
  .front-look .of-head > .of-actions:has(> :nth-child(4)) > :last-child { box-shadow: inset 0 1px 0 0 var(--zl); }
  .front-look .of-head > .of-actions:has(> :nth-child(4)) > .btn.btn-primary { box-shadow: inset 0 1px 0 0 var(--accent); }
}
.front-look .cp-fields input, .front-look .loc-name input { max-width: none; }
@media (max-width: 700px) {
  /* «Деньги» in a network's back office, its filters on a phone: each a block from edge to edge — its name, under it its
     choice across the screen (a picker a row, a choice of a few a strip, of many three to a row) */
  .front-look.mn-app .of-page > .mn-filters { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; padding: 0; }
  .front-look.mn-app .mn-filters > :is(.field, .field:has(> .seg)) { flex: none; min-width: 0; max-width: none; gap: 0; margin: 0; }
  .front-look.mn-app .mn-filters > .field > .field-label { padding: var(--sp-3) var(--px) var(--sp-2); }
  .front-look.mn-app .mn-filters > .field > .select { width: 100%; height: 52px; padding: 0 var(--px); border: 0; border-radius: 0; background: var(--surface); box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
  .front-look.mn-app .mn-filters > .field > .seg { align-self: stretch; }
  .front-look.mn-app .mn-filters > .field > input { width: 100%; height: 52px; padding: 0 var(--px); border: 0; border-radius: 0; box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
  .front-look.mn-app .mn-filters > .check-row { padding: var(--sp-3) var(--px); }
}

/* (15 November, the brand book's robot) a row whose panel opens under it is brought up to just under what stays at the
   top — the page's head (64) and the table's column heads (48) — not under them (ui/common.jsx, showOpened) */
.front-look .of-main .tbl-data > tbody > tr { scroll-margin-top: 112px; }

/* ---------- «Сводка»: the board of widgets (9 November, 23:17) ----------
   The owner: «вся сетка виджетов должна быть по горизонтали поделена на 5 частей, 1 часть = высоте всех виджетов; виджет
   с цифрами 2 части; виджет с выручкой по часам и каналам 3 части; скорость кухни, отмены, топ блюд, склад, советы — 1
   часть». The board is five equal parts across on a computer (three on a tablet, two on a phone — office-summary.jsx
   measures it), every widget a part high. A part is four rows: a widget's head is its first row, the rows under it as
   the iPhone's — the name and a line under it at the left, the figure at the right —, so the lines of widgets side by
   side stand level and the channels' rows start on a part's own edge. (23:48, the owner: «Внутри блоков в сводке не
   дели инфу горизонтальными линиями — иначе смотрится, что заголовок — это один блок, а информация — другой») The only
   lines are the widgets' own: each draws its right one and the one under it in the gap of a pixel; the board's top line
   is the header's, its left one the menu's. Inside a widget no line at all. */
.wg-board {
  --cols: 5; --part: 232px; --wl: var(--zl, var(--line-2));
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-rows: var(--part); grid-auto-flow: row dense;
  gap: 1px; margin-bottom: 1px;
}
.wg-board[data-cols='3'] { --cols: 3; }
.wg {
  --span: 1; --in: 1; --rows: 4;
  grid-column: span var(--span);
  display: grid; grid-template-columns: repeat(var(--in), minmax(0, 1fr)); grid-template-rows: repeat(var(--rows), minmax(0, 1fr));
  gap: 1px; min-width: 0; min-height: 0; overflow: hidden; background: var(--surface);
  box-shadow: 1px 0 0 0 var(--wl), 0 1px 0 0 var(--wl), 1px 1px 0 0 var(--wl);
}
.wg > :is(.wg-head, .wg-row, .wg-note, .wg-chart, .tile) { min-width: 0; min-height: 0; background: var(--surface); box-shadow: none; }
/* (10 November, 00:03, the owner: «Первый блок делаем 1 часть в горизонт, 2 в вертикаль, второй блок делаем на 4 в
   горизонталь») the numbers a part wide and two high; the revenue four parts wide and two high — the rows under them
   one row of five widgets of a part */
/* (00:13, the owner: «Информация в блоках должны быть аккуратнее — особенно первый блок, чуть больше места снизу и
   сверху, можно сделать основную сумму чуть меньше») the numbers: the revenue as tall as it needs at the top, its five
   rows sharing the rest, air above the first and under the last */
.wg-num { grid-row: span 2; grid-template-rows: auto repeat(5, minmax(0, 1fr)); padding: var(--sp-5) 0 var(--sp-4); }
/* (03:11, the owner: «В первом блоке в десктопной сделай надпись выручка такой же, как и заголовки других блоков»; 03:26:
   «Только не сдвигай всю информацию в первом блоке к низу — до этого было хорошо») «Выручка, RSD» in a head's letters,
   its middle on the middle of the heads' row beside it (the revenue's chart: two parts in eight rows) — the sum and the
   rows under it where they were */
.wg-num { padding-top: calc((var(--part) * 2 - 6px) / 16 - 11px); }
.wg-rev { --span: 4; --in: 4; --rows: 8; grid-row: span 2; }

/* a widget's head: its title, an explanation, the page it comes from at the right */
.wg-head { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--sp-2); padding: 0 var(--sp-2) 0 var(--px); }
.wg-head h2 { flex: 0 1 auto; min-width: 0; margin: 0; overflow: hidden; color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; white-space: nowrap; text-overflow: ellipsis; }
.wg-head h2 .info-btn { margin: -8px 0 -8px 2px; vertical-align: middle; }
/* (a part under 220: a title, its explanation and the arrow did not fit — the explanation goes, «Сводка»'s own stays) */
.wg-board[data-narrow] .wg-head h2 .info-btn { display: none; }
.wg-go {
  display: inline-flex; flex: none; align-items: center; gap: 2px; height: 40px; margin-left: auto; padding: 0 var(--sp-2);
  border: 0; border-radius: 0; background: none; color: var(--accent); font: inherit; font-size: var(--fs-sm); cursor: pointer;
}
.wg-go:hover { background: var(--surface-2); }
.wg-go:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* (10 November, 01:27, the owner: «Показать все — здесь нужное выделение, а в Топ блюд — выделяется только
   стрелочка») a head with the arrow is a key across the widget's width — its arrow's area stretched over the head —,
   lit whole as a row that opens something is */
.wg-head:has(> .wg-go) { position: relative; cursor: pointer; }
.wg-head > .wg-go::after { content: ''; position: absolute; inset: 0; }
.wg-head > .wg-go:hover { background: none; }
.wg-head:has(> .wg-go:hover) { background: var(--surface-2); }
.wg-head > .wg-go:focus-visible { outline: 0; }
.wg-head:has(> .wg-go:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }
.wg-head h2 .info-btn { position: relative; z-index: 1; }
.wg-count { margin-left: auto; padding-right: var(--sp-2); color: var(--ink-2); font-family: var(--font-timer); font-size: var(--fs-md); font-weight: var(--fw-semibold); }

/* a row: the name and a line under it at the left, the figure at the right; a row that opens something has the arrow */
.wg-row { display: flex; align-items: center; gap: var(--sp-3); padding: 0 var(--px); color: var(--ink); text-align: left; }
.wg-t { display: flex; flex: 1 1 auto; flex-direction: column; justify-content: center; min-width: 0; }
.wg-n, .wg-s { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wg-n { font-size: var(--fs-sm); line-height: 20px; }
.wg-s { color: var(--ink-2); font-size: var(--fs-sm); line-height: 18px; }
.wg-v { flex: none; font-family: var(--font-timer); font-size: var(--fs-md); font-weight: var(--fw-semibold); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wg-v.low-qty { color: var(--warn); }
.wg-chev { flex: none; margin-right: calc(-1 * var(--sp-1)); color: var(--ink-3); }
button.wg-row { width: 100%; height: 100%; border: 0; border-radius: 0; font: inherit; cursor: pointer; }
button.wg-row:hover { background: var(--surface-2); }
button.wg-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.wg-row .sw { margin-right: var(--sp-2); }
/* the words of an empty widget: under its head, in the middle of the rows */
.wg-note { grid-column: 1 / -1; grid-row: 2 / -1; display: flex; flex-direction: column; justify-content: flex-start; gap: var(--sp-1); padding: var(--sp-2) var(--px) var(--sp-3); color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; }

/* the numbers: the revenue big in the left part, the other four rows of the right one */
.wg-num > .tile { display: flex; gap: 0; padding: 0 var(--px); border: 0; border-radius: 0; color: var(--ink); }
.wg-num > .tile-big { grid-row: 1; flex-direction: column; justify-content: flex-start; gap: var(--sp-1); padding: 0 var(--px) var(--sp-4); }
.wg-num > .tile-big .tile-l { overflow: hidden; color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; white-space: nowrap; text-overflow: ellipsis; }
.wg-num > .tile-big .tile-v { font-size: clamp(26px, calc(var(--part) * 0.13), 40px); line-height: 1.15; }
.wg-num > .tile-big .tile-d { font-size: var(--fs-sm); line-height: 20px; white-space: normal; }
.wg-num > .tile-big .tile-sub { margin: 0; }
.wg-num > .tile-row { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: var(--sp-3); margin: 0; padding-block: 0; }
.wg-num > .tile-row .sum-tips-l { font-weight: var(--fw-regular); }
.wg-num > .tile-row .tile-t { display: flex; flex: 1 1 auto; flex-direction: column; justify-content: center; min-width: 0; }
.wg-num > .tile-row :is(.tile-l, .tile-n) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wg-num > .tile-row .tile-l { color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; }
.wg-num > .tile-row .tile-n { color: var(--ink-2); font-size: var(--fs-sm); line-height: 18px; }
.wg-num > .tile-row :is(.tile-d, .tile-sub) { display: inline; margin: 0; font-size: inherit; }
.wg-num > .tile-row .tile-v { flex: none; font-size: clamp(17px, calc(var(--part) * 0.08), 22px); line-height: 1.2; }

/* the revenue: its head across, the chart under it, its last row the channels and the busiest hour, a part each */
.wg-rev > .wg-chart { grid-column: 1 / -1; grid-row: 2 / span 6; position: relative; overflow: hidden; }
.wg-rev > .wg-row { grid-row: 8; }
.wg-chart > .chart-wrap { position: absolute; inset: 0; }
.wg-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-2); height: 100%; padding: var(--sp-3) var(--px); font-size: var(--fs-sm); text-align: center; }
.wg-empty b { font-size: var(--fs-md); }

/* a tablet: three parts across — the revenue two of them, its channels two rows of two */
.wg-board[data-cols='3'] .wg-rev { --span: 2; --in: 2; }
.wg-board[data-cols='3'] .wg-rev > .wg-chart { grid-row: 2 / span 5; }
.wg-board[data-cols='3'] .wg-rev > .wg-row { grid-row: auto; }
/* (11 November, «Сводка»'s check against the owner's rules — «пустых блоков нет»: the board of 1024 had its five widgets
   on three columns, a third of the last row empty; a server's with «Что сделать» and the ratings, six on five) the last
   widget takes the rest of its row — the numbers and the revenue fill the first two rows, so a widget's place in its row
   is its number among the children */
.wg-board:not([data-cols='3']):not([data-tiles]) > .wg-1:last-child:nth-child(5n + 3) { --span: 5; }
.wg-board:not([data-cols='3']):not([data-tiles]) > .wg-1:last-child:nth-child(5n + 4) { --span: 4; }
.wg-board:not([data-cols='3']):not([data-tiles]) > .wg-1:last-child:nth-child(5n + 5) { --span: 3; }
.wg-board:not([data-cols='3']):not([data-tiles]) > .wg-1:last-child:nth-child(5n + 6) { --span: 2; }
.wg-board[data-cols='3'] > .wg-1:last-child:nth-child(3n + 3) { --span: 3; }
.wg-board[data-cols='3'] > .wg-1:last-child:nth-child(3n + 4) { --span: 2; }
/* a phone: the widgets one under another from edge to edge, a part four rows of 56 (the waiter's rows); the numbers two
   parts; no chart */
.wg-board[data-cols='1'] { --cols: 1; }
/* (00:13, the owner: «В мобильной версии не показываем большой блок с графикой») */
.wg-board[data-cols='1'] .wg-rev { display: none; }

/* (23:18, the owner: «Слева от значка с именем профиля ставим переключатель темы») the theme's key beside the avatar —
   (10 November, 00:27: «круг выбора темы больше, чем круг профиля — должны быть одинаковыми») a circle of the avatar's
   36 px, always drawn; the key itself the 44 px a finger needs */
.of-theme {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: var(--h-md); height: var(--h-md); margin-left: auto; padding: 4px;
  border: 0; border-radius: var(--r-pill); background: var(--pill); background-clip: content-box; color: var(--ink-2); cursor: pointer;
}
.of-theme:hover { background-color: var(--pill-press); color: var(--ink); }
.of-theme:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* (10 November, 01:06, the owner: «Значок изменения темы должен быть ближе к значку профиля») the two keys side by side,
   8 between their circles */
.of-theme + .of-me { margin-left: calc(-1 * var(--sp-3)); }

/* ---------- «Сводка» on a phone (10 November, 01:40) ----------
   The owner: «Мобильная версия — дичь. Тут надо оставить только самую важную информацию. Выручку по дням и каналам
   убрать, остальное представить, как выбор столов в приложении официанта. Выбор дат нужно сделать стильнее».
   The dates (since 02:35): the iPhone's segmented control under the page's title, below. The figures: the waiter's tables (.pt-grid, .ptable) — three
   to a row from edge to edge, the lines between them, the figure at the top in the table number's letters (smaller as it
   grows longer), a grey line, its name at the bottom; a tile that asks for attention shaded. */
.period-pills { display: none; }
@media (max-width: 700px) {
  .front-look .period > .select { display: none; }
  .front-look .period { width: 100%; }
  /* (02:35, the owner: «выбор дат с закруглением, как у пилюли») the iPhone's segmented control under the title: a track
     rounded as a pill, the four of one touch sharing it (each never narrower than its word), the calendar's part as wide
     as it says; the words 13, as the iPhone's; the chosen part raised on it, rounded as a pill too (:root — over the
     header's cells, 92-office-grid.css) */
  :root .front-look .period-pills {
    display: grid; grid-template-columns: repeat(4, minmax(max-content, 1fr)) auto; gap: 2px; margin: 0 var(--px); padding: 2px;
    overflow: visible; border-radius: var(--r-pill); background: var(--seg-track);
  }
  :root .front-look .of-head .period-pills > .period-pill {
    display: inline-flex; align-items: center; justify-content: center; gap: 0; order: 0; grid-column: auto; width: auto; min-width: 0;
    height: 32px; min-height: 32px; margin: 0; padding: 0 var(--sp-1); overflow: hidden; border: 0; border-radius: var(--r-pill);
    background: none; box-shadow: none; color: var(--ink); font: inherit; font-size: 13px; font-weight: var(--fw-medium); line-height: 1;
    white-space: nowrap; text-overflow: ellipsis; cursor: pointer;
  }
  :root .front-look .of-head .period-pills > .period-pill.on {
    background: var(--seg-on); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / 0.14), 0 0 0 0.5px rgb(0 0 0 / 0.05); font-weight: var(--fw-semibold);
  }
  :root .front-look .of-head .period-pills > .period-pill:active:not(.on) { background: rgb(118 118 128 / 0.12); }
  :root .front-look .of-head .period-pills > .period-more { padding: 0 10px; }
  :root .front-look .of-head .period-pills > .period-more .select-icon { margin: 0; color: var(--ink); }
  :root .front-look .of-head .period-pills > .period-more .select-value { flex: none; }
  :root .front-look .of-head .period-pills > .period-more:not(.on) .select-value,
  :root .front-look .of-head .period-pills > .period-more.on .select-icon,
  :root .front-look .of-head .period-pills > .period-more .select-chevron { display: none; }
}
.wg-board[data-tiles] { display: block; }
.st-grid .ptable { height: auto; min-height: 112px; }
.st-grid div.ptable { cursor: default; }
.st-grid div.ptable:active { background: var(--surface); }
.st-v { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.st-v.st-m { font-size: 20px; line-height: 28px; }
.st-v.st-s { font-size: 17px; line-height: 28px; }
.st-v.st-text { display: -webkit-box; font-size: var(--fs-md); line-height: 20px; white-space: normal; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.st-sub { overflow: hidden; text-overflow: ellipsis; }
.st-l { color: var(--ink-2); }
.st-tile.st-wide { grid-column: span 2; }
.st-tile.st-link .st-v { color: var(--accent); }
.st-tile.st-warn { background: var(--warn-soft); }
.st-tile.st-accent { background: var(--accent-soft); }
.st-tile:disabled { opacity: 1; cursor: default; }

/* ---------- the pages of the new menu (9 November, 23:30, the owner's «Пункты меню») ---------- */
/* «Чеки», «Отмены»: the dates' sum over the list, a key for more under it */
.sales-sum b { color: var(--ink); font-weight: var(--fw-semibold); }
.sales-more {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: var(--cell-h, 48px); border: 0; border-radius: 0;
  background: var(--surface); color: var(--accent); font: inherit; font-size: var(--fs-sm); cursor: pointer; box-shadow: inset 0 -1px 0 0 var(--zl, var(--line-2));
}
.sales-more:hover { background: var(--surface-2); }
.vd-waste { margin-left: var(--sp-2); }
/* (nothing known — no waiter, no table: a dash on a computer, nothing on a phone) */
.tbl-data.list-rows td:empty::after { content: '—'; color: var(--ink-3); }
/* (a day ahead in «Табель»: nothing, not a dash) */
.tbl-data.list-rows td.xs-none:empty::after { content: none; }
.tbl-data.list-rows .xs-line, .tbl-data .xs-only { display: none; }
.bill-pays { margin-top: var(--sp-4); }

/* a dish's recipe in its card: a row across the sheet, its cost under its name, the arrow at the right */
.tech-link {
  display: flex; align-items: center; gap: var(--sp-3); width: calc(100% + 2 * var(--sx, 20px)); min-height: 56px; margin: 0 calc(-1 * var(--sx, 20px));
  padding: var(--sp-2) var(--sx, 20px); border: 0; border-radius: 0; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer;
  box-shadow: inset 0 1px 0 0 var(--zl, var(--line-2)), inset 0 -1px 0 0 var(--zl, var(--line-2));
}
.tech-link:hover { background: var(--surface-2); }
.tech-link-t { display: flex; flex: 1 1 auto; flex-direction: column; gap: 2px; min-width: 0; }
.tech-link > svg { flex: none; color: var(--ink-3); }

/* «Настройки» → «Рестораны»: its tabs a strip under the header; the stores', the stations' and the places' tables */
.set-sub { display: block; }
.set-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); padding: var(--sp-4) var(--px, 24px); }

/* «Профиль»: the person, and the rows of this device's language and theme */
.profile-who { display: flex; align-items: center; gap: var(--sp-4); }
.profile-ava { width: 56px; height: 56px; font-size: var(--fs-xl); }
.profile-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.profile-t b { font-size: var(--fs-lg); }
.front-look .card.profile-rows { gap: 0; padding-block: 0; }
.profile-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 64px; box-shadow: inset 0 -1px 0 0 var(--zl, var(--line-2)); margin: 0 calc(-1 * var(--px, 24px)); padding: var(--sp-2) var(--px, 24px); }
.profile-row:last-child { box-shadow: none; }
.profile-row > .seg { flex: 0 1 280px; }

/* a phone: a bill or a cancellation is a row of the waiter's iPhone — its first cell on the first line, the rest of it
   on the second, one after another, the sum at the right */
@media (max-width: 700px) {
  .front-look .tbl-data.list-rows thead { display: none; }
  .front-look .tbl-data.list-rows, .front-look .tbl-data.list-rows :is(tbody, tfoot) { display: block; min-width: 0; }
  .front-look .tbl-data.list-rows tr {
    position: relative; display: flex; flex-wrap: wrap; align-items: baseline; min-height: 64px; padding: var(--sp-2) 112px var(--sp-2) var(--sx, 16px);
    box-shadow: inset 0 -1px 0 0 var(--zl, var(--line-2));
  }
  .front-look .tbl-data.list-rows td { display: block; flex: none; height: auto; min-width: 0; max-width: none; padding: 0; border: 0; color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; white-space: normal; position: static; }
  .front-look .tbl-data.list-rows td:first-child { flex: 0 0 100%; color: var(--ink); font-size: var(--fs-md); line-height: 22px; }
  .front-look .tbl-data.list-rows td:empty { display: none; }
  .front-look :is(.card, .card.flush) .tbl-data.list-rows :is(td, td:first-child, td:last-child) { padding: 0; }
  /* (a sheet's list too: its row keeps the margin, its first cell none of its own — a supplier's «Что привозит», 11 November) */
  .front-look .sheet-body > .tbl-data.list-rows :is(td, td:first-child, td:last-child) { padding: 0; }
  .front-look .tbl-data.list-rows td { box-shadow: none; background: none; }
  /* (a row a whole: its shade under the row, not under its lines one by one) */
  .front-look .tbl-data.list-rows tr:is(.clickable, .sp-tr):hover { background: var(--surface-2); }
  .front-look .tbl-data.list-rows tr:is(.clickable, .sp-tr):hover > td { background: none; }
  /* (the row's other cells said once, on its second line — xs-line; the columns themselves only on a computer) */
  .front-look .tbl-data.list-rows td:not(:first-child):not(:last-child):not(.xs-line):not(.xs-title):not(.xs-end):not(.xs-chip) { display: none; }
  .front-look .tbl-data.list-rows td.xs-line { flex: 0 0 100%; }
  .front-look .tbl-data.list-rows td.num:last-child { position: absolute; top: 50%; right: var(--sx, 16px); color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); transform: translateY(-50%); }
  /* (10 November, the sections in «Сводка»'s look: «Телефон, как «Сводка»» — no table goes sideways) the row's name may be
     another cell than the first (xs-title), the figure at the right another than the last (xs-end); a row without a
     figure at the right takes the whole width (xs-full) */
  .front-look .tbl-data.list-rows tr:has(> td.xs-title) > td:first-child:not(.xs-title) { display: none; }
  .front-look .tbl-data.list-rows td.xs-title { order: -1; flex: 0 0 100%; color: var(--ink); font-size: var(--fs-md); line-height: 22px; }
  .front-look .tbl-data.list-rows tr:has(> td.xs-end) > td:last-child:not(.xs-end):not(.xs-line) { display: none; }
  .front-look .tbl-data.list-rows .xs-only { display: block; }
  .front-look .tbl-data.list-rows td.xs-end {
    position: absolute; top: 50%; right: var(--sx, 16px); max-width: 104px; color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); text-align: right;
    transform: translateY(-50%);
  }
  .front-look .tbl-data.list-rows td.xs-end .cell-sub { font-size: var(--fs-sm); font-weight: var(--fw-regular); }
  .front-look .tbl-data.list-rows.xs-full tr { padding-right: var(--sx, 16px); }
  .front-look .table-wrap:has(> .tbl-data.list-rows) { overflow: visible; }
  /* (a week's cells — «Табель» — chips on the row's second line, each its day before it: a tap still opens the shift) */
  .front-look .tbl-data.list-rows td.xs-chip { display: inline-flex; flex: none; align-items: center; gap: var(--sp-1); margin: var(--sp-1) var(--sp-3) 0 0; }
  .front-look .tbl-data.list-rows td.xs-chip::before { content: attr(data-label); color: var(--ink-3); font-size: var(--fs-sm); }
  .front-look .tbl-data.list-rows td.xs-chip.xs-none { display: none; }
}

/* ---------- a list from a pill: the iPhone's menu (10 November, 00:32) ----------
   The owner: «Выпадающий список из пилюли надо сделать другим, пилюля закругленная, а выпадающий список квадратный —
   странно». On a computer a list opens as the iPhone's and the Mac's menus: a layer rounded at 14, a little see-through,
   a thin edge and a soft shadow; its rows 44 high with a hair between them; the chosen one ticked at the left, nothing
   filled — the row under the pointer lit grey. On a phone it stays the sheet from the bottom (92-office-grid.css), its
   chosen row ticked, not filled. */
@keyframes menu-in { from { opacity: 0; transform: scale(0.97) translateY(-4px); } to { opacity: 1; transform: none; } }
@media (min-width: 701px) {
  /* (:root — over the grid's «square» rule, 92-office-grid.css, whose :is() weighs two classes) */
  :root .front-look .select-pop {
    border: 0; border-radius: 14px; background: var(--menu); box-shadow: var(--shadow-menu);
    -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
    transform-origin: top center; animation: menu-in 0.14s ease-out;
  }
  .front-look .select-pop .select-list { padding: 0; }
  .front-look .select-pop .select-opt {
    position: relative; min-height: 44px; padding: 0 var(--sp-4) 0 40px; border-radius: 0; background: none; color: var(--ink);
    font-size: var(--fs-sm); font-weight: var(--fw-regular); box-shadow: inset 0 -1px 0 0 var(--menu-line);
  }
  .front-look .select-pop .select-opt:last-child { box-shadow: none; }
  .front-look .select-pop .select-opt.active, .front-look .select-pop .select-opt[aria-selected='true'].active { background: var(--menu-hover); }
  .front-look .select-pop .select-opt[aria-selected='true'] { background: none; color: var(--ink); font-weight: var(--fw-regular); }
  .front-look .select-pop .select-opt > svg { position: absolute; top: 50%; left: 13px; color: var(--accent); transform: translateY(-50%); }
  .front-look .select-pop .select-search { padding: 0; border-bottom: 0; }
  .front-look .select-pop .select-search .search { height: 44px; padding: 0 var(--sp-4); border: 0; border-radius: 0; background: none; box-shadow: inset 0 -1px 0 0 var(--menu-line); }
}
@media (max-width: 700px) {
  /* (the sheet's top rounded as the calendar's sheet — the grid's «square» rule weighs two classes: :root over it) */
  :root .front-look .select-pop { border-radius: var(--r-xl) var(--r-xl) 0 0; }
  .front-look .select-pop .select-opt[aria-selected='true'] { background: none; color: var(--ink); font-weight: var(--fw-regular); }
  .front-look .select-pop .select-opt.active { background: var(--surface-2); }
}

/* ---------- the calendar (ui/calendar.jsx; 10 November, 00:31) ----------
   The owner, of Safari's own calendar under «Свои даты»: «Вот такой выбор дат выглядит супер-позорно». The iPhone's
   month in the menus' layer: its name (a key to the year's months) and the arrows at the top, the days of the week, the
   dates in circles on a grid of 7 × 6 — the same height every month; today in the accent; a range's ends filled, the
   days between them on a band that rounds off where a week or the month ends. On a phone a sheet from the bottom. */
.cal-pop {
  position: fixed; z-index: 95; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 14px; background: var(--menu); color: var(--ink); box-shadow: var(--shadow-menu);
  -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
  font-family: var(--font-ui); font-size: var(--fs-md); letter-spacing: 0; text-transform: none;
  transform-origin: top left; animation: menu-in 0.14s ease-out;
}
.cal-scrim { display: none; }
.cal-grab { display: none; }
.cal { display: flex; flex-direction: column; padding: var(--sp-2) var(--sp-3) 0; }
.cal-head { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.cal-title {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 var(--sp-2); border: 0; border-radius: var(--r-pill);
  background: none; color: var(--ink); font: inherit; font-size: var(--fs-md); font-weight: var(--fw-semibold); cursor: pointer;
}
.cal-title > svg { color: var(--accent); transition: transform 0.15s; }
.cal-title[aria-expanded='true'] > svg { transform: rotate(90deg); }
.cal-title:hover { background: var(--menu-hover); }
.cal-arrows { display: flex; }
.cal-arrow { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--accent); cursor: pointer; }
.cal-arrow:hover:not(:disabled) { background: var(--menu-hover); }
.cal-arrow:disabled { color: var(--ink-3); opacity: 0.35; cursor: default; }
.cal :is(.cal-title, .cal-arrow, .cal-d, .cal-m):focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cal .cal-d:focus-visible { outline: 0; }
.cal .cal-d:focus-visible .cal-n { box-shadow: 0 0 0 2px var(--accent); }

/* (the columns share the layer's width: as wide as the dates' pill above it, 44 at the most) */
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 44px)); justify-content: space-between; outline: 0; }
.cal-w { display: grid; place-items: center; height: 28px; color: var(--ink-3); font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.cal-x { height: 42px; }
.cal-d {
  position: relative; display: grid; place-items: center; height: 42px; padding: 0; border: 0; background: none;
  color: var(--ink); font: inherit; font-size: var(--fs-md); font-variant-numeric: tabular-nums; cursor: pointer;
}
.cal-n { position: relative; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; }
.cal-d:hover:not(:disabled):not(.lo):not(.hi) .cal-n { background: var(--menu-hover); }
.cal-d.today .cal-n { color: var(--accent); font-weight: var(--fw-semibold); }
.cal-d:is(.lo, .hi) .cal-n { background: var(--accent); color: var(--accent-ink); font-weight: var(--fw-semibold); }
.cal-d:disabled { color: var(--ink-3); opacity: 0.4; cursor: default; }
/* the band: under the days between the ends, from the middle of an end to the middle of the other; it rounds off at a
   week's or the month's edge */
.cal-d.band::before { content: ''; position: absolute; top: 2px; right: 0; bottom: 2px; left: 0; background: var(--accent-soft); }
.cal-d.band.lo::before { left: 50%; }
.cal-d.band.hi::before { right: 50%; }
.cal-d.band:not(.lo):is(.rs, .ms)::before { left: 3px; border-radius: 19px 0 0 19px; }
.cal-d.band:not(.hi):is(.re, .me)::before { right: 3px; border-radius: 0 19px 19px 0; }

/* the year's months: a grid of 3 × 4 as high as the month's, the month on show filled */
.cal-months { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(4, 1fr); height: 280px; padding: var(--sp-1) 0; }
.cal-m {
  display: grid; place-items: center; margin: 6px; padding: 0; border: 0; border-radius: var(--r-pill); background: none;
  color: var(--ink); font: inherit; font-size: var(--fs-md); cursor: pointer;
}
.cal-m:hover:not(:disabled):not(.on) { background: var(--menu-hover); }
.cal-m.now { color: var(--accent); font-weight: var(--fw-semibold); }
.cal-m.on { background: var(--accent); color: var(--accent-ink); font-weight: var(--fw-semibold); }
.cal-m:disabled { color: var(--ink-3); opacity: 0.4; cursor: default; }

.cal-note { min-height: 44px; margin: 0; padding: var(--sp-3) var(--sp-4); color: var(--ink-2); font-size: var(--fs-sm); box-shadow: inset 0 1px 0 0 var(--menu-line); }

@media (max-width: 700px) {
  .cal-scrim { display: block; position: fixed; inset: 0; z-index: 94; background: var(--scrim); animation: fade-in 0.16s ease-out; }
  .cal-pop {
    top: auto; right: 0; bottom: 0; left: 0; width: auto; border-radius: var(--r-xl) var(--r-xl) 0 0; background: var(--surface);
    box-shadow: 0 -8px 30px rgb(0 0 0 / 0.18); padding-bottom: env(safe-area-inset-bottom); animation: rise 0.18s ease-out;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .cal-grab { display: block; width: 36px; height: 5px; margin: 8px auto 0; border-radius: 3px; background: var(--line-2); }
  .cal { padding: 0 var(--sp-4); }
  .cal-grid { grid-template-columns: repeat(7, 1fr); }
  .cal-d, .cal-x { height: 46px; }
  .cal-n { width: 42px; height: 42px; }
  .cal-d.band:not(.lo):is(.rs, .ms)::before { left: 2px; border-radius: 21px 0 0 21px; }
  .cal-d.band:not(.hi):is(.re, .me)::before { right: 2px; border-radius: 0 21px 21px 0; }
  .cal-months { height: 304px; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .front-look .select-pop, .cal-pop, .cal-scrim { animation: none; }
}

/* a date field (DateField): a list's field that opens the calendar — its icon stays as it is when open */
.date-field.open .select-chevron { color: var(--accent); transform: none; }
.date-field:disabled { background: var(--surface-2); color: var(--ink-3); cursor: default; }

/* ---------- the person's card under the avatar (10 November, 01:08) ----------
   The owner, of its square language keys and the framed «Это устройство»: «Этот блок надо собрать аккуратнее — много
   острых углов». The menus' layer: the name and the e-mail at the top; the language a segmented control of the iPhone
   (a rounded track, the chosen part raised on it); the keys rows across the card with a hair between them — nothing
   square inside a rounded card. (:root — over the grid's «square» rule, 92-office-grid.css) */
:root .of-me-pop {
  gap: 0; min-width: 264px; padding: 0; overflow: hidden; border: 0; border-radius: 14px; background: var(--menu); box-shadow: var(--shadow-menu);
  -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); transform-origin: top left; animation: menu-in 0.14s ease-out;
}
:root .of-me-pop .of-me-who { padding: var(--sp-4) var(--sp-4) var(--sp-3); }
:root .of-me-pop .lang { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 0 var(--sp-4) var(--sp-4); padding: 2px; border: 0; border-radius: 9px; background: var(--seg-track); }
:root .of-me-pop .lang-btn {
  min-width: 0; height: 32px; min-height: 32px; padding: 0; border: 0; border-radius: 7px; background: none; box-shadow: none;
  color: var(--ink); font-size: var(--fs-sm); font-weight: var(--fw-medium);
}
:root .of-me-pop .lang-btn.on { background: var(--seg-on); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / 0.14), 0 0 0 0.5px rgb(0 0 0 / 0.05); }
:root .of-me-pop .of-me-keys { gap: 0; box-shadow: inset 0 1px 0 0 var(--menu-line); }
:root .of-me-pop .of-me-keys .btn {
  justify-content: flex-start; gap: var(--sp-3); width: 100%; height: 48px; min-height: 48px; padding: 0 var(--sp-4); border: 0; border-radius: 0;
  background: none; box-shadow: none; color: var(--ink); font-size: var(--fs-sm); font-weight: var(--fw-regular);
}
:root .of-me-pop .of-me-keys .btn + .btn { box-shadow: inset 0 1px 0 0 var(--menu-line); }
:root .of-me-pop .of-me-keys .btn:hover { background: var(--menu-hover); }
:root .of-me-pop .of-me-keys .btn svg { color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { :root .of-me-pop { animation: none; } }

/* «Топ блюд» → «Показать все» (01:25, the owner, of the first list: «сейчас каша»): a table in the sheet — the place
   muted in its own narrow column before the name, the portions, the share and the money in columns of their own at the
   right; one line a dish, the name cut with «…» rather than wrapped; from edge to edge; on a phone the rows of «Чеки» */
.td-table { table-layout: fixed; width: 100%; }
.td-table th.td-q { width: 88px; }
.td-table th.td-p { width: 76px; }
.td-table th.td-s { width: 128px; }
.td-table .td-dish { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.td-rank { display: inline-block; min-width: 32px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.front-look .sheet-body:has(> .td-table) { padding-block: 0; }
:root .front-look .sheet-body > .td-table { margin-block: 0; }
/* (01:32, the owner: «Не помещается» — a long name, «Spicy Blinders (spicy salmon gnk, spicy tuna gnk, …)», pushed the
   portions, the share and the money out of the sheet: the sheets' «width: auto» for their tables left the fixed layout
   without a width) the table exactly as wide as the sheet; the name's column takes what the others leave */
@media (min-width: 701px) {
  :root .front-look .sheet-body > .tbl-data.td-table { width: calc(100% + 2 * var(--sx, 20px)); max-width: none; table-layout: fixed; }
  :root .front-look .td-table td.td-dish { max-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
}
@media (max-width: 700px) {
  .td-table { table-layout: auto; }
  /* (02:04, the owner, of these rows on his iPhone: «Тут все съехало. Хочется использовать всю ширину экрана и сделать
     аккуратно») a row of the waiter's iPhone across the whole screen: the place in a column of 28, the name beside it and
     the portions and the share under the name, on one edge; the money at the right, 16 from the edge — the sheets' own
     padding of a table's first and last cells not added */
  :root .front-look .tbl-data.list-rows.td-table tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'name sum' 'sub sum'; column-gap: var(--sp-3); align-items: center;
    min-height: 60px; padding: 10px var(--sp-4);
  }
  :root .front-look .tbl-data.list-rows.td-table td { padding: 0; }
  :root .front-look .tbl-data.list-rows.td-table td.td-dish { grid-area: name; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  :root .front-look .tbl-data.list-rows.td-table td.xs-line { grid-area: sub; padding-left: 28px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  :root .front-look .tbl-data.list-rows.td-table td.num:last-child { grid-area: sum; position: static; justify-self: end; transform: none; }
  :root .front-look .tbl-data.list-rows.td-table .td-rank { min-width: 28px; width: 28px; }
  /* (the portions and the share under the name, not under the place) */

}

/* ---------- the phone's top (10 November: 02:03, 02:17; the header «А» 02:35, the menu «А» 02:43) ----------
   The owner, 02:03: «верхнюю строчку сделаем так — лого руво, кнопка темы, кнопка профиля, название ресторана»; 02:17:
   «Первую строку делаем выше, меню убираем в бургер справа сверху. Туда же убираем профиль и тему»; 02:30: «Сверху
   все-равно каша (до блоков)» — of three proposals, 02:35: «Вариант А, но выбор дат с закруглением, как у пилюли».
   The top row, 64 high, stands still: RUVO at the left, ☰ at the right, nothing between. The page's header under it is
   one block with it — the shade runs on from the row into the header, the only line is under the header: the title
   large, the restaurant under it (its list from the bottom), then the dates — the iPhone's segmented control rounded as
   a pill (93-summary.css). ☰ opens the whole screen — 02:43, «Давай А»: the same row with × in its place; the person
   (the avatar, the name, what the card under it holds) and the theme's key; the sections as the waiter's tables, three
   to a row, each its icon over its name; the chosen section's pages listed under the tiles, the page on screen ticked.
   (11 November) «Деньги» (.mn-app) the same: ☰, their sections as tiles, the firm under the page's title. */
.of-burger, .of-me-name, .of-me-chev, .of-head-scope { display: none; }
@media (max-width: 700px) {
  :root .front-look {
    --head-a: color-mix(in oklab, var(--bg), var(--accent) 4%);
    --head-b: color-mix(in oklab, var(--bg), var(--surface) 35%);
    --head-m: color-mix(in oklab, var(--head-a), var(--head-b));
  }
  :root .front-look .of-side {
    display: grid; grid-template-columns: auto minmax(0, 1fr) 64px; grid-template-rows: 64px; grid-template-areas: 'logo . burger';
    gap: 0; padding: 0; overflow: visible; border-bottom: 0; scroll-snap-type: none; -webkit-mask-image: none; mask-image: none;
    background: linear-gradient(180deg, var(--head-a), var(--head-m)); box-shadow: none;
  }
  /* (15 November, 03:13, the owner on the back office's iPhone picture: «В скриншоте не должно быть белой полосы сверху») the
     header's shade runs on under the clock and the battery, as the waiter's iPhone's does — not the page's white strip
     over it: the app's top padding given to the bar of the logo and ☰ */
  :root .app.front-look { padding-top: 0; }
  :root .front-look .of-side { padding-top: env(safe-area-inset-top, 0px); }
  :root .front-look .of-side > .of-brand { display: contents; }
  :root .front-look .of-side > .of-brand > .wordmark { grid-area: logo; display: inline-flex; align-self: center; margin: 0 var(--sp-3) 0 var(--sp-4); }
  :root .front-look .of-side > .of-brand > :is(.of-theme, .of-me), :root .front-look .of-side > .of-scope { display: none; }
  :root .front-look .of-side > .of-burger {
    grid-area: burger; display: grid; place-items: center; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 0; background: none; color: var(--ink); cursor: pointer;
  }
  :root .front-look .of-side > .of-burger:active { background: rgb(118 118 128 / 0.16); }
  :root .front-look .of-side > :is(.of-nav, .of-side-foot) { display: none; }
  :root .front-look .of-subbar { display: none; }
  :root .front-look .of-head :is(#sum-loc, #chk-loc, #vd-loc) { display: none; }

  /* the page's header: the row's shade run on; the title 28 bold, the restaurant under it; one line under it all */
  :root .front-look :is(.of-head, .rv-top) { background: linear-gradient(180deg, var(--head-m), var(--head-b)); }
  :root .front-look .of-head { row-gap: var(--sp-3); min-height: 0; padding: var(--sp-1) var(--px) var(--sp-4); }
  :root .front-look .of-head:has(> .of-actions) { padding-bottom: 0; }
  /* (the visual audit, 11 November) the header's keys draw the line under the header themselves — the last row's bottom
     lines: the header's own line under them had doubled it (a picker, «Изменить», «+ Добавить заведение» under the title) */
  :root .front-look .of-head:has(> .of-actions > :is(.btn, .select, .icon-btn):last-child) { box-shadow: none; }
  :root .front-look .of-head-text { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; width: 100%; min-height: 0; }
  :root .front-look .of-head-text > .of-back { grid-area: 1 / 1; }
  /* (the iPhone's large title, as in the proposal the owner chose: the one size over the front's 22) */
  :root .front-look .of-head h1 { grid-column: 2; font-size: 28px; font-weight: 700; line-height: 34px; }
  :root .front-look .of-head-scope { display: flex; grid-column: 2; min-width: 0; }
  :root .front-look .of-head-scope > :is(.select, .of-scope-one) {
    position: relative; display: inline-flex; align-items: center; gap: 2px; width: auto; max-width: 100%; height: 26px; min-height: 26px; margin: 0;
    padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--ink-2); font-size: var(--fs-md); font-weight: var(--fw-regular);
  }
  :root .front-look .of-head-scope > .select::before { content: ''; position: absolute; inset: -9px -8px; }
  :root .front-look .of-head-scope > .select .select-value { flex: 0 1 auto; }
  :root .front-look .of-head-scope > :is(.select, .of-scope-one) > svg:not(.select-chevron) { display: none; }
  :root .front-look .of-head-scope > .select .select-chevron { color: var(--accent); }
  :root .front-look .of-head-scope > .of-scope-one > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  /* the dates under them: no line over them, the line under the header below them */
  :root .front-look .of-head > .of-actions:has(> .period) { display: block; padding-bottom: var(--sp-4); box-shadow: none; }
  :root .front-look .of-head > .of-actions:has(> .period)::before { content: none; }

  /* ☰ open: the whole screen */
  :root .front-look .of-side.open {
    position: fixed; inset: 0; z-index: 60; grid-template-rows: 64px 72px auto 1fr; grid-template-areas: 'logo . burger' 'me me theme' 'nav nav nav' 'foot foot foot';
    align-content: start; overflow-y: auto; overscroll-behavior: contain; background: var(--surface); padding-bottom: env(safe-area-inset-bottom);
  }
  /* (the top row's shade runs on under the person's; the tiles' own lines under them) */
  :root .front-look .of-side.open::before { content: ''; grid-area: 1 / 1 / 3 / -1; align-self: stretch; justify-self: stretch; background: linear-gradient(180deg, var(--head-a), var(--head-b)); }
  :root .front-look .of-side.open > .of-brand > .wordmark, :root .front-look .of-side.open > .of-burger { position: relative; z-index: 1; }
  :root .front-look .of-side.open > .of-brand > .of-me {
    grid-area: me; position: relative; z-index: 1; display: flex; align-items: center; justify-content: flex-start; gap: var(--sp-3); width: auto; height: 72px;
    margin: 0; padding: 0 var(--sp-2) 0 var(--sp-4); border-radius: 0; background: none; color: var(--ink); text-align: left;
  }
  :root .front-look .of-side.open > .of-brand > .of-me .of-me-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  :root .front-look .of-side.open > .of-brand > .of-me .of-me-name > b { overflow: hidden; font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 20px; white-space: nowrap; text-overflow: ellipsis; }
  :root .front-look .of-side.open > .of-brand > .of-me .of-me-name > small { overflow: hidden; color: var(--ink-3); font-size: var(--fs-sm); line-height: 18px; white-space: nowrap; text-overflow: ellipsis; }
  :root .front-look .of-side.open > .of-brand > .of-me .of-me-chev { display: block; flex: none; color: var(--ink-3); }
  :root .front-look .of-side.open > .of-brand > .of-theme { grid-area: theme; position: relative; z-index: 1; display: inline-flex; place-self: center; margin: 0; }
  :root .front-look .of-side.open > .of-tiles-nav { grid-area: nav; display: block; overflow: visible; -webkit-mask-image: none; mask-image: none; box-shadow: none; }
  /* the sections: the waiter's tables (.pt-grid, .ptable); a page of its own filled while it is on screen and no section
     is listed, a listed section filled, the section of the page on screen with its icon in the accent */
  :root .front-look .of-side.open .of-tiles > .of-tile {
    position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 0; min-width: 0; height: 88px; min-height: 88px;
    padding: var(--sp-3) var(--sp-4); border: 0; border-radius: 0; background: var(--surface); color: var(--ink);
    font-size: 13px; font-weight: var(--fw-regular); line-height: 18px; text-align: left; white-space: normal; text-wrap: balance;
    box-shadow: inset 1px 0 0 0 var(--line-2), inset 0 1px 0 0 var(--line-2), var(--rim, 0 0 #0000);
  }
  :root .front-look .of-side.open .of-tiles > .of-tile[data-rf] { box-shadow: inset 0 1px 0 0 var(--line-2), var(--rim, 0 0 #0000); }
  :root .front-look .of-side.open .of-tiles > .of-tile > svg { display: block; flex: none; color: var(--ink-2); }
  /* (13: «Номенклатура», the longest name, on one line in a third of a 375 screen; a word is never broken) */
  :root .front-look .of-side.open .of-tiles > .of-tile > .of-tile-t { overflow-wrap: normal; }
  :root .front-look .of-side.open .of-tiles > .of-tile:active { background: var(--surface-3); }
  :root .front-look .of-side.open .of-tiles > .of-tile.on { background: var(--accent-soft); color: var(--accent); }
  :root .front-look .of-side.open .of-tiles > .of-tile:is(.on, .here) > svg { color: var(--accent); }
  :root .front-look .of-side.open .of-tiles > .of-tile[data-badge]::after { position: absolute; top: var(--sp-3); right: var(--sp-3); margin: 0; }
  /* (the tiles' last row closed by a line under it, as the summary's) */
  .of-tiles > [data-rz]:not([data-rl]) { --rim: 0 1px 0 0 var(--line-2); }
  /* the chosen section's pages: its name in the screen's grey, then a row a page, the one on screen ticked */
  :root .front-look .of-side.open .of-pages { display: flex; flex-direction: column; }
  :root .front-look .of-side.open .of-pages > .pt-cap { box-shadow: inset 0 1px 0 0 var(--line-2), inset 0 -1px 0 0 var(--line-2); }
  :root .front-look .of-side.open .of-pages > .of-sub-btn {
    display: flex; align-items: center; gap: var(--sp-3); width: 100%; min-height: 52px; padding: 0 var(--sp-4); border: 0; border-radius: 0;
    background: var(--surface); color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-regular); text-align: left; white-space: normal;
    box-shadow: inset 0 -1px 0 0 var(--line-2);
  }
  :root .front-look .of-side.open .of-pages > .of-sub-btn > .of-sub-t { flex: 1; min-width: 0; }
  :root .front-look .of-side.open .of-pages > .of-sub-btn.on { background: var(--surface); color: var(--accent); }
  :root .front-look .of-side.open .of-pages > .of-sub-btn > svg { flex: none; color: var(--accent); }
  :root .front-look .of-side.open .of-pages > .of-sub-btn:active { background: var(--surface-3); }
  :root .front-look .of-side.open > .of-side-foot { grid-area: foot; display: flex; }
  /* (13 November, 12:51, the owner on his iPhone: «При активном пункте меню линии сетки не должны пропадать») the chosen
     tile — and the chosen page's row — keep the grid's lines under their blue mark (the colours' «A», 99-zzcolor.css,
     gave them the mark alone); the first tile of a row has no line at its left, the last row its line under it */
  :root .front-look .of-side.open .of-tiles > .of-tile.of-nav-btn.on,
  :root .front-look .of-side.open .of-tiles > .of-tile.of-nav-btn.on:hover {
    box-shadow: inset 3px 0 0 0 var(--accent), inset 1px 0 0 0 var(--line-2), inset 0 1px 0 0 var(--line-2), var(--rim, 0 0 #0000);
  }
  :root .front-look .of-side.open .of-tiles > .of-tile.of-nav-btn.on[data-rf],
  :root .front-look .of-side.open .of-tiles > .of-tile.of-nav-btn.on[data-rf]:hover {
    box-shadow: inset 3px 0 0 0 var(--accent), inset 0 1px 0 0 var(--line-2), var(--rim, 0 0 #0000);
  }
  :root .front-look .of-side.open .of-pages > .of-sub-btn.of-sub-btn.on,
  :root .front-look .of-side.open .of-pages > .of-sub-btn.of-sub-btn.on:hover { box-shadow: inset 3px 0 0 0 var(--accent), inset 0 -1px 0 0 var(--line-2); }
  /* (the same look, IMG_3784: in RUVO's app the open menu's top row stood under the clock and the battery) the menu
     starts below the iPhone's status bar; the head's shade goes on up under it */
  :root .front-look .of-side.open { padding-top: env(safe-area-inset-top, 0px); }
  :root .front-look .of-side.open::before { margin-top: calc(-1 * env(safe-area-inset-top, 0px)); }
}

/* (02:17, the owner: «добавляем нижнюю горизонтальную линию и нижних блоков») the phone's tiles: the last row closed by
   a line under it, as the rows above */
.st-grid > [data-rz] { --rim: 0 1px 0 0 var(--line-2); }

/* ---------- the pages in «Сводка»'s look (10 November, 03:31) ----------
   The owner: «Теперь все разделы меню надо переделать под этот стиль» — on the phone and on the computer (ui/blocks.jsx).
   A page: its header, then blocks from edge to edge on the brand grid, a line between them, none inside them.
   The figures (.pg-nums): on a computer a strip across the page — a block each, its name in a head's letters (16
   semibold, the ink — as «Выручка, RSD»), the figure under it in the numbers' letters, a grey line under that; on a phone
   the waiter's tables three to a row, as «Сводка»'s tiles — the figure at the top, its line, its name at the bottom.
   A list (.pg-block): its head a row of «Сводка»'s heads — the name, what it counts at the right, its keys —, the rows
   under it. */
/* (03:45, the owner: «Помни, что у нас сетка из 5 блоков по ширине в десктопе, которые могут стыковаться между собой»)
   the brand's five columns, a block one of them or several joined */
.pg-nums { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pg-nums > .pg-num { grid-column: span var(--span, 1); }
.pg-nums > [data-rz]:not([data-rl]) { --rim: 0 1px 0 0 var(--line-2); }
.pg-num.ptable { height: auto; min-height: 0; justify-content: flex-start; gap: 0; padding: var(--sp-4) var(--px); cursor: default; }
.pg-num.ptable.pg-key { cursor: pointer; }
.pg-num.ptable:not(.pg-key):active { background: var(--surface); }
.pg-num-l { max-width: 100%; overflow: hidden; color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; white-space: nowrap; text-overflow: ellipsis; }
.pg-num-v { max-width: 100%; margin-top: var(--sp-2); overflow: hidden; font-size: 28px; line-height: 34px; white-space: nowrap; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.pg-num-s { max-width: 100%; margin-top: 2px; overflow: hidden; color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; white-space: nowrap; text-overflow: ellipsis; }
/* (10 November, 14:37, the owner: «У нас в десктопе 5 блоков в ширину, квадратных, в мобильной 3; они могут занимать
   половину по высоте (если являются элементом управления)») a figure is a square of the module — one column, or as many
   joined as it spans; on a computer its small picture at the bottom: the period's hours or days as columns (the highest
   in full colour), or the parts of a whole as one bar */
.pg-nums > .pg-num.ptable { aspect-ratio: var(--span, 1) / 1; min-height: 0; overflow: hidden; }
/* (11 November, 14:18, the owner on «Блюда»: «я бы здесь бы, наверное, взял бы половину от стандартного квадрата. Очень
   много получается пустого места»; «Ингредиенты»: «Вот эти вот квадраты я бы сделал бы половинами»; «Полуфабрикаты»:
   «Половину верхних квадратов. Половина по высоте») a computer's row of figures with no picture and no controls in it is
   half a square high — its words decide when they need more (clipped, not hidden: the box grows to what is in it), and
   the row keeps one height */
@media (min-width: 701px) {
  .pg-nums:not(:has(.pg-pic, .pg-ctl)) > .pg-num.ptable { width: 100%; aspect-ratio: calc(var(--span, 1) * 2) / 1; min-height: auto; padding-block: var(--sp-3); overflow: clip; align-self: stretch; }
  .pg-nums:not(:has(.pg-pic, .pg-ctl)) > .pg-num.ptable > .pg-num-v { margin-top: var(--sp-1); }
}
.pg-pic { display: flex; flex: 1 1 auto; align-items: flex-end; width: 100%; min-height: 0; margin-top: var(--sp-3); }
.pg-mini { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 2px; width: 100%; height: 100%; max-height: 72px; }
.pg-mini b { position: relative; display: block; min-width: 0; }
.pg-mini i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 2px 2px 0 0; background: color-mix(in oklab, var(--s1) 50%, var(--surface)); }
.pg-mini i.on { background: var(--s1); }
.pg-mini.two::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line-2); }
.pg-mini.two i { bottom: 50%; }
.pg-mini.two i.neg { top: 50%; bottom: auto; border-radius: 0 0 2px 2px; background: var(--bad); }
.pg-mini.signed i:not(.neg) { background: var(--warn); }
/* (11 November, 01:03, the owner on «Отмены»: «Не понятно, что за графики») the axis: a line under the columns — a day
   with nothing on it is the line itself —, the first column's name at its left end, the last one's at its right; a
   column pointed at says its name and its figure */
.pg-mini-w { display: flex; flex-direction: column; justify-content: flex-end; width: 100%; height: 100%; min-height: 0; max-height: 96px; }
.pg-mini-w > .pg-mini { flex: 1 1 auto; min-height: 0; }
.pg-mini.axis:not(.two) { box-shadow: 0 1px 0 0 var(--line-2); }
.pg-mini.axis b[title] { cursor: default; }
.pg-mini.axis b[title]:hover i { filter: brightness(1.15); }
.pg-axis { display: flex; flex: none; justify-content: space-between; gap: var(--sp-2); margin-top: 6px; overflow: hidden; color: var(--ink-3); font-size: var(--fs-xs); line-height: 16px; white-space: nowrap; }
/* a figure that is a key, pressed (the stores' «Ниже минимума»): on the second surface, the accent's line under it */
.pg-num.ptable.pg-key.on { background: var(--surface-2); box-shadow: inset 1px 0 0 0 var(--zl, var(--line-2)), inset 0 1px 0 0 var(--line-2), inset 0 -3px 0 0 var(--accent), var(--rim, 0 0 #0000); }
/* (the visual audit, 11 November: «Все блюда» pressed at a row's start — its line had doubled the side menu's) */
.pg-nums > .pg-num.ptable.pg-key.on[data-rf] { box-shadow: inset 0 1px 0 0 var(--line-2), inset 0 -3px 0 0 var(--accent), var(--rim, 0 0 #0000); }
.pg-num.ptable.pg-key:hover { background: var(--surface-2); }
.pg-split { display: flex; gap: 2px; width: 100%; height: 10px; }
.pg-split i { display: block; min-width: 2px; border-radius: 3px; background: var(--s1); }
.pg-split i.s2 { background: var(--s2); }
.pg-split i.s3 { background: var(--s3); }
.pg-rows { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.pg-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; align-items: baseline; color: var(--ink-2); font-size: var(--fs-sm); line-height: 18px; }
.pg-row-n { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pg-row b { color: var(--ink); font-family: var(--font-timer); font-weight: var(--fw-semibold); letter-spacing: -0.03em; word-spacing: -0.3em; }
.pg-row i { grid-column: 1 / -1; height: 4px; margin-top: 4px; border-radius: 2px; background: linear-gradient(to right, var(--s1) calc(var(--w) * 100%), var(--surface-3) 0); }
.pg-rows.warn .pg-row i { background: linear-gradient(to right, var(--warn) calc(var(--w) * 100%), var(--surface-3) 0); }
.pg-split i.s0 { background: var(--surface-3); }
.pg-num.pg-warn { background: var(--warn-soft); }
.pg-num.pg-low .pg-num-v { color: var(--warn); }
.pg-num.pg-bad .pg-num-v { color: var(--bad); }
.pg-num.pg-ok .pg-num-v { color: var(--ok); }

.pg-block { display: flex; flex-direction: column; min-width: 0; background: var(--surface); }
/* (12 November, 01:58, the owner: «Частая проблема — вторые горизонтальные линии расходятся. Почти во всех окнах») a head's
   row is a cell of the grid's height — the sidebar's restaurant row's (48 on a computer): the line under the page's first
   row goes on from the sidebar's */
.pg-head { display: flex; align-items: center; gap: var(--sp-3); min-height: var(--cell-h, 56px); padding: 0 var(--sp-2) 0 var(--px); box-shadow: inset 0 1px 0 0 var(--line-2); }
.pg-head h2 { flex: 0 1 auto; min-width: 0; margin: 0; overflow: hidden; color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; white-space: nowrap; text-overflow: ellipsis; }
.pg-count { flex: none; margin-left: auto; padding-right: var(--sp-2); color: var(--ink-2); font-size: var(--fs-sm); white-space: nowrap; }
.pg-count b { color: var(--ink); font-family: var(--font-timer); font-weight: var(--fw-semibold); letter-spacing: -0.03em; }
.pg-acts { display: flex; flex: none; align-items: center; gap: var(--sp-2); }
.pg-count + .pg-acts { margin-left: 0; }
.pg-head > h2 + .pg-acts { margin-left: auto; }
/* (a list's table under its head: no card's frame, its rows from edge to edge) */
.front-look .pg-block > :is(.table-wrap, .tbl-data) { margin: 0; border: 0; border-radius: 0; }
/* (19:32, the owner on «Кассовые смены» with one shift: «Нет горизонтальной линии») a list is a closed block: its last
   row keeps the line under it (a card's table drops it — the card's frame closes it; a list has no frame). A phone's
   rows draw their own lines */
@media (min-width: 701px) {
  .front-look .pg-block .tbl-data > tbody > tr:last-child > td { border-bottom: 1px solid var(--zl); }
}
/* (the visual audit, 11 November) …and the block under such a list draws no line over its head: two had touched — the
   last promotion's line and «Скидки официанта»' (a table with a foot of totals ends without a line: its next block's
   head keeps its own) */
.front-look .pg-block:has(> .table-wrap:last-child > .tbl-data > tbody:last-child) + .pg-block > .pg-head:first-child,
.front-look .pg-block:has(> .tbl-data:last-child > tbody:last-child) + .pg-block > .pg-head:first-child { box-shadow: none; }
.front-look .pg-block:has(> .table-wrap:last-child > .tbl-data > tbody:last-child) + .pg-block > .pg-head:first-child > .pg-hkey:not(.acc),
.front-look .pg-block:has(> .tbl-data:last-child > tbody:last-child) + .pg-block > .pg-head:first-child > .pg-hkey:not(.acc) { box-shadow: inset 1px 0 0 0 var(--zl); }

@media (max-width: 700px) {
  .pg-nums { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pg-nums > .pg-num { grid-column: auto; }
  .pg-num.ptable { min-height: 0; justify-content: space-between; padding: var(--sp-3) var(--sp-4); }
  .pg-nums > .pg-num.ptable { aspect-ratio: 1; }
  .pg-nums > .pg-num.ptable:nth-child(3n + 1):last-child { aspect-ratio: 3 / 1; }
  .pg-nums > .pg-num.ptable:nth-child(3n + 2):last-child { aspect-ratio: 2 / 1; }
  .pg-pic, .pg-by { display: none; }
  /* (a square has room: a name or a line on two lines, not cut) */
  .pg-nums > .pg-num.ptable :is(.pg-num-l, .pg-num-s:not(.pg-by)) { display: -webkit-box; flex: none; white-space: normal; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .pg-num-v { order: -1; margin: 0 0 auto; font-size: 20px; line-height: 28px; }
  .pg-num-s { order: 0; margin: 0; line-height: 18px; }
  .pg-num-l { order: 1; color: var(--ink-2); font-size: var(--fs-sm); font-weight: var(--fw-regular); line-height: 18px; }
  /* (11 November, 04:20, the owner: «Да» — a row's squares their lines on one height: the figure at the top, one line of
     what it means, the name at the bottom on up to two lines, its first line on the same height in every square) */
  :root .pg-nums > .pg-num.ptable .pg-num-s:not(.pg-by) { display: block; flex: none; height: 18px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  :root .pg-nums > .pg-num.ptable .pg-num-l { height: 36px; }
  .pg-head { min-height: 52px; padding-right: var(--sp-2); }
}

/* The pages' own rows of figures (.kpi-row: «Прогноз», «Склады», «Гости», «Оценки гостей», «Купоны», the site's, …) in
   the same look: on a computer each its name in a head's letters over its figure; on a phone the waiter's tables, three
   to a row — the figure on top, its line, its name at the bottom (no tile of its own on a short row: EvenGrid) */
/* (03:45) on a computer the brand's five columns: one figure across them, two 3 + 2, three 2 + 2 + 1, four 2 + 1 + 1 + 1,
   five one each; more — rows of five */
@media (min-width: 701px) {
  :root .front-look .of-page > .kpi-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  :root .front-look .of-page > .kpi-row:has(> :last-child:nth-child(1)) > :nth-child(1) { grid-column: span 5; }
  :root .front-look .of-page > .kpi-row:has(> :last-child:nth-child(2)) > :nth-child(1) { grid-column: span 3; }
  :root .front-look .of-page > .kpi-row:has(> :last-child:nth-child(2)) > :nth-child(2) { grid-column: span 2; }
  :root .front-look .of-page > .kpi-row:has(> :last-child:nth-child(3)) > :nth-child(-n+2) { grid-column: span 2; }
  :root .front-look .of-page > .kpi-row:has(> :last-child:nth-child(4)) > :nth-child(1) { grid-column: span 2; }
}
.front-look .of-page > .kpi-row > .tile .tile-l { color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; }
.front-look .of-page > .kpi-row > .tile .tile-v { font-size: 28px; line-height: 34px; }
.front-look .of-page > .kpi-row > .tile :is(.tile-sub, .tile-d) { color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; }
@media (max-width: 700px) {
  :root .front-look .of-page > .kpi-row { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; }
  :root .front-look .of-page > .kpi-row > .tile { display: flex; flex-direction: column; grid-row: auto; min-height: 112px; padding: var(--sp-3) var(--sp-4); row-gap: 0; }
  :root .front-look .of-page > .kpi-row > .tile .tile-v { order: -1; margin-bottom: auto; font-size: 20px; line-height: 28px; }
  :root .front-look .of-page > .kpi-row > .tile :is(.tile-sub, .tile-d) { display: -webkit-box; overflow: hidden; line-height: 18px; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
  :root .front-look .of-page > .kpi-row > .tile .tile-l { order: 9; color: var(--ink-2); font-size: var(--fs-sm); font-weight: var(--fw-regular); line-height: 18px; }
}

/* «Отчёты» (03:45, the owner: «В отчетах нам нужны такие же блоки, без разделений») one grid, no topics' bands between
   them: on a computer the brand's five to a row, a tablet three */
@media (min-width: 701px) { :root .front-look .reports > .rg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1180px) { :root .front-look .reports > .rg-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
/* (11:48, the owner: «Блоки должны быть ровно в сетке — 5 частей на всю ширину, высота равна ширине») a card a square;
   (12:51: «в выборе отчетов … больше информации можно поместить туда») as «Сводка»'s figures: the name at the top (two
   lines kept for it), the figure and its change under it, then the report's rows — its leader or peak, the next places,
   the lowest and the average, the ten reports' own figures — as many as the square holds: a row that does not fit wraps
   out of sight, none is cut in half. Every card in a row has each thing at the same height. */
@media (min-width: 701px) {
  :root .front-look .reports > .rg-grid > .rcard { aspect-ratio: 1 / 1; }
  :root .front-look .rg-grid > .rcard > .rcard-btn { overflow: hidden; }
  :root .front-look .rcard-btn > .rcard-title { display: -webkit-box; flex: none; height: 44px; line-height: 22px; white-space: normal; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  :root .front-look .rcard-btn > .rcard-fig { height: 34px; margin-top: var(--sp-2); }
  :root .front-look .rcard-btn .rcard-v { font-size: 28px; line-height: 34px; }
  :root .front-look .rcard-btn > .rcard-list {
    display: flex; flex: 1 1 0; flex-flow: column wrap; align-content: flex-start; row-gap: 4px; min-height: 0; margin-top: var(--sp-3); overflow: hidden;
  }
  :root .front-look .rcard-list > :is(.rcard-lead, .rcard-more) { display: flex; flex: none; gap: 6px; width: 100%; height: 20px; margin: 0; overflow: hidden; font-size: var(--fs-sm); line-height: 20px; white-space: nowrap; }
  :root .front-look .rcard-list > .rcard-lead:empty { display: none; }
  :root .front-look .rcard-more .rcard-mk { flex: 0 1 auto; min-width: 0; overflow: hidden; color: var(--ink-3); text-overflow: ellipsis; }
:root .front-look .rcard-list .rcard-lv { flex: none; }
  :root .front-look .rcard-more > .rcard-ln:first-child { color: var(--ink-2); }
  :root .front-look .rcard-list > .rcard-hint { flex: none; width: 100%; color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; white-space: normal; }
}
/* «Отчёты» on a phone (03:31): no strip going sideways — the reports tiles as «Сводка»'s, the figure and its unit on
   top, the change under it, the report's name at the bottom (its leader is in the report). (11:50, the owner: «Здесь
   чуть каша из текста») three to a row, squares as the computer's, and no more words than these three: the period and
   «Нет продаж за период» are the report's to say — a tile without a figure has its dash */
@media (max-width: 700px) {
  :root .front-look .rg-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row; grid-auto-columns: auto; margin: 0 0 0 -1px; padding: 0;
    overflow: visible; scroll-snap-type: none;
  }
  :root .front-look .reports > .rg-grid > .rcard { aspect-ratio: 1 / 1; }
  :root .front-look .rg-grid > .rcard > .rcard-btn { min-height: 0; overflow: hidden; padding: var(--sp-3); }
  /* (11 November: «три в ширину — два, только если совмещаем два») the last row's cards on to its end */
  :root .front-look .reports > .rg-grid > .rcard:last-child:nth-child(3n + 2) { grid-column: span 2; aspect-ratio: 2 / 1; }
  :root .front-look .reports > .rg-grid > .rcard:last-child:nth-child(3n + 1) { grid-column: span 3; aspect-ratio: 3 / 1; }
  :root .front-look .rcard-btn .rcard-vs { display: none; }
  :root .front-look .rcard-btn > .rcard-fig { order: -1; flex-wrap: wrap; gap: 0 4px; height: auto; margin: 0; }
  :root .front-look .rcard-btn .rcard-v { font-size: 20px; line-height: 28px; }
  :root .front-look .rcard-btn .rcard-u { line-height: 18px; white-space: nowrap; }
  :root .front-look .rcard-btn > .rcard-d { height: auto; margin: 2px 0 auto; white-space: normal; line-height: 18px; }
  :root .front-look .rcard-btn > .rcard-title { order: 9; display: -webkit-box; height: auto; margin-top: var(--sp-1); color: var(--ink); font-size: var(--fs-sm); font-weight: var(--fw-regular); line-height: 18px; white-space: normal; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  :root .front-look .rcard-btn > :is(.rcard-lead, .rcard-sub, .rcard-list) { display: none; }
}

/* ---------- «Отчёты»: a report's figures (10 November, «Делаем все 10»; 11:48 «унификацию отчетов по внешнему виду») ----------
   One strip of blocks on the brand's five columns, its lines meeting the keys' over it: the report's own figure first —
   what it covers in a head's letters, the sum, its change —, then its other figures (the ten reports' own, .rv-pro;
   a report without a breakdown — its other headline numbers; any other — its peak, lowest and average, or its leader).
   Alone — five columns; with one more 3 + 2; two more 3 + 1 + 1; three more 2 + 1 + 1 + 1; four more one each. On a phone
   «Сводка»'s tiles, three to a row, the figure on top — the report's own across the row. A figure one may change
   («Норма») or must give («Комиссия») is a key: the whole block. */
.rv-figs > .rv-pro { display: contents; }
.rv-figs button.ks { align-items: flex-start; border: 0; font: inherit; text-align: left; cursor: pointer; }
.rv-figs .ks-act { color: var(--accent); font-weight: var(--fw-semibold); }
:root .front-look .rv-card > .rv-figs {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: auto; gap: 0; margin: 0;
}
/* (each block three rows of the strip's — its name, its figure, its change —, so a name on two lines keeps the figures
   beside it level) */
:root .front-look .rv-figs .ks {
  display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; gap: 0; min-width: 0; padding: var(--sp-4) var(--px); border-radius: 0;
  background: var(--surface); color: var(--ink); box-shadow: inset -1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl);
}
:root .front-look .rv-figs .ks-key:hover { background: var(--surface-2); }
/* (10 November, «Меню: звёзды и балласт»: «нажимать на категории и открывать только блюда из нее») a class's figure is a
   button: pressed — on the second surface with the accent's line under it, as the forecast's chosen day */
:root .front-look .rv-figs .ks-pick:not(:disabled):hover { background: var(--surface-2); }
:root .front-look .rv-figs .ks-pick.on { background: var(--surface-2); box-shadow: inset -1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl), inset 0 -3px 0 0 var(--accent); }
:root .front-look .rv-figs .ks-pick:disabled { cursor: default; }
:root .front-look .rv-figs .ks-pick:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
:root .front-look .rv-figs .ks-warn { background: var(--warn-soft); }
:root .front-look .rv-figs .ks-l {
  display: -webkit-box; max-width: 100%; overflow: hidden; color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); letter-spacing: 0; line-height: 22px;
  text-transform: none; white-space: normal; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
:root .front-look .rv-figs .ks-v {
  max-width: 100%; margin-top: var(--sp-2); overflow: hidden; font-family: var(--font-timer); font-size: 28px; font-weight: var(--fw-semibold);
  letter-spacing: -0.03em; line-height: 34px; white-space: nowrap; text-overflow: ellipsis;
}
/* (words for a figure — «19–24 ч» — in the letters of the heads, on two lines when they need them) */
:root .front-look .rv-figs .ks-v.ks-text { font-family: var(--font-ui); font-size: 22px; letter-spacing: 0; line-height: 28px; white-space: normal; }
:root .front-look .rv-figs .ks-d { max-width: 100%; margin-top: 2px; overflow: hidden; color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; white-space: nowrap; text-overflow: ellipsis; }
:root .front-look .rv-figs .ks-d .muted { color: var(--ink-2); }
:root .front-look .rv-figs .ks-d.ks-act { color: var(--accent); }
/* the report's own: what it covers on two lines when it needs them */
:root .front-look .rv-figs > .rv-fig { flex-wrap: nowrap; align-items: stretch; justify-content: flex-start; }
:root .front-look .rv-figs .rv-fig-d { display: block; gap: 0; }
@media (min-width: 701px) {
  :root .front-look .rv-figs[data-n="1"] > .rv-fig { grid-column: span 5; }
  :root .front-look .rv-figs:is([data-n="2"], [data-n="3"]) > .rv-fig { grid-column: span 3; }
  :root .front-look .rv-figs[data-n="2"] > :nth-child(2), :root .front-look .rv-figs[data-n="2"] > .rv-pro > .ks { grid-column: span 2; }
  :root .front-look .rv-figs:is([data-n="4"], [data-n="6"]) > .rv-fig { grid-column: span 2; }
}
@media (max-width: 700px) {
  :root .front-look .rv-card > .rv-figs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  :root .front-look .rv-figs .ks { display: flex; flex-direction: column; grid-row: auto; min-height: 112px; padding: var(--sp-3) var(--sp-4); }
  :root .front-look .rv-figs > .rv-fig { grid-column: 1 / -1; min-height: 0; }
  :root .front-look .rv-figs .ks-v { order: -1; margin: 0 0 auto; font-size: 20px; line-height: 28px; white-space: normal; }
  :root .front-look .rv-figs > .rv-fig .ks-v { margin-bottom: 2px; font-size: 28px; line-height: 34px; }
  :root .front-look .rv-figs .ks-d { order: 0; line-height: 18px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  :root .front-look .rv-figs .ks-l { order: 1; margin-top: var(--sp-1); color: var(--ink-2); font-size: var(--fs-sm); font-weight: var(--fw-regular); line-height: 18px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

/* (10 November, 14:34, the owner: «В мобильной версии у нас 3 блока в ширину — их может быть два, только если мы
   совмещаем два — запомни это правило») on a phone the figures three to a row; a row left with two — the last across
   two columns (2 + 1, never two halves); left with one — across the row */
@media (max-width: 700px) {
  .pg-nums > .pg-num:nth-child(3n + 1):last-child { grid-column: 1 / -1; }
  .pg-nums > .pg-num:nth-child(3n + 2):last-child { grid-column: span 2; }
  :root .front-look .of-page > .kpi-row > .tile:nth-child(3n + 1):last-child { grid-column: 1 / -1; }
  :root .front-look .of-page > .kpi-row > .tile:nth-child(3n + 2):last-child { grid-column: span 2; }
  :root .front-look .rv-figs > .rv-pro > .ks:nth-child(3n + 1):last-child { grid-column: 1 / -1; }
  :root .front-look .rv-figs > .rv-pro > .ks:nth-child(3n + 2):last-child { grid-column: span 2; }
  :root .front-look .rv-figs > .ks:not(.rv-fig):nth-child(3n + 2):last-child { grid-column: 1 / -1; }
  :root .front-look .rv-figs > .ks:not(.rv-fig):nth-child(3n + 3):last-child { grid-column: span 2; }
}

/* «Фудкост по блюдам»: the norm a line across the bars (the legend names it) */
.hb-norm { position: absolute; top: -3px; bottom: -3px; width: 2px; background: repeating-linear-gradient(180deg, var(--ink) 0 4px, transparent 4px 7px); transform: translateX(-1px); }
.key-norm { flex: none; width: 2px; height: 14px; background: repeating-linear-gradient(180deg, var(--ink) 0 4px, transparent 4px 7px); }
/* «Меню: звёзды и балласт»: each class under its head — what it is, what to do, how many */
.hb-head { padding: var(--sp-4) var(--sp-2) var(--sp-1); font-size: var(--fs-sm); }
.hb-group:first-child > .hb-head { padding-top: 0; }
/* the table's flags: «мало людей», over the norm */
.report-table td.rpt-warn { color: var(--warn); font-weight: var(--fw-semibold); }
.report-table td.rpt-bad { color: var(--bad); }

/* a report's table on a phone: a list — the row's name and its figure, the rest on a line under them (nothing sideways) */
.rpt-list { margin: 0 calc(-1 * var(--px, var(--sp-4))); padding: 0; list-style: none; }
.rpt-row { display: flex; flex-direction: column; gap: 2px; padding: var(--sp-3) var(--px, var(--sp-4)); box-shadow: inset 0 -1px 0 0 var(--zl, var(--line)); }
.rpt-main { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); }
.rpt-name { min-width: 0; font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; }
.rpt-v { flex: none; font-variant-numeric: tabular-nums; font-weight: var(--fw-semibold); white-space: nowrap; }
.rpt-more { display: flex; flex-wrap: wrap; gap: 2px var(--sp-3); color: var(--ink); font-size: var(--fs-sm); line-height: 20px; }
.rpt-more .rpt-flag { color: var(--warn); font-weight: var(--fw-semibold); }
.rpt-total { box-shadow: none; }
.rpt-total .rpt-name { font-weight: var(--fw-semibold); }

/* the norm's sheet */
.norm-form { display: flex; align-items: center; gap: var(--sp-3); }
.norm-form .cell-input { width: 120px; }

/* «Wolt и Glovo» → «Комиссия платформ»: a field each, the percent after it */
.fee-row { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6); }
.fee-field { display: flex; align-items: center; gap: var(--sp-3); }
.fee-name { display: inline-flex; align-items: center; min-width: 64px; gap: var(--sp-2); font-weight: var(--fw-semibold); }
.fee-in { display: inline-flex; align-items: center; gap: var(--sp-2); }
.fee-in .cell-input { width: 88px; text-align: right; }

/* ---------- the sections in «Сводка»'s look (10 November, 03:31 and 03:45): the keys on the brand's five columns ----------
   A header's strip of keys (four and more — «Приходные накладные», «Блюда»): on a computer the five columns, four keys
   2 + 1 + 1 + 1 (the first — the restaurant's picker, or the first key — the wide one), five one each; «Смены и
   зарплата»'s bar: «Табель», «Зарплата», «График» a column each, the period one, the staff's key one (or two, without
   the period) — the lines of the keys over the lines of the figures and the gallery's. */
@media (min-width: 701px) {
  :root .front-look .of-head > .of-actions:has(> :nth-child(4)) { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  :root .front-look .of-head > .of-actions:has(> :nth-child(4)):not(:has(> :nth-child(5))) > :first-child { grid-column: span 2; }
  :root .front-look .of-page > .sh-bar.sh-bar5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  :root .front-look .of-page > .sh-bar.sh-bar5 > .seg { --strip-cell: minmax(0, 1fr); grid-column: span 3; }
  :root .front-look .of-page > .sh-bar.sh-bar5 > :is(.select, .btn) { justify-self: stretch; width: 100%; min-width: 0; margin: 0; }
  :root .front-look .of-page > .sh-bar.sh-bar5:not(:has(> :is(.select, .sc-week))) > .btn { grid-column: span 2; }
}
/* (15 November, the brand book's robot: «16–22 ноября · следующая н…» cut on an iPad, 1024) a column is too narrow for the
   week and its arrows: under 1100 px the three tabs take two columns, the week two */
@media (min-width: 701px) and (max-width: 1100px) {
  :root .front-look .of-page > .sh-bar.sh-bar5:has(> .sc-week) > .seg { grid-column: span 2; }
  :root .front-look .of-page > .sh-bar.sh-bar5 > .sc-week { grid-column: span 2; }
}

/* «Прогноз» on a phone: the people of each hour a list (an hour short of hands shaded) */
.fc-staff-list { margin: 0; }
.fc-staff-list > .rpt-row.fc-over { background: var(--warn-soft); }
.fc-staff-list .rpt-more b { font-weight: var(--fw-semibold); }

/* ---------- (10 November, 11:48, the owner: «сползла горизонтальная линия») ----------
   On a computer the sidebar's top row is the page header's twin: as tall (a key's height), its line under it drawn over
   the next row's first pixel as the header's is — so the rows under them (the restaurant's and the page's first, 48
   each) start and end together and every line runs on across the page, at one height. */
@media (min-width: 701px) {
  :root .front-look .of-side > .of-brand { position: relative; z-index: 2; height: var(--key-h); padding-bottom: 0; box-shadow: 0 1px 0 0 var(--zl); }
}

/* ---------- one report's screen (10 November, 12:51) ----------
   The owner: «у нас не может быть такого, что ты открываешь поп-ап с закругленными краями, а внутри нас встречают
   квадратные элементы»; «Кнопки выбора, график или не график, тоже кривые». The header as every page's: «‹» a round key,
   the report's name, its ⓘ — «Сохранить» the one pill at the right. The question's row as the gallery's. The choices a
   row of five blocks on the brand's columns — each its name over its choice and the arrow, as square as the grid; its
   list the menus' rounded layer, as every list's. The figures a strip of blocks; the chart or the table a block, its
   head a row of 56 — its name, its legend, and at the right the iPhone's segmented «График | Таблица» (a ranking's
   «Показать» beside it, its twin) — both 36 high, in the middle of the row. */
:root .front-look .rv > .rv-top {
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: var(--sp-3); height: var(--key-h); min-height: var(--key-h); padding: 0 var(--px);
}
:root .front-look .rv-top > .rv-title { display: flex; flex: 1 1 auto; align-items: center; gap: var(--sp-2); min-width: 0; margin: 0; }
:root .front-look .rv-title > .rv-name { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
:root .front-look .rv-top .back-btn {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: var(--h-md); height: var(--h-md); margin: 0 var(--sp-1) 0 -6px; padding: 0;
  border: 0; border-radius: var(--r-pill); background: var(--pill); color: var(--ink); box-shadow: 0 1px 2px rgb(19 24 36 / 0.08);
}
:root .front-look .rv-top .back-btn:hover { background: var(--pill-press); }
:root .front-look .rv-top > .rv-save {
  flex: none; height: var(--h-md); min-height: var(--h-md); padding: 0 var(--sp-4) 0 var(--sp-3); border: 0; border-radius: var(--r-pill);
  background: var(--pill); color: var(--ink); box-shadow: 0 1px 2px rgb(19 24 36 / 0.08); font-size: var(--fs-md); font-weight: var(--fw-medium);
}
:root .front-look .rv-top > .rv-save:hover:not(:disabled) { background: var(--pill-press); }
/* the question: the gallery's row */
:root .front-look .rv > .ask { margin: 0; }
/* the five keys */
.rv-keys { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rv-key { position: relative; min-width: 0; }
.rv-key-l { position: absolute; top: 12px; left: var(--px); z-index: 1; color: var(--ink-2); font-size: var(--fs-sm); line-height: 18px; pointer-events: none; }
:root .front-look .rv-key > .select {
  display: flex; align-items: flex-end; gap: var(--sp-2); width: 100%; min-width: 0; height: 64px; min-height: 64px; padding: 0 var(--sp-3) 12px var(--px);
  border: 0; border-radius: 0; background: var(--surface); color: var(--ink); box-shadow: inset -1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl);
  font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; text-align: left;
}
:root .front-look .rv-key:last-child > .select { box-shadow: inset 0 -1px 0 0 var(--zl); }
:root .front-look .rv-key > .select .select-value { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
:root .front-look .rv-key > .select .select-chevron { flex: none; margin-bottom: 2px; color: var(--ink-2); }
/* the chips a question left (restaurants, dishes, categories, waiters): a row under the keys */
:root .front-look .rv > .rv-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); padding: var(--sp-2) var(--px); box-shadow: inset 0 -1px 0 0 var(--zl); }
:root .front-look .rv-chips > .chip { border: 0; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--ink); }
/* the report: a flat column of blocks */
:root .front-look .rv > .rv-card { display: block; gap: 0; padding: 0; border: 0; border-radius: 0; background: var(--surface); box-shadow: none; }
:root .front-look .rv-card > .empty { padding: var(--sp-8) var(--px); }
:root .front-look .rv-card > .ai-strip { padding: var(--sp-4) var(--px); border-top: 0; box-shadow: inset 0 -1px 0 0 var(--zl); }
.rv-block { box-shadow: inset 0 -1px 0 0 var(--zl); }
.rv-bhead { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-5); min-height: 56px; padding: 10px var(--px); }
.rv-bt { flex: none; margin: 0; color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; }
.rv-bhead > .r-legend { padding: 0; }
.rv-bkeys { display: flex; flex: none; align-items: center; gap: var(--sp-2); margin-left: auto; }
:root .front-look .rv-bkeys > .seg.rv-view {
  display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(max-content, 1fr); align-items: center; gap: 2px; height: 36px; min-height: 36px; padding: 2px; overflow: visible;
  border: 0; border-radius: var(--r-pill); background: var(--seg-track); box-shadow: none;
}
/* (13:20, the owner: «Подложка все-равно кривая» — the track had kept a small segmented control's 44: the chosen part sat
   2 from its sides and 6 from its top and bottom) the track 36, the part 32: 2 all round */
:root .front-look .rv-bkeys > .seg.rv-view > .seg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; min-height: 32px; padding: 0 var(--sp-4); border: 0; border-radius: var(--r-pill);
  background: none; box-shadow: none; color: var(--ink); font-size: 13px; font-weight: var(--fw-medium); line-height: 1;
}
:root .front-look .rv-bkeys > .seg.rv-view > .seg-btn.on {
  background: var(--seg-on); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / 0.14), 0 0 0 0.5px rgb(0 0 0 / 0.05); font-weight: var(--fw-semibold);
}
:root .front-look .rv-bkeys > .select.rv-show {
  width: auto; min-width: 0; height: 36px; min-height: 36px; padding: 0 10px 0 var(--sp-4); gap: 4px; border: 0; border-radius: var(--r-pill);
  background: var(--seg-track); color: var(--ink); box-shadow: none; font-size: 13px; font-weight: var(--fw-medium);
}
:root .front-look .rv-bkeys > .select.rv-show:hover { background: var(--pill-press); }
/* (13:27, the owner: «чтобы не было каши, надо элементы управления отчетом выделять чуть-чуть другим цветом. И так надо
   сделать во всех отчетах») a report's controls — the question's row, the five keys, the chips a question left — on the
   screen's second surface, a shade apart from the figures and the chart one reads under them; a key pressed or open a
   shade further */
:root .front-look .rv > .ask .ask-field input { background: var(--surface-2); }
:root .front-look .rv-key > .select { background: var(--surface-2); }
:root .front-look .rv-key > .select:hover, :root .front-look .rv-key > .select.open { background: var(--surface-3); }
:root .front-look .rv > .rv-chips { background: var(--surface-2); }
/* the chart, the bars and the table under the head */
.rv-block > :is(.chart-wrap, .hbars, .rpt-list) { margin: 0 var(--px) var(--sp-4); }
.rv-block > .table-wrap { margin: 0; }
/* (the visual audit of the lines, 12 November) a block's head over its table: a line between them — the table's head is a
   shade of its own, its edge had been the only border */
.rv-bhead:has(+ .table-wrap) { box-shadow: inset 0 -1px 0 0 var(--zl); }
/* (12 November, 02:40, the owner: «две линии внизу во всех отчетах») the room under a chart inside its block — the block's
   line under it, the page's closing line on that same pixel; not one line under the bars and another 16 lower */
.rv-block { display: flow-root; }
/* (02:39, «Двойная линия» under the keys of a report with no sales) the keys' line is the empty block's top */
:root .front-look .rv > .rv-card > .empty:first-child { box-shadow: none; }
@media (max-width: 700px) {
  :root .front-look .rv > .rv-top { height: auto; min-height: var(--key-h); padding: 10px var(--px); }
  :root .front-look .rv-top > .rv-title { align-items: flex-start; font-size: 22px; line-height: 28px; }
  :root .front-look .rv-title > .rv-name { display: -webkit-box; padding-top: 8px; white-space: normal; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  :root .front-look .rv-title > .info-btn { margin-top: 8px; }
  :root .front-look .rv-top > .rv-save { align-self: flex-start; width: var(--h-md); padding: 0; justify-content: center; }
  :root .front-look .rv-top > .rv-save .btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  /* (11 November: the phone's three columns — two keys to a row had split it in halves) three to a row, the last two
     keys 2 + 1 (the breakdown's words are the longer); a choice on two lines rather than cut */
  .rv-keys { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rv-key:nth-child(4) { grid-column: span 2; }
  :root .front-look .rv-key:is(:nth-child(3), :last-child) > .select { box-shadow: inset 0 -1px 0 0 var(--zl); }
  .rv-key { display: flex; flex-direction: column; }
  :root .front-look .rv-key > .select { flex: 1 1 auto; align-items: flex-start; height: auto; min-height: 76px; padding: 30px var(--sp-2) 10px var(--sx, 16px); font-size: var(--fs-sm); line-height: 18px; }
  :root .front-look .rv-key > .select .select-value { display: -webkit-box; white-space: normal; hyphens: auto; -webkit-hyphens: auto; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  :root .front-look .rv-key > .select .select-chevron { margin: 0; }
  .rv-key-l { top: 10px; left: var(--sx, 16px); }
  .rv-bhead > .r-legend { order: 9; width: 100%; }
  :root .front-look .rv-bkeys > .seg.rv-view > .seg-btn { padding: 0 var(--sp-3); }
  :root .front-look .rv-bkeys > .seg.rv-view > .seg-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* (11 November, the visual audit at 1024: «С неделей раньше», «По ресторанам» cut in their keys) a narrower computer's
   keys a little taller — a choice on two lines rather than cut */
@media (min-width: 701px) and (max-width: 1239px) {
  .rv-key { display: flex; flex-direction: column; }
  :root .front-look .rv-key > .select { flex: 1 1 auto; align-items: flex-start; height: auto; min-height: 76px; padding-top: 34px; padding-bottom: 10px; line-height: 20px; }
  :root .front-look .rv-key > .select .select-value { display: -webkit-box; white-space: normal; hyphens: auto; -webkit-hyphens: auto; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  :root .front-look .rv-key > .select .select-chevron { margin: 0; }
}

/* (11:48, the owner: «надо сделать возможность сохранять свои отчеты») «Свой отчёт» — a card of the grid as the others:
   its name where theirs is, a plus where their figure is (the accent's: a thing to do, not a number), what one does
   where their rows are; on a phone the plus on top and the name at the foot, as every tile there */
:root .front-look .rcard-new .rcard-fig { color: var(--accent); }
:root .front-look .rcard-new .rcard-fig > .ic { flex: none; align-self: center; }
@media (min-width: 701px) {
  :root .front-look .rcard-new .rcard-fig { min-height: 34px; }
}
@media (max-width: 700px) {
  :root .front-look .rcard-new .rcard-fig { min-height: 28px; }
  :root .front-look .rcard-new .rcard-fig > .ic { width: 28px; height: 28px; }
  /* (one's own report is deleted from its «Сохранён» there: a tile a third of the phone has no room for a key in its
     corner) */
  :root .front-look .rg-grid > .rcard > .rcard-del { display: none; }
}
/* «Сохранён»: the bookmark filled, the accent's */
:root .front-look .rv-save.on > .ic { color: var(--accent); }
/* the name of a report kept: its field the sheet's width, the label over it */
.sheet #preset-form { display: grid; gap: var(--sp-2); }
.sheet #preset-form > label { color: var(--ink-2); font-size: var(--fs-sm); }
.sheet #preset-form > .cell-input { width: 100%; height: var(--h-md); padding: 0 var(--sp-3); font-size: var(--fs-md); text-align: left; }

/* «Прогноз»: the holiday's line a row of the grid — one line of words, the header's line over its first pixel and the
   figures' line after its last where the menu's first row draws its own (10 November, 11:48: «сползла горизонтальная
   линия»: it had been 55, a step under the menu's line) */
@media (min-width: 701px) {
  :root .front-look .of-page > .fc-holiday { align-items: center; min-height: 47px; padding-top: 0; padding-bottom: 0; }
  :root .front-look .of-page > .fc-holiday .ic { margin-top: 0; }
}

/* (10 November, 12:51, the owner: «у нас не может быть такого, что ты открываешь поп-ап с закругленными краями, а внутри
   нас встречают квадратные элементы. Это ломает вообще мозг») A window rounded at 16 has rounded things in it: its
   fields and its lists' keys rounded rectangles of 12 — the iPhone's in a sheet —, its keys and chips pills, a segmented
   choice a pill's track. (The grid's square keys stay square on the page; a list from them opens as the menus' layer.) */
@media (min-width: 701px) {
  :root .front-look .sheet-center .sheet :is(.cell-input, .line-input, .field input, .field textarea, textarea, .search, .select:not(.period-pill), .period-dates input, .stepper, .stepper-sm) { border-radius: 12px; }
  :root .front-look .sheet-center .sheet :is(.btn, .icon-btn, .chip, .tool-btn, .lang-btn) { border-radius: var(--r-pill); }
  :root .front-look .sheet-center .sheet .seg { overflow: hidden; border-radius: var(--r-pill); }
  :root .front-look .sheet-center .sheet .seg > .seg-btn { border-radius: var(--r-pill); }
}
/* (a phone's sheet comes up from below, its top rounded: a field boxed in it rounded too — its rows from edge to edge
   stay rows) */
@media (max-width: 700px) {
  :root .front-look .sheet :is(.cell-input, .line-input, .field input, .field textarea, textarea):not(.flush *) { border-radius: 12px; }
}

/* ---------- an empty list or page: a row of the grid (the visual audit, 11 November) ----------
   («Блочность обязательно», «Максимально полезно используем пространство») what is not there yet says so as a row of the
   page or of its block: what is missing in the ink, what to do under it in the quiet ink, at the left; its keys at the
   row's end, a column of the five each, as the keys of a row («Открыть «Рестораны»», «Ещё раз»); the old look's picture
   in the middle of the page and its framed buttons are gone. On a phone the words a row, each key a row under them. A
   sheet keeps its own. */
.front-look .of-page .empty:not(.sheet *) {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; gap: 0; margin: 0; padding: 0;
  background: var(--surface); color: var(--ink-2); text-align: left; box-shadow: inset 0 1px 0 0 var(--zl);
}
.front-look .of-page .empty:not(.sheet *) > .empty-ic { display: none; }
.front-look .of-page .empty:not(.sheet *) > :is(.empty-title, .empty-hint) { grid-column: 1 / -1; max-width: none; margin: 0; padding: 0 var(--px); }
.front-look .of-page .empty:not(.sheet *) > .empty-title { grid-row: 1; padding-top: var(--sp-4); color: var(--ink); line-height: 22px; }
.front-look .of-page .empty:not(.sheet *) > .empty-hint { grid-row: 2; padding-top: 2px; padding-bottom: var(--sp-4); font-size: var(--fs-sm); line-height: 20px; }
.front-look .of-page .empty:not(.sheet *) > .empty-title:not(:has(+ .empty-hint)) { padding-bottom: var(--sp-4); }
.front-look .of-page .empty:not(.sheet *) > .row-gap { display: contents; }
.front-look .of-page .empty:not(.sheet *) .btn {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-2); grid-row: 1 / span 2; grid-column: 5; width: auto; min-width: 0; height: auto;
  min-height: 72px; margin: 0; padding: var(--sp-2) var(--sp-3); border: 0; border-radius: 0; background: var(--surface); color: var(--ink);
  font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 20px; text-align: center; white-space: normal; box-shadow: inset 1px 0 0 0 var(--zl);
}
.front-look .of-page .empty:not(.sheet *) .btn:nth-last-of-type(2) { grid-column: 4; }
/* (the row's line over it: the keys' ground covers the row's own — they draw it themselves; under a row of keys, whose line
   under it is the line, none) */
.front-look .of-page .empty:not(.sheet *) .btn:not(.btn-primary) { box-shadow: inset 1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl); }
.front-look .of-page .dt-keys + .empty, .front-look .of-page .dt-keys + .pg-block > .empty:first-child { box-shadow: none; }
.front-look .of-page .dt-keys + .empty .btn:not(.btn-primary), .front-look .of-page .dt-keys + .pg-block > .empty:first-child .btn:not(.btn-primary) { box-shadow: inset 1px 0 0 0 var(--zl); }
.front-look .of-page .empty:not(.sheet *) .btn > svg { flex: none; color: var(--ink-2); }
.front-look .of-page .empty:not(.sheet *) .btn:hover:not(:disabled) { background: var(--surface-2); }
.front-look .of-page .empty:not(.sheet *) .btn.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.front-look .of-page .empty:not(.sheet *) .btn.btn-primary > svg { color: currentColor; }
.front-look .of-page .empty:not(.sheet *) .btn.btn-primary:hover:not(:disabled) { background: color-mix(in oklab, var(--accent) 88%, var(--ink)); }
.front-look .of-page .empty:not(.sheet *):has(.btn) > :is(.empty-title, .empty-hint) { grid-column: 1 / 5; }
.front-look .of-page .empty:not(.sheet *):has(.btn ~ .btn) > :is(.empty-title, .empty-hint) { grid-column: 1 / 4; }
/* (a card round it adds no frame and no room: the row is the card's) */
.front-look .of-page .card:has(> .empty:only-child) { padding: 0; }
@media (min-width: 701px) and (max-width: 1239px) {
  .front-look .of-page .empty:not(.sheet *) .btn { flex-direction: column; gap: 2px; font-size: var(--fs-sm); line-height: 18px; }
}
@media (max-width: 700px) {
  .front-look .of-page .empty:not(.sheet *) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .front-look .of-page .empty:not(.sheet *) > :is(.empty-title, .empty-hint),
  .front-look .of-page .empty:not(.sheet *):has(.btn) > :is(.empty-title, .empty-hint) { grid-column: 1 / -1; padding-left: var(--sx, 16px); padding-right: var(--sx, 16px); }
  .front-look .of-page .empty:not(.sheet *) .btn,
  .front-look .of-page .empty:not(.sheet *) .btn:nth-last-of-type(2) { grid-row: auto; grid-column: 1 / -1; min-height: 56px; box-shadow: inset 0 1px 0 0 var(--zl); }
  .front-look .of-page .empty:not(.sheet *) .btn.btn-primary { box-shadow: none; }
}

/* ---------- a state in words, not a pill (the visual audit, 11 November) ----------
   («Очень аккуратно используем пилюли»: pills for the tabs, the header's choices and a sheet's main key only) a bill's, a
   report's, a coupon's state — its word in its colour, as «идёт» and «не разобрано» already were */
.front-look .st:not(.of-head .st, .dir-foot > .st) {
  display: inline; height: auto; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; outline: 0;
  font-size: var(--fs-sm); font-weight: var(--fw-semibold); line-height: inherit; white-space: nowrap;
}
.front-look .st:is(.st-ok, .st-ready, .st-paid):not(.of-head .st, .dir-foot > .st) { color: var(--ok); }
.front-look .st:is(.st-bad, .st-void):not(.of-head .st, .dir-foot > .st) { color: var(--bad); }
.front-look .st:is(.st-warn, .st-cooking, .st-pending):not(.of-head .st, .dir-foot > .st) { color: var(--warn); }
.front-look .st.st-draft:not(.of-head .st, .dir-foot > .st) { color: var(--accent); }
.front-look .st:is(.st-sent, .st-muted, .st-served, .st-held):not(.of-head .st, .dir-foot > .st) { color: var(--ink-2); }
/* (the report's opening and closing balances: a line of their own one pixel as the others — two had stood under the heads) */
.front-look .mn-report tr:is(.mn-r-bal, .mn-r-net) :is(th, td) { border-top-width: 0; }

/* «Прогноз», variant B (10 November, the owner: «Тогда B») on the brand's module (14:37: «У нас в десктопе 5 блоков в
   ширину, квадратных, в мобильной 3; они могут занимать половину по высоте (если являются элементом управления), могут
   стыковаться между собой, но не могут нарушать сетку основную»). One grid for the page's body: five columns on a
   computer, three on a phone; its rows half a module (--h: the module's width / 2), so a square is two rows, a control
   one. The days — squares; the hours — 1 × 2 and 4 × 2, the answer theirs: the day and its holiday at the left over
   the hour's figures, the words over the columns (a phone: a block of its own under the days, as many squares as its
   words need); the people — the page's width, a row a role (the plot's hours and the people's the same columns); the people — the page's width, a row a role; the
   day's events, the prep, the order, the dishes — controls' halves, 2 + 1 + 1 + 1. A line only where blocks meet — on
   the module. (18:00, the owner: «в прогнозе стало очень много инфы — точно можно сделать меньше раза в 1,5»: no five
   figures under the answer — the days say the bills and the sales, the answer the peak, the plot and the people the
   rest; the events no row of their own — «Вот этот блок не исправил».) */
.fc-page { --gut: 30px; container-type: inline-size; }
.fc-page h2 { margin: 0; color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; }
.fc-body { --h: max(calc(100cqw / 10), 90px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: var(--h); margin-left: -1px; }
/* a block: the line at its left and under it, the page's first one's left line under the menu's edge */
.fc-body > :not(.fc-days, .fc-links), .fc-days > *, .fc-links > .fc-link {
  min-width: 0; overflow: hidden; background: var(--surface); box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl);
}
.fc-body > :is(.fc-days, .fc-links) { display: contents; }

/* the days: squares — buttons, the chosen one on the second surface with the accent's line under it */
.fc-day {
  display: flex; flex-direction: column; align-items: flex-start; grid-row: span 2; padding: var(--sp-4) var(--px) var(--sp-3); border: 0; border-radius: 0;
  color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.fc-day:hover { background: var(--surface-2); }
.fc-days > .fc-day.on { background: var(--surface-2); box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl), inset 0 -3px 0 0 var(--accent); }
.fc-day:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.fc-day-n { font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; }
.fc-day-d { color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; }
.fc-day-v { margin-top: 8px; font-size: 28px; line-height: 34px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fc-day-v small { margin-left: 6px; color: var(--ink-2); font-size: var(--fs-sm); }
.fc-day-r { color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; white-space: nowrap; }
.fc-day-t { overflow: hidden; max-width: 100%; min-height: 20px; margin-top: 4px; color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; white-space: nowrap; text-overflow: ellipsis; }
.fc-day-t.hol { color: var(--warn); }
.fc-day-t.ev { color: var(--accent); }
.fc-spark { display: grid; flex: 1 1 auto; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); align-items: end; gap: 2px; width: 100%; min-height: 24px; margin-top: 10px; }
.fc-spark i { display: block; border-radius: 2px 2px 0 0; background: color-mix(in oklab, var(--s1) 60%, var(--surface)); }
.fc-day.on .fc-spark i { background: var(--s1); }

/* the answer: the page's width, as many squares as its words need (useFit) */
.fc-verdict { grid-column: 1 / -1; grid-row: span 2; padding: 20px var(--px) 22px; }
.fc-page .fc-v-day { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 28px; line-height: 34px; }
.fc-tag { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: var(--fw-semibold); line-height: 20px; }
.fc-tag::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.fc-tag.hol { color: var(--warn); }
.fc-tag.ev { color: var(--accent); }
.fc-v-text { max-width: 64ch; margin: 12px 0 0; color: var(--ink-2); font-size: 20px; line-height: 30px; }
.fc-v-text b { color: var(--ink); font-weight: var(--fw-semibold); }
.fc-v-text .fc-live, .fc-v-text .fc-warn { display: inline; margin: 0; font-size: inherit; line-height: inherit; }
.fc-v-text .fc-warn { color: var(--bad); }

/* the hours: 1 × 2 for the names, 4 × 2 for the plot (a phone: 3 × 2) */
.fc-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.fc-5 > * { min-width: 0; }
.fc-5 > * + * { box-shadow: inset 1px 0 0 0 var(--zl); }
.fc-side { padding: var(--sp-4) var(--px); }
.fc-main { grid-column: span 4; min-width: 0; padding: var(--sp-4) var(--px); }
.fc-hours { grid-column: 1 / -1; grid-row: span 4; }
.fc-hours > .fc-side { display: flex; flex-direction: column; }
.fc-read { display: flex; flex-direction: column; margin-top: auto; padding-top: var(--sp-4); }
.fc-read-h { color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; }
.fc-read-v { margin: 2px 0 6px; color: var(--ink); font-family: var(--font-timer); font-size: 28px; font-weight: var(--fw-semibold); line-height: 34px; letter-spacing: -0.03em; }
.fc-read-r { display: flex; align-items: center; gap: 8px; min-height: 26px; color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; }
.fc-read-r i { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.fc-read-r i.s1 { background: var(--s1); }
.fc-read-r i.s3 { background: var(--s3); }
.fc-read-r span { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fc-read-r b { flex: none; color: var(--ink); font-family: var(--font-timer); font-weight: var(--fw-semibold); }
.fc-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; }
.fc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.fc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.fc-legend i.s1 { background: var(--s1); }
.fc-legend i.s3 { background: var(--s3); }
.fc-legend i.base { width: 14px; height: 0; border-top: 2px solid var(--ink); border-radius: 0; }
.fc-legend .fc-legend-l { color: var(--ink-3); }
/* (the columns' heights a share of the plot's: on a computer the plot takes what the words over it leave) */
.fc-plot { --xh: 26px; position: relative; flex: 1 1 0; min-height: 100px; margin-top: 24px; }
.fc-hours > .fc-main { display: flex; flex-direction: column; }
.fc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px 24px; }
.fc-head .fc-v-text { flex: 1 1 auto; min-width: 0; max-width: 72ch; margin: 0; font-size: 18px; line-height: 26px; }
.fc-head .fc-legend { flex: none; margin-top: 3px; }
.fc-answer > .fc-side .fc-v-day { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 22px; line-height: 28px; }
.fc-answer > .fc-side .fc-tag { align-items: baseline; }
.fc-answer > .fc-side .fc-tag::before { flex: none; transform: translateY(-1px); }
.fc-yl { position: absolute; left: var(--gut); right: 0; bottom: calc(var(--xh) + (100% - var(--xh)) * var(--v)); height: 0; border-top: 1px solid var(--grid); }
.fc-yl.zero { border-top-color: var(--line-2); }
.fc-yl span { position: absolute; left: calc(-1 * var(--gut)); top: -9px; width: calc(var(--gut) - 8px); color: var(--ink-3); font-size: var(--fs-xs); line-height: 16px; text-align: right; font-variant-numeric: tabular-nums; }
.fc-band { position: absolute; top: -24px; bottom: var(--xh); border-left: 1px dashed color-mix(in oklab, var(--accent) 60%, transparent); background: color-mix(in oklab, var(--accent) 12%, transparent); }
.fc-band span { position: absolute; top: 4px; left: 8px; right: 4px; overflow: hidden; color: var(--accent); font-size: var(--fs-xs); font-weight: var(--fw-semibold); line-height: 16px; white-space: nowrap; text-overflow: ellipsis; }
.fc-cols { position: absolute; inset: 0 0 0 var(--gut); display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.fc-col { position: relative; min-width: 0; }
.fc-col.hover { background: color-mix(in oklab, var(--ink) 5%, transparent); }
.fc-bar { position: absolute; left: 50%; top: 0; bottom: var(--xh); display: flex; flex-direction: column-reverse; gap: 2px; width: min(60%, 34px); transform: translateX(-50%); }
.fc-bar i { display: block; flex: none; width: 100%; height: max(1px, calc(100% * var(--v))); }
.fc-bar.two i { height: max(1px, calc(100% * var(--v) - 1px)); }
.fc-bar i.h { background: var(--s1); }
.fc-bar i.d { background: var(--s3); }
.fc-bar i:last-child { border-radius: 4px 4px 0 0; }
.fc-base { position: absolute; left: 50%; bottom: calc(var(--xh) + (100% - var(--xh)) * var(--v) - 1px); width: min(80%, 44px); height: 0; border-top: 2px solid var(--ink); transform: translateX(-50%); }
.fc-pk { position: absolute; left: calc(100% * var(--w) / 2); bottom: calc(var(--xh) + (100% - var(--xh)) * var(--v) + 6px); color: var(--ink); font-size: var(--fs-xs); font-weight: var(--fw-semibold); line-height: 16px; white-space: nowrap; transform: translateX(-50%); }
.fc-x { position: absolute; left: 0; right: 0; bottom: 0; color: var(--ink-3); font-size: var(--fs-xs); line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.fc-x.peak { color: var(--ink); font-weight: var(--fw-semibold); }
.fc-tip { top: 4px; transform: translateX(-50%); pointer-events: none; }
.sw.s3 { background: var(--s3); }

/* the people: the page's width, a row a role — its words at the left, its shift on the plot's columns */
.fc-people { display: grid; grid-column: 1 / -1; grid-row: span 2; grid-template-rows: repeat(3, minmax(min-content, 1fr)); }
.fc-people > .fc-srow { min-height: 0; }
.fc-srow > .fc-side { display: flex; flex-direction: column; justify-content: center; padding-top: var(--sp-2); padding-bottom: var(--sp-2); }
.fc-srow > .fc-side b { color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; }
.fc-srow > .fc-side span { color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; }
.fc-srow > .fc-main { display: flex; align-items: center; padding-top: 0; padding-bottom: 0; }
.fc-shift { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); align-items: center; width: calc(100% - var(--gut)); min-height: 32px; margin-left: var(--gut); }
.fc-seg { position: relative; height: 32px; }
.fc-seg::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 6px; transform: translateY(-50%); background: var(--surface-3); }
.fc-seg.n0::before { display: none; }
.fc-seg:first-child::before { border-top-left-radius: 3px; border-bottom-left-radius: 3px; }
.fc-seg:last-child::before { border-top-right-radius: 3px; border-bottom-right-radius: 3px; }
.fc-seg:is(.n2, .n3)::before { height: 32px; border-radius: 6px; background: var(--accent-soft); }
.fc-seg.n3::before { background: color-mix(in oklab, var(--accent) 50%, var(--surface)); }
.fc-seg.over::before { background: var(--bad-soft); }
.fc-seg.n1.over::before { background: var(--bad); }
.fc-seg b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.fc-seg.n3 b { color: var(--ink); }
.fc-seg.over b { color: var(--bad); }

/* the day's events in their sheet: what is counted in, a row each — its sign, its words, × to take it off; how it was read */
.fc-adj { display: flex; flex-direction: column; gap: 10px; margin: 0 0 12px; padding: 0; list-style: none; }
.fc-adj-row { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.fc-adj-ic { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.fc-adj-row b { display: block; color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; }
.fc-adj-h { display: block; color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; }
.fc-via { margin: 0 0 16px; color: var(--ink-3); font-size: var(--fs-sm); line-height: 20px; }
/* the sheet «События дня» (15:34, the owner: «Вот этот кусок еще — много линий»): its one field is no cell of a form — no
   frame round it, no line under it when typed in, no empty strips over and under it, no line over the button: the
   field's name, the words in a rounded box a shade apart (the caret says it is being typed in) */
:root .front-look .sheet-body > .field.fc-ev-field, :root .front-look .sheet-body > .field.fc-ev-field:focus-within { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin: 0; padding: 0; background: none; box-shadow: none; text-align: left; }
:root .front-look .sheet-body > .field.fc-ev-field textarea {
  box-sizing: border-box; flex: none; width: 100%; height: auto; min-height: 120px; max-height: 14rem; padding: 12px 14px; border: 0; border-radius: 14px; background: var(--surface-2);
  color: var(--ink); font: inherit; font-size: var(--fs-md); line-height: 22px; resize: none; outline: 0; box-shadow: none;
}
:root .front-look .sheet-body > .field.fc-ev-field textarea::placeholder { color: var(--ink-3); }
:root .front-look .sheet:has(.fc-ev-field) .sheet-foot { border-top-color: transparent; }

/* the events, the prep, the order, the dishes: controls' halves — the events open their sheet («+» while there are none),
   the rest their own screens; a phone's short names and figures beside a computer's words */
.fc-link { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; grid-row: span 1; width: 100%; padding: var(--sp-3) calc(var(--px) + 24px) var(--sp-3) var(--px); border: 0; border-radius: 0; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.fc-link:hover { background: var(--surface-2); }
.fc-link::after { content: '›'; position: absolute; right: var(--px); top: 50%; color: var(--ink-3); font-size: 24px; line-height: 1; transform: translateY(-55%); }
.fc-link.sp2 { grid-column: span 2; }
.fc-link.add::after { content: '+'; color: var(--accent); font-size: 26px; transform: translateY(-52%); }
.fc-link .ph { display: none; }
.fc-link-t { font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; }
.fc-link-h { overflow: hidden; max-width: 100%; color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; white-space: nowrap; text-overflow: ellipsis; }
/* (12 November: the day's row a cell of the grid's height — its line on the sidebar's line; the prep's first head under
   it without a line of its own, not two lines one under the other) */
.fc-subday { display: flex; align-items: center; min-height: var(--cell-h, 48px); margin: 0; padding: 0 var(--px); background: var(--surface); box-shadow: inset 0 -1px 0 0 var(--zl); color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; }
.fc-subday + .fc-prep > .pg-block:first-child > .pg-head { box-shadow: none; }

/* phones: three columns, the waiter's look */
@media (max-width: 700px) {
  .fc-page { --gut: 24px; }
  .fc-body { --h: calc(100cqw / 6); grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fc-day { align-items: center; padding: 10px 4px 8px; text-align: center; }
  .fc-day-n { font-size: 13px; line-height: 18px; }
  .fc-day-d { font-size: 12px; line-height: 16px; }
  .fc-day-v { margin-top: 4px; font-size: 20px; line-height: 26px; }
  .fc-day-r { display: none; }
  .fc-day-t { min-height: 16px; margin-top: 0; font-size: 11px; line-height: 16px; }
  .fc-spark { margin-top: 4px; padding: 0 4px; gap: 1px; }
  /* the answer: the day is named by its square above — its holiday or events and the words (18:00: less on the page) */
  .fc-verdict { padding: 14px var(--px) 14px; }
  .fc-page .fc-v-day { font-size: 20px; line-height: 26px; }
  .fc-page .fc-v-day .fc-v-name { display: none; }
  .fc-page .fc-v-day:not(:has(.fc-tag)) { display: none; }
  .fc-v-text { margin-top: 6px; font-size: 16px; line-height: 23px; }
  .fc-v-day:not(:has(.fc-tag)) + .fc-v-text { margin-top: 0; }
  /* the hours: 3 × 2 — the names a row at its top, the plot under them */
  .fc-hours { display: flex; flex-direction: column; }
  .fc-hours > .fc-side { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding-bottom: 0; }
  .fc-hours > * + * { box-shadow: none; }
  .fc-hours .fc-legend { margin: 0; }
  .fc-hours > .fc-main { flex: 1 1 auto; }
  .fc-plot { margin-top: 20px; }
  .fc-x { font-size: 11px; }
  /* the people: a row a role — its words, its shift under them */
  .fc-people > .fc-srow { display: flex; flex-direction: column; justify-content: center; padding: 6px var(--px); }
  .fc-people > .fc-srow > * { box-shadow: none; }
  .fc-people > .fc-srow + .fc-srow { box-shadow: inset 0 1px 0 0 var(--zl); }
  .fc-srow > .fc-side { padding: 0 0 4px; }
  .fc-srow > .fc-main { padding: 0; }
  .fc-seg, .fc-shift { height: 24px; min-height: 24px; }
  .fc-seg:is(.n2, .n3)::before { height: 24px; }
  .fc-seg b { font-size: 13px; }
  /* the events across, the prep, the order and the dishes under them side by side — a short name and a figure */
  .fc-link { padding: 8px 12px; }
  .fc-link.sp2 { grid-column: 1 / -1; padding: 8px calc(var(--px) + 24px) 8px var(--px); }
  .fc-link:not(.sp2)::after { display: none; }
  .fc-link .pc { display: none; }
  .fc-link .ph { display: inline; }
  .fc-link:not(.sp2) .fc-link-t { font-size: 15px; line-height: 20px; }
  .fc-link:not(.sp2) .fc-link-h { font-size: 13px; line-height: 18px; }
}

/* ---------- «Аналитика» whole (11 November, 03:26, the owner: «делай все остальные страницы бэка, но только чётко») ----------
   The forecast's own screens. «Заготовки» and «Блюда»: cells of the brand's five columns — the name (two lines at most),
   how much under it (a dish's likely range beside it, quieter), a line round each into its neighbour's; the last row's
   last cell on to the row's end. «Заказ поставщику»: the day and «Скопировать» a row of the five, the list a block from
   edge to edge — the page's head names it once. A phone: the cells rows — the name at the left, how much at the right. */
.fc-subpage > .fc-prep { display: flex; flex-direction: column; }
/* (13 November, the kitchen's check, 8) «На экран кухни»: a row as the day's — what the kitchen has of it, the key at
   its end */
.fc-prep-send { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: var(--cell-h, 56px); padding: var(--sp-2) var(--px); background: var(--surface); box-shadow: inset 0 -1px 0 0 var(--zl); }
.fc-prep-said { min-width: 0; color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; }
.fc-prep-send > .btn { flex: none; }
.fc-prep > .pg-block + .pg-block > .pg-head { box-shadow: none; }
.fc-cells { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; border-top: 1px solid var(--zl); list-style: none; background: var(--surface); }
.fc-cell { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; min-width: 0; min-height: 88px; padding: var(--sp-3) var(--px); box-shadow: inset -1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.fc-cell:nth-child(5n) { box-shadow: inset 0 -1px 0 0 var(--zl); }
.fc-cell-n { display: -webkit-box; overflow: hidden; color: var(--ink); font-size: var(--fs-md); line-height: 22px; hyphens: auto; -webkit-hyphens: auto; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fc-cell-v { display: flex; align-items: baseline; gap: 8px; color: var(--ink); font-family: var(--font-timer); font-size: 20px; font-weight: var(--fw-semibold); line-height: 26px; letter-spacing: -0.02em; white-space: nowrap; }
.fc-cell-v small { color: var(--ink-3); font-family: var(--font-ui); font-size: var(--fs-sm); font-weight: var(--fw-regular); letter-spacing: 0; }
.fc-cells > .fc-cell:last-child:nth-child(5n + 1) { grid-column: span 5; }
.fc-cells > .fc-cell:last-child:nth-child(5n + 2) { grid-column: span 4; }
.fc-cells > .fc-cell:last-child:nth-child(5n + 3) { grid-column: span 3; }
.fc-cells > .fc-cell:last-child:nth-child(5n + 4) { grid-column: span 2; }
.fc-cells > .fc-cell:last-child { box-shadow: inset 0 -1px 0 0 var(--zl); }
.fc-subpage > .fc-cells { border-top: 0; }
/* the order: the day and «Скопировать» */
.fc-order-keys > .fc-subday { grid-column: span 4; display: flex; align-items: center; box-shadow: inset 0 -1px 0 0 var(--zl); }
.fc-order-keys > .fc-subday:only-child { grid-column: 1 / -1; }
.fc-order tfoot td { border-top: 0; }
@media (max-width: 700px) {
  .fc-cells { grid-template-columns: minmax(0, 1fr); }
  .fc-cells > .fc-cell:last-child:nth-child(n) { grid-column: auto; }
  .fc-cell { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 6px var(--sx, 16px); box-shadow: inset 0 -1px 0 0 var(--zl); }
  .fc-cell:nth-child(5n) { box-shadow: inset 0 -1px 0 0 var(--zl); }
  .fc-cell-n { font-size: var(--fs-md); }
  .fc-cell-v { flex: none; font-size: var(--fs-md); line-height: 22px; }
  .fc-order-keys > .fc-subday { grid-column: span 2; aspect-ratio: auto; }
  .fc-order-keys > .dt-key { flex-direction: column; gap: 4px; padding: 0 var(--sp-2); font-size: var(--fs-sm); line-height: 18px; }
}
/* (a narrower computer: the days' squares a module's width but two half-rows of 90 high — their figures smaller, so
   the hours' picture keeps its room at the foot rather than being cut) */
@media (min-width: 701px) and (max-width: 1239px) {
  .fc-day { padding-top: var(--sp-3); }
  .fc-day-v { margin-top: 4px; font-size: 22px; line-height: 28px; }
  .fc-spark { margin-top: 6px; }
}

/* «Кассовые смены» after Quick Resto's (10 November, «Закрытые смены топ»): the chosen shift's row on the second surface
   with the accent's line at its left; its panel under the table — a head (the shift, when, who, ×), its tabs as an iOS
   segmented control on a row of their own, the tab's content from edge to edge; a refund struck out, the totals on the
   second surface. A phone: the shift its own screen. */
.cs-table td.cs-no { font-family: var(--font-timer); font-weight: var(--fw-semibold); letter-spacing: -0.03em; }
.cs-table tr.on > td { background: var(--surface-2); }
.cs-table tr.on > td:first-child { box-shadow: inset 3px 0 0 0 var(--accent); }
.cs-table tr.cs-open:not(.on) td { background: none; }
.xs-no { display: inline; }

.cs-panel { display: flex; flex-direction: column; min-width: 0; background: var(--surface); container-type: inline-size; }
/* (the list over it closes with its own line — the panel's head draws only the one under it) */
.cs-p-head { display: flex; align-items: center; gap: var(--sp-4); min-height: 72px; padding: var(--sp-3) var(--sp-2) var(--sp-3) var(--px); box-shadow: inset 0 -1px 0 0 var(--zl); }
.cs-p-head h2 { margin: 0; color: var(--ink); font-size: var(--fs-lg); font-weight: var(--fw-semibold); line-height: 24px; }
.cs-p-head p, .cs-p-when { margin: 2px 0 0; color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; }
.cs-p-x { flex: none; margin-left: auto; }
.cs-p-tabs { display: flex; align-items: center; min-height: 56px; padding: 0 var(--px); box-shadow: inset 0 -1px 0 0 var(--zl); }
.cs-p-when { padding: var(--sp-3) var(--px); box-shadow: inset 0 -1px 0 0 var(--zl); }
/* the tabs: an iOS segmented control, as «График | Таблица» of the reports — the track 36, the chosen part 32 */
:root .front-look .cs-p-tabs > .seg.cs-tabs {
  display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(max-content, 1fr); align-items: center; gap: 2px; height: 36px; min-height: 36px; padding: 2px;
  overflow: visible; border: 0; border-radius: var(--r-pill); background: var(--seg-track); box-shadow: none;
}
:root .front-look .cs-p-tabs > .seg.cs-tabs > .seg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; min-height: 32px; padding: 0 var(--sp-4); border: 0; border-radius: var(--r-pill);
  background: none; box-shadow: none; color: var(--ink); font-size: 13px; font-weight: var(--fw-medium); line-height: 1;
}
:root .front-look .cs-p-tabs > .seg.cs-tabs > .seg-btn.on {
  background: var(--seg-on); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / 0.14), 0 0 0 0.5px rgb(0 0 0 / 0.05); font-weight: var(--fw-semibold);
}
:root .front-look .cs-p-tabs > .seg.cs-tabs .seg-count { min-width: 0; height: auto; padding: 0; background: none; color: var(--ink-2); font-size: 13px; font-weight: var(--fw-regular); }

/* «Основное»: the shift's five figures, then three sections on the five columns (2 + 2 + 1) — on the module, as the
   figures over them: rows of half a module (the panel's width / 10), the band of the three whole squares, as many as the
   longest one needs (useBand, office-cash.jsx: --rows) */
.cs-main-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: calc(100cqw / 10); margin-left: -1px; }
.cs-main-grid > .cs-sec { grid-row: span var(--rows, 2); overflow: hidden; padding-top: 14px; padding-bottom: 14px; }
.cs-sec.sp3 { grid-column: span 3; }
.cs-sec.sp4 { grid-column: span 4; }
.cs-sec.sp5 { grid-column: 1 / -1; }
/* the drawer alone in the band (nothing paid out): its rows in two columns */
.cs-main-grid .cs-sec:is(.sp4, .sp5) > .cash-rows { display: block; columns: 2; column-gap: 48px; }
.cs-main-grid .cs-sec:is(.sp4, .sp5) > .cash-rows > .cash-row { break-inside: avoid; }
/* (the rows of a section compact, as a list in a square: an open shift's drawer — five rows — in one square's height) */
.cs-main-grid .cs-sec h3 { margin-bottom: 4px; }
.cs-main-grid .cash-row { min-height: 36px; }
.cs-sec { min-width: 0; padding: var(--sp-4) var(--px); background: var(--surface); box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.cs-sec.sp2 { grid-column: span 2; }
.cs-sec h3 { margin: 0 0 var(--sp-2); color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; }
.cs-sec .cash-rows .cash-row { padding-left: 0; padding-right: 0; }
.cs-note { margin: 0; padding: 0; color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; }
.cs-panel > .cs-note, .cs-pays-tab > .cs-note { padding: var(--sp-4) var(--px); }
.cs-pays-tab .cash-ask { display: none; }
.cs-pays-tab .cash-row { padding-left: var(--px); padding-right: var(--px); }

/* «Чеки»: a refund struck out and marked; the totals on the second surface */
.cs-bills tr.cs-ref td { color: var(--ink-3); text-decoration: line-through; }
.cs-ref-tag { display: inline-flex; align-items: center; height: 22px; margin-left: var(--sp-2); padding: 0 8px; border-radius: var(--r-pill); background: var(--bad-soft); color: var(--bad); font-family: var(--font-ui); font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: 0; text-decoration: none; vertical-align: middle; }
.cs-bills tr.cs-ref td .cs-ref-tag { text-decoration: none; }
:is(.cs-bills, .cs-stock) tfoot td { height: 52px; background: var(--surface-2); color: var(--ink); font-weight: var(--fw-semibold); }
:is(.cs-bills, .cs-stock) tfoot .xs-line { display: none; }

@media (max-width: 700px) {
  .xs-no { display: none; }
  .cs-main-grid { display: block; margin-left: 0; }
  .cs-sec { box-shadow: inset 0 -1px 0 0 var(--zl); }
  /* (12 November, 02:41, the owner on «Должно быть сейчас»: «разное расстояние сверху и снизу») a section's last row ends
     on the section's line — as much room under its words as over them */
  .cs-main-grid > .cs-sec:has(> .cash-rows:last-child) { padding-bottom: 0; }
  /* (the visual audit of the lines, 12 November) the drawer's rows one column on a phone — two had cut its words and left
     a line hanging at the second column's top */
  .cs-main-grid .cs-sec:is(.sp4, .sp5) > .cash-rows { columns: auto; }
  .cs-p-tabs { padding: var(--sp-2) var(--px); }
  :root .front-look .cs-p-tabs > .seg.cs-tabs { width: 100%; grid-auto-columns: minmax(0, 1fr); }
  :root .front-look .cs-p-tabs > .seg.cs-tabs > .seg-btn { padding: 0 4px; }
  /* the totals' row on a phone: its name, the sum at the right, the ways under them */
  .front-look :is(.cs-bills, .cs-stock) tfoot tr { display: flex; flex-wrap: wrap; position: relative; padding: var(--sp-3) var(--sx, 16px); background: var(--surface-2); }
  .front-look :is(.cs-bills, .cs-stock) tfoot td { display: block; height: auto; padding: 0; border: 0; background: none; font-size: var(--fs-md); line-height: 22px; }
  .front-look :is(.cs-bills, .cs-stock) tfoot td:not(:first-child):not(.xs-end):not(.xs-line):not(:last-child) { display: none; }
  .front-look :is(.cs-bills, .cs-stock) tfoot td.xs-end, .front-look .cs-stock tfoot td:last-child { position: absolute; top: var(--sp-3); right: var(--sx, 16px); }
  .front-look .cs-bills tfoot td.xs-line { display: block; flex: 0 0 100%; color: var(--ink-2); font-size: var(--fs-sm); font-weight: var(--fw-regular); line-height: 20px; }
}

/* «Чеки» after Quick Resto's (11 November, 01:21, the owner: «Смотри, как устроены чеки — что берем?»; 01:24 «Да»): the
   bills' figures squares — the bills, «Скидки» and «Чаевые» keys of the list —, the search a row across, the list: the
   bill's number first, its food cost last. A bill's panel under its row as a dish's (99-dishes.css: the head a row of the
   five columns, the tabs an iOS segmented control, the second surface, the accent's band from the row to the panel's
   end); its tables' totals on the second surface. A phone: the bill its own screen. */
.ck-find { display: flex; align-items: center; gap: var(--sp-2); min-height: 56px; padding: 0 var(--sp-3) 0 var(--px); background: var(--surface); color: var(--ink-3); cursor: text; box-shadow: inset 0 -1px 0 0 var(--zl); }
.ck-find > svg { flex: none; }
.ck-find input { flex: 1 1 auto; width: 100%; min-width: 0; height: 54px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: var(--fs-md); }
.ck-find:focus-within { box-shadow: inset 0 -2px 0 0 var(--accent); }
.checks-table td.ck-no { font-family: var(--font-timer); font-weight: var(--fw-semibold); letter-spacing: -0.03em; }
@media (min-width: 641px) {
  .checks-table th.c-no { width: clamp(96px, 9vw, 140px); }
  .checks-table th.c-fc { width: clamp(88px, 8vw, 124px); }
}
.checks-table tr.on > td { background: var(--surface-2); }
/* (the accent's band at the chosen row's left, as a dish's — the panel's carries it on to its end) */
.checks-table tr.on > td:first-child { position: relative; }
.checks-table tr.on > td:first-child::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.front-look .checks-table tr.dt-panel-row > td { height: auto; padding: 0; overflow: visible; white-space: normal; background: var(--surface-2); border-bottom: 1px solid var(--line-2); }
.checks-table tr.dt-panel-row:hover > td { background: var(--surface-2); }
/* «Позиции»: a dish's options and its discount under its name; a cancelled one struck out, «отменено» by it */
.bp-lines td > .cell-sub { display: block; }
.bp-lines tr.bp-void td { color: var(--ink-3); }
.bp-lines tr.bp-void .bp-n { text-decoration: line-through; }
.bp-lines .cs-ref-tag, .bp-pays .cs-ref-tag { text-decoration: none; }
.bp-pays tr.cs-ref td { color: var(--ink-3); }
:is(.bp-lines, .bp-use, .bp-pays) tfoot td { height: 52px; background: var(--surface-2); color: var(--ink); font-weight: var(--fw-semibold); }
:is(.bp-lines, .bp-use, .bp-pays) tfoot .xs-line { display: none; }
.dt-panel-row :is(.bp-lines, .bp-use, .bp-pays) tfoot td { background: color-mix(in oklab, var(--ink) 4%, transparent); }

@media (max-width: 700px) {
  .ck-find { padding: 0 var(--sx, 16px); }
  /* (a row's name on a phone: where and the bill's number in the letters of a row, not of the figures) */
  .checks-table td.ck-no { font-family: var(--font-ui); letter-spacing: 0; }
  .front-look .checks-table td.xs-end .ck-fc { display: block; font-size: var(--fs-sm); font-weight: var(--fw-regular); line-height: 18px; }
  .bp-lines td > .cell-sub:not(.xs-only) { display: none; }
  /* the totals' row on a phone: its name, the sum at the right, the rest under them */
  .front-look :is(.bp-lines, .bp-use, .bp-pays) tfoot tr { display: flex; flex-wrap: wrap; position: relative; padding: var(--sp-3) var(--sx, 16px); background: var(--surface-2); }
  .front-look :is(.bp-lines, .bp-use, .bp-pays) tfoot td { display: block; height: auto; padding: 0; border: 0; background: none; font-size: var(--fs-md); line-height: 22px; }
  .front-look :is(.bp-lines, .bp-use, .bp-pays) tfoot td:not(:first-child):not(.xs-end):not(.xs-line) { display: none; }
  .front-look :is(.bp-lines, .bp-use, .bp-pays) tfoot td.xs-end { position: absolute; top: var(--sp-3); right: var(--sx, 16px); }
  .front-look :is(.bp-lines, .bp-use, .bp-pays) tfoot td.xs-line { display: block; flex: 0 0 100%; color: var(--ink-2); font-size: var(--fs-sm); font-weight: var(--fw-regular); line-height: 20px; }
}

/* «Консоль RUVO» (server 0.110; the owner, 13 November: «Консоль Руво — да, делаем, доступ пока только у меня»): the
   clients a list of rows from edge to edge — the name, its numbers under it, its status at the right; a client's blocks
   the same rows; its keys a row of three (one under another on a phone); the PIN and the codes as the devices' code */
.cn-list { margin: 0; padding: 0; list-style: none; }
.cn-list > li { background: var(--surface); box-shadow: inset 0 1px 0 0 var(--zl, var(--line-2)); }
.cn-row { display: flex; align-items: center; gap: var(--sp-3); width: 100%; min-height: 64px; padding: var(--sp-3) var(--px, var(--sp-4)); border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.cn-row:active { background: var(--surface-3); }
.cn-row > .ic { flex: none; color: var(--ink-3); }
.cn-main { display: flex; flex: 1 1 auto; flex-direction: column; gap: 2px; min-width: 0; }
.cn-name { font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; overflow-wrap: anywhere; }
.cn-sub, .cn-note { color: var(--ink-2); font-size: var(--fs-sm); line-height: 18px; }
.cn-st { display: flex; flex: none; flex-direction: column; align-items: flex-end; gap: 4px; max-width: 45%; text-align: right; }
.cn-line { display: flex; align-items: center; gap: var(--sp-3); min-height: 56px; padding: var(--sp-2) var(--px, var(--sp-4)); }
.cn-line > .cn-name { flex: 1 1 auto; }
.cn-line > .dt-key { flex: none; }
.cn-statusrow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); padding: var(--sp-3) var(--px, var(--sp-4)); background: var(--surface); box-shadow: inset 0 1px 0 0 var(--zl, var(--line-2)); }
.cn-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--surface); }
.cn-keys > .dt-key { min-height: 56px; box-shadow: inset 0 1px 0 0 var(--zl, var(--line-2)), inset 1px 0 0 0 var(--zl, var(--line-2)); }
.cn-keys > .dt-key:first-child { box-shadow: inset 0 1px 0 0 var(--zl, var(--line-2)); }
.cn-invite { margin: 0; padding: var(--sp-3); border-radius: var(--r-md); background: var(--surface-2); color: var(--ink); font-family: var(--font-ui); font-size: var(--fs-sm); line-height: 20px; white-space: pre-wrap; }
@media (max-width: 700px) {
  .cn-keys { grid-template-columns: minmax(0, 1fr); }
  .cn-keys > .dt-key, .cn-keys > .dt-key:first-child { box-shadow: inset 0 1px 0 0 var(--zl, var(--line-2)); }
  .cn-st { max-width: 50%; }
}

/* «Блюда» after Quick Resto's logic (10 November, ui/office-dishes.jsx): the menu one table, its folders a tree — a
   folder a row on the surface, its station's colour a band at its left, the chevron, the name, how many, the average
   food cost in its column; its dishes under it, a little in, the band paler, a small picture before the name. The chosen
   dish on the second surface, the accent's band; its panel under its row: a head (the picture, the name, what it is,
   «Изменить», ×), the tabs an iOS segmented control on a row of their own (as «Кассовые смены»'), the tab from edge to
   edge — its figures squares of the module. A phone: the waiter's rows, a dish its own screen. */
/* (11 November, 01:17, the owner: «Давай B») the top: the menu's figures squares of the module, each a filter of the list;
   under them the keys a row of the five columns — the search a column, each key a column, «+ Блюдо» the accent's; a line
   at each one's right and under the row, the figures' line over it. A phone: two rows of half a square — the search two
   columns and «+ Блюдо», then the three keys, the icon over the name */
.dt-keys { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--surface); }
.dt-keys.few { box-shadow: inset 0 1px 0 0 var(--zl); }
.dt-keys.few > :first-child { grid-column: span 4; }
/* (a cell's line at its left, as the squares' over it — the audit: a pixel aside of theirs at its right) */
/* (12 November: the keys' row a cell of the grid's height — its line on the sidebar's line when it is a page's first row) */
.dt-keys > * { min-width: 0; min-height: var(--cell-h, 56px); box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.dt-keys > :first-child { box-shadow: inset 0 -1px 0 0 var(--zl); }
/* (the visual audit, 11 November) a menu's keys with no figures over them (an empty menu): their line over them drawn by
   the cells themselves — the row's own lay under their ground */
.dt-keys.few > * { box-shadow: inset 1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.dt-keys.few > :first-child { box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.dt-keys.few > .dt-key.acc { box-shadow: none; }
.dt-block.dt-none { display: none; }
.dt-key { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); padding: 0 var(--sp-3); border: 0; border-radius: 0; background: var(--surface);
  color: var(--ink); font: inherit; font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 20px; white-space: nowrap; cursor: pointer; }
.dt-key:hover { background: var(--surface-2); }
.dt-key:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.dt-key > svg { flex: none; color: var(--ink-2); }
.dt-keys > .dt-key.acc { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.dt-key.acc > svg { color: currentColor; }
.dt-key.acc:hover { background: color-mix(in oklab, var(--accent) 88%, var(--ink)); }
.dt-search { display: flex; align-items: center; gap: var(--sp-2); padding: 0 var(--sp-3) 0 var(--px); background: var(--surface); color: var(--ink-3); cursor: text; }
.dt-search > svg { flex: none; }
.dt-search input { flex: 1 1 auto; width: 100%; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: var(--fs-md); }
.dt-keys > .dt-search:focus-within { box-shadow: inset 0 -2px 0 0 var(--accent); }

/* (a narrower computer, the squares narrower: a name and a line two lines each; the filters' line out, as a phone's) */
@media (min-width: 701px) and (max-width: 1239px) {
  #dt-nums .pg-num-l, #dt-nums .pg-num-s { display: -webkit-box; white-space: normal; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  #dt-nums > :is(#dt-high, #dt-notech, #dt-hidden) .pg-num-s { display: none; }
}

/* the columns: the dish takes the rest */
@media (min-width: 641px) {
  .dish-tree th.c-on, .dish-tree th.c-dlv { width: clamp(80px, 7vw, 124px); }
  .dish-tree th.c-st { width: clamp(72px, 6vw, 110px); }
  .dish-tree th.c-name { width: auto; }
}
.dish-tree td.dt-name { position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dish-tree td.dt-name::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--band, var(--s1)); }
.dish-tree tr.dt-dish td.dt-name::before { opacity: 0.4; }
.dish-tree tr.dt-dish.on td.dt-name::before { opacity: 1; background: var(--accent); }
.dish-tree tr.dt-dish.on > td { background: var(--surface-2); }
.front-look .dish-tree tr.dt-fold > td.dt-name { padding-left: calc(var(--px) + 4px); }
.front-look .dish-tree tr.dt-dish > td.dt-name { padding-left: calc(var(--px) + 34px); }
.dt-chev { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; color: var(--ink-2); vertical-align: middle; }
.front-look .dish-tree .dt-fn { color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); vertical-align: middle; }
.dt-n { margin-left: 10px; color: var(--ink-2); font-size: var(--fs-sm); font-weight: var(--fw-regular); vertical-align: middle; }
.front-look .dish-tree tr.dt-dish .strong { font-weight: var(--fw-regular); vertical-align: middle; }
.dish-tree tr.dt-dish .st { margin-left: var(--sp-2); vertical-align: middle; }
.front-look .dish-tree tr.row-hidden .strong { color: var(--ink-3); }
.dt-pic { display: inline-block; width: 28px; height: 28px; margin: -6px 10px -6px 0; overflow: hidden; border-radius: 8px; background: var(--surface-2); vertical-align: middle; }
.dt-pic.none { background: var(--surface-3); }
.dt-pic :is(img, svg) { display: block; width: 100%; height: 100%; object-fit: cover; }
.dt-yes { display: inline-flex; vertical-align: middle; }
.dish-tree tr.dt-fold > td { font-variant-numeric: tabular-nums; }

/* the panel under the dish's row — (11 November, 01:07, the owner: «При раскрытии техкарты всё смешивается — надо
   выделять как-то») the dish's row and its panel one piece on the second surface, the accent's band at their left from
   the row to the panel's end; the rows round them stay on the first: the open dish stands out of the list */
.front-look .dish-tree tr.dt-panel-row > td { height: auto; padding: 0; overflow: visible; white-space: normal; background: var(--surface-2); border-bottom: 1px solid var(--line-2); }
.dish-tree tr.dt-panel-row:hover > td { background: var(--surface-2); }
.dp { display: flex; flex-direction: column; min-width: 0; background: var(--surface); text-align: left; }
.dt-panel-row .dp { position: relative; background: var(--surface-2); }
.dt-panel-row .dp::before { content: ''; position: absolute; z-index: 2; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); pointer-events: none; }
.dt-panel-row .dp :is(.ptable, .tbl-data th, .tbl-data td, .pg-block, .pg-head) { background: transparent; }
.dt-panel-row .dp .tbl-data th { background: color-mix(in oklab, var(--ink) 4%, transparent); }
.dt-panel-row .dp .pg-num.pg-warn { background: var(--warn-soft); }
.dp-pic { flex: none; width: 52px; height: 52px; overflow: hidden; border-radius: 12px; background: var(--surface-2); }
.dp-pic.none { background: var(--surface-3); }
.dp-pic :is(img, svg) { display: block; width: 100%; height: 100%; object-fit: cover; }
.dp-t { flex: 1 1 auto; min-width: 0; }
.dp-t h2 { margin: 0; overflow: hidden; color: var(--ink); font-size: var(--fs-lg); font-weight: var(--fw-semibold); line-height: 24px; white-space: nowrap; text-overflow: ellipsis; }
.dp-t p, .dp-when { margin: 2px 0 0; overflow: hidden; color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; white-space: nowrap; text-overflow: ellipsis; }
/* (11 November, 01:08, the owner: «Кнопка изменить тоже не отсюда»; 01:07 — «Изменить группы — кнопка как не отсюда»)
   a key a column of the module's five — a cell with a line at its left, as the page head's; (02:09: «Зачем нам дублировать
   информацию строкой над раскрывшейся информацией?») no head over the panel: the row over it says what it is — «Изменить»
   and «Закрыть» the last two columns of the tabs' row (a narrower computer: the tabs four columns, the second key out — a
   tap on the row shuts it) */
.dp-tabs.dp-tabkeys { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; min-height: 56px; padding: 0; }
.dp-tabkeys > .seg { grid-column: 1 / span 3; align-self: center; justify-self: start; max-width: calc(100% - var(--px)); margin-left: var(--px); }
.dp-tabkeys.one > .seg { grid-column: 1 / span 4; }
.dp-tabkeys.none > .seg { grid-column: 1 / -1; }
:root .front-look .dp-tabkeys > .seg.cs-tabs { grid-auto-columns: max-content; }
:root .front-look .dp-tabkeys > .seg.cs-tabs > .seg-btn { padding: 0 14px; }
@media (min-width: 701px) and (max-width: 1239px) {
  .dp-tabkeys:not(.one):not(.none) > .seg { grid-column: 1 / span 4; }
  .dp-tabkeys:not(.one):not(.none) > .dp-x { display: none; }
}
.dp-key { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); min-width: 0; min-height: 56px; padding: 0 var(--sp-3); border: 0; border-radius: 0;
  background: transparent; color: var(--ink); font: inherit; font-size: var(--fs-md); font-weight: var(--fw-semibold); white-space: nowrap; cursor: pointer; box-shadow: inset 1px 0 0 0 var(--zl); }
.dp-key:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); }
.dp-key:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.dp-key > svg { flex: none; color: var(--ink-2); }
.dp-keyrow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; box-shadow: inset 0 1px 0 0 var(--zl); }
.dp-keyrow > .dp-note { grid-column: 1 / span 4; align-self: center; }
.dp-keyrow:first-child { box-shadow: none; }
/* (a list's last row draws the line over the key's row: one line, not two a pixel apart) */
.table-wrap + .dp-keyrow { box-shadow: none; }
/* (the tabs' line is the figures' own top line; under the panel the row's line — the figures draw none of their own) */
.dp > .dp-tabs:has(+ :is(.pg-nums, .dn-tab, .dp-stock-tab)) { box-shadow: none; }
.dt-panel-row .dp > .pg-nums:last-child > [data-rz] { --rim: 0 0 #0000; }
.dp-when { margin: 0; padding: var(--sp-3) var(--px); white-space: normal; box-shadow: inset 0 -1px 0 0 var(--zl); }
.dp-note { margin: 0; padding: var(--sp-4) var(--px); color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; white-space: normal; }
/* the figures: squares of the panel's five columns (a phone's three) */
.dp .pg-nums { margin: 0; }
/* «Где продаётся» (02:38, the owner: «Тут нужен переход, чтобы быстро поменять»): each place a row — its name, its switch,
   at the square's bottom; off the menu — the till's off, the others dim; a phone: the sheet's rows from edge to edge */
.pg-ctl { display: flex; flex: 1 1 auto; align-items: flex-end; width: 100%; min-height: 0; margin-top: var(--sp-3); }
.dp-sells { display: flex; flex-direction: column; gap: 2px; width: 100%; }
.dp-sell { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); min-height: 30px; color: var(--ink); font-size: var(--fs-sm); font-weight: var(--fw-regular); line-height: 18px; cursor: pointer; }
.dp-sell.off .dp-sell-n { color: var(--ink-3); }
.dp-sells:not(.dp-rows) .dp-sell .switch-ui { width: 36px; height: 22px; }
.dp-sells:not(.dp-rows) .dp-sell .switch-ui::after { top: 2px; left: 2px; width: 18px; height: 18px; }
.dp-sells:not(.dp-rows) .dp-sell .switch input:checked + .switch-ui::after { transform: translateX(14px); }
.dp-sells.dp-rows { gap: 0; }
.dp-sells.dp-rows > .dp-sell { min-height: 56px; padding: 0 var(--edge, var(--sx)); font-size: var(--fs-md); box-shadow: inset 0 -1px 0 0 var(--zl); }
/* «Модификаторы»: a group a row of its own on the second surface, its options under it */
.front-look .dp-mods tr.dp-grp > td { height: 48px; background: var(--surface-2); color: var(--ink); }
.front-look .dp-mods tr.dp-grp .strong { font-size: var(--fs-md); }
/* «Остаток»: the product there is the least of first */
.front-look .dp-stock tr.dp-lim > td { font-weight: var(--fw-semibold); }
/* «Техкарта» in the panel: the editor without its card — the lines from edge to edge, the total, the keys */
/* (12 November, 04:02, the owner on a dish's recipe on an iPhone: a second line under «Исходная техкарта | Сохранить»,
   a strip between them) row under row, no gaps: the lines, «Добавить продукт» with the portion's cost, what the options
   change, the keys' row — the panel ends on the keys' row */
.front-look .tech-editor.tech-bare { display: flex; flex-direction: column; gap: 0; min-height: 0; padding: 0 var(--px); border: 0; background: var(--surface); }
@media (min-width: 701px) {
  /* (no lines yet: the note, then «Добавить продукт» — a line between them) */
  .front-look :is(.card.tech-editor, .tech-bare) > .muted.pad-b + .lines-bar { box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
}
.front-look .tech-bare > .table-wrap { margin: 0 calc(-1 * var(--px)); }
.front-look .tech-bare > .muted.pad-b { padding-top: var(--sp-4); }

/* «Пищевая ценность»: the three's dots — the legend of the calories' picture; the products without figures a warning
   row; their tag */
.dn-dot { display: inline-block; flex: none; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: var(--s1); vertical-align: 1px; }
.dn-dot.s2 { background: var(--s2); }
.dn-dot.s3 { background: var(--s3); }
.dn-miss { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); min-height: 56px; padding: var(--sp-2) var(--px); background: var(--warn-soft); color: var(--ink); font-size: var(--fs-sm); line-height: 20px; box-shadow: inset 0 -1px 0 0 var(--zl); }
.dn-miss > span { flex: 1 1 320px; min-width: 0; }
.dn-miss b { font-size: var(--fs-sm); }
.dn-tag { margin-left: var(--sp-2); vertical-align: middle; }
.dn-tab .pg-block .pg-head { box-shadow: none; }
.front-look .dn-table tfoot td { height: 52px; background: var(--surface-2); color: var(--ink); font-weight: var(--fw-semibold); }

/* the reference for many products: a product a row — its name, the foods to choose, the figures */
.nutr-fill > li { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 2fr); gap: 6px var(--sp-3); align-items: center; padding: var(--sp-2) 0; box-shadow: inset 0 -1px 0 0 var(--zl, var(--line)); }
.nutr-fill-n { display: flex; flex-direction: column; min-width: 0; }
.nutr-fill-n b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nutr-fill-v { grid-column: 2; color: var(--ink-2); }
.nutr-fill .chip-row { gap: 6px; }
/* (the four on one line, each a quarter) */
.front-look .form-section > .form-row.nutr-row > .field { flex: 1 1 0; min-width: 0; }
/* (15 November, the brand book's robot: «Ugljeni hidrati, g» on two lines put its box lower than the other three) a
   name on two lines keeps the four boxes level: the names at the top, the boxes at the foot of the row's height */
.front-look .form-section > .form-row.nutr-row { align-items: stretch; }
.front-look .form-section > .form-row.nutr-row > .field { display: flex; flex-direction: column; justify-content: space-between; }
.nutr-guess .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 700px) {
  /* the filters' squares: the figure and the name — their line under the figure is the computer's */
  #dt-nums > :is(#dt-high, #dt-notech, #dt-hidden) .pg-num-s { display: none; }
  /* the keys: two rows of half a square — the search two columns and «+ Блюдо», then «Фото пачкой», «Папки»,
     «Техкарты», the icon over the name */
  .dt-keys { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dt-keys > * { min-height: 0; aspect-ratio: 2 / 1; }
  .dt-keys > .dt-search { grid-column: span 2; aspect-ratio: 4 / 1; padding: 0 var(--sx, 16px); }
  .dt-keys > .dt-key.acc { order: -1; grid-row: 1; grid-column: 3; }
  .dt-keys > .dt-search { order: -2; }
  /* (the new one's key too: its name under its icon — «+ Полуфабрикат» does not fit a third of a phone on one line) */
  .dt-keys > .dt-key { flex-direction: column; gap: 4px; padding: 0 var(--sp-2); font-size: var(--fs-sm); line-height: 18px; }
  .dt-keys > .dt-key > svg { width: 22px; height: 22px; }
  /* (the second row's first key at the screen's left edge: no line there) */
  .dt-keys > #bulk-photos, .dt-keys.few > #dt-folders { box-shadow: inset 0 -1px 0 0 var(--zl); }
  .dt-keys.few > :first-child { grid-column: span 2; }
  /* the rows: a folder its chevron, its name, how many, the food cost at the right; a dish its picture and name, the
     cost under them, the price at the right with the food cost under it */
  .front-look .dish-tree.list-rows tr.dt-fold { min-height: 52px; align-items: center; padding-left: var(--sx, 16px); }
  .front-look .dish-tree.list-rows tr.dt-fold > td.dt-name { display: flex; align-items: center; padding-left: 0; }
  .front-look .dish-tree.list-rows tr.dt-dish { padding-left: calc(var(--sx, 16px) + 30px); }
  .front-look .dish-tree.list-rows tr.dt-dish > td.dt-name { display: flex; align-items: center; padding-left: 0; overflow: hidden; }
  .front-look .dish-tree.list-rows tr.dt-dish > td.dt-name .strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .front-look .dish-tree.list-rows tr.dt-dish > td.xs-line { padding-left: 38px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .front-look .dish-tree.list-rows td.xs-end .dt-fc { display: block; font-size: var(--fs-sm); font-weight: var(--fw-regular); line-height: 18px; }
  .dt-pic { margin: 0 10px 0 0; }
    .dp-keyrow { grid-template-columns: minmax(0, 1fr); }
  .dp-keyrow > .dp-note { grid-column: 1; }
  .dp-keyrow > .dp-key { min-height: 52px; box-shadow: inset 0 1px 0 0 var(--zl); }
  .nutr-fill > li { grid-template-columns: minmax(0, 1fr); }
  .nutr-fill-v { grid-column: 1; }
  .front-look .dn-table tfoot tr { min-height: 64px; background: var(--surface-2); }
  .front-look .dn-table tfoot td.xs-line { color: var(--ink-2); font-weight: var(--fw-regular); }
}

/* the dish's card (11 November, 04:20, the owner: «Да»): the photo a square of the card's three columns right under its
   head, its key the other two columns of the square's height — with a photo there, «Заменить» and the red «Удалить», half
   its height each; the names' cells under it, their line its own */
.front-look .sheet-body > .dish-pic-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); margin: calc(-1 * var(--sheet-top, var(--sp-5))) calc(-1 * var(--edge)) 0; background: var(--surface); }
.front-look .dish-pic-row > .dish-photo-img { grid-row: 1 / span 2; grid-column: 1; display: grid; place-items: center; width: auto; height: auto; aspect-ratio: 1; overflow: hidden; border: 0; border-radius: 0; background: var(--surface-2); }
.front-look .dish-pic-row > .dish-photo-img .dish-photo-none { padding: 0 var(--sp-2); color: var(--ink-3); font-size: var(--fs-sm); text-align: center; }
.dish-pic-row > .dish-pic-key { grid-column: 2 / span 2; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 0; margin: 0; padding: var(--sp-3) var(--sp-4);
  border: 0; border-radius: 0; background: var(--surface); color: var(--accent); font: inherit; font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; text-align: center; cursor: pointer; box-shadow: inset 1px 0 0 0 var(--zl); }
.dish-pic-row.has > .dish-pic-key { grid-row: auto; flex-direction: row; gap: var(--sp-2); }
.dish-pic-row.has > .dish-pic-key + .dish-pic-key { box-shadow: inset 1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl); }
.dish-pic-row > .dish-pic-key:hover { background: var(--surface-2); }
.dish-pic-row > .dish-pic-key:focus-within, .dish-pic-row > .dish-pic-key:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.dish-pic-row > .dish-pic-key.bad { color: var(--bad); }
.dish-pic-s { color: var(--ink-3); font-size: var(--fs-sm); font-weight: var(--fw-regular); line-height: 18px; }
.front-look .sheet-body > .dish-pic-row + .form-row { margin-top: calc(1px - var(--gap)); }
/* the recipe a row of the card after the folder, the station and the time: «Техкарта» at its left, what it has at its right */
.front-look .sheet-body > .form-row + .tech-link, .front-look .sheet-body > .new-folder + .tech-link { margin-top: calc(-1 * var(--gap)); }
.tech-link-l { flex: 1 1 auto; min-width: 0; color: var(--ink); font-size: var(--fs-md); }
.tech-link-v { flex: none; color: var(--ink-2); font-size: var(--fs-md); }
/* a new folder: its field a row of the card under the folder's, «Создать» the accent's key, «Отмена» a quiet one */
.front-look .sheet-body > .new-folder { margin: calc(1px - var(--gap)) calc(-1 * var(--edge)) 0; padding: var(--sp-3) var(--edge); background: var(--surface); box-shadow: inset 0 -1px 0 0 var(--zl); }
.fld-btn.quiet { background: var(--surface-2); color: var(--ink); }
.fld-btn.quiet:hover:not(:disabled) { background: color-mix(in oklab, var(--surface-2) 88%, var(--ink)); }
/* (a phone: a modifier group's band the row's whole width — its shade on the row, not on its cell inside the row's
   margins) */
@media (max-width: 700px) {
  /* (15 November, the brand book's robot) the dish's squares and «Подача» under them: the line between them */
  .front-look .dp > .pg-nums + .dp-mods-tab { box-shadow: inset 0 1px 0 0 var(--zl); }
  .front-look .dp-mods tr.dp-grp { align-items: center; min-height: 48px; padding-right: var(--sx, 16px); background: var(--surface-2); }
  .front-look .dp-mods tr.dp-grp > td { height: auto; background: none; }
}
/* (no recipe: the key's line the accent's — what pressing it does) */
#dp-notech .pg-num-s { color: var(--accent); }
/* a narrower computer (the visual check at 1024): the dish's squares keep what fits their height — the cost without its
   two dearest lines, the sales without the days' bars, «Где продаётся» its switches without the figure over them, the
   price's delivery on two lines */
@media (min-width: 701px) and (max-width: 1239px) {
  #dp-main > #dp-cost .pg-pic, #dp-main > #dp-sold :is(.pg-pic, .pg-by) { display: none; }
  #dp-main > #dp-where .pg-num-v { display: none; }
  #dp-main > .pg-num .pg-num-s:not(.pg-by) { white-space: normal; }
}

/* The fields in the brand's look (11 November, 02:08–02:10, the owner on «Фото пачкой», «Новая папка», «Техкарты»: «Не в
   нашем стиле»; on a dish's price: «Блок изменения цены должен быть скруглённым»). A field that is no cell of a form — in a
   table's row, on its own in a sheet — is a rounded block a shade apart, no frame (as «События дня»' since 10 November,
   15:34); the accent's ring while it is typed in or open, the red one when it is wrong. A key beside it the same block, the
   accent's. A place to drop photos a big rounded block. The form's own cells (a dish's card) stay cells of their grid. */
.front-look .tbl-data :is(.cell-input, .line-input, .select),
.front-look :is(.fld-box, .folder-names input, .bulk-row .select) {
  height: 40px; border: 0; border-radius: 10px; background: var(--surface-2); box-shadow: none; color: var(--ink); font-size: var(--fs-md);
}
.front-look .tbl-data :is(.cell-input, .line-input), .front-look :is(.fld-box, .folder-names input) { padding: 0 12px; }
.front-look .tbl-data .select, .front-look .bulk-row .select { padding: 0 10px 0 12px; }
.front-look .tbl-data :is(.cell-input, .line-input):focus, .front-look :is(.fld-box, .folder-names input):focus,
.front-look :is(.tbl-data, .bulk-row) .select:is(.open, :focus-visible) { box-shadow: 0 0 0 2px var(--accent); outline: 0; }
.front-look .tbl-data .cell-input:is(.bad, [aria-invalid="true"]), .front-look .fld-box[aria-invalid="true"] { box-shadow: 0 0 0 2px var(--bad); }
.front-look .tbl-data :is(.cell-input, .line-input):disabled { background: transparent; color: var(--ink-3); }
.front-look :is(.fld-box, .folder-names input)::placeholder { color: var(--ink-3); }
/* the dishes' prices are read first: the value alone until its row is pointed at, then its block — a shade apart from the
   row's own (the pointed row is on the second surface) */
.front-look .menu-table > tbody > tr > td > .cell-input { background: transparent; }
.front-look .menu-table > tbody > tr:hover > td > .cell-input, .front-look .menu-table > tbody > tr > td > .cell-input:focus { background: var(--surface); }
.front-look .dt-panel-row .tbl-data :is(.cell-input, .line-input, .select) { background: var(--surface); }

/* a field on its own: its name over it, the block, its key at its right */
.fld-add { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin: 0; }
.fld-add > .fld-l { color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; }
.fld-line { display: flex; align-items: stretch; gap: 8px; }
.fld-line > .fld-box { flex: 1 1 0%; width: 0; min-width: 0; height: 44px; }
.fld-btn { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 16px; border: 0; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-size: var(--fs-md); font-weight: var(--fw-semibold); white-space: nowrap; cursor: pointer; }
.fld-btn:hover:not(:disabled) { background: color-mix(in oklab, var(--accent) 88%, var(--ink)); }
.fld-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fld-btn:disabled { background: var(--surface-2); color: var(--ink-3); cursor: default; }

/* «Папки меню»: the folders rows from edge to edge, a line under each; the names blocks, the counts under them */
.front-look .sheet-body > .folders { margin: 0 calc(-1 * var(--edge, var(--sx))); border: 0; border-radius: 0; box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look .folders > .folder { padding: 12px var(--edge, var(--sx)); border-bottom: 0; box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .folder-names input { width: 100%; min-width: 0; }
.front-look .folder-names input:first-child { font-weight: var(--fw-semibold); }
.front-look .folder-n { padding-left: 12px; }
.front-look .folder-act .icon-btn { border-radius: 10px; }
/* (a phone: the two names one over the other, each the row's width) */
@media (max-width: 700px) { .front-look .folder-names { grid-template-columns: minmax(0, 1fr); } }

/* «Фото пачкой»: the place to drop them — a big rounded block a shade apart; the rules under it in a footnote's letters;
   the photos rows from edge to edge, a line under each */
.fld-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 152px; padding: 20px; border-radius: 14px;
  background: var(--surface-2); color: var(--ink); text-align: center; cursor: pointer; }
.fld-drop:hover, .fld-drop.over { background: color-mix(in oklab, var(--surface-2) 88%, var(--ink)); }
.fld-drop.over { box-shadow: 0 0 0 2px var(--accent); }
.fld-drop:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.fld-drop > svg { color: var(--accent); }
.fld-drop > b { font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; }
.fld-drop > span { color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; }
.fld-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.fld-note { margin: 0; color: var(--ink-3); font-size: var(--fs-sm); line-height: 20px; }
.front-look .sheet-body > .bulk-count { margin: 0; color: var(--ink-2); }
.front-look .sheet-body > .bulk-list { gap: 0; margin: 0 calc(-1 * var(--edge, var(--sx))); box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look .bulk-list > .bulk-row { grid-template-columns: 56px minmax(0, 1fr) auto; padding: 12px var(--edge, var(--sx)); border: 0; border-radius: 0; background: var(--surface); box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .bulk-list > .bulk-row.ok { background: var(--surface); }
.front-look .bulk-list > .bulk-row :is(.bulk-thumb) { width: 56px; height: 56px; border-radius: 10px; }
.front-look .bulk-list > .bulk-row.none .bulk-state { color: var(--warn); }

/* «Техкарты»: a line's cost level with its fields (the fields' 40 at the cells' top) */
@media (min-width: 701px) { .front-look .tech-table td.cost { padding-top: var(--sp-3); line-height: 40px; } }

/* ---------- a dish's card (11 November, 02:42, the owner: «Тут тоже каша») ----------
   the photo a rounded square a shade apart (no white box, no frame), its keys rounded blocks; the recipe's row and the
   names' cells one line where they meet (no empty strip between); the switches' rows from edge to edge; the dish taken
   off the menu (or back) and its original data rows at the form's end — an iPhone's red row —, the foot «Отмена» and
   «Сохранить» only */
.fld-pick { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 16px; border: 0; border-radius: 10px;
  background: var(--surface-2); color: var(--ink); font: inherit; font-size: var(--fs-md); font-weight: var(--fw-semibold); white-space: nowrap; cursor: pointer; }
.fld-pick:hover { background: color-mix(in oklab, var(--surface-2) 88%, var(--ink)); }
.fld-pick:focus-within, .fld-pick:focus-visible { outline: 0; box-shadow: 0 0 0 2px var(--accent); }
.fld-pick > svg { flex: none; color: var(--ink-2); }
.front-look .dish-photo-img { border: 0; border-radius: 14px; background: var(--surface-2); }
.front-look .dish-photo-img .dish-photo-none { color: var(--ink-3); }
.front-look .sheet-body > .tech-link + :is(.form-row, .field) { margin-top: calc(-1 * var(--gap)); }
.front-look .sheet-body > .form-section > .check-list, .front-look .sheet-body > .check-list { margin-inline: calc(-1 * var(--edge, var(--sx))); }
.front-look .sheet-body > .form-section > .check-list > .check-row, .front-look .sheet-body > .check-list > .check-row { padding-inline: var(--edge, var(--sx)); border-bottom: 0; box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .sheet-body > .form-section > .check-list > .check-row:first-child { box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.form-acts { display: flex; flex-direction: column; margin: 0 calc(-1 * var(--edge, var(--sx))); box-shadow: inset 0 1px 0 0 var(--zl); }
/* (after the switches' rows: their last line its top one, no strip between) */
.front-look .sheet-body > .form-section:has(> .check-list:last-child) + .form-acts { margin-top: calc(-1 * var(--gap)); box-shadow: none; }
.form-act { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 var(--edge, var(--sx)); border: 0; border-radius: 0; background: var(--surface); color: var(--ink);
  font: inherit; font-size: var(--fs-md); font-weight: var(--fw-semibold); text-align: left; cursor: pointer; box-shadow: inset 0 -1px 0 0 var(--zl); }
.form-act:hover:not(:disabled) { background: var(--surface-2); }
.form-act.bad { color: var(--bad); }
.form-act.ok { color: var(--accent); }
.form-act:disabled { color: var(--ink-3); cursor: default; }
.form-act > svg { flex: none; }
/* (11 November, «Команда» whole: the rows' own shade hid the line over them — a sheet's «Новый PIN» after a note stood
   without one) the first row of a sheet's actions draws the line over it; not at the sheet's top, nor under a list of
   switches whose last line it is */
.front-look .sheet-body > .form-acts:not(:first-child):not(.doc-scan-row):not(.sp-card-acts):not(.form-section:has(> .check-list:last-child) + .form-acts) > .form-act:first-child { box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
/* «Где продаётся» on a phone: its sheet's rows from edge to edge, the first under the sheet's head */
.front-look .sheet-body > .dp-sells.dp-rows { width: auto; margin: calc(-1 * var(--sheet-top, var(--sp-5))) calc(-1 * var(--sx)) 0; box-shadow: none; }

/* (11 November, «Интеграции» whole — the audit: a choice of a few in a form's field, «Связь» of the terminal, the kiosk's
   «Период») the field's own line is its frame: the choice's cells draw only the lines between them and the one over them
   — the last one's right and bottom lines had stood a pixel from the field's */
:root .front-look :is(.sheet-body, .card, .form-section, .form-row) > .field > .seg:not(.seg-chips) > .seg-btn:not(.on) { box-shadow: inset 1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl); }
:root .front-look :is(.sheet-body, .card, .form-section, .form-row) > .field > .seg:not(.seg-chips) > .seg-btn:first-child:not(.on) { box-shadow: inset 0 1px 0 0 var(--zl); }

/* «Интеграции» whole (11 November, 03:26, the owner: «делай все остальные страницы бэка, но только чётко»;
   ui/office-catalog.jsx, office-integr.jsx, office-migrate.jsx, office-kiosk.jsx). «Все интеграции»: the cards'
   groups blocks of the page — «Продажи и гости», «Оплата», «Персонал», «Доставка», «Деньги и закупки», «Данные» —, an
   integration a row on the five columns: its mark, name and what it does two of them, where it works and its price one,
   the switch one (its word beside it), its key one; a switch or a key alone at the row's end — two. A phone: the name
   and the switch a row, where it works and the key under them. */

.pg-block > .ig-list { display: flex; flex-direction: column; border-top: 1px solid var(--zl); }
.front-look .ig-card.ig-row {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; gap: 0; min-height: 72px; padding: 0; border: 0; border-radius: 0;
  background: var(--surface); box-shadow: inset 0 -1px 0 0 var(--zl);
}
.ig-row > .ig-main { display: flex; grid-column: span var(--ig-main, 2); align-items: center; gap: var(--sp-3); min-width: 0; padding: var(--sp-3) var(--px); }
.ig-row .ig-ic { width: 40px; height: 40px; border-radius: 10px; }
.ig-row .ig-ic.ig-logo img { width: 28px; height: 28px; }
.ig-row .ig-title { display: flex; flex: 1 1 auto; flex-direction: column; align-items: stretch; gap: 2px; min-width: 0; }
.front-look .ig-row .ig-name { margin: 0; color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 20px; }
.ig-row .ig-text { margin: 0; color: var(--ink-2); font-size: var(--fs-sm); line-height: 18px; }
.ig-row.is-off .ig-name { color: var(--ink-2); }
/* where it works — a key to its restaurants —, the price under it */
.ig-row > .ig-mid { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; padding: var(--sp-2) var(--px); box-shadow: inset 1px 0 0 0 var(--zl); }
.ig-row .ig-where { display: flex; align-items: center; gap: 4px; min-width: 0; margin: 0; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; text-align: left; cursor: pointer; }
.ig-row .ig-where > span { display: -webkit-box; min-width: 0; overflow: hidden; color: inherit; white-space: normal; text-overflow: clip; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ig-row .ig-where > svg { flex: none; }
.ig-row .ig-where:hover { text-decoration: underline; }
.ig-row .ig-where:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ig-row .ig-price { margin: 0; overflow: hidden; color: var(--ink-2); line-height: 18px; white-space: nowrap; text-overflow: ellipsis; }
/* the switch and the key: cells of the row */
.front-look .ig-row > .ig-foot { display: contents; }
.front-look .ig-row .ig-foot > .ig-switch { display: flex; align-self: stretch; align-items: center; gap: var(--sp-2); min-width: 0; margin: 0; padding: 0 var(--px); box-shadow: inset 1px 0 0 0 var(--zl); cursor: pointer; }
.front-look .ig-row .ig-switch > .small { position: static; width: auto; height: auto; overflow: visible; clip: auto; font-size: var(--fs-sm); white-space: nowrap; }
.front-look .ig-row .ig-foot > .btn {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-2); width: auto; height: auto; min-height: 0; margin: 0; padding: 0 var(--sp-3);
  border: 0; border-radius: 0; background: var(--surface); color: var(--ink); box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); font-size: var(--fs-md); font-weight: var(--fw-semibold); white-space: nowrap;
}
.front-look .ig-row .ig-foot > .btn:hover { background: var(--surface-2); }
.front-look .ig-row .ig-foot > .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.front-look .ig-row.one-right .ig-foot > * { grid-column: span 2; }
/* (12 November, 02:47, the owner on a phone's list: «кнопки настройки отдельными блоками — ничего не понятно») a phone:
   the integration's row is the key to its settings — its name and words, a chevron at their end, the row a shade darker
   pressed; the switch beside it */
.ig-row > .ig-main:has(> .ig-lead) { position: relative; padding-right: 40px; }
.ig-row .ig-lead { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; margin: 0; padding: 0 12px; border: 0; border-radius: 0; background: none; color: var(--ink-3); cursor: pointer; }
.ig-row > .ig-main:has(> .ig-lead:hover) { background: var(--surface-2); }
/* (13 November, 01:15, the owner's phone, «Оплата по QR» of one restaurant: «Не хватает линии» — the row touched a moment
   ago stays a shade lighter on an iPhone, and that shade covered the line under it: the line was the row's own, drawn
   under its cells) the row's line over its cells — under the switch and under the lighter cell alike */
.front-look .ig-card.ig-row { position: relative; box-shadow: none; }
.front-look .ig-card.ig-row::after { content: ''; position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: var(--zl); pointer-events: none; }
.ig-row .ig-lead:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* the plans: a note under the blocks */
.front-look .of-page > p.ig-plans { padding: var(--sp-4) var(--px); }
@media (min-width: 701px) and (max-width: 1239px) {
  .ig-row .ig-ic { display: none; }
  .front-look .ig-row .ig-foot > .btn { flex-direction: column; gap: 2px; padding: 0 var(--sp-2); font-size: var(--fs-sm); }
}
@media (max-width: 700px) {
  .front-look .ig-card.ig-row { grid-template-columns: repeat(3, minmax(0, 1fr)); min-height: 0; }
  .ig-row > .ig-main { grid-column: 1 / span 2; grid-row: 1; align-items: flex-start; padding: var(--sp-3) var(--sx, 16px); }
  .ig-row.no-sw > .ig-main { grid-column: 1 / -1; }
  .front-look .ig-row .ig-switch { grid-column: 3; grid-row: 1; flex-direction: column; justify-content: center; gap: 4px; padding: var(--sp-2); }
  .front-look .ig-row .ig-switch > .small { font-size: var(--fs-xs); }
  .ig-row > .ig-mid { grid-column: 1 / span 2; grid-row: 2; padding: var(--sp-2) var(--sx, 16px); box-shadow: inset 0 1px 0 0 var(--zl); }
  .front-look .ig-row .ig-foot > .btn { grid-column: 3; grid-row: 2; flex-direction: column; gap: 2px; min-height: 56px; padding: 0 var(--sp-2); font-size: var(--fs-sm); box-shadow: inset 1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
  .front-look .ig-row.no-mid .ig-foot > .btn { grid-column: 1 / -1; flex-direction: row; box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
  .ig-row.no-key > .ig-mid { grid-column: 1 / -1; }
  .front-look .ig-row.one-right .ig-foot > * { grid-column: 3; }
  .front-look .ig-row.one-right.no-sw .ig-foot > .btn { grid-column: 3; grid-row: 1; box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); flex-direction: column; }
  .ig-row.no-sw.one-right > .ig-main { grid-column: 1 / span 2; }
}
/* (a group's last row closes it with its line: the next group's head draws none over itself — two lines touching)
   (12 November: the line under a group's head is the head's own, at its foot — the first group's on the sidebar's line,
   not a pixel under it on the list's edge) */
.front-look .of-page > .pg-block.ig-group > .pg-head:first-child { box-shadow: inset 0 1px 0 0 var(--line-2), inset 0 -1px 0 0 var(--zl); }
.front-look .of-page > .pg-block.ig-group > .pg-head + .ig-list { border-top: 0; }
.front-look .of-page > .pg-block.ig-group + .pg-block.ig-group > .pg-head:first-child { box-shadow: inset 0 -1px 0 0 var(--zl); }

/* ---------- «Отчёт в Telegram» ---------- */
/* (a box to tick inside a field — «Что в сообщении» — took the field's input: a square bar instead of iOS's round mark) */
:root .front-look :is(.check-list, .check-row) .check-box { width: 24px; height: 24px; min-width: 24px; min-height: 0; margin: 0; padding: 0; border-radius: 50%; flex: none; }
/* the settings three columns of the five, the message and the bot two (a line between them from the head to the end) */
.front-look .tg-grid { gap: 0; }
.front-look .tg-col { gap: 0; }
.front-look .tg-side { display: flex; flex-direction: column; min-width: 0; background: var(--surface); }
.front-look .tg-side > .tg-preview { position: static; padding: 0; box-shadow: none; }
@media (min-width: 701px) {
  .front-look .tg-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: stretch; }
  .front-look .tg-side { position: relative; }
  .front-look .tg-side::before { content: ''; position: absolute; z-index: 1; top: 0; bottom: 0; left: 0; width: 1px; background: var(--zl); pointer-events: none; }
}
/* a head: its line under it (what follows draws none over itself); a block's last row closes it — the next block's head
   draws no line over itself */
.front-look .tg-block > .pg-head { box-shadow: inset 0 1px 0 0 var(--line-2), inset 0 -1px 0 0 var(--zl); }
.front-look :is(.tg-col, .tg-side, .dl-links) > .tg-block + .tg-block > .pg-head:first-child { box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .dl-links { display: flex; flex-direction: column; }
/* the time (and the report's language) a row of keys: three columns of the settings' three */
.front-look .tg-keys { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.front-look .tg-keys > .tg-pick-time { grid-column: span 3; }
.front-look .tg-keys.two > .tg-pick-time { grid-column: span 2; }
/* a part's name over its rows */
.front-look .tg-sub { margin: 0; padding: var(--sp-4) var(--px) var(--sp-2); color: var(--ink-2); font-size: var(--fs-sm); line-height: 18px; }
/* the restaurants: three to a row, a line over the first row too; a short last row stays short (the visual audit, 11
   November — «Не растягивай блоки»: the fifth had taken two columns), its last cell closing it with a line at its right */
.front-look .chip-row.tg-locs { gap: 0; margin: 0; }
.front-look .chip-row.tg-locs > .chip { box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.front-look .chip-row.tg-locs > .chip:nth-child(-n + 3) { box-shadow: inset 1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.front-look .chip-row.tg-locs > .chip:nth-child(3n + 1) { box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .chip-row.tg-locs > .chip:first-child { box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.front-look .chip-row.tg-locs > .chip:last-child:not(:nth-child(3n)) { box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl), 1px 0 0 0 var(--zl); }
.front-look .chip-row.tg-locs > .chip:last-child:not(:nth-child(3n)):nth-child(3n + 1) { box-shadow: inset 0 -1px 0 0 var(--zl), 1px 0 0 0 var(--zl); }
.front-look .chip-row.tg-locs > .chip.on { box-shadow: none; }
/* rows from edge to edge, a line under each — the first a line over it too */
.front-look .tg-block .check-list { margin: 0; }
.front-look .tg-block .check-list > .check-row { gap: var(--sp-3); min-height: 56px; padding: var(--sp-3) var(--px); border-bottom: 0; box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .tg-sub + .check-list > .check-row:first-child { box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.front-look .tg-block .check-list > .check-row > .switch { flex: none; margin-left: auto; }
/* the steps: a list under its head */
.front-look .tg-block > .tg-steps { gap: var(--sp-2); margin: 0; padding: var(--sp-4) var(--px) var(--sp-4) calc(var(--px) + 1.3em); box-shadow: inset 0 -1px 0 0 var(--zl); }
/* «За вчера | За сегодня»: an iOS segmented control on a row of its own */
.front-look .tg-preview > .tg-which { padding: 0 var(--px); }
/* the message as it will come: Telegram's chat from edge to edge — the bot a row, the wallpaper under it */
.front-look .tg-preview > .tg-chat { flex: none; border: 0; border-radius: 0; }
.front-look .tg-preview .tg-chat-head { min-height: 56px; padding: 0 var(--px); border-bottom: 0; box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .tg-preview .tg-chat-body { padding: var(--sp-4) var(--px); }
/* its state and «Скопировать текст»: a row of keys, two columns */
.front-look .dt-keys.tg-foot, .front-look .dt-keys.tg-acts { gap: 0; align-items: stretch; }
@media (min-width: 701px) {
  .front-look .dt-keys.tg-foot, .front-look .dt-keys.tg-acts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .front-look .tg-acts > :is(:last-child:nth-child(odd), .tg-wide) { grid-column: span 2; }
}
.front-look .tg-foot > * { box-shadow: inset 1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.front-look .tg-foot > :first-child { box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.tg-state, .tg-wait { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; padding: var(--sp-2) var(--px); background: var(--surface); color: var(--ink-2); font-size: var(--fs-sm); line-height: 18px; }
.tg-state.on { color: var(--ok); }
/* the bot: rows, its keys two to a row — the last alone across both */
.front-look .tg-acts > .dt-key { padding: var(--sp-1) var(--sp-3); white-space: normal; text-align: center; line-height: 18px; }
.front-look .tg-acts > .dt-key.bad { color: var(--bad); }
.front-look .tg-acts > a.dt-key { text-decoration: none; }
.front-look .tg-acts > .dt-key:disabled { color: var(--ink-3); cursor: default; }
.front-look .tg-acts > .dt-key.acc:disabled { background: var(--surface-2); color: var(--ink-3); box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.front-look .tg-block > .tg-steps + .tg-acts > :first-child { box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .tg-bot { display: flex; flex-direction: column; gap: 0; }
.front-look .tg-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--sp-2); margin: 0; padding: var(--sp-3) var(--px); line-height: 20px; box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .tg-bot-st.ok { color: var(--ok); }
.front-look .tg-bot-st.warn { color: var(--warn); }
.front-look .tg-code { gap: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.front-look .tg-code-in { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-4) var(--px); background: var(--surface-2); box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .tg-code-in p { margin: 0; }
@media (max-width: 700px) {
  /* (the report on or off: a row of the iPhone's settings under the head — the words at the left, the switch at the right) */
  .front-look .of-head > .of-actions > .switch.tg-on { display: flex; flex-direction: row-reverse; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 52px; padding: 0 var(--sx, 16px); }
  .front-look .tg-keys { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .front-look .tg-keys > .dt-pick { aspect-ratio: auto; min-height: 56px; }
  .front-look .tg-block .check-list > .check-row, .front-look .tg-sub, .front-look .tg-row { padding-inline: var(--sx, 16px); }
  .front-look .tg-preview > .tg-which { padding: var(--sp-2) var(--sx, 16px); }
  .front-look .tg-preview .tg-chat-head, .front-look .tg-preview .tg-chat-body { padding-inline: var(--sx, 16px); }
  /* (a phone: the message's state and «Скопировать текст», the bot's keys — a row each, as the iPhone's settings) */
  .front-look .dt-keys:is(.tg-foot, .tg-acts) { grid-template-columns: minmax(0, 1fr); }
  .front-look :is(.tg-foot, .tg-acts) > * { aspect-ratio: auto; min-height: 52px; }
  .front-look :is(.tg-foot, .tg-acts) > .dt-key { flex-direction: row; align-items: center; justify-content: flex-start; gap: var(--sp-2); padding: 0 var(--sx, 16px); font-size: var(--fs-md); text-align: left; }
  .front-look :is(.tg-foot, .tg-acts) > :not(:first-child) { box-shadow: inset 0 -1px 0 0 var(--zl); }
  .front-look :is(.tg-foot, .tg-acts) > :is(.tg-state, .tg-wait) { padding-inline: var(--sx, 16px); }
  .front-look .tg-acts > .dt-field { padding-inline: var(--sx, 16px); }
  .front-look .dt-keys.tg-acts > .dt-key.acc { order: 0; grid-row: auto; grid-column: 1 / -1; }
  .front-look .tg-block > .tg-steps { padding-inline: calc(var(--sx, 16px) + 1.3em) var(--sx, 16px); }
}

/* ---------- «Wolt и Glovo» ---------- */
/* (11 November, «Интеграции» whole) blocks across the page on the five columns: the terms a row of cells, each platform a
   block — its rows of cells, the road to the API five squares —, today's orders rows */
.front-look .dl-page { --half: 104px; }
/* a block's head: its line under it; a block after a block — its line over it is the last row's */
.front-look .dl-block > .pg-head { box-shadow: inset 0 1px 0 0 var(--line-2), inset 0 -1px 0 0 var(--zl); }
.front-look :is(.of-page, .dl-links) > .dl-block + .dl-block > .pg-head:first-child, .front-look .dl-links + .dl-block > .pg-head:first-child, .front-look .dl-block + .dl-links > .dl-block:first-child > .pg-head:first-child { box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .dl-links { display: flex; flex-direction: column; }
/* a platform's mark — its colour, its picture — before its name */
.front-look .pg-head > h2.dl-name { display: flex; align-items: center; gap: var(--sp-2); overflow: visible; }
.dl-mark { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 8px; }
.dl-mark.wolt { background: var(--wolt); color: var(--wolt-ink); }
.dl-mark.glovo { background: var(--glovo); color: var(--glovo-ink); }
.front-look .dl-st.ok { color: var(--ok); }
.front-look .dl-st.warn { color: var(--warn); }
/* the rows of cells: the five columns; a cell its name small at the top, its value or control under it */
.front-look .dt-keys:is(.dl-terms, .dl-row) { gap: 0; align-items: stretch; }
.front-look .dl-row > .w2, .front-look .dl-row > .dl-form > .w2 { grid-column: span 2; }
.front-look .dl-row > .w3 { grid-column: span 3; }
.front-look .dl-row > .w5 { grid-column: 1 / -1; }
.front-look .dl-terms > .dlv-row { grid-column: span 3; }
.front-look .dl-terms.srv > .dlv-row { grid-column: span 2; }
/* (a row of half a square: its cells at least as tall — not by their own shape, which pushed a narrow one past its column) */
.front-look .dl-terms > * { min-height: 96px; }
.dl-cell { display: flex; flex-direction: column; justify-content: space-between; gap: var(--sp-2); min-width: 0; padding: var(--sp-3) var(--px); background: var(--surface); color: var(--ink); }
.dl-cell-l { color: var(--ink-2); font-size: var(--fs-sm); line-height: 18px; }
.dl-cell-n { color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; }
.dl-cell-h { color: var(--ink-2); font-size: var(--fs-sm); line-height: 18px; }
.dl-cell.dl-words { justify-content: center; color: var(--ink-2); font-size: var(--fs-sm); line-height: 18px; }
/* a switch's cell: its name and words at the left, the switch at the right */
.dl-cell.dl-sw { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); cursor: pointer; }
.dl-sw-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dl-cell.dl-sw > .switch { flex: none; }
/* a fee: its number the cell's value, «%» after it */
.dl-fee { cursor: text; }
.dl-fee-in { display: flex; align-items: baseline; gap: 4px; color: var(--ink-2); font-size: 22px; line-height: 28px; }
.dl-fee-in > input { flex: 1 1 0; width: 0; min-width: 0; height: 28px; padding: 0; border: 0; border-radius: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 22px; line-height: 28px; box-shadow: none; }
.dl-fee-in > input::placeholder { color: var(--ink-3); }
.front-look .dl-terms > .dl-fee:focus-within { box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -2px 0 0 var(--accent); }
.front-look .dl-cell > .stepper { align-self: flex-start; border-radius: 0; }
/* who accepts an order: an iOS segmented control under its name */
:root .front-look .dl-mode > .seg.cs-tabs {
  display: inline-grid; align-self: flex-start; grid-auto-flow: column; grid-auto-columns: minmax(max-content, 1fr); align-items: center; gap: 2px; height: 36px; min-height: 36px; padding: 2px;
  overflow: visible; border: 0; border-radius: var(--r-pill); background: var(--seg-track); box-shadow: none;
}
:root .front-look .dl-mode > .seg.cs-tabs > .seg-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 32px; min-height: 32px; padding: 0 var(--sp-3); border: 0; border-radius: var(--r-pill);
  background: none; box-shadow: none; color: var(--ink); font-size: 13px; font-weight: var(--fw-medium); line-height: 1; white-space: nowrap;
}
:root .front-look .dl-mode > .seg.cs-tabs > .seg-btn.on { background: var(--seg-on); box-shadow: 0 1px 3px rgb(0 0 0 / 0.14), 0 0 0 0.5px rgb(0 0 0 / 0.05); font-weight: var(--fw-semibold); }
/* a form in a row: its field and key cells of the row */
.front-look .dl-row > .dl-form { display: contents; }
.front-look .dl-form > * { min-width: 0; min-height: 56px; box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.front-look .dl-form > .dt-field { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: var(--sp-2) var(--px); background: var(--surface); cursor: text; }
.front-look .dl-form > .dt-field:focus-within { box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -2px 0 0 var(--accent); }
.front-look .dl-form > .dt-key.acc { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.front-look :is(.dl-row, .dl-form) > .dt-key { padding: var(--sp-1) var(--sp-3); white-space: normal; text-align: center; line-height: 18px; }
.front-look :is(.dl-row, .dl-form) > .dt-key.bad { color: var(--bad); }
.front-look :is(.dl-row, .dl-form) > .dt-key:disabled { color: var(--ink-3); cursor: default; }
.front-look :is(.dl-row, .dl-form) > .dt-key:disabled > svg { color: var(--ink-3); }
.front-look :is(.dl-row, .dl-form) > .dt-key.acc:disabled { background: var(--surface-2); color: var(--ink-3); box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
/* a note: a row of the quiet ink */
.front-look .tg-row.dl-note { display: block; color: var(--ink-2); font-size: var(--fs-sm); }
.front-look .pl-id .as-link { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.front-look .pl-hook svg { margin-right: 3px; vertical-align: -2px; }
/* the road to the API: its name and how far, then its five steps five squares — the box to tick and the step's number
   at the top, what it is under them */
.front-look .tg-sub.api-col-head { display: flex; align-items: center; gap: 6px; min-height: 0; }
.dl-done { margin-left: auto; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.front-look .dl-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.front-look .dl-steps > li { display: flex; min-width: 0; }
.front-look .dl-steps .dl-step { display: flex; flex: 1 1 auto; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: var(--sp-3); aspect-ratio: 1; min-width: 0; min-height: 0; margin: 0; padding: var(--sp-3) var(--px);
  border: 0; background: var(--surface); box-shadow: inset 1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); cursor: pointer; }
.front-look .dl-steps > li:first-child > .dl-step { box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.front-look .dl-steps .dl-step:hover { background: var(--surface-2); }
.dl-step-top { display: flex; align-items: center; justify-content: space-between; }
.dl-step-n { color: var(--ink-3); font-size: 22px; font-weight: var(--fw-semibold); line-height: 24px; font-variant-numeric: tabular-nums; }
.dl-step.on .dl-step-n { color: var(--accent); }
.front-look .dl-step .check-main { display: flex; flex-direction: column; gap: 4px; }
.front-look .dl-step .check-name { font-size: var(--fs-md); line-height: 20px; text-wrap: pretty; }
.front-look .dl-step .check-hint { text-wrap: balance; }
.front-look .dl-form > .dt-field > .dt-field-l { white-space: normal; }
/* today's orders: the time, the platform and the order's code, what happened — the five columns */
.front-look .ev-list.dl-events { margin: 0; padding: 0; }
.front-look .ev-list.dl-events > li { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: baseline; gap: 0; min-height: 0; padding: 0; border: 0; box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .dl-events > li > * { min-width: 0; padding: var(--sp-3) var(--px); }
.dl-ev-t { color: var(--ink-2); font-size: var(--fs-sm); }
.dl-ev-h { font-size: var(--fs-md); line-height: 20px; }
.dl-ch { font-weight: var(--fw-semibold); }
.dl-ch.wolt { color: var(--wolt); }
.dl-ch.glovo { color: color-mix(in oklab, var(--glovo) 70%, var(--ink)); }
.front-look .dl-events .dl-ev-x { grid-column: span 3; color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; }
@media (min-width: 701px) and (max-width: 1239px) {
  .front-look .dl-steps .dl-step { gap: var(--sp-2); padding-inline: var(--sp-3); }
  .front-look .dl-step .check-name { font-size: var(--fs-sm); line-height: 18px; }
  .front-look .dl-step .check-hint { display: none; }
}
@media (max-width: 700px) {
  /* a phone: the terms and the platforms' cells rows of the iPhone's settings — the name at the left, the control at
     the right —; a field two thirds and its key a third; the steps rows */
  .front-look .dt-keys:is(.dl-terms, .dl-row) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .front-look .dt-keys:is(.dl-terms, .dl-row) > :is(.dl-cell, .dt-key) { grid-column: 1 / -1; aspect-ratio: auto; min-height: 56px; }
  .front-look .dt-keys:is(.dl-terms, .dl-row) > .dl-cell { flex-direction: row; align-items: center; justify-content: space-between; padding: var(--sp-2) var(--sx, 16px); box-shadow: inset 0 -1px 0 0 var(--zl); }
  .front-look .dt-keys:is(.dl-terms, .dl-row) > .dl-cell.dl-mode { flex-wrap: wrap; }
  .front-look .dt-keys:is(.dl-terms, .dl-row) > .dl-cell.dl-sw { align-items: flex-start; }
  .front-look .dt-keys:is(.dl-terms, .dl-row) > .dt-key { flex-direction: row; font-size: var(--fs-md); box-shadow: inset 0 -1px 0 0 var(--zl); }
  .front-look .dt-keys:is(.dl-terms, .dl-row) > .dt-key.acc { order: 0; grid-row: auto; box-shadow: none; }
  .front-look .dl-fee-in { flex: none; width: 96px; font-size: 18px; }
  .front-look .dl-fee-in > input { font-size: 18px; text-align: right; }
  .front-look :is(.dl-row, .dl-form) > :is(.dt-field, .dt-key) { aspect-ratio: auto; }
  .front-look .dl-form > .dt-field { grid-column: span 2; padding-inline: var(--sx, 16px) var(--sp-2); }
  .front-look .dl-form > .dt-key { grid-column: span 1; flex-direction: row; aspect-ratio: auto; font-size: var(--fs-sm); }
  .front-look .dt-keys.dl-row.pl-form > :is(.dt-field, .dt-key) { grid-column: 1 / -1; }
  .front-look .dt-keys.dl-row.pl-form > .dt-field { min-height: 60px; padding-inline: var(--sx, 16px); box-shadow: inset 0 -1px 0 0 var(--zl); }
  .front-look .dt-keys.dl-row.pl-form > .dt-key { min-height: 56px; flex-direction: row; aspect-ratio: auto; font-size: var(--fs-md); order: 0; grid-row: auto; }
  .front-look .dl-steps { grid-template-columns: minmax(0, 1fr); }
  .front-look .dl-steps .dl-step { flex-direction: row; align-items: flex-start; gap: var(--sp-3); aspect-ratio: auto; min-height: 56px; padding: var(--sp-3) var(--sx, 16px); box-shadow: inset 0 -1px 0 0 var(--zl); }
  .front-look .dl-steps > li:first-child > .dl-step { box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
  .front-look .dl-step-n { display: none; }
  .front-look .ev-list.dl-events > li { grid-template-columns: 60px minmax(0, 1fr); }
  .front-look .dl-events > li > * { padding: var(--sp-2) var(--sx, 16px) 0; }
  .front-look .dl-events > li > .dl-ev-h { padding-left: 0; }
  .front-look .dl-events .dl-ev-x { grid-column: 2; padding: 0 var(--sx, 16px) var(--sp-2) 0; }
}

/* ---------- the integrations' sheets ---------- */
/* (11 November, «Интеграции» whole) as every sheet's: rows from edge to edge, the switches rows of the iPhone's settings,
   «Отмена» and «Сохранить» the foot */
/* «Где работает»: the restaurants rows to tick, what it costs under them */
.front-look .sheet-body > .ig-where-sum { margin: 0; }
/* IPS: the example QR a part of the form — the code at the left on white, its text at the right — not a box */
.front-look .sheet-body > .ips-preview { margin-inline: calc(-1 * var(--edge)); padding: var(--sp-4) var(--edge); border: 0; border-radius: 0; background: var(--surface); box-shadow: 0 0 0 1px var(--zl); }
.front-look .sheet-body > .field + .ips-preview { margin-top: calc(1px - var(--gap)); }
.front-look .ips-preview .qr { border-radius: 0; box-shadow: 0 0 0 1px var(--zl); }
/* the terminal: «Проверить связь» a row, its answer under it */
.front-look .sheet-body > .term-acts + .term-check { margin: calc(var(--sp-2) - var(--gap)) 0 0; }
.front-look .sheet-body > .term-acts + .term-check:empty { display: none; }
/* the guest app: Google's links — the part's name, then each restaurant's link a field of the row and its key */
.front-look .sheet-body > .rvl-card { display: flex; flex-direction: column; margin: 0 calc(-1 * var(--edge)); padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.front-look .rvl-head { display: flex; align-items: center; min-height: 52px; padding: 0 var(--edge); }
.front-look .rvl-head h2 { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; }
.front-look .rvl-card .rvl-list { margin: 0; padding: 0; }
.front-look .rvl-card .rvl-row { gap: 0; padding: 0 0 var(--sp-3); border: 0; }
/* (each restaurant's row its own lines over and under it: its words under it stand between the rows) */
.front-look .rvl-card .rvl-row > .rvl-form > * { box-shadow: inset 1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.front-look .rvl-card .rvl-row > .rvl-form > :first-child { box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.front-look .dt-keys.rvl-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; align-items: stretch; }
.front-look .rvl-form > .dt-field { grid-column: span 2; padding-inline: var(--edge) var(--sp-3); }
.front-look .rvl-form.look > .dt-field { grid-column: 1 / -1; }
.front-look .rvl-form > .dt-field:has(input[aria-invalid="true"]) { box-shadow: inset 0 -2px 0 0 var(--bad); }
.front-look .rvl-form > .dt-key:disabled { color: var(--ink-3); cursor: default; }
.front-look .rvl-row > .rvl-n { margin: var(--sp-2) 0 0; padding: 0 var(--edge); }
.front-look .rvl-off { color: var(--ink-3); font-weight: var(--fw-regular); }
/* the kiosk: the period and the restaurant two cells; a switch a row, its figure under it; the offer's figures three cells
   of a row; its rules rows — the number, what it is, what it offers now and did, the switch —; the ready text's sample
   a row of the second shade */
.front-look .sheet-body > .ko-sec { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.front-look .ko-sec > .ko-fig { margin: 0; padding: var(--sp-2) 0 0; color: var(--ink-2); }
.front-look .ko-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 calc(-1 * var(--edge)); }
.front-look .ko-nums > .tile { display: flex; flex-direction: column; gap: 2px; min-width: 0; min-height: 0; margin: 0; padding: var(--sp-3) var(--sp-4); border: 0; border-radius: 0; background: var(--surface); box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.front-look .ko-nums > .tile:first-child { padding-left: var(--edge); box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .ko-nums .tile-l { color: var(--ink-2); font-size: var(--fs-sm); font-weight: var(--fw-regular); line-height: 18px; }
.front-look .ko-nums .tile-v { color: var(--ink); font-size: 22px; line-height: 28px; }
.front-look .ko-nums .tile-sub { color: var(--ink-2); font-size: var(--fs-sm); line-height: 18px; }
.front-look .ko-sec > .ko-rules-head { min-height: 52px; margin: 0; padding: 0; }
.front-look .ko-later { color: var(--ink-3); font-size: var(--fs-sm); }
.front-look .ko-sec > .ko-rules { margin: 0 calc(-1 * var(--edge)); border: 0; border-radius: 0; }
.front-look .ko-sec > .ko-rules > .ko-rule { padding: var(--sp-3) var(--edge); border: 0; box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .ko-sec > .ko-rules > .ko-rule:first-child { box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.front-look .ko-form { border-radius: 0; }
.front-look .ko-sec > .ko-sample { margin: var(--sp-2) calc(-1 * var(--edge)); padding: var(--sp-3) var(--edge); border-radius: 0; box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.front-look .ko-sec > p { margin: var(--sp-2) 0 0; }
.front-look .ko-sec > .ko-rules-head + p { margin-top: 0; }
@media (max-width: 700px) {
  /* (a phone: the link's field two thirds of the row, «Сохранить» a third — the row as tall as its field) */
  .front-look .rvl-form > * { aspect-ratio: auto; min-height: 56px; }
  .front-look .rvl-form > .dt-field { padding-inline: var(--edge) var(--sp-2); }
  .front-look .rvl-form > .dt-key { flex-direction: row; padding: 0 var(--sp-2); }
}

/* ---------- «Перенос из POS» (the prototype's assistant and app.ruvo.ac's Quick Resto import) ---------- */
/* the steps three cells of the five — the one now its accent line under it, as a tab —, the old system (or «Начать
   заново») the other two */
.front-look .dt-keys.mg-keys { gap: 0; align-items: stretch; }
.front-look .mg-keys > .mg-steps { display: contents; margin: 0; padding: 0; list-style: none; }
.front-look .mg-steps > li { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; min-height: var(--cell-h, 56px); padding: 0 var(--px); background: var(--surface); color: var(--ink-3); font-size: var(--fs-md); font-weight: var(--fw-semibold); box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.front-look .mg-steps > li:first-child { box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .mg-steps > li.now { color: var(--accent); box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -3px 0 0 var(--accent); }
.front-look .mg-steps > li.now:first-child { box-shadow: inset 0 -3px 0 0 var(--accent); }
.front-look .mg-steps > li.past { color: var(--ink-2); }
.mg-step-l { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.front-look .mg-keys > .mg-src { grid-column: span 2; }
/* what to export a row of words; the place to drop the files a square's height across the page; the files rows */
.front-look .mg-block > .mg-hint { max-width: none; margin: 0; padding: var(--sp-4) var(--px); color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .mg-block > .mg-drop { aspect-ratio: 5 / 1; min-height: 140px; margin: 0; padding: var(--sp-4) var(--px); border: 0; border-radius: 0; background: var(--surface); box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .mg-block > .mg-drop:hover, .front-look .mg-block > .mg-drop.on { background: var(--accent-soft); color: var(--accent); }
.front-look .mg-block > .mg-drop:focus-within { outline: 2px solid var(--accent); outline-offset: -2px; }
.front-look .mg-block > .mg-errs { margin: 0; padding: var(--sp-3) var(--px) var(--sp-3) calc(var(--px) + 1.2em); box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .mg-block > .mg-files { margin: 0; }
.front-look .mg-block > .mg-files > li { gap: var(--sp-3); min-height: 52px; padding: var(--sp-1) 0 var(--sp-1) var(--px); border: 0; box-shadow: inset 0 -1px 0 0 var(--zl); }
.mg-tag { color: var(--ink-3); font-size: var(--fs-sm); }
.mg-tag.ok { color: var(--ok); }
.mg-tag.warn { color: var(--warn); }
.mg-x { display: grid; flex: none; place-items: center; width: 52px; height: 50px; border: 0; border-radius: 0; background: none; color: var(--ink-2); cursor: pointer; }
.mg-x:hover { background: var(--surface-2); color: var(--ink); }
.mg-x:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* what is in hand and the keys: a row of the five — the words three, the keys one each (the server's: four and one) */
.front-look .dt-keys.mg-foot { display: grid; gap: 0; align-items: stretch; min-height: 0; margin: 0; padding: 0; }
.front-look .mg-foot > .mg-state { display: flex; grid-column: span 3; align-items: center; min-width: 0; padding: var(--sp-2) var(--px); background: var(--surface); color: var(--ink-2); font-size: var(--fs-sm); line-height: 18px; }
.front-look .qr-foot > .mg-state { grid-column: span 4; }
.front-look :is(.mg-foot, .mg-keys, .mg-open) > .dt-key { padding: var(--sp-1) var(--sp-3); white-space: normal; text-align: center; line-height: 18px; }
.front-look :is(.mg-foot, .mg-keys) > .dt-key:disabled { color: var(--ink-3); cursor: default; }
.front-look :is(.mg-foot, .mg-keys) > .dt-key:disabled > svg { color: var(--ink-3); }
.front-look :is(.mg-foot, .mg-keys) > .dt-key.acc:disabled { background: var(--surface-2); box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
/* the review: how it was read a row; each table a part of the block — its name, how it was read, what it is; each column
   a row: what RUVO needs, the file's column (two cells), an example (two) */
.front-look .of-page > .mg-status { margin: 0; padding: var(--sp-3) var(--px); border-radius: 0; box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .card > .mg-tables { gap: 0; margin: 0 calc(-1 * var(--px)) calc(-1 * var(--py)); }
.front-look .mg-tables > .mg-table { gap: 0; padding: 0; border: 0; border-radius: 0; box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look .mg-table-head { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; gap: 0; min-height: 56px; box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .mg-table-head > .grow { display: flex; grid-column: span 2; flex-wrap: wrap; align-items: center; gap: 0 6px; min-width: 0; padding: var(--sp-2) var(--px); }
.mg-via { display: flex; align-items: center; padding: var(--sp-2) var(--sp-3); color: var(--ink-3); font-size: var(--fs-sm); }
.mg-via.ai { color: var(--accent); }
:root .front-look .mg-table-head > .select.mg-kind, :root .front-look .mg-map-row > .select, :root .front-look .mg-cat > .select {
  grid-column: span 2; width: auto; height: auto; min-height: 52px; padding: 0 var(--sp-3); border: 0; border-radius: 0; background: var(--surface); box-shadow: inset 1px 0 0 0 var(--zl); font-size: var(--fs-md);
}
:root .front-look .mg-table-head > .select.mg-kind:hover, :root .front-look .mg-map-row > .select:hover, :root .front-look .mg-cat > .select:hover { background: var(--surface-2); }
.front-look .mg-table > .muted.small { padding: var(--sp-3) var(--px); }
.front-look .mg-map { display: flex; flex-direction: column; gap: 0; }
.front-look .mg-map-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: auto; align-items: stretch; gap: 0; min-height: 52px; box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .mg-map-row:last-child { box-shadow: none; }
.front-look .mg-map-f { display: flex; align-items: center; min-width: 0; padding: var(--sp-2) var(--px); font-weight: var(--fw-regular); }
.front-look .mg-map-ex { display: flex; grid-column: span 2; align-items: center; min-width: 0; padding: var(--sp-2) var(--sp-3); box-shadow: inset 1px 0 0 0 var(--zl); }
/* the categories: the file's (two cells), RUVO's (two), a new one's name (one) */
.front-look .card > .mg-cats { gap: 0; margin: 0 calc(-1 * var(--px)) calc(-1 * var(--py)); box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look .mg-cat { grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; gap: 0; min-height: 52px; box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .mg-cat:last-child { box-shadow: none; }
.front-look .mg-cat > .mg-cat-src { display: flex; grid-column: span 2; flex-wrap: wrap; align-items: center; gap: 0 6px; min-width: 0; padding: var(--sp-2) var(--px); }
.front-look .mg-cat > svg { display: none; }
.front-look .mg-cat:has(> span:empty:last-child) > .select { grid-column: span 3; }
.front-look .mg-cat > span:empty:last-child { display: none; }
.front-look .mg-cat > .mg-cat-name { min-width: 0; height: auto; min-height: 52px; padding: 0 var(--sp-3); border: 0; border-radius: 0; background: var(--surface); box-shadow: inset 1px 0 0 0 var(--zl); }
.front-look .mg-cat > .mg-cat-name:focus { box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -2px 0 0 var(--accent); }
/* the notes rows; a refusal a row of the bad shade */
.front-look .card > .mg-issues { gap: 0; margin: 0 calc(-1 * var(--px)) calc(-1 * var(--py)); box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look .mg-issues > li { padding: var(--sp-2) var(--px); box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .mg-issues > li:last-child { box-shadow: none; }
.front-look .of-page > .mg-err { margin: 0; padding: var(--sp-3) var(--px); border-radius: 0; box-shadow: inset 0 -1px 0 0 var(--zl); }
/* done: what came, the pages to open a row of keys — the first takes what the others leave of the five */
.front-look .dt-keys.mg-open { gap: 0; align-items: stretch; }
.front-look .card > .mg-open { margin: var(--sp-2) calc(-1 * var(--px)) calc(-1 * var(--py)); box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look .mg-open > .dt-key { justify-content: space-between; padding: 0 var(--px); }
.front-look .mg-open > .dt-key:first-child:nth-last-child(4) { grid-column: span 2; }
.front-look .mg-open > .dt-key:first-child:nth-last-child(3) { grid-column: span 3; }
.front-look .mg-open > .dt-key:first-child:nth-last-child(2) { grid-column: span 4; }
.front-look .mg-open > .dt-key:only-child { grid-column: 1 / -1; }
.front-look .mg-open > .dt-key:first-child { box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.front-look .mg-open > .dt-key:not(:first-child) { box-shadow: inset 1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.front-look .qr-done { gap: 0; }
.front-look .qr-done > .qr-done-t { display: flex; flex-direction: column; gap: 2px; padding: var(--sp-3) var(--px); }
/* the history rows; the undone one's word */
.front-look .card > .mg-history { margin: 0 calc(-1 * var(--px)) calc(-1 * var(--py)); box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look .mg-history > li { padding: var(--sp-3) var(--px); border: 0; box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .mg-history > li:last-child { box-shadow: none; }
.mg-undone { color: var(--ink-3); font-size: var(--fs-sm); }
/* app.ruvo.ac's «Что придёт»: its notes rows */
.front-look #qr-what > .qr-notes { gap: 0; margin: 0 calc(-1 * var(--px)); padding: 0; list-style: none; box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look #qr-what > .qr-notes > li { padding: var(--sp-2) var(--px); box-shadow: inset 0 -1px 0 0 var(--zl); }
@media (max-width: 700px) {
  /* a phone: the steps a row of three, the old system a row under them; the keys a third each under the words */
  .front-look .mg-steps > li { aspect-ratio: auto; min-height: 52px; padding: 0 var(--sp-2); font-size: var(--fs-sm); }
  .front-look .mg-keys > .mg-src { grid-column: 1 / -1; aspect-ratio: auto; min-height: 56px; }
  .front-look .dt-keys.mg-keys > .dt-key { order: 0; grid-row: auto; flex-direction: row; }
  .front-look .mg-block > .mg-drop { aspect-ratio: 2 / 1; min-height: 0; }
  .front-look .mg-foot > .mg-state, .front-look .qr-foot > .mg-state { grid-column: 1 / -1; aspect-ratio: auto; min-height: 52px; padding-inline: var(--sx, 16px); box-shadow: inset 0 -1px 0 0 var(--zl); }
  .front-look .mg-block > .mg-files > li { flex-wrap: nowrap; padding-left: var(--sx, 16px); }
  .front-look .mg-block > .mg-files > li > .grow { flex: 1 1 auto; flex-direction: column; align-items: flex-start; gap: 0; }
  .front-look .mg-block > .mg-files > li > .small { flex: none; max-width: 40%; text-align: right; }
  .front-look .mg-open > .dt-key { flex-direction: row; font-size: var(--fs-md); }
  .front-look .dt-keys.mg-foot > .dt-key.acc { order: 0; grid-row: auto; grid-column: auto; }
  .front-look .mg-foot > .dt-key { aspect-ratio: auto; min-height: 56px; }
  .front-look .mg-foot > .dt-key:nth-child(2) { grid-column: span 2; }
  .front-look .dt-keys.mg-foot.qr-foot > .dt-key.acc { grid-column: 1 / -1; flex-direction: row; font-size: var(--fs-md); }
  .front-look .mg-table-head { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .front-look .mg-table-head > .grow { grid-column: 1 / -1; padding-inline: var(--sx, 16px); box-shadow: inset 0 -1px 0 0 var(--zl); }
  .front-look .mg-via { padding-left: var(--sx, 16px); }
  .front-look .mg-map-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .front-look .mg-map-f { padding-inline: var(--sx, 16px) var(--sp-2); }
  .front-look .mg-map-ex { grid-column: 1 / -1; padding: 0 var(--sx, 16px) var(--sp-2); box-shadow: none; }
  .front-look .mg-cat { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .front-look .mg-cat > .mg-cat-src { grid-column: 1 / -1; padding-inline: var(--sx, 16px); box-shadow: inset 0 -1px 0 0 var(--zl); }
  .front-look .mg-cat:has(> span:empty:last-child) > .select { grid-column: 1 / -1; }
  :root .front-look .dt-keys.mg-open > .dt-key { grid-column: 1 / -1; min-height: 52px; aspect-ratio: auto; }
}

/* ---------- «Заказы на сайте», «Сайт для заказов» (app.ruvo.ac) ---------- */
/* the orders: where an order is now — a word of its colour, no pill */
.site-st.ok { color: var(--ok); }
.site-st.warn { color: var(--warn); }
.site-st.bad { color: var(--bad); }
.front-look .of-page > .pg-nums.site-kpis { margin: 0; }
/* (the page's settings: 99-site.css — on the grid since 11 November, 14:33) */
}

/* ---------- «Бронирования» (app.ruvo.ac) ---------- */
/* the day's bar a row of the five: the day between its arrows two cells, how many — and «Сегодня» back — one, the views
   an iOS segmented control in the last two */
.front-look .of-page > .bk-daybar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; gap: 0; padding: 0; box-shadow: inset 0 -1px 0 0 var(--zl); }
/* (12 November: the day's bar a cell of the grid's height — its line on the sidebar's line) */
.bk-daybar > .bk-nav { position: relative; display: grid; grid-column: span 2; grid-template-columns: var(--cell-h, 56px) minmax(0, 1fr) var(--cell-h, 56px); align-items: stretch; min-height: var(--cell-h, 56px); }
.front-look .bk-nav > .icon-btn { width: auto; height: auto; border-radius: 0; background: none; box-shadow: none; }
.front-look .bk-nav > .icon-btn:hover { background: var(--surface-2); }
.front-look .bk-nav > .bk-day { width: auto; justify-content: center; border-radius: 0; }
.bk-daybar > .bk-sum-cell { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); min-width: 0; padding: 0 var(--sp-2) 0 var(--px); box-shadow: inset 1px 0 0 0 var(--zl); }
.bk-sum-cell > .bk-sum { min-width: 0; margin: 0; overflow: hidden; font-size: var(--fs-sm); text-overflow: ellipsis; white-space: nowrap; }
.bk-today { flex: none; padding: var(--sp-1) var(--sp-2); border: 0; border-radius: 0; background: none; color: var(--accent); font: inherit; font-size: var(--fs-sm); font-weight: var(--fw-semibold); cursor: pointer; }
.bk-today:hover { background: var(--surface-2); }
.front-look .bk-daybar > .bk-views-cell { grid-column: span 2; justify-content: flex-end; min-height: var(--cell-h, 56px); box-shadow: inset 1px 0 0 0 var(--zl); }
/* (11 November, 14:33) the views fill their two cells — no empty one before them */
:root .front-look .bk-daybar > .bk-views-cell > .seg.cs-tabs { width: 100%; grid-auto-columns: minmax(0, 1fr); }
/* the plan's row: the halls an iOS segmented control, then «Столы на 14:15», the slider over the day's hours with the
   day's bookings on it, «Сейчас» a quiet key */
.bkp-tools .bkp-head.cs-p-tabs { gap: var(--sp-4); }
.bkp-at { display: flex; flex: none; flex-direction: column; align-items: flex-start; gap: 0; }
.bkp-at-l { color: var(--ink-2); font-size: var(--fs-xs, 12px); line-height: 14px; white-space: nowrap; }
.bkp-time .bkp-clock { min-width: 0; font-size: var(--fs-lg); line-height: 24px; text-align: left; }
.bkp-track { position: relative; display: block; flex: 1 1 auto; min-width: 120px; padding-bottom: 14px; }
.bkp-track > .bkp-range { display: block; width: 100%; min-width: 0; margin: 0; }
.bkp-marks { position: absolute; inset: 0 0 14px; pointer-events: none; }
.bkp-marks > i { position: absolute; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 2px var(--surface); }
.bkp-hours { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; pointer-events: none; }
.bkp-hours > span { position: absolute; top: 0; color: var(--ink-3); font-size: 11px; line-height: 14px; transform: translateX(-50%); }
.bkp-now { flex: none; padding: var(--sp-1) var(--sp-2); border: 0; border-radius: 0; background: none; color: var(--accent); font: inherit; font-size: var(--fs-sm); font-weight: var(--fw-semibold); cursor: pointer; }
.bkp-now:hover { background: var(--surface-2); }
@media (max-width: 700px) {
  .front-look .of-page > .bk-daybar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bk-daybar > .bk-nav { grid-column: 1 / -1; box-shadow: inset 0 -1px 0 0 var(--zl); }
  .bk-daybar > .bk-sum-cell { grid-column: 1 / -1; min-height: 44px; padding-left: var(--sx, 16px); box-shadow: inset 0 -1px 0 0 var(--zl); }
  .front-look .bk-daybar > .bk-views-cell { grid-column: 1 / -1; box-shadow: none; }
}
@media (max-width: 700px) {
  /* (the visual audit of the lines, 12 November) «Отчёт в Telegram» on a phone: the alerts' last row draws the line over
     «Так придёт сообщение» — its head none of its own */
  .front-look .tg-col + .tg-side > .tg-block:first-child > .pg-head:first-child { box-shadow: inset 0 -1px 0 0 var(--zl); }
}

/* «Лояльность» in the brand's look (11 November, 03:26, the owner: «делай все остальные страницы бэка, но только
   чётко»; ui/office-loyalty.jsx, office-coupons.jsx, office-ratings.jsx). The guests: their figures squares — the
   guests, each level a key that leaves only its guests, the points —, the search and the keys a row of the five, the
   list a block. The levels: the points' share of a bill a cell of the keys' row, «Исходные правила», «+ Уровень» and the
   accent's «Сохранить» keys, the levels a list. The discounts: two lists, each its «+» a key at the end of its head;
   «идёт», «PIN», «новая» quiet words (pills only for the tabs and a sheet's main key). */

/* a key at the end of a block's head: a column of the five, the head's height, a line at its left (a fifth of the
   block's width — not of the head's, which is narrower by its padding: the settings' audit, 11 November, five pixels off
   the column's line under it) */
.pg-head > .pg-hkey {
  display: flex; flex: none; align-items: center; justify-content: center; gap: var(--sp-2); align-self: stretch; width: calc((100% + var(--px) + var(--sp-2)) / 5); min-width: 0; margin: 0 calc(-1 * var(--sp-2)) 0 auto; padding: 0 var(--sp-3);
  border: 0; border-radius: 0; background: var(--surface); color: var(--ink); font: inherit; font-size: var(--fs-md); font-weight: var(--fw-semibold); white-space: nowrap; cursor: pointer;
  box-shadow: inset 1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--line-2);
}
.pg-head > .pg-count + .pg-hkey { margin-left: 0; }
.pg-head:has(> .pg-hkey) > .pg-count { padding-right: var(--px); }
.pg-head > .pg-hkey > svg { flex: none; color: var(--ink-2); }
.pg-head > .pg-hkey:hover { background: var(--surface-2); }
.pg-head > .pg-hkey:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pg-head > .pg-hkey.acc { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.pg-head > .pg-hkey.acc > svg { color: currentColor; }
.pg-head > .pg-hkey.acc:hover { background: color-mix(in oklab, var(--accent) 88%, var(--ink)); }
.pg-head > .pg-hkey > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* a key of the page's row that cannot be pressed now (the levels' «Сохранить» before a change, the sixth level) */
.dt-keys > .dt-key:disabled { background: var(--surface); color: var(--ink-3); cursor: default; }
.dt-keys > .dt-key:disabled > svg { color: var(--ink-3); }
.dt-keys > .dt-key.acc:disabled { background: var(--surface-2); color: var(--ink-3); box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }

/* a field in the row of keys: its name over it, as a form's cell */
.dt-keys > .dt-field { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; padding: var(--sp-2) var(--px); background: var(--surface); cursor: text; }
.dt-field-l { overflow: hidden; color: var(--ink-2); font-size: var(--fs-sm); line-height: 18px; white-space: nowrap; text-overflow: ellipsis; }
.dt-field > input { width: 100%; min-width: 0; height: 24px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: var(--fs-md); line-height: 24px; }
.dt-keys > .dt-field:focus-within { box-shadow: inset 0 -2px 0 0 var(--accent); }
.lv-keys.k2 > .dt-field { grid-column: span 3; }
.lv-keys.k3 > .dt-field { grid-column: span 2; }
@media (max-width: 700px) {
  /* a phone's: the field a row, the keys under it — a third each, the last on to the row's end */
  .lv-keys > .dt-field { grid-column: 1 / -1; aspect-ratio: auto; min-height: 60px; padding: var(--sp-2) var(--sx, 16px); }
  .lv-keys > .dt-key.acc { order: 0; grid-row: auto; grid-column: auto; }
  .lv-keys.k2 > .dt-key.acc { grid-column: span 2; aspect-ratio: 4 / 1; }
  .lv-keys > .dt-key:nth-child(2) { box-shadow: inset 0 -1px 0 0 var(--zl); }
}

/* the levels: the list from edge to edge (its fields the rounded blocks of a table's row) */
@media (min-width: 701px) { .front-look .levels-table td.edit-cell { width: 56px; } }

/* the discounts: their marks quiet words; the deleted ones rows, «Вернуть» a key at their end */
.front-look .disc-table .st:not(.c-phone) { display: inline; height: auto; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; font-size: var(--fs-sm); font-weight: var(--fw-regular); line-height: inherit; white-space: nowrap; }
.front-look .disc-table .st.c-phone { height: auto; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; font-size: var(--fs-sm); font-weight: var(--fw-regular); }
.front-look .disc-table .st.st-ok { color: var(--ok); }
.front-look .disc-table .st.st-draft { color: var(--accent); }
.front-look .disc-table .st.st-sent { color: var(--ink-2); }
.disc-gone { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--zl); }
.disc-gone > li { display: flex; align-items: stretch; min-height: 56px; box-shadow: inset 0 -1px 0 0 var(--zl); }
.disc-gone-t { display: flex; flex: 1 1 auto; align-items: center; min-width: 0; padding: var(--sp-2) var(--px); color: var(--ink); font-weight: var(--fw-semibold); }
.disc-gone-t > span { margin-left: 4px; color: var(--ink-2); font-weight: var(--fw-regular); }
.disc-gone > li > .pg-hkey { display: flex; flex: none; align-items: center; justify-content: center; gap: var(--sp-2); width: 20%; padding: 0 var(--sp-3); border: 0; border-radius: 0; background: var(--surface); color: var(--ink); font: inherit; font-weight: var(--fw-semibold); cursor: pointer; box-shadow: inset 1px 0 0 0 var(--zl); }
.disc-gone > li > .pg-hkey:hover { background: var(--surface-2); }
.disc-gone > li > .pg-hkey > svg { color: var(--ink-2); }

@media (max-width: 700px) {
  /* a phone's head key: a third of the row */
  .pg-head > .pg-hkey { width: calc((100% + var(--px) + var(--sp-2)) / 3); flex-direction: column; gap: 2px; padding: 0 var(--sp-2); font-size: var(--fs-sm); line-height: 18px; }
  .disc-gone > li > .pg-hkey { width: calc(100% / 3); }
}
@media (min-width: 701px) and (max-width: 1239px) {
  .pg-head > .pg-hkey { flex-direction: column; gap: 2px; padding: 0 var(--sp-2); font-size: var(--fs-sm); line-height: 18px; }
}

/* (the documents' rule left a single search without its two thirds on a phone: a page with two keys after its search —
   «Гости» — had the search a row of its own under an empty two thirds) the search two thirds beside the accent's key */
@media (max-width: 700px) { :root .doc-keys.s3 > .dt-search { grid-column: span 2; } }

/* the levels on a phone: no table going sideways — a level a block of cells: its name a row across, then where it starts,
   the discount and the points, each named over its field, then what a 3 000 bill gives, its guests and the bin */
@media (max-width: 700px) {
  .front-look #lv-list > .table-wrap { overflow: visible; }
  .front-look .tbl-data.levels-table, .front-look .levels-table tbody { display: block; }
  .front-look .levels-table thead { display: none; }
  .front-look .levels-table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); box-shadow: inset 0 -1px 0 0 var(--zl); }
  :root .front-look .table-wrap > .tbl-data.levels-table td { position: static; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; min-width: 0; max-width: none; height: auto; padding: var(--sp-2) var(--sp-3); border: 0; background: none; text-align: left; white-space: normal; box-shadow: inset 1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl); }
  :root .front-look .table-wrap > .tbl-data.levels-table td:first-child { grid-column: 1 / -1; padding: var(--sp-3) var(--sx, 16px) var(--sp-2); box-shadow: none; }
  :root .front-look .table-wrap > .tbl-data.levels-table td:nth-child(2), :root .front-look .table-wrap > .tbl-data.levels-table td:nth-child(5) { padding-left: var(--sx, 16px); box-shadow: inset 0 1px 0 0 var(--zl); }
  .front-look .levels-table td[data-label]::before { content: attr(data-label); color: var(--ink-3); font-family: var(--font-ui); font-size: var(--fs-xs); font-weight: var(--fw-regular); line-height: 16px; white-space: nowrap; }
  .front-look .levels-table td .cell-input { width: 100%; max-width: 120px; font-size: 16px; }
  .front-look .levels-table td:first-child .cell-input { max-width: none; }
  :root .front-look .table-wrap > .tbl-data.levels-table td.edit-cell { width: auto; align-items: stretch; padding: 0; }
  .front-look .levels-table td.edit-cell .icon-btn { width: 100%; height: 100%; min-height: 56px; border-radius: 0; }
  .front-look .levels-table td.edit-cell:empty { display: none; }
  /* (the first level has no bin: its guests on to the row's end) */
  .front-look .levels-table td:nth-child(6):has(+ td.edit-cell:empty) { grid-column: span 2; }
}

/* a narrower computer: the guests' squares their names and lines on two lines rather than cut; the card's number out of
   the list (it is on the guest's card, and the search finds it) */
@media (min-width: 701px) and (max-width: 1239px) {
  #guests-nums .pg-num-l, #guests-nums .pg-num-s { display: -webkit-box; white-space: normal; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .front-look .guests-table :is(th, td):nth-child(2) { display: none; }
  .front-look .guests-table td .cell-sub { white-space: nowrap; }
}

/* «Купоны»: a campaign a block from edge to edge — its terms cells, those who qualify rows, the guest's message a bubble
   (a message's own shape), «Выдать N купонов» the accent's key at the end of its foot's row (what it gives the row's
   other four columns); changed terms a row too — what to do, «Отмена», «Сохранить условия» */
.front-look .cp-card > .cp-who > .cp-list { margin: 0 calc(-1 * var(--px)); }
.front-look .cp-card > .cp-who > .cp-list > li { min-height: 52px; padding: var(--sp-2) var(--px); border-bottom: 0; box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .cp-card > .cp-who > .cp-list > li:first-child { box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
/* (12 November, the visual audit) those who qualify straight under the terms — the terms' line their top, no strip of the
   card's gap between two lines; the terms' names on two lines rather than cut («Без визито…»); «Выдать 8 купонов» two
   columns of the foot (its words had run 25 px out of the page) */
.front-look .cp-card > :is(.cp-fields, .cp-save) + .cp-who:has(> .cp-list:first-child) { margin-top: calc(-1 * var(--gap, var(--sp-3))); }
.front-look .cp-card > :is(.cp-fields, .cp-save) + .cp-who > .cp-list:first-child > li:first-child { box-shadow: inset 0 -1px 0 0 var(--zl); }
:root .front-look .cp-card > .cp-fields > .dt-field > .dt-field-l { display: block; overflow: visible; white-space: normal; text-overflow: clip; line-height: 16px; overflow-wrap: normal; }
@media (min-width: 701px) { :root .front-look .cp-card > .dt-keys.cp-fields > * { min-height: 76px; } }
.front-look .cp-card > :is(.cp-foot, .cp-save) {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; gap: 0; margin: 0 calc(-1 * var(--px)); padding: 0; border-top: 0; box-shadow: inset 0 1px 0 0 var(--zl);
}
.front-look .cp-card > .cp-foot { margin-top: auto; margin-bottom: calc(-1 * var(--py)); }
.front-look .cp-foot > .muted, .front-look .cp-save > .cp-save-t { grid-column: span 4; grid-row: 1; display: flex; align-items: center; min-height: 56px; padding: 0 var(--px); color: var(--ink-2); font-size: var(--fs-sm); }
.front-look .cp-save > .cp-save-t { grid-column: span 3; }
.front-look .cp-card > :is(.cp-foot, .cp-save) > .btn { grid-row: 1; min-height: 56px; height: auto; padding: 0 var(--sp-3); border: 0; border-radius: 0; box-shadow: inset 1px 0 0 0 var(--zl); font-size: var(--fs-md); }
.front-look .cp-card > .cp-foot > .btn { grid-column: 4 / span 2; min-width: 0; }
.front-look .cp-card > .cp-foot > .muted { grid-column: span 3; }
.front-look .cp-card > :is(.cp-foot, .cp-save) > .btn.btn-primary { box-shadow: none; }
.front-look .cp-card > :is(.cp-foot, .cp-save) > .btn.btn-primary:disabled { background: var(--surface-2); color: var(--ink-3); box-shadow: inset 1px 0 0 0 var(--zl); opacity: 1; }
/* (the visual audit of the lines, 12 November) «Выдать купоны» while there is no one: its grey covers the foot's line over
   it and the card's under it — it draws them itself */
.front-look .cp-card > .cp-foot > .btn.btn-primary:disabled { box-shadow: inset 1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
@media (max-width: 700px) { .front-look .cp-card > .cp-foot > .btn.btn-primary:disabled { box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); } }
/* (the two cards' own lines under them: «Выданные купоны» draws none over itself) */
.front-look .cp-cols + .pg-block > .pg-head:first-child { box-shadow: none; }
.front-look .cp-card > .cp-save > .btn.btn-ghost { background: var(--surface); color: var(--ink); }
/* the coupons' states quiet words */
.front-look .cp-table .st { display: inline; height: auto; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; font-size: var(--fs-sm); font-weight: var(--fw-semibold); line-height: inherit; white-space: nowrap; }
.front-look .cp-table .st.st-ok { color: var(--ok); }
.front-look .cp-table .st.st-sent { color: var(--accent); }
.front-look .cp-table .st.st-bad { color: var(--bad); }
.front-look .cp-table .st.st-muted { color: var(--ink-3); }
@media (max-width: 700px) {
  .front-look .cp-card > :is(.cp-foot, .cp-save) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .front-look .cp-foot > .muted { grid-column: 1 / -1; grid-row: 1; min-height: 44px; }
  .front-look .cp-card > .cp-foot > .btn { grid-column: 1 / -1; grid-row: 2; }
  .front-look .cp-save > .cp-save-t { grid-column: 1 / -1; min-height: 44px; }
  .front-look .cp-card > .cp-save > .btn { grid-row: 2; }
  .front-look .cp-card > .cp-save > .btn.btn-primary { grid-column: span 2; }
  .front-look .cp-card > .cp-save > .btn.btn-ghost { box-shadow: inset 0 1px 0 0 var(--zl); }
}

/* «Оценки гостей»: a rating's state a quiet word; who carried the orders rows from edge to edge */
/* (the visual audit, 11 November) a rating a row of the grid: its words four columns, «Разобрано…» the fifth, a key of
   the row's height; what was done a row of the five under them — the field three columns, «Отмена», the accent's
   «Разобрано». On a phone the words a row, the key a row under them */
.front-look .rt-list > li.rt-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; gap: 0; padding: 0; }
.front-look .rt-row > .rt-body { display: flex; flex-direction: column; grid-column: 1 / -1; align-items: flex-start; gap: var(--sp-2); min-width: 0; padding: var(--sp-3) var(--px); }
.front-look .rt-row:has(> .rt-deal) > .rt-body { grid-column: 1 / 5; }
.front-look .rt-row > .rt-deal { grid-column: 5; min-height: 56px; box-shadow: inset 1px 0 0 0 var(--zl); }
.front-look .rt-row > .rt-form { grid-column: 1 / -1; box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look .rt-row > .rt-form > * { box-shadow: inset 1px 0 0 0 var(--zl); }
.front-look .rt-row > .rt-form > .dt-field { grid-column: span 3; box-shadow: none; }
.front-look .rt-row > .rt-form > .dt-field:focus-within { box-shadow: inset 0 -2px 0 0 var(--accent); }
.front-look .rt-row > .rt-form > .dt-key.acc { box-shadow: none; }
@media (max-width: 700px) {
  .front-look .rt-list > li.rt-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .front-look .rt-row:has(> .rt-deal) > .rt-body { grid-column: 1 / -1; padding-left: var(--sx, 16px); padding-right: var(--sx, 16px); }
  .front-look .rt-row > .rt-deal { grid-column: 1 / -1; box-shadow: inset 0 1px 0 0 var(--zl); }
  .front-look .rt-row > .rt-form > .dt-field { grid-column: 1 / -1; }
  .front-look .rt-row > .rt-form > .dt-key { grid-column: span 1; min-height: 56px; box-shadow: inset 0 1px 0 0 var(--zl); }
  .front-look .rt-row > .rt-form > .dt-key.acc { grid-column: span 2; box-shadow: none; }
}
.front-look .rt-row .st { display: inline; height: auto; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; font-size: var(--fs-sm); font-weight: var(--fw-semibold); line-height: inherit; white-space: nowrap; }
.front-look .rt-row .st.st-ok { color: var(--ok); }
.front-look .rt-row .st.st-bad { color: var(--bad); }

/* a guest's card: its three figures cells across the sheet under its head (no rounded boxes in a square sheet), the
   name's cell right under them */
.front-look .sheet-body > .kpi-row.compact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: calc(-1 * var(--sheet-top, var(--sp-5))) calc(-1 * var(--edge, var(--sx))) 0; padding: 0; }
.front-look .sheet-body > .kpi-row.compact > .tile { display: flex; flex-direction: column; gap: 2px; min-height: 0; padding: var(--sp-3) var(--edge, var(--sx)); border: 0; border-radius: 0; background: var(--surface); box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.front-look .sheet-body > .kpi-row.compact > .tile:first-child { box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .sheet-body > .kpi-row.compact > .tile .tile-l { color: var(--ink-2); font-size: var(--fs-sm); font-weight: var(--fw-regular); line-height: 18px; }
.front-look .sheet-body > .kpi-row.compact > .tile .tile-v { font-size: 22px; line-height: 28px; }
.front-look .sheet-body > .kpi-row.compact > .tile .tile-sub { color: var(--ink-2); font-size: var(--fs-sm); line-height: 18px; }
/* (the visual audit of the lines, 12 November) the tiles draw their line under them: the name's field on it, not a pixel
   under it */
.front-look .sheet-body > .kpi-row.compact + .field { margin-top: calc(-1 * var(--gap)); }

/* ---------- «Купоны» (the visual audit, 11 November) ----------
   a campaign's terms a row of the five — a field a column (they had stood in thirds and quarters, off the page's columns),
   who qualifies now the rest of it; changed — a row under it: what that means, «Отмена», the accent's «Сохранить
   условия». On a phone a field a row, as an iPhone's form */
.front-look .cp-card > .dt-keys:is(.cp-fields, .cp-save) { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0 calc(-1 * var(--px)); padding: 0; box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.front-look .cp-card > .dt-keys.cp-fields.cp-3 > .cp-now { grid-column: span 2; }
.front-look .cp-card > .dt-keys.cp-save > .cp-save-t { grid-column: span 3; }
/* (each cell draws the row's lines over and under it too — the row's own lay under the cells' ground) */
.front-look .cp-card > .dt-keys:is(.cp-fields, .cp-save) > * { min-height: 64px; box-shadow: inset 1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.front-look .cp-card > .dt-keys:is(.cp-fields, .cp-save) > :first-child { box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.front-look .cp-card > .dt-keys:is(.cp-fields, .cp-save) > .dt-field:focus-within { box-shadow: inset 1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl), inset 0 -2px 0 0 var(--accent); }
.front-look .cp-card > .dt-keys:is(.cp-fields, .cp-save) > .dt-field:first-child:focus-within { box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -2px 0 0 var(--accent); }
.front-look .cp-card > .dt-keys.cp-save > .dt-key.acc { box-shadow: none; }
.front-look .cp-card > .cp-fields + .cp-save { margin-top: calc(-1 * var(--sp-3) - 1px); }
.front-look .cp-card > .dt-keys > .cp-now { color: var(--ink); }
/* (a field's name and value at its left, as every field of the grid — the card's centred words had centred them) */
.front-look .cp-card > .dt-keys > :is(.dt-field, .dl-words) { align-items: stretch; text-align: left; }
@media (max-width: 700px) {
  .front-look .cp-card > .dt-keys:is(.cp-fields, .cp-save) { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 calc(-1 * var(--sx, 16px)); }
  .front-look .cp-card > .dt-keys.cp-fields > *, .front-look .cp-card > .dt-keys.cp-fields.cp-3 > .cp-now, .front-look .cp-card > .dt-keys.cp-save > .cp-save-t { grid-column: 1 / -1; aspect-ratio: auto; min-height: 56px; box-shadow: inset 0 -1px 0 0 var(--zl); }
  .front-look .cp-card > .dt-keys.cp-save > .dt-key { grid-column: span 1; box-shadow: none; }
  .front-look .cp-card > .dt-keys.cp-save > .dt-key.acc { grid-column: span 2; }
}

/* (13 November, 01:45, the owner on «Уровни и баллы»: the line under «Баллами можно оплатить до, % чека» 12 lower than
   the menu's line beside it — they did not go on one into the other) a page's first row of keys stands as high as the
   menu's first row (48, a key's): a field in it — its name over its value — closer to its lines */
@media (min-width: 701px) {
  .front-look .of-page > .of-head + .dt-keys > .dt-field { min-height: 48px; padding-block: 4px; gap: 0; }
  .front-look .of-page > .of-head + .dt-keys > .dt-field > .dt-field-l { line-height: 16px; }
}

/* «Деньги» on the brand's grid (11 November — the owner, 03:26: «делай все остальные страницы бэка, но только чётко»;
   ui/money-blocks.jsx). A page: its header, its figures squares of the five (Nums), then blocks — a head (the name, what
   it counts, a key at its end), a line of how far when it has steps, its rows. A row: its words, its keys a column each —
   at the row's end when they are few, a row of the five under the words when more (the last row short: the ground after
   it, the line round its end, as the waiter's tables). The lines: a row draws the one over it; a key its own at its left
   (and over it); none doubled. A phone: the words a row, the keys a third each, the icon over the name. */

/* a block closes with a line under it (the owner, 10 November, of a list of one row: «Нет горизонтальной линии»): drawn
   outside it, so the next block's head — its own line over it — covers it; a page's last block keeps it */
.front-look .mb-block { box-shadow: 0 1px 0 0 var(--zl); }
/* (the visual audit, 11 November) …so a list's last row draws none under it — the block's closes it: the two had touched,
   a line twice as thick under «Кассы и сейфы»' and «Места денег»' last rows */
.front-look .mb-block > .table-wrap:last-child > .tbl-data > tbody:last-child > tr:last-child > td,
.front-look .mb-block > .tbl-data:last-child > tbody:last-child > tr:last-child > td { border-bottom-color: transparent; }
/* (13 November) a row of choices right under a block (P&L on a phone: the month's sources and its keys under the table)
   stands a pixel lower — the block's own line under it shows (its cells' ground had covered it: no line between) */
.front-look.mn-app .of-page > .mb-block + .mb-f { margin-top: 1px; }
/* a head right under a row that closes with its own line (the choices' row, a note) draws none over it; notes without a
   head — their first row none */
.front-look.mn-app .of-page > :is(.mb-f, .tg-row) + .pg-block > .pg-head:first-child { box-shadow: none; }
.front-look.mn-app .of-page > :is(.mb-f, .tg-row) + .pg-block > .pg-head:first-child > .pg-hkey { box-shadow: inset 1px 0 0 0 var(--zl); }
.front-look .mb-notes > .mb-list > .mb-item:first-child { --tl: 0 0 #0000; }

/* a row of choices inside a block: each cell draws the line over it and at its left — the block's rows' way (a second
   row's first cell none at its left) */
.front-look .mb-block > .dt-keys.dl-row.mb-f > * { box-shadow: inset 0 1px 0 0 var(--zl), inset 1px 0 0 0 var(--zl); }
.front-look .mb-block > .dt-keys.dl-row.mb-f > :is(:first-child, :nth-child(5n + 1)) { box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look .mb-block > .dt-keys.dl-row.mb-f > .dt-key.acc:not(:disabled) { box-shadow: none; }
.front-look .mb-block > .dt-keys.dl-row.mb-f > :is(.dt-field, .dt-search):focus-within { box-shadow: inset 0 1px 0 0 var(--zl), inset 1px 0 0 0 var(--zl), inset 0 -2px 0 0 var(--accent); }
/* what a block found (an upload's facts): its lines one under another, the line over them */
.front-look .mb-block > .mn-facts { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: var(--sp-3) var(--px); list-style: none; box-shadow: inset 0 1px 0 0 var(--zl); font-size: var(--fs-sm); line-height: 20px; }
/* a head inside a block (the lines of a file and their sums) */
.front-look .pg-head.mb-sub > h3 { flex: 0 1 auto; min-width: 0; margin: 0; overflow: hidden; color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; white-space: nowrap; text-overflow: ellipsis; }
/* a file to choose on a page: a block a shade apart across the page, as tall as two rows — square, as the page's blocks
   (a sheet's keeps its rounding) */
.front-look .mn-drop.fld-drop { border: 0; color: var(--ink); }
.front-look .of-page > .mn-drop.fld-drop { border-radius: 0; box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .of-page > .mn-drop.fld-drop.over, .front-look .of-page > .mn-drop.fld-drop:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }

/* the line of how far: under the head, the steps done in the colour of done (the first row draws no line over it) */
.front-look .mb-bar { height: 3px; background: var(--surface-3); }
.front-look .mb-bar > span { display: block; height: 100%; background: var(--ok); transition: width 0.3s ease; }
@media (prefers-reduced-motion: reduce) { .front-look .mb-bar > span { transition: none; } }

.front-look .mb-list { margin: 0; padding: 0; list-style: none; }
.front-look .mb-item { --tl: inset 0 1px 0 0 var(--zl); display: block; margin: 0; padding: 0; background: var(--surface); box-shadow: var(--tl); }
.front-look .mb-bar + .mb-list > .mb-item:first-child { --tl: 0 0 #0000; }
.front-look .mb-item.mb-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; }
.front-look .mb-w { display: flex; align-items: flex-start; gap: var(--sp-3); min-width: 0; padding: var(--sp-3) var(--px); }
.front-look .mb-row > .mb-w { grid-column: span var(--span, 5); align-items: center; }
.front-look .mb-t { display: flex; flex: 1 1 auto; flex-direction: column; gap: 2px; min-width: 0; }
.front-look .mb-n { color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; overflow-wrap: anywhere; }
.front-look .mb-h { color: var(--ink-2); font-size: var(--fs-sm); line-height: 18px; }
.front-look .mb-t p { margin: 0; }
/* a step's circle: empty — to do; filled — done; dashed — not yet due */
.front-look .mb-mark { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 22px; height: 22px; border: 2px solid var(--line-2); border-radius: 50%; color: var(--accent-ink, #fff); }
.front-look .mb-mark.done { border-color: var(--ok); background: var(--ok); }
.front-look .mb-mark.later { border-style: dashed; }
.front-look .ms-step:is(.done, .later) .mb-n { color: var(--ink-2); }

/* the keys: a column of the five each, 56 high at least; their words wrap inside them */
.front-look :is(.mb-row, .mb-keys) > .dt-key { min-width: 0; min-height: 56px; padding: var(--sp-2) var(--sp-3); white-space: normal; text-align: center; line-height: 18px; }
.front-look :is(.mb-row, .mb-keys) > .dt-key > span { min-width: 0; overflow-wrap: break-word; }
.front-look .mb-row > .dt-key { box-shadow: var(--tl), inset 1px 0 0 0 var(--zl); }
.front-look .mb-keys { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.front-look .mb-keys > .dt-key { box-shadow: inset 0 1px 0 0 var(--zl), inset 1px 0 0 0 var(--zl), var(--rim, 0 0 #0000), var(--rb, 0 0 #0000); }
.front-look .mb-keys > .dt-key[data-rf] { box-shadow: inset 0 1px 0 0 var(--zl), var(--rim, 0 0 #0000), var(--rb, 0 0 #0000); }
.front-look .mb-keys > [data-rl] { --rim: 1px 0 0 0 var(--zl); }
/* (a key with nothing under it while the row under it is short: its line below — the grid closed round the ground, as
   round the waiter's tables; «Зарплата ресепшн» … «Премии и бонусы» over the ground were open, 11 November) */
.front-look .mb-keys > [data-rb] { --rb: 0 1px 0 0 var(--zl); }
.front-look :is(.mb-row, .mb-keys) > .dt-key.acc:not(:disabled) { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.front-look :is(.mb-row, .mb-keys) > .dt-key:disabled { background: var(--surface); color: var(--ink-3); cursor: default; }
.front-look :is(.mb-row, .mb-keys) > .dt-key:disabled > svg { color: var(--ink-3); }
.front-look :is(.mb-row, .mb-keys) > .dt-key[aria-expanded='true'] { background: var(--surface-2); }

/* the sheets of «Деньги» (an entry, a count, the cash spent): their choices of one an iOS segmented control — the grey
   track, the chosen one white and raised — as the back office's; (12 November, the deep visual audit) a field's choice
   («Чьё», «Вид», «Валюта») is the field's strip of cells, as a dish's or a discount's — not a pill at the screen's edge */
:root .front-look.mn-app .sheet .seg:not(.field > .seg) {
  display: inline-grid; align-self: flex-start; grid-auto-flow: column; grid-auto-columns: minmax(max-content, 1fr); align-items: center; gap: 2px; height: 36px; min-height: 36px;
  max-width: 100%; padding: 2px; overflow: visible; border: 0; border-radius: var(--r-pill); background: var(--seg-track); box-shadow: none;
}
:root .front-look.mn-app .sheet .seg:not(.field > .seg) > .seg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 32px; min-height: 32px; padding: 0 var(--sp-3); border: 0; border-radius: var(--r-pill);
  background: none; box-shadow: none; color: var(--ink); font-size: 13px; font-weight: var(--fw-medium); line-height: 1; white-space: nowrap;
}
:root .front-look.mn-app .sheet .seg:not(.field > .seg) > .seg-btn.on { background: var(--seg-on); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / 0.14), 0 0 0 0.5px rgb(0 0 0 / 0.05); font-weight: var(--fw-semibold); }
:root .front-look.mn-app .sheet .seg:not(.field > .seg) > .seg-btn > svg { color: currentColor; }
@media (max-width: 700px) {
  :root .front-look.mn-app .sheet .seg:not(.field > .seg) { display: grid; width: 100%; height: auto; grid-auto-columns: minmax(0, 1fr); }
  :root .front-look.mn-app .sheet .seg:not(.field > .seg) > .seg-btn { min-width: 0; height: auto; min-height: 32px; padding: 4px 6px; white-space: normal; text-align: center; line-height: 15px; }
}
/* «Обзор»'s figures: the words under a figure two lines (the month's: what came in and what went out — a line each) */
@media (min-width: 701px) {
  #mn-nums .pg-num-s { display: -webkit-box; white-space: normal; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  /* a page's own tabs — no name over them: on the line of the other cells' controls, under their names */
  .front-look .mb-f > .dl-cell.dl-mode:not(:has(> .dl-cell-l)) { justify-content: flex-end; }
}
#mn-nums .mn-sub-l { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* a note in a block: a row like the others — the line over it, none under it */
.front-look .mb-block > .tg-row { box-shadow: inset 0 1px 0 0 var(--zl); }
/* «Обзор»: the block of overdue bills — its head only, the number in the warning's colour */
.front-look .mn-overdue .pg-count .warn-txt { font-weight: var(--fw-semibold); }
/* «Что сделать»: the title and its sum on one line, the words under it, «Что сделать:» in the quiet ink */
.front-look .todo-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }
.front-look .todo-sum { color: var(--ink-2); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; white-space: nowrap; }
.front-look .todo-text { max-width: 80ch; color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; }
.front-look .todo-what { max-width: 80ch; color: var(--ink); font-size: var(--fs-sm); line-height: 20px; }
.front-look .todo-what-l { color: var(--ink-3); }
.front-look .todo-good .todo-title { color: var(--ok); }
.front-look .todo-why { max-width: 560px; margin-top: var(--sp-2); }
.front-look .todo-why td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.front-look .todo-norm-f { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
.front-look .todo-norm-f > .cell-input { width: 96px; }
/* «Сколько стоит бизнес»: the range the cell's big figure, the multiple's choice beside it */
.front-look .worth-range { color: var(--ink-2); font-size: var(--fs-sm); }
.front-look .worth-range b { color: var(--ink); font-size: 28px; font-weight: var(--fw-semibold); line-height: 34px; font-variant-numeric: tabular-nums; }
.front-look .worth-table td.num { white-space: nowrap; font-variant-numeric: tabular-nums; vertical-align: top; }
/* «Вопросы»: the kinds an iOS segmented control on a row of its own; the answers quieter than the keys that act — the
   name of an article, wrapped in its column */
.front-look .mq-kinds > .dl-cell { min-height: 56px; justify-content: center; }
.front-look .mq-kinds { box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look .mq-kinds > .dl-cell { box-shadow: none; }
.front-look .mn-q-acts > .dt-key { font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.front-look .mn-q-none { display: flex; align-items: center; gap: var(--sp-2); }
.front-look .mn-q-purpose { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* a block's name with its icon (a place of money) */
.front-look .mb-block > .pg-head > h2 > svg { flex: none; margin-right: var(--sp-2); color: var(--ink-3); vertical-align: -3px; }
/* a head that sums its rows: how many in the name, the sums at the right, apart */
.front-look .pg-head.mn-sumbar > .pg-count { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px var(--sp-4); white-space: nowrap; }
/* a figure of the page's row (all the cash): its name small, the figure in the numbers' letters */
.front-look .dl-cell.mb-fig { justify-content: center; gap: 2px; }
.front-look .mb-fig-v { color: var(--ink); font-size: 22px; font-weight: var(--fw-semibold); line-height: 28px; font-variant-numeric: tabular-nums; }
/* «Кассы и сейфы»: a place's balance in its head; its rows' table in the five columns — the day, the sum, the article
   two, who — the same in every block */
@media (min-width: 701px) {
  .front-look .mn-cash table.mn-ops { table-layout: fixed; }
  .front-look .mn-cash table.mn-ops th:nth-child(1), .front-look .mn-cash table.mn-ops th:nth-child(2), .front-look .mn-cash table.mn-ops th:nth-child(4) { width: 20%; }
  .front-look .mn-cash table.mn-ops th:nth-child(3) { width: 40%; }
}
.front-look .mn-cash .pg-count .mn-bal { color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); }
/* a key that is on (a column of a file counted in the sum): the accent's shade, its words in the accent */
.front-look .mb-keys > .dt-key[aria-pressed='true'] { background: var(--accent-soft); color: var(--accent); }
.front-look .mb-keys > .dt-key[aria-pressed='true'] > svg { color: var(--accent); }
/* a head whose sums are many (the cards against the bank): they wrap under the name */
.front-look .pg-head.mn-sumbar-w { flex-wrap: wrap; row-gap: 4px; padding-block: var(--sp-2); }
.front-look .pg-head.mn-sumbar-w > span { white-space: normal; }
/* «Пришло по почте»: the file's icon before its name */
.front-look .mm-name { display: flex; align-items: center; gap: var(--sp-2); }
.front-look .mm-name > svg { flex: none; color: var(--ink-3); }

/* a narrower computer (a column 150–190 wide): a key's icon over its name, the name smaller — as the head's keys; the
   figures smaller, a sum of millions whole in its square */
@media (min-width: 701px) and (max-width: 1239px) {
  .front-look :is(.mb-row, .mb-keys) > .dt-key { flex-direction: column; gap: 2px; padding: var(--sp-2); font-size: var(--fs-sm); }
  /* (and a row of the page's choices: «Корректировка», «Загрузить отчёт», «Как в прошлом году» as the keys under it) */
  .front-look .dt-keys.mb-f > .dt-key { flex-direction: column; gap: 2px; padding: var(--sp-2); font-size: var(--fs-sm); }
  .front-look .rp-page > .card > .card-head > .btn { flex-direction: column; gap: 2px; padding: var(--sp-1) var(--sp-2); white-space: normal; font-size: var(--fs-sm); line-height: 18px; text-align: center; }
  #mn-nums .pg-num-v { font-size: 22px; line-height: 28px; }
}

@media (max-width: 700px) {
  /* an iOS segmented control on a phone: the whole row, its segments equal; a long name on two lines, no icon */
  :root .front-look .mb-f > .dl-mode > .seg.cs-tabs { display: grid; width: 100%; height: auto; min-height: 36px; grid-auto-columns: minmax(0, 1fr); }
  :root .front-look .mb-f > .dl-mode > .seg.cs-tabs > .seg-btn { min-width: 0; height: auto; min-height: 32px; padding: 4px 6px; white-space: normal; text-align: center; line-height: 15px; }
  :root .front-look .mb-f > .dl-mode > .seg.cs-tabs > .seg-btn > svg { display: none; }
  .front-look .mb-block > .dt-keys.dl-row.mb-f > :is(*, :first-child, :nth-child(5n + 1)) { box-shadow: inset 0 1px 0 0 var(--zl); }
  .front-look .mb-block > .dt-keys.dl-row.mb-f > .dt-key.acc:not(:disabled) { box-shadow: none; }
  /* (12 November, 11:07, the owner's screenshot of «Обзор»: «Загрузить» a third of the row, its other two thirds empty)
     a row's keys under its words share the row: one key the whole row, two a half each */
  .front-look .mb-item.mb-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .front-look .mb-row > .mb-w { grid-column: 1 / -1; }
  .front-look .mb-row > .mb-w + .dt-key:last-child { grid-column: 1 / -1; }
  .front-look .mb-w { padding: var(--sp-3) var(--sx, 16px); }
  .front-look .mb-keys { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .front-look .mb-row > .dt-key { box-shadow: var(--tl), inset 1px 0 0 0 var(--zl), var(--rim, 0 0 #0000); }
  .front-look .mb-row > .dt-key[data-rf] { box-shadow: var(--tl), var(--rim, 0 0 #0000); }
  .front-look .mb-row > .dt-key { --tl: inset 0 1px 0 0 var(--zl); }
  .front-look .mb-row > [data-rl] { --rim: 1px 0 0 0 var(--zl); }
  .front-look :is(.mb-row, .mb-keys) > .dt-key { flex-direction: column; gap: 2px; min-height: 64px; padding: var(--sp-2); font-size: var(--fs-sm); }
  /* a key with a long name: two of the three columns joined (its words are not cut at the square's edges) */
  .front-look .mb-keys > .dt-key.mb-long { grid-column: span 2; }
  /* «Деньги»' squares: the words under a figure two lines here too («кассы и сейфы» was «кассы и сей…») */
  :root .mn-app .pg-nums > .pg-num.ptable .pg-num-s:not(.pg-by) { display: -webkit-box; height: auto; max-height: 36px; white-space: normal; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .front-look .todo-head { flex-direction: column; gap: 2px; }
  .front-look .worth-range b { font-size: 24px; line-height: 30px; }
  .front-look .dl-cell.mb-fig { flex-direction: row; align-items: center; justify-content: space-between; }
  /* the rows of money as the waiter's rows: the day, the place and the sum on the first line, the article under them,
     whose and who under that */
  .front-look table.mn-ops, .front-look table.mn-ops > tbody { display: block; width: 100%; }
  .front-look table.mn-ops > thead { display: none; }
  .front-look table.mn-ops > tbody > tr {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: 'day place sum' 'art art art' 'unit who who';
    column-gap: var(--sp-3); row-gap: 2px; padding: var(--sp-3) var(--sx, 16px); box-shadow: inset 0 -1px 0 0 var(--zl);
  }
  /* (stronger than the phone's tables that scroll sideways — 92-office-grid.css: the first column held, nothing wraps) */
  .front-look .table-wrap > table.tbl-data.mn-ops > tbody > tr > td:nth-child(n) {
    position: static; display: block; height: auto; min-width: 0; min-height: 0; max-width: none; padding: 0; border: 0; background: none; box-shadow: none; white-space: normal; line-height: 20px;
  }
  .front-look table.mn-ops > tbody > tr.mn-row-review { box-shadow: inset 3px 0 0 0 var(--warn), inset 0 -1px 0 0 var(--zl); }
  .front-look table.mn-ops td.c-day { grid-area: day; color: var(--ink-2); }
  .front-look table.mn-ops td.c-place { grid-area: place; overflow: hidden; color: var(--ink-2); text-overflow: ellipsis; }
  .front-look table.mn-ops td.c-sum { grid-area: sum; font-weight: var(--fw-semibold); }
  .front-look table.mn-ops td.c-art { grid-area: art; }
  .front-look table.mn-ops td.c-unit { grid-area: unit; font-size: var(--fs-sm); }
  .front-look table.mn-ops td.c-who { grid-area: who; font-size: var(--fs-sm); }
  .front-look table.mn-ops td.c-who:has(.mn-who > span:first-child:empty):not(:has(.small)) { display: none; }
  .front-look .pg-block > .table-wrap:has(> table.mn-ops) { overflow: visible; }
}

/* ---------- «Отчёт ресепшена» on the grid (ui/money-reception.jsx; 84-reception.css its old frame) ----------
   The day a row of the five — ‹, the day, its weekday, ›, what became of the report; a way of paying a block — its name
   and sum in the head; a payment a row — its number and who paid three columns, its sum, «убрать» —, its lines rows of
   the five — the room, what for, the sum, the note, «убрать»; «+ Строка» and «+ Оплата» keys of a column; the cash spent
   the same; the safe, the comment, the totals and «Отправить» rows; the last days a block with its table. */
.front-look .rp-page { gap: 0; }
.front-look .rp-page > .card { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--surface); box-shadow: 0 1px 0 0 var(--zl); }
.front-look .rp-page > .card > .card-head { display: flex; align-items: center; gap: var(--sp-3); min-height: 56px; margin: 0; padding: 0 var(--px); box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look .rp-page > .card > .card-head > h2 { display: flex; align-items: center; gap: var(--sp-2); margin: 0; font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; }
.front-look .rp-page > .card > .card-head > h2 > svg { color: var(--ink-3); }
.front-look .rp-page > .card > .card-head > .rp-sum { margin-left: auto; font-size: var(--fs-md); font-variant-numeric: tabular-nums; }
.front-look .rp-page > .card > .card-head > .btn { align-self: stretch; width: 20%; height: auto; min-height: 56px; margin: 0 calc(-1 * var(--px)) 0 auto; border: 0; border-radius: 0; box-shadow: inset 1px 0 0 0 var(--zl); }
/* the day */
.front-look .rp-daybar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; align-items: stretch; min-height: 56px; box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .rp-daybar > .grow { display: none; }
.front-look .rp-daybar > * { min-width: 0; }
.front-look .rp-daybar > .btn { height: auto; min-height: 56px; border: 0; border-radius: 0; background: var(--surface); box-shadow: inset 1px 0 0 0 var(--zl); }
.front-look .rp-daybar > .btn:first-child { box-shadow: none; }
.front-look .rp-daybar > .rp-day { display: flex; box-shadow: inset 1px 0 0 0 var(--zl); }
.front-look .rp-daybar > .rp-day > .select { flex: 1 1 auto; width: 100%; height: auto; min-height: 56px; padding: 0 var(--px); border: 0; border-radius: 0; background: var(--surface); box-shadow: inset 1px 0 0 0 var(--zl); }
.front-look .rp-daybar > .rp-wd { display: flex; align-items: center; padding: 0 var(--px); color: var(--ink-2); box-shadow: inset 1px 0 0 0 var(--zl); }
.front-look .rp-daybar > .rp-status, .front-look .rp-daybar > #rp-status { display: flex; flex-wrap: wrap; align-content: center; align-items: center; gap: 2px var(--sp-2); padding: var(--sp-2) var(--px); font-size: var(--fs-sm); box-shadow: inset 1px 0 0 0 var(--zl); }
.front-look .rp-page > .mn-note { margin: 0; padding: var(--sp-3) var(--px); border: 0; border-radius: 0; background: var(--surface); color: var(--warn); font-size: var(--fs-sm); box-shadow: none; }
/* (the visual audit, 11 November) under the note one line — the next block's head's: the note's own under it and the
   page's line over a block after words had made three */
.front-look .of-page.rp-page > .mn-note + .card { border-top: 0; }
/* the day's bar: its line under it drawn by its cells — the bar's own lay under their ground (it showed under the day and
   the weekday only) */
.front-look .rp-daybar > :is(.btn, .rp-day, .rp-wd, .rp-status) { box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.front-look .rp-daybar > .btn:first-child { box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .rp-daybar > .rp-day > .select { box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
/* a payment and its lines */
.front-look .rp-pay { gap: 0; padding: 0; border: 0; box-shadow: none; }
.front-look .rp-pay-head, .front-look .rp-part { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-areas: none; gap: 0; align-items: stretch; min-height: 52px; }
.front-look .rp-pay-head > .rp-pay-n { grid-row: 1; grid-column: 1; z-index: 1; align-self: center; margin-left: var(--px); }
.front-look .rp-pay-head > .rp-who { grid-row: 1; grid-column: 1 / span 3; padding-left: calc(var(--px) + 36px); }
.front-look .rp-pay-head > .rp-pay-sum { grid-row: 1; grid-column: 4; display: flex; align-items: center; justify-content: flex-end; padding: 0 var(--px); background: var(--surface); font-variant-numeric: tabular-nums; }
.front-look :is(.rp-pay-head, .rp-part) > .btn { grid-row: 1; grid-column: 5; height: auto; min-height: 52px; border: 0; border-radius: 0; background: var(--surface); color: var(--ink-2); }
.front-look :is(.rp-pay-head, .rp-part) > .btn:disabled { color: var(--ink-3); }
.front-look .rp-part { box-shadow: none; }
.front-look :is(.rp-pay-head, .rp-part) > * { box-shadow: inset 0 1px 0 0 var(--zl), inset 1px 0 0 0 var(--zl); }
.front-look .rp-part > :first-child, .front-look .rp-pay-head > .rp-who { box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look .rp-pay-head > .rp-pay-n { box-shadow: none; }
.front-look :is(.rp-pay, .rp-part) input, .front-look .rp-part > .select {
  width: 100%; min-width: 0; height: auto; min-height: 52px; padding: 0 var(--px); border: 0; border-radius: 0; outline: 0; background: var(--surface); color: var(--ink); font: inherit; font-size: var(--fs-md);
}
.front-look :is(.rp-pay-head, .rp-part) > :is(input, .select):focus { outline: 0; box-shadow: inset 0 1px 0 0 var(--zl), inset 1px 0 0 0 var(--zl), inset 0 -2px 0 0 var(--accent); }
.front-look :is(.rp-pay-head, .rp-part) > input.bad { box-shadow: inset 0 1px 0 0 var(--zl), inset 1px 0 0 0 var(--zl), inset 0 -2px 0 0 var(--bad); }
.front-look .rp-part.rp-exp-row > .rp-unit { grid-column: 1 / -1; padding: 0 var(--px) var(--sp-2); }
/* «+ Строка», «+ Оплата», «+ Расход»: keys of a column at the row's start, the line round them */
.front-look .rp-page :is(.rp-addpart, .rp-addpay) { align-self: flex-start; width: 20%; height: auto; min-height: 52px; margin: 0; border: 0; border-radius: 0; background: var(--surface); color: var(--ink); box-shadow: inset 0 1px 0 0 var(--zl), 1px 0 0 0 var(--zl); }
.front-look .rp-page .rp-addpay { width: 40%; font-weight: var(--fw-semibold); }
.front-look .rp-page :is(.rp-addpart, .rp-addpay):hover { background: var(--surface-2); }
.front-look .rp-page .card > .rp-hint, .front-look .rp-page .card > p.muted, .front-look .rp-page .card > p.small { margin: 0; padding: var(--sp-3) var(--px); color: var(--ink-2); font-size: var(--fs-sm); box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look .rp-page .card > p.mn-review-txt { color: var(--warn); }
.front-look .rp-page .card > p.bad-txt { color: var(--bad); }
/* the safe: «Сошлось» a row, the count a cell and the difference beside it */
.front-look .rp-safe > .rp-ok { margin: 0; padding: 0 var(--px); min-height: 52px; box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look .rp-fact { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0; align-items: stretch; box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look .rp-fact > .field { display: flex; flex-direction: column; justify-content: center; gap: 2px; margin: 0; padding: var(--sp-2) var(--px); }
.front-look .rp-fact > .field > input { height: 24px; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; text-align: left; }
.front-look .rp-fact > .rp-diff { display: flex; align-items: center; padding: 0 var(--px); box-shadow: inset 1px 0 0 0 var(--zl); }
/* the comment, the totals, how it goes and «Отправить» */
.front-look .rp-end { gap: 0; }
.front-look .rp-page .rp-end > .field { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: var(--sp-2) var(--px); box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look .rp-page .rp-end > .field > textarea { min-height: 48px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.front-look .rp-page .rp-end > .field:focus-within { box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -2px 0 0 var(--accent); }
.front-look .rp-end > .rp-totals, .front-look .rp-end > .rp-preview-box, .front-look .rp-end > p { margin: 0; padding: var(--sp-3) var(--px); box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look .rp-end > .rp-preview-box .rp-preview { border-radius: 0; }
/* (the visual audit, 11 November) the message as it goes: a shade from edge to edge under its words — it had stood 16 px in
   from both sides */
.front-look .rp-end > .rp-preview-box[open] { padding-bottom: 0; }
.front-look .rp-end > .rp-preview-box .rp-preview { margin: var(--sp-3) calc(-1 * var(--px)) 0; padding: var(--sp-3) var(--px); box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look .rp-page .rp-end > .row-gap { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0; box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look .rp-page .rp-end > .row-gap > .btn { grid-column: 5; width: auto; height: auto; min-height: 56px; padding: var(--sp-2) var(--sp-3); border: 0; border-radius: 0; white-space: normal; line-height: 18px; }
.front-look .rp-end > .row-gap > .btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
/* (the form's ring of the old look's last row of keys had stayed round «Отправить» — over the row's line) */
.front-look #rp-send { box-shadow: none; }
.front-look .rp-end > .row-gap > .btn-primary:disabled { background: var(--surface-2); color: var(--ink-3); box-shadow: inset 1px 0 0 0 var(--zl); }
/* «Последние дни»: «Загрузить прошлые дни» a key at the head's end — a column of the five, the head's height (it had been a
   small framed button, off the columns) */
.front-look #rp-days > .card-head.mn-pad { align-items: stretch; min-height: 56px; padding-top: 0; padding-bottom: 0; padding-right: 0; }
.front-look #rp-days > .card-head.mn-pad > h2 { align-self: center; }
.front-look #rp-days > .card-head > #rp-import {
  flex: none; align-self: stretch; width: calc((100% + var(--px)) / 5); height: auto; min-height: 56px; margin: 0 0 0 auto; padding: 0 var(--sp-3); border: 0; border-radius: 0;
  background: var(--surface); color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); white-space: normal; line-height: 18px; box-shadow: inset 1px 0 0 0 var(--zl);
}
.front-look #rp-days > .card-head > #rp-import:hover { background: var(--surface-2); }
@media (min-width: 701px) and (max-width: 1239px) { .front-look #rp-days > .card-head > #rp-import { flex-direction: column; gap: 2px; font-size: var(--fs-sm); } }
@media (max-width: 700px) { .front-look #rp-days > .card-head > #rp-import { width: calc((100% + var(--px)) / 3); flex-direction: column; gap: 2px; font-size: var(--fs-sm); } }
.front-look #rp-days > p.muted { margin: 0; padding: var(--sp-3) var(--px); box-shadow: inset 0 1px 0 0 var(--zl); }
/* (the cards' bleed of the old look — a table and a last row pulled to the card's edges — undone: the blocks have none) */
.front-look .rp-page > .card:not(.flush) > :is(.table-wrap, .tbl-data), .front-look .rp-page > .card:not(.flush) > :is(.table-wrap, .tbl-data):last-child { margin: 0; }
.front-look .rp-page > section.card.rp-end > .row-gap:last-child { margin: 0; }

@media (max-width: 700px) {
  .front-look .rp-daybar { grid-template-columns: 56px minmax(0, 1fr) auto 56px; }
  .front-look .rp-daybar > :is(.rp-status, #rp-status) { grid-column: 1 / -1; box-shadow: inset 0 -1px 0 0 var(--zl); }
  .front-look .rp-pay-head, .front-look .rp-part { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .front-look .rp-pay-head > .rp-who { grid-column: 1 / span 2; }
  .front-look .rp-pay-head > .rp-pay-sum { grid-column: 3; }
  .front-look .rp-pay-head > .btn { grid-row: 2; grid-column: 3; box-shadow: inset 1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl); }
  .front-look .rp-part { grid-template-areas: 'room kind kind' 'amt amt drop' 'note note note'; }
  .front-look .rp-part > .rp-room { grid-area: room; }
  .front-look .rp-part > .rp-kind { grid-area: kind; }
  .front-look .rp-part > .rp-amt { grid-area: amt; box-shadow: inset 0 1px 0 0 var(--zl); }
  .front-look .rp-part > .rp-note { grid-area: note; box-shadow: inset 0 1px 0 0 var(--zl); }
  .front-look .rp-part > .btn { grid-area: drop; box-shadow: inset 1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl); }
  .front-look .rp-part.rp-exp-row { grid-template-areas: 'art art art' 'who amt drop' 'note note note'; }
  .front-look .rp-part.rp-exp-row > .rp-art { grid-area: art; }
  .front-look .rp-part.rp-exp-row > .rp-who { grid-area: who; box-shadow: inset 0 1px 0 0 var(--zl); }
  .front-look .rp-part.rp-exp-row > .rp-amt { grid-area: amt; box-shadow: inset 1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl); }
  .front-look .rp-page :is(.rp-addpart, .rp-addpay) { width: calc(100% / 3); }
  .front-look .rp-page .rp-addpay { width: calc(200% / 3); }
  .front-look .rp-fact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .front-look .rp-fact > .field { grid-column: span 2; }
  .front-look .rp-page > .card > .card-head > .btn { width: calc(100% / 3); flex-direction: column; gap: 2px; padding: var(--sp-1) var(--sp-2); white-space: normal; font-size: var(--fs-sm); line-height: 18px; text-align: center; }
  .front-look .rp-page .rp-end > .row-gap { grid-template-columns: minmax(0, 1fr); }
  .front-look .rp-page .rp-end > .row-gap > .btn { grid-column: 1; }
}

/* ---------- «Деньги», part 2 (11 November): P&L, «Бюджет» and «Коэффициенты» ---------- */
/* two keys at a block's head end (an unsaved change: «Отменить», «Сохранить»): side by side, a column each */
.front-look .mb-block > .pg-head > .pg-hkey:not(:last-child) { margin-right: 0; }
/* (the visual audit, 11 November: the head's own gap of 12 had stood between two keys — the first one's line 12 px off its
   column's) */
.front-look .mb-block > .pg-head > .pg-hkey + .pg-hkey { margin-left: calc(-1 * var(--sp-3)); }
.front-look .mb-block > .pg-head > .pg-hkey:disabled { color: var(--ink-3); cursor: default; }
.front-look .mb-block > .pg-head > .pg-hkey:disabled > svg { color: var(--ink-3); }
.front-look .mb-block > .pg-head > .pg-hkey.acc:disabled { background: var(--surface); color: var(--ink-3); box-shadow: inset 1px 0 0 0 var(--zl); }
/* P&L: the month's reports — cells of a row, each its sign and its words; a loaded one in the ink, its check green */
.front-look .mb-f > .pl-src { flex-direction: row; align-items: center; justify-content: flex-start; gap: var(--sp-2); color: var(--ink-2); }
.front-look .mb-f > .pl-src > svg { flex: none; color: var(--ink-3); }
.front-look .mb-f > .pl-src.on { color: var(--ink); }
.front-look .mb-f > .pl-src.on > svg { color: var(--ok); }
/* «Бюджет»: «План · Коэффициенты» where the other cells' controls stand — under their names' line, not at the row's foot:
   the row as high in both views, the tabs where they were (a computer's) */
@media (min-width: 701px) {
  .front-look .mb-f > .dl-cell.dl-mode.mb-tabs-low { justify-content: flex-start; padding-top: calc(var(--sp-3) + 18px + var(--sp-2)); }
}
/* «Коэффициенты» → the divided lines: a line its rows of the block — its name and how it is divided, the shares under */
.front-look .mb-block > .pl-split-row > .dt-keys.dl-row.mb-f > * { box-shadow: inset 0 1px 0 0 var(--zl), inset 1px 0 0 0 var(--zl); }
.front-look .mb-block > .pl-split-row > .dt-keys.dl-row.mb-f > :first-child { box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look .mb-block > .pl-split-row > .dt-keys.dl-row.mb-f > .dt-key.acc:not(:disabled) { box-shadow: none; }
.front-look .mb-block > .pl-split-row > .dt-keys.dl-row.mb-f > .dt-field:focus-within { box-shadow: inset 0 1px 0 0 var(--zl), inset 1px 0 0 0 var(--zl), inset 0 -2px 0 0 var(--accent); }
.front-look .mb-f > .pl-split-name { justify-content: center; gap: 2px; }
.front-look .mb-f > .pl-split-name > b { font-weight: var(--fw-semibold); line-height: 20px; }
.front-look .mb-f > .pl-split-sum.bad .mb-fig-v { color: var(--bad); }
.front-look .mb-f > .pl-split-u > input { font-variant-numeric: tabular-nums; }

/* ---------- a row of the page's choices on a phone (11 November, part 2) ---------- */
/* a day's short form (calendar.jsx, DateField short) — a phone's; a choice's phone list (MRow) — a phone's */
.df-short { display: none; }
.front-look .dt-keys.mb-f > .mb-seg-phone { display: none; }
@media (max-width: 700px) {
  /* three columns, as written (not the dishes' search first and accent key at the top): a list, a day, a field — a
     third of the row, half a square high (a control); two columns' cell — two thirds; a wider one and the search — the
     row (the words, the switches and the keys are rows of their own — 99-integr.css) */
  .front-look .dt-keys.mb-f > * { order: 0; }
  .front-look .dt-keys.mb-f > :is(.dt-pick, .dt-field, .dt-search) { aspect-ratio: auto; min-height: 64px; }
  .front-look .dt-keys.mb-f > .w2:is(.dt-pick, .dt-field) { grid-column: span 2; }
  .front-look .dt-keys.mb-f > :is(.w3, .w4, .w5):is(.dt-pick, .dt-field), .front-look .dt-keys.mb-f > .dt-search { grid-column: 1 / -1; }
  .front-look .dt-keys.mb-f > .dt-search { min-height: 56px; padding: 0 var(--sx, 16px); }
  /* a choice whose segments would not fit the row: its list */
  .front-look .dt-keys.mb-f > .mb-seg-wide { display: none; }
  .front-look .dt-keys.mb-f > .mb-seg-phone { display: grid; grid-column: 1 / -1; }
}

/* a day in a cell of a narrower screen (a computer's column under 1240 — «1 авг. 2026…» — and a phone's third): this
   year's day without its year */
@media (max-width: 1239px) {
  .front-look .mb-f .df-long { display: none; }
  .front-look .mb-f .df-short { display: inline; }
}

/* ---------- «Настройки» (13 November: «Для человека, который сталкивается в первый раз с системой — точно ничего не
   ясно») ----------
   «Статьи ДДС» and «Строки P&L» — tables of rows: a part («Поступления», «Выплаты») a head of the table's own words; a
   group (a section of P&L) a row that opens — its key the chevron and the name, how many after it — and says where it
   goes (where its figures come from); its rows under it, their names in a step from the group's, a line of P&L the
   further in the deeper; one switched off struck through. On a phone the second column goes under the name. */
.front-look .tbl-data.mn-sets-tbl tbody th { height: 44px; padding: var(--sp-1) var(--sp-3); background: none; color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); text-align: left;
  box-shadow: none; border-bottom: 1px solid var(--zl); }
.front-look .tbl-data.mn-sets-tbl tbody th:first-child { padding-left: var(--px); }
.front-look .tbl-data.mn-sets-tbl tr.mn-r-part > th { height: 52px; padding-top: var(--sp-4); vertical-align: bottom; color: var(--ink); font-size: var(--fs-lg, 17px); }
.front-look .tbl-data.mn-sets-tbl tr.mn-r-part > th > .muted { font-size: var(--fs-sm); font-weight: var(--fw-regular, 400); }
.front-look .tbl-data.mn-sets-tbl tr.mn-r-group > th .mn-toggle { gap: 6px; text-align: left; }
.front-look .tbl-data.mn-sets-tbl tr.mn-r-group > th .mn-toggle > svg { flex: none; color: var(--ink-2); }
.front-look .tbl-data.mn-sets-tbl tr.mn-r-group > th .mn-toggle .muted { font-weight: var(--fw-regular, 400); }
.front-look .tbl-data.mn-sets-tbl tr.mn-r-group:hover > * { background: var(--surface-2); }
.front-look .tbl-data.mn-sets-tbl tr.mn-r-group > th .mn-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
/* a row's name a step in from its group's (the chevron and its gap: 16 + 6) — a line of P&L a step more for each group */
.front-look .tbl-data.mn-sets-tbl :is(tr.mn-art-row, tr.mn-pl-row) > td:first-child { padding-left: calc(var(--px) + 22px + var(--depth, 0) * 16px); }
.front-look .tbl-data.mn-sets-tbl tr.mn-pl-row.grp > td:first-child { font-weight: var(--fw-semibold); }
.front-look .tbl-data.mn-sets-tbl tr.off > td:first-child .mn-set-t { color: var(--ink-3); text-decoration: line-through; }
.front-look .tbl-data.mn-sets-tbl .mn-set-sub { display: none; }
.front-look .tbl-data.mn-sets-tbl th.num { width: 1%; white-space: nowrap; }
.front-look .tbl-data.mn-sets-tbl .mn-set-on { width: 1%; text-align: center; white-space: nowrap; }
.front-look .tbl-data.mn-sets-tbl td.mn-set-on > .switch { vertical-align: middle; }
/* (a block of «Деньги» closes itself with its line: a group's row last in it draws none of its own — 2 px had been there) */
.front-look .mb-block > .table-wrap:last-child > .tbl-data > tbody:last-child > tr:last-child > th { border-bottom-color: transparent; }
/* the two tables one under the other on the grid of the five: the name two columns, the line of P&L two, the rows of the
   year and the switch the fifth; where the figures come from — three */
@media (min-width: 701px) {
  .front-look .tbl-data.mn-sets-tbl:is(.mn-arts-tbl, .mn-pl-tbl) { table-layout: fixed; width: 100%; }
  .front-look .tbl-data.mn-sets-tbl:is(.mn-arts-tbl, .mn-pl-tbl) > thead th:first-child { width: 40%; }
  .front-look .tbl-data.mn-arts-tbl > thead th.mn-set-to { width: 40%; }
  .front-look .tbl-data.mn-arts-tbl > thead :is(th.num, th.mn-set-on) { width: 10%; }
  .front-look .tbl-data.mn-sets-tbl:is(.mn-arts-tbl, .mn-pl-tbl) .mn-set-to { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
}
@media (max-width: 700px) {
  .front-look .table-wrap > .tbl-data.mn-sets-tbl { min-width: 0; width: 100%; }
  .front-look .table-wrap > .tbl-data.mn-sets-tbl .mn-set-to { display: none; }
  .front-look .mn-settings .table-wrap > .tbl-data.mn-sets-tbl :is(th, td):first-child { position: static; max-width: none; white-space: normal; box-shadow: none; background: none; }
  .front-look .mn-settings .table-wrap > .tbl-data.mn-sets-tbl thead :is(th, td):first-child { background: var(--bg); }
  /* (their first column is not held at the left: no line at its right in the head either) */
  .front-look.mn-app .mn-settings .table-wrap > .tbl-data.mn-sets-tbl > thead > tr:first-child > th:first-child { box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
  /* a place's kind, beginning and opening under its name — in a line with the name, after the icon */
  .front-look .tbl-data.mn-places-tbl .mn-set-sub { padding-left: calc(18px + var(--sp-2)); }
  .front-look .mn-settings .table-wrap > .tbl-data.mn-sets-tbl tr.clickable:hover td:first-child { background: var(--surface-2); }
  .front-look .tbl-data.mn-sets-tbl .mn-set-sub { display: block; margin-top: 2px; font-size: var(--fs-sm); font-weight: var(--fw-regular, 400); line-height: 18px; }
  .front-look .tbl-data.mn-sets-tbl tr.mn-r-group > th .mn-set-sub { padding-left: 22px; }
  .front-look .tbl-data.mn-sets-tbl :is(td, th) { height: auto; min-height: 44px; padding-top: var(--sp-2); padding-bottom: var(--sp-2); }
}
/* «ДДС = P&L»: what still gives «без разбивки» — a part of the block, its list under its words */
.front-look .mb-block > .pl-align-part { margin: 0; padding: var(--sp-3) var(--px); box-shadow: inset 0 1px 0 0 var(--zl); font-size: var(--fs-sm); }
.front-look .mb-block > .pl-align-part > p { margin: 0 0 var(--sp-2); color: var(--ink-2); }
.front-look .mb-block > .pl-align-part > .pl-align-list { margin: 0; }

/* ---------- «Подключения» (11 November) ---------- */
/* facts of a block: a row each — its name a column of the five, what it is the rest (a key at its end — its column) */
.front-look .mb-facts { margin: 0; padding: 0; list-style: none; }
.front-look .mb-fact { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); min-height: 48px; box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look .mb-fact > .mb-fact-l { align-self: center; padding: var(--sp-3) var(--px); color: var(--ink-2); font-size: var(--fs-sm); line-height: 18px; }
.front-look .mb-fact > .mb-fact-v { grid-column: span 4; align-self: center; min-width: 0; padding: var(--sp-3) var(--px); overflow-wrap: anywhere; line-height: 20px; }
.front-look .mb-fact.with-key > .mb-fact-v { grid-column: span 3; }
.front-look .mb-fact.with-keys2 > .mb-fact-v { grid-column: span 2; }
.front-look .mb-fact > .dt-key { min-height: 48px; box-shadow: inset 1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl); white-space: normal; text-align: center; line-height: 18px; }
.front-look .mb-fact > .dt-key.bad { color: var(--bad); }
.front-look .mb-fact > .dt-key.acc { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.front-look .mb-fact > .mb-fact-v > :is(.select, .select-wrap) { max-width: 420px; }
/* a part of a block with its own head (Syrve's takings, P&L from Syrve): its words, its rows */
/* (none of the old card's own air and border — 81-money.css's .sy-takings and .sy-form had a margin, a border and a
   padding: a strip between two lines over «Выручка из Syrve»; the part's rows draw the lines over them) */
.front-look .mb-block > .mb-part, .front-look .mb-part > .mb-part { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.front-look .mb-part > .dt-keys.dl-row.mb-f > * { box-shadow: inset 0 1px 0 0 var(--zl), inset 1px 0 0 0 var(--zl); }
.front-look .mb-part > .dt-keys.dl-row.mb-f > :first-child { box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look .mb-part > .dt-keys.dl-row.mb-f > .dt-key.acc:not(:disabled) { box-shadow: none; }
.front-look .mb-part > .dt-keys.dl-row.mb-f > :is(.dt-pick, .dt-field):focus-within { box-shadow: inset 0 1px 0 0 var(--zl), inset 1px 0 0 0 var(--zl), inset 0 -2px 0 0 var(--accent); }
.front-look .mb-part > .tg-row, .front-look .mb-part > .mb-list > .tg-row { box-shadow: inset 0 1px 0 0 var(--zl); }
/* (P&L from Syrve: its months rows of a list, a line over each, no air between them) */
.front-look .mb-part > .mb-list.sy-pl-months { gap: 0; }
.front-look .mb-part > .table-wrap { box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look .mb-part > :is(details.bf-group) > summary { display: flex; align-items: center; gap: var(--sp-2); min-height: 48px; padding: 0 var(--px); list-style: none; cursor: pointer; box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look .mb-part > details.bf-group > summary::-webkit-details-marker { display: none; }
.front-look .mb-part > details.bf-group > summary::before { content: ''; flex: none; width: 7px; height: 7px; margin-right: 4px; border: solid var(--ink-3); border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); transition: transform 0.15s; }
.front-look .mb-part > details.bf-group[open] > summary::before { transform: rotate(45deg); }
.front-look .mb-block > .tg-row, .front-look .mb-part > .tg-row { margin: 0; }
.front-look .mb-block > .dt-keys.dl-row.mb-f > .dt-key.bad { color: var(--bad); }
.front-look .pg-head > .pg-count.ok { color: var(--ok); }
.front-look .pg-head > .pg-count.bad { color: var(--bad); }
@media (max-width: 700px) {
  .front-look .mb-fact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .front-look .mb-fact > .mb-fact-l { grid-column: 1 / -1; padding-bottom: 0; }
  .front-look .mb-fact > .mb-fact-v, .front-look .mb-fact.with-key > .mb-fact-v { grid-column: 1 / -1; padding-top: 2px; }
  .front-look .mb-fact > .dt-key { grid-column: 1 / -1; box-shadow: inset 0 1px 0 0 var(--zl); }
  .front-look .mb-part > .dt-keys.dl-row.mb-f > :is(*, :first-child) { box-shadow: inset 0 1px 0 0 var(--zl); }
}

/* ---------- «Счета» (11 November) ---------- */
/* a figure cell gone wrong (the overdue, the shares not adding up to 100 %): its figure in the bad colour */
.front-look .mb-f > .mb-fig.bad .mb-fig-v { color: var(--bad); }
/* «Без статьи»: a supplier — its words a row (a key to its bill), its article, whose, «Запомнить», «Сохранить» a row of
   the five under it */
.front-look .mb-block > .bl-review-row > .bl-review-who { display: flex; flex-direction: column; gap: 2px; width: 100%; min-height: 56px; padding: var(--sp-3) var(--px);
  border: 0; border-radius: 0; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look .mb-block > .bl-review-row > .bl-review-who > b { font-weight: var(--fw-semibold); line-height: 20px; }
.front-look .mb-block > .bl-review-row > .bl-review-who:hover { background: var(--surface-2); }
.front-look .mb-block > .bl-review-row > .bl-review-who:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.front-look .mb-block > :is(.bl-review-row, .bf-plan) > .dt-keys.dl-row.mb-f > * { box-shadow: inset 0 1px 0 0 var(--zl), inset 1px 0 0 0 var(--zl); }
.front-look .mb-block > :is(.bl-review-row, .bf-plan) > .dt-keys.dl-row.mb-f > :first-child { box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look .mb-block > :is(.bl-review-row, .bf-plan) > .dt-keys.dl-row.mb-f > .dt-key.acc:not(:disabled) { box-shadow: none; }
.front-look .mb-block > .bl-review-row > .dt-keys.dl-row.mb-f > :is(.dt-pick, .dt-field):focus-within { box-shadow: inset 0 1px 0 0 var(--zl), inset 1px 0 0 0 var(--zl), inset 0 -2px 0 0 var(--accent); }
/* «Из файла»: what the server would do — its facts, then each kind of row folded under its row */
.front-look .mb-block > .bf-plan { display: flex; flex-direction: column; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.front-look .bf-plan > .mn-facts { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: var(--sp-3) var(--px); list-style: none; box-shadow: inset 0 1px 0 0 var(--zl); font-size: var(--fs-sm); line-height: 20px; }
.front-look .bf-plan > .bf-group > summary { display: flex; align-items: center; gap: var(--sp-2); min-height: 48px; padding: 0 var(--px); list-style: none; cursor: pointer; box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look .bf-plan > .bf-group > summary::-webkit-details-marker { display: none; }
.front-look .bf-plan > .bf-group > summary::before { content: ''; flex: none; width: 7px; height: 7px; margin-right: 4px; border: solid var(--ink-3); border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); transition: transform 0.15s; }
.front-look .bf-plan > .bf-group[open] > summary::before { transform: rotate(45deg); }
.front-look .bf-plan > .bf-group > summary:hover { background: var(--surface-2); }
.front-look .bf-plan > .bf-group > .table-wrap { box-shadow: inset 0 1px 0 0 var(--zl); }

@media (max-width: 700px) {
  .front-look .mb-block > .pl-split-row > .dt-keys.dl-row.mb-f > :is(*, :first-child) { box-shadow: inset 0 1px 0 0 var(--zl); }
  .front-look .mb-block > :is(.bl-review-row, .bf-plan) > .dt-keys.dl-row.mb-f > :is(*, :first-child) { box-shadow: inset 0 1px 0 0 var(--zl); }
  .front-look .mb-block > .pl-split-row > .dt-keys.dl-row.mb-f > .dt-key.acc:not(:disabled) { box-shadow: none; }
}

/* ---------- «Зарплата» (11 November) ---------- */
/* «Закрыт 30.11»: the month closed — its words in the colour of done, its lock before them */
.front-look .mb-f > .dl-words.mb-ok { display: flex; flex-direction: row; align-items: center; gap: 6px; color: var(--ok); font-weight: var(--fw-semibold); }

/* (the visual audit, 11 November) a row of the page's choices right over its figures: its line under it is theirs over
   them — two had touched («Счета» → «Чьи» over the squares) */
@media (min-width: 701px) {
  .front-look .of-page > .dt-keys.mb-f:has(+ .pg-nums) > * { box-shadow: inset 1px 0 0 0 var(--zl); }
  .front-look .of-page > .dt-keys.mb-f:has(+ .pg-nums) > :is(:first-child, :nth-child(5n + 1)) { box-shadow: none; }
  .front-look .of-page > .dt-keys.mb-f:has(+ .pg-nums) > .dt-key.acc { box-shadow: none; }
}
@media (max-width: 700px) {
  /* (the visual audit, 11 November) a phone's head of two keys: the name a row of its own — squeezed out, it had vanished
     («Syrve — сервер ресторана»); under it what it counts and the two keys, a third each */
  .front-look .mb-block > .pg-head:has(> .pg-hkey + .pg-hkey) { flex-wrap: wrap; gap: 0; padding-right: 0; }
  .front-look .mb-block > .pg-head:has(> .pg-hkey + .pg-hkey) > h2 { flex: 1 0 100%; min-height: 56px; display: flex; align-items: center; }
  .front-look .mb-block > .pg-head:has(> .pg-hkey + .pg-hkey) > .pg-count { display: flex; flex: none; align-items: center; align-self: stretch; width: calc((100% + var(--px)) / 3); min-height: 56px; margin: 0 0 0 calc(-1 * var(--px)); padding: 0 var(--px); box-shadow: inset 0 1px 0 0 var(--zl); }
  .front-look .mb-block > .pg-head:has(> .pg-hkey + .pg-hkey) > .pg-hkey { width: calc((100% + var(--px)) / 3); min-height: 56px; margin: 0; }
  .front-look .mb-block > .pg-head:has(> .pg-hkey + .pg-hkey) > .pg-hkey:first-of-type { margin-left: auto; }
  .front-look .mb-block > .pg-head:has(> .pg-hkey + .pg-hkey) > .pg-hkey:not(.acc) { box-shadow: inset 1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl); }
  /* a row of the page's choices right over the figures: its last cell's line under it is theirs over them */
  .front-look .of-page > .dt-keys.mb-f:has(+ .pg-nums) > :last-child { box-shadow: none; }
}

/* (12 November, the deep visual audit of «Деньги»: ДДС and P&L — the articles' column darker than its rows, an edge
   without a line) a row's own head (th of the body) wears the row's surface, not the table head's ground */
.front-look .tbl-data tbody th.mn-stick { background: var(--surface); }
.front-look .tbl-data tbody tr.mn-r-section > th.mn-stick { background: var(--surface-2); }
/* (the same audit) the sum's bar over a list («5 строк · Поступления … Выплаты»): its old line under it — of another
   shade — and the table's head's over itself were two; the head's is the one */
.front-look .pg-head.mn-sumbar { border-bottom: 0; }
/* a block of «Деньги» closes itself with its line under it: the last row's head (ДДС's «Остаток на конец») draws none of
   its own, as its cells don't — a line of 2 px had been under the articles' column */
.front-look .mb-block > .table-wrap:last-child > .tbl-data > tbody:last-child > tr:last-child > th,
.front-look .mb-block > .tbl-data:last-child > tbody:last-child > tr:last-child > th { box-shadow: none; }
/* the page's first block («Подключения» → Syrve) draws the line under its head itself: its first fact none over itself */
.front-look .of-page > .of-head + .pg-block > .pg-head:first-child + .mb-facts > .mb-fact:first-child { box-shadow: none; }
.front-look .of-page > .of-head + .pg-block > .pg-head:first-child + .mb-facts > .mb-fact:first-child > .dt-key:not(.acc) { box-shadow: inset 1px 0 0 0 var(--zl); }
/* «Деньги»' rows draw the line over themselves — a table's head too, whatever stands over it (a note, a row of keys, a
   file's row, a card's head): its ground met theirs with no line (the deep visual audit, 12 November); a table that opens
   a sheet's body stands on the head's line and draws none over itself */
.front-look.mn-app .tbl-data > thead > tr:first-child > th { box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.front-look.mn-app .sheet-body > .table-wrap:first-child > .tbl-data > thead > tr:first-child > th,
.front-look.mn-app .sheet-body > .tbl-data:first-child > thead > tr:first-child > th { box-shadow: inset 0 -1px 0 0 var(--zl); }
/* «Отчёт ресепшена» (the deep visual audit, 12 November): a payment's parts one under another — the grid's lines, not the
   old look's dashed one between them; «+ Строка», «+ Оплата», «+ Расход» a row of the form each, its whole width (a key
   a fifth or a third of a row, the rest of it empty, looked dropped — as «Обзор»'s «Загрузить») */
.front-look .rp-part + .rp-part { padding-top: 0; border-top: 0; }
.front-look .rp-page :is(.rp-addpart, .rp-addpay), .front-look .rp-page .rp-addpay { align-self: stretch; width: 100%; box-shadow: inset 0 1px 0 0 var(--zl); }
/* «Вопросы»: the kinds' row over the questions — its cell's line under it and the first question's over itself were two;
   the question's is the one (rows draw the line over themselves) */
.front-look .dt-keys.mq-kinds > .dl-cell.dl-mode { box-shadow: none; }
/* a phone's list as the last of a block (Операции, Банк, Кассы): its last row's line under it and the block's own closing
   line were two — the block's is the one */
@media (max-width: 700px) {
  .front-look .mb-block > .table-wrap:last-child > .tbl-data > tbody:last-child > tr:last-child { box-shadow: none; }
  .front-look .mb-block > .table-wrap:last-child > table.mn-ops > tbody:last-child > tr.mn-row-review:last-child { box-shadow: inset 3px 0 0 0 var(--warn); }
}
/* a phone: the table's first column holds its place as the rest scrolls (its line at its right) — its head's cell draws
   the line over itself too, as the other heads' cells (the page's first block under its head: its own line, none) */
@media (max-width: 700px) {
  .front-look.mn-app .table-wrap > .tbl-data:not(.list-rows) > thead > tr:first-child > th:first-child { box-shadow: inset -1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
  .front-look.mn-app .of-page > .of-head + .pg-block > .pg-head:first-child + .table-wrap > .tbl-data > thead > tr:first-child > th:first-child,
  .front-look.mn-app .sheet-body > .table-wrap:first-child > .tbl-data > thead > tr:first-child > th:first-child { box-shadow: inset -1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
}
/* «Наличные траты» read from a file: its tables from the card's edge to its edge, as every table of a card — they had
   stopped at its margins, their heads' ground ending with no line */
.front-look.mn-app .co-look > .co-block > .table-wrap { margin-inline: calc(-1 * var(--sx, var(--sp-5))); }
.front-look.mn-app .co-look > .co-block > .table-wrap > .tbl-data :is(th, td):first-child { padding-left: var(--sx, var(--sp-5)); }
.front-look.mn-app .co-look > .co-block > .table-wrap > .tbl-data :is(th, td):last-child { padding-right: var(--sx, var(--sp-5)); }
/* «Коэффициенты»: the year's column a shade apart — the grid's lines at both its sides (the old look's own line of another
   shade at its right only, none at its left) */
.front-look .pl-coef-table td.pl-coef-year { border-right: 0; box-shadow: inset 1px 0 0 0 var(--zl), inset -1px 0 0 0 var(--zl); }
.front-look .pl-coef-table th.pl-coef-year { border-right: 0; box-shadow: inset 1px 0 0 0 var(--zl), inset -1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
/* a block of «Деньги» after one that ends with a table: its head draws its line over itself. (The back office's lists keep
   their last row's line and the next head drops its own; «Деньги»' block closes itself with a line outside it instead,
   which the next block's ground covers — the two ways together had left no line at all between «Коэффициенты»' blocks) */
.front-look .mb-block:has(> .table-wrap:last-child > .tbl-data > tbody:last-child) + .mb-block > .pg-head:first-child,
.front-look .mb-block:has(> .tbl-data:last-child > tbody:last-child) + .mb-block > .pg-head:first-child { box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look .mb-block:has(> .table-wrap:last-child > .tbl-data > tbody:last-child) + .mb-block > .pg-head:first-child > .pg-hkey:not(.acc),
.front-look .mb-block:has(> .tbl-data:last-child > tbody:last-child) + .mb-block > .pg-head:first-child > .pg-hkey:not(.acc) { box-shadow: inset 1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl); }
/* a statement's lines, then the row of its balances and «Загрузить»: the row draws the line over itself — the table's
   last row none under it (2 px had been there) */
.front-look.mn-app .table-wrap:has(+ .dt-keys) > .tbl-data > tbody:last-child > tr:last-child > td { border-bottom-color: transparent; }
@media (max-width: 700px) {
  /* «Коэффициенты» on a phone: the articles' column holds its place with its line at its right — the year's column right
     after it draws none at its left (2 px) */
  .front-look .pl-coef-table :is(th, td):first-child + td.pl-coef-year { box-shadow: inset -1px 0 0 0 var(--zl); }
  .front-look .pl-coef-table :is(th, td):first-child + th.pl-coef-year { box-shadow: inset -1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
  /* «График смен», «Расчёт»: the month a row of the head — the arrows at its ends, the month between, the screen's width
     (it had stopped after the arrow, the rest of the row empty, the arrow on a ground of its own) */
  .front-look.mn-app .of-head > .of-actions > .sc-week.pr-month { display: grid; flex: 1 1 100%; grid-column: 1 / -1; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: stretch; gap: 0; min-height: 56px; }
  .front-look.mn-app .of-head > .of-actions > .sc-week.pr-month > .icon-btn { width: auto; height: auto; min-height: 56px; border: 0; border-radius: 0; background: none; }
  .front-look.mn-app .of-head > .of-actions > .sc-week.pr-month > .icon-btn:first-child { box-shadow: inset -1px 0 0 0 var(--zl); }
  .front-look.mn-app .of-head > .of-actions > .sc-week.pr-month > .icon-btn:last-child { box-shadow: inset 1px 0 0 0 var(--zl); }
  .front-look.mn-app .of-head > .of-actions > .sc-week.pr-month > .sc-week-t { align-items: center; justify-content: center; padding: 0; }
  /* «Выручка»: «Чья выручка» a row of the screen's width, as the choices over it (it was a third of a row, the rest empty) */
  .front-look #pos-keys > .dt-pick { grid-column: 1 / -1; }
}
/* a place's card: what can be done with the place (merge it, delete it) under its switch — words of the card, not a part
   of the old look with its own line and a strip over it */
.front-look .sheet-body > .mn-merge { margin-top: 0; padding-top: 0; border-top: 0; }
@media (max-width: 700px) {
  /* the first column of a table holds its place on a phone, its width at most half the screen: a long word in it (an
     account's number) breaks at the column's edge, not over the next column's words */
  /* (13 November, the owner's iPhone: «можно ли сделать более читаемым раздел денег с телефона?» — the first column of
     ДДС, P&L and the budget had come to two letters a line: «Остат-ок на на-чало») it breaks by words, never by letters
     (an account's number keeps breaking anywhere — .mn-place-acc); the statements' articles and lines take nearly half
     of the screen, the months beside them go sideways */
  .front-look.mn-app .table-wrap > .tbl-data:not(.list-rows) :is(th, td):first-child { overflow-wrap: break-word; }
  .front-look.mn-app .table-wrap > .tbl-data.mn-report:not(.list-rows) :is(th, td):first-child { min-width: 44vw; }
  /* (13 November, «Делай так») one month on a phone — ДДС and P&L: the table is the screen's width, the names take what
     the sums leave them, the sums keep to one line; nothing goes sideways */
  .front-look.mn-app .table-wrap > .tbl-data.mn-report.mn-one:not(.list-rows) { width: 100%; }
  .front-look.mn-app .table-wrap > .tbl-data.mn-report.mn-one:not(.list-rows) :is(th, td):first-child { width: 100%; min-width: 0; max-width: none; }
  /* nothing scrolls under the names: they are not held at the left — a row's line runs under its name too, a section's
     ground under its name too, and no line stands between the name and its sum (as on a computer) */
  .front-look.mn-app .table-wrap > .tbl-data.mn-report.mn-one:not(.list-rows) > tbody > tr > :first-child { position: static; background: none; box-shadow: inset 0 -1px 0 0 var(--zl); }
  .front-look.mn-app .table-wrap > .tbl-data.mn-report.mn-one:not(.list-rows) > tbody > tr.mn-r-section > :first-child { background: var(--surface-2); }
  /* (the block's own line closes the last row — the name's would have stood over it, 2 px under the name, 1 under the sum) */
  .front-look.mn-app .mb-block > .table-wrap:last-child > .tbl-data.mn-report.mn-one:not(.list-rows) > tbody:last-child > tr:last-child > :first-child { box-shadow: none; }
  .front-look.mn-app .table-wrap > .tbl-data.mn-report.mn-one:not(.list-rows) > thead > tr:first-child > th:first-child { position: static; box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
  .front-look.mn-app .mn-place-acc { white-space: normal; overflow-wrap: anywhere; }
}
/* a computer's card of «Деньги» is a rounded window: a field's choice in it the iOS pill's track (the owner, 10 November:
   rounded windows have rounded things in them) — not the phone's strip of cells, which had come out half one, half the
   other (square cells, a rounded chosen one) */
@media (min-width: 701px) {
  :root .front-look.mn-app .sheet .field > .seg {
    display: inline-grid; align-self: flex-start; grid-auto-flow: column; grid-auto-columns: minmax(max-content, 1fr); align-items: center; gap: 2px; width: auto; height: 36px; min-height: 36px;
    max-width: 100%; margin: var(--sp-1) 0 0; padding: 2px; overflow: visible; border: 0; border-radius: var(--r-pill); background: var(--seg-track); box-shadow: none;
  }
  :root .front-look.mn-app .sheet .field > .seg > .seg-btn:nth-child(n) {
    display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 32px; min-height: 32px; padding: 0 var(--sp-3); border: 0; border-radius: var(--r-pill);
    background: none; box-shadow: none; color: var(--ink); font-size: 13px; font-weight: var(--fw-medium); line-height: 1; white-space: nowrap;
  }
  :root .front-look.mn-app .sheet .field > .seg > .seg-btn.on:nth-child(n) { background: var(--seg-on); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / 0.14), 0 0 0 0.5px rgb(0 0 0 / 0.05); font-weight: var(--fw-semibold); }
}
/* a key that cannot be pressed yet (13 November, the owner: «Делаем» — «Сохранить» of «Бюджет», «Закрыть месяц», a
   token's «Сохранить»): a cell of its row as the others — their ground, its words dimmed, the row's lines round it; not
   the accent's grey block with no lines of its own. (The accent's fill is for a key that does something now.) */
:root:root .front-look :is(.dt-key, .pg-hkey).acc:disabled { background: var(--surface); color: var(--ink-3); cursor: default; }
:root:root .front-look :is(.dt-key, .pg-hkey).acc:disabled > svg { color: var(--ink-3); }

/* «Номенклатура» in «Блюда»' look (11 November, 02:39 — 02:44, the owner: «Визуал ингредиентов, полуфабрикатов и
   модификаторов повторяем с блюд»; ui/office-nomen.jsx). The keys' row: the search two of the five columns, the page's two
   keys, the new one the accent's; a phone — the search and the new one, then the two keys, the first of them two columns
   joined (three to a row: two only when two are one). The lists the dishes' tree; no station's band — a product has
   none —, the chosen row's band the accent's. */
.nm-keys > .dt-search { grid-column: span 2; }
.nm-keys > .dt-key > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 700px) {
  .nm-keys > .dt-search + .dt-key { grid-column: span 2; aspect-ratio: 4 / 1; flex-direction: row; gap: var(--sp-2); font-size: var(--fs-md); line-height: 20px; box-shadow: inset 0 -1px 0 0 var(--zl); }
  .nm-keys > .dt-search + .dt-key > svg { width: 18px; height: 18px; }
}

/* the tree: a group a row (its chevron, its name, how many), its products under it a little in; a list without groups its
   rows at the edge */
.nm-tree td.dt-name::before { background: transparent; }
.nm-tree tr.dt-dish.on td.dt-name::before { background: var(--accent); opacity: 1; }
.front-look .nm-tree tr.dt-dish > td.dt-name { padding-left: calc(var(--px) + 30px); }
.front-look .nm-tree tr.dt-dish.flat > td.dt-name { padding-left: var(--px); }
@media (min-width: 641px) {
  .nm-tree th.c-unit { width: 64px; }
  .nm-tree th.c-n { width: clamp(92px, 8vw, 128px); }
  .nm-tree th.c-req { width: clamp(120px, 11vw, 168px); }
  .nm-tree th.c-where { width: 26%; }
  .nm-tree td.c-where { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nm-tree td.c-unit { color: var(--ink-2); }
}
/* (11 November, «пилюли — очень аккуратно») a row's state a quiet word after its name, no pill: new — the accent's,
   changed and hidden — the third ink's */
.front-look .dish-tree .st { padding: 0; border-radius: 0; background: none; box-shadow: none; color: var(--ink-3); font-size: var(--fs-sm); font-weight: var(--fw-regular); }
.front-look .dish-tree .st.st-draft { color: var(--accent); }
.nm-none { box-shadow: inset 0 -1px 0 0 var(--zl); }

/* the panel's tables: a dish's row opens its recipe — the chevron at its right */
.nm-used th.c-go, .nm-used td.c-go { width: 44px; padding-left: 0; padding-right: var(--px); color: var(--ink-3); text-align: right; }
.nm-used td.c-go > svg { vertical-align: middle; }
.front-look .nm-lines tfoot td { height: 52px; background: color-mix(in oklab, var(--ink) 4%, transparent); color: var(--ink); font-weight: var(--fw-semibold); }
/* an option's surcharge typed in its row */
.nm-opts th.c-price { width: clamp(120px, 11vw, 160px); }
.front-look .nm-opts td.c-price > .cell-input { width: 100%; max-width: 120px; text-align: right; }

/* «Блюда» of a group: a switch each — on a computer cells of the panel's five columns (a line at each one's left but the
   row's first, a line under each), a folder a row across them; a phone: the rows from edge to edge */
.nm-sws { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: -1px; }
.nm-sw-cat { grid-column: 1 / -1; display: flex; align-items: center; min-height: 44px; padding: 0 var(--px); color: var(--ink-2); font-size: var(--fs-sm); font-weight: var(--fw-semibold); box-shadow: inset 0 -1px 0 0 var(--zl); }
.nm-sw-cat .dt-n { margin-left: var(--sp-2); font-weight: var(--fw-regular); }
.nm-sw { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); min-width: 0; min-height: 56px; padding: 0 var(--sp-3) 0 var(--px);
  color: var(--ink-2); font-size: var(--fs-sm); line-height: 18px; cursor: pointer; box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.nm-sw.c1 { box-shadow: inset 0 -1px 0 0 var(--zl); }
.nm-sw.on { color: var(--ink); }
.nm-sw:hover { background: color-mix(in oklab, var(--ink) 4%, transparent); }
.nm-sw-n { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nm-sw .switch { flex: none; }
.dp > .dp-tabs:has(+ .nm-sws) { box-shadow: inset 0 -1px 0 0 var(--zl); }

/* «Удалённые группы»: a group to bring back a row — the accent's word, its options at the right */
.pg-block > .form-acts.nm-back { margin: 0; box-shadow: none; }
.form-act-s { flex: 0 1 auto; min-width: 0; overflow: hidden; color: var(--ink-3); font-size: var(--fs-sm); font-weight: var(--fw-regular); text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 700px) {
  /* the rows: a product its name, its stock and where it goes under it, the price at the right */
  .front-look .nm-tree.list-rows tr.dt-dish.flat { padding-left: var(--sx, 16px); }
  .front-look .nm-tree.list-rows tr.dt-dish > td.xs-line { padding-left: 0; }
  .nm-sws { grid-template-columns: minmax(0, 1fr); margin-bottom: 0; }
  .nm-sw-cat { padding: 0 var(--sx, 16px); }
  .nm-sw, .nm-sw.c1 { min-height: 56px; padding: 0 var(--sx, 16px); font-size: var(--fs-md); box-shadow: inset 0 -1px 0 0 var(--zl); }
  .form-act-s { display: none; }
}

/* the filters' squares on a phone: the figure and the name — their line under the figure is the computer's (as «Блюда»') */
@media (max-width: 700px) {
  .nm-page .pg-nums > .pg-key:not(:first-child) .pg-num-s { display: none; }
}
@media (min-width: 701px) and (max-width: 1239px) {
  .nm-page .pg-nums .pg-num-l, .nm-page .pg-nums .pg-num-s { display: -webkit-box; white-space: normal; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .nm-keys > .dt-key { white-space: normal; line-height: 18px; text-align: center; }
  .nm-keys > .dt-key > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

/* «Где используется»: what it is a column; the chevron of a dish's row (a row without one — nothing, not a dash) */
@media (min-width: 641px) { .nm-used th.c-kind { width: 22%; } }
.nm-used td.c-kind { color: var(--ink-2); }
.tbl-data.list-rows.nm-used td.c-go:empty::after { content: none; }
/* a product's movements: when, the document, its note, how much */
@media (min-width: 641px) {
  .nm-moves th.c-when { width: 132px; }
  .nm-moves th.c-q { width: 140px; }
  .nm-moves td.c-note { color: var(--ink-2); }
}

/* under a recipe's or a batch's lines: «Добавить продукт» the accent's word at the row's left, the sum at its right; the
   row from edge to edge, a line under it */
.lines-bar { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: space-between; min-height: 56px; box-shadow: inset 0 -1px 0 0 var(--zl, var(--line-2)); }
.lines-add { display: inline-flex; align-items: center; gap: var(--sp-2); padding: 0 var(--px, 16px); border: 0; border-radius: 0; background: transparent; color: var(--accent);
  font: inherit; font-size: var(--fs-md); font-weight: var(--fw-semibold); cursor: pointer; }
.lines-add:hover { background: var(--surface-2); }
.lines-add:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.lines-sum { display: flex; align-items: center; gap: var(--sp-2); padding: 0 var(--px, 16px); color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.lines-sum > span { font-weight: var(--fw-semibold); }
.lines-sum .muted { color: var(--ink-3); }
.front-look .card.tech-editor > .lines-bar, .front-look .tech-bare > .lines-bar { margin-inline: calc(-1 * var(--px)); }
.front-look .sheet-body > .lines-bar { margin: calc(-1 * var(--gap, 0px)) calc(-1 * var(--edge, var(--sx))) 0; }
.front-look .sheet-body > .fld-note { margin: 0; }
/* the options that change the recipe: their rows as the lines' (no list of dots) */
.front-look .tech-editor > .mod-effects { margin-inline: calc(-1 * var(--px)); }
.front-look .tech-editor > .mod-effects .tbl-data td:first-child { color: var(--ink); font-weight: var(--fw-semibold); }
/* the editor's foot from edge to edge, a row of the grid (the visual audit, 11 November: its cells their own room — the
   row's had put the keys 5 px off the columns); its state a quiet word, no pill */
.front-look .card.tech-editor { padding-bottom: 0; }
.front-look .card.tech-editor > .tech-actions { margin: auto calc(-1 * var(--px)) 0; padding: 0; border-top: 0; box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look .tech-bare > .tech-actions { margin: 0 calc(-1 * var(--px)); padding: 0; border-top: 0; box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look .tech-actions .st { padding: 0; border-radius: 0; background: none; box-shadow: none; font-weight: var(--fw-regular); }
.front-look .tech-actions .st.st-sent { color: var(--warn); }
.front-look .tech-actions .st.st-ok { color: var(--ok); }
/* (12 November, 02:37–02:38, the owner on a recipe on an iPhone: «Двойная линия», «Пересобрать без кривости») a phone's
   recipe row under row on the grid, no gaps between them: what it is, the note while it has no lines, «Добавить продукт» a
   row of its own, what a portion costs a row of its own, the keys' row — its words two columns, a key one (two keys: the
   words one column) —, the cost's line the keys' top; nothing under the keys */
@media (max-width: 700px) {
  .front-look :is(.card.tech-editor, .tech-bare) { gap: 0; }
  .front-look .card.tech-editor > .card-head { padding-bottom: var(--sp-3); }
  .front-look :is(.card.tech-editor, .tech-bare) > .muted.pad-b { margin: 0; padding: var(--sp-3) 0 var(--sp-4); color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; }
  .front-look .card.tech-editor > .card-head + .muted.pad-b { padding-top: 0; }
  .front-look :is(.card.tech-editor, .tech-bare) > .lines-bar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; min-height: 0; box-shadow: none; }
  .front-look :is(.card.tech-editor, .tech-bare) > .lines-bar > .lines-add { min-height: var(--cell-h, 56px); box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
  .front-look :is(.card.tech-editor, .tech-bare) > .table-wrap + .lines-bar > .lines-add { box-shadow: inset 0 -1px 0 0 var(--zl); }
  .front-look :is(.card.tech-editor, .tech-bare) > .lines-bar > .lines-sum { justify-content: space-between; min-height: var(--cell-h, 56px); box-shadow: inset 0 -1px 0 0 var(--zl); }
  .front-look :is(.card.tech-editor, .tech-bare) > .tech-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; margin-top: 0; box-shadow: none; }
  .front-look .tech-bare { padding-bottom: 0; }
  :root .front-look :is(.card.tech-editor, .tech-bare) > .tech-actions > * { min-height: calc(100vw / 6); aspect-ratio: auto; }
  :root .front-look .tech-actions > .tech-state { grid-column: 1 / -2; box-shadow: inset 0 -1px 0 0 var(--zl); }
  :root .front-look .tech-actions.two > .tech-state { grid-column: 1 / -3; }
  :root .front-look .tech-actions > .dt-key.acc { order: 0; grid-row: auto; grid-column: auto; }
  :root .front-look .tech-actions > .dt-key.acc:disabled { box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
  :root .front-look :is(.card.tech-editor, .tech-bare) > .tech-actions > .dt-key:not(.acc) { box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
}
@media (min-width: 701px) {
  /* (the visual audit of the lines, 12 November) «Техкарты» on a computer: the dish's head, a line, its lines' table, «Добавить
     продукт», what the options change — row under row, no strips between them */
  .front-look .card.tech-editor { gap: 0; }
  .front-look .card.tech-editor > .card-head { margin-inline: calc(-1 * var(--px)); padding: 0 var(--px) var(--sp-3); box-shadow: inset 0 -1px 0 0 var(--zl); }
}
/* «Техкарты»' list: a dish's food cost a coloured figure at its row's right, no pill */
.front-look .tl-row .pct { padding: 0; border-radius: 0; background: none; font-variant-numeric: tabular-nums; }

/* a group's editor: the options' names and surcharge cells of the form (no rounded frame), the default a quiet line, the
   keys that add a product cells of a row, «+ Вариант» a row as an iPhone's */
.front-look .opt-top > .cell-input.opt-name, .front-look .opt-top .opt-price .cell-input { border-radius: 0; }
.front-look .opt-note { padding: 0 var(--sp-3) var(--sp-2) 44px; color: var(--ink-3); font-size: var(--fs-sm); line-height: 18px; }
.front-look .opt-actions { gap: 0; padding: 0 0 0 44px; box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look .opt-actions > .btn { min-height: 44px; padding: 0 var(--sp-3); border: 0; border-radius: 0; background: transparent; color: var(--accent); }
.front-look .opt-actions > .btn:hover { background: var(--surface-2); }
.front-look .opt-actions > .opt-cost { padding-right: var(--sp-3); }
.front-look .form-section > .form-act.opt-new { margin: 0 calc(-1 * var(--edge, var(--sx))); box-shadow: inset 0 -1px 0 0 var(--zl); }
@media (max-width: 700px) {
  /* (a phone's sheet rounds its fields — the options' names are the form's cells: square, their line straight) */
  :root .front-look .sheet .opt-top > .cell-input.opt-name { border-radius: 0; }
  .front-look .opt-note { padding: 0 var(--edge, var(--sx)) var(--sp-2); }
  .front-look .opt-actions { padding: 0; }
}

/* the lists' columns stay where they are (a fixed layout), the names and «Где используется» cut with … at the end; a
   narrower computer: the lists the screen's width — no sideways scroll (the dishes' too), the keys their icon over their
   name */
@media (min-width: 641px) {
  .nm-tree { table-layout: fixed; width: 100%; }
  .mods-table.nm-tree th.c-where { width: 46%; }
  .semis-table.nm-tree th.c-where { width: 34%; }
}
@media (min-width: 701px) and (max-width: 1239px) {
  .dish-tree.menu-table, .nm-tree.ings-table { min-width: 0; }
  .nm-tree th.c-n { width: 84px; }
  .nm-tree th.c-unit { width: 52px; }
  .nm-keys > .dt-key { flex-direction: column; gap: 2px; padding: 0 var(--sp-2); font-size: var(--fs-sm); }
}
.nm-moves th:nth-child(2) { width: 30%; }
/* (a column's name on two lines rather than cut: «Ккал на 100 г» in a narrow column) */
@media (min-width: 641px) { .nm-tree thead th { white-space: normal; line-height: 18px; } }
/* (a switch's row in a sheet — a dish's groups: «обязательно» a quiet word after the name, no pill) */
.front-look .check-name .st { padding: 0; border-radius: 0; background: none; box-shadow: none; color: var(--ink-3); font-size: var(--fs-sm); font-weight: var(--fw-regular); }

/* (the visual audit, 11 November) a group's option's lines: the product and how much fields a shade apart, no frame of
   their own — a frame 3 px under the row's line was a double line */
.front-look .opt-line :is(.select, .cell-input) { border: 0; border-radius: 10px; background: var(--surface-2); box-shadow: none; }
.front-look .opt-line :is(.select:is(.open, :focus-visible), .cell-input:focus) { box-shadow: 0 0 0 2px var(--accent); outline: 0; }
/* the dish card's three cells — folder, station, the norm — as wide as the prices' three under them */
.front-look :is(.card, .sheet-body, .form-section) > .form-row > .field.dish-norm { width: auto; flex: 1 1 var(--fcol); }
/* a narrower computer: a panel's square names in the small letters — «Себестоимость, RSD» is one word too long */
@media (min-width: 701px) and (max-width: 1239px) {
  .dp .pg-nums .pg-num-l { font-size: var(--fs-sm); line-height: 18px; }
}
@media (min-width: 641px) { .front-look .nm-tree thead th { white-space: normal; line-height: 18px; } }
@media (min-width: 701px) and (max-width: 1239px) { .dp .pg-num-l .pg-unit { display: none; } }

/* «Продажи» whole (11 November, 03:26, the owner: «Доделаешь — делай все остальные страницы бэка, но только чётко»):
   «Кассовые смены» and «Отмены» as «Чеки» (99-checks.css) — the list without a head of its own, the chosen row on the
   second surface with the accent's band at its left, its panel under it carrying the band on to its end; the panel
   without a head (the row says what it is), «Закрыть» the tabs' row's last column. A shift's drawer and expenses: their
   rows from edge to edge of their sections. */
.cs-table tr.on > td:first-child { position: relative; box-shadow: none; }
.cs-table tr.on > td:first-child::before, .voids-table tr.on > td:first-child::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.voids-table tr.on > td { background: var(--surface-2); }
.voids-table tr.on > td:first-child { position: relative; }
.front-look :is(.cs-table, .voids-table) tr.dt-panel-row > td { height: auto; padding: 0; overflow: visible; white-space: normal; background: var(--surface-2); border-bottom: 1px solid var(--line-2); }
:is(.cs-table, .voids-table) tr.dt-panel-row:hover > td { background: var(--surface-2); }
.voids-table .vd-waste { margin-left: 0; }
/* the shift's panel on the second surface, the accent's band from its row to its end; its squares and sections on it */
.cs-panel-row .cs-panel { position: relative; background: var(--surface-2); }
.cs-panel-row .cs-panel::before { content: ''; position: absolute; z-index: 2; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); pointer-events: none; }
.cs-panel-row .cs-panel :is(.ptable, .tbl-data th, .tbl-data td, .cs-sec) { background: transparent; }
.cs-panel-row .cs-panel .tbl-data th { background: color-mix(in oklab, var(--ink) 4%, transparent); }
.cs-panel-row .cs-panel .pg-num.pg-warn { background: var(--warn-soft); }
.cs-panel-row .cs-panel :is(.cs-bills, .cs-stock) tfoot td { background: color-mix(in oklab, var(--ink) 4%, transparent); }
/* (the tabs' line is the squares' top line) */
.cs-panel > .cs-p-tabs:has(+ .cs-main) { box-shadow: none; }
/* the drawer's and the expenses' rows: their lines from edge to edge of their section, the words in its margin */
.cs-sec > .cash-rows { margin: 0 calc(-1 * var(--px)); }
.cs-sec .cash-rows .cash-row { padding-left: var(--px); padding-right: var(--px); }
.cs-main-grid .cs-sec:is(.sp4, .sp5) > .cash-rows { column-gap: 0; }
/* (the visual audit of the lines, 12 November) the drawer in two columns: a line under each row — a line over each had
   hung one at the second column's top, over nothing */
.cs-main-grid .cs-sec:is(.sp4, .sp5) > .cash-rows > .cash-row { box-shadow: inset 0 -1px 0 0 var(--line-2); }
@media (max-width: 700px) {
  /* (a row's name on a phone: the shift and its day in the letters of a row, not of the figures) */
  .cs-table td.cs-no { font-family: var(--font-ui); letter-spacing: 0; }
}
/* (pills only for the tabs and the sheet's main key) a refund's and a cancelled dish's word — red, quiet, no pill */
.cs-ref-tag { height: auto; padding: 0; border-radius: 0; background: none; font-size: var(--fs-sm); font-weight: var(--fw-regular); }
/* (the visual audit: the band's sections a pixel left of the squares' lines over them — the panel under its row has no
   pixel to make up) */
.cs-panel-row .cs-main-grid { margin-left: 0; }
/* a narrower computer: a panel's square names in the small letters, two lines where they need them */
@media (min-width: 701px) and (max-width: 1239px) {
  :is(.cs-panel, .dp) .pg-nums .pg-num-l { display: -webkit-box; font-size: var(--fs-sm); line-height: 18px; white-space: normal; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
/* (the band's first section at the panel's left edge: no line of its own there — the menu's line is next to it) */
.cs-main-grid > .cs-sec:first-child { box-shadow: inset 0 -1px 0 0 var(--zl); }
/* (a shift open under its row: the row's own line closes the panel — the band's sections draw none under them, a pixel
   over it) */
.cs-panel-row .cs-main-grid > .cs-sec { box-shadow: inset 1px 0 0 0 var(--zl); }
.cs-panel-row .cs-main-grid > .cs-sec:first-child { box-shadow: none; }
@media (min-width: 701px) and (max-width: 1239px) {
  /* (a narrower computer's panel square: «6 ч 56 мин» in a figure's letters a size smaller) */
  :is(.cs-panel, .dp) .pg-nums .pg-num-v { font-size: 24px; line-height: 32px; }
}

/* «Счета поставщиков» and a receipt from a photo in the brand's look (11 November, 03:26, the owner: «делай все остальные
   страницы бэка, но только чётко»; ui/office-sef.jsx, ui/office-scan.jsx). The page: under its head a row of the five
   columns — the views a segment in what the keys leave, the company and «Обновить» cells of their own; the list a block
   from edge to edge, the invoices' states quiet coloured words (pills only for the tabs). An invoice's sheet: its facts
   cells under the head, the answer a band, the restaurant a cell with the split a switch's row, each line of the supplier
   a row — its product and how many of ours rounded fields a shade apart, «запомнено» and «Claude» quiet words. */
.sef-bar.dp-tabkeys { background: var(--surface); box-shadow: inset 0 -1px 0 0 var(--zl); }
.dp-tabkeys.sef-bar.k0 > .seg { grid-column: 1 / -1; }
.dp-tabkeys.sef-bar.k1 > .seg { grid-column: 1 / span 4; }
.dp-tabkeys.sef-bar.k2 > .seg { grid-column: 1 / span 3; }
.dp-tabkeys.sef-bar.k3 > .seg { grid-column: 1 / span 2; }
.front-look .sef-bar > .select.sef-firm { width: 100%; height: auto; min-height: 56px; padding: 0 var(--px); border: 0; border-radius: 0; background: transparent; box-shadow: inset 1px 0 0 0 var(--zl); color: var(--ink); font-size: var(--fs-md); }
.front-look .sef-bar > .select.sef-firm .select-chevron { margin-left: auto; color: var(--ink-3); }
.sef-bar > .dp-key:disabled { color: var(--ink-3); cursor: default; }
@media (max-width: 700px) {
  .sef-bar.dp-tabkeys { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dp-tabkeys.sef-bar:is(.k0, .k1, .k2, .k3) > .seg { grid-column: 1 / -1; justify-self: stretch; max-width: none; margin: var(--sp-2) var(--sx, 16px); }
  /* (12 November, 04:04, the owner: «Пилюля разрослась») the tabs between the margins — not the row's width from the
     left margin, its end past the screen (98-cash.css gives a phone's tabs the whole width) */
  :root .front-look .dp-tabkeys.sef-bar > .seg.cs-tabs { width: auto; min-width: 0; }
  .sef-bar > :is(.dp-key, .select) { box-shadow: inset 0 1px 0 0 var(--zl), inset 1px 0 0 0 var(--zl); }
  .sef-bar.k1 > :is(.dp-key, .select) { grid-column: 1 / -1; box-shadow: inset 0 1px 0 0 var(--zl); }
  .sef-bar.k2 > .select.sef-firm { grid-column: span 2; box-shadow: inset 0 1px 0 0 var(--zl); }
}
.front-look .sef-table td { vertical-align: middle; }
.front-look .sef-table td.xs-title { color: var(--ink); font-weight: var(--fw-semibold); }
.front-look .sef-table td.xs-title .sef-pib { font-weight: var(--fw-regular); }
/* (pills only for the tabs and the sheet's main key) an invoice's state, «запомнено», «Claude»: a quiet coloured word */
.front-look :is(.sef-table, .sef-sheet, .scan-review) .st { display: inline; height: auto; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; outline: 0; font-size: inherit; font-weight: var(--fw-regular); line-height: inherit; white-space: nowrap; }
.front-look :is(.sef-table, .sef-sheet, .scan-review) .st.st-warn { color: var(--warn); }
.front-look :is(.sef-table, .sef-sheet, .scan-review) .st.st-ok { color: var(--ok); }
.front-look :is(.sef-table, .sef-sheet, .scan-review) .st.st-bad { color: var(--bad); }
.front-look :is(.sef-table, .sef-sheet, .scan-review) .st.st-draft { color: var(--accent); }
.front-look :is(.sef-table, .sef-sheet, .scan-review) .st.st-muted { color: var(--ink-3); }
@media (max-width: 700px) {
  .front-look .sef-table .sef-pib { display: none; }
}
/* (12 November, the visual audit: a strip of 20 px between the page's head and the empty block's line) the empty block
   right under the head — the head's line its top */
.front-look .of-page > .pg-block.sef-empty { padding: 0; }
.front-look .of-head + .pg-block.sef-empty > .empty:first-child { box-shadow: none; }
/* a company SEF refuses: a band from edge to edge under the row of keys */
.front-look .of-page > .sef-alert { margin: 0; padding: var(--sp-3) var(--px); border-radius: 0; box-shadow: inset 0 -1px 0 0 var(--zl); }

/* the invoice's sheet (not a photo's: that one has the photo at its left) */
/* (its blocks one after another, their lines one: no strips between them; its words their own room) */
.front-look .sheet-body > .sef-sheet:not(.scan-draft) { gap: 0; }
.front-look .sheet-body > .sef-sheet > :is(p, .sef-totals) { padding-top: var(--sp-3); padding-bottom: var(--sp-3); }
.front-look .sheet-body > .sef-sheet > .sef-totals { box-sizing: border-box; }
.front-look .sheet-body > .sef-sheet > .sef-facts { gap: 1px; margin: calc(-1 * var(--sheet-top, var(--sp-5))) calc(-1 * var(--edge)) 0; padding-bottom: 1px; background: var(--zl); }
.front-look .sheet-body > .sef-sheet > .sef-facts > div { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 64px; padding: var(--sp-3) var(--edge); background: var(--surface); }
/* (12 November, 03:35, the owner on an invoice: «Первые 2 блока после заголовка — там тесно») every fact a cell of one
   height — its name over its value in the cell's middle, as much room over them as under them */
.front-look .sheet-body > .sef-sheet > .sef-facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.front-look .sheet-body > .sef-sheet > .sef-facts dd { color: var(--ink); }
/* the answer given, a warning: bands from edge to edge */
.front-look .sheet-body > .sef-sheet > :is(.sef-result, .sef-alert) { margin: 0 calc(-1 * var(--edge)); padding: var(--sp-3) var(--edge); border-radius: 0; }
/* the restaurant the goods came to: a cell of the sheet, its choice the cell's value; the split a switch's row under it */
.front-look .sheet-body > .sef-sheet > .field.sef-loc { display: flex; flex-direction: column; gap: 2px; max-width: none; margin: 0 calc(-1 * var(--edge)); padding: 10px var(--edge); background: var(--surface); box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .sef-sheet > .field.sef-loc > .select { width: 100%; max-width: none; height: 36px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--ink); font-size: var(--fs-md); }
.front-look .sef-sheet > .field.sef-loc > .select .select-chevron { margin-left: auto; color: var(--ink-3); }
.front-look .sef-loc > .check-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 52px; margin: var(--sp-2) calc(-1 * var(--edge)) -10px; padding: 0 var(--edge); border: 0; box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look :is(.sef-alert, .scan-alert) .check-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: 0; border: 0; }
/* the lines: rows of the sheet from edge to edge, a line under each */
.front-look .sheet-body > .sef-sheet > .sef-lines { margin: 0 calc(-1 * var(--edge)); border-top: 0; }
.front-look .sheet-body > .sef-sheet > .sef-lines > .sef-line { padding: var(--sp-3) var(--edge); border-bottom: 0; box-shadow: inset 0 -1px 0 0 var(--zl); }
/* a line's product and how many of ours: rounded fields a shade apart, no frame (as the forms' fields) */
.front-look :is(.sef-map, .sef-part, .scan-fix) :is(.select, .cell-input) { height: 40px; border: 0; border-radius: 10px; background: var(--surface-2); box-shadow: none; color: var(--ink); }
.front-look :is(.sef-map, .sef-part, .scan-fix) .select { padding: 0 10px 0 12px; }
.front-look :is(.sef-map, .sef-part, .scan-fix) .cell-input { padding: 0 12px; }
.front-look :is(.sef-map, .sef-part, .scan-fix) :is(.select.open, .select:focus-visible, .cell-input:focus) { box-shadow: 0 0 0 2px var(--accent); outline: 0; }
.front-look :is(.sef-map, .sef-part, .scan-fix) .cell-input:is(.bad, [aria-invalid="true"]) { box-shadow: 0 0 0 2px var(--bad); }
/* «Исправить»: the accent's word, no underline; «Верно»: a rounded key a shade apart */
.front-look .scan-review .lnk-btn { color: var(--accent); text-decoration: none; font-weight: var(--fw-semibold); }
.front-look .scan-ask .btn { height: 32px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--surface-2); box-shadow: none; color: var(--ink); }
/* the XML: a row of the sheet that opens */
.front-look .sheet-body > .sef-sheet > .sef-xml { margin: 0 calc(-1 * var(--edge)); box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look .sef-xml > summary { display: flex; align-items: center; min-height: 52px; padding: 0 var(--edge); list-style: none; }
.front-look .sef-xml > summary::-webkit-details-marker { display: none; }
.front-look .sef-xml > summary::after { content: ''; width: 8px; height: 8px; margin-left: auto; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); transform: rotate(-45deg); }
.front-look .sef-xml[open] > summary::after { transform: rotate(45deg); }
.front-look .sef-xml > pre { margin: 0 var(--edge) var(--sp-3); border-radius: 10px; }
/* the reason of a rejection: its name over a rounded field */
.front-look .sef-sheet > .field.sef-why { display: flex; flex-direction: column; gap: 8px; }
.front-look .sef-sheet > .field.sef-why textarea { width: 100%; min-height: 88px; padding: 10px 12px; border: 0; border-radius: 10px; background: var(--surface-2); box-shadow: none; color: var(--ink); font: inherit; font-size: var(--fs-md); resize: vertical; }
.front-look .sef-sheet > .field.sef-why textarea:focus { box-shadow: 0 0 0 2px var(--accent); outline: 0; }
/* a phone: the facts one column */
@media (max-width: 720px) {
  .front-look .sheet-body > .sef-sheet > .sef-facts { grid-template-columns: minmax(0, 1fr); }
}

/* a receipt from a photo, its first step: the camera and the file two cells of a row from edge to edge (the camera the
   accent's), the demo's two papers two cells, the alerts bands; «Недавние фото» rows, their states quiet words */
.front-look .scan-pick > .scan-take { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0 calc(-1 * var(--edge)); box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
:root .front-look .scan-pick > .scan-take > .btn { min-height: 64px; margin: 0; border: 0; border-radius: 0; justify-content: center; text-align: center; }
.front-look .scan-pick > .scan-take > .btn.btn-primary { background: var(--accent); color: var(--accent-ink); }
.front-look .scan-pick > .scan-take > .btn.btn-secondary { background: var(--surface); color: var(--ink); box-shadow: inset 1px 0 0 0 var(--zl); }
.front-look .scan-pick > .scan-take > .btn.btn-secondary:hover:not(:disabled) { background: var(--surface-2); }
@media (max-width: 700px) {
  .front-look .scan-pick > .scan-take { grid-template-columns: minmax(0, 1fr); }
  .front-look .scan-pick > .scan-take > .btn.btn-secondary { box-shadow: inset 0 1px 0 0 var(--zl); }
}
.front-look .scan-pick > .scan-cards { gap: 0; margin: 0 calc(-1 * var(--edge)); box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
/* (the papers have a ground: they draw the row's lines over and under them themselves — the row's own would hide) */
.front-look .scan-cards > .scan-card { border: 0; border-radius: 0; background: var(--surface); box-shadow: inset 1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.front-look .scan-cards > .scan-card:first-child { box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.front-look .scan-cards > .scan-card:hover { background: var(--surface-2); }
.front-look .scan-cards > .scan-card .paper-photo { border-radius: 10px; }
@media (max-width: 700px) {
  .front-look .scan-pick > .scan-cards { grid-template-columns: minmax(0, 1fr); }
  .front-look .scan-cards > .scan-card, .front-look .scan-cards > .scan-card:first-child { box-shadow: inset 0 1px 0 0 var(--zl); }
  .front-look .scan-cards > .scan-card:last-child { box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
}
.front-look .scan-pick > .sef-note { padding: 0; border-radius: 0; background: none; color: var(--ink-3); }
.front-look :is(.scan-pick, .scan-posted) > .scan-alert { margin: 0 calc(-1 * var(--edge)); padding: var(--sp-3) var(--edge); border-radius: 0; }
.front-look :is(.scan-pick, .scan-recent) .st { display: inline; height: auto; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; outline: 0; font-size: var(--fs-sm); font-weight: var(--fw-regular); }
.front-look :is(.scan-pick, .scan-recent) .st.st-ok { color: var(--ok); }
.front-look :is(.scan-pick, .scan-recent) .st.st-warn { color: var(--warn); }
.front-look :is(.scan-pick, .scan-recent) .st.st-bad { color: var(--bad); }
.front-look :is(.scan-pick, .scan-recent) .st.st-draft { color: var(--accent); }
.front-look .scan-pick .scan-recent-list { margin: 0 calc(-1 * var(--edge)); border-top: 0; box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look .scan-pick .scan-recent-row { padding-left: var(--edge); padding-right: var(--edge); }
/* the list's columns: the invoice's number and day with its company on two lines at most */
@media (min-width: 701px) {
  .front-look .tbl-data.sef-table { table-layout: fixed; }
  .sef-table th:nth-child(1) { width: 24%; }
  .sef-table th:nth-child(2) { width: 22%; }
  .sef-table th:nth-child(3) { width: 12%; }
  .sef-table th:nth-child(4) { width: 12%; }
  .sef-table th:nth-child(5) { width: 16%; }
}
@media (max-width: 700px) {
  /* (a phone's keys of the row: the icon over the words, as the other pages' keys; the company's choice without its icon) */
  .sef-bar > .dp-key { flex-direction: column; gap: 4px; min-height: 64px; padding: var(--sp-2); font-size: var(--fs-sm); line-height: 18px; white-space: normal; text-align: center; }
  .front-look .sef-bar > .select.sef-firm .select-icon { display: none; }
  .front-look .sef-bar > .select.sef-firm { padding: 0 var(--sx, 16px); font-size: var(--fs-sm); }
}
/* (the papers' words on the sheet's margin; a photo's restaurant a rounded field as the lines') */
.front-look .scan-cards > .scan-card { padding: var(--sp-4) var(--edge); }
.front-look .scan-draft .sef-facts .select { height: 40px; border: 0; border-radius: 10px; background: var(--surface-2); box-shadow: none; }
.front-look .scan-draft .sef-facts .select:is(.open, :focus-visible) { box-shadow: 0 0 0 2px var(--accent); outline: 0; }
@media (max-width: 700px) {
  /* a photo's supplier and its note's number on a phone: the iPhone's rows — the name at the left, the value at the right */
  .front-look .scan-draft > .scan-head { display: flex; flex-direction: column; gap: 0; margin: 0 calc(-1 * var(--edge)); box-shadow: inset 0 1px 0 0 var(--zl); }
  .front-look .scan-draft > .scan-head > .field { flex: none; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: center; column-gap: var(--sp-3); min-height: 56px; margin: 0; padding: var(--sp-2) var(--edge); border: 0; box-shadow: inset 0 -1px 0 0 var(--zl); }
  .front-look .scan-draft > .scan-head > .field > .field-label { color: var(--ink); font-size: var(--fs-md); }
  .front-look .scan-draft > .scan-head > .field > input { width: 100%; height: 40px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--ink); font-size: var(--fs-md); text-align: right; }
}

/* «Сайт для заказов» → «Страница и правила» on the grid (11 November, 14:33 — the owner: «у тебя есть блок один, вот
   квадратный нашей сетки, и сверху заголовок страница. Дальше ссылка, снизу кнопки «Скопировать», «Открыть». Второй блок
   квадратный — логотип. Третий — главная картинка. Четвёртый — название для гостей, телефон, подпись, цвет кнопок … все
   эти блоки влезли в первую часть»; the rules — «одним блоком из двух»; ui/office-site.jsx). The first row the squares of
   the five — «Страница», «Логотип», «Главная картинка», «Для гостей» two columns joined; the second the rules — «Часы и
   получение» two columns, the three at the right «Как гость платит» and under it Wolt Drive's key (level with the
   delivery's rows), the two halves ending on one line; then a row of the keys. A square: its head (the name, a switch or
   an «i» at its end), its words, its keys a row at its bottom; a field a cell — its name small over it —, a switch a row;
   a line between all of them (the cells and the days have no ground of their own — a block's lines show through them;
   the keys, which have, draw theirs). */
.site-top, .site-rules { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--surface); }
.site-sq, .site-blk { display: flex; flex-direction: column; min-width: 0; background: var(--surface); box-shadow: inset -1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
/* (a square that its words would overflow grows, and the row with it: one height a row) */
.site-sq { width: 100%; aspect-ratio: 1; overflow: clip; align-self: stretch; }
.site-sq.site-sq2 { grid-column: span 2; aspect-ratio: 2 / 1; }
.site-top > :last-child { box-shadow: inset 0 -1px 0 0 var(--zl); }
.site-blk { grid-column: span 2; }
.site-col { display: flex; flex-direction: column; grid-column: span 3; min-width: 0; }
.site-col > .site-blk { box-shadow: inset 0 -1px 0 0 var(--zl); }
/* the two halves end on one line: what each has last takes what is left (a cell's row grows, its words in the middle) */
.site-rules > .site-blk > :last-child, .site-col > :last-child, .site-col > .site-blk:last-child > :last-child, .site-col > .site-wolt:last-child > .site-wolt-note { flex: 1 1 auto; }
.site-rules > .site-blk > .site-sw:last-child, .site-col > .site-blk:last-child > .site-sw:last-child { align-items: center; }
.site-sq-head { display: flex; flex: none; align-items: center; gap: var(--sp-2); min-height: var(--cell-h, 52px); padding: 0 var(--px); box-shadow: inset 0 -1px 0 0 var(--zl); }
.site-sq-head > h2 { flex: 0 1 auto; min-width: 0; margin: 0 auto 0 0; overflow: hidden; color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; white-space: nowrap; text-overflow: ellipsis; }
/* (an «i» stands by the name, as at the page's title; a switch or a state at the head's end) */
.site-sq-head > h2:has(+ :not(.switch):not(.site-head-st)) { margin-right: 0; }
.site-sq-head > h2 + :not(.switch):not(.site-head-st) { margin-right: auto; }
.site-head-st { color: var(--ink-2); font-size: var(--fs-sm); white-space: nowrap; }
.site-sq-body { display: flex; flex: 1 1 auto; flex-direction: column; gap: var(--sp-2); min-height: 0; padding: var(--sp-3) var(--px); }
.site-sq-note { margin: 0; color: var(--ink-2); font-size: var(--fs-sm); line-height: 18px; }
.site-sq-body > .site-sq-note:last-child { margin-top: auto; color: var(--ink-3); }
.site-sq-keys { display: grid; flex: none; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: auto; }
.site-sq-keys.one { grid-template-columns: minmax(0, 1fr); }
/* (the keys have a ground: they draw the line over them, the square's under them and at its right end) */
.site-sq-keys > .dt-key { min-width: 0; min-height: 48px; padding: 0 var(--sp-2); font-size: var(--fs-sm); text-decoration: none; box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.site-sq-keys > .dt-key + .dt-key { box-shadow: inset 1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.site-sq-keys > .dt-key:last-child { box-shadow: inset -1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.site-sq-keys > .dt-key + .dt-key:last-child { box-shadow: inset 1px 0 0 0 var(--zl), inset -1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.site-sq-keys > label.dt-key { cursor: pointer; }
.site-sq-keys > .dt-key.is-busy { opacity: 0.6; pointer-events: none; }
.site-sq-keys > .dt-key > span { overflow: hidden; text-overflow: ellipsis; }
/* (a square's half is narrow: its keys say their words without the icons) */
.site-sq-keys > .dt-key > svg { display: none; }
/* the page's address and its link */
.site-sq-body > .site-cell { padding: 0; box-shadow: none; }
.site-link { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: none; color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; text-overflow: ellipsis; }
/* the pictures: the logo's frame takes what its square leaves, the main one the site's 3 : 1 */
.site-sq .site-pic-box { flex: 1 1 auto; }
.site-sq.site-pic-hero .site-pic-box { flex: none; }
/* a field a cell: its name small over it */
.site-cells { display: grid; flex: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.site-sq > .site-cells { flex: 1 1 auto; }
.site-cells.c21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
/* (server 0.117) what the first order's discount is, under the guests' fields */
.site-sq > .site-first-hint { padding: var(--sp-2) var(--px); color: var(--ink-3); }
.site-cell { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; min-height: 56px; padding: var(--sp-2) var(--px); background: none; cursor: text; box-shadow: inset 0 -1px 0 0 var(--zl); }
.site-cells > .site-cell:nth-child(odd):not(.w2) { box-shadow: inset -1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.site-cell.w2 { grid-column: span 2; }
.site-cell-l { overflow: hidden; color: var(--ink-2); font-size: var(--fs-sm); line-height: 18px; white-space: nowrap; text-overflow: ellipsis; }
:root .front-look .site-cell input:not([type="color"]):not([type="checkbox"]):not([type="file"]) { width: 100%; min-width: 0; height: 26px; padding: 0; border: 0; outline: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--ink); font: inherit; font-size: var(--fs-md); }
:root .front-look .site-cell .select { width: 100%; height: 26px; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--ink); font-size: var(--fs-md); }
.site-cells > .site-cell:focus-within { box-shadow: inset 0 -2px 0 0 var(--accent); }
.site-color-back { margin-left: auto; color: var(--accent); }
/* the days off: seven keys of one row */
.site-days { display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-2) 0 0; box-shadow: inset 0 -1px 0 0 var(--zl); }
.site-days > .site-cell-l { padding: 0 var(--px); }
.site-days-k { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); box-shadow: inset 0 1px 0 0 var(--zl); }
.site-day { min-width: 0; min-height: 44px; padding: 0; border: 0; border-radius: 0; background: none; color: var(--ink); font: inherit; font-size: var(--fs-sm); cursor: pointer; }
.site-day + .site-day { box-shadow: inset 1px 0 0 0 var(--zl); }
.site-day:hover { background: var(--surface-2); }
.site-day.on { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.site-day:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* a switch a row: its name and what it means at the left */
.site-sw { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) var(--px); cursor: pointer; box-shadow: inset 0 -1px 0 0 var(--zl); }
.site-sw-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
/* (0.116; the audit Т1) a switch not to be had yet (card payments before a bank): its words stay, the switch dimmed */
.site-sw.off { cursor: default; }
.site-sw.off .switch { opacity: 0.45; }
.site-sw-n { color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; }
.site-sw-h { color: var(--ink-2); font-size: var(--fs-sm); line-height: 18px; }
.site-sw > .switch { flex: none; margin-top: 1px; }
/* the keys: whether there is a change (three columns), «Отменить изменения» and «Сохранить» a column each */
.site-acts { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 3fr) repeat(2, minmax(0, 1fr)); box-shadow: inset 0 -1px 0 0 var(--zl); }
.site-state { display: flex; align-items: center; margin: 0; padding: var(--sp-3) var(--px); color: var(--ink-2); font-size: var(--fs-sm); line-height: 18px; }
.site-acts > .dt-key { min-height: 56px; padding: var(--sp-2) var(--sp-3); white-space: normal; text-align: center; line-height: 18px; box-shadow: inset 1px 0 0 0 var(--zl); }
.site-acts > .dt-key.acc { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.site-acts > .dt-key:disabled { color: var(--ink-3); cursor: default; }
.site-acts > .dt-key.acc:disabled { background: var(--surface-2); color: var(--ink-3); box-shadow: inset 1px 0 0 0 var(--zl); }
/* Wolt Drive (the right three columns, under the payment): its head, what the key is, the field and its keys a row on
   the columns — the field two, «Сохранить ключ» one; with a key kept the field one, «Сохранить ключ», «Убрать» */
.site-wolt { display: flex; flex-direction: column; background: var(--surface); box-shadow: inset 0 -1px 0 0 var(--zl); }
.site-wolt-note { padding: var(--sp-3) var(--px); box-shadow: inset 0 -1px 0 0 var(--zl); }
.site-wolt-row { display: grid; flex: none; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.site-wolt-row.k2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.site-wolt-row > .site-cell { box-shadow: none; }
.site-wolt-row > .dt-key { min-height: 56px; white-space: normal; text-align: center; line-height: 18px; box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.site-wolt-row > .dt-key.acc { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.site-wolt-row > .dt-key.acc:disabled { background: var(--surface-2); color: var(--ink-3); box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
/* a narrower computer: the keys' words under their icons */
@media (min-width: 701px) and (max-width: 1239px) {
  .site-sq-keys > .dt-key { font-size: var(--fs-xs, 12px); }
}
/* a phone: the squares rows one under another, the rules too */
@media (max-width: 700px) {
  .site-top, .site-rules { grid-template-columns: minmax(0, 1fr); }
  .site-sq, .site-sq.site-sq2 { grid-column: auto; aspect-ratio: auto; }
  .site-sq, .site-blk, .site-col { grid-column: auto; box-shadow: inset 0 -1px 0 0 var(--zl); }
  /* (a square the screen's width: no line at the screen's edge) */
  .site-sq-keys > .dt-key:last-child { box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
  .site-sq-keys > .dt-key + .dt-key:last-child { box-shadow: inset 1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
  .site-acts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-acts > .site-state { grid-column: 1 / -1; box-shadow: inset 0 -1px 0 0 var(--zl); }
  .site-acts > .dt-key:first-of-type { box-shadow: none; }
  .site-sq-head, .site-sq-body, .site-cell, .site-sw, .site-state, .site-wolt-note { padding-inline: var(--sx, 16px); }
  .site-sq.site-pic-logo .site-pic-box { min-height: 96px; }
  .site-wolt-row, .site-wolt-row.k2 { grid-template-columns: minmax(0, 1fr); }
  .site-wolt-row > .dt-key, .site-wolt-row > .dt-key.acc:disabled { box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
}

/* «Склад» whole (11 November, 03:26, the owner: «Доделаешь — делай все остальные страницы бэка, но только чётко»): the
   stock and the documents as «Чеки» (99-checks.css) — the list without a head of its own, the chosen row on the second
   surface with the accent's band at its left, its panel under it from edge to edge carrying the band on to its end */
.front-look :is(.stock-list, .docs-table) tr.dt-panel-row > td { height: auto; padding: 0; overflow: visible; white-space: normal; background: var(--surface-2); border-bottom: 1px solid var(--line-2); }
:is(.stock-list, .docs-table) tr.dt-panel-row:hover > td { background: var(--surface-2); }
:is(.stock-list, .docs-table) tr.on > td { background: var(--surface-2); }
:is(.stock-list, .docs-table) tr.on > td:first-child { position: relative; box-shadow: none; }
:is(.stock-list, .docs-table) tr.on > td:first-child::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
/* (pills only for the tabs and the sheet's main key) «мало», «отменён» — the warning's word, no pill */
.stock-list .st-low, .docs-table .doc-off { font-size: var(--fs-sm); }
/* (no column of the same width hints: a movement's when, its document, its note — the quantity the last column, under
   «Закрыть»; the note never squeezed into two lines while the document's column stands half empty) */
@media (min-width: 641px) {
  .front-look .tbl-data.nm-moves { table-layout: fixed; }
  .nm-moves th.c-when { width: 20%; }
  .nm-moves th:nth-child(2) { width: 30%; }
  .nm-moves th.c-q { width: 20%; }
}

/* the documents' keys: the search what the page's keys leave of the five columns (a phone's: the search and the new one,
   then the others — one of them alone the row's width) */
.doc-keys.s3 > .dt-search { grid-column: span 3; }
.doc-keys.s4 > .dt-search { grid-column: span 4; }
.doc-keys.s5 > .dt-search { grid-column: 1 / -1; }
@media (max-width: 700px) {
  .doc-keys.s3 > .dt-search + .dt-key { grid-column: 1 / -1; aspect-ratio: auto; min-height: 56px; }
  /* (the visual check, 11 November: a page with its new document's key alone — «Возврат», «Списание», «Перемещение»,
     «Инвентаризация» — had it two thirds wide over the search, a third of both rows empty) the search two thirds, the
     key the third beside it, as «Приход»'s */
  .doc-keys.s4 > .dt-search + .dt-key.acc { grid-row: 1; grid-column: 3; aspect-ratio: 2 / 1; flex-direction: column; gap: 4px; padding: 0 var(--sp-2); font-size: var(--fs-sm); line-height: 18px; }
  .doc-keys.s4 > .dt-search + .dt-key.acc > svg { width: 22px; height: 22px; }
  .doc-keys:is(.s4, .s5) > .dt-search { grid-column: span 2; }
  .doc-keys.s5 > .dt-search { grid-column: 1 / -1; }
}
.docs-table td.c-no { white-space: nowrap; }
.docs-table .doc-scan-ic { margin-right: 6px; vertical-align: -3px; color: var(--ink-3); }

/* a document's panel: the note what its keys leave of the five columns; «Отменить» red */
.doc-keyrow.k0 > .dp-note { grid-column: 1 / -1; }
.doc-keyrow.k2 > .dp-note { grid-column: 1 / span 3; }
.doc-keyrow > .dp-note { padding-top: var(--sp-3); padding-bottom: var(--sp-3); }
.doc-panel .dp-key.bad, .doc-panel .dp-key.bad > svg { color: var(--bad); }
.doc-panel .dp-key:disabled { color: var(--ink-3); cursor: default; }
/* its rows — the photo of its paper, the documents it links to, a transfer's other end, «Отменить документ»: from edge to
   edge, a line over each, a chevron at the right of those that open another */
.doc-row { display: flex; align-items: center; gap: var(--sp-3); width: 100%; min-height: 56px; margin: 0; padding: var(--sp-2) var(--px); border: 0; border-radius: 0;
  background: transparent; color: var(--ink); font: inherit; font-size: var(--fs-md); line-height: 22px; text-align: left; box-shadow: inset 0 1px 0 0 var(--zl); }
button.doc-row { cursor: pointer; }
button.doc-row:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); }
button.doc-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.doc-row > svg:last-child { flex: none; margin-left: auto; color: var(--ink-3); }
.doc-row-t { flex: 1 1 auto; min-width: 0; }
.doc-photo .doc-row-t { display: flex; flex-direction: column; }
.doc-row-s { color: var(--ink-3); font-size: var(--fs-sm); line-height: 18px; }
.doc-links > .doc-row.link-btn { align-self: stretch; color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-regular); }
.doc-links > .doc-row.link-btn:hover { text-decoration: none; }
.doc-links { display: flex; flex-direction: column; }
.doc-row.doc-cancel, .doc-row.doc-cancel > svg { color: var(--bad); }
.doc-row.doc-cancel > svg { margin-left: 0; }
.doc-panel > .doc-has-rets { box-shadow: inset 0 1px 0 0 var(--zl); }
/* why it is reversed: the field a row (a shade apart from the panel), the words and «Нет», «Да, отменить» the row under it */
.doc-ask { box-shadow: inset 0 1px 0 0 var(--zl); }
.doc-ask > .doc-why { padding: var(--sp-3) var(--px); }
.dt-panel-row .doc-ask .fld-box { background: var(--surface); }
.doc-ask > .dp-keyrow:first-child { box-shadow: inset 0 1px 0 0 var(--zl); }
/* its lines: a stocktake's record and count under the product's name */
.doc-lines td > .cell-sub { display: block; }
.dt-panel-row .doc-panel .table-wrap { box-shadow: inset 0 1px 0 0 var(--zl); }

/* the forms of the stock: the paper's photo a row of the sheet under its head, the form's cells under it */
.front-look .sheet-body > .form-acts.doc-scan-row:first-child { margin-top: calc(-1 * var(--sheet-top, var(--sp-5))); box-shadow: none; }
.front-look .sheet-body > .form-acts.doc-scan-row + .form-row { margin-top: calc(1px - var(--gap)); }
.form-act > .form-act-go { flex: none; margin-left: auto; color: var(--ink-3); }
/* a stocktake's search and group: a row of two cells under the sheet's head */
.front-look .sheet-body > .count-find { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); margin: calc(-1 * var(--sheet-top, var(--sp-5))) calc(-1 * var(--edge)) 0; box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .sheet-body > .count-find.one { grid-template-columns: minmax(0, 1fr); }
.count-search { display: flex; align-items: center; gap: var(--sp-2); min-height: 56px; margin: 0; padding: 0 var(--edge, var(--sx)); color: var(--ink-3); }
.count-search > input { flex: 1 1 auto; min-width: 0; height: 40px; padding: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: var(--fs-md); outline: 0; }
.count-search:focus-within { box-shadow: inset 0 -2px 0 0 var(--accent); }
.front-look .count-find > .select { width: 100%; height: auto; min-height: 56px; padding: 0 var(--edge, var(--sx)); border: 0; border-radius: 0; background: transparent; box-shadow: inset 1px 0 0 0 var(--zl); font-size: var(--fs-md); }
.front-look .count-find > .select .select-chevron { margin-left: auto; color: var(--ink-3); }
.front-look .count-find > .select:is(.open, :focus-visible) { box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -2px 0 0 var(--accent); outline: 0; }
/* (the old card's spacing gone: the panel's rows touch, their lines one) */
.doc-panel .doc-links { margin: 0; }
.doc-panel .doc-photo { margin: 0; border: 0; border-radius: 0; background: transparent; }
.doc-panel .doc-photo:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); }
/* the photo of its paper a thumbnail of the row's height, rounded */
.doc-panel .doc-photo :is(.paper-photo, .scan-shot) { flex: none; width: 48px; height: 48px; border-radius: 10px; overflow: hidden; }
.doc-panel .doc-photo .paper-photo { --scale: 0.075; }
.doc-panel .doc-photo .paper-photo .paper-fit { left: 5px; top: 5px; }
/* the lines' bar the last row of a sheet: the sheet's foot its line under it, no strip between */
.front-look .sheet-body > .lines-bar:last-child { margin-bottom: calc(-1 * var(--sheet-top, var(--sp-5))); box-shadow: inset 0 1px 0 0 var(--zl); }
/* (a stocktake's row on a phone: its kind before its number — the row's title; a computer's column says the number) */
.docs-table .xs-kind { display: none; }
@media (max-width: 700px) { .docs-table .xs-kind { display: inline; font-family: var(--font-ui); } .docs-table td.c-no.xs-title { font-family: var(--font-ui); } }
/* (a sheet's rounded fields: not the cell of a row of the sheet) */
:root .front-look .sheet .sheet-body > .count-find > .select { border-radius: 0; }
/* the form's cells, then its lines: the cells' line the table's top */
.front-look .sheet-body > .form-row + :is(.doc-table, .ret-table, .move-table), .front-look .sheet-body > .form-acts.doc-scan-row + .form-row + .doc-table { margin-top: calc(1px - var(--gap)); }
@media (max-width: 700px) {
  /* a document's row on a phone: who or why its title in one line (the delivery note on its own screen) */
  .docs-table .doc-inv { display: none; }
  .front-look .docs-table td.xs-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* its lines' total a row of one line: «Итого» on the figure's height */
  .front-look .doc-lines tfoot tr { align-items: center; align-content: center; }
  .front-look .doc-lines tfoot td.xs-title { font-weight: var(--fw-semibold); }
  /* a line of a receipt or a write-off: three cells under the product (the module's three columns), the bin at the
     right of the product's row */
  .front-look .doc-table tr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .front-look .tbl-data.doc-table td:first-child { grid-row: 1; padding-right: 56px; }
  .front-look .tbl-data.doc-table td:last-child { grid-row: 1; grid-column: 3; justify-self: end; width: 56px; min-height: 56px; box-shadow: none; z-index: 1; }
  .front-look .tbl-data.doc-table td:nth-child(4) { box-shadow: inset 1px 0 0 0 var(--zl); }
}
@media (max-width: 700px) {
  /* (a phone's panel: its note a row, each key a row under it) */
  .doc-keyrow:is(.k0, .k1, .k2) > .dp-note { grid-column: 1; }
}
/* a return of a receipt: its supplier a row under the sheet's head, the reason's cell under it, the lines under that */
.front-look .sheet-body > .ret-of:first-child { display: block; min-height: 56px; margin: calc(-1 * var(--sheet-top, var(--sp-5))) calc(-1 * var(--edge)) 0; padding: 17px var(--edge); font-size: var(--fs-md); line-height: 22px; }
.front-look .sheet-body > .ret-of + .field { margin-top: calc(1px - var(--gap)); }
.front-look .sheet-body > .field + :is(.ret-table, .move-table, .doc-table) { margin-top: calc(1px - var(--gap)); }
/* a narrower computer (the visual check at 1024): the stores' list in the page's width — its columns' names on two lines
   where they need them, no column off the screen; the value's square — its two dearest under it, without the line
   over them (the square's height is a column's width) */
@media (min-width: 701px) {
  .front-look .tbl-data.stock-list { min-width: 0; }
}
@media (min-width: 701px) and (max-width: 1239px) {
  .stock-list thead th { white-space: normal; line-height: 18px; vertical-align: bottom; }
  .stock-list th:first-child { width: 28%; }
  #stock-nums .pg-by { display: none; }
  #stock-nums .pg-row:nth-child(n + 3) { display: none; }
}
/* (the visual audit: a line of its own — the photo's row on the form's cells; a panel's last table row on the row under it
   or on the panel's end) */
.front-look .sheet-body > .form-acts.doc-scan-row > .form-act { box-shadow: none; }
.dt-panel-row .dp .tbl-data > :is(tbody, tfoot):last-child > tr:last-child > td { border-bottom: 0; }

/* «Поставщики» in the brand's look (11 November, 03:26, the owner: «делай все остальные страницы бэка, но только
   чётко»; ui/office-suppliers.jsx). Under the head a row of the five columns: the two views an iOS segment in three of
   them, then «Новый поставщик» and the accent's «Заказать ниже минимума» (the catalog's: its search in the other two). The
   names from the receipts keys of the grid; the suppliers and the orders lists from edge to edge, a letter's state a quiet
   coloured word. The catalog: the rubrics one column of the five, the suppliers cells two columns wide. A supplier's card
   and the order: rows from edge to edge, «Изменить» an iPhone's row, the order's lines the iPhone's round marks and rounded
   fields, «Отправить заказ» the accent's cell at the end of its supplier's row. */

/* ---------- the row of keys ---------- */
.sp-keys > .dt-seg { grid-column: span 3; }
.sp-keys.none > .dt-seg { grid-column: 1 / -1; }
.sp-keys.sp-cat > .dt-search { grid-column: span 2; }
.sp-keys > .dt-search input:disabled { background: transparent; }
/* («Заказать ниже минимума» on two lines rather than cut) */
@media (min-width: 1240px) {
  .sp-keys > .dt-key { white-space: normal; line-height: 20px; text-align: center; }
  .sp-keys > .dt-key > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
@media (min-width: 901px) and (max-width: 1239px) {
  .sp-keys.sp-cat > .dt-seg { grid-column: span 2; }
  .sp-keys.sp-cat > .dt-search { grid-column: span 3; }
}
/* (a narrower computer: «Заказать ниже минимума» two lines without its picture — they and the picture would not fit) */
@media (min-width: 701px) and (max-width: 1239px) { #sp-order > svg { display: none; } }
@media (max-width: 700px) {
  /* a phone's: the segment a row, then «Новый поставщик» and the order two thirds; the catalog's search a row */
  .sp-keys > #sp-new { box-shadow: inset 0 -1px 0 0 var(--zl); }
  .sp-keys > .dt-seg { grid-column: 1 / -1; aspect-ratio: auto; min-height: 52px; }
  .sp-keys > .dt-key.acc { order: 0; grid-row: auto; grid-column: span 2; aspect-ratio: 4 / 1; }
  .sp-keys > .dt-key.acc:only-of-type { grid-column: 1 / -1; aspect-ratio: auto; min-height: 56px; }
  .sp-keys.sp-cat > .dt-search { order: 0; grid-column: 1 / -1; aspect-ratio: auto; min-height: 52px; }
}

/* ---------- «Мои поставщики» ---------- */
/* (a block's head right under the row of keys, or under a closed block: one line between them, not two) */
.front-look :is(#sp-unknown, #sp-orders-block) > .pg-head:first-child { box-shadow: none; }
.sp-wait { padding: var(--sp-2) 0; box-shadow: inset 0 -1px 0 0 var(--zl); }
/* the names the receipts wrote, not suppliers yet: keys of the grid — «+», the name, how many receipts */
/* (the line over them a border: the keys' own surfaces would cover a shadow) */
.sp-adds { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--zl); }
.sp-add {
  display: flex; align-items: center; gap: var(--sp-3); min-width: 0; min-height: 64px; padding: var(--sp-2) var(--px); border: 0; border-radius: 0;
  background: var(--surface); color: var(--accent); font: inherit; text-align: left; cursor: pointer; box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl);
}
.sp-add:nth-child(5n + 1) { box-shadow: inset 0 -1px 0 0 var(--zl); }
.sp-add:hover { background: var(--surface-2); }
.sp-add:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.sp-add > svg { flex: none; }
.sp-add-t { display: flex; flex-direction: column; min-width: 0; }
.sp-add-t > b { display: -webkit-box; overflow: hidden; color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; overflow-wrap: anywhere; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sp-add-t > span { color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; }
/* (the last row's last key on to the row's end: no empty cells) */
.sp-adds > .sp-add:last-child:nth-child(5n + 1) { grid-column: span 5; }
.sp-adds > .sp-add:last-child:nth-child(5n + 2) { grid-column: span 4; }
.sp-adds > .sp-add:last-child:nth-child(5n + 3) { grid-column: span 3; }
.sp-adds > .sp-add:last-child:nth-child(5n + 4) { grid-column: span 2; }
/* the list: the name and its PIB under it, the columns of one width whatever the names */
.front-look .sp-table td.xs-title { color: var(--ink); font-weight: var(--fw-semibold); }
.front-look .sp-table td.xs-title .sp-pib { font-weight: var(--fw-regular); }
.sp-table tr.sp-tr:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (min-width: 701px) {
  .front-look .tbl-data.sp-table { table-layout: fixed; }
  .sp-table th:nth-child(1) { width: 21%; }
  .sp-table th:nth-child(2) { width: 19%; }
  .sp-table th:nth-child(3) { width: 21%; }
  .sp-table th:nth-child(4) { width: 9%; }
  .sp-table th:nth-child(5) { width: 15%; }
  .front-look .sp-table th { white-space: normal; }
  .front-look .sp-table td { overflow: hidden; text-overflow: ellipsis; }
}
@media (min-width: 701px) and (max-width: 1239px) {
  /* (a narrower computer: the last order is the orders' list under it — its column out, the others wider) */
  .sp-table th:nth-child(1) { width: 25%; }
  .sp-table th:nth-child(2) { width: 22%; }
  .sp-table th:nth-child(3) { width: 25%; }
  .sp-table th:nth-child(4) { width: 11%; }
  .sp-table :is(th, td):nth-child(6) { display: none; }
}
@media (min-width: 701px) { .front-look .sp-table td:not(.xs-title) { white-space: nowrap; } }
@media (max-width: 700px) {
  .front-look .sp-table .sp-pib { display: none; }
  #sp-unknown .pg-count { display: none; }
  /* (a phone's: rows from edge to edge, the name on one line) */
  .sp-adds { grid-template-columns: minmax(0, 1fr); }
  .sp-adds > .sp-add:last-child:nth-child(n) { grid-column: auto; }
  .sp-adds > .sp-add { min-height: 56px; padding: var(--sp-2) var(--sx, 16px); box-shadow: inset 0 -1px 0 0 var(--zl); }
}
/* the archived ones a row under the list; nothing yet a quiet row */
.sp-gone { margin: 0; padding: var(--sp-3) var(--px); color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; box-shadow: inset 0 -1px 0 0 var(--zl); }
.sp-gone .as-link { color: var(--accent); }
#sp-list > .empty { box-shadow: inset 0 -1px 0 0 var(--zl); }
.sp-empty { margin: 0; padding: var(--sp-4) var(--px); color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; box-shadow: inset 0 -1px 0 0 var(--zl); }
/* the orders: when, to whom, how many lines, the day, the letter's state a quiet coloured word, who */
.front-look .sp-otable .st { display: inline; height: auto; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; font-size: inherit; font-weight: var(--fw-regular); line-height: inherit; white-space: nowrap; }
.front-look .sp-otable .st.st-ok { color: var(--ok); }
.front-look .sp-otable .st.st-bad { color: var(--bad); }
.front-look .sp-otable td.xs-end .st { font-weight: var(--fw-semibold); }
.sp-to { overflow: hidden; color: var(--ink-3); font-size: var(--fs-sm); line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 701px) {
  .front-look .tbl-data.sp-otable { table-layout: fixed; }
  .sp-otable th:nth-child(1) { width: 152px; }
  .sp-otable th:nth-child(2) { width: 20%; }
  .sp-otable th:nth-child(3) { width: 96px; }
  .sp-otable th:nth-child(4) { width: 112px; }
  .sp-otable th:nth-child(6) { width: 15%; }
  .front-look .sp-otable td { overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- a supplier's card ---------- */
.front-look .sheet-body > .form-acts.sp-card-acts:first-child { margin-top: calc(-1 * var(--sheet-top, var(--sp-5))); box-shadow: none; }
.front-look .sheet-body > .sp-sec { margin: 0; }
.front-look .sheet-body > :is(.sp-products, .table-wrap, .sp-empty) { margin: calc(-1 * var(--gap) + var(--sp-2)) calc(-1 * var(--edge, var(--sx))) 0; }
.front-look .sheet-body > .sp-empty { padding-inline: var(--edge, var(--sx)); box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.front-look .sheet-body > .sp-products { width: auto; }
@media (min-width: 701px) {
  .front-look .sheet-body > :is(.sp-products, .table-wrap > .sp-otable) :is(th, td):first-child { padding-left: var(--edge, var(--sx)); }
  .front-look .sheet-body > :is(.sp-products, .table-wrap > .sp-otable) :is(th, td):last-child { padding-right: var(--edge, var(--sx)); }
}

/* ---------- «Заказать ниже минимума» ---------- */
/* (the date and the note's cells, then each supplier's row and its lines: one block after another, their lines one) */
.front-look .sheet-body > .sp-group { display: flex; flex-direction: column; gap: 0; margin: calc(-1 * var(--gap)) calc(-1 * var(--edge, var(--sx))) 0; padding: 0; border: 0; border-radius: 0; }
.front-look .sp-group > .sp-group-head { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 0; min-height: 56px; background: var(--surface); box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.sp-group-t { display: flex; flex: 1 1 auto; flex-direction: column; justify-content: center; min-width: 0; padding: var(--sp-2) var(--edge, var(--sx)); }
.front-look .sp-group-t > h3 { margin: 0; overflow: hidden; color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; white-space: nowrap; text-overflow: ellipsis; }
.sp-group-t > span { overflow: hidden; color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; white-space: nowrap; text-overflow: ellipsis; }
.sp-group-t > span.warn-txt { color: var(--warn); }
.front-look .sp-group.sp-none .sp-group-t > h3 { color: var(--ink-2); }
.sp-send {
  display: inline-flex; flex: none; align-items: center; justify-content: center; gap: var(--sp-2); min-width: 208px; padding: 0 var(--sp-5); border: 0; border-radius: 0;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-size: var(--fs-md); font-weight: var(--fw-semibold); white-space: nowrap; cursor: pointer;
}
.sp-send:hover:not(:disabled) { background: color-mix(in oklab, var(--accent) 88%, var(--ink)); }
.sp-send:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: -4px; }
.sp-send:disabled { background: var(--surface-2); color: var(--ink-3); cursor: default; box-shadow: inset 1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.sp-sent { display: inline-flex; flex: none; align-items: center; gap: var(--sp-2); padding: 0 var(--edge, var(--sx)); color: var(--ok); font-weight: var(--fw-semibold); }
.front-look .sp-group > .table-wrap { margin: 0; border: 0; border-radius: 0; }
.front-look .sp-lines td { vertical-align: middle; }
.front-look .sp-lines :is(th, td):first-child { padding-left: var(--edge, var(--sx)); }
.front-look .sp-lines :is(th, td):last-child { padding-right: var(--edge, var(--sx)); }
.sp-qty { display: inline-flex; align-items: center; gap: var(--sp-2); }
.front-look .sp-qty > .cell-input { width: 84px; text-align: right; }
.sp-qty > span { color: var(--ink-2); }
.front-look .sp-lines .select { width: 100%; }
@media (min-width: 701px) {
  .front-look .tbl-data.sp-lines { table-layout: fixed; }
  .sp-lines th:nth-child(1) { width: 60px; }
  .sp-lines th:nth-child(3), .sp-lines th:nth-child(4) { width: 96px; }
  .sp-lines th:nth-child(5) { width: 148px; }
  .sp-lines th:nth-child(6) { width: 30%; }
}
/* a phone: the round mark a column at the line's left; the product a row across, under it what there is, the
   minimum and how much to order, each named over its value, then the supplier's field the row's width */
@media (max-width: 700px) {
  .sp-send { min-width: 0; padding: 0 var(--sp-4); }
  .front-look .sp-group > .table-wrap { overflow: visible; }
  .front-look .tbl-data.sp-lines, .front-look .sp-lines tbody { display: block; }
  .front-look .sp-lines thead { display: none; }
  .front-look .sp-lines tr { display: grid; grid-template-columns: 52px repeat(3, minmax(0, 1fr)); padding-bottom: var(--sp-2); box-shadow: inset 0 -1px 0 0 var(--zl); }
  .front-look .tbl-data.sp-lines td { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 2px; height: auto; min-height: 0; padding: var(--sp-2) var(--sp-3) 0 0; border: 0; text-align: left; }
  .front-look .tbl-data.sp-lines td.sp-tick { grid-row: 1 / span 3; grid-column: 1; align-items: center; padding: 0; }
  .front-look .tbl-data.sp-lines td.sp-prod { grid-column: 2 / -1; padding-top: var(--sp-3); color: var(--ink); font-weight: var(--fw-semibold); }
  .front-look .tbl-data.sp-lines td.sp-prod .muted { font-weight: var(--fw-regular); }
  .front-look .tbl-data.sp-lines td.sp-sup { grid-column: 2 / -1; padding-right: var(--sx, 16px); }
  .front-look .sp-lines td[data-label]::before { content: attr(data-label); color: var(--ink-3); font-family: var(--font-ui); font-size: var(--fs-xs); font-weight: var(--fw-regular); line-height: 16px; white-space: nowrap; }
  .front-look .sp-qty > .cell-input { width: 72px; font-size: 16px; }
  /* (not a table that scrolls sideways: no first column held at the left) */
  :root .front-look .table-wrap > .tbl-data.sp-lines td { position: static; min-width: 0; max-width: none; background: none; box-shadow: none; white-space: normal; }
}

/* ---------- the catalog ---------- */
/* the rubrics one column of the five, the suppliers two columns each; a narrower computer: the rubrics two columns, the
   suppliers three, one to a row */
@media (min-width: 901px) and (max-width: 1239px) {
  .front-look .of-page > .dir { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .front-look .dir-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1240px) {
  .front-look .of-page > .dir { grid-template-columns: minmax(0, 1fr) minmax(0, 4fr); }
  .front-look .dir-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 701px) and (max-width: 900px) {
  /* (the rubrics a strip of fifths over the suppliers) */
  .front-look .dir-rubs { grid-auto-columns: calc(100% / 5); }
}

/* «Команда» whole (11 November, 03:26, the owner: «делай все остальные страницы бэка, но только чётко»; ui/office-people.jsx,
   server-people.jsx, office-shifts.jsx, office-schedule.jsx). «Сотрудники»: the figures five squares, each a filter — everyone,
   the floor and the bar, the kitchen, the back office, those without a PIN —; the search, the iPad's and the iPhone's
   Auto-Lock and «+ Сотрудник» a row of the five; the list a block; a person's sheet «Отмена» and «Сохранить» its footer,
   «Посмотреть как», «Новый PIN», «Уволить» rows at its end. «Смены и зарплата»: «График»'s week a cell of the bar; who is
   on shift a list, «Закрыть смену» a key at the row's end; a day of the timesheet a whole cell, no box in it; the week's
   plan its keys a row of the five — its state a quiet cell —, its days whole cells, a shift the accent's light shade.
   «Журнал действий»: what and the period two cells of the five, what each entry is a quiet word. */

/* a choice in a cell of the keys' row: its name small at the top, the choice under it, the chevron at the right (the
   name over the choice's key in one grid cell — not positioned: a positioned cell would cover the squares' line over it) */
.dt-keys > .dt-pick { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); min-width: 0; background: var(--surface); }
.dt-pick > * { grid-area: 1 / 1; }
.dt-keys > .dt-pick:hover { background: var(--surface-2); }
.dt-pick-l { z-index: 1; align-self: start; min-width: 0; margin: 8px var(--sp-3) 0 var(--px); overflow: hidden; color: var(--ink-2); font-size: var(--fs-sm); line-height: 18px; white-space: nowrap; text-overflow: ellipsis; pointer-events: none; }
:root .front-look .dt-pick > .select {
  display: flex; flex: 1 1 auto; align-items: flex-end; gap: var(--sp-2); width: 100%; min-width: 0; height: auto; min-height: 56px; padding: 28px var(--sp-3) 8px var(--px);
  border: 0; border-radius: 0; background: transparent; color: var(--ink); box-shadow: none; font-size: var(--fs-md); font-weight: var(--fw-regular); line-height: 20px; text-align: left;
}
:root .front-look .dt-pick > .select .select-value { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* (12 November: on a computer a keys' row is a cell of the grid's height, 48 — the name and the choice closer in it) */
@media (min-width: 701px) {
  :root .front-look .dt-pick > .select { min-height: var(--cell-h, 56px); padding-top: 22px; padding-bottom: 5px; }
  .dt-pick-l { margin-top: 5px; line-height: 16px; }
}
:root .front-look .dt-pick > .select .select-chevron { flex: none; color: var(--ink-2); }
:root .front-look .dt-pick > .select:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* ---------- «Сотрудники» ---------- */
/* (the squares' lines on two lines rather than cut: «официанты, менеджеры, бармены»; a narrower computer — the floor's,
   the kitchen's and the back office's names say it, their lines go) */
@media (min-width: 701px) {
  #pp-nums > .pg-num .pg-num-s { display: -webkit-box; white-space: normal; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
@media (min-width: 701px) and (max-width: 1239px) {
  #pp-nums > :is(#pp-floor, #pp-kitchen, #pp-office) .pg-num-s { display: none; }
}
/* a person's restaurants and sections: three to a row; a short last row stays short, the ground after it (the visual
   audit, 11 November — «Не растягивай блоки»: the last cell had been stretched to the row's end) */
.front-look .chip-row.pp-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* «нет PIN» — the warning's word, no pill */
.pp-nopin { flex: none; color: var(--warn); font-size: var(--fs-sm); white-space: nowrap; }
/* (11 November, 14:18, the owner: «сотрудников я бы как-то пересобрал бы … очень много пустого места») the people tiles
   of the grid: five to a row on a computer — the letter at the left, the name, the role, the e-mail —, a line at each
   tile's right and under it (a short last row: the ground after it, its last tile's line closes it); a phone — a row
   each, as the waiter's lists */
.pp-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; box-shadow: inset 0 1px 0 0 var(--zl); }
.pp-tile { min-width: 0; box-shadow: inset -1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.pp-tile:nth-child(5n) { box-shadow: inset 0 -1px 0 0 var(--zl); }
.pp-tile-b { display: flex; align-items: flex-start; gap: var(--sp-3); width: 100%; height: 100%; min-height: 88px; padding: var(--sp-4) var(--px); border: 0; border-radius: 0; background: none; color: var(--ink); font: inherit; text-align: left; }
button.pp-tile-b { cursor: pointer; }
button.pp-tile-b:hover { background: var(--surface-2); }
button.pp-tile-b:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pp-tile-b > .avatar { flex: none; }
.pp-tile-t { display: flex; flex: 1 1 auto; flex-direction: column; gap: 2px; min-width: 0; }
.pp-tile-n { overflow: hidden; font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; white-space: nowrap; text-overflow: ellipsis; }
.pp-tile-r { color: var(--ink-2); font-size: var(--fs-sm); line-height: 18px; }
.pp-tile-e { overflow: hidden; color: var(--ink-3); font-size: var(--fs-sm); line-height: 18px; white-space: nowrap; text-overflow: ellipsis; }
.pp-tile.off .pp-tile-t { opacity: 0.6; }
.pp-tile-t > .pp-nopin { line-height: 18px; }
/* a narrower computer: the letter over the name (a column is 157 wide at 1024) */
@media (min-width: 701px) and (max-width: 1239px) {
  .pp-tile-b { flex-direction: column; gap: var(--sp-2); }
}
@media (max-width: 700px) {
  .pp-tiles { grid-template-columns: minmax(0, 1fr); }
  .pp-tile, .pp-tile:nth-child(5n) { box-shadow: inset 0 -1px 0 0 var(--zl); }
  .pp-tile-b { min-height: 64px; padding: var(--sp-3) var(--sx, 16px); }
}
@media (max-width: 700px) {
  /* the squares: the figure and the name — what the floor's, the kitchen's, the back office's and the PIN's are is the computer's line */
  #pp-nums > .pg-num:not(#pp-all) .pg-num-s { display: none; }
  /* the keys: the search two columns and «+ Сотрудник», then the Auto-Lock a row of the iPhone's settings — its name at
     the left, its choice at the right */
  .pp-keys > .dt-pick { grid-column: 1 / -1; aspect-ratio: auto; min-height: 56px; box-shadow: inset 0 -1px 0 0 var(--zl); }
  .pp-keys > .dt-pick > .dt-pick-l { align-self: center; justify-self: start; margin: 0 0 0 var(--sx, 16px); color: var(--ink); font-size: var(--fs-md); line-height: 22px; }
  :root .front-look .pp-keys > .dt-pick > .select { align-items: center; justify-content: flex-end; padding: 0 var(--sx, 16px) 0 50%; color: var(--ink-2); }
  :root .front-look .pp-keys > .dt-pick > .select .select-value { flex: 0 1 auto; text-align: right; }
}

/* ---------- «Журнал действий» ---------- */
.log-keys > .log-what { grid-column: span 3; }
.log-keys > .log-when { grid-column: span 2; }
/* what an entry is: a quiet word, the warning's colour for a void, a reopened table, a dismissal */
.log-kind { color: var(--ink-2); font-size: var(--fs-sm); }
.log-kind.warn { color: var(--warn); }
/* «Показать ещё» a row at the list's end */
.pg-block > .form-acts.log-more { margin: 0; box-shadow: none; }
.log-more > .form-act { padding: 0 var(--px); }
/* (a narrower computer: the columns in its width — no list going sideways) */
@media (min-width: 701px) and (max-width: 1239px) {
  .log-table { min-width: 0; }
  .log-table th:nth-child(1) { width: 108px; }
  .log-table th:nth-child(2) { width: 132px; }
  .log-table th:nth-child(4) { width: 124px; }
  .log-table th:nth-child(5) { width: 112px; }
  .log-table th:nth-child(6) { width: 84px; }
  .log-text { min-width: 0; }
}
@media (max-width: 700px) {
  .log-keys > .log-what { grid-column: span 2; aspect-ratio: 4 / 1; }
  .log-keys > .log-when { grid-column: span 1; }
  :root .front-look .log-keys > .dt-pick > .select { padding-left: var(--sx, 16px); }
  .log-keys > .dt-pick > .dt-pick-l { margin-left: var(--sx, 16px); }
}

/* ---------- «Смены и зарплата» ---------- */
/* «График»'s week: a cell of the bar — the arrows at its ends, the week and which one between them; another week's —
   a key back to this one, its line in the accent's colour */
.sh-bar > .sc-week { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: stretch; gap: 0; min-width: 0; min-height: var(--cell-h); background: var(--surface); box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.sc-week > .sc-wk { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--ink-2); cursor: pointer; }
.sc-week > .sc-wk:hover:not(:disabled) { background: var(--surface-2); color: var(--ink); }
.sc-week > #sc-prev { box-shadow: inset -1px 0 0 0 var(--zl); }
.sc-week > #sc-next { box-shadow: inset 1px 0 0 0 var(--zl); }
.sc-week > .sc-wk:disabled { color: var(--ink-3); opacity: 0.45; cursor: default; }
.sc-week > .sc-wk:focus-visible, .sc-week > button.sc-week-t:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.sh-bar > .sc-week > .sc-week-t { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-width: 0; padding: 0 2px; border: 0; border-radius: 0; background: none; color: var(--ink); font: inherit; text-align: center; }
.sc-week > .sc-week-t > b { max-width: 100%; overflow: hidden; font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 20px; white-space: nowrap; text-overflow: ellipsis; }
.sc-week > .sc-week-t > .muted { max-width: 100%; overflow: hidden; line-height: 16px; white-space: nowrap; text-overflow: ellipsis; }
.sc-week > button.sc-week-t { cursor: pointer; }
.sc-week > button.sc-week-t:hover { background: var(--surface-2); }
.sc-week > button.sc-week-t > .muted { color: var(--accent); }
@media (min-width: 701px) and (max-width: 1239px) {
  .sh-bar > .sc-week { grid-template-columns: 28px minmax(0, 1fr) 28px; }
  .sh-bar > .sc-week > .sc-week-t { padding: 0; }
  .sc-week > .sc-week-t > b { font-size: var(--fs-sm); line-height: 18px; }
}
@media (max-width: 700px) {
  /* the bar: the views a row of thirds, then the period (or the week) two thirds and «PIN и ставки» a third */
  :root .front-look .of-page > .sh-bar.sh-bar5 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  :root .front-look .of-page > .sh-bar.sh-bar5 > .seg { grid-column: 1 / -1; }
  :root .front-look .of-page > .sh-bar.sh-bar5 > :is(.select, .sc-week) { grid-column: span 2; min-height: 56px; }
  :root .front-look .of-page > .sh-bar.sh-bar5 > .select { box-shadow: inset 0 -1px 0 0 var(--zl); }
  :root .front-look .of-page > .sh-bar.sh-bar5 > .sc-week { box-shadow: inset 0 -1px 0 0 var(--zl); }
  :root .front-look .of-page > .sh-bar.sh-bar5 > .btn { flex-direction: column; justify-content: center; gap: 4px; padding: 0 var(--sp-2); font-size: var(--fs-sm); line-height: 18px; box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
}

/* who is on shift: a row each — the person, since when and how long —, «Закрыть смену» a key at its end, a column of the five */
.pg-block > .sh-now { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--zl); }
.pg-block > .sh-now > li { display: flex; align-items: stretch; gap: 0; min-height: 64px; padding: 0; border: 0; box-shadow: inset 0 -1px 0 0 var(--zl); }
.sh-now-t { display: flex; flex: 1 1 auto; align-items: center; gap: var(--sp-3); min-width: 0; padding: var(--sp-2) var(--px); }
.sh-now-t > .sh-now-who { flex: 1 1 auto; }
.pg-block > .sh-now > li > .pg-hkey {
  display: flex; flex: none; align-items: center; justify-content: center; gap: var(--sp-2); width: 20%; min-width: 0; padding: 0 var(--sp-3); border: 0; border-radius: 0;
  background: var(--surface); color: var(--ink); font: inherit; font-weight: var(--fw-semibold); white-space: nowrap; cursor: pointer; box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl);
}
/* (12 November, 03:31, the owner: «Не забудь закрыть смену линиями отгородить») the key's own ground had hidden the row's
   line under it: the key draws it — «Закрыть смену» a cell of the grid, lines at its left and under it */
.pg-block > .sh-now > li > .pg-hkey:hover { background: var(--surface-2); }
.pg-block > .sh-now > li > .pg-hkey:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pg-block > .sh-now > li > .pg-hkey > svg { flex: none; color: var(--ink-2); }
.pg-block > .sh-now > li > .pg-hkey > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 700px) {
  /* a phone: «Закрыть смену» a third of the row, its icon over its name */
  .pg-block > .sh-now > li > .pg-hkey { width: calc(100% / 3); flex-direction: column; gap: 2px; padding: 0 var(--sp-2); font-size: var(--fs-sm); line-height: 18px; white-space: normal; text-align: center; }
  .sh-now-t { padding-left: var(--sx, 16px); padding-right: var(--sp-2); }
}

/* the timesheet's week: a day a whole cell of the table, no box in it — the shift's hours; «идёт» the colour of a shift
   on, «не закрыта» the bad one's; a dot before the hours — corrected in the back office */
.front-look .sh-table .sh-cell {
  display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 0;
  background: none; color: var(--ink); font: inherit; font-variant-numeric: tabular-nums; white-space: nowrap; cursor: pointer;
}
.front-look .sh-table .sh-cell:hover { background: var(--surface-2); }
.front-look .sh-table .sh-cell:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.front-look .sh-table .sh-cell.open { color: var(--ok); font-weight: var(--fw-semibold); }
.front-look .sh-table .sh-cell.stale { background: var(--bad-soft); color: var(--bad); font-weight: var(--fw-semibold); }
.front-look .sh-table .sh-cell.edited::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.front-look .sh-table .sh-late { margin-left: 0; }
@media (min-width: 701px) {
  .front-look .sh-table.week { table-layout: fixed; }
  .front-look .sh-table.week th:first-child { width: 20%; }
  .front-look .sh-table.week th:last-child { width: 10%; }
  .front-look .sh-table.week td.num { position: relative; }
  .front-look .sh-table.week td.num > .sh-cell { position: absolute; inset: 0; width: 100%; padding: 0 var(--sp-3); }
}
@media (max-width: 700px) {
  /* (a phone: the day's chips on the row's second line — a shift its hours on the second surface, a key to tap) */
  .front-look .sh-table td.xs-chip > .sh-cell { min-height: 28px; padding: 0 var(--sp-2); background: var(--surface-2); }
  .front-look .sh-table td.xs-chip > .sh-cell.stale { background: var(--bad-soft); }
}

/* the pay: a narrower computer without the rate and the percentage — they are «Сотрудники»' — the rest in its width */
.front-look .sh-pay .c-tips { border-left: 0; box-shadow: inset 1px 0 0 0 var(--zl); }
.front-look .sh-pay thead .c-tips { box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
@media (min-width: 701px) and (max-width: 1239px) {
  .sh-pay :is(th, td):is(:nth-child(4), :nth-child(7)) { display: none; }
  .front-look .sh-pay :is(th, td) { padding-left: var(--sp-2); padding-right: var(--sp-2); }
}
/* (a phone: the pay's sums under its name — the name not cut to «Зарплат…») */
@media (max-width: 700px) {
  #sh-pay-block > .pg-head { flex-wrap: wrap; row-gap: 0; padding-top: var(--sp-2); padding-bottom: var(--sp-2); }
  #sh-pay-block > .pg-head > .pg-count { order: 9; flex: 0 0 100%; margin: 0; padding: 0; }
}
/* (the tips no one on shift could share: a note under the list) */
.pg-block > .sh-unassigned.dp-note { border-top: 0; }

/* ---------- «График» ---------- */
/* the week's keys a row of the five: «Составить по прогнозу», «Скопировать прошлую неделю», «Очистить», the state,
   «Опубликовать»; a key's name on two lines rather than cut (no gap of the old strip of buttons between the columns) */
.dt-keys.sc-keys { gap: 0; align-items: stretch; }
.sc-keys > .dt-key { justify-content: flex-start; white-space: normal; line-height: 18px; text-align: left; }
.sc-keys > .dt-key > span { display: -webkit-box; min-width: 0; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sc-keys > .sc-state { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; padding: var(--sp-2) var(--px); background: var(--surface); }
.sc-state > b { display: flex; align-items: center; gap: 4px; color: var(--ink-2); font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 20px; }
.sc-state > b > svg { flex: none; }
.sc-state > span { overflow: hidden; color: var(--ink-2); font-size: var(--fs-sm); line-height: 18px; white-space: nowrap; text-overflow: ellipsis; }
.sc-state.published > b { color: var(--ok); }
.sc-by::before { content: ' · '; }
.sc-state.changed > b { color: var(--warn); }
.sc-state.draft > b { color: var(--accent); }
/* only to look at: the state two columns, why nothing is to press the three after it */
.sc-keys.view > .sc-state { grid-column: span 2; }
.sc-keys.view > .sc-note { display: flex; grid-column: span 3; align-items: center; gap: var(--sp-2); margin: 0; padding: var(--sp-2) var(--px); color: var(--ink-2); font-size: var(--fs-sm); line-height: 20px; }
.sc-note > svg { flex: none; }
.front-look .of-page > p.sc-note.dp-note { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-3) var(--px); box-shadow: inset 0 -1px 0 0 var(--zl); }
@media (min-width: 701px) and (max-width: 1239px) {
  .sc-keys > .dt-key { flex-direction: column; justify-content: center; gap: 2px; padding: 0 var(--sp-2); font-size: var(--fs-sm); text-align: center; }
  /* (when and who published: who on a line of its own rather than cut — «06.11, 15:00» / «Nevena») */
  .sc-state > .sc-pub > .sc-by { display: block; overflow: hidden; text-overflow: ellipsis; }
  .sc-state > .sc-pub > .sc-by::before { content: none; }
}
@media (max-width: 700px) {
  /* a phone: the three keys a row, then the state two columns and «Опубликовать» */
  .sc-keys > .dt-key { justify-content: center; padding: 0 4px; font-size: 13px; line-height: 16px; text-align: center; }
  .dt-keys.sc-keys > .dt-key.acc { order: 0; grid-row: auto; grid-column: auto; }
  .sc-keys > .sc-state { grid-column: span 2; aspect-ratio: 4 / 1; padding: var(--sp-2) var(--sx, 16px); box-shadow: inset 0 -1px 0 0 var(--zl); }
  /* (12 November, 02:46: on the owner's iPhone the state and «Опубликовать» stood narrower than their columns — Safari
     sized them from the row's height by their proportions) a phone's key a third of the width and half that high: the
     height set, every cell of the row stretched to its columns */
  :root .front-look .dt-keys.sc-keys > * { aspect-ratio: auto; min-height: calc(100vw / 6); }
  :root .front-look .dt-keys.sc-keys.view > * { min-height: 56px; }
  .sc-keys.view > .sc-state { grid-column: 1 / -1; aspect-ratio: auto; min-height: 56px; }
  .sc-keys.view > .sc-note { grid-column: 1 / -1; aspect-ratio: auto; padding: var(--sp-3) var(--sx, 16px); box-shadow: none; }
}

/* the week's table: a day of a person a whole cell — a shift the accent's light shade, its hours in it; a day off a quiet
   word; another restaurant's shift the second surface; a line between the days (the day's own, at its left: the cell's
   shade would hide its table cell's) */
.front-look .sc-table :is(th.sc-day, th.sc-sum) { box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.front-look .sc-table :is(td.sc-cov, td.sc-sum) { box-shadow: inset 1px 0 0 0 var(--zl); }
/* (the table's lines its cells' own — collapsed borders, split between two rows, left some days' shade over the line
   under them and others a pixel short of it) */
.front-look .tbl-data.sc-table { border-collapse: separate; border-spacing: 0; }
.front-look .sc-table td.sc-td { position: relative; height: 56px; padding: 0; box-shadow: none; }
.front-look .sc-table td.sc-td > .sc-cell { position: absolute; inset: 0; width: auto; height: auto; min-height: 0; padding: 4px; border: 0; border-radius: 0; box-shadow: inset 1px 0 0 0 var(--zl); }
.front-look .sc-table thead th.sc-day.is-past { color: var(--ink-3); }
.front-look .sc-table .sc-cell.off { color: var(--ink-3); }
.front-look .sc-table .sc-cell.empty { color: var(--ghost); }
.front-look .sc-table button.sc-cell:hover { box-shadow: inset 0 0 0 2px var(--accent); }
.front-look .sc-table button.sc-cell.empty:hover { background: var(--surface-2); }
.front-look .sc-table button.sc-cell:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.front-look .sc-table .sc-cell.clash { box-shadow: inset 0 0 0 2px var(--warn); }
.front-look .sc-table .sc-hours { border-radius: 0; }
.front-look .sc-table .sc-group-h th { box-shadow: inset 0 -1px 0 0 var(--zl); }
.pg-block > .sc-legend.dp-note { border-top: 0; box-shadow: inset 0 -1px 0 0 var(--zl); }
/* (12 November, 02:46, the owner on a phone's «График»: «Каша — пересобрать») the week a clean grid: every row a line
   under it from the name to the hours — the groups' rows too —, a day a line at its right (the names' column one at its
   right as well: a sticky column over the days scrolled under it keeps its edge, and no two lines meet), what a cell
   says in its middle */
:root .front-look .table-wrap > .tbl-data.sc-table :is(th, td) { border: 0; }
:root .front-look .table-wrap > .tbl-data.sc-table thead th.sc-who { box-shadow: inset -1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
:root .front-look .table-wrap > .tbl-data.sc-table thead :is(th.sc-day, th.sc-sum) { box-shadow: inset -1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
:root .front-look .table-wrap > .tbl-data.sc-table tbody th.sc-who { box-shadow: inset -1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
:root .front-look .table-wrap > .tbl-data.sc-table tbody > tr.sc-group-h > th { position: static; max-width: none; box-shadow: inset 0 -1px 0 0 var(--zl); }
:root .front-look .sc-table td.sc-td > .sc-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: inset -1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
:root .front-look .sc-table :is(td.sc-cov, td.sc-sum) { box-shadow: inset -1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
:root .front-look .sc-table tr > :last-child:is(th.sc-sum, td.sc-sum, td:empty) { box-shadow: inset 0 -1px 0 0 var(--zl); }
:root .front-look .sc-table button.sc-cell:hover { box-shadow: inset 0 0 0 2px var(--accent); }
:root .front-look .sc-table .sc-cell.clash { box-shadow: inset 0 0 0 2px var(--warn); }
/* (two lines touching: a block's head right under a strip that closes with its own line draws none over it) */
.front-look .of-page > :is(.sh-bar, .sc-keys, p.sc-note) + .pg-block > .pg-head:first-child,
.front-look .of-page > .pg-block:has(> .sh-now:last-child) + .pg-block > .pg-head:first-child,
.front-look .of-page > .sc-card + .sc-gaps > .pg-head:first-child { box-shadow: none; }
/* the forecast's need of a day in the cell's sheet: square hours, as the sheet's other cells */
.front-look .sc-hr b { border-radius: 0; }

/* what the forecast still lacks: a role a row — its name a column of the five, the hours after it */
.pg-block > .sc-gap-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--zl); }
.pg-block > .sc-gap-list > li { display: grid; grid-template-columns: 20% minmax(0, 1fr); gap: 0; align-items: center; min-height: 56px; padding: var(--sp-2) 0; border: 0; box-shadow: inset 0 -1px 0 0 var(--zl); font-size: var(--fs-sm); line-height: 20px; }
.pg-block > .sc-gap-list > li > :is(b, span) { min-width: 0; padding: 0 var(--px); }
@media (max-width: 700px) {
  .pg-block > .sc-gap-list > li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .pg-block > .sc-gap-list > li > :is(b, span) { padding: 0 var(--sx, 16px); }
}

/* (12 November, 03:37, the owner on «Журнал действий»: «Отцентровать вертикально по центру ячейки») a row's words in the
   middle of its height */
.front-look .log-table td { vertical-align: middle; }

/* ---------- «Мотивация» (server 0.102, Sales Force 1): the waiters this month, the achievements of the restaurant ----------
   An achievement's icon a small round of the ground's next shade (an earned one amber, as on the waiter's iPhone); the
   waiters' earned ones a row of icons with how many ever under it; the rule's words in the row as written; the numbers'
   sheet — the fields side by side, the rule as it will read under them. */
.mo-ic { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); }
.mo-page .title-row > .mo-ic { margin-right: var(--sp-1); }
.mo-got .mo-icons { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.mo-got .mo-ic { background: var(--warn-soft); color: var(--warn); }
.mo-got .cell-sub { display: block; margin-top: 2px; color: var(--ink-3); font-size: var(--fs-sm); font-weight: var(--fw-regular); }
.mo-achs .mo-rule { color: var(--ink-2); white-space: normal; }
/* (13 November, the page looked over after the owner's «Не хватает линии»: «…за месяцначнёт считаться…» ran into the
   rule) what waits for the guests' app a line of its own under the rule */
.mo-achs .mo-rule > .cell-sub { display: block; }
.mo-achs td:first-child { min-width: 220px; }
.mo-people td:first-child { min-width: 160px; }
.mo-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--sp-3); }
.mo-fields > .field { min-width: 0; }
.mo-preview { margin: var(--sp-3) 0 0; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md, 12px); background: var(--surface-2); color: var(--ink); font-size: var(--fs-sm); line-height: 20px; }
@media (max-width: 700px) {
  /* (a phone: a waiter's row — the name, then the sales · bills · average; the icons at the right) */
  .front-look .tbl-data.list-rows.mo-people td.xs-end { max-width: 140px; }
  .front-look .tbl-data.list-rows.mo-people td.xs-end .mo-icons { justify-content: flex-end; }
  .front-look .tbl-data.list-rows.mo-achs td:first-child { min-width: 0; }
  .front-look .tbl-data.list-rows.mo-people td:first-child { min-width: 0; }
}
/* the bonus dishes (0.103): the dish's name its column, the figures after it */
.mo-bonus td:first-child { min-width: 200px; }
@media (max-width: 700px) { .front-look .tbl-data.list-rows.mo-bonus td:first-child { min-width: 0; } }
/* the missions (0.104): the mission's words their column; the rating — the place a number before the name */
.mo-missions td:first-child, .mo-rating td:first-child { min-width: 220px; }
.mo-place { display: inline-block; min-width: 1.6em; margin-right: var(--sp-1); color: var(--ink-2); }
#mo-rating > .dp-note { margin: 0; }
@media (max-width: 700px) { .front-look .tbl-data.list-rows:is(.mo-missions, .mo-rating) td:first-child { min-width: 0; } }
/* the levels (0.105): on or off a row of the block — the words at the left, the switch at the right */
/* (13 November, 12:54, the owner of «Уровни и процент»: «Не хватает линии горизонтальной») a line over the switch's row
   too — the block's head draws none under it */
.mo-switch-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 64px; padding: var(--sp-2) var(--px, 24px); box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.mo-switch-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-weight: var(--fw-semibold); }
.mo-switch-t > .muted { font-weight: var(--fw-regular); }
.mo-levels td:first-child { min-width: 200px; }
/* (13 November, 13:18, the owner of the levels' sheet: «Зачем двойные линии?») a level's row right under the one before,
   as any two rows of a sheet: one line between them — no strip of 8 under each, its own line on either side */
@media (max-width: 700px) {
  .mo-switch-row { padding: var(--sp-2) var(--sx, 16px); }
  .front-look .tbl-data.list-rows.mo-levels td:first-child { min-width: 0; }
}
/* (a waiter's level under the name, its own line — not run on after it) */
.mo-people td:first-child > .cell-sub { display: block; margin-top: 2px; color: var(--ink-2); font-size: var(--fs-sm); font-weight: var(--fw-regular); line-height: 18px; }
@media (max-width: 700px) { .front-look .tbl-data.list-rows.mo-people td:first-child > .cell-sub { display: block; } }

/* «Настройки» whole (11 November, 03:26, the owner: «делай все остальные страницы бэка, но только чётко»; ui/office.jsx's
   LocsPage, office-settings.jsx, office-pay.jsx, office-currency.jsx, office-devices.jsx, server-devices.jsx,
   office-sef.jsx's firms, office-venue.jsx). «Рестораны»: its tabs a row of the five; a restaurant a row of the five —
   its name, its own name's field, its floors (two columns), its devices (on the server: its floors, its address and the
   key to change it) —; a block each for the working day, the currency, the forecast's norms, the firms and SEF, the
   devices, the subscription, the demo's data — every one rows of cells on the five columns, the keys whole cells, saved
   as iOS's settings are: as a field is left. A phone: the iPhone's settings — a name at the left, its value or control
   at the right —, three columns. */

/* ---------- the cells' common parts ---------- */
.front-look p.dl-cell { margin: 0; }
.front-look .dt-key.bad > svg { color: currentColor; }
.front-look .dl-row > .w4 { grid-column: span 4; }
.front-look .tg-row.dl-note.warn { color: var(--warn); }

/* a block's head: the line under it; the line over it is the last row's of what is above */
.front-look :is(.locs-page, .opf-page) > .pg-block > .pg-head { box-shadow: inset 0 -1px 0 0 var(--zl); }
/* a block's head key: its line at its left and under it, as the head's (its top is the line of what is above) */
.front-look :is(.locs-page, .opf-page) > .pg-block > .pg-head > .pg-hkey { box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
/* a form's field the first cell of its row: no line at its left — the screen's edge, or the menu's line */
.front-look .dt-keys > .dl-form:first-child > :first-child { box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .dt-keys > .dl-form:first-child > .dt-field:first-child:focus-within { box-shadow: inset 0 -2px 0 0 var(--accent); }

/* ---------- «Рестораны»: the restaurants ---------- */
.front-look .loc-rows { display: flex; flex-direction: column; }
.front-look .loc-card > .loc-dl { display: contents; margin: 0; }
.front-look .loc-card > .loc-dl > div { min-width: 0; min-height: 56px; margin: 0; box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.front-look .loc-card > .loc-dl > .w2 { grid-column: span 2; }
.front-look .loc-dl :is(dt, dd) { margin: 0; }
.front-look .loc-dl dd { color: var(--ink); font-size: var(--fs-md); line-height: 20px; }
/* the restaurant's name: in the middle of its cell's height, its district or address under it */
.front-look .loc-card > .loc-who { justify-content: center; gap: 2px; }
.front-look .loc-who > h2 { margin: 0; overflow: hidden; color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 22px; text-overflow: ellipsis; }
.front-look .loc-card > .dt-key, .front-look .loc-card > .dl-form > .dt-field { min-height: 72px; }
.front-look .loc-own > input::placeholder { color: var(--ink-3); }
.front-look .loc-address .muted { color: var(--ink-3); }

/* ---------- the working day, the currency, the norms ---------- */
.front-look .day-keys > .day-now { justify-content: center; }
.front-look .cur-keys > .dt-pick, .front-look .day-keys > .dt-pick { min-height: 64px; }

/* ---------- the firms and SEF ---------- */
.front-look .firm-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.front-look .firm-list > .firm-row { padding: 0; border: 0; }
.front-look .firm-row > .firm-who { justify-content: center; gap: 2px; }
.front-look .firm-row > .firm-who > .dl-cell-n { overflow-wrap: anywhere; }
.front-look .firm-row > .firm-who > .firm-pib { font-variant-numeric: tabular-nums; }
.front-look .firm-row > .firm-sef { justify-content: flex-start; gap: 2px; }
.front-look .firm-row > .firm-sef > .dl-cell-l { margin-bottom: 2px; }
.front-look .firm-row > .firm-locs-cell { justify-content: flex-start; gap: 4px; }
.front-look .firm-row.ro > :is(.firm-who, .firm-sef) { grid-column: span 2; }
.front-look .firm-none > .dl-words { grid-column: span 4; }
.front-look .firm-none.ro > .dl-words { grid-column: 1 / -1; }

/* ---------- the devices ---------- */
/* a table whose rows are rows of the five columns: a restaurant its name and how many, «Подключить» the last column; a
   device its name and role, its line, then its keys */
.front-look .dev-table { display: block; width: 100%; margin: 0; border: 0; border-collapse: separate; border-spacing: 0; }
.front-look .dev-table > colgroup { display: none; }
.front-look .dev-table > tbody { display: block; border: 0; }
.front-look .dev-table tbody.dev-group + tbody.dev-group { border-top: 0; }
.front-look .dev-table tr { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.front-look .dev-table tr > :is(th, td) { display: flex; min-width: 0; min-height: 64px; padding: 0; border: 0; background: var(--surface); box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); text-align: left; }
.front-look .dev-table tr > :is(th, td):first-child { box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .dev-table [colspan="2"] { grid-column: span 2; }
.front-look .dev-table [colspan="3"] { grid-column: span 3; }
.front-look .dev-table [colspan="4"] { grid-column: span 4; }
.front-look .dev-table [colspan="5"] { grid-column: 1 / -1; }
/* a restaurant's row: its name, how many after it; the second surface sets it apart from its devices */
.front-look .dev-table tr.dev-loc > th { align-items: center; gap: 0; padding: var(--sp-2) var(--px); background: var(--surface-2); color: var(--ink-2); font-size: var(--fs-sm); font-weight: var(--fw-regular); letter-spacing: 0; text-transform: none; }
.front-look .dev-table tr.dev-loc > th .dev-loc-name { margin-right: 6px; color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.front-look .dev-loc-n::before { content: '· '; }
.front-look .dev-table tr.dev-loc.has > :is(th, td) { padding-bottom: 0; border: 0; }
.front-look .dev-table tr.dev-loc.has > th { padding-bottom: var(--sp-2); }
/* a device: its name, under it its role (and «это устройство» in the accent's colour); its line */
.front-look .dev-table td.dev-who { flex-direction: column; justify-content: center; gap: 2px; padding: var(--sp-2) var(--px); }
.front-look .dev-table td.dev-who > .strong { overflow: hidden; font-weight: var(--fw-regular); line-height: 20px; white-space: nowrap; text-overflow: ellipsis; }
.front-look .dev-table td.dev-who > .strong.muted { color: var(--ink-2); }
.dev-sub { overflow: hidden; color: var(--ink-2); font-size: var(--fs-sm); line-height: 18px; white-space: nowrap; text-overflow: ellipsis; }
.front-look .dev-sub > .dev-me { margin: 0; color: var(--accent); font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.front-look .dev-table td.dev-line { align-items: center; padding: var(--sp-2) var(--px); color: var(--ink-2); font-size: var(--fs-sm); }
.front-look .dev-table td.dev-line > .dev-st { min-width: 0; white-space: normal; line-height: 18px; }
.front-look .dev-table td.dev-line .dev-dot { flex: none; }
.front-look .dev-table tr.dev-row.off td.dev-who > .strong { color: var(--ink-3); }
/* the keys: whole cells */
.front-look .dev-table td.dev-k { align-items: stretch; }
/* (a key fills its cell: the cell's lines its own — the cell's under it would not show) */
.front-look .dev-table td.dev-k > .dt-key { box-shadow: inherit; }
.front-look .dev-table td.dev-k > .dt-key { flex: 1 1 auto; min-width: 0; padding: var(--sp-1) var(--sp-3); white-space: normal; text-align: center; line-height: 18px; }
.front-look .dev-table td.dev-k > .dt-key.bad { color: var(--bad); }
.front-look .dev-table td.dev-k > .dt-key:disabled { color: var(--ink-3); cursor: default; }
.front-look .dev-table td.dev-k > .dt-key:disabled:hover { background: var(--surface); }
.front-look .dev-table tr.dev-loc > td.dev-k > .dt-key { background: var(--surface-2); }
.front-look .dev-table tr.dev-loc > td.dev-k > .dt-key:hover { background: var(--surface-3); }
.front-look .dev-err > .bad-txt { color: var(--bad); }

/* ---------- the subscription ---------- */
.front-look .sub-card .pg-count.dl-st.ok { color: var(--ok); }
.front-look .sub-card .rc-bill :is(td, th):first-child { padding-left: var(--px); }
.front-look .sub-card .rc-bill :is(td, th):last-child { padding-right: var(--px); }

/* ---------- the tabs' lists: their columns on the five, under the tabs' lines ---------- */
@media (min-width: 701px) {
  .front-look .tbl-data.set-cols { width: 100%; min-width: 0; table-layout: fixed; }
  .front-look .set-cols th { width: 20%; }
  .front-look .set-cols th.c2 { width: 40%; }
  .front-look .set-cols :is(th, td) { overflow: hidden; text-overflow: ellipsis; }
  .front-look .set-cols td.num, .front-look .set-cols th.num { text-align: left; }
}
/* a restaurant over its places: a row of the second surface, as the devices' */
.front-look .set-cols tr.set-grp > th { padding: var(--sp-2) var(--px); background: var(--surface-2); color: var(--ink); font-size: var(--fs-md); font-weight: var(--fw-semibold); letter-spacing: 0; text-align: left; text-transform: none; box-shadow: inset 0 -1px 0 0 var(--zl); }
/* the stations' row under the list: its cells draw the line over them (the list's last line is theirs) */
.front-look .pg-block:has(> .set-keys) .tbl-data > tbody > tr:last-child > td { border-bottom: 0; }
.front-look .set-keys > * { box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.front-look .set-keys > .dt-key { box-shadow: inset 1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
/* «свой», «изменён»: quiet words after the name, no pill */
.front-look .pay-table .st { display: inline; height: auto; margin-left: var(--sp-2); padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--ink-2); font-size: var(--fs-sm); font-weight: var(--fw-regular); line-height: inherit; }
.front-look .pay-table .st.st-draft { color: var(--accent); }
.front-look .pay-table tr.row-hidden .strong { color: var(--ink-3); }
.front-look .pg-block > .set-note { margin: 0; }

/* ---------- «Профиль» ---------- */
/* who: their letter, name, role and e-mail three columns (four without «Выйти»); the keys a column each */
.front-look .opf-who > .profile-who { grid-column: span 3; flex-direction: row; align-items: center; justify-content: flex-start; gap: var(--sp-3); min-height: 80px; }
.front-look .opf-who.one > .profile-who { grid-column: span 4; }
.front-look .opf-who .profile-ava { flex: none; width: 48px; height: 48px; font-size: var(--fs-lg); }
.front-look .opf-who .profile-t b { overflow: hidden; font-size: var(--fs-md); line-height: 22px; text-overflow: ellipsis; white-space: nowrap; }
.front-look .opf-who .profile-t .dl-cell-h { overflow-wrap: anywhere; }
/* (the keys' names under their icons: «Сменить устройство», «Заполнить примером» on one line in a column) */
.front-look :is(.opf-who, .demo-keys) > .dt-key { flex-direction: column; gap: 4px; padding: var(--sp-1) var(--sp-2); }
/* a setting: its name and what it is for three columns, the segmented control two — from edge to edge of them */
.front-look .opf-row > .opf-l { grid-column: span 3; justify-content: center; gap: 2px; }
.front-look .opf-row > .opf-seg { grid-column: span 2; justify-content: center; }
/* (13 November) a key in a setting's row («Уведомления» → «Настроить»): the control's two columns */
.front-look .opf-row > .dt-key { grid-column: span 2; flex-direction: row; gap: 6px; }
:root .front-look .opf-seg > .seg.cs-tabs { display: grid; align-self: stretch; grid-auto-columns: minmax(0, 1fr); }
:root .front-look .opf-seg > .seg.cs-tabs > .seg-btn { min-width: 0; padding: 0 var(--sp-2); }

/* ---------- the sheets ---------- */
/* (as every sheet's: the fields rows from edge to edge, the lists to tick and the switches rows of the iPhone's
   settings, the main key in the foot) */
/* a venue's integrations: rows with their switches; what the month grows by a quiet line, no box */
.front-look .sheet-body > .venue-mods { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; border: 0; }
.front-look .venue-mods .check-row > .switch { flex: none; margin-left: auto; }
.front-look .sheet-body > .venue-cost { margin: 0; padding: 0; border-radius: 0; background: none; color: var(--ink-2); }
.front-look .sheet-body > .venue-cost b { color: var(--ink); }
/* what follows a name in a row to tick: its other firms, a module's price */
.check-also { color: var(--ink-2); font-size: var(--fs-sm); font-weight: var(--fw-regular); }
/* the code: a row of its own — its digits large at the left, how long it lives at the right; the steps a list under it */
.front-look .sheet-body > .pair-code { flex-direction: row; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); margin: 0 calc(-1 * var(--edge)); padding: var(--sp-4) var(--edge); border-radius: 0; background: var(--surface); box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.front-look .sheet-body > .field + .pair-code { margin-top: calc(1px - var(--gap)); }
.front-look .pair-code > .pair-digits { color: var(--ink); font-size: 34px; line-height: 40px; letter-spacing: 0.06em; }
.front-look .pair-code > .pair-left { font-variant-numeric: tabular-nums; }
.front-look .sheet-body > .pair-steps { margin: 0; padding-left: 1.3em; color: var(--ink-2); line-height: 22px; }
.front-look .sheet-body > .pair-steps > li + li { margin-top: var(--sp-1); }
.front-look .sheet-body > .pair-done { margin: 0; padding: 0; border-radius: 0; background: none; }
.front-look .sheet-body > p.pair-done { display: block; }
/* SEF: the state a line; the steps a list; the prototype's note a quiet line, no box */
.front-look .sheet-body > .sef-state { margin: 0; }
.front-look .sheet-body > .sef-steps { gap: var(--sp-1); line-height: 22px; }
.front-look .sheet-body > .sef-note { display: block; padding: 0; border-radius: 0; background: none; color: var(--ink-2); }
.front-look .sef-answer > .switch { flex: none; margin-left: auto; }
.front-look .sheet-body > .form-acts.sef-acts { margin-top: 0; }
.front-look .sef-acts > .form-act > svg { color: var(--ink-2); }

/* ---------- a narrower computer ---------- */
@media (min-width: 701px) and (max-width: 1239px) {
  .front-look .dev-table td.dev-k > .dt-key { flex-direction: column; gap: 4px; padding: var(--sp-1) var(--sp-2); font-size: var(--fs-sm); }
  .front-look :is(.loc-card, .firm-row, .firm-none, .demo-keys, .opf-who, .set-keys) > .dt-key { flex-direction: column; gap: 4px; padding: var(--sp-1) var(--sp-2); font-size: var(--fs-sm); }
}

/* ---------- a phone ---------- */
@media (max-width: 700px) {
  /* a restaurant: its name a row, then its own name, its floors, its devices — the iPhone's rows: the name at the left,
     the value at the right */
  .front-look .loc-card.dl-row > .loc-who { grid-column: 1 / -1; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 52px; padding: var(--sp-2) var(--sx, 16px); background: var(--surface-2); box-shadow: inset 0 -1px 0 0 var(--zl); }
  .front-look .loc-card > .loc-dl > :is(div, .w2) { grid-column: 1 / -1; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 52px; padding: var(--sp-2) var(--sx, 16px); box-shadow: inset 0 -1px 0 0 var(--zl); }
  .front-look .loc-card > .loc-dl dt { flex: none; color: var(--ink); font-size: var(--fs-md); line-height: 22px; }
  .front-look .loc-card > .loc-dl dd { min-width: 0; color: var(--ink-2); text-align: right; }
  .front-look .loc-card > .dl-form > .dt-field { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: var(--sp-3); min-height: 52px; padding: 0 var(--sx, 16px); box-shadow: inset 0 -1px 0 0 var(--zl); }
  .front-look .loc-card > .dl-form > .dt-field > .dt-field-l { flex: none; color: var(--ink); font-size: var(--fs-md); line-height: 22px; }
  .front-look .loc-card > .dl-form > .dt-field > input { flex: 1 1 auto; height: 100%; min-height: 50px; color: var(--ink-2); text-align: right; }
  .front-look .loc-card > .dl-form > .dt-field:focus-within > input { color: var(--ink); }
  .front-look .loc-card.dl-row > .dt-key { grid-column: 1 / -1; flex-direction: row; aspect-ratio: auto; min-height: 52px; font-size: var(--fs-md); box-shadow: inset 0 -1px 0 0 var(--zl); }
  /* the working day, the currency, the norms: rows — the choice's name at the left, the choice at the right; the
     segmented control under its name */
  .front-look :is(.day-keys, .cur-keys) > .dt-pick { grid-column: 1 / -1; aspect-ratio: auto; min-height: 52px; box-shadow: inset 0 -1px 0 0 var(--zl); }
  .front-look :is(.day-keys, .cur-keys) > .dt-pick > .dt-pick-l { align-self: center; justify-self: start; margin: 0 0 0 var(--sx, 16px); color: var(--ink); font-size: var(--fs-md); line-height: 22px; }
  :root .front-look :is(.day-keys, .cur-keys) > .dt-pick > .select { align-items: center; justify-content: flex-end; min-height: 52px; padding: 0 var(--sx, 16px) 0 50%; color: var(--ink-2); }
  :root .front-look :is(.day-keys, .cur-keys) > .dt-pick > .select .select-value { flex: 0 1 auto; text-align: right; }
  .front-look .dt-keys.dl-row > .dl-cell.dl-words { grid-column: 1 / -1; display: block; min-height: 0; padding: var(--sp-3) var(--sx, 16px); }
  .front-look .dt-keys.cur-keys > .dl-cell.dl-mode { flex-direction: column; align-items: flex-start; gap: var(--sp-2); padding-block: var(--sp-3); }
  .front-look .dt-keys.cur-keys > .dl-cell.dl-mode > .dl-cell-l { color: var(--ink); font-size: var(--fs-md); line-height: 22px; }
  .front-look .fc-norm-keys > .dl-form > .dt-field { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: var(--sp-3); aspect-ratio: auto; min-height: 52px; padding: 0 var(--sx, 16px); box-shadow: inset 0 -1px 0 0 var(--zl); }
  .front-look .fc-norm-keys > .dl-form > .dt-field > .dt-field-l { flex: 1 1 auto; color: var(--ink); font-size: var(--fs-md); line-height: 22px; white-space: normal; }
  .front-look .fc-norm-keys > .dl-form > .dt-field > input { flex: none; width: 64px; height: 50px; color: var(--ink-2); text-align: right; }
  /* the firms: a firm's cells rows, its two keys a row of their own — «Изменить» a third, the SEF's two */
  .front-look .firm-row.dl-row > :is(.firm-who, .firm-locs-cell, .firm-sef) { grid-column: 1 / -1; }
  .front-look .firm-row.dl-row > .firm-who { flex-direction: column; align-items: flex-start; min-height: 52px; padding: var(--sp-2) var(--sx, 16px); background: var(--surface-2); }
  .front-look .firm-row.dl-row > :is(.firm-locs-cell, .firm-sef) { flex-direction: column; align-items: flex-start; gap: 2px; }
  .front-look .firm-row.dl-row > .dt-key { grid-column: span 1; aspect-ratio: auto; min-height: 52px; flex-direction: row; font-size: var(--fs-md); }
  .front-look .firm-row.dl-row > .dt-key + .dt-key { grid-column: span 2; box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
  .front-look .firm-none.dl-row > :is(.dl-words, .dt-key) { grid-column: 1 / -1; }
  .front-look .firm-none > .dt-key { flex-direction: row; aspect-ratio: auto; min-height: 52px; font-size: var(--fs-md); }
  /* the devices: a restaurant's row its name two columns, «Подключить» the third; a device its name and line a row,
     its keys a row under it — a third each, or the last one on to the row's end */
  .front-look .dev-table tr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* (the phone's older rules of this list — a flex row with a gap, its cells placed by number — out) */
  .front-look .dev-table tr, .front-look .dev-table tr:is(.dev-loc, .dev-row) { display: grid; gap: 0; padding: 0; align-items: stretch; }
  .front-look .dev-table tr:is(.dev-loc, .dev-row) > :is(th, td) { grid-row: auto; text-align: left; }
  .front-look .dev-table tr > :is(th, td) { min-height: 52px; }
  .front-look .dev-table tr.dev-loc > th { grid-column: span 2; flex-direction: column; align-items: flex-start; justify-content: center; padding-inline: var(--sx, 16px); }
  .front-look .dev-table tr.dev-loc > th[colspan="5"] { grid-column: 1 / -1; }
  .front-look .dev-loc-n::before { content: none; }
  .front-look .dev-table tr.dev-row > td.dev-who { grid-column: span 2; padding-inline: var(--sx, 16px); }
  .front-look .dev-table tr.dev-row > td.dev-line { grid-column: span 1; padding-inline: var(--sp-3) var(--sx, 16px); }
  .front-look .dev-table tr.dev-row > td.dev-k { grid-column: span 1; }
  .front-look .dev-table tr.dev-row > td.dev-k:nth-child(3) { box-shadow: inset 0 -1px 0 0 var(--zl); }
  .front-look .dev-table tr.dev-row > td.dev-k:nth-child(3):nth-last-child(2) + td.dev-k { grid-column: span 2; }
  .front-look .dev-table tr.dev-row > td.dev-k:nth-child(3):last-child { grid-column: 1 / -1; }
  .front-look .dev-table td.dev-k > .dt-key { flex-direction: row; gap: 6px; padding: 0 var(--sp-2); font-size: var(--fs-sm); }
  /* the demo's data: its line a row, its two keys a row — the filling two columns, the clearing one */
  .front-look .demo-keys.dl-row > .dt-key { aspect-ratio: auto; min-height: 56px; flex-direction: column; gap: 4px; padding: var(--sp-1) var(--sp-2); font-size: var(--fs-sm); }
  .front-look .demo-keys.dl-row > .dt-key:not(.bad) { grid-column: span 2; box-shadow: inset 0 -1px 0 0 var(--zl); }
  .front-look .dt-keys.demo-keys > .dt-key.bad { order: 0; grid-row: auto; grid-column: span 1; box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
  /* the stations' key: a row under its line (the list's rows draw their own lines on a phone: the line under each) */
  .front-look .set-keys.dl-row > * { box-shadow: inset 0 -1px 0 0 var(--zl); }
  .front-look .set-keys.dl-row > .dt-key { grid-column: 1 / -1; flex-direction: row; aspect-ratio: auto; min-height: 52px; font-size: var(--fs-md); }
  /* a restaurant over its places: its band from edge to edge */
  .front-look .tbl-data.list-rows tr.set-grp { min-height: 0; padding: 0; background: var(--surface-2); }
  .front-look .tbl-data.list-rows tr.set-grp > th { display: block; flex: 0 0 100%; padding: var(--sp-2) var(--sx, 16px); box-shadow: inset 0 -1px 0 0 var(--zl); }
  /* «Профиль»: who a row, the keys a row under it — «Сменить устройство» two columns, «Выйти» one; a setting its name a
     column, the control two */
  .front-look .opf-who.dl-row > .profile-who { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-start; min-height: 72px; padding: var(--sp-2) var(--sx, 16px); }
  .front-look .opf-who.dl-row > .dt-key { grid-column: span 2; flex-direction: row; aspect-ratio: auto; min-height: 52px; font-size: var(--fs-md); }
  .front-look .opf-who.dl-row > .dt-key + .dt-key { grid-column: span 1; box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
  .front-look .opf-who.one.dl-row > .dt-key { grid-column: 1 / -1; }
  .front-look .opf-row.dl-row > .opf-l { grid-column: span 1; flex-direction: column; align-items: flex-start; justify-content: center; padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sx, 16px); }
  .front-look .opf-row.dl-row > .opf-l > .dl-cell-h { display: none; }
  /* (13 November, 12:31, the owner of «Профиль» on his iPhone: «Там не хватает линий») the line between a setting's name
     and its control, as between any two cells; a key («Уведомления» → «Настроить») the control's two columns */
  .front-look .opf-row.dl-row > .opf-seg { grid-column: span 2; flex-direction: column; align-items: stretch; justify-content: center; padding: var(--sp-2) var(--sx, 16px) var(--sp-2) var(--sp-2); box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
  .front-look .opf-row.dl-row > .dt-key { grid-column: span 2; flex-direction: row; aspect-ratio: auto; min-height: 52px; font-size: var(--fs-md); box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
}

/* ---------- «Рестораны» — the readiness table (12 November, 03:04, the owner: «Рестораны B») ----------
   One line over the table says what is left; a restaurant a row of the five — its name and «готово N из M», its floors
   and tables, its devices, its store, its address (the prototype: its name on the devices) —, what is missing an amber
   word with its chevron that leads there; the company's settings a row of four cells and «Компания» under the devices.
   A phone: a restaurant its name on the second surface, then the iPhone's rows — the name at the left, the value or what
   to do at the right. */
.front-look p.loc-sum { margin: 0; padding: var(--sp-3) var(--px); color: var(--ink); font-size: var(--fs-md); line-height: 22px; box-shadow: inset 0 -1px 0 0 var(--zl); }
.loc-sum > b { font-weight: var(--fw-semibold); }
.loc-sum > span { color: var(--ink-2); }
.front-look .loc-table { display: flex; flex-direction: column; }
.front-look :is(.loc-th, .loc-table > .loc-card) { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.front-look .loc-th > span { display: flex; align-items: center; min-width: 0; min-height: 48px; padding: 0 var(--px); color: var(--ink-2); font-size: var(--fs-sm); line-height: 18px; box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.front-look .loc-th > span:first-child { box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .loc-table > .loc-card > .loc-who { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; min-height: 72px; padding: var(--sp-2) 44px var(--sp-2) var(--px); box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .loc-sub { color: var(--ink-2); font-size: var(--fs-sm); line-height: 18px; }
.front-look .loc-table > .loc-card > .loc-dl > div { display: flex; flex-direction: column; justify-content: center; padding: var(--sp-2) var(--px); }
.front-look .loc-table .loc-dl dt { display: none; }
.front-look .loc-table .loc-dl dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--sp-2); color: var(--ink); font-size: var(--fs-sm); line-height: 20px; overflow-wrap: anywhere; }
.loc-todo { display: inline-flex; align-items: center; gap: 2px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--warn); font: inherit; font-size: var(--fs-sm); font-weight: var(--fw-semibold); line-height: 20px; cursor: pointer; }
.loc-todo:hover { text-decoration: underline; }
.loc-todo:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.loc-todo.quiet { color: var(--accent); font-weight: var(--fw-medium); }
.front-look .loc-who > .loc-del { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); }
/* (the prototype) the name on the devices: the field its whole cell */
:root .front-look .loc-table > .loc-card > .loc-dl > .loc-own-cell { padding: 0; }
.front-look .loc-own-cell > .dl-form { display: flex; flex: 1 1 auto; min-width: 0; height: 100%; }
.front-look .loc-own-cell .dt-field { display: flex; flex: 1 1 auto; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; min-height: 72px; padding: var(--sp-2) var(--px); cursor: text; }
.front-look .loc-own-cell .dt-field-l { display: none; }
.front-look .loc-own-cell .dt-field > input { min-width: 0; height: 24px; padding: 0; border: 0; border-radius: 0; background: none; color: var(--ink); font: inherit; font-size: var(--fs-sm); outline: 0; }
:root .front-look .loc-own-cell .dt-field { background: transparent; box-shadow: none; }
:root .front-look .loc-own-cell .dt-field:focus-within { box-shadow: inset 0 -2px 0 0 var(--accent); }
/* the company's row: four cells and the key to the rest */
.front-look .dt-keys.loc-co-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.loc-co-cell { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; min-height: 64px; padding: var(--sp-2) var(--px); border: 0; border-radius: 0; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.loc-co-cell:hover { background: var(--surface-2); }
.loc-co-cell:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.loc-co-cell > .dl-cell-l { color: var(--ink-2); font-size: var(--fs-sm); line-height: 18px; }
.loc-co-cell > b { overflow: hidden; font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 20px; white-space: nowrap; text-overflow: ellipsis; }
/* the store's products, what is below the minimum under them */
.front-look .loc-table .loc-dl dd.loc-two { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 0; }
@media (max-width: 700px) {
  :root .front-look .loc-th { display: none; }
  .front-look .loc-table .loc-dl dd.loc-two { align-items: flex-end; }
  .front-look .loc-table > .loc-card { grid-template-columns: minmax(0, 1fr); }
  .front-look .loc-table > .loc-card > .loc-who { min-height: 56px; padding: var(--sp-2) 52px var(--sp-2) var(--sx, 16px); background: var(--surface-2); }
  .front-look .loc-table > .loc-card > .loc-dl > div { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 52px; padding: var(--sp-2) var(--sx, 16px); box-shadow: inset 0 -1px 0 0 var(--zl); }
  .front-look .loc-table .loc-dl dt { display: block; flex: none; color: var(--ink); font-size: var(--fs-md); line-height: 22px; }
  .front-look .loc-table .loc-dl dd { justify-content: flex-end; min-width: 0; color: var(--ink-2); text-align: right; }
  .front-look .loc-own-cell .dt-field { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 52px; padding: 0 var(--sx, 16px); }
  .front-look .loc-own-cell .dt-field-l { display: block; flex: none; color: var(--ink); font-size: var(--fs-md); line-height: 22px; }
  .front-look .loc-own-cell .dt-field > input { flex: 1 1 auto; color: var(--ink-2); font-size: var(--fs-md); text-align: right; }
  .front-look .dt-keys.loc-co-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :root .front-look .dt-keys.loc-co-row > * { aspect-ratio: auto; min-height: 64px; }
  :root .front-look .dt-keys.loc-co-row > .loc-co-cell { padding: var(--sp-2) var(--sx, 16px); }
  :root .front-look .dt-keys.loc-co-row > .loc-co-cell:nth-child(odd) { box-shadow: inset 0 -1px 0 0 var(--zl); }
  :root .front-look .dt-keys.loc-co-row > .dt-key { grid-column: 1 / -1; flex-direction: row; min-height: 52px; font-size: var(--fs-md); box-shadow: inset 0 -1px 0 0 var(--zl); }
}

/* (12 November, «Изменить зал» on «Места реализации») one restaurant: the words three columns, the key two; several: the
   words across, a key each */
.front-look .places-keys:not(.many) > .dt-key { grid-column: span 2; }
@media (max-width: 700px) { .front-look .places-keys:not(.many) > .dt-key { grid-column: 1 / -1; } }
/* the iPad's plan editor over the back office: the whole window, above the sidebar and the sheets */
.he-office { position: fixed; inset: 0; z-index: 90; display: flex; background: var(--bg); }
.he-office > .app.ipad { flex: 1 1 auto; min-width: 0; height: 100%; }
:root.he-open, :root.he-open body { overflow: hidden; }
/* a phone: the editor's header two rows — «‹» and «Изменить зал», then the halls, «Новый зал» and «Сохранить» */
@media (max-width: 700px) {
  .he-office .ipad .ph-head { grid-template-columns: auto minmax(0, 1fr); row-gap: var(--sp-2); padding-bottom: var(--sp-3); }
  .he-office .ipad .ph-left { padding-left: var(--sp-4); }
  .he-office .ipad .ph-right { grid-column: 1 / -1; flex-wrap: wrap; justify-content: flex-start; gap: var(--sp-2); padding: 0 var(--sp-4); }
  .he-office .ipad .ph-right :is(.he-halls, .he-actions) { flex-wrap: wrap; }
}
/* several restaurants: «Изменить зал» an accent word at the right of each one's name; a restaurant's name under the one
   before it with a line between them (the last row of a restaurant draws none) */
.front-look .set-cols tr.set-grp > th .set-grp-in { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-width: 0; }
.front-look .set-grp-key { position: relative; display: inline-flex; flex: none; align-items: center; gap: 6px; min-height: 32px; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: var(--fs-sm); font-weight: var(--fw-semibold); cursor: pointer; }
.front-look .set-grp-key:hover { text-decoration: underline; }
@media (min-width: 701px) { .front-look .set-cols tbody + tbody > tr.set-grp > th { box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); } }
/* the accent word's touch: the whole height of the name's row (44 px on a phone) without making the row taller */
.front-look .set-grp-key::after { content: ''; position: absolute; inset: -6px calc(-1 * var(--px)) -6px -8px; }
/* a phone: the name's row 44 px with the key in its middle (the head cells' 44 px held it, the key's 32 px overflowed) */
@media (max-width: 700px) { .front-look .tbl-data.list-rows tr.set-grp > th { height: auto; padding-top: 6px; padding-bottom: 6px; } }
/* (0.107) who signed in last and since when it is connected: a line of its own, wrapped on a phone rather than cut */
.front-look .dev-table td.dev-who > .dev-more { white-space: normal; }

/* ---------- the lines between rows, on every page (11 November, 14:18) ----------
   The owner, going through the pages in the dark theme: «Здесь у нас отсутствует линия горизонтальная опять. Я, честно
   говоря, каждый раз за тобой ходить и говорить про горизонтальные линии выглядит как бред, с учётом того, какой ты
   умный». A page is rows one on another and a line between every two of them; test/rules-audit.mjs (no-line) reads them
   off the screen in both themes — a shade that only changes (a table's head on the page's ground) is not a line. */

/* a block's head and what comes under it: the head draws only the line over itself, so the note and the table's head
   under it draw the one between them */
.front-look .pg-block > .pg-head + :is(.dp-note, .empty) { box-shadow: inset 0 1px 0 0 var(--zl); }
.front-look .pg-block > :is(.pg-head, .dp-note) + .table-wrap > .tbl-data > thead > tr:first-child > th,
.front-look .pg-block > :is(.pg-head, .dp-note) + .tbl-data > thead > tr:first-child > th,
.front-look :is(.pg-nums, .kpi-row) + .pg-block > .table-wrap:first-child > .tbl-data > thead > tr:first-child > th { box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
/* (12 November, 01:58, the owner: «Частая проблема — вторые горизонтальные линии расходятся. Почти во всех окнах») the
   page's first row stands under its head as the sidebar's restaurant row does (48 high), and the line under it is that
   row's line: the first block's head draws it at its own foot (y 111), not what is under it at its top (y 112) — so the
   note, the empty block or the table's head under the first block's head draw no line over themselves */
.front-look .of-page > .of-head + .pg-block > .pg-head:first-child { box-shadow: inset 0 1px 0 0 var(--line-2), inset 0 -1px 0 0 var(--zl); }
.front-look .of-page > .of-head + .pg-block > .pg-head:first-child > .pg-hkey { box-shadow: inset 1px 0 0 0 var(--zl), inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
.front-look .of-page > .of-head + .pg-block > .pg-head:first-child + :is(.dp-note, .empty) { box-shadow: none; }
/* («Деньги»' rows draw the line over themselves: the first one under the first block's head none — the head's is it) */
.front-look .of-page > .of-head + .pg-block > .pg-head:first-child + .tg-row { box-shadow: none; }
.front-look .of-page > .of-head + .pg-block > .pg-head:first-child + .table-wrap > .tbl-data > thead > tr:first-child > th,
.front-look .of-page > .of-head + .pg-block > .pg-head:first-child + .tbl-data > thead > tr:first-child > th { box-shadow: inset 0 -1px 0 0 var(--zl); }
/* (12 November, 02:07, the owner: «Кое-где встречаются двойные линии») the staff's tiles under the search's row: the row's
   line under it is the one between them — the tiles draw none over themselves */
.front-look .dt-keys + .pg-block > .pp-tiles:first-child { box-shadow: none; }

/* («Сколько стоит бизнес»: the keys' row and the table close themselves with their own lines — the note under each draws
   none over itself, not a second line a pixel under theirs) */
.front-look .mb-block > :is(.dt-keys, .worth-table, .table-wrap) + .tg-row { box-shadow: none; }

/* («Подключения» → Telegram: the steps' numbers inside the block's padding, as the words over them — not at its edge) */
.front-look .mb-block > .tg-steps { margin: 0; padding: var(--sp-2) var(--px) var(--sp-3) calc(var(--px) + 1.3em); }

/* a page closes with a line under its last row (a list's last row has its own: one pixel, drawn twice, is one line) —
   «Деньги»' blocks close themselves; a page that ends with tiles — their short last row leaves the ground after it —
   keeps the tiles' own lines */
.front-look:not(.mn-app) .of-page:not(:has(> :last-child :is(.pp-tiles, .dir-grid, .rg-grid, .wg-board)))::after { content: ''; flex: none; height: 0; margin-top: -1px; border-top: 1px solid var(--zl); }
/* (14 November, 04:38, the owner on «Консоль RUVO»: «Двойная линия») a block of «Деньги»' kind (.mb-block) on another page
   closes with its line outside it — under the page's own closing line it was a second one: the page's line alone. And a
   row of figures closes with its own line: the block's head right under it draws none over itself */
.front-look:not(.mn-app) .of-page:not(:has(> :last-child :is(.pp-tiles, .dir-grid, .rg-grid, .wg-board))) > .mb-block:last-child { box-shadow: none; }
.front-look .of-page > .kpi-row:not([data-tail]) + .pg-block > .pg-head:first-child { box-shadow: none; }
.front-look .of-page > .kpi-row:not([data-tail]) + .pg-block > .pg-head:first-child > .pg-hkey:not(.acc) { box-shadow: inset 1px 0 0 0 var(--zl); }

/* (the owner on «Скидки и акции»: «Четвёрка к чему относится? Она ничем не выделена») how many a list has stands by its
   name, quiet — not at the head's far end */
.pg-head h2 > .pg-n { margin-left: var(--sp-2); color: var(--ink-3); font-weight: var(--fw-regular); font-variant-numeric: tabular-nums; }

/* (the owner: «вкл идёт вот на этом уровне горизонтальном. Вот здесь вкл идёт на другом уровне. То есть столбцы разных
   таблиц должны быть на одном уровне») the discounts' two lists on the five columns: the name one, what it gives two,
   when — or who confirms — one, «Вкл.» the last */
@media (min-width: 701px) {
  .front-look .disc-table { table-layout: fixed; width: 100%; }
  .front-look .disc-table > colgroup > .dc-1 { width: 20%; }
  .front-look .disc-table > colgroup > .dc-2 { width: 40%; }
  .front-look .disc-table > colgroup > .dc-3 { width: 20%; }
  .front-look .disc-table > colgroup > .dc-4 { width: 20%; }
  .front-look .disc-table td { overflow: hidden; text-overflow: ellipsis; }
  .front-look .disc-table .title-row { flex-wrap: wrap; row-gap: 0; }
}

/* a document's lines and «+ Добавить продукт» under them: the bar draws the line over it too */
.front-look :is(.table-wrap, .tbl-data) + .lines-bar { box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
/* the recipes' list (Техкарты): a line under each dish and under each folder's name */
.front-look .tech-list .tl-row, .front-look .tech-list .tl-cat { box-shadow: inset 0 -1px 0 0 var(--zl); }
/* (15 November, 03:14, the owner on «Техкарты»: «Тут названия категорий надо выделять (и внутри текст выравнивать)») a
   folder's name a band of its own between the dishes' rows: the second shade, its words 14 semibold in the ink, in the
   middle of the band's height (they stood on its bottom line) */
.front-look .tech-list .tl-cat { display: flex; align-items: center; min-height: 40px; padding: 0 var(--sp-4); background: var(--surface-2); color: var(--ink); font-weight: var(--fw-semibold); line-height: 18px; }
@media (max-width: 700px) {
  /* a phone's list has no head of its columns: its first row draws the line under the block's head */
  .front-look .pg-block > :is(.pg-head, .dp-note) + .table-wrap > .tbl-data.list-rows > tbody:first-of-type > tr:first-child { box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
  /* (12 November, the visual audit) …but the page's first block draws its head's line itself (the line under the
     sidebar's restaurant row): its list's first row draws none over it — two lines had touched («Скидки и акции») */
  .front-look .of-head + .pg-block > .pg-head + .table-wrap > .tbl-data.list-rows > tbody:first-of-type > tr:first-child { box-shadow: inset 0 -1px 0 0 var(--zl); }
  /* (the same audit) the page's choice under its head on a phone (a row of its own, its line under it) and the figures'
     squares after it: their first row draws no line over itself («Кассовые смены») */
  .front-look .of-head:has(> .of-actions > .select) + .pg-nums > [data-r0] { box-shadow: inset 1px 0 0 0 var(--line-2), var(--rim, 0 0 #0000); }
  .front-look .of-head:has(> .of-actions > .select) + .pg-nums > [data-r0][data-rf] { box-shadow: var(--rim, 0 0 #0000); }
}

/* ---------- the popups, one order for all of them (11 November, 14:18) ----------
   The owner on «Приход по фото»: «кнопка, которая не отцентрована по левому краю. Здесь отступ до линии один, от линии
   отступ другой. Почему-то вот этот текст идёт наполовину только блока … Здесь линия, пустое место. Вот здесь вот эта
   кнопка откуда?»; on «Списание»: «Вот эти две линии зачем? Отступы все разные. Кнопка идёт с левого края … здесь легче
   использовать пилюлю … для сравнения тебе креста такой каши нету, всё чётко … надо исправить и пробежаться точно по всем
   попапам». A sheet (a window rounded at 16):
   - its head — the name, what it is of — as far from the line under it (12) as the words under that line are from it;
   - its rows from edge to edge (fields, switches, a table, a list) start right on the head's line and end right on the
     foot's: one line there, never two with a strip between;
   - its words from the head's left edge, the whole width;
   - its keys are pills (as the cross), from that same edge. */
.front-look .sheet-head { flex: none; min-height: 0; padding: var(--sp-3) var(--sp-3) var(--sp-3) var(--sx); }
.front-look .sheet-head .sheet-titles { gap: 2px; padding: 0; }
.front-look .sheet-head > .icon-btn { margin-block: -8px; }
.front-look .sheet-body { --sheet-top: var(--sp-3); padding-top: var(--sheet-top); padding-bottom: var(--sheet-top); }
/* (13 November, 01:38, the owner's phone, «Топ блюд»: «Узко в первом пункте по высоте») a body of no padding of its own
   (flush) pulls nothing up: its first row had gone 12 under the head — the first dish lower than the others —, its last
   12 past the sheet's end */
.front-look .sheet-body.flush { --sheet-top: 0px; }
/* rows from edge to edge at the top and at the bottom of a sheet */
.front-look .sheet-body > :first-child:is(.form-row, .mn-form, .day-row, .cur-row, .fc-set, .loc-name, .check-row, .lines-bar, .tbl-data, .table-wrap, .chip-row.grp-chips, .form-acts, .tech-link, .sef-sheet, .scan-pick, .sp-group),
.front-look .sheet-body > .field:first-child:has(> :is(input, textarea, .select, .site-slug, .site-color, .chip-row, .toggle-row, .seg, .stepper, .field-static, .dish-photo)) { margin-top: calc(-1 * var(--sheet-top)); }
.front-look .sheet-body > :last-child:is(.form-row, .mn-form, .day-row, .cur-row, .fc-set, .loc-name, .check-row, .lines-bar, .tbl-data, .table-wrap, .form-acts, .tech-link, .sp-group),
.front-look .sheet-body > .field:last-child:has(> :is(input, textarea, .select, .site-slug, .site-color, .chip-row, .toggle-row, .seg, .stepper, .field-static, .dish-photo)) { margin-bottom: calc(-1 * var(--sheet-top)); }
/* (12 November, 02:44, the owner on «Новый гость»: «Две линии») the switches' rows straight under the fields — the fields'
   last line their top, no strip — and, at the sheet's end, ending on its foot's line: one line there, not two */
.front-look .sheet-body > .field + .check-list { margin-top: calc(-1 * var(--gap, var(--sp-4))); }
.front-look .sheet-body > .check-list:last-child { margin-bottom: calc(-1 * var(--sheet-top)); }
.front-look .sheet-body > .check-list:last-child > .check-row:last-child { box-shadow: none; }
/* (the visual audit of the lines, 12 November: «Блюдо», «Папки») the same inside a part of the form — the switches right
   under the prices' fields —, and a sheet that ends on a part ending with its switches, or on the folders' list: its last
   row on the foot's line, not a line, a strip, the foot's line */
.front-look .sheet-body > .form-section > :is(.form-row, .field) + .check-list { margin-top: calc(-1 * var(--gap, var(--sp-2))); }
.front-look .sheet-body > :is(.form-section:has(> :is(.check-list, .form-row, .day-row, .cur-row, .field):last-child), .folders):last-child { margin-bottom: calc(-1 * var(--sheet-top)); }
/* (a discount's «Весь день», then the hours' fields; a payment method's «Где выбирают», then «Сверка с кассой»: the
   fields' line on the switches', no strip) */
.front-look .sheet-body > :is(.check-list, .form-section:has(> .check-list:last-child)) + :is(.form-row, .day-row, .cur-row, .fc-set, .loc-name, .field) { margin-top: calc(-1 * var(--gap, var(--sp-4))); }
.front-look .sheet-body > .form-section:last-child > .check-list:last-child > .check-row:last-child,
.front-look .sheet-body > .folders:last-child > .folder:last-child { box-shadow: none; }
.front-look .sheet-body > .form-section:last-child > .check-list:last-child > .check-row:first-child:last-child { box-shadow: inset 0 1px 0 0 var(--zl); }
/* (12 November, 11:06, the owner's screenshot of «Где продаётся» on a phone: under «Сайт» a line, a strip, the foot's
   line) the dish's switches the sheet's whole body: its last row stands on the foot's line */
/* (13 November, 01:14, the owner's phone, «Что сделать» opened from «Сводка»: «Подстава» — its rows in from the sheet's
   edges, a line of their own a strip under the head's, the norm's row and the tips' apart, their words further in than
   the head's) a list of rows in a sheet (ui/tips.jsx): edge to edge, the head's line over its first row, the lists one
   after another as one list, the words from the head's edge, the sheet's edge under the last */
.front-look .sheet-body > :is(.mb-list, .todo-more-row) { margin-inline: calc(-1 * var(--edge, var(--sx))); }
.front-look .sheet-body > .mb-list:first-child { margin-top: calc(-1 * var(--sheet-top)); }
.front-look .sheet-body > .mb-list:first-child > .mb-item:first-child { --tl: 0 0 #0000; }
.front-look .sheet-body > .mb-list + :is(.mb-list, .todo-more-row) { margin-top: calc(-1 * var(--gap, var(--sp-4))); }
.front-look .sheet-body > :is(.mb-list, .todo-more-row):last-child { margin-bottom: calc(-1 * var(--sheet-top)); }
.front-look .sheet-body > .mb-list > .mb-item > .mb-w { padding-inline: var(--edge, var(--sx)); }
.front-look .sheet-body > .dp-sells.dp-rows:last-child { margin-bottom: calc(-1 * var(--sheet-top)); }
.front-look .sheet-body > .dp-sells.dp-rows:last-child > .dp-sell:last-child { box-shadow: none; }
/* (the deeper check of the lines, 12 November: the dish's sheet — its last switches, then «Убрать из меню» with its own
   line: a line of 2 px) switches right over the acts: the act's line is the one between them */
.front-look .sheet-body > .form-section:has(+ .form-acts) > .check-list:last-child > .check-row:last-child,
.front-look .sheet-body > .check-list:has(+ .form-acts) > .check-row:last-child { box-shadow: none; }
/* (12 November, 03:36, the owner on «Приход по фото»: «Тоже тесно») a sheet that opens with words: room over them as
   under the head's (the head's line not on top of the first line of words) */
.front-look .sheet-body > .scan-pick:first-child { padding-top: var(--sp-2); }
/* (a sheet that only opens as its first row — the invoice's facts, the photo's step — takes its own first row up) */
.front-look .sheet-body > :is(.sef-sheet, .scan-pick):first-child { margin-top: 0; }
/* a row of cells, then a part that opens with its switches' rows (the kiosk: «Период | Ресторан», then «Спрашивать
   телефон гостя»): one line between them, not two with a strip of the body's gap */
/* (a part of the form keeps its own --gap, 8: the sheet's 16 is said outright) */
.front-look .sheet-body > :is(.form-row, .day-row, .cur-row, .fc-set, .loc-name) + .form-section:has(> .check-list:first-child) { margin-top: calc(-1 * var(--sp-4)); }
/* words: the whole width */
.front-look .sheet-body :is(.scan-lead, .sheet-lead, .form-hint) { max-width: none; }

/* «+ Добавить продукт» under a document's lines in a sheet: a pill from the words' edge, in a row of its own (on a page
   it stays a key of the row) */
.front-look .sheet-body > .lines-bar { align-items: center; }
.front-look .sheet-body > .lines-bar > .lines-add { min-height: 40px; margin: var(--sp-2) 0 var(--sp-2) var(--edge, var(--sx)); padding: 0 var(--sp-4) 0 var(--sp-3); border-radius: var(--r-pill); background: var(--surface-3); color: var(--ink); font-weight: var(--fw-semibold); }
.front-look .sheet-body > .lines-bar > .lines-add > svg { color: var(--ink-2); }
.front-look .sheet-body > .lines-bar > .lines-add:hover { background: color-mix(in oklab, var(--surface-3) 80%, var(--ink)); }

/* «Приход по фото»: the camera and the file — pills from the words' edge (the camera the accent's) */
.front-look .scan-pick > .scan-take { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: 0; box-shadow: none; }
:root .front-look .scan-pick > .scan-take > .btn { flex: 0 1 auto; min-height: 48px; margin: 0; padding: 0 var(--sp-5); border: 0; border-radius: var(--r-pill); justify-content: center; text-align: center; }
.front-look .scan-pick > .scan-take > .btn.btn-primary { background: var(--accent); color: var(--accent-ink); }
.front-look .scan-pick > .scan-take > .btn.btn-secondary { background: var(--surface-3); color: var(--ink); box-shadow: none; }
.front-look .scan-pick > .scan-take > .btn.btn-secondary:hover:not(:disabled) { background: color-mix(in oklab, var(--surface-3) 80%, var(--ink)); }
@media (max-width: 700px) {
  .front-look .scan-pick > .scan-take { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); }
  :root .front-look .scan-pick > .scan-take > .btn { width: 100%; }
}
/* «Недавние фото»: rows from edge to edge (the list bleeds to the sheet's edges in 99-sef.css, its rows keep the words'
   edge), a line between them; the list is the step's last thing on the screen (only the two hidden file inputs after
   it), so its last row ends the sheet — no line under it, no air */
.front-look .scan-recent { gap: 0; }
.front-look .scan-recent > .caption { padding-bottom: var(--sp-2); }
.front-look .scan-recent > p { margin: 0; }
.front-look .scan-pick .scan-recent-row { border-bottom-color: var(--zl); }
.front-look .sheet-body > .scan-pick:last-child { margin-bottom: calc(-1 * var(--sheet-top)); }
.front-look .sheet-body > .scan-pick:last-child .scan-recent-list > li:last-child > .scan-recent-row { border-bottom: 0; }
.front-look .sheet-body > .scan-pick:last-child .scan-recent > p:last-child { padding-bottom: var(--sheet-top); }

/* the invoice from SEF: its facts edge to edge (the one before the note across the row too — no empty grey cell); the
   note two lines until opened; the totals rows of the lines above them, not a corner of their own */
.front-look .sheet-body > .sef-sheet > .sef-facts > div:nth-child(odd):has(+ div.wide) { grid-column: 1 / -1; }
.front-look .sef-facts > div.wide > dd.sef-note-t { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; cursor: pointer; }
.front-look .sef-facts > div.wide > dd.sef-note-t.open { display: block; }
.front-look .sheet-body > .sef-sheet > .sef-totals { justify-content: stretch; gap: 0; margin: 0 calc(-1 * var(--edge)); padding: 0; }
.front-look .sheet-body > .sef-sheet > .sef-totals > div { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 44px; padding: 0 var(--edge); box-shadow: inset 0 -1px 0 0 var(--zl); }
.front-look .sheet-body > .sef-sheet > .sef-totals dt { color: var(--ink-2); text-align: left; }
.front-look .sheet-body > .sef-sheet > .sef-totals .sum { min-height: 52px; padding-top: 0; border-top: 0; }
.front-look .sheet-body > .sef-sheet > .sef-totals .sum :is(dt, dd) { color: var(--ink); font-size: var(--fs-md); }
.front-look .sheet-body > .sef-sheet > .sef-totals + p { box-shadow: none; }

/* (the visual audit of the lines, 12 November: «Инвентаризация») a table under words: its head's own shade had been its only
   edge — a line over it */
.front-look .sheet-body > :is(p, .fld-note, .form-hint) + .tbl-data > thead > tr > th,
.front-look .sheet-body > :is(p, .fld-note, .form-hint) + .table-wrap > .tbl-data > thead > tr > th { box-shadow: inset 0 1px 0 0 var(--zl), inset 0 -1px 0 0 var(--zl); }
@media (max-width: 700px) {
  /* («Приход», «Списание» on a phone) the lines' last row draws its line: «+ Добавить продукт» none over itself */
  .front-look .sheet-body > :is(.table-wrap, .tbl-data) + .lines-bar { box-shadow: inset 0 -1px 0 0 var(--zl); }
  .front-look .sheet-body > :is(.table-wrap, .tbl-data) + .lines-bar:last-child { box-shadow: none; }
}
/* (the visual audit of the lines, 12 November) the kiosk's «Период | Ресторан», then its first switch; a field, then the
   terminal's «Проверить связь»: one line between them, no strip */
.front-look .sheet-body > .form-row + .form-section.ko-sec { margin-top: calc(-1 * var(--sp-4)); }
.front-look .sheet-body > :is(.field, .form-row) + .form-acts { margin-top: calc(-1 * var(--gap, var(--sp-4))); }
/* a sheet that ends on its keys' rows (the terminal's check's words not there yet) or on the QR's sample: on the foot's line */
.front-look .sheet-body > :is(.form-acts, .ips-preview):is(:last-child, :has(+ .term-check:empty:last-child)) { margin-bottom: calc(-1 * var(--sheet-top)); }
.front-look .sheet-body > .form-acts:is(:last-child, :has(+ .term-check:empty:last-child)) > .form-act:last-child { box-shadow: none; }
:root:root .front-look .sheet-body > .form-acts:not(:first-child):is(:last-child, :has(+ .term-check:empty:last-child)) > .form-act:first-child:last-child { box-shadow: inset 0 1px 0 0 var(--zl); }
/* (12 November, the deep visual audit of «Деньги»: «Корректировка», «Новый PIN» framed boxes of the old look beside a
   pill — a strip under their frames) a card's second key in its foot: a word with its icon, as «Отмена» */
.front-look .sheet-foot > .btn-secondary { border-color: transparent; background: none; box-shadow: none; }
.front-look .sheet-foot > .btn-secondary:hover:not(:disabled) { background: var(--surface-2); }
/* (the deeper check, 12 November: a modifier group's sheet — «+ Вариант» closing its list with its line, a strip, then
   «Удалить группу» with its own line) acts right under a part that ends with an act: one line between them */
.front-look .sheet-body > .form-section:has(> .form-act:last-child) + .form-acts { margin-top: calc(-1 * var(--gap, var(--sp-4))); box-shadow: none; }
:root:root:root:root .front-look .sheet-body > .form-section:has(> .form-act:last-child) + .form-acts > .form-act:first-child { box-shadow: none; }

/* ---------- a sheet's keys on a phone: the waiter's (13 November) ----------
   (12:43, the owner of the back office on his iPhone: «Вот такие вещи сразу исправляй. По примеру официантского») a
   sheet of the back office on a phone ends as the waiter's sheets do (50-phone.css, «the foot's pills»): its keys pills
   56 high, 16 from the sheet's edges, 8 apart, above the home bar, hanging over the body — what scrolls under them
   fades into the sheet's white, and the body keeps room under its last row so it scrolls clear of them. Two keys, the
   second the main one: the first on the waiter's line, a third of the sheet, the main one the rest. «Отмена»,
   «Назад», «Закрыть» ink — black by day, white at night —, the main one its own colour, «Удалить» red on its light
   shade. Three keys and more: the main one a row of its own under the others. The foot's words (a document's lines and
   sum, «Удалить «…»?») a row of their own over the keys. A sheet with no keys ends above the home bar. */
.front-look.of-phone { --fade-h: 28px; --fade-0: rgb(255 255 255 / 0); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .front-look.of-phone { --fade-0: rgb(22 25 32 / 0); } }
:root[data-theme="dark"] .front-look.of-phone { --fade-0: rgb(22 25 32 / 0); }
.front-look.of-phone .sheet:has(> .sheet-foot) {
  position: relative; --foot-keys: 56px; --foot-words: 0px;
  --foot-room: calc(var(--foot-words) + var(--foot-keys) + max(var(--sp-3), env(safe-area-inset-bottom, 0px)) + var(--fade-h));
}
.front-look.of-phone .sheet:has(> .sheet-foot > .grow:not(:empty)) { --foot-words: 40px; }
.front-look.of-phone .sheet:has(> .sheet-foot > .btn ~ .btn ~ .btn):has(> .sheet-foot > :is(.btn-primary, .btn-ok, .btn-danger)) { --foot-keys: calc(2 * 56px + var(--sp-2)); }
.front-look.of-phone .sheet:has(> .sheet-foot) > .sheet-body::after { content: ''; display: block; flex: none; height: var(--foot-room); }
.front-look.of-phone .sheet > .sheet-foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: stretch; justify-content: stretch; gap: var(--sp-2);
  padding: 0 var(--sp-4) max(var(--sp-3), env(safe-area-inset-bottom, 0px)); border-top: 0; background: none; pointer-events: none;
}
.front-look.of-phone .sheet > .sheet-foot::before {
  content: ''; position: absolute; z-index: -1; left: 0; right: 0; top: calc(var(--fade-h) * -1); bottom: 0; pointer-events: none;
  background: linear-gradient(to bottom, var(--fade-0), var(--surface) calc(var(--fade-h) + 6px));
}
.front-look.of-phone .sheet > .sheet-foot > .btn {
  position: relative; flex: 1 1 0; min-width: 0; height: 56px; min-height: 0; margin: 0; padding: 0 var(--sp-4);
  justify-content: center; border: 0; border-radius: var(--r-pill); box-shadow: 0 4px 14px rgb(0 0 0 / 0.16), 0 1px 3px rgb(0 0 0 / 0.1);
  font-size: var(--fs-md); font-weight: var(--fw-semibold); pointer-events: auto; transition: transform 0.08s;
}
.front-look.of-phone .sheet > .sheet-foot > .btn > svg { color: currentColor; }
.front-look.of-phone .sheet > .sheet-foot > .btn .btn-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.front-look.of-phone .sheet > .sheet-foot:not(:has(> .btn ~ .btn ~ .btn)):has(> .btn ~ :is(.btn-primary, .btn-ok, .btn-danger)) > .btn:not(.btn-primary, .btn-ok, .btn-danger) {
  flex: 0 0 calc((100% + 2 * var(--sp-4)) / 3 - var(--sp-4) - var(--sp-1));
}
.front-look.of-phone .sheet > .sheet-foot:has(> .btn ~ .btn ~ .btn) > :is(.btn-primary, .btn-ok, .btn-danger) { flex: 1 0 100%; order: 2; }
.front-look.of-phone .sheet > .sheet-foot > :is(.btn-ghost, .btn-secondary),
.front-look.of-phone .sheet > .sheet-foot > :is(.btn-ghost, .btn-secondary):hover:not(:disabled) { border-color: transparent; background: var(--ink); color: var(--surface); }
.front-look.of-phone .sheet > .sheet-foot > .btn-danger-ghost,
.front-look.of-phone .sheet > .sheet-foot > .btn-danger-ghost:hover:not(:disabled) { background: var(--bad-soft); color: var(--bad); }
/* (a touch screen keeps :hover after a tap: the keys keep their colour and answer the finger with :active) */
.front-look.of-phone .sheet > .sheet-foot > .btn-primary:hover:not(:disabled) { background: var(--accent); }
.front-look.of-phone .sheet > .sheet-foot > .btn-primary:active:not(:disabled) { background: var(--accent-2); }
.front-look.of-phone .sheet > .sheet-foot > .btn:active:not(:disabled) { transform: scale(0.97); }
.front-look.of-phone .sheet > .sheet-foot > .btn:disabled { opacity: 1; background: var(--pill-press); color: var(--ink-3); box-shadow: none; }
.front-look.of-phone .sheet > .sheet-foot > .grow:empty { display: none; }
.front-look.of-phone .sheet > .sheet-foot > .grow:not(:empty) {
  flex: 1 0 100%; order: -1; min-width: 0; min-height: 0; margin: 0; padding: var(--sp-2) var(--sp-1) 0;
  font-size: var(--fs-sm); line-height: 20px; text-align: left;
}
.front-look.of-phone .sheet:not(:has(> .sheet-foot)) > .sheet-body:last-child { padding-bottom: max(var(--sheet-top, var(--sp-3)), env(safe-area-inset-bottom, 0px)); }
/* (the same day) a toast on the owner's phone as the waiter's (50-phone.css, .toasts-phone): a pill, its words 16
   semibold, good news the ink — black by day, white at night —, low on the screen above the home bar; while a sheet with
   keys is open, 12 above its pills */
.front-look.of-phone > .toasts { bottom: max(var(--sp-5), env(safe-area-inset-bottom, 0px)); }
.front-look.of-phone:has(.sheet > .sheet-foot) > .toasts { bottom: calc(56px + max(var(--sp-3), env(safe-area-inset-bottom, 0px)) + var(--sp-3)); }
.front-look.of-phone > .toasts .toast { border-radius: var(--r-pill); font-size: var(--fs-md); }
.front-look.of-phone > .toasts .toast-ok { background: var(--ink); color: var(--surface); }

/* ---------- the back office's colours: «A + B» (12 November, 03:10, the owner: «цвета A + B») ----------
   The owner, 02:02: «Я бы стандартизировал цвета, чтобы была понятна приоритетность блоков и информации (как на скриншоте
   — все серое)». The loudest thing on every screen had been the menu's chosen item, a filled blue band — the least of what
   one reads there. Now:
   A — the order of what one reads: a page's main figures on the raised surface and larger (their names stay a head's
       letters, the owner's rule of 10 November); the chosen item of the menu and of a page's tabs a blue mark (the menu's at its edge, a tab's under
       it) on the raised surface — blue fills only the keys that do something.
   B — colour only for meaning: red a problem to deal with now, amber something to look at, green all is fine (quietly);
       a block or a figure that needs one has its colour along its top and its ground tinted; the staff's departments have
       their own colour — the floor and the bar blue, the kitchen orange, the back office violet. */

/* A — the menu's chosen item: the raised surface, a blue mark at its edge, its icon blue */
:root .front-look :is(.of-nav-btn.on, .of-sub-btn.on, .of-group.in:not(.open) > .of-group-btn),
:root .front-look :is(.of-nav-btn.on, .of-sub-btn.on, .of-group.in:not(.open) > .of-group-btn):hover {
  background: var(--surface-2); color: var(--ink); box-shadow: inset 3px 0 0 0 var(--accent);
}
:root .front-look :is(.of-nav-btn.on, .of-sub-btn.on, .of-group.in:not(.open) > .of-group-btn) svg { color: var(--accent); }
:root .front-look .of-sub-btn.on { font-weight: var(--fw-semibold); }

/* A — a page's tabs and strips of choices: the chosen one raised, a blue line under it (as a chosen figure's) */
:root .front-look :is(.of-page > .seg, .sh-bar > .seg, .bk-daybar .seg, .card-head .seg, .card > .seg, .seg.seg-chips, .chip-row.grp-chips) > :is(.seg-btn, .chip).on {
  background: var(--surface-2); color: var(--ink); font-weight: var(--fw-semibold); box-shadow: inset 0 -3px 0 0 var(--accent);
}
:root .front-look :is(.of-page > .seg, .sh-bar > .seg, .bk-daybar .seg, .card-head .seg, .card > .seg, .seg.seg-chips, .chip-row.grp-chips) > :is(.seg-btn, .chip).on:not(:first-child) {
  box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -3px 0 0 var(--accent);
}
:root .front-look :is(.of-page > .seg, .sh-bar > .seg, .bk-daybar .seg, .card-head .seg, .card > .seg, .seg.seg-chips, .chip-row.grp-chips) > :is(.seg-btn, .chip).on:last-child:not(:first-child) {
  box-shadow: inset 1px 0 0 0 var(--zl), inset 0 -3px 0 0 var(--accent), 1px 0 0 0 var(--zl);
}

/* A — the main figures: a page's squares on the raised surface, the figure larger; «Сводка»'s revenue and its chart */
:root .front-look .pg-nums > .pg-num.ptable { background-color: var(--surface-2); }
:root .front-look .pg-nums > .pg-num.ptable.pg-key:hover { background-color: var(--surface-3); }
:root .front-look .pg-nums > .pg-num.ptable.pg-key.on { background-color: var(--surface-3); }
:root .front-look .wg-board > :is(.wg-num, .wg-rev), :root .front-look .wg-board > :is(.wg-num, .wg-rev) > * { background-color: var(--surface-2); }
@media (min-width: 701px) {
  :root .front-look .pg-num-v { font-size: 32px; line-height: 38px; }
  :root .front-look .wg-num .tile-big .tile-v { font-size: 40px; line-height: 48px; }
}

/* B — a block of «Сводка» that needs a look: amber (the kitchen slow, a product short), red (a guest's low mark not dealt
   with) — its colour along its top, its ground tinted */
:root .front-look .wg-board > .wg.wg-1:has(.bad-txt) { --tone: var(--bad); }
:root .front-look .wg-board > .wg.wg-1:not(:has(.bad-txt)):has(.warn-txt, .low-qty) { --tone: var(--warn); }
:root .front-look .wg-board > .wg.wg-1:is(:has(.bad-txt), :has(.warn-txt, .low-qty)) {
  background: linear-gradient(var(--tone), var(--tone)) top / 100% 3px no-repeat, color-mix(in oklab, var(--tone) 11%, var(--surface));
}
:root .front-look .wg-board > .wg.wg-1:is(:has(.bad-txt), :has(.warn-txt, .low-qty)) > * { background: transparent; }
/* B — a square that needs a look: amber (below the minimum, no PIN, short), red (a problem); all fine — its figure green */
:root .front-look .pg-nums > .pg-num:is(.pg-low, .pg-warn) { --tone: var(--warn); }
:root .front-look .pg-nums > .pg-num.pg-bad { --tone: var(--bad); }
:root .front-look .pg-nums > .pg-num:is(.pg-low, .pg-warn, .pg-bad) {
  background: linear-gradient(var(--tone), var(--tone)) top / 100% 3px no-repeat, color-mix(in oklab, var(--tone) 11%, var(--surface-2));
}
:root .front-look .pg-nums > .pg-num:is(.pg-low, .pg-warn, .pg-bad) .pg-num-v { color: var(--tone); }
/* B — the departments: a dot of their colour by the squares' names, the staff's avatars in it */
.pg-num-l > .dep-dot { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 3px; vertical-align: 1px; }
.dep-dot.dep-floor { background: var(--dep-floor); }
.dep-dot.dep-kitchen { background: var(--dep-kitchen); }
.dep-dot.dep-office { background: var(--dep-office); }
:root .front-look .avatar.dep-floor { background: color-mix(in oklab, var(--dep-floor) 22%, var(--surface)); color: color-mix(in oklab, var(--dep-floor) 70%, var(--ink)); }
/* (15 November, the brand book: 4.5:1 — the letters on their department's shade were 3.6–4.3: the letter the
   department's colour drawn toward the ink) */
:root .front-look .avatar.dep-kitchen { background: color-mix(in oklab, var(--dep-kitchen) 22%, var(--surface)); color: color-mix(in oklab, var(--dep-kitchen) 70%, var(--ink)); }
:root .front-look .avatar.dep-office { background: color-mix(in oklab, var(--dep-office) 22%, var(--surface)); color: color-mix(in oklab, var(--dep-office) 70%, var(--ink)); }
