/* Шрифт Onest лежит в проекте (лицензия SIL OFL, fonts/OFL.txt): страницы не обращаются к чужим серверам. */
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/onest-cyrillic-ext.598aa19ac1bf.woff2") format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/onest-cyrillic.d1abf183873c.woff2") format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/onest-latin-ext.960412f3c7e3.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/onest-latin.fd7dbbcb3633.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Оформление Салетты: ночная синь и янтарь. Янтарь — только для главного: кнопка, новые заявки, логотип.
   Тёмный фон — потому что в полутёмном зале так лучше читаются цветные столы.
   Кабинет: слева меню с разделами и рестораном, в центре рабочий день; бронь открывается панелью справа.
   Страница гостя и вход используют те же переменные и элементы. */
:root {
  --bg: #0B1120; --panel: #0E1729; --surface: #122038; --raised: #1A2A48; --line: #22355A; --line-2: #2E4470;
  --ink: #E8EDF6; --ink-2: #A6B3CC; --ink-3: #8592AE;
  --accent: #F0A33A; --on-accent: #241503; --accent-soft: #1C2C4C; --focus: #F5C67F;
  --rail: #0E1729; --rail-ink: #E8EDF6; --rail-ink-2: #93A0BB; --rail-on: #1C2C4C; --rail-line: #1A2846;
  --new: #F0A33A; --new-bg: #3A2A10; --new-line: #8A5E1C;
  --wait: #8DB8F0; --wait-bg: #16294A; --wait-line: #3A5F94;
  --seat: #5FD3A7; --seat-bg: #0F3A33; --seat-line: #2B8A6B;
  --done: #8E9BB6; --done-bg: #1A2742;
  --bad: #F08C7A; --bad-bg: #3D1C22;
  --floor: #0F1A30; --floor-line: #142340; --table: #1C2C4C; --chair: #2E4470; --on-solid: #0B1120;
  --scrim: rgba(3, 8, 20, .66); --shadow: 0 18px 44px rgba(0, 0, 0, .5);
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --font-d: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif; --fw-d: 700; --ls-d: -.025em;
  --r: 14px; --r-s: 10px; --viz-1: #F0A33A;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.4; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
button, select, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
small { font-size: 12.5px; color: var(--ink-3); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* shell */
.app { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100dvh; }
.rail { position: sticky; top: env(safe-area-inset-top, 0px); align-self: start; height: 100dvh; display: flex; flex-direction: column; gap: 18px; padding: 20px 14px; background: var(--rail); color: var(--rail-ink); border-right: 1px solid var(--rail-line); }
.brand { display: flex; align-items: center; gap: 10px; padding-inline: 6px; color: var(--rail-ink); }
.brand svg { width: 38px; height: 38px; flex: 0 0 auto; }
.brand b { font-weight: 700; font-size: 15px; letter-spacing: .3em; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav button, .tabbar button { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; color: var(--rail-ink-2); font-weight: 500; border-radius: var(--r-s); }
.nav button { padding: 9px 10px; width: 100%; text-align: left; }
.nav button:hover { color: var(--rail-ink); }
.nav button[aria-current="page"], .tabbar button[aria-current="page"] { background: var(--rail-on); color: var(--rail-ink); }
.nav svg, .tabbar svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.grow { flex: 1 1 auto; }
.proto { font-size: 12px; line-height: 1.35; color: var(--rail-ink-2); padding-inline: 8px; }
.main { min-width: 0; padding-inline: 24px; padding-block: 22px 40px; }
.main > main { display: flex; flex-direction: column; gap: 16px; max-width: 1280px; margin: 0 auto; }
.mtop, .tabbar { display: none; }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; min-height: 40px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: var(--surface); font-weight: 500; white-space: nowrap; }
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn.primary:hover { border-color: var(--accent); filter: brightness(1.12); }
.btn.big { min-height: 44px; padding-inline: 18px; font-weight: 600; }
.btn.danger { color: var(--bad); border-color: var(--bad); }
.btn.icon { padding: 0; width: 40px; font-size: 20px; line-height: 1; }
.btn.small { min-height: 32px; padding: 4px 11px; font-size: 13.5px; }
.btn.wide { width: 100%; white-space: normal; }
.btn:disabled, .btn.disabled { opacity: .35; cursor: default; }
.field { border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--r-s); padding: 8px 12px; min-height: 40px; width: 100%; }
.field::placeholder { color: var(--ink-3); }
textarea.field { resize: vertical; }
.seg { display: inline-flex; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-s); padding: 3px; gap: 2px; max-width: 100%; overflow-x: auto; }
.seg button { border: 0; background: transparent; padding: 6px 13px; border-radius: calc(var(--r-s) - 3px); font-weight: 500; color: var(--ink-2); white-space: nowrap; min-height: 32px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 6px 13px; min-height: 36px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 500; color: var(--ink-2); }
.chip b { font-weight: 600; color: var(--ink-3); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip[aria-pressed="true"] b { color: inherit; opacity: .7; }
.chip.alert:not([aria-pressed="true"]) { background: var(--new-bg); border-color: var(--new-line); color: var(--new); }
.chip.alert:not([aria-pressed="true"]) b { color: inherit; }
.chip:disabled { color: var(--ink-3); background: var(--raised); text-decoration: line-through; cursor: default; opacity: .7; }
.chip.sq { border-radius: var(--r-s); min-width: 42px; padding-inline: 8px; }
.pill { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.pill.new { background: var(--new-bg); color: var(--new); }
.pill.confirmed { background: var(--wait-bg); color: var(--wait); }
.pill.seated { background: var(--seat-bg); color: var(--seat); }
.pill.done { background: var(--done-bg); color: var(--done); }
.pill.noshow { background: var(--bad-bg); color: var(--bad); }
.pill.cancelled { color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.tag { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--ink); font-weight: 500; margin: 0 4px 4px 0; }
.tag.bad { background: var(--bad-bg); color: var(--bad); }
.hint { font-size: 13px; color: var(--ink-3); }
.empty { padding: 18px 4px; color: var(--ink-3); }

/* day header */
.dayhead, .pagehead { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.datebox { display: flex; align-items: center; gap: 10px; margin-right: auto; min-width: 0; }
.datetxt { min-width: 9.5em; }
.dayhead h1, .pagehead h1 { font-family: var(--font-d); font-weight: var(--fw-d); letter-spacing: var(--ls-d); font-size: 28px; line-height: 1.15; }
.datetxt p, .pagehead p { color: var(--ink-2); font-size: 13.5px; }
.pagehead > div:first-child { margin-right: auto; }
.search { flex: 0 1 250px; min-width: 160px; }
.headtools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-left: auto; }
/* Загрузка базы гостей */
.filebtn { cursor: pointer; margin: 6px 0 4px; }
.filebtn:focus-within { outline: 2px solid var(--focus, currentColor); outline-offset: 2px; }
.tblwrap { overflow-x: auto; margin: 6px 0 12px; }
table.preview { border-collapse: collapse; font-size: 13.5px; min-width: 100%; }
table.preview th { text-align: left; font-weight: 600; color: var(--ink-2); padding: 6px 14px 6px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.preview td { padding: 6px 14px 6px 0; border-bottom: 1px solid var(--line); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
ul.plain { margin: 4px 0 12px; padding-left: 18px; }
ul.plain li { margin: 3px 0; }
.bar2 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }

/* hall view */
.hall { display: block; }
.planbox { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.planhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.hallname { font-weight: 600; }
.timectl { display: flex; align-items: center; gap: 8px; flex: 1 1 280px; max-width: 460px; color: var(--ink-2); }
.timectl output { font-weight: 650; font-size: 18px; color: var(--ink); min-width: 3.1em; text-align: center; }
.timectl input[type="range"] { flex: 1 1 100px; min-width: 80px; accent-color: var(--accent); }
.timectl .btn.icon { width: 34px; min-height: 34px; }
.plan { position: relative; container-type: inline-size; aspect-ratio: 4 / 3; max-width: 100%; background-color: var(--floor); background-image: linear-gradient(var(--floor-line) 1px, transparent 1px), linear-gradient(90deg, var(--floor-line) 1px, transparent 1px); background-size: 8.3333% 11.1111%; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.decor { position: absolute; display: flex; align-items: center; justify-content: center; background: var(--raised); color: var(--ink-3); font-size: clamp(9px, 1.6cqw, 12.5px); border-radius: 5px; overflow: hidden; }
.decor.tall { writing-mode: vertical-rl; }
.tbl { position: absolute; padding: 0; border: 1.5px solid var(--line-2); background: var(--table); color: var(--ink); border-radius: 10px; overflow: visible; }
.tbl.round { border-radius: 50%; }
.tbl:hover { border-color: var(--ink-2); }
.tb-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 2px; overflow: hidden; border-radius: inherit; line-height: 1.12; }
.tb-in b { font-size: clamp(13px, 3cqw, 22px); font-weight: 650; }
.tb-in span { font-size: clamp(9px, 1.7cqw, 12.5px); color: var(--ink-3); white-space: nowrap; }
.tb-in em { display: none; font-style: normal; font-weight: 500; font-size: clamp(9px, 1.6cqw, 12.5px); max-width: 92%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@container (min-width: 540px) { .tb-in em { display: block; } }
.tb-in .ls { display: none; }
@container (max-width: 539px) { .tb-in .ll { display: none; } .tb-in .ls { display: inline; } }
.ch { position: absolute; width: clamp(7px, 2.3cqw, 15px); height: clamp(7px, 2.3cqw, 15px); border-radius: 32%; background: var(--chair); transform: translate(-50%, -50%); pointer-events: none; }
.ch.ct { top: 0; transform: translate(-50%, -140%); }
.ch.cb { top: 100%; transform: translate(-50%, 40%); }
.tbl.soon { border-style: dashed; border-color: var(--wait); }
.tbl.soon .tb-in span { color: var(--wait); }
.tbl.soon.new { border-color: var(--new); }
.tbl.soon.new .tb-in span { color: var(--new); }
.tbl.wait { background: var(--wait); border-color: var(--wait); color: var(--on-solid); }
.tbl.wait.new { background: var(--new); border-color: var(--new); }
.tbl.busy { background: var(--seat); border-color: var(--seat); color: var(--on-solid); }
.tbl.wait .tb-in span, .tbl.wait .tb-in em, .tbl.busy .tb-in span, .tbl.busy .tb-in em { color: var(--on-solid); }
.tbl.wait .ch { background: var(--wait-line); }
.tbl.wait.new .ch { background: var(--new-line); }
.tbl.busy .ch { background: var(--seat-line); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--line-2); background: var(--table); display: inline-block; }
.sw.soon { border-style: dashed; border-color: var(--wait); }
.sw.wait { background: var(--wait); border-color: var(--wait); }
.sw.new { background: var(--new); border-color: var(--new); }
.sw.busy { background: var(--seat); border-color: var(--seat); }

/* booking list */
.side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.side h2, .listfull h2 { font-size: 15px; font-weight: 600; display: flex; align-items: baseline; gap: 8px; }
.side h2 small, .listfull h2 small { font-size: 13.5px; }
.side h2:not(:first-child), .listfull h2:not(:first-child) { margin-top: 10px; }
.bklist { display: flex; flex-direction: column; gap: 8px; }
.bk { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 13px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; }
.bk:hover { border-color: var(--line-2); }
.bk-time { display: flex; flex-direction: column; }
.bk-time b { font-family: var(--font-d); font-weight: var(--fw-d); font-size: 18px; line-height: 1.15; }
.bk-main { display: flex; flex-direction: column; min-width: 0; }
.bk-main b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-note { color: var(--ink-2); }
.bk-warn { color: var(--bad); font-weight: 600; }
.sub { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.bk-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.bk.past .bk-time b, .bk.past .bk-main b { color: var(--ink-3); font-weight: 500; }
.bk.st-cancelled .bk-main b { text-decoration: line-through; }
.wl { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 13px; border: 1px dashed var(--line-2); border-radius: var(--r); }
.wl b { font-weight: 600; }
.wl .bk-time b { font-family: var(--font-d); font-weight: var(--fw-d); font-size: 17px; }
.listfull { max-width: 860px; display: flex; flex-direction: column; gap: 10px; }

/* timeline */
.tl-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.tl { width: max-content; min-width: 100%; --lab: 112px; }
.tl-row { display: flex; border-bottom: 1px solid var(--line); }
.tl-row:last-child { border-bottom: 0; }
.tl-lab { flex: 0 0 var(--lab); min-width: 0; overflow: hidden; text-overflow: ellipsis; position: sticky; left: 0; z-index: 2; background: var(--surface); border-right: 1px solid var(--line); padding: 0 12px; display: flex; align-items: baseline; gap: 7px; white-space: nowrap; line-height: 48px; }
.tl-lab b { font-weight: 650; font-size: 16px; }
.tl-track { position: relative; height: 48px; width: calc(var(--slots) * var(--sw)); flex: 0 0 auto; background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(var(--sw) * 2)); cursor: copy; }
.tl-row.head .tl-track { height: 32px; cursor: default; background-image: none; }
.tl-row.head .tl-lab { color: var(--ink-3); font-size: 13px; line-height: 32px; }
.tl-h { position: absolute; top: 7px; font-size: 13px; color: var(--ink-3); padding-left: 6px; }
.tl-hall { background: var(--raised); border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--ink-2); }
.tl-hall span { position: sticky; left: 12px; display: inline-block; padding: 5px 0; }
.tl-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--bad); pointer-events: none; z-index: 1; opacity: .75; }
.tl-bar { position: absolute; top: 6px; bottom: 6px; border-radius: 8px; border: 1px solid; padding: 0 9px; display: flex; align-items: center; gap: 7px; overflow: hidden; white-space: nowrap; text-align: left; font-size: 13.5px; }
.tl-bar b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.tl-bar i { font-style: normal; opacity: .8; }
.tl-bar.st-new { background: var(--new-bg); color: var(--new); border-color: var(--new-line); }
.tl-bar.st-confirmed { background: var(--wait-bg); color: var(--wait); border-color: var(--wait-line); }
.tl-bar.st-seated { background: var(--seat-bg); color: var(--seat); border-color: var(--seat-line); }
.tl-bar.st-done { background: var(--done-bg); color: var(--done); border-color: var(--line); }
.tl-bar.st-noshow { background: var(--bad-bg); color: var(--bad); border-color: var(--bad); }

/* guests, report */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; min-width: 0; }
.grow-row { display: grid; grid-template-columns: minmax(0, 1.2fr) 72px 72px minmax(0, 1.4fr); gap: 12px; align-items: center; width: 100%; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 11px 16px; }
.grow-row:last-child { border-bottom: 0; }
button.grow-row:hover { background: var(--raised); }
.grow-row.head { font-size: 13px; color: var(--ink-3); }
.grow-row .who { display: flex; flex-direction: column; min-width: 0; }
.grow-row .who b { font-weight: 600; }
.grow-row .num { text-align: right; }
.grow-row .num.bad { color: var(--bad); font-weight: 600; }
.grow-row .note { color: var(--ink-2); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat b { font-weight: 650; font-size: 24px; line-height: 1.2; white-space: nowrap; font-variant-numeric: normal; }
.stat small { font-size: 12.5px; }
.stat span { color: var(--ink-2); font-size: 13.5px; }
.rep-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rep-filters select.field { width: auto; max-width: 100%; }
.say { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.say h2 { font-size: 15px; font-weight: 600; }
.say p { max-width: 72ch; line-height: 1.5; }
.answer { background: var(--raised); border-radius: var(--r-s); padding: 10px 13px; max-width: 72ch; line-height: 1.5; }
.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.chart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.chart.span2 { grid-column: 1 / -1; }
.chart h2 { font-size: 15px; font-weight: 600; }
.chart h2 small { display: block; font-weight: 400; margin-top: 2px; }
.cplot { display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 8px; margin-top: 14px; }
.yax { position: relative; height: 170px; font-size: 12px; color: var(--ink-3); }
.yax span { position: absolute; right: 0; transform: translateY(50%); white-space: nowrap; }
.plot { position: relative; height: 170px; border-bottom: 1px solid var(--line-2); background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 50%; }
.cols { display: flex; align-items: flex-end; height: 100%; }
.col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; outline-offset: -2px; }
.col i { display: block; width: min(24px, calc(100% - 2px)); border-radius: 4px 4px 0 0; background: var(--viz-1); }
.col:hover i, .col:focus-visible i { filter: brightness(1.3); }
.col .cap { font-size: 12px; color: var(--ink-2); margin-bottom: 3px; white-space: nowrap; }
.xax { grid-column: 2; display: flex; font-size: 12px; color: var(--ink-3); padding-top: 6px; }
.xax span { flex: 1 1 0; min-width: 0; text-align: center; white-space: nowrap; }
.xax.rel { display: block; position: relative; height: 22px; margin-right: 44px; }
.xax.rel span { position: absolute; transform: translateX(-50%); }
.xax.rel span:first-child { transform: none; }
.xax.rel span:last-child { transform: translateX(-100%); }
.lplot { margin-right: 44px; cursor: crosshair; }
.lplot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lplot .line { fill: none; stroke: var(--viz-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.lplot .area { fill: var(--viz-1); opacity: .1; }
.lplot .dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--viz-1); box-shadow: 0 0 0 2px var(--surface); transform: translate(-50%, -50%); pointer-events: none; }
.lplot .xh { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--ink-3); pointer-events: none; }
.lplot .endlab { position: absolute; left: calc(100% + 9px); transform: translateY(-50%); font-size: 12.5px; font-weight: 600; color: var(--ink); }
.tw summary { font-size: 13px; color: var(--ink-3); cursor: pointer; width: fit-content; }
table.mini { border-collapse: collapse; margin-top: 8px; font-size: 13.5px; }
table.mini td { padding: 3px 18px 3px 0; }
table.mini td:last-child { text-align: right; font-weight: 600; }
#tip { position: fixed; z-index: 70; pointer-events: none; display: flex; align-items: baseline; gap: 8px; background: var(--ink); color: var(--bg); padding: 6px 10px; border-radius: 8px; font-size: 13px; white-space: nowrap; box-shadow: var(--shadow); }
#tip b { font-weight: 650; }
.tablewrap { overflow-x: auto; }
table.rep { border-collapse: collapse; width: 100%; min-width: 720px; }
table.rep th, table.rep td { padding: 11px 16px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
table.rep th { font-size: 13px; font-weight: 500; color: var(--ink-3); }
table.rep th:first-child, table.rep td:first-child { text-align: left; }
table.rep td:first-child { font-weight: 600; }
table.rep tr:last-child td { border-bottom: 0; }

/* side panel */
#overlay { position: fixed; inset: 0; z-index: 50; background: var(--scrim); display: flex; justify-content: flex-end; }
.sheet { width: min(440px, 100%); height: 100%; overflow-y: auto; background: var(--surface); box-shadow: var(--shadow); padding: 22px 22px calc(26px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 18px; }
.sh-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sh-head h2 { font-family: var(--font-d); font-weight: var(--fw-d); letter-spacing: var(--ls-d); font-size: 30px; line-height: 1.12; text-wrap: balance; }
.sh-head p { color: var(--ink-2); font-size: 13.5px; }
.facts3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.facts3 > div { background: var(--raised); border-radius: var(--r-s); padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.facts3 b { font-size: 20px; font-weight: 650; line-height: 1.1; }
.who h3 { font-size: 19px; font-weight: 650; }
.who { display: flex; flex-direction: column; gap: 6px; }
.who .phone { user-select: all; color: var(--ink-2); }
.who .note { background: var(--raised); border-radius: var(--r-s); padding: 10px 12px; }
.known { display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left; border: 1px solid var(--line); background: transparent; border-radius: var(--r-s); padding: 11px 13px; }
button.known:hover { border-color: var(--ink-3); }
.known b { font-weight: 600; }
.box { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: var(--r-s); padding: 12px 13px; }
.box h3 { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.facts { display: grid; gap: 9px; }
.facts div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
.facts dt { color: var(--ink-3); }
form { display: flex; flex-direction: column; gap: 15px; }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld > span { font-size: 13.5px; color: var(--ink-2); font-weight: 500; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fld .num { width: 76px; }
.check { display: flex; align-items: flex-start; gap: 9px; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--accent); }
.err { color: var(--bad); font-weight: 500; }
.okhint { color: var(--seat); font-size: 13.5px; }
.hist { display: flex; flex-direction: column; gap: 8px; }

/* guest page */
.gpage { max-width: 520px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.gbox { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--r) + 4px); padding: 26px 24px; display: flex; flex-direction: column; gap: 20px; }
.gbox h1 { font-family: var(--font-d); font-weight: var(--fw-d); letter-spacing: var(--ls-d); font-size: 30px; line-height: 1.12; text-wrap: balance; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 6px; }
.slots .chip { padding-inline: 4px; border-radius: var(--r-s); }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper output { font-family: var(--font-d); font-weight: var(--fw-d); font-size: 24px; min-width: 2.2em; text-align: center; }

#toast { position: fixed; left: 50%; width: max-content; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: var(--r-s); font-weight: 500; max-width: calc(100% - 32px); text-align: center; box-shadow: var(--shadow); }

/* v3: статусы по времени, настройки, редактор зала, схема для гостя */
[hidden] { display: none !important; }
.badge { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--new); color: var(--on-solid); font-size: 12px; font-weight: 650; line-height: 20px; text-align: center; }
.userbox { display: flex; flex-direction: column; gap: 8px; padding: 12px 8px 0; border-top: 1px solid var(--rail-line); }
.userbox b { font-weight: 600; display: block; }
.userbox small { color: var(--rail-ink-2); }
.userbox .links { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.linkbtn { border: 0; background: transparent; padding: 0; color: var(--rail-ink-2); font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--rail-ink); }
a { color: inherit; }
a.btn { text-decoration: none; }
.pill.late { background: var(--bad-bg); color: var(--bad); }
.pill.closing { background: var(--new-bg); color: var(--new); }
.pill.over { background: var(--bad); color: var(--on-solid); }
.pill.sgm { color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.tg { display: inline-block; font-size: 11.5px; line-height: 1.55; padding: 0 7px; border-radius: 5px; background: var(--accent-soft); color: var(--ink-2); margin: 4px 4px 0 0; }
.banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 10px 14px; border-radius: var(--r); border: 1px solid var(--new-line); background: var(--new-bg); }
.banner.warn { color: var(--new); }
.banner b { font-weight: 600; }
.tbl.lock { border-style: dashed; border-color: var(--ink-2); }
.tbl.lock .tb-in span { color: var(--ink-2); }
.tbl.over { box-shadow: 0 0 0 3px var(--bad); }
.sw.lock { border-style: dashed; border-color: var(--ink-2); }
.plan-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; pointer-events: none; }
.plan.editing .tbl { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.plan.editing .tbl.sel { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(125, 180, 245, .32); }
.plan.editing .tbl.dragging { cursor: grabbing; z-index: 3; transition: none; }
.gplan .tbl.gfree { border-color: var(--seat); }
.gplan .tbl.gfree .tb-in span { color: var(--seat); }
.gplan .tbl.gsel { background: var(--seat); border-color: var(--seat); color: var(--on-solid); }
.gplan .tbl.gsel .tb-in span { color: var(--on-solid); }
.gplan .tbl.gsel .ch { background: var(--seat-line); }
.gplan .tbl.gno { opacity: .45; cursor: default; }
/* На узкой схеме круглому столу на двоих подпись не помещается: состояние видно по цвету, номер остаётся. */
@container (max-width: 539px) { .gplan .tbl.round .tb-in span { display: none; } }
.daysc { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.daysc .chip { flex: 0 0 auto; }
.more summary { cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--ink-2); width: fit-content; }
.more .fld { margin-top: 10px; }
.main > main > .seg, .fld > .seg { align-self: flex-start; }
.steps { display: flex; gap: 6px; }
.steps i { flex: 1 1 0; height: 4px; border-radius: 2px; background: var(--raised); }
.steps i.on { background: var(--accent); }
.set { display: flex; flex-direction: column; gap: 14px; max-width: 880px; }
.setcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 18px; min-width: 0; }
.setcard h2 { font-size: 15px; font-weight: 600; padding: 12px 0 2px; }
.setrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.setrow:last-child { border-bottom: 0; }
.setrow b { font-weight: 600; display: block; }
.setrow small { display: block; max-width: 58ch; margin-top: 2px; }
.ctl { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.ctl .field { width: auto; min-width: 132px; }
/* Строка сотрудника: описание сверху, управление под ним — списков слишком много для одной строки. */
.setrow.stack { grid-template-columns: minmax(0, 1fr); }
.setrow.stack .ctl { justify-content: flex-start; }
.mini-l { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); }
.tgl { appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 42px; height: 24px; margin: 0; border-radius: 999px; background: var(--raised); border: 1px solid var(--line-2); position: relative; cursor: pointer; }
.tgl::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink-3); }
.tgl:checked { background: var(--seat-bg); border-color: var(--seat); }
.tgl:checked::after { transform: translateX(18px); background: var(--seat); }
.setform { display: flex; flex-direction: column; gap: 13px; padding: 10px 0 14px; }
.addrow { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0 6px; }
.addrow .field { flex: 1 1 170px; width: auto; }
.foot { display: block; padding: 4px 0 12px; max-width: 70ch; }
.padt { padding-top: 12px; }
.chip.tagc { cursor: default; gap: 4px; }
.chip .x { border: 0; background: transparent; color: var(--ink-3); padding: 2px 4px; font-size: 12px; line-height: 1; border-radius: 4px; }
.chip .x:hover { color: var(--bad); }
.tpl { display: flex; flex-direction: column; gap: 8px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.tpl-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tpl-head b { font-weight: 600; }
.prev { background: var(--raised); border-radius: var(--r-s); padding: 9px 12px; font-size: 13.5px; color: var(--ink-2); }
.field:disabled { opacity: .45; }
.sheet > .actions:last-child { position: sticky; bottom: calc(-26px - env(safe-area-inset-bottom, 0px)); margin: auto -22px calc(-26px - env(safe-area-inset-bottom, 0px)); padding: 12px 22px calc(18px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); }

@media (max-width: 1080px) {
  .hall { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
  .main { padding-inline: 16px; padding-block: 14px calc(96px + env(safe-area-inset-bottom, 0px)); }
  .mtop { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
  .mtop .field { flex: 1 1 auto; min-width: 0; font-weight: 500; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; justify-content: space-around; gap: 4px; background: var(--rail); border-top: 1px solid var(--rail-line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); }
  .tabbar button { flex: 1 1 0; flex-direction: column; gap: 2px; padding: 6px 4px; font-size: 11.5px; min-width: 0; }
  .dayhead h1, .pagehead h1 { font-size: 24px; }
  .datebox { flex: 1 1 100%; }
  .datetxt { flex: 1 1 auto; min-width: 0; }
  .search { flex: 1 1 100%; min-width: 0; }
  .gwrap ~ #toast { bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
  .timectl { flex-wrap: wrap; row-gap: 6px; }
  .timectl input[type="range"] { min-width: 0; }
  .dayhead .btn.big { flex: 0 0 auto; }
  .bar2 > .chips { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: 2px; }
  .bar2 > .chips .chip { flex: 0 0 auto; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .charts { grid-template-columns: minmax(0, 1fr); }
  .grow-row { grid-template-columns: minmax(0, 1fr) 56px 56px; }
  .grow-row .note { display: none; }
  .tl { --lab: 86px; }
  #overlay { align-items: flex-end; }
  .sheet { width: 100%; height: auto; max-height: 93%; border-radius: 18px 18px 0 0; }
  .gbox { padding: 22px 18px; }
  #toast { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 820px) {
  .mtop .field { flex: 1 1 0; }
  .tabbar button { position: relative; }
  .tabbar .badge { position: absolute; top: 2px; left: calc(50% + 6px); margin: 0; min-width: 17px; line-height: 17px; font-size: 11px; padding: 0 4px; }
  .setrow { grid-template-columns: minmax(0, 1fr); }
  .ctl { justify-content: flex-start; }
  .setcard { padding-inline: 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .chip, .tbl, .bk { transition: background-color .12s, border-color .12s; }
}

/* вход, смена пароля, служебные страницы */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.authbox { width: min(400px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--r) + 4px); padding: 28px 26px; display: flex; flex-direction: column; gap: 18px; }
.authbox h1 { font-family: var(--font-d); font-weight: var(--fw-d); letter-spacing: var(--ls-d); font-size: 28px; line-height: 1.15; }
.authbox p { color: var(--ink-2); }
.authbox ul { color: var(--ink-3); font-size: 13px; padding-left: 18px; list-style: disc; display: flex; flex-direction: column; gap: 3px; }
.authbox .errorlist { list-style: none; padding: 0; color: var(--bad); font-size: 13.5px; }

/* страница гостя живёт сама по себе, без меню кабинета */
.gwrap { padding: 22px 16px 48px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.issued { border: 1px solid var(--seat-line); background: var(--seat-bg); border-radius: var(--r-s); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.issued code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; user-select: all; }
.linkrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.linkrow code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--ink-2); user-select: all; overflow-wrap: anywhere; }
.state { padding: 40px 8px; color: var(--ink-2); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; max-width: 60ch; }
.state h1 { font-family: var(--font-d); font-weight: var(--fw-d); font-size: 26px; color: var(--ink); }

/* Пока открыта панель брони, сообщение не должно закрывать её кнопки. */
#overlay:not([hidden]) ~ #toast { bottom: auto; top: calc(18px + env(safe-area-inset-top, 0px)); }

/* сводка */
.stat .delta { color: var(--ink-2); }
.hbars { display: flex; flex-direction: column; gap: 10px; }
.hbar { display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr) 3em; gap: 10px; align-items: center; font-size: 13.5px; color: var(--ink-2); }
.hbar span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar .track { height: 10px; background: var(--raised); border-radius: 5px; overflow: hidden; }
.hbar .track i { display: block; height: 100%; background: var(--viz-1); border-radius: 0 4px 4px 0; }
.hbar b { text-align: right; font-weight: 600; color: var(--ink); }
.rep-filters #r-scope { width: auto; max-width: 100%; }

/* сообщения гостю */
.tpl-head small { display: block; margin-top: 2px; }
.msg { border-top: 1px solid var(--line); padding-top: 8px; }
.msg:first-of-type { border-top: 0; padding-top: 0; }
.msg summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.msg p { margin: 6px 0 4px; color: var(--ink-2); font-size: 13.5px; }

/* страница политики */
.doc { gap: 18px; }
.doc h1 { font-size: 26px; }
.doc h2 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.doc p { color: var(--ink-2); line-height: 1.55; max-width: 64ch; }
.check a { color: var(--ink); text-underline-offset: 3px; }
.evs summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.evs ol { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.evs li { display: flex; flex-direction: column; font-size: 13.5px; }
.setform a { color: var(--ink); text-underline-offset: 3px; }

/* Оценка визита на странице гостя */
.rate { margin: 6px 0 4px; }
.rate h2 { font-size: 20px; font-weight: 650; margin-bottom: 8px; }
.rate .hint { margin: 6px 0 10px; }
.rate .actions { margin-top: 12px; }
.nw { white-space: nowrap; }
.facts3 .pill { white-space: normal; text-align: center; }
.sheet > * { flex-shrink: 0; }
.hist .bk-main small { white-space: normal; }
.bk-side .hrate { display: block; margin-top: 4px; text-align: right; white-space: nowrap; }
.sheet .actions .btn.small { white-space: normal; text-align: left; }
.stars { display: flex; gap: 6px; }
.star { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-3); font-size: 26px; line-height: 1; cursor: pointer; }
.star[aria-pressed="true"] { color: var(--new); border-color: var(--new-line); background: var(--new-bg); }
.star:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* Отзывы в кабинете */
.reviews { display: grid; gap: 10px; margin-top: 12px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.review.attention { border-color: var(--bad); box-shadow: inset 3px 0 0 var(--bad); }
.rv-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.rv-stars { color: var(--new); letter-spacing: 1px; font-size: 16px; font-weight: 400; }
.review p { margin-top: 6px; max-width: 70ch; }
.review .actions { margin-top: 10px; }
.review small { display: block; margin-top: 8px; color: var(--ink-3); }
.namebtn { border: 0; background: none; padding: 0; color: var(--ink); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.field.wide { width: min(100%, 380px); }

/* Рассылка: как сообщение увидит гость */
.smsprev { white-space: pre-wrap; font: inherit; font-size: 14px; background: var(--raised); border-radius: var(--r-s); padding: 10px 12px; margin-top: 8px; max-width: 46ch; }

/* Входящий звонок */
#callpop { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: min(360px, calc(100vw - 32px)); background: var(--raised); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 16px; }
#callpop h3 { font-size: 20px; font-weight: 650; margin: 2px 0; }
#callpop .phone { color: var(--ink-2); font-size: 13.5px; }
#callpop p { margin-top: 4px; }
#callpop .actions { margin-top: 12px; }
@media (max-width: 760px) { #callpop { right: 16px; bottom: 76px; } }

/* «Сегодня»: три столбца, гость идёт слева направо. У карточки одна кнопка — следующий шаг. */
.kfree { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.kfree > span { font-weight: 600; margin-right: 4px; }
.kfree .chip { min-width: 40px; justify-content: center; font-weight: 700; }
.kfree small { flex: 1 1 220px; text-align: right; }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.kcol { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px; background: var(--panel); border: 1px solid var(--rail-line); border-radius: calc(var(--r) + 4px); }
.kcol > h2 { display: flex; align-items: center; gap: 9px; font-size: 16.5px; font-weight: 700; }
.kcol > h2 small { font-size: 13.5px; font-weight: 600; }
.kcol > .hint { margin-top: -4px; }
.kdot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); flex: 0 0 auto; }
.kdot.amber { background: var(--new); } .kdot.blue { background: var(--wait); } .kdot.green { background: var(--seat); } .kdot.red { background: var(--bad); }
.kempty { color: var(--ink-3); font-size: 14px; padding: 6px 2px; }
.kc { display: flex; flex-direction: column; gap: 7px; padding: 13px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; text-align: left; }
.kc:hover { border-color: var(--line-2); }
.kc.st-new { border-color: var(--new-line); }
.kc.fresh { border-color: var(--new); box-shadow: 0 0 0 3px var(--new-bg); }
.kc.late { border-color: var(--bad); }
.kc.over, .kc.closing { border-color: var(--new-line); }
.kc.st-done, .kc.st-noshow, .kc.st-cancelled { opacity: .72; }
.kc-top { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.kc .kt { font-size: 21px; font-weight: 750; letter-spacing: -.02em; white-space: nowrap; }
.kc .kn { font-size: 16px; font-weight: 650; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kflag { margin-left: auto; flex: 0 0 auto; font-size: 12.5px; font-weight: 650; color: var(--ink-2); white-space: nowrap; }
.kflag.late { color: var(--bad); } .kflag.over { color: var(--bad); } .kflag.closing { color: var(--new); }
.kc > small { color: var(--ink-2); font-size: 13.5px; }
.kc .kc-note { color: var(--ink); background: var(--raised); border-radius: 8px; padding: 6px 9px; }
.kc-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.kc-act { display: flex; gap: 8px; margin-top: 3px; }
.kc-act .btn { flex: 1 1 auto; min-height: 44px; font-weight: 650; }
.kc-act .btn:not(:first-child) { flex: 0 0 auto; }
.btn.go { background: var(--seat-bg); border-color: var(--seat-line); color: var(--seat); }
.btn.go:hover { border-color: var(--seat); }
.kgone { border: 1px dashed var(--line-2); background: transparent; color: var(--ink-2); border-radius: var(--r); padding: 10px; font: inherit; font-size: 14px; }
.kgone:hover { color: var(--ink); }
.kwait { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.kwait h2 { font-size: 14.5px; font-weight: 650; display: flex; gap: 8px; align-items: baseline; }
.morelist { display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.moreitem { display: flex; flex-direction: column; gap: 3px; position: relative; text-align: left; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); font: inherit; text-decoration: none; }
.moreitem b { font-size: 16.5px; } .moreitem .badge { position: absolute; right: 16px; top: 18px; }
@media (max-width: 1080px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .board { grid-template-columns: minmax(0, 1fr); }
  .kfree { flex-wrap: nowrap; overflow-x: auto; }
  .kfree > span { white-space: nowrap; }
  .kfree small { display: none; }
  .mmark svg { width: 34px; height: 34px; display: block; }
}

/* Логотип на входе и подпись на странице брони */
.authbrand { display: flex; align-items: center; gap: 16px; }
.authbrand .seal { width: 84px; height: 84px; flex: 0 0 auto; }
.gcredit { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 18px 0 0; font-size: 12.5px; color: var(--ink-3); }
.gcredit svg { width: 20px; height: 20px; }
.gcredit b { font-weight: 700; letter-spacing: .24em; font-size: 11.5px; color: var(--ink-2); }

/* Карточка брони: имя гостя крупно, одна главная кнопка, остальное — под «Другое» */
.sh-head .sh-when { color: var(--ink); font-size: 16px; font-weight: 600; margin-top: 4px; }
.sheet .actions .btn.big { flex: 1 1 100%; min-height: 50px; }
.actions details.more { flex: 1 1 100%; }
.more summary { cursor: pointer; list-style: none; color: var(--ink-2); font-size: 14px; padding: 8px 2px; text-align: center; }
.more summary::-webkit-details-marker { display: none; }
.more summary:hover { color: var(--ink); }
.more[open] summary { margin-bottom: 6px; }
.more .actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* Страница брони для гостя: название ресторана над заголовком */
.geyebrow { color: var(--accent); font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.gbox { box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
