/* Owner cabinet shell — Apple-like: calm #f5f5f7 canvas, white cards with soft shadows and large radii, hairlines
   instead of borders, Inter Tight headlines, black / white / grey with the logo red #e3262b only as an accent
   (progress, «live» dots, the logo). BLACK top bar as on boxsy.ru (#owner, Д3): the logo, the point switcher, the tabs
   (the open one a white chip), clock and actions; under it the dark band (.ow-band, filled by «Сегодня»: the launch strip
   and the day's numbers). On phones the tabs move to a bottom tab bar (thumb reach). Tokens from ../app.css are re-set
   for the cabinet on body.ow,
   so every tab picks the same radii and greys.
   Shared classes for tabs (all prefixed .ow-): .ow-code, .ow-btn, .ow-card, .ow-grid, .ow-kpis, .ow-modal, .ow-muted ... */
body.ow {
  --bg: #f5f5f7; --card: #fff; --ink: #1d1d1f; --ink-2: #424245; --ink-3: #6e6e73; --line: rgba(0, 0, 0, .08); --soft: #f2f2f4;
  --r-xl: 28px; --r-lg: 18px; --r-md: 14px; --r-sm: 10px;
  --ow-edge: rgba(0, 0, 0, .07); --ow-panel: #ebebef; --ow-k: #fff; --ow-cap: #6e6e73; --ow-fill: #e8e8ed; --ow-red: #e3262b;
  --ow-bar: #141414; --ow-bar-2: rgba(255, 255, 255, .1); --ow-bar-ink: #fff; --ow-bar-ink-2: #a1a1a6; --ow-band: #1d1d1f; --ow-band-line: #333336;
  --ow-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 24px rgba(0, 0, 0, .05);
  --ow-shadow-s: 0 1px 2px rgba(0, 0, 0, .06), 0 2px 8px rgba(0, 0, 0, .04);
  --ow-ease: cubic-bezier(.2, .8, .2, 1);
  --ow-gap: 14px; --ow-pad: 28px; --ow-max: 1680px; --ow-tabbar: 0px;
  background: var(--bg); min-height: 100dvh; font-size: 14px; display: flex; flex-direction: column; color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
body.ow > #app { flex: 1; display: flex; flex-direction: column; }
body.ow-noscroll { overflow: hidden; }
body.ow :focus { outline: none; }
body.ow :focus-visible { outline: 3px solid rgba(29, 29, 31, .6); outline-offset: 2px; border-radius: 8px; }
body.ow .bxf input:focus-visible, body.ow .bxp-s:focus-visible { outline: none; } /* the field draws its own ring */
.ow-muted { color: var(--ink-3); }
.ow-small { font-size: 12.5px; }
.ow-mt8 { margin-top: 8px; }
.ow-num { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ow svg { flex: none; }

/* small grey caption (sentence case, as Apple writes it) and the black icon square of a panel head */
.ow-cap { font: 600 12px/1.2 var(--font); letter-spacing: 0; color: var(--ow-cap); }
.ow-ic { width: 28px; height: 28px; border-radius: 9px; background: var(--ink); color: #fff; display: inline-grid; place-items: center; flex: none; }
.ow-ic svg { width: 15px; height: 15px; }

/* ---------- top bar: logo · point · tabs · clock · actions (black, landing .ob-top) ---------- */
.ow-bar { position: sticky; top: 0; z-index: 15; background: var(--ow-bar); color: var(--ow-bar-ink); }
.ow-bar-in { max-width: var(--ow-max); margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 8px var(--ow-pad); min-height: 56px; }
.ow-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ow-brand > a { display: flex; text-decoration: none; flex: none; border-radius: 8px; }
.ow-brand .bx-logo { font-size: 22px; color: #fff; } /* logo() — the white word on black, the red lines stay */
.ow-brand-sep { width: 1px; height: 24px; background: rgba(255, 255, 255, .18); flex: none; }
.ow-point { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 300px; text-align: left; border-radius: 10px; padding: 5px 8px 5px 8px; margin-left: -6px; color: var(--ow-bar-ink); transition: background .2s; min-height: 44px; }
.ow-point:hover, .ow-point[aria-expanded="true"] { background: var(--ow-bar-2); }
.ow-av { display: none; }
.ow-point-t { min-width: 0; display: grid; gap: 1px; }
.ow-point-t b { font: 700 14px/1.2 var(--font); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ow-point-t small { color: #8e8e93; font-size: 11.5px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ow-caret { color: #8e8e93; display: grid; flex: none; transition: transform .25s var(--ow-ease); }
.ow-point[aria-expanded="true"] .ow-caret { transform: rotate(180deg); }
.ow-caret svg { width: 14px; height: 14px; }
/* tabs: light grey words, the open one a white chip with black text (landing .ob-tabs) */
.ow-tabs { display: flex; gap: 2px; flex: none; padding: 0; margin: 0 auto 0 8px; }
.ow-tabs a { display: flex; align-items: center; gap: 7px; text-decoration: none; color: #c7c7cc; font: 500 13px/1 var(--font); padding: 0 12px; height: 34px; border-radius: 8px; white-space: nowrap; transition: background .2s, color .2s; }
.ow-tabs a svg { width: 15px; height: 15px; }
.ow-tabs a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.ow-tabs a.on { background: #fff; color: #111; font-weight: 600; }
.ow-bar-r { display: flex; align-items: center; gap: 10px; flex: none; }
.ow-clock { color: #8e8e93; font-size: 12px; margin-right: 4px; white-space: nowrap; display: flex; align-items: baseline; gap: 8px; }
.ow-clock b { color: #fff; font: 700 15px/1 var(--display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.ow-bbtn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 9px; background: transparent; color: #fff; box-shadow: inset 0 0 0 1px #4a4a4e; font: 600 13px/1 var(--font); white-space: nowrap; transition: background .2s, transform .15s; }
.ow-bbtn svg { width: 15px; height: 15px; }
.ow-bbtn:hover { background: rgba(255, 255, 255, .08); }
.ow-bbtn:active { transform: scale(.97); }
.ow-bbtn.w { background: #fff; color: #111; box-shadow: none; font-weight: 700; }
.ow-bbtn.w:hover { background: #e8e8ed; }
.ow-ibtn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #8e8e93; transition: background .2s, color .2s; }
.ow-ibtn svg { width: 17px; height: 17px; }
.ow-ibtn:hover { background: var(--ow-bar-2); color: #fff; }
.ow-clock-m { display: none; flex: none; text-align: right; line-height: 1.15; color: #8e8e93; white-space: nowrap; }
.ow-clock-m b { display: block; color: #fff; font: 700 15px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.ow-clock-m small { font-size: 11px; }
/* the trial chip (billing.css) on black */
.ow-bar .ow-trial { background: rgba(255, 255, 255, .1); color: #d2d2d7; height: 28px; font-size: 12px; }
.ow-bar .ow-trial:hover { background: rgba(255, 255, 255, .16); color: #fff; }
body.ow .ow-bar :focus-visible { outline-color: rgba(255, 255, 255, .7); }

/* ---------- the dark band under the bar: «Запуск точки» strip + the day's numbers (filled by flow.js / launch.js) ---------- */
.ow-band { background: var(--ow-band); color: #fff; }
.ow-band[hidden] { display: none; }
.ow-band-in { max-width: var(--ow-max); margin: 0 auto; padding: 0 var(--ow-pad); }
.ow-band .ow-launch-slot[hidden] { display: none; }

/* bottom tab bar (phones): the same five tabs, icon over label, within thumb reach */
.ow-tabbar { display: none; }

/* toasts (app.css .toast): a dark pill at the bottom (the top is black now: the bar and the day's numbers), above the
   tab bar on phones */
body.ow .toast {
  top: auto; bottom: 28px; max-width: calc(100vw - 32px); text-align: center; border-radius: 999px; font-size: 14px; padding: 12px 20px; z-index: 45;
  background: rgba(29, 29, 31, .94); box-shadow: 0 10px 30px rgba(0, 0, 0, .22); animation: ow-toast .32s var(--ow-ease);
}
@keyframes ow-toast { from { opacity: 0; transform: translate(-50%, 8px); } }

/* point menu (switcher) */
.ow-menu {
  position: fixed; z-index: 40; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  color: var(--ink); border-radius: 16px; padding: 6px; min-width: 290px; max-width: calc(100vw - 16px);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .08), 0 18px 50px rgba(0, 0, 0, .18); animation: ow-pop .22s var(--ow-ease);
}
@keyframes ow-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.ow-menu-h { padding: 10px 10px 6px; }
.ow-menu a, .ow-menu button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); min-height: 48px; }
.ow-menu a:hover, .ow-menu button:hover { background: var(--soft); }
.ow-menu a.on { background: var(--soft); }
.ow-menu a.on::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ow-red); margin-left: auto; flex: none; }
.ow-menu span { display: grid; min-width: 0; }
.ow-menu b { font-weight: 600; font-size: 14px; }
.ow-menu small { color: var(--ink-3); font-size: 12px; }
.ow-menu svg { width: 17px; height: 17px; color: var(--ink-2); }
.ow-mi { width: 32px; height: 32px; border-radius: 10px; background: var(--ink); color: #fff; display: grid !important; place-items: center; font: 800 12px/1 var(--display); letter-spacing: -.01em; flex: none; }
.ow-menu .ow-mi.i { background: var(--soft); color: var(--ink); }
.ow-menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 6px; }
.ow-menu .ow-menu-f { display: flex; align-items: center; gap: 7px; margin: 4px 4px 0; padding: 10px 6px 6px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12px; }
.ow-menu .ow-menu-f .bx-logo { display: inline-flex; font-size: 14px; } /* .ow-menu span sets grid */

/* ---------- content ---------- */
.ow-main { width: 100%; max-width: var(--ow-max); margin: 0 auto; padding: 16px var(--ow-pad) 40px; flex: 1; }
.ow-tab { min-height: 50vh; animation: ow-tabin .3s var(--ow-ease); }
@keyframes ow-tabin { from { opacity: 0; transform: translateY(6px); } }
.ow-stub h2 { font: 800 30px/1.1 var(--display); letter-spacing: -.03em; margin: 8px 0 4px; }
.ow-empty { text-align: center; color: var(--ink-2); padding: 40px 16px; }
.ow-foot { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 16px calc(24px + env(safe-area-inset-bottom) + var(--ow-tabbar)); color: var(--ink-3); font-size: 12px; }
.ow-foot .bx-logo { font-size: 15px; }
/* first paint / can't load: the logo over one quiet line */
.ow-load { flex: 1; min-height: 70dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 40px 16px; text-align: center; color: var(--ink-3); font-size: 15px; }
.ow-load .bx-logo { font-size: 44px; }
.ow-load p { margin: 0; max-width: 34ch; }
.ow-load a { color: var(--ink); font-weight: 600; }
.ow-load .ow-dots { display: inline-flex; gap: 5px; }
.ow-load .ow-dots i { width: 6px; height: 6px; border-radius: 50%; background: #c7c7cc; animation: ow-dot 1.2s infinite ease-in-out; }
.ow-load .ow-dots i:nth-child(2) { animation-delay: .15s; } .ow-load .ow-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ow-dot { 40% { background: var(--ink); transform: translateY(-3px); } }

/* shared building blocks for tabs */
.ow-card { background: var(--card); border-radius: var(--r-lg); padding: 18px; border: 0; box-shadow: var(--ow-shadow); }
.ow-grid { display: grid; gap: var(--ow-gap); }
.ow-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.ow-h h2 { margin: 0; font: 800 20px/1.1 var(--display); letter-spacing: -.02em; }
/* page head of a tab: the big title row (title · grey subline · tools on the right) */
.ow-bar2 { background: transparent; border-radius: 0; padding: 2px 2px 6px; display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
.ow-bar2 h2 { margin: 0; font: 800 34px/1.05 var(--display); letter-spacing: -.035em; }

/* KPI strip: one white card, cells split by hairlines, grey captions, big Inter Tight numbers, red progress */
.ow-kpis { background: var(--ow-k); color: var(--ink); border-radius: var(--r-lg); display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); overflow: hidden; box-shadow: var(--ow-shadow); }
.ow-kpis .k { min-width: 0; padding: 16px 20px 18px; border-left: 1px solid var(--line); }
.ow-kpis .k:first-child { border-left: 0; }
.ow-kpis .k small { display: block; font: 600 12.5px/1.3 var(--font); letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.ow-kpis .k b { display: inline-block; font: 800 30px/1 var(--display); letter-spacing: -.035em; margin-top: 8px; font-variant-numeric: tabular-nums; }

/* ticket badge: FILLED = on site / confirmed, DASHED = not certain yet */
.ow-code { display: inline-flex; align-items: center; font: 800 12.5px/1 var(--display); letter-spacing: -.01em; border-radius: 6px; white-space: nowrap; flex: none; border: 1.4px solid var(--ink); }
.ow-code.sm { font-size: 12px; padding: 3px 6px; }
.ow-code.md { font-size: 13px; padding: 4px 7px; }
.ow-code.lg { font-size: 28px; padding: 7px 12px; border-radius: 10px; border-width: 2px; letter-spacing: -.03em; }
.ow-code.filled { background: var(--ink); color: #fff; }
.ow-code.dashed { border-style: dashed; background: #fff; color: var(--ink); }

/* russian plate: thin black frame, small region */
body.ow .plate { display: inline-flex; align-items: stretch; border: 1.2px solid var(--ink); border-radius: 4px; font: 700 11.5px/1 var(--font); letter-spacing: .03em; background: #fff; color: var(--ink); flex: none; white-space: nowrap; overflow: hidden; }
body.ow .plate b { padding: 3px 5px; font-weight: 700; }
body.ow .plate i { display: flex; align-items: center; padding: 3px 4px; border-left: 1.2px solid var(--ink); font-size: 9.5px; font-style: normal; }

/* buttons: pills; black = the main action, grey fill = secondary («danger» = counts against the client: grey too, kept in
   its own row under a caption — a dashed outline means «a booking still on its way» everywhere in Boxsy, never a button) */
.ow-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 16px; border-radius: 999px;
  font: 600 13.5px/1.1 var(--font); background: var(--ow-fill); color: var(--ink); border: 0; white-space: nowrap; text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.ow-btn:hover { background: #dedee3; }
.ow-btn:active { transform: scale(.97); }
.ow-btn.black { background: var(--ink); color: #fff; }
.ow-btn.black:hover { background: #333336; }
.ow-btn.line { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.ow-btn.line:hover { background: var(--soft); }
.ow-btn.danger { background: var(--ow-fill, #e8e8ed); color: var(--ink); box-shadow: none; }
.ow-btn.danger:hover { background: #dedee3; }
.ow-btn[disabled] { opacity: .45; pointer-events: none; }
.ow-btn svg { width: 16px; height: 16px; }
.ow-row-btns { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 18px; }
.ow-tel { font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(0, 0, 0, .2); color: var(--ink); }

/* inputs for desktop forms */
.ow-input, .ow-select, .ow-textarea { font: 500 15px var(--font); color: var(--ink); background: #fff; border: 1.5px solid #d2d2d7; border-radius: 12px; padding: 10px 13px; outline: 0; width: 100%; min-height: 44px; transition: border-color .2s, box-shadow .2s; }
.ow-input:focus, .ow-select:focus, .ow-textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(0, 0, 0, .07); }
.ow-input::placeholder, .ow-textarea::placeholder { color: #a1a1a6; }
.ow-textarea { min-height: 96px; resize: vertical; }

/* app.css form pieces inside the cabinet (sheets: walk-in, booking): Apple-like tiles */
body.ow .field { background: #fff; border: 1.5px solid #d2d2d7; border-radius: 14px; padding: 10px 14px 11px; margin-bottom: 10px; transition: border-color .2s, box-shadow .2s; }
body.ow .field span { font: 600 12.5px/1.2 var(--font); letter-spacing: 0; text-transform: none; color: var(--ow-cap); }
body.ow .field input { font: 600 17px var(--font); padding-top: 5px; }
body.ow .field:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(0, 0, 0, .07); }
body.ow .field.bad { border-color: var(--ow-red); box-shadow: 0 0 0 4px rgba(227, 38, 43, .12); }
body.ow .part { font: 700 15px/1.2 var(--font); letter-spacing: -.01em; text-transform: none; color: var(--ink); margin: 22px 2px 10px; display: flex; align-items: baseline; gap: 8px; }
body.ow .part em { font-style: normal; font-weight: 500; font-size: 13px; color: var(--ink-3); }
body.ow .chip-r { background: #fff; border: 0; box-shadow: inset 0 0 0 1.5px #d2d2d7; border-radius: 12px; padding: 0; min-height: 44px; font: 700 14.5px/1 var(--font); transition: background .2s, box-shadow .2s, color .2s, transform .15s; }
body.ow .chip-r:hover { box-shadow: inset 0 0 0 1.5px #a1a1a6; }
body.ow .chip-r:active { transform: scale(.97); }
body.ow .chip-r.sel { background: var(--ink); color: #fff; box-shadow: none; }
body.ow .opt { border-radius: 14px; border: 0; box-shadow: inset 0 0 0 1.5px #d2d2d7; padding: 12px 14px; gap: 12px; min-height: 56px; transition: box-shadow .2s, transform .15s; }
body.ow .opt:active { transform: scale(.99); }
body.ow .opt.sel { box-shadow: inset 0 0 0 2px var(--ink); }
body.ow .opt .on1 { font: 600 14.5px/1.25 var(--font); }
body.ow .opt .os { font-size: 12.5px; color: var(--ink-3); }
body.ow .opt .pr { font: 700 15px/1.2 var(--font); font-variant-numeric: tabular-nums; }
body.ow .tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #c7c7cc; transition: background .2s, border-color .2s, transform .3s cubic-bezier(.3, 1.6, .5, 1); }
body.ow .opt.sel .tick, body.ow .consent.sel .tick { transform: scale(1.06); }
body.ow .tick svg { width: 13px; height: 13px; }
body.ow .consent { border-radius: 14px; border: 0; box-shadow: inset 0 0 0 1.5px #d2d2d7; padding: 12px 14px; font-size: 13.5px; line-height: 1.4; min-height: 52px; align-items: center; }
body.ow .consent.bad { box-shadow: inset 0 0 0 2px var(--ow-red); }
body.ow .days { gap: 8px; padding: 2px 0 12px; }
body.ow .day { width: 56px; border-radius: 14px; background: #fff; border: 0; box-shadow: inset 0 0 0 1.5px #d2d2d7; padding: 8px 0 7px; transition: background .2s, box-shadow .2s; }
body.ow .day small { font: 600 11px/1.2 var(--font); color: var(--ink-3); }
body.ow .day b { font: 800 19px/1.1 var(--display); }
body.ow .day.on { background: var(--ink); box-shadow: none; color: #fff; }
body.ow .day.on small { color: #c7c7cc; }
body.ow .day[disabled] { opacity: .4; }
body.ow .slots { gap: 8px; }
body.ow .slot { border-radius: 12px; background: #fff; border: 0; box-shadow: inset 0 0 0 1.5px #d2d2d7; padding: 0; min-height: 44px; font: 600 14.5px/1 var(--font); font-variant-numeric: tabular-nums; transition: background .2s, box-shadow .2s, transform .15s; }
body.ow .slot:active { transform: scale(.97); }
body.ow .slot.on { background: var(--ink); box-shadow: none; color: #fff; }
body.ow .slot[disabled] { background: transparent; box-shadow: inset 0 0 0 1px #e3e3e8; color: #a1a1a6; }

/* ---------- modal / sheet ---------- */
.ow-modal-bg { position: fixed; inset: 0; z-index: 25; background: rgba(0, 0, 0, .32); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 24px; animation: ow-fade .25s var(--ow-ease); }
@keyframes ow-fade { from { opacity: 0; } }
.ow-confirm-bg { z-index: 35; }
.ow-modal { background: var(--bg); width: 100%; max-width: 600px; max-height: calc(100dvh - 48px); overflow: auto; overscroll-behavior: contain; border-radius: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); animation: ow-rise .34s var(--ow-ease); }
@keyframes ow-rise { from { opacity: 0; transform: translateY(16px) scale(.985); } }
.ow-modal.wide { max-width: 980px; }
.ow-modal.ow-confirm { max-width: 420px; background: #fff; }
.ow-modal-h { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 18px 12px 24px; background: rgba(245, 245, 247, .9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.ow-modal-h h3, .ow-confirm h3 { margin: 0; font: 800 24px/1.12 var(--display); letter-spacing: -.03em; }
.ow-modal-b { padding: 4px 24px 24px; }
.ow-confirm .ow-modal-b { padding: 24px; }
.ow-confirm p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.45; }
.ow-x { width: 36px; height: 36px; border-radius: 50%; background: var(--ow-fill); border: 0; display: grid; place-items: center; flex: none; transition: background .2s; }
.ow-x:hover { background: #dedee3; }
.ow-x svg { width: 16px; height: 16px; }

/* ---------- login: the signup's look (wizard.css .owz-*), only what is its own here ---------- */
body.ow-login-body { background: #f4f4f4; }
.ow-login .owz-top-in { grid-template-columns: 1fr auto 1fr; }
.ow-login .ow-login-pl { margin: 0; text-align: center; }
.ow-login .owz-step { padding: 34px 40px 32px; }
.owz.ow-login h1 { font-size: 34px; }
.ow-login .owz-sub { margin: 8px 0 22px; font-size: 15.5px; }
.ow-login .owz-f input { height: 52px; font-size: 16.5px; }
.ow-login .ow-login-alt { margin-top: 18px; font-size: 14.5px; }
.ow-login .ow-login-help { margin-top: 6px; }
.ow-login-help a { color: var(--owz-ink, #111); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(0, 0, 0, .25); }
.ow-login .owz-su-err:not(:empty) { margin-top: 12px; }
/* computers: a small black preview of the board (the cabinet's own header) next to the form */
.ow-login-hero { background: #141414; color: #fff; border-radius: 22px; padding: 20px 20px 18px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 10px 30px rgba(0, 0, 0, .1); }
.ow-login-hero .bx-logo { font-size: 20px; }
.ow-login-ht { margin: 14px 0 12px; font: 800 20px/1.1 var(--display); letter-spacing: -.025em; }
.ow-login-k { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #1d1d1f; border-radius: 12px; overflow: hidden; }
.ow-login-k span { padding: 8px 10px 9px; border-left: 1px solid #333336; }
.ow-login-k span:first-child { border-left: 0; }
.ow-login-k small { display: block; font: 700 9px/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: #8e8e93; }
.ow-login-k b { display: block; margin-top: 5px; font: 800 15px/1 var(--display); letter-spacing: -.02em; color: #f5f5f7; white-space: nowrap; }
/* login aside: a live-looking mini board — ticket codes, plates, boxes with progress, done with sums (decorative, aria-hidden) */
.olb { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.olb-col { min-width: 0; border-radius: 12px; background: #1d1d1f; padding: 9px 6px 6px; }
.olb-col > small { display: flex; justify-content: space-between; margin: 0 3px 3px; font: 700 8.5px/1.2 var(--font); letter-spacing: .07em; text-transform: uppercase; color: #8e8e93; }
.olb-col > small em { font-style: normal; color: #d1d1d6; }
.olb-c { margin-top: 5px; padding: 6px 6px 7px; border-radius: 8px; background: #2a2a2d; animation: olbIn .7s cubic-bezier(.2, .7, .3, 1) both; }
.olb-col:nth-child(2) .olb-c { animation-delay: .1s; }
.olb-col:nth-child(3) .olb-c { animation-delay: .2s; }
.olb-c:nth-of-type(2) { animation-delay: .16s; }
.olb-col:nth-child(2) .olb-c:nth-of-type(2) { animation-delay: .26s; }
.olb-col:nth-child(3) .olb-c:nth-of-type(2) { animation-delay: .36s; }
@keyframes olbIn { from { opacity: 0; transform: translateY(6px); } }
.olb-h { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; margin-bottom: 5px; font: 600 9px/1 var(--font); color: #8e8e93; white-space: nowrap; }
.olb-h b { font: 800 12px/1 var(--display); letter-spacing: -.01em; color: #fff; }
.olb-pl { display: inline-flex; align-items: stretch; max-width: 100%; overflow: hidden; border-radius: 3px; background: #f5f5f7; color: #111; font: 700 9.5px/1 var(--font); letter-spacing: .02em; }
.olb-pl b { padding: 2px 3px 2px 4px; font-weight: 700; }
.olb-pl i { display: flex; align-items: center; padding: 2px 3px; border-left: 1px solid #111; font-size: 7.5px; font-style: normal; }
.olb-box { box-shadow: inset 2px 0 0 #e3262b; }
.olb-bar { position: relative; display: block; height: 3px; margin-top: 7px; overflow: hidden; border-radius: 2px; background: #3a3a3c; }
.olb-bar::after { content: ''; position: absolute; inset: 0; border-radius: 2px; background: #f5f5f7; transform-origin: 0 50%; transform: scaleX(var(--s, .5)); animation: olbBar 7s ease-in-out infinite alternate; }
@keyframes olbBar { from { transform: scaleX(calc(var(--s, .5) - .16)); } }
.olb-free { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 6px 6px 10px; border-radius: 10px; box-shadow: inset 0 0 0 1px #3a3a3c; font: 600 10.5px/1 var(--font); color: #d1d1d6; animation: olbIn .7s cubic-bezier(.2, .7, .3, 1) .45s both; }
.olb-free span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.olb-free span:first-child i { width: 6px; height: 6px; border-radius: 50%; background: #34c759; }
.olb-call { display: block; padding: 6px 10px; border-radius: 6px; background: #fff; color: #111; font: 700 9.5px/1 var(--font); text-align: center; white-space: nowrap; animation: olbCall 2.4s ease-in-out infinite; }
@keyframes olbCall { 50% { transform: scale(1.045); } }
.olb-done .olb-h span { color: #d1d1d6; font-weight: 700; }
.olb-done .olb-pl { background: #c7c7cc; }
@media (prefers-reduced-motion: reduce) { .olb-c, .olb-free, .olb-bar::after, .olb-call { animation: none; } }
.ow-login-hs { margin: 14px 0 0; font-size: 13.5px; line-height: 1.45; color: #a1a1a6; }
@media (max-width: 860px) {
  .ow-login .owz-top-in { grid-template-columns: auto 1fr auto; }
  .ow-login .owz-step { padding: 28px 26px; }
}
@media (max-width: 640px) {
  .ow-login .ow-login-pl { display: none; }
  .ow-login .owz-top-in { grid-template-columns: 1fr auto; padding-bottom: 10px; }
  .ow-login .owz-step { padding: 0; }
  .owz.ow-login h1 { font-size: 28px; }
  .ow-login .owz-sub { font-size: 15px; margin: 6px 0 18px; }
  .ow-login .owz-ghost { height: 40px; padding: 0 14px; font-size: 14px; }
}

/* ---------- narrower screens ---------- */
@media (max-width: 1440px) {
  .ow-clock span { display: none; } /* time only, the date is on the day head of «Сегодня» */
}
@media (max-width: 1320px) {
  .ow-tabs a:not(.on) span { display: none; } /* icons only, the open tab keeps its name */
  .ow-tabs a:not(.on) { padding: 0 11px; }
  .ow-bar-r { gap: 8px; }
}
@media (max-width: 1100px) {
  body.ow { --ow-pad: 20px; }
  .ow-clock { display: none; }
  .ow-bbtn span { display: none; }
  .ow-bbtn { width: 40px; padding: 0; }
}
@media (max-width: 1100px) and (min-width: 961px) {
  .ow-bbtn { width: auto; padding: 0 14px; }
  .ow-bbtn span { display: inline; }
  .ow-tabs a span { display: none; }
  .ow-tabs a { padding: 0 11px; }
  .ow-tabs a.on span { display: inline; }
}
@media (max-width: 960px) {
  body.ow { --ow-pad: 18px; }
  .ow-bar-in { flex-wrap: wrap; gap: 10px 12px; padding-top: 10px; padding-bottom: 10px; }
  .ow-brand { flex: 1; }
  .ow-point { max-width: none; flex: 1; }
  .ow-clock-m { display: block; }
  .ow-tabs { order: 3; width: 100%; margin: 0; padding: 3px; border-radius: 11px; background: rgba(255, 255, 255, .07); }
  .ow-tabs a, .ow-tabs a:not(.on) { flex: 1 1 0; min-width: 0; justify-content: center; padding: 0 8px; }
  .ow-tabs a span, .ow-tabs a:not(.on) span { display: inline; overflow: hidden; text-overflow: ellipsis; }
  .ow-bbtn { width: auto; padding: 0 14px; }
  .ow-bbtn span { display: inline; }
}
@media (max-width: 640px) {
  body.ow { --ow-pad: 16px; --ow-tabbar: calc(62px + env(safe-area-inset-bottom)); }
  .ow-bar-in { padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: 10px; gap: 8px 10px; }
  .ow-brand { gap: 10px; }
  .ow-brand .bx-logo { font-size: 21px; }
  .ow-brand-sep { height: 22px; }
  .ow-point { padding: 4px 6px; margin-left: -4px; gap: 6px; }
  .ow-point-t b { font-size: 14.5px; }
  .ow-point-t small { font-size: 11.5px; }
  .ow-tabs { display: none; }
  .ow-bar-r { order: 2; width: 100%; gap: 8px; }
  .ow-bar-r .ow-bbtn { flex: 1; height: 44px; font-size: 15px; }
  .ow-bar-r .ow-ibtn { display: none; } /* «Выйти» is in the point menu */
  .ow-main { padding-top: 16px; padding-bottom: calc(24px + var(--ow-tabbar)); }
  .ow-foot { padding-bottom: calc(18px + var(--ow-tabbar)); }
  .ow-tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 16; padding: 6px 4px env(safe-area-inset-bottom);
    background: rgba(251, 251, 253, .9); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid rgba(0, 0, 0, .08);
  }
  .ow-tabbar a { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 0 6px; min-height: 52px; text-decoration: none; color: var(--ink-3); font: 600 10.5px/1.1 var(--font); border-radius: 12px; transition: color .2s; }
  .ow-tabbar a svg { width: 24px; height: 24px; stroke-width: 1.8; }
  .ow-tabbar a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ow-tabbar a.on { color: var(--ink); }
  .ow-tabbar a.on svg { stroke-width: 2.3; }
  body.ow .toast { top: auto; bottom: calc(16px + var(--ow-tabbar)); }
  .ow-bar2 h2 { font-size: 30px; }
  .ow-modal-bg { align-items: flex-end; padding: 0; }
  .ow-modal, .ow-modal.wide { max-width: none; max-height: 94dvh; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); animation: ow-sheet .38s var(--ow-ease); }
  @keyframes ow-sheet { from { transform: translateY(40px); opacity: .6; } }
  .ow-modal.ow-confirm { border-radius: 22px 22px 0 0; max-width: none; }
  .ow-modal-b { padding: 4px 16px 20px; }
  .ow-modal-h { padding: 14px 12px 10px 16px; }
  .ow-modal-h h3 { font-size: 22px; }
  .ow-kpis .k { padding: 14px 14px 15px; }
  .ow-kpis .k b { font-size: 26px; }
}
@media (max-width: 360px) {
  .ow-brand .bx-logo { font-size: 19px; }
  .ow-brand { gap: 8px; }
  .ow-clock-m b { font-size: 15px; }
  .ow-bar-r .ow-bbtn { font-size: 14px; padding: 0 10px; }
  .ow-tabbar a { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .ow-tab, .ow-modal, .ow-modal-bg, .ow-menu, body.ow .toast, .ow-load .ow-dots i { animation: none !important; }
  .ow-tabs a, .ow-bbtn, .ow-btn, .ow-caret { transition: none !important; }
}

/* ---------- phones: one-row sticky bar, the «+» (add a car) in the middle of the tab bar ---------- */
.ow-tb-add { display: none; }
.ow-add { display: grid; gap: 10px; padding-bottom: 6px; }
.ow-add-o { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 16px; border-radius: 18px; background: #fff; box-shadow: var(--ow-shadow-s); min-height: 76px; transition: transform .15s, box-shadow .2s; }
.ow-add-o:active { transform: scale(.985); }
.ow-add-o i { width: 48px; height: 48px; border-radius: 14px; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; }
.ow-add-o i svg { width: 24px; height: 24px; }
.ow-add-o > span { display: grid; gap: 3px; flex: 1; min-width: 0; }
.ow-add-o b { font-size: 16px; }
.ow-add-o small { font-size: 13.5px; color: var(--ink-3); }
.ow-add-o > svg { transform: rotate(-90deg); color: var(--ink-3); width: 18px; height: 18px; }
@media (max-width: 640px) {
  .ow-bar-r { display: none; }
  .ow-bar-in { flex-wrap: nowrap; }
  .ow-tabbar .ow-tb-add { display: flex; flex: 1 1 0; min-width: 0; flex-direction: column; align-items: center; gap: 3px; padding: 0 0 6px; color: var(--ink); font: 600 10.5px/1.1 var(--font); }
  .ow-tb-add i { width: 46px; height: 34px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); transition: transform .15s; }
  .ow-tb-add:active i { transform: scale(.94); }
  .ow-tb-add i svg { width: 22px; height: 22px; }
  .ow-tabbar a { position: relative; }
  .ow-tabbar a.on::before { content: ''; position: absolute; top: -6px; left: 50%; width: 18px; margin-left: -9px; height: 3px; border-radius: 0 0 3px 3px; background: var(--ow-red); }
}
@media (max-width: 640px) { .ow-x { width: 44px; height: 44px; } }
@media (max-width: 360px) { .ow-tabbar a, .ow-tabbar .ow-tb-add { font-size: 9.5px; letter-spacing: -.02em; } }
/* text fields draw their own focus ring (border + soft halo): no second outline around them */
body.ow input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus-visible, body.ow select:focus-visible, body.ow textarea:focus-visible { outline: none; }
.ow-confirm .ow-muted { white-space: pre-line; } /* multi-line confirm texts (P1-3 conflicts) */

/* «Ссылка в Яндекс Картах и 2ГИС» (common.js openMapsGuide): numbered steps, the links to copy right where they go */
.ow-guide { display: grid; gap: 14px; font-size: 14.5px; line-height: 1.5; }
.ow-guide-lead { margin: 0; }
.ow-guide-cap { margin: 6px 0 -6px; font: 700 11px/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3, #6e6e73); }
.ow-guide-link { display: flex; gap: 8px; align-items: center; }
.ow-guide-link .ow-input { flex: 1; min-width: 0; font-size: 14px; }
.ow-guide-link .ow-btn { flex: none; gap: 6px; }
.ow-guide-s { padding: 14px 16px; border-radius: 14px; background: var(--bg, #f4f4f6); }
.ow-guide-s h4 { margin: 0 0 6px; font: 700 16px/1.25 var(--display, inherit); }
.ow-guide-s > .ow-muted { margin: 0 0 6px; }
.ow-guide-s ol, .ow-guide-s ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.ow-guide-wait { margin: 8px 0 0; font-size: 13px; color: var(--ink-3, #6e6e73); }
@media (max-width: 560px) { .ow-guide-link { flex-direction: column; align-items: stretch; } }
