/* Смена — платформа Gastro Ultima. Manrope, тёплый светлый фон, чёрный и жёлтый акцент. Мобильный первым. */
:root {
  --bg: #F4F2ED; --surface: #FFFFFF; --surface-2: #FAF8F4; --ink: #111111; --text: #2E2C28; --muted: #6E695F;
  --line: #ECE7DD; --line-2: #DDD6C8; --sand: #F3EFE7;
  --yellow: #FFC400; --yellow-soft: #FFF3C4; --yellow-ink: #6B5000;
  --good: #128A3E; --good-bg: #E3F3E8; --warn: #B26A00; --warn-bg: #FFF1D6; --bad: #C2332F; --bad-bg: #FBE5E3;
  --info: #2F5FD0; --info-bg: #E7EEFC;
  --r: 18px; --r-s: 12px;
  --shadow: 0 1px 2px rgba(17,17,17,.04), 0 6px 24px rgba(17,17,17,.05);
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --nav-h: 84px; --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F0F0E; --surface: #1A1A18; --surface-2: #151513; --ink: #F5F2EA; --text: #DAD5CB; --muted: #A39E93;
    --line: #2A2926; --line-2: #36342F; --sand: #22211E; --yellow-soft: #3A2F08; --yellow-ink: #FFD95A;
    --good-bg: #13301E; --good: #4CC27A; --warn-bg: #3A2A0B; --warn: #F2B24C; --bad-bg: #3A1614; --bad: #F07A72;
    --info-bg: #142242; --info: #7DA2F5; --shadow: none; color-scheme: dark;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 17px; line-height: 1.45; -webkit-font-smoothing: antialiased; min-height: 100dvh; overscroll-behavior-y: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: var(--ink); }
a { color: inherit; text-decoration: none; }
b, strong { color: var(--ink); font-weight: 700; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.boot { min-height: 100dvh; display: grid; place-items: center; }
.wm { font-weight: 800; letter-spacing: .22em; text-transform: uppercase; font-size: 11px; color: var(--ink); }

/* ---------- каркас ---------- */
.shell { max-width: 560px; margin: 0 auto; padding: calc(14px + var(--safe-t)) 16px calc(var(--nav-h) + 48px + var(--safe-b)); }
.shell.wide { max-width: 1040px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 14px; }
.top h1 { font-size: 30px; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); font-weight: 800; }
.top .sub { font-size: 15px; color: var(--muted); margin-top: 3px; }
.iconbtn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow); position: relative; flex: none; }
.iconbtn .badge { position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; padding: 0 4px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 800; font-size: 17px; padding: 10px 16px 10px 10px; margin-left: -10px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }

.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface);
  border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
.nav > div { max-width: 560px; margin: 0 auto; display: flex; height: var(--nav-h); }
.nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; position: relative; }
.nav a.on { color: var(--ink); }
.nav a.on::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--yellow); }
.nav a .badge { position: absolute; top: 12px; left: calc(50% + 6px); min-width: 16px; height: 16px; border-radius: 8px; background: var(--bad); color: #fff; font-size: 10px; display: grid; place-items: center; padding: 0 4px; }
@media (min-width: 960px) {
  .nav { top: 0; right: auto; width: 92px; border-top: 0; border-right: 1px solid var(--line); }
  .nav > div { flex-direction: column; height: auto; padding-top: 24px; gap: 6px; }
  .nav a { flex: none; height: 66px; }
  .nav a.on::before { top: 14px; left: 0; width: 3px; height: 36px; border-radius: 0 3px 3px 0; }
  .shell { padding-left: 116px; padding-bottom: 40px; }
  .shell.wide { max-width: 1140px; }
}

.nav a svg { width: 28px; height: 28px; }
.nav .fab-slot { flex: 1; display: flex; justify-content: center; position: relative; }
.fab { position: absolute; top: -26px; width: 76px; height: 76px; border-radius: 50%; background: var(--yellow); color: #111; display: flex; flex-direction: column;
  align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(255,196,0,.45), 0 0 0 6px var(--bg); transition: transform .1s; }
.fab:active { transform: scale(.94); }
.fab svg { width: 38px; height: 38px; }
.fab-label { position: absolute; bottom: 8px; font-size: 13px; font-weight: 800; color: var(--ink); }
@media (min-width: 960px) {
  .nav .fab-slot { flex: none; height: 110px; }
  .fab { position: static; margin-top: 8px; box-shadow: 0 6px 20px rgba(255,196,0,.45); }
  .fab-label { bottom: 6px; }
}

/* ---------- карточки ---------- */
.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; margin-bottom: 12px; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 2px 10px; }
.sec-h h2 { font-size: 15px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.sec-h a, .sec-h button { font-size: 15px; font-weight: 700; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 960px) { .cols { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: start; } }

/* смена */
.shift { padding: 22px 20px 20px; position: relative; overflow: hidden; }
.shift.on { background: #141413; color: #D9D4C9; box-shadow: inset 0 0 0 1.5px rgba(255,196,0,.35), var(--shadow); }
.shift.on b, .shift.on .big { color: #fff; }
.shift .lbl { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.shift.on .lbl { color: var(--yellow); }
.shift .big { font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--ink); margin: 10px 0 6px; font-variant-numeric: tabular-nums; }
.shift .meta { font-size: 14px; }
.shift .row { display: flex; gap: 10px; margin-top: 18px; }
.pulse { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); margin-right: 8px; vertical-align: 1px; animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,196,0,.55); } 70% { box-shadow: 0 0 0 10px rgba(255,196,0,0); } 100% { box-shadow: 0 0 0 0 rgba(255,196,0,0); } }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 62px; padding: 0 22px; border-radius: 18px; font-weight: 800; font-size: 18px; letter-spacing: -.005em; transition: transform .08s, opacity .2s; user-select: none; }
.btn:active { transform: scale(.98); }
.btn.block { width: 100%; }
.btn.y { background: var(--yellow); color: #111; }
.btn.k { background: var(--ink); color: var(--bg); }
.btn.w { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.shift.on .btn.w { background: #242422; color: #fff; box-shadow: none; }
.btn.red { background: var(--bad-bg); color: var(--bad); }
.btn.s { min-height: 52px; font-size: 16px; border-radius: 14px; padding: 0 18px; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn .spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* чипы и статусы */
.chip { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border-radius: 15px; font-size: 14px; font-weight: 800; white-space: nowrap; background: var(--sand); color: var(--text); }
.chip.good { background: var(--good-bg); color: var(--good); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.info { background: var(--info-bg); color: var(--info); }
.chip.y { background: var(--yellow-soft); color: var(--yellow-ink); }

/* чек-листы списком */
.run { display: flex; gap: 16px; align-items: center; min-height: 84px; padding: 16px 18px; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: 10px; cursor: pointer; }
.run .ring { flex: none; width: 56px; height: 56px; }
.run .ring text { font-size: 11px; font-weight: 800; fill: var(--ink); }
.run .t { flex: 1; min-width: 0; }
.run .t b { display: block; font-size: 18px; line-height: 1.25; }
.run .t span { font-size: 15px; color: var(--muted); }
.run .r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

/* экран чек-листа */
.progress { height: 12px; border-radius: 6px; background: var(--line); overflow: hidden; margin: 12px 0 4px; }
.progress i { display: block; height: 100%; background: var(--yellow); border-radius: 4px; transition: width .35s; }
.grp { font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 20px 4px 8px; }
.item { display: flex; gap: 14px; align-items: center; min-height: 76px; padding: 14px 12px 14px 14px; cursor: pointer; user-select: none; background: var(--surface); border-radius: 14px; margin-bottom: 8px; box-shadow: var(--shadow); }
.item .tick { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--line-2); display: grid; place-items: center; transition: all .15s; }
.item.done .tick { background: var(--good); border-color: var(--good); color: #fff; }
.item.fail .tick { background: var(--bad); border-color: var(--bad); color: #fff; }
.item .tx { flex: 1; min-width: 0; }
.item .tx p { font-size: 17px; line-height: 1.38; color: var(--ink); }
.item.done .tx p { color: var(--muted); }
.item .who { font-size: 14px; color: var(--muted); margin-top: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.item .note { font-size: 15px; color: var(--bad); margin-top: 4px; }
.item .cam { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 800; color: var(--yellow-ink); background: var(--yellow-soft); border-radius: 8px; padding: 3px 7px; margin-top: 6px; }
.item .more { flex: none; width: 56px; min-height: 56px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--bad); background: var(--bad-bg); font-size: 11.5px; font-weight: 800; }
.thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--line); flex: none; cursor: zoom-in; }
.thumb.s { width: 40px; height: 40px; border-radius: 8px; }
.sticky { position: sticky; bottom: calc(var(--nav-h) + 44px + var(--safe-b)); z-index: 5; margin-top: 16px; }
.sticky .btn[disabled] { opacity: 1; background: var(--surface); color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line-2), var(--shadow); }
@media (min-width: 960px) { .sticky { bottom: 16px; } }

/* люди */
.person { display: flex; align-items: center; gap: 14px; padding: 14px 0; min-height: 72px; border-bottom: 1px solid var(--line); }
.person:last-child { border-bottom: 0; }
.ava { width: 52px; height: 52px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; font-weight: 800; color: var(--muted); font-size: 15px; overflow: hidden; flex: none; }
.ava img { width: 100%; height: 100%; object-fit: cover; }
.person .t { flex: 1; min-width: 0; }
.person .t b { display: block; font-size: 17px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .t span { font-size: 14.5px; color: var(--muted); }

/* плитки цифр */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 16px; }
.tile small { display: block; font-size: 15px; color: var(--muted); font-weight: 700; }
.tile b { display: block; font-size: 36px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.tile i { font-style: normal; font-size: 14px; color: var(--muted); }
.tile.bad b { color: var(--bad); } .tile.good b { color: var(--good); } .tile.warn b { color: var(--warn); }

/* полоски по дням */
.days { display: grid; gap: 8px; }
.day { display: grid; grid-template-columns: 62px 1fr 72px; align-items: center; gap: 10px; font-size: 15px; }
.day .bar { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.day .bar i { display: block; height: 100%; border-radius: 5px; background: var(--ink); }
.day .bar i.y { background: var(--yellow); }

/* события */
.ev { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.ev:last-child { border-bottom: 0; }
.ev .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--line-2); }
.ev .dot.critical { background: var(--bad); } .ev .dot.warning { background: var(--yellow); } .ev .dot.info { background: var(--info); }
.ev p { font-size: 16.5px; color: var(--ink); line-height: 1.4; }
.ev.read p { color: var(--text); }
.ev small { color: var(--muted); font-size: 14px; }

/* формы */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 15px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.inp { width: 100%; height: 60px; border-radius: 16px; border: 2px solid var(--line-2); background: var(--surface); padding: 0 18px; font-size: 18px; outline: none; transition: border-color .15s; }
.inp:focus { border-color: var(--ink); }
textarea.inp { height: 110px; padding: 14px 16px; resize: none; line-height: 1.4; }
select.inp { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 23px, calc(100% - 16px) 23px; background-size: 6px 6px; background-repeat: no-repeat; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { min-height: 52px; padding: 0 18px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 2px var(--line-2); font-weight: 800; font-size: 16px; }
.seg button.on { background: var(--ink); color: var(--bg); box-shadow: none; }
.err { color: var(--bad); font-size: 16px; font-weight: 600; min-height: 20px; margin-top: 4px; }

/* голос: кнопка как в мессенджере */
.vfield { position: relative; }
.vfield textarea.inp { height: 116px; padding-right: 92px; }
.mic { position: absolute; right: 10px; bottom: 10px; width: 72px; height: 72px; border-radius: 50%; background: var(--yellow); color: #111; display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(255,196,0,.35); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: transform .12s, background .15s; }
.mic:active { transform: scale(.94); }
.mic[disabled] { opacity: .5; }
.vin.rec .mic { background: var(--bad); color: #fff; transform: scale(1.12); box-shadow: 0 0 0 8px rgba(194,51,47,.18); animation: micpulse 1.2s infinite; }
@keyframes micpulse { 50% { box-shadow: 0 0 0 14px rgba(194,51,47,.08); } }
.vstate { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.vhint { font-size: 15px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.vrec { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--bad); font-variant-numeric: tabular-nums; }
.vrec i { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); animation: blink 1s infinite; }
.vrec em { font-style: normal; font-weight: 600; font-size: 12.5px; color: var(--muted); }
@keyframes blink { 50% { opacity: .25; } }
.vcancel { font-weight: 800; font-size: 16px; color: var(--ink); padding: 12px 16px; border-radius: 14px; background: var(--sand); }
.vclip { display: inline-flex; align-items: center; gap: 10px; }
.vok { font-size: 12.5px; color: var(--good); font-weight: 700; }
.vdel { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: var(--sand); }
.vplay { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 22px; background: var(--info-bg); color: var(--info); font-weight: 800; font-size: 15px; margin: 6px 0 2px; }

/* вход */
.login { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; max-width: 420px; margin: 0 auto; padding: 32px 22px calc(32px + var(--safe-b)); }
.login h1 { font-size: 40px; line-height: 1.05; letter-spacing: -.03em; color: var(--ink); font-weight: 800; margin: 18px 0 8px; }
.login p.lead { color: var(--muted); margin-bottom: 26px; }
.install { background: var(--yellow-soft); border-radius: 16px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; margin-bottom: 22px; }
.install b { display: block; font-size: 14.5px; }
.install span { font-size: 13px; color: var(--yellow-ink); }

/* нижняя панель-лист */
.sheet-bg { position: fixed; inset: 0; background: rgba(10,10,10,.42); z-index: 50; animation: fade .2s; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; background: var(--surface); border-radius: 24px 24px 0 0; padding: 10px 18px calc(22px + var(--safe-b)); max-height: 92dvh; overflow: auto; animation: up .26s cubic-bezier(.2,.8,.2,1); max-width: 560px; margin: 0 auto; }
.sheet::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 0 auto 14px; }
.sheet h3 { font-size: 24px; color: var(--ink); letter-spacing: -.01em; margin-bottom: 6px; }
.sheet p.d { color: var(--muted); font-size: 16px; margin-bottom: 16px; }
.sheet .acts { display: grid; gap: 10px; margin-top: 16px; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
.viewer { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 60; display: grid; place-items: center; animation: fade .2s; }
.viewer img { max-width: 100vw; max-height: 100dvh; object-fit: contain; }

#toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 48px + var(--safe-b)); transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--bg); padding: 16px 22px; border-radius: 16px; font-weight: 800; font-size: 17px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 70; max-width: calc(100vw - 32px); text-align: center; }
#toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.bad { background: var(--bad); color: #fff; }

/* таблица графика */
.sched { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
.sched table { border-collapse: separate; border-spacing: 4px; min-width: 640px; }
.sched th { font-size: 12px; color: var(--muted); font-weight: 800; text-align: center; padding: 4px; }
.sched th.today { color: var(--ink); }
.sched td.n { font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; padding-right: 8px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.sched td.n span { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.cell { width: 84px; height: 58px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 800; color: var(--muted); line-height: 1.15; }
.cell.set { background: var(--ink); color: var(--bg); box-shadow: none; }
.cell.set.morning, .cell.set.adm_m { background: var(--yellow); color: #111; }
.cell small { display: block; font-weight: 600; opacity: .8; }

.empty { text-align: center; padding: 34px 20px; color: var(--muted); }
.empty b { display: block; font-size: 16px; margin-bottom: 4px; }
.hint { font-size: 15px; color: var(--muted); line-height: 1.45; }
.sep { height: 1px; background: var(--line); margin: 14px 0; }
.row-b { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mt { margin-top: 12px; }

/* подсказка над чек-листом */
.howto { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; background: var(--surface); border-radius: 16px; padding: 12px 14px; margin: 14px 0 4px; font-size: 15px; box-shadow: var(--shadow); }
.howto span { display: inline-flex; align-items: center; gap: 6px; }
.howto .ok { width: 30px; height: 30px; border-radius: 50%; background: var(--good); color: #fff; display: grid; place-items: center; flex: none; }
.howto .no { width: 30px; height: 30px; border-radius: 9px; background: var(--bad-bg); color: var(--bad); display: grid; place-items: center; flex: none; }
.item.done .more, .item.fail .more { display: none; }
.btn svg { flex: none; }
.shift .big { font-size: 52px; }
.shift .meta { font-size: 16px; }
.shift .lbl { font-size: 14px; }

/* ---------- кабинет собственника ---------- */
.per button { flex: 1; }
.per { flex-wrap: nowrap; }
.tiles.t3 { grid-template-columns: repeat(3, 1fr); }
.tile .chip { margin-top: 6px; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .bar { fill: var(--ink); opacity: .82; }
.chart .bar.hl { fill: var(--yellow); opacity: 1; }
.chart g:hover .bar { opacity: 1; }
.chart .gl { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .avgl { stroke: var(--yellow-ink); stroke-width: 2; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.chart .ax { fill: var(--muted); font-size: 13px; font-family: var(--font); }
.hb { display: grid; gap: 12px; }
.hb-row { cursor: default; }
.hb-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.hb-n { font-size: 16px; font-weight: 700; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-v { font-size: 16px; font-weight: 800; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hb-v .chip { margin-left: 6px; vertical-align: 1px; height: 26px; font-size: 13px; }
.hb-bar { height: 10px; border-radius: 5px; background: var(--line); margin-top: 6px; overflow: hidden; }
.hb-bar i { display: block; height: 100%; border-radius: 5px; background: var(--ink); opacity: .82; }
.hb-s { font-size: 14px; color: var(--muted); margin-top: 4px; }
.heat { display: grid; grid-template-columns: 30px repeat(16, 1fr); gap: 3px; }
.heat .hx { font-size: 12px; color: var(--muted); text-align: center; }
.heat .hy { font-size: 13px; font-weight: 700; color: var(--muted); display: flex; align-items: center; }
.heat .hc { aspect-ratio: 1; border-radius: 5px; min-height: 16px; cursor: pointer; }
.heat-l { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.heat-l i { flex: 0 0 120px; height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--sand), var(--yellow)); }
.tip { position: fixed; z-index: 80; background: var(--ink); color: var(--bg); font-size: 15px; font-weight: 700; padding: 10px 14px; border-radius: 12px; max-width: 280px; pointer-events: none; box-shadow: 0 6px 20px rgba(0,0,0,.2); display: none; line-height: 1.35; }
.sig { display: flex; gap: 14px; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; margin-bottom: 10px; border-left: 5px solid var(--line-2); }
.sig.bad { border-left-color: var(--bad); } .sig.warn { border-left-color: var(--yellow); } .sig.good { border-left-color: var(--good); } .sig.info { border-left-color: var(--info); }
.sig-i { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--sand); }
.sig.bad .sig-i { background: var(--bad-bg); color: var(--bad); } .sig.warn .sig-i { background: var(--yellow-soft); color: var(--yellow-ink); }
.sig.good .sig-i { background: var(--good-bg); color: var(--good); } .sig.info .sig-i { background: var(--info-bg); color: var(--info); }
.sig b { display: block; font-size: 17px; margin-top: 6px; line-height: 1.3; }
.sig p { font-size: 15.5px; margin-top: 4px; line-height: 1.45; }
.rec { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 10px; }
.rec b { display: block; font-size: 17px; margin-top: 10px; line-height: 1.3; }
.rec p { font-size: 15.5px; margin-top: 4px; line-height: 1.45; }
.eff { font-weight: 800; color: var(--good); font-size: 16px; white-space: nowrap; }
.eff small { font-weight: 600; color: var(--muted); font-size: 13px; }
.card.hero { background: #141413; color: #D9D4C9; }
.card.hero small { font-size: 15px; color: var(--yellow); font-weight: 800; }
.card.hero b { display: block; font-size: 34px; color: #fff; font-weight: 800; margin: 4px 0; letter-spacing: -.02em; }
.card.hero span { font-size: 15px; }
table.mt-t { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 15px; font-variant-numeric: tabular-nums; }
table.mt-t th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 800; padding: 6px 4px; border-bottom: 2px solid var(--line); }
table.mt-t td { padding: 9px 4px; border-bottom: 1px solid var(--line); color: var(--ink); }
.src { margin-top: 18px; display: flex; gap: 8px; align-items: center; }
.chartw { position: relative; }
.chartw .chart { width: 100%; display: block; overflow: visible; }
.ymax { font-size: 13px; color: var(--muted); font-weight: 700; text-align: right; margin-bottom: 2px; font-variant-numeric: tabular-nums; }
.xl { display: grid; margin-top: 6px; }
.xl span { font-size: 13px; color: var(--muted); text-align: center; white-space: nowrap; overflow: visible; }
.per button { padding: 0 8px; font-size: 15px; }
.live-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px var(--good-bg); flex: none; }
.seg.per { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; }
.seg.per button { white-space: nowrap; }

/* журнал действий */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-height: 44px; padding: 0 14px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 2px var(--line-2); font-weight: 700; font-size: 15px; }
.chips button.on { background: var(--ink); color: var(--bg); box-shadow: none; }
.jr { display: flex; gap: 12px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 8px; border-left: 5px solid var(--line-2); }
.jr.bad { border-left-color: var(--bad); } .jr.warn { border-left-color: var(--yellow); }
.jr-t { flex: none; width: 48px; font-weight: 800; color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.jr-b { flex: 1; min-width: 0; }
.jr-b b { font-size: 16.5px; line-height: 1.3; }
.jr-b p { font-size: 15px; line-height: 1.45; margin-top: 4px; overflow-wrap: anywhere; }
.jr-s { font-weight: 800; color: var(--ink); white-space: nowrap; font-size: 16px; }
.jr-m { font-size: 14px; color: var(--muted); margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.jr-m .chip { height: 26px; font-size: 12.5px; }
a.jr-card { display: block; }

.seg.per button { white-space: normal; line-height: 1.15; padding: 4px 8px; }

/* закупки */
.pi { display: flex; gap: 12px; align-items: center; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 12px 12px 12px 16px; margin-bottom: 8px; }
.pi.on { box-shadow: inset 0 0 0 2.5px var(--yellow), var(--shadow); }
.pi-t { flex: 1; min-width: 0; }
.pi-t b { display: block; font-size: 17px; line-height: 1.25; }
.pi-t span { font-size: 14px; color: var(--muted); }
.step { display: flex; align-items: center; gap: 4px; flex: none; }
.step button { width: 46px; height: 46px; border-radius: 14px; background: var(--sand); font-size: 26px; font-weight: 800; color: var(--ink); line-height: 1; }
.step input { width: 58px; height: 46px; border-radius: 12px; border: 2px solid var(--line-2); text-align: center; font-size: 18px; font-weight: 800; background: var(--surface); }
.step span { display: none; }
.pl { display: flex; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pl:last-child { border-bottom: 0; }
.pl .t { flex: 1; min-width: 0; }
.pl .t b { display: block; font-size: 16.5px; }
.pl .t span { font-size: 14px; color: var(--muted); }
.pl .qty { width: 92px; height: 50px; text-align: center; font-weight: 800; }
.pl .u { width: 28px; color: var(--muted); font-size: 14px; }
.pl .qv { white-space: nowrap; font-size: 16px; }
pre.msg { white-space: pre-wrap; font-family: var(--font); font-size: 15.5px; line-height: 1.45; color: var(--ink); }
.steps-v { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 4px 0 14px; }
.steps-v div { background: var(--surface); border-radius: 12px; padding: 8px 6px; text-align: center; box-shadow: var(--shadow); opacity: .55; }
.steps-v div.done { opacity: 1; }
.steps-v i { width: 22px; height: 22px; border-radius: 50%; background: var(--line); display: grid; place-items: center; margin: 0 auto 4px; }
.steps-v div.done i { background: var(--good); color: #fff; }
.steps-v b { display: block; font-size: 13px; }
.steps-v span { display: block; font-size: 11px; color: var(--muted); line-height: 1.25; margin-top: 2px; }
.run .ava { flex: none; }
.run .t span { overflow-wrap: anywhere; }
@media (max-width: 420px) { .run { flex-wrap: wrap; } .run .r, .run > .chip { margin-left: auto; } }

/* подсказка по роли и новости-ссылки */
.hintc { background: var(--yellow-soft); box-shadow: none; }
.hintc b { font-size: 17px; }
.hstep { display: flex; gap: 12px; align-items: center; margin-top: 10px; font-size: 16px; color: var(--ink); line-height: 1.35; }
.hstep i { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); color: #111; font-style: normal; font-weight: 800; display: grid; place-items: center; }
a.ev { align-items: center; color: inherit; }
a.ev svg { color: var(--muted); flex: none; }

/* план аудита */
details.dir { padding: 14px 16px; }
details.dir summary { list-style: none; display: flex; gap: 12px; align-items: center; cursor: pointer; }
details.dir summary::-webkit-details-marker { display: none; }
.dir-n { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); color: #111; font-weight: 800; display: grid; place-items: center; }
details.dir .t { flex: 1; min-width: 0; }
details.dir .t b { display: block; font-size: 17px; }
details.dir .t span { font-size: 14px; color: var(--muted); line-height: 1.35; display: block; }
.dir-e { text-align: right; flex: none; max-width: 42%; }
.dir-e b { display: block; font-size: 15px; color: var(--good); white-space: nowrap; }
.dir-e b.muted { color: var(--muted); white-space: normal; font-size: 13px; }
.dir-e small { font-size: 12px; color: var(--muted); }
details.dir[open] summary { margin-bottom: 8px; }
.kpi { border-top: 1px solid var(--line); padding: 10px 0 4px; }
.kpi-h { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 15px; font-weight: 700; }
.kpi-v { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.kpi-v small { display: block; font-size: 12px; color: var(--muted); }
.kpi-v b { font-size: 14.5px; line-height: 1.3; }
.pstep { background: var(--bg); border-radius: 12px; padding: 10px 12px; margin-top: 8px; }
.pstep b { display: block; font-size: 15px; } .pstep p { font-size: 14px; color: var(--muted); margin-top: 2px; }

/* техничка: обход, задачи, маркировка, числа */
.run.round { border: 2px solid var(--yellow); }
.run.round.late { border-color: var(--bad); }
.run.round.ok { border-color: transparent; }
.lnk { display: block; background: none; border: 0; color: var(--muted); text-decoration: underline; font: inherit; font-size: 15px; padding: 12px 2px 0; text-align: left; cursor: pointer; }
.card.task b { display: block; font-size: 17px; margin-top: 10px; line-height: 1.3; color: var(--ink); }
.check { display: flex; gap: 10px; align-items: center; font-size: 16px; margin: 6px 0 4px; }
.check input { width: 24px; height: 24px; accent-color: #111; }
.seg.wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.seg.wrap button { flex: 1 1 auto; }
.plist { display: grid; gap: 6px; max-height: 260px; overflow-y: auto; }
.pk { text-align: left; font: inherit; font-size: 16px; font-weight: 600; min-height: 50px; border: 0; border-radius: 12px; background: var(--sand); color: var(--ink); padding: 8px 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pk small { color: var(--muted); font-weight: 600; white-space: nowrap; }
.pk.new { background: var(--yellow-soft); }
.card.prep.expired { border: 2px solid var(--bad); }
.card.prep.today { border: 2px solid var(--warn, #C98A00); }
.card.prep b { font-size: 17px; }
.btn.s { min-height: 50px; font-size: 16px; }
.label { border: 2px dashed var(--line-2); border-radius: 16px; padding: 16px; margin-bottom: 10px; }
.label .l-n { font-size: 22px; font-weight: 800; color: var(--ink); border-bottom: 2px solid var(--ink); padding-bottom: 6px; margin-bottom: 8px; }
.label .l-r { display: flex; justify-content: space-between; font-size: 17px; padding: 3px 0; }
.label .l-r span { color: var(--muted); }
.label .l-exp { font-size: 22px; color: var(--ink); }
.numin { display: flex; gap: 10px; align-items: center; }
.numin .inp { font-size: 34px; font-weight: 800; text-align: center; height: 76px; flex: 1; }
.numin button { width: 76px; height: 76px; border-radius: 16px; border: 0; background: var(--sand); font-size: 36px; font-weight: 800; color: var(--ink); }
.numin span { font-size: 24px; font-weight: 800; color: var(--muted); }
.nval { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: var(--good-bg, #E5F3E8); color: var(--good); font-weight: 800; font-size: 15px; white-space: nowrap; }
.nval.bad { background: var(--bad-bg, #FBE7E6); color: var(--bad); }

/* документы */
.dgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dtile { text-align: left; font: inherit; border: 0; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); padding: 14px; min-height: 120px; color: var(--ink); display: flex; flex-direction: column; gap: 6px; }
.dtile b { font-size: 16px; line-height: 1.25; }
.dtile span { font-size: 13px; color: var(--muted); line-height: 1.3; }
.dtile svg { color: var(--yellow-ink); }
.dtile:active { background: var(--yellow-soft); }
.dform .field { margin-bottom: 16px; }
.dv { font-size: 17px; color: var(--ink); padding: 6px 0; }
.dv.auto { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; font-size: 15.5px; line-height: 1.5; }
.inp.big { font-size: 24px; font-weight: 800; height: 62px; }
.check.big { font-size: 17px; font-weight: 600; padding: 12px 0; }
.check.ro { opacity: .8; }
.frows { display: grid; gap: 6px; }
.frow { display: grid; grid-template-columns: 1fr 110px 28px; gap: 8px; align-items: center; font-size: 16px; }
.frow .inp { height: 52px; font-size: 20px; font-weight: 800; text-align: right; }
.frow i { font-style: normal; color: var(--muted); font-size: 14px; }
.prow { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.prow b { flex: 1; font-size: 16px; } .prow span { font-weight: 700; }
.thumb.big { width: 100%; height: auto; max-height: 260px; object-fit: cover; border-radius: 14px; margin-bottom: 8px; }

/* табель и загрузка */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.card.load { overflow-x: auto; }
.lrow { display: grid; grid-template-columns: 34px minmax(90px, 1fr) repeat(6, 40px); gap: 4px; align-items: center; font-size: 14px; padding: 3px 0; border-bottom: 1px solid var(--line); }
.lrow span { text-align: center; font-weight: 700; color: var(--ink); }
.lrow span:first-child { text-align: left; color: var(--muted); font-weight: 600; }
.lrow.lh span { font-size: 12px; color: var(--muted); font-weight: 600; }
.lrow.hot { background: var(--yellow-soft); border-radius: 8px; }
.lbar { display: flex; align-items: center; gap: 4px; height: 18px; }
.lbar i { display: block; height: 12px; background: var(--ink); border-radius: 0 4px 4px 0; min-width: 2px; opacity: .8; flex: none; max-width: 75%; }
.lbar em { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 700; }

.card.tgt { display: block; }
.card.tgt .hint { margin-top: 4px; }

/* пуш-уведомления */
.card.pushc { display: flex; gap: 14px; align-items: flex-start; border: 2px solid var(--y, #FFC400); }
.card.pushc.warn { border-color: var(--warn, #C98A00); }
.card.pushc > svg { flex: none; margin-top: 2px; }
.card.pushc > div { flex: 1; }
.ptopic { display: flex; width: 100%; justify-content: space-between; align-items: center; min-height: 56px; padding: 0 4px; font: inherit; font-size: 17px;
  background: none; border: 0; border-top: 1px solid rgba(127,127,127,.18); color: inherit; text-align: left; cursor: pointer; }
.ptopic i { font-style: normal; font-weight: 700; font-size: 14px; padding: 6px 14px; border-radius: 99px; background: rgba(127,127,127,.15); color: var(--muted); }
.ptopic.on i { background: var(--good-bg); color: var(--good); }

/* перф: без размытия под нижним меню — легче для слабых телефонов */

/* значок обновления данных: внизу слева, выше кнопки «Сообщить», не мешает нажимать */
#sync { position: fixed; z-index: 29; bottom: calc(var(--nav-h) + var(--safe-b) + 50px); left: 12px; transform: translateY(calc(100% + var(--nav-h) + 40px)); transition: transform .2s ease;
  display: inline-flex; align-items: center; gap: 8px; max-width: calc(100vw - 24px); min-height: 36px; padding: 7px 12px; border: 0; border-radius: 99px;
  background: var(--ink); color: var(--bg); font: inherit; font-size: 14px; font-weight: 700; white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,.18); pointer-events: none; }
#sync.on { transform: none; }
#sync.offline, #sync.newdata { pointer-events: auto; cursor: pointer; }
#sync.offline { background: var(--warn-bg); color: var(--warn); }
#sync.done { background: var(--good-bg); color: var(--good); }
#sync span { overflow: hidden; text-overflow: ellipsis; }
#sync b { text-decoration: underline; text-underline-offset: 3px; }
.sync-spin { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: syncspin .8s linear infinite; }
@keyframes syncspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #sync { transition: none; } .sync-spin { animation-duration: 2s; } }

/* бронь столов — крупно, под палец и планшет */
.bk-days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.bk-days::-webkit-scrollbar, .bk-times::-webkit-scrollbar { display: none; }
.bk-days button { flex: none; min-width: 74px; min-height: 64px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; padding: 6px 8px; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.bk-days button small { font-size: 12px; color: var(--muted); font-weight: 700; }
.bk-days button b { font-size: 16px; }
.bk-days button i { font-style: normal; font-size: 11px; color: var(--muted); }
.bk-days button.on { background: var(--yellow); border-color: var(--yellow); color: #111; }
.bk-days button.on small, .bk-days button.on i { color: #111; }
.bk-days.small button { min-height: 56px; min-width: 66px; }
.bk-times { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.bk-times button { flex: none; min-height: 48px; padding: 0 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; }
.bk-times button.on { background: var(--yellow); border-color: var(--yellow); color: #111; }
.bk-card { display: flex; gap: 14px; width: 100%; text-align: left; font: inherit; color: inherit; border: 0; margin-top: 10px; cursor: pointer; }
.bk-card.new { box-shadow: inset 4px 0 0 var(--warn); }
.bk-card.seated { box-shadow: inset 4px 0 0 var(--good); }
.bk-card.cancelled, .bk-card.noshow, .bk-card.done { opacity: .6; }
.bk-time { flex: none; width: 58px; } .bk-time b { font-size: 20px; display: block; } .bk-time small { color: var(--muted); font-size: 12px; }
.bk-main { flex: 1; min-width: 0; }
.bk-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.bk-t { min-height: 84px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; padding: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; }
.bk-t b { font-size: 18px; } .bk-t small { color: var(--muted); font-size: 12px; } .bk-t i { font-style: normal; font-size: 12px; font-weight: 700; }
.bk-t.new, .bk-t.confirmed { background: var(--warn-bg); border-color: var(--warn); }
.bk-t.seated { background: var(--good-bg); border-color: var(--good); }
.bk-step { display: flex; align-items: center; gap: 16px; }
.bk-step button { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font-size: 28px; font-weight: 700; }
.bk-step b { font-size: 30px; min-width: 44px; text-align: center; }
.bk-zones { display: grid; gap: 8px; }
.bk-zones button { text-align: left; min-height: 56px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; padding: 8px 14px; }
.bk-zones button small { display: block; color: var(--muted); font-size: 13px; }
.bk-zones button.on { border-color: var(--yellow); background: var(--yellow); color: #111; } .bk-zones button.on small { color: #111; }
.bk-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-tabs button { min-width: 64px; min-height: 52px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 800; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.bk-tabs button small { font-size: 11px; font-weight: 600; color: var(--muted); }
.bk-tabs button.on { background: var(--yellow); border-color: var(--yellow); color: #111; }
.bk-tabs button.busy { opacity: .4; }
.bk-today { display: block; margin-top: 12px; border: 2px solid var(--line); }
@media (min-width: 900px) { .bk-map { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); } }

/* отчёт о прибылях и убытках */
.pl-r { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.pl-r:first-of-type { border-top: 0; }
.pl-r span small { display: block; color: var(--muted); font-size: 12.5px; }
.pl-r b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-r.big b { font-size: 20px; }
.pl-r.sum { border-top: 2px solid var(--ink); font-weight: 800; }
.pl-r.good b { color: var(--good); } .pl-r.bad b { color: var(--bad); }
.pl-stock { margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }

/* ИИ: вопросы и переписки */
.ask-m { max-width: 86%; margin-top: 10px; padding: 10px 14px; border-radius: 18px; line-height: 1.45; }
.ask-m.user { margin-left: auto; background: var(--yellow); color: #111; border-bottom-right-radius: 6px; }
.ask-m.assistant { background: var(--surface); border-bottom-left-radius: 6px; }
.ask-m small { display: block; font-size: 11px; opacity: .6; margin-top: 4px; }
.ask-in { display: flex; gap: 8px; margin-top: 14px; align-items: flex-end; } .ask-in textarea { flex: 1; } .ask-in .btn { width: 60px; min-height: 60px; }
.ask-ex { display: grid; gap: 8px; margin-top: 10px; } .ask-ex .pk { text-align: left; }
.tl { max-height: 46vh; overflow-y: auto; }

/* видеоаналитика */
.vid { width: 100%; border-radius: 14px; margin-top: 10px; background: #000; aspect-ratio: 16 / 9; object-fit: cover; }
.vbars { display: flex; align-items: flex-end; gap: 4px; height: 140px; }
.vbars > div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.vbars i { display: block; width: 100%; min-height: 2px; background: var(--yellow); border-radius: 4px 4px 0 0; }
.vbars small { font-size: 10px; color: var(--muted); }

/* распознавание лица */
.face-ref { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.face-ico { width: 72px; height: 72px; margin: 4px auto 8px; border-radius: 50%; display: grid; place-items: center; background: var(--warn-bg); color: var(--warn); }

/* админ Gastro Ultima в кабинете клиента */
#imp { position: sticky; top: 0; z-index: 70; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: calc(var(--safe-t) + 8px) 16px 8px; background: #6B2CE0; color: #fff; font-size: 14px; font-weight: 700; }
#imp button { border: 0; border-radius: 99px; padding: 8px 14px; background: #fff; color: #3A1688; font: inherit; font-weight: 800; }

/* смены и нормы */
.nm-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px 96px 28px; gap: 6px; margin-top: 6px; align-items: center; }
.nm-row input[type="time"] { padding: 8px 4px; text-align: center; }
.nm-row input[type="time"]::-webkit-calendar-picker-indicator { display: none; }
.nm-row.n { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) 56px 28px; }
.nm-row .inp { min-height: 44px; padding: 8px 10px; font-size: 15px; }
.nm-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) 56px 28px; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 700; }

/* планшет у входа: крупно, читается с расстояния */
.kiosk-mode .nav, .kiosk-mode #sync, .kiosk-mode #imp { display: none !important; }
.kiosk { min-height: 100vh; display: flex; flex-direction: column; background: #0E0E0E; color: #F5F2EA; padding: calc(var(--safe-t) + 12px) 20px 24px; max-width: 900px; margin: 0 auto; }
.kiosk .kz { display: block; font-size: .62em; font-weight: 600; opacity: .7; margin-top: 2px; }
.k-top { display: flex; justify-content: space-between; align-items: center; font-size: 20px; }
.k-top span { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.k-cam { position: relative; margin: 14px auto; width: min(100%, 520px); aspect-ratio: 4 / 3; border-radius: 28px; overflow: hidden; background: #000; }
.k-cam video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.k-oval { position: absolute; left: 50%; top: 50%; width: 46%; height: 78%; transform: translate(-50%, -50%); border: 4px dashed rgba(255, 196, 0, .8); border-radius: 50%; }
.k-body { width: min(100%, 520px); margin: 0 auto; text-align: center; }
.k-go { width: 100%; min-height: 120px; border: 0; border-radius: 28px; background: var(--yellow); color: #111; font: inherit; font-size: 30px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 16px; }
.k-btn { display: block; width: 100%; min-height: 84px; margin-top: 12px; border-radius: 22px; border: 0; font: inherit; font-size: 24px; font-weight: 800; }
.k-btn.y { background: var(--yellow); color: #111; } .k-btn.w { background: #232320; color: #F5F2EA; } .k-btn.ghost { background: none; color: #A39E93; min-height: 56px; font-size: 18px; }
.k-name { font-size: 40px; margin: 4px 0 0; } .k-sub { color: #A39E93; font-size: 18px; margin-bottom: 6px; }
.k-hint { color: #A39E93; font-size: 17px; margin-top: 12px; } .k-err { color: #FFB4AB; font-size: 22px; font-weight: 700; margin: 6px 0; }
.k-wait { font-size: 26px; padding: 40px 0; display: flex; gap: 14px; justify-content: center; align-items: center; }
.k-ok { padding: 18px 0; color: #3DBE6B; } .k-ok h2 { font-size: 40px; color: #F5F2EA; } .k-ok p { font-size: 22px; color: #F5F2EA; }
.k-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; } .k-grid .k-btn { font-size: 19px; min-height: 76px; }
.k-search { margin-top: 14px; font-size: 22px; min-height: 64px; background: #1A1A18; color: #F5F2EA; border-color: #2A2925; }
.k-list { max-height: 34vh; overflow-y: auto; margin-top: 8px; text-align: left; }
.k-person { display: block; width: 100%; padding: 14px 16px; margin-top: 8px; border-radius: 16px; border: 0; background: #1A1A18; color: #F5F2EA; font: inherit; text-align: left; }
.k-person b { font-size: 20px; display: block; } .k-person span { color: #A39E93; font-size: 15px; }
.k-msg { margin: auto; text-align: center; max-width: 520px; } .k-msg h1 { font-size: 32px; } .k-msg p { color: #A39E93; margin: 10px 0 20px; }
