/* =====================================================================
   ТвойЛаунж — стили
   Фирменный стиль (экраны входа, экскурс, иконка) — тема "brand":
   графит + «жар» (оранжево-янтарный градиент). Остальные темы выбирает заведение.
   ===================================================================== */

/* ---------- темы ---------- */
:root, [data-theme="brand"] {          /* ТвойЛаунж — фирменная: графит и жар */
  --bg: #0c0c10; --surface: #14141a; --surface2: #1c1c24; --line: #2a2a34; --line-soft: rgba(255,255,255,.06);
  --text: #f4f4f6; --muted: #8d8d9b; --accent: #ff7a3d; --accent2: #ffb547; --accent-ink: #1d0b02;
  --floor: #111116; --grid: #1a1a21; --table: #24242d; --table-line: #3a3a46; --chair: #30303b;
  --sofa: #2b2b35; --bar: #1d1d25; --open: #ff9a4d; --heat: #ffc94a; --due: #ff4d5e;
  --glow: rgba(255,122,61,.35); --shadow: 0 10px 30px rgba(0,0,0,.45); color-scheme: dark;
}
[data-theme="mint"] {                  /* Мята: графит с мятным акцентом */
  --bg: #0f1112; --surface: #16191b; --surface2: #1e2225; --line: #2b3134; --line-soft: rgba(255,255,255,.06);
  --text: #eef3f1; --muted: #8b9894; --accent: #4fe0b0; --accent2: #8af5d2; --accent-ink: #032419;
  --floor: #131617; --grid: #1b1f21; --table: #23292b; --table-line: #3a4447; --chair: #2f3739;
  --sofa: #2a3133; --bar: #1c2123; --open: #4fe0b0; --heat: #ffc94a; --due: #ff5468;
  --glow: rgba(79,224,176,.3); --shadow: 0 10px 30px rgba(0,0,0,.45); color-scheme: dark;
}
[data-theme="orient"] {                /* Восток: бордо и золото */
  --bg: #140b0d; --surface: #1d1114; --surface2: #27171b; --line: #3d252a; --line-soft: rgba(255,220,200,.07);
  --text: #f7ebe2; --muted: #b2958a; --accent: #e0ac4b; --accent2: #f5d27d; --accent-ink: #2a1a04;
  --floor: #1a0f12; --grid: #251619; --table: #43261f; --table-line: #6a432f; --chair: #563127;
  --sofa: #652c33; --bar: #331c17; --open: #e0ac4b; --heat: #ff9f43; --due: #ff4d5e;
  --glow: rgba(224,172,75,.3); --shadow: 0 10px 30px rgba(0,0,0,.5); color-scheme: dark;
}
[data-theme="smoke"] {                 /* Графит с красным акцентом */
  --bg: #0f0f10; --surface: #171719; --surface2: #202023; --line: #313136; --line-soft: rgba(255,255,255,.06);
  --text: #efeff1; --muted: #96969e; --accent: #e5383b; --accent2: #ff6b5e; --accent-ink: #ffffff;
  --floor: #141416; --grid: #1d1d20; --table: #29292e; --table-line: #44444b; --chair: #37373d;
  --sofa: #313137; --bar: #202023; --open: #ff5a5d; --heat: #ffb02e; --due: #ff2d55;
  --glow: rgba(229,56,59,.32); --shadow: 0 10px 30px rgba(0,0,0,.5); color-scheme: dark;
}
[data-theme="neon"] {                  /* Неон */
  --bg: #09071c; --surface: #120f2b; --surface2: #1a163b; --line: #2c2660; --line-soft: rgba(200,180,255,.08);
  --text: #f1edff; --muted: #9d95cc; --accent: #c86bff; --accent2: #6b8bff; --accent-ink: #ffffff;
  --floor: #0e0b26; --grid: #19153e; --table: #221c4e; --table-line: #4c3fa8; --chair: #2e2766;
  --sofa: #2c2164; --bar: #1c1744; --open: #3de8ff; --heat: #ffd23f; --due: #ff3d8b;
  --glow: rgba(200,107,255,.38); --shadow: 0 10px 30px rgba(0,0,0,.5); color-scheme: dark;
}
[data-theme="neon2"] {                 /* Неон 2: светлый, голубой и синий */
  --bg: #eef3ff; --surface: #ffffff; --surface2: #e6eeff; --line: #cfdcf7; --line-soft: rgba(30,80,200,.08);
  --text: #0d1b3e; --muted: #5a6d96; --accent: #1e6bff; --accent2: #00b4ff; --accent-ink: #ffffff;
  --floor: #f7faff; --grid: #e4ecfc; --table: #d3e2ff; --table-line: #86acff; --chair: #b0cbff;
  --sofa: #94b8ff; --bar: #dde8ff; --open: #00a8e8; --heat: #f59e0b; --due: #ef2b5a;
  --glow: rgba(30,107,255,.25); --shadow: 0 10px 30px rgba(30,60,140,.15); color-scheme: light;
}
[data-theme="wood"] {                  /* Тёплое дерево — светлая */
  --bg: #f4ede3; --surface: #fffaf4; --surface2: #f1e6d7; --line: #e2d2bd; --line-soft: rgba(90,50,20,.08);
  --text: #2d1f16; --muted: #85705f; --accent: #a5552a; --accent2: #d08846; --accent-ink: #fff7ef;
  --floor: #efe4d4; --grid: #e5d7c3; --table: #cfa173; --table-line: #a8794d; --chair: #b88d62;
  --sofa: #8c5a3c; --bar: #c4a07a; --open: #2f8f5b; --heat: #d98a00; --due: #d63c2f;
  --glow: rgba(165,85,42,.22); --shadow: 0 10px 30px rgba(80,50,20,.15); color-scheme: light;
}

/* ---------- основа ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font: 15px/1.45 "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: hidden;
  transition: background-color .3s;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; font-weight: 800; }
small { color: var(--muted); }
a { color: var(--accent); }
.loading { display: grid; place-items: center; align-content: center; gap: 14px; height: 100vh; color: var(--muted); font-weight: 700; font-size: 18px; }
.loading .logo-mark { animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.06); filter: drop-shadow(0 0 18px rgba(255,122,61,.5)); } }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- кнопки и поля ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 16px; min-height: 46px;
  border-radius: 14px; background: var(--surface2); border: 1px solid var(--line-soft); font-weight: 700; transition: transform .1s, background .2s, box-shadow .2s; }
.btn:hover { background: color-mix(in srgb, var(--surface2) 80%, var(--text) 6%); }
.btn:active { transform: scale(.97); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: var(--accent-ink); border-color: transparent; box-shadow: 0 6px 20px var(--glow); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.danger { color: var(--due); }
.btn.danger-fill { background: var(--due); color: #fff; border-color: transparent; }
.btn.ghost { background: transparent; border-color: var(--line); }
.btn.small { padding: 7px 12px; min-height: 36px; font-size: 13px; border-radius: 11px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 16px; flex: none;
  background: var(--surface2); border: 1px solid var(--line-soft); }
.icon-btn.danger { color: var(--due); }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; letter-spacing: .01em; }
.input { width: 100%; padding: 12px 14px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line-soft);
  outline: none; min-height: 46px; transition: border-color .2s, box-shadow .2s; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--glow); }
textarea.input { min-height: 160px; resize: vertical; }
.num-input { width: 78px; text-align: center; }
.seg { display: flex; gap: 4px; padding: 4px; background: var(--surface2); border-radius: 14px; border: 1px solid var(--line-soft); }
.seg button { flex: 1; padding: 9px 8px; border-radius: 10px; font-weight: 700; color: var(--muted); min-height: 38px; transition: .2s; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.25), inset 0 0 0 1px var(--line-soft); }
.seg.wrap { flex-wrap: wrap; }
.seg.mini button { padding: 6px 8px; min-height: 32px; font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 8px 13px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--line-soft); font-size: 13px; font-weight: 600; transition: .15s; }
.chip:active { transform: scale(.96); }
.chip.on { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: var(--accent-ink); border-color: transparent; }
.chip small { color: inherit; opacity: .6; font-weight: 600; }
.edit-chip { display: inline-flex; align-items: center; gap: 6px; padding-right: 6px; }
.edit-chip button { width: 22px; height: 22px; border-radius: 50%; background: var(--line); font-size: 11px; }
.note { padding: 11px 13px; border-radius: 14px; background: var(--surface2); color: var(--muted); font-size: 13px; margin-bottom: 12px; border: 1px solid var(--line-soft); }
.note.ok { color: var(--text); border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: color-mix(in srgb, var(--accent) 10%, var(--surface2)); }
.err { color: var(--due); font-size: 13px; min-height: 18px; margin: 4px 0 8px; font-weight: 600; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; cursor: pointer; }
.switch .tg { width: 50px; height: 30px; border-radius: 99px; background: var(--line); position: relative; flex: none; transition: .25s; }
.switch .tg::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: .25s; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.switch .tg.on { background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.switch .tg.on::after { left: 23px; }
.dot { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: var(--accent); color: var(--accent-ink); font: 800 11px/1 "Manrope", system-ui; font-style: normal; }
.dot.hot { background: var(--due); color: #fff; }
.dot.inline { vertical-align: 2px; margin-left: 4px; }

/* ---------- вход, экскурс, настройка углей ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; padding-top: max(28px, env(safe-area-inset-top));
  background: radial-gradient(800px 400px at 50% -10%, var(--glow), transparent 70%); }
.auth-card { width: 100%; max-width: 420px; }
.brand-big { text-align: center; margin-bottom: 22px; }
.brand-big .logo-mark { filter: drop-shadow(0 10px 30px rgba(255,122,61,.45)); }
.brand-big h1 { font-size: 32px; margin-top: 12px; }
.brand-big p { color: var(--muted); margin: 6px 0 0; }
.panel-box { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 24px; padding: 18px; box-shadow: var(--shadow); }
.panel-box > .seg { margin-bottom: 16px; }
.auth-foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 16px; }
.steps { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 12px; }
.steps li { padding-left: 4px; }
.steps li::marker { color: var(--accent); font-weight: 800; }
.code-input { text-transform: uppercase; letter-spacing: .3em; font: 800 22px ui-monospace, Menlo, monospace; text-align: center; }
.tour { min-height: 100vh; display: flex; flex-direction: column; padding: 24px 16px; padding-top: max(24px, env(safe-area-inset-top)); max-width: 520px; margin: 0 auto; }
.tour-skip { align-self: flex-end; color: var(--muted); padding: 8px; font-weight: 600; }
.tour-slide { flex: 1; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.tour-art { width: 100%; max-width: 320px; margin: 0 auto 28px; aspect-ratio: 4/3; border-radius: 28px; background: var(--surface);
  border: 1px solid var(--line-soft); display: grid; place-items: center; font-size: 64px; overflow: hidden; box-shadow: var(--shadow), 0 0 80px var(--glow); }
.tour-art svg { width: 86%; height: 86%; }
.tour-slide h2 { font-size: 28px; margin-bottom: 10px; }
.tour-slide p { color: var(--muted); font-size: 16px; margin: 0 auto; max-width: 380px; }
.dots { display: flex; gap: 6px; justify-content: center; margin: 24px 0; }
.dots i { width: 8px; height: 8px; border-radius: 9px; background: var(--line); transition: .3s; }
.dots i.on { width: 26px; background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.tour-nav { display: flex; gap: 10px; padding-bottom: env(safe-area-inset-bottom); }
.tour-nav .btn { flex: 1; }
.setup { max-width: 520px; margin: 0 auto; padding: 28px 16px 40px; padding-top: max(28px, env(safe-area-inset-top)); }
.setup h1 { font-size: 28px; margin-bottom: 6px; }
.setup > p { color: var(--muted); margin: 0 0 20px; }
.coal-block { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 20px; padding: 16px; margin-bottom: 12px; }
.coal-block h3 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.coal-block .tag { font-size: 11px; padding: 3px 9px; border-radius: 99px; background: var(--surface2); color: var(--muted); font-weight: 700; letter-spacing: 0; }
.coal-block .tag.must { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: var(--accent-ink); }
.coal-block p { color: var(--muted); font-size: 13px; margin: 6px 0 12px; }
.sheet .coal-block { background: var(--surface2); }

/* ---------- главный экран ---------- */
.main { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
.topbar { position: relative; z-index: 25; display: flex; align-items: center; gap: 10px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft); min-height: 62px; }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; flex: 1; }
.brand b { display: block; font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand small { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-mark { flex: none; display: block; }
.view-switch { flex: none; width: 190px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.live.on { background: #3ddc84; box-shadow: 0 0 0 4px rgba(61,220,132,.15); }
.menu-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 13px;
  background: var(--surface2); border: 1px solid var(--line-soft); font-weight: 700; }
.burger, .burger::before, .burger::after { display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -5px; } .burger::after { top: 5px; }
.menu-btn .dot { position: absolute; top: -5px; right: -5px; }
.editbar { position: relative; z-index: 24; background: var(--surface); border-bottom: 1px solid var(--line-soft); padding: 10px 16px; display: flex; flex-direction: column; gap: 10px; }
.editbar .tools { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.editbar .tools .btn { flex: none; }
.selprops { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; border-radius: 16px; background: var(--surface2); }
.selprops .input { width: 110px; min-height: 36px; padding: 6px 10px; }
.stepper { display: inline-flex; align-items: center; gap: 2px; background: var(--surface2); border: 1px solid var(--line-soft); border-radius: 14px; padding: 3px; }
.stepper button { width: 38px; height: 38px; border-radius: 11px; font-size: 20px; font-weight: 700; transition: .15s; }
.stepper button:active { background: var(--line); transform: scale(.94); }
.stepper b { min-width: 30px; text-align: center; font-size: 17px; }
.map-wrap { flex: 1; overflow: auto; padding: 14px; -webkit-overflow-scrolling: touch; position: relative; }
#map { display: block; width: 100%; min-width: 860px; max-width: 1400px; margin: 0 auto; height: auto; user-select: none; -webkit-user-select: none; }
.legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; padding: 10px 0 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.list-wrap { display: none; flex: 1; overflow-y: auto; padding: 14px 16px 24px; }
.main.view-list .map-wrap { display: none; }
.main.view-list .list-wrap { display: block; }
.main.editing .map-wrap { display: block; }
.main.editing .list-wrap { display: none; }

/* карта (SVG) */
.floor { fill: var(--floor); stroke: var(--line-soft); stroke-width: 2; }
.gridline { stroke: var(--grid); stroke-width: 1; }
.item { cursor: pointer; }
.item .top { fill: var(--table); stroke: var(--table-line); stroke-width: 2; transition: fill .3s, stroke .3s; }
.item .chair, .item .stool { fill: var(--chair); }
.item .sofa { fill: var(--sofa); }
.item .sofa-arc { fill: none; stroke: var(--sofa); stroke-width: 22; stroke-linecap: round; }
.item.bar .top.bar-top { fill: var(--bar); stroke-dasharray: 6 5; }
.item .lbl { fill: var(--text); font: 800 18px "Manrope", system-ui, sans-serif; text-anchor: middle; pointer-events: none; }
.item .sub { fill: var(--muted); font: 700 12px "Manrope", system-ui, sans-serif; text-anchor: middle; pointer-events: none; }
.item.bar .lbl { fill: var(--muted); font-size: 14px; letter-spacing: .18em; }
.item.sel .top { stroke: var(--accent); stroke-width: 4; stroke-dasharray: none; filter: drop-shadow(0 0 10px var(--glow)); }
.item.open .top { stroke: var(--open); stroke-width: 3; fill: color-mix(in srgb, var(--table) 85%, var(--open)); }
.item.open .sub { fill: var(--open); }
.item.heat .top { stroke: var(--heat); stroke-width: 4; }
.item.heat .sub { fill: var(--heat); }
.item.due .top { stroke: var(--due); stroke-width: 5; animation: pulse 1s infinite; fill: color-mix(in srgb, var(--table) 80%, var(--due)); }
.item.due .sub { fill: var(--due); }
.item.merged .top { stroke: var(--accent); stroke-width: 3; stroke-dasharray: 6 5; }
.item.merged .sub { fill: var(--accent); }
.editing .item { cursor: grab; touch-action: none; }
.editing .item:active { cursor: grabbing; }
.empty-map { fill: var(--muted); font: 700 20px "Manrope", system-ui; text-anchor: middle; }
.merge-line { stroke: var(--accent); stroke-width: 4; stroke-dasharray: 2 9; stroke-linecap: round; opacity: .85; }
@keyframes pulse { 50% { stroke-opacity: .35; } }
.mergebar { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); width: min(560px, calc(100% - 24px)); z-index: 22;
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--accent); box-shadow: var(--shadow), 0 0 30px var(--glow); }
.mergebar > div { flex: 1; min-width: 0; }
.mergebar b, .mergebar small { display: block; }

/* список столов */
.tlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; max-width: 1200px; margin: 0 auto; }
.tcard { display: block; width: 100%; text-align: left; padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line-soft); transition: transform .1s; position: relative; overflow: hidden; }
.tcard:active { transform: scale(.98); }
.tcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--open); }
.tcard.st-heat::before { background: var(--heat); }
.tcard.st-due::before { background: var(--due); }
.tcard.st-due { border-color: color-mix(in srgb, var(--due) 50%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--due) 30%, transparent), 0 0 24px color-mix(in srgb, var(--due) 18%, transparent); }
.tcard.st-idle::before { background: var(--line); }
.tc-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.tc-head b { font-size: 17px; flex: 1; }
.pill-n { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: var(--surface2); }
.pill-n.hot { background: var(--accent); color: var(--accent-ink); }
.tc-hk { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; padding: 4px 0; }
.tc-t { font-weight: 800; font-variant-numeric: tabular-nums; }
.st-due .tc-t { color: var(--due); } .st-heat .tc-t { color: var(--heat); }
.tc-menu { font-size: 13px; color: var(--muted); margin-top: 4px; }
.empty { text-align: center; padding: 60px 20px; display: grid; gap: 8px; justify-items: center; }
.empty-ico { font-size: 44px; }
.empty small { margin-bottom: 8px; }

/* нижняя навигация (телефон) */
.bnav { display: none; }
@media (max-width: 799px) {
  .view-switch, .menu-btn, .legend { display: none; }
  .bnav { display: flex; position: fixed; left: 12px; right: 12px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 26;
    padding: 6px; gap: 4px; border-radius: 22px; background: color-mix(in srgb, var(--surface) 86%, transparent);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--line-soft); box-shadow: var(--shadow); }
  .bnav:empty { display: none; }
  .bnav button { flex: 1; position: relative; display: grid; justify-items: center; gap: 2px; padding: 7px 4px; border-radius: 16px; color: var(--muted); font-size: 11px; font-weight: 700; }
  .bnav button.on { color: var(--text); background: var(--surface2); }
  .bnav button.on svg { stroke: var(--accent); }
  .bnav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .bnav .dot { position: absolute; top: 3px; left: 55%; }
  .map-wrap, .list-wrap { padding-bottom: 96px; }
  .mergebar { bottom: 92px; }
  body.panel-open .bnav { display: none; }
  .topbar { padding-left: 14px; padding-right: 14px; }
  .brand small { max-width: 60vw; }
  .tlist { grid-template-columns: 1fr; }
}
body.in-tg .topbar { padding-top: 10px; }

/* ---------- карточка стола ---------- */
.panel { position: fixed; z-index: 30; background: var(--surface); border: 1px solid var(--line-soft);
  display: flex; flex-direction: column; transition: transform .3s cubic-bezier(.2,.8,.2,1); box-shadow: 0 -20px 60px rgba(0,0,0,.4); }
@media (max-width: 799px) {
  .panel { left: 0; right: 0; bottom: 0; max-height: 92vh; max-height: 92dvh; border-radius: 28px 28px 0 0; transform: translateY(105%); }
}
@media (min-width: 800px) {
  .panel { top: 74px; right: 12px; bottom: 12px; width: 430px; transform: translateX(110%); border-radius: 26px; }
}
.panel.open { transform: none; }
.grab { width: 40px; height: 5px; border-radius: 9px; background: var(--line); margin: 8px auto 0; flex: none; }
@media (min-width: 800px) { .grab { display: none; } }
.panel-head { display: flex; align-items: flex-start; gap: 10px; padding: 14px 18px 10px; }
.panel-head h2 { font-size: 24px; }
.panel-body { overflow-y: auto; padding: 0 18px 20px; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
.guests { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; background: var(--surface2); border-radius: 18px; margin-bottom: 12px; }
.guests > span { font-weight: 700; }
.guests .stepper { background: var(--surface); }
.tabs { display: flex; gap: 4px; margin-bottom: 14px; padding: 4px; background: var(--surface2); border-radius: 16px; }
.tabs button { flex: 1; padding: 10px 4px; border-radius: 12px; font-weight: 700; color: var(--muted); font-size: 14px; white-space: nowrap; transition: .2s; }
.tabs button.on { color: var(--text); background: var(--surface); box-shadow: 0 2px 8px rgba(0,0,0,.25), inset 0 0 0 1px var(--line-soft); }
.tabs button span { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--line); font-size: 11px; margin-left: 4px; line-height: 18px; }
.tabs button span.hot { background: var(--due); color: #fff; }
.card { background: var(--surface2); border: 1px solid var(--line-soft); border-radius: 18px; padding: 13px; margin-bottom: 10px; }
.card.st-done { opacity: .55; }
.card-top { display: flex; align-items: flex-start; gap: 8px; }
.card-top b { font-size: 16px; }
.pill { display: inline-block; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 99px; margin-left: 6px; vertical-align: 2px; }
.s-light { background: rgba(61,220,151,.16); color: #3fcf8e; }
.s-medium { background: rgba(255,181,71,.16); color: #e9a23a; }
.s-strong { background: rgba(255,77,94,.16); color: #ff5f6d; }
.status { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; font-weight: 600; }
.hk-note { margin-top: 6px; font-size: 14px; }
.meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.timer { margin-top: 10px; padding: 11px 13px; border-radius: 14px; background: var(--bg); font-weight: 800; font-variant-numeric: tabular-nums; }
.timer.heat { color: var(--heat); box-shadow: inset 0 0 0 2px var(--heat); }
.timer.due { color: var(--due); box-shadow: inset 0 0 0 2px var(--due); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .6; } }
.actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.actions .btn { flex: 1; min-width: 0; }
.actions .btn.icon { flex: none; width: 46px; padding: 0; }
.form-card { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.form-card .field { margin-bottom: 10px; }
.done-title, .menu-cat { font-size: 11px; color: var(--muted); margin: 14px 0 8px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.mi { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.mi:last-child { border-bottom: 0; }
.mi .nm { flex: 1; min-width: 0; }
.mi .nm small { display: block; }
.mi .stepper button { width: 32px; height: 32px; }
.total { display: flex; justify-content: space-between; font-weight: 800; padding: 10px 0 0; }
.add-row { display: flex; gap: 6px; margin-top: 8px; }
.add-row .input { min-height: 44px; }
.close-table { margin-top: 18px; }
.cmt-input { display: flex; gap: 6px; margin-top: 6px; }
.cmt-input .input { min-height: 46px; border-radius: 23px; padding: 10px 16px; }
.cmt-input .btn { min-height: 46px; width: 46px; padding: 0; border-radius: 50%; }

/* чат (стол и поддержка) */
.chat { max-height: 46vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 4px 0; }
.chat.tall { max-height: none; min-height: 40vh; }
.msg { display: flex; }
.msg.mine { justify-content: flex-end; }
.bubble { max-width: 82%; padding: 9px 13px; border-radius: 18px 18px 18px 6px; background: var(--surface2); border: 1px solid var(--line-soft); font-size: 14px; word-wrap: break-word; }
.msg.mine .bubble { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: var(--accent-ink); border-color: transparent; border-radius: 18px 18px 6px 18px; }
.bubble b { font-size: 12px; }
.bubble small { color: var(--muted); font-size: 11px; }
.bubble .tm { display: block; text-align: right; font-size: 10px; opacity: .6; margin-top: 2px; font-weight: 600; }
.support-hero { display: grid; gap: 4px; }
.support-hero b { font-size: 17px; }

/* ---------- окно «Меню» и разделы ---------- */
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 40; display: flex; justify-content: flex-end; animation: fade .2s; }
.sheet { width: 100%; max-width: 480px; height: 100%; background: var(--bg); overflow-y: auto; padding: 16px; padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: max(24px, env(safe-area-inset-bottom)); animation: slidein .25s cubic-bezier(.2,.8,.2,1); border-left: 1px solid var(--line-soft); }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } }
.sheet section { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 22px; padding: 16px; margin-bottom: 12px; }
.sheet section h3 { font-size: 17px; margin-bottom: 12px; }
.sheet-head { margin-bottom: 14px; gap: 10px; }
.sheet-head h2 { font-size: 22px; }
.me-card { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: 22px; margin-bottom: 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--surface)), var(--surface)); border: 1px solid var(--line-soft); }
.me-card b { display: block; font-size: 17px; }
.me-card small { display: block; }
.avatar { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: var(--accent-ink); font-weight: 800; font-size: 18px; }
.avatar.sm { width: 38px; height: 38px; font-size: 15px; }
.menu-list { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 22px; overflow: hidden; margin-bottom: 12px; }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); transition: background .15s; }
.menu-item:last-child { border-bottom: 0; }
.menu-item:active, .menu-item:hover { background: var(--surface2); }
.menu-item b { display: block; font-weight: 700; }
.menu-item small { display: block; font-size: 12px; }
.mi-ico { font-size: 20px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface2); flex: none; }
.chev { margin-left: auto; color: var(--muted); font-size: 22px; }
.badge-row { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { padding: 6px 12px; border-radius: 99px; background: var(--surface2); border: 1px solid var(--line-soft); font-weight: 700; font-size: 13px; }
.badge.lvl-manager, .badge.lvl-senior { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: var(--accent-ink); border-color: transparent; }
.tg-card { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: var(--surface2); margin-bottom: 10px; }
.tg-card b, .tg-card small { display: block; }
.tg-card.on { box-shadow: inset 0 0 0 1px #2aabee; }
.tg-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #2aabee; flex: none; }
.staff-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.staff-row:last-child { border-bottom: 0; }
.staff-row .nm { flex: 1; min-width: 0; }
.staff-row .nm small { display: block; }
.sel { width: auto; min-height: 38px; padding: 6px 10px; margin-top: 6px; }
.rights p { margin: 0 0 8px; font-size: 14px; }
.invite { padding: 12px 0; border-bottom: 1px solid var(--line-soft); display: grid; gap: 6px; }
.invite:last-child { border-bottom: 0; }
.invite small { display: block; }
.code { font: 800 26px ui-monospace, Menlo, monospace; letter-spacing: .18em; background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cat-card .row { margin-bottom: 10px; }
.cat-name { font-weight: 800; }
.md-row { display: flex; gap: 6px; margin-bottom: 6px; }
.md-row .input { min-height: 42px; padding: 8px 12px; }
.md-row .num-input { width: 92px; flex: none; }
.sticky-save { position: sticky; bottom: 0; padding: 12px 0 4px; background: linear-gradient(transparent, var(--bg) 35%); }
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.theme { border-radius: 16px; padding: 10px; border: 2px solid transparent; text-align: left; transition: transform .1s; }
.theme:active { transform: scale(.97); }
.theme.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.theme .sw { display: flex; gap: 4px; margin-bottom: 8px; }
.theme .sw i { flex: 1; height: 22px; border-radius: 7px; }
.theme b { display: block; font-size: 14px; }
.theme small { font-size: 11px; opacity: .8; color: inherit; }

/* ---------- окно подтверждения ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 70; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 26px; padding: 24px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: pop .2s cubic-bezier(.2,.8,.2,1); }
.modal-ico { font-size: 40px; margin-bottom: 6px; }
.modal h3 { font-size: 20px; margin-bottom: 8px; }
.modal p { color: var(--muted); margin: 0 0 20px; font-size: 14px; }
.modal .row .btn { flex: 1; }
.modal .spacer { flex: 0 0 8px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }

/* ---------- уведомления и тосты ---------- */
#alerts { position: fixed; top: max(10px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: min(560px, calc(100% - 20px));
  z-index: 80; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.alert { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; border-radius: 20px; color: #fff;
  box-shadow: 0 16px 50px rgba(0,0,0,.45); animation: drop .3s cubic-bezier(.2,.8,.2,1); }
.alert.due { background: linear-gradient(135deg, #e0313f, #ff5a4a); }
.alert.heat { background: linear-gradient(135deg, #d77a00, #f5a524); }
.alert .al-ico { font-size: 26px; }
.alert .al-txt { flex: 1; min-width: 0; }
.alert .al-txt b { display: block; font-size: 15px; }
.alert .al-txt small { color: rgba(255,255,255,.88); }
.alert .btn { background: #fff; color: #1b1b1b; border: 0; min-height: 38px; box-shadow: none; }
.alert .x { color: #fff; font-size: 18px; padding: 6px; }
@keyframes drop { from { transform: translateY(-20px); opacity: 0; } }
#toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(200%); opacity: 0; background: var(--text); color: var(--bg);
  padding: 12px 18px; border-radius: 16px; font-weight: 700; z-index: 90; transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .3s; max-width: calc(100% - 32px); text-align: center; box-shadow: var(--shadow); }
#toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
@media (max-width: 799px) { #toast { bottom: 100px; } body.panel-open #toast { bottom: 150px; } }

/* =====================================================================
   v5: новый зал, оплата, отчёты, график, права, фото
   ===================================================================== */

/* ---------- зал ---------- */
.floor-dot { fill: var(--grid); }
.gt-hi { stop-color: color-mix(in srgb, var(--table) 72%, #ffffff); }
.gt-lo { stop-color: var(--table); }
.gb-hi { stop-color: color-mix(in srgb, var(--bar) 60%, #ffffff); }
.gb-lo { stop-color: var(--bar); }
.item .top { fill: url(#g-top); stroke: var(--table-line); stroke-width: 1.5; }
.item .rim { fill: none; stroke: rgba(255,255,255,.07); stroke-width: 1.5; pointer-events: none; }
[data-theme="neon2"] .item .rim, [data-theme="wood"] .item .rim { stroke: rgba(255,255,255,.45); }
.item .chair { fill: var(--chair); }
.item .chair-back { fill: color-mix(in srgb, var(--chair) 75%, #000); }
.item .stool { fill: var(--chair); }
.item .stool-in { fill: color-mix(in srgb, var(--chair) 70%, #fff); opacity: .35; }
.item .sofa { fill: var(--sofa); }
.item .sofa-seam { stroke: rgba(0,0,0,.25); stroke-width: 1.5; }
.item.bar .top.bar-top { fill: url(#g-bar); stroke: var(--table-line); stroke-dasharray: none; stroke-width: 1.5; }
.item .bar-edge { fill: rgba(255,255,255,.12); }
.item .lbl { font: 700 19px "Unbounded", "Manrope", system-ui, sans-serif; letter-spacing: -.02em; paint-order: stroke; stroke: rgba(0,0,0,.25); stroke-width: 3px; }
[data-theme="neon2"] .item .lbl, [data-theme="wood"] .item .lbl { stroke: rgba(255,255,255,.5); }
.item.bar .lbl { font: 600 13px "Unbounded", "Manrope", system-ui, sans-serif; letter-spacing: .3em; fill: var(--text); opacity: .75; }
.item .sub { font: 700 11.5px "Manrope", system-ui, sans-serif; }
.item.sel .top { stroke: var(--accent); stroke-width: 3.5; }
.item.open .top { stroke: var(--open); stroke-width: 3; }
.item.heat .top { stroke: var(--heat); stroke-width: 3.5; }
.item.due .top { stroke: var(--due); stroke-width: 4; }

/* ---------- шапка: фото заведения и смена ---------- */
.venue-logo { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; flex: none; }
.shift-chip { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 12px; font-weight: 800; font-size: 13px;
  background: color-mix(in srgb, #3ddc84 14%, var(--surface2)); color: var(--text); border: 1px solid color-mix(in srgb, #3ddc84 35%, transparent); font-variant-numeric: tabular-nums; }
.shift-chip i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgba(61,220,132,.2); animation: pulse-dot 2s infinite; }
.shift-chip.off { background: var(--surface2); border-color: var(--line); color: var(--muted); }
@keyframes pulse-dot { 50% { box-shadow: 0 0 0 6px rgba(61,220,132,0); } }
.on-shift { color: #3ddc84; font-size: 11px; font-weight: 800; }
@media (max-width: 799px) { .shift-chip { height: 32px; padding: 0 10px; font-size: 12px; } }

/* ---------- аватары и фото ---------- */
img.avatar { object-fit: cover; padding: 0; border: 2px solid var(--line-soft); }
.avatar.lg { width: 64px; height: 64px; font-size: 24px; }
.photo-pick { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: var(--surface2); border: 1px dashed var(--line); margin-bottom: 14px; cursor: pointer; }
.photo-pick > span { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: var(--surface); flex: none; }
.photo-pick > img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.photo-pick b, .photo-pick small { display: block; }

/* ---------- поиск стола ---------- */
.finder { max-width: 1200px; margin: 0 auto 14px; }
.finder-in { display: flex; align-items: center; gap: 8px; padding: 0 6px 0 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-soft); margin-bottom: 10px; }
.finder-in .input { border: 0; background: transparent; box-shadow: none; padding-left: 0; font-size: 16px; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.tchip { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-soft); }
.tchip b { font: 700 16px "Unbounded", "Manrope", system-ui; }
.tchip small { font-size: 11px; font-weight: 700; }
.tchip.st-open { border-color: var(--open); } .tchip.st-open small { color: var(--open); }
.tchip.st-heat { border-color: var(--heat); }
.tchip.st-due { border-color: var(--due); background: color-mix(in srgb, var(--due) 12%, var(--surface)); }
.tchip.st-merged { border-style: dashed; border-color: var(--accent); }
.list-h { max-width: 1200px; margin: 6px auto 8px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

/* ---------- меню по вкладкам ---------- */
.menu-tabs { margin-bottom: 4px; overflow-x: auto; }
.menu-tabs button { white-space: nowrap; }
.ed-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: none; }
.ed-tabs button { flex: none; padding: 9px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-soft); font-weight: 700; color: var(--muted); }
.ed-tabs button.on { color: var(--text); border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.ico-sel { width: 70px; flex: none; font-size: 18px; padding: 8px; }

/* ---------- окно оплаты ---------- */
.modal.pay { max-width: 440px; text-align: left; max-height: 92vh; overflow-y: auto; }
.modal.pay h3, .modal.pay .modal-ico { text-align: center; }
.bill { background: var(--surface2); border-radius: 16px; padding: 10px 14px; margin: 10px 0 12px; }
.bill > div { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; }
.bill .sum { border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 8px; font-size: 17px; }
.pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.pay-btn { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line-soft); font-weight: 700; font-size: 12px; }
.pay-btn span { font-size: 22px; }
.pay-btn.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); color: var(--text); }
.mixed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mixed .field { margin-bottom: 6px; }
.pay-sum { font-weight: 800; margin-bottom: 10px; color: var(--heat); }
.pay-sum.ok { color: var(--open); }
.big-num { font-size: 22px; font-weight: 800; }
.note.warn { color: var(--text); border-color: color-mix(in srgb, var(--heat) 45%, transparent); background: color-mix(in srgb, var(--heat) 12%, var(--surface2)); }

/* ---------- широкие окна (отчёты, журнал) ---------- */
.sheet.wide { max-width: 980px; }
.rep-range { margin-bottom: 6px; align-items: center; }
.rep-range .date-in { width: auto; min-height: 38px; padding: 6px 10px; flex: 1 1 140px; border-radius: 10px; }
.rep-range .date-in.on { border-color: var(--accent); }
.rep-note { display: block; margin-bottom: 12px; }
.rep-tabs { margin-top: 4px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 18px; padding: 12px 14px; }
.kpi small { display: block; font-weight: 700; font-size: 12px; }
.kpi b { display: block; font-size: 20px; font-weight: 800; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi.hero { grid-column: span 2; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--surface)), var(--surface)); }
.kpi.hero b { font-size: 32px; }
@media (max-width: 420px) { .kpi.hero { grid-column: span 1; } .kpis { grid-template-columns: 1fr 1fr; } .kpi.hero { grid-column: 1 / -1; } }
.stack { display: flex; gap: 2px; height: 22px; border-radius: 6px; overflow: hidden; margin-bottom: 12px; }
.stack i { display: block; min-width: 4px; }
.legend-t { display: grid; gap: 6px; margin-bottom: 8px; }
.legend-t > div { display: grid; grid-template-columns: 12px 1fr auto 46px; gap: 10px; align-items: center; font-size: 14px; }
.legend-t i { width: 12px; height: 12px; border-radius: 3px; }
.legend-t b { font-variant-numeric: tabular-nums; }
.legend-t small { text-align: right; }
.vz-scroll { overflow-x: auto; }
.vz { display: block; max-width: 100%; height: auto; min-width: 320px; }
.vz-grid { stroke: var(--line-soft); stroke-width: 1; }
.vz-base { stroke: var(--line); stroke-width: 1; }
.vz-ax { fill: var(--muted); font: 600 10px "Manrope", system-ui; }
.vz-bar { fill: var(--accent); }
.vz-hit:hover .vz-bar { fill: var(--accent2); }
.viztip { position: fixed; z-index: 100; pointer-events: none; display: none; padding: 7px 10px; border-radius: 10px; background: var(--text); color: var(--bg); font-size: 12px; font-weight: 700; box-shadow: var(--shadow); max-width: 260px; }
.rtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.rtable th { text-align: left; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.rtable td { padding: 8px 4px; border-bottom: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
.rtable td:last-child, .rtable th:last-child { text-align: right; }
.st-card { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.st-card:last-child { border-bottom: 0; }
.st-card .nm small { display: block; }
.st-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.st-grid > div { background: var(--surface2); border-radius: 12px; padding: 8px 10px; }
.st-grid small, .st-grid b { display: block; }
.st-grid b { font-size: 14px; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .st-grid { grid-template-columns: 1fr 1fr; } }
.log-filters { margin-bottom: 10px; }
.log-filters .input { min-height: 40px; }

/* ---------- уведомления, журнал ---------- */
.notif { display: flex; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.notif:last-child { border-bottom: 0; }
.notif.new { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.notif.warn .mi-ico { background: color-mix(in srgb, var(--heat) 18%, var(--surface2)); }
.notif small { display: block; margin-top: 2px; }
.menu-list.log .notif { padding: 9px 14px; }

/* ---------- права ---------- */
.perm-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.perm-row:last-child { border-bottom: 0; }
.perm-row .pr-l { flex: 1 1 180px; min-width: 0; }
.perm-row .pr-l b, .perm-row .pr-l small { display: block; }
.perm-row.yes .pr-l small { color: #3fcf8e; }
.perm-row.no .pr-l small { color: var(--due); }
.perm-row .seg { flex: 0 0 auto; }
.seg.dis { opacity: .5; }

/* ---------- график смен ---------- */
.week-nav { margin-bottom: 12px; }
.week-nav b { font-variant-numeric: tabular-nums; }
.day.today { border-color: var(--accent); }
.day-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sch-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.sch-row.mine { background: color-mix(in srgb, var(--accent) 8%, transparent); border-radius: 12px; padding: 8px; }
.sch-row .nm { flex: 1; min-width: 0; }
.sch-row .nm small { display: block; }
.sch-t { font-weight: 800; font-variant-numeric: tabular-nums; }
.sch-form { display: grid; gap: 8px; padding: 10px; border-radius: 14px; background: var(--surface2); margin-bottom: 8px; }
.sch-form input[type=time] { width: auto; flex: 1; }
.muted-empty { display: block; padding: 2px 0; }
.my-shifts { border-color: var(--accent); }
.ms-row { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; }
.ms-row span { font-weight: 800; }
.vz { width: 100%; }
.perm-row .seg button { white-space: nowrap; padding: 6px 10px; }
.gt-hi { stop-color: color-mix(in srgb, var(--table) 84%, #ffffff); }

/* =====================================================================
   v6: новый зал — паркет, плоские столы со статус-ободком, места за баром
   ===================================================================== */
.floor { fill: var(--floor); stroke: var(--line); stroke-width: 1.5; }
.plank { stroke: var(--grid); stroke-width: 1; opacity: .7; }
.item > g { filter: drop-shadow(0 6px 8px rgba(0,0,0,.28)); }
.item .top { fill: var(--table); stroke: var(--table-line); stroke-width: 1.5; animation: none; transition: fill .3s; }
.item .rim { fill: none; stroke: rgba(255,255,255,.06); stroke-width: 1; }
.item .halo { fill: none; stroke: transparent; stroke-width: 3; transition: stroke .3s; }
.item .chair { fill: var(--chair); stroke: rgba(0,0,0,.18); stroke-width: 1; }
.item .sofa { fill: var(--sofa); }
.item .sofa-arc { stroke: var(--sofa); stroke-width: 20; }
.item .sofa-seam { stroke: rgba(0,0,0,.22); stroke-width: 1.5; }
.item .bar-top { fill: url(#g-bar); stroke: var(--table-line); stroke-width: 1.5; }
.item .bar-shine { fill: rgba(255,255,255,.14); }
.item .stool { fill: var(--chair); stroke: var(--table-line); stroke-width: 1; }
.item .lbl { font-family: var(--hall-font, "Unbounded"), "Manrope", system-ui, sans-serif; font-weight: 700; font-size: 20px; stroke: none; fill: var(--text); }
.item.bar .lbl { font-size: 12px; letter-spacing: .3em; opacity: .7; }
.item .badge-bg { fill: color-mix(in srgb, var(--bg) 82%, transparent); }
.item .sub { font: 800 11px "Manrope", system-ui, sans-serif; fill: var(--text); }
.item.open .top { fill: color-mix(in srgb, var(--table) 78%, var(--open)); stroke: var(--table-line); stroke-width: 1.5; }
.item.open .halo { stroke: var(--open); opacity: .7; }
.item.open .sub { fill: var(--open); }
.item.heat .top { fill: color-mix(in srgb, var(--table) 72%, var(--heat)); stroke: var(--table-line); stroke-width: 1.5; }
.item.heat .halo { stroke: var(--heat); stroke-width: 4; }
.item.heat .sub { fill: var(--heat); }
.item.due .top { fill: color-mix(in srgb, var(--table) 62%, var(--due)); stroke: var(--table-line); stroke-width: 1.5; }
.item.due .halo { stroke: var(--due); stroke-width: 5; animation: pulse 1s infinite; }
.item.due .sub { fill: var(--due); }
.item.merged .top { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 5; }
.item.merged .halo { stroke: var(--accent); opacity: .5; stroke-dasharray: 4 6; }
.item.sel .top { stroke: var(--accent); stroke-width: 2.5; filter: none; }
.item.sel .halo { stroke: var(--accent); stroke-width: 3; opacity: 1; }
/* места за баром */
.item.seat .top { fill: var(--chair); stroke: var(--table-line); stroke-width: 1.5; }
.item.seat .halo { stroke-width: 3; }
.item.seat .seat-n { font-size: 12px; font-weight: 700; }
.item.seat.open .top { fill: color-mix(in srgb, var(--chair) 60%, var(--open)); }
.item.seat.heat .top { fill: color-mix(in srgb, var(--chair) 55%, var(--heat)); }
.item.seat.due .top { fill: color-mix(in srgb, var(--chair) 45%, var(--due)); }
.tchip b { font-family: var(--hall-font, "Unbounded"), "Manrope", system-ui; }

/* подтверждение заказа */
.mi.draft { background: color-mix(in srgb, var(--heat) 6%, transparent); border-radius: 10px; padding-left: 6px; padding-right: 6px; }
.draft-pill { background: color-mix(in srgb, var(--heat) 22%, transparent); color: var(--heat); font-size: 10px; margin-left: 4px; }
.mi.locked .lock { font-size: 12px; opacity: .75; }
.stepper.danger button { color: var(--due); }
.confirm-btn { margin-top: 12px; }
.confirm-hint { display: block; text-align: center; margin-top: 6px; font-size: 11px; }

/* оплата: карта гостя */
.bill .disc { color: var(--open); }
.gc-chosen { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--open) 12%, var(--surface2)); border: 1px solid color-mix(in srgb, var(--open) 40%, transparent); font-weight: 700; }
.gc-found { display: grid; gap: 4px; margin-top: 6px; }
.gc-opt { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line-soft); text-align: left; }
.gc-opt span { color: var(--open); font-weight: 800; }
.pay-grid { grid-template-columns: repeat(3, 1fr); }
/* карты гостей */
.gc-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.gc-row:last-child { border-bottom: 0; }
.gc-row.off { opacity: .5; }
.gc-row .nm { flex: 1; min-width: 0; }
.gc-row .nm small { display: block; }
.gc-badge { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: var(--accent-ink); }
.card-form { border-color: var(--accent); }
/* редактор дизайна */
.themes.mini { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.themes.mini .theme { padding: 8px; }
.themes.mini .theme b { font-size: 12px; }
.custom-theme { width: 100%; max-width: 260px; display: block; }
.color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.color-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; background: var(--surface2); cursor: pointer; }
.color-row input[type=color] { width: 36px; height: 36px; border: 0; padding: 0; background: none; border-radius: 10px; cursor: pointer; flex: none; }
.color-row input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.color-row input[type=color]::-webkit-color-swatch { border: 1px solid var(--line); border-radius: 10px; }
.color-row span { flex: 1; font-weight: 600; font-size: 14px; }
.color-row code { font-size: 11px; color: var(--muted); }
/* отчёты: период */
.period { margin: 6px 0; flex-wrap: wrap; }
.period .input { width: auto; flex: 1 1 140px; min-height: 40px; }
.period span { color: var(--muted); font-weight: 700; }
.log-kinds { margin-bottom: 10px; }
/* частые вопросы */
.faq details { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 16px; margin-bottom: 8px; padding: 0 14px; }
.faq summary { padding: 14px 0; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
#toast { pointer-events: none; }

/* =====================================================================
   v7: гости, раздельная оплата, комплимент на позицию, склад
   ===================================================================== */
.guest-pick { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.guest-pick > span { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.ghost-chip { background: transparent; border-style: dashed; }
.menu-cat.grp { display: flex; justify-content: space-between; color: var(--text); }
.menu-cat.grp span { color: var(--muted); }
.mini-btn { flex: none; height: 32px; min-width: 32px; padding: 0 6px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-soft); font-size: 12px; font-weight: 800; }
.mini-btn.on { background: color-mix(in srgb, var(--open) 22%, var(--surface)); border-color: var(--open); }
.mi.comp .nm { opacity: .85; }
.mi.comp s { opacity: .6; }
.pay-mode { margin-bottom: 12px; }
.guest-pay { background: var(--surface2); border: 1px solid var(--line-soft); border-radius: 16px; padding: 12px; margin-bottom: 10px; display: grid; gap: 8px; }
.guest-pay small { display: block; }
.pay-grid.four { grid-template-columns: repeat(4, 1fr); margin: 0; }
.pay-grid.four .pay-btn { padding: 8px 2px; font-size: 11px; }
.pay-grid.four .pay-btn span { font-size: 18px; }
.kpi.warn b { color: var(--due); }
.stk-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.stk-row:last-child { border-bottom: 0; }
.stk-row .nm { flex: 1 1 180px; min-width: 0; }
.stk-row .nm small { display: block; }
.stk-row .stk-q { font-variant-numeric: tabular-nums; min-width: 80px; text-align: right; }
.stk-row.low .stk-q { color: var(--heat); }
.stk-row.neg .stk-q { color: var(--due); }
.stk-row.off { opacity: .45; }
.stk-row .btn.small { min-width: 34px; padding: 6px 8px; }
.rcp-row { display: flex; gap: 6px; align-items: center; margin: 8px 0; }
.rcp-row select { flex: 1; min-height: 42px; }
.rcp-row .u { width: 26px; color: var(--muted); font-weight: 700; }
.rcp-cost { margin: 12px 0; padding: 10px 12px; border-radius: 12px; background: var(--surface2); font-size: 14px; }
.rcp-badge { font-weight: 800; font-size: 13px; color: var(--muted); }
.rcp-badge.ok { color: var(--open); }

/* ---------- v8: поставки, памятка, клички, выбор при удалении ---------- */
.modal-choice{display:flex;flex-direction:column;gap:8px;margin-top:6px}
.modal-choice .btn{width:100%}
.nick{color:var(--accent);font-weight:600;font-size:.92em}
.nick-in{margin-top:6px;font-size:13px;padding:8px 10px}
.perm-group{margin:16px 0 6px;font-size:13px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}
.sup-photos{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}
.sup-photos.big img{max-width:100%;max-height:420px;border-radius:12px;border:1px solid var(--line);display:block}
.sup-photos.big a{flex:1 1 260px}
.sup-ph{position:relative;width:86px;height:110px;border-radius:12px;overflow:hidden;border:1px solid var(--line);background:var(--surface2)}
.sup-ph img{width:100%;height:100%;object-fit:cover}
.sup-ph .icon-btn{position:absolute;top:4px;right:4px;width:26px;height:26px;font-size:12px}
.sup-ph.add{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:26px;color:var(--text);cursor:pointer;border-style:dashed}
.sup-ph.add small{font-size:11px;color:var(--muted)}
.sup-line{border:1px solid var(--line);border-radius:12px;padding:10px;margin-bottom:8px;display:flex;flex-direction:column;gap:8px;background:var(--surface2)}
.sup-line .row{align-items:flex-end;gap:8px}
.sup-thumb{width:40px;height:40px;object-fit:cover;border-radius:8px;flex:none}
.memo-sec{padding:14px}
.memo-sec h4{margin:14px 0 6px;font-size:13px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.memo-text p{margin:6px 0;line-height:1.5}
.memo-text ul{margin:6px 0;padding-left:20px}
.memo-text li{margin:5px 0;line-height:1.45}
.memo-ings{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.memo-ings div{display:flex;justify-content:space-between;padding:8px 12px;border-top:1px solid var(--line)}
.memo-ings div:first-child{border-top:0}
.memo-ed .row{gap:6px;margin-bottom:8px}
.memo-ed .icon-in{width:52px;text-align:center;flex:none}
.memo-ed textarea{width:100%;resize:vertical;font:inherit;line-height:1.45}
textarea.input{font:inherit;resize:vertical;width:100%}
.memo-sec > small{display:block;margin-bottom:4px}

/* ---------- v9: брони и хостес ---------- */
.item.reserved .top { fill: color-mix(in srgb, var(--table) 80%, #8b5cf6); stroke: var(--table-line); stroke-width: 1.5; }
.item.reserved .halo { stroke: #8b5cf6; stroke-width: 3; stroke-dasharray: 3 5; opacity: .9; }
.item.reserved .sub { fill: #a78bfa; }
.res-strip{display:flex;flex-direction:column;gap:8px;margin-bottom:12px}
.res-card{display:flex;gap:12px;padding:10px 12px;border:1px solid var(--line);border-left:3px solid #8b5cf6;border-radius:12px;background:var(--surface2);margin-bottom:8px}
.res-card.ok{border-left-color:var(--open)}
.res-card.off{opacity:.6;border-left-color:var(--muted)}
.res-time{display:flex;flex-direction:column;align-items:center;min-width:52px}
.res-time b{font-size:18px}
.res-time small{color:var(--muted);font-size:11px}
.res-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.res-body small{color:var(--muted)}
.res-body .muted{font-size:11px;opacity:.8}
.res-tbl{color:var(--accent);font-weight:700}
.res-st{margin-left:4px;font-size:11px}
.res-st.ok{color:var(--open)}
.res-acts{margin-top:6px;gap:6px}
a.tel{color:var(--text);text-decoration:none;font-weight:600}
.res-days{margin-bottom:8px}

/* ---------- v10: поддержка, панель техподдержки, табель, инвентаризация, перенос ---------- */
.tk-st{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:999px;font-size:11px;font-weight:700;white-space:nowrap;background:var(--surface2);border:1px solid var(--line)}
.tk-st.open{color:var(--open);border-color:color-mix(in srgb,var(--open) 40%,transparent)}
.tk-st.pending{color:var(--heat);border-color:color-mix(in srgb,var(--heat) 40%,transparent)}
.tk-st.resolved{color:var(--muted)}
.msg.sys{justify-content:center;display:flex}
.msg.sys span{font-size:11px;color:var(--muted);background:var(--surface2);padding:4px 10px;border-radius:999px}
.tk-status{margin:10px 0}
.ok-btn{border-color:color-mix(in srgb,var(--open) 50%,transparent);color:var(--open)}
.note.ok{border-color:color-mix(in srgb,var(--open) 45%,transparent);color:var(--open)}
.venue-id{margin-left:auto;align-self:center;background:var(--surface2);border:1px dashed var(--line);color:var(--text);font:700 12px "Manrope",system-ui,sans-serif;padding:6px 10px;border-radius:10px;cursor:pointer;white-space:nowrap}
.vid{font:700 11px "Manrope",system-ui,sans-serif;color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,transparent);padding:2px 8px;border-radius:999px;margin-left:8px}
#support-banner{position:fixed;left:50%;transform:translateX(-50%);top:calc(66px + env(safe-area-inset-top));z-index:35;display:flex;align-items:center;gap:10px;padding:8px 10px 8px 14px;border-radius:14px;background:#7c3aed;color:#fff;font-size:13px;box-shadow:0 8px 30px rgba(0,0,0,.35);max-width:calc(100vw - 24px)}
#support-banner .btn{background:rgba(255,255,255,.18);color:#fff;border-color:transparent}
.adm-venues{display:flex;flex-direction:column;gap:8px}
.adm-venue{border:1px solid var(--line);border-radius:14px;padding:12px;background:var(--surface);display:flex;flex-direction:column;gap:4px}
.adm-venue.on{border-color:#7c3aed;box-shadow:0 0 0 1px #7c3aed inset}
.adm-venue small{color:var(--muted)}
.adm-venue .row{gap:8px;align-items:center;margin-top:2px}
.ts-nav{align-items:center;gap:10px;margin-bottom:10px}
.ts-nav b{font-size:16px;min-width:130px;text-align:center}
.ts-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:12px;margin:8px 0;-webkit-overflow-scrolling:touch}
table.ts{border-collapse:collapse;font-size:12px;min-width:100%}
table.ts th,table.ts td{border-bottom:1px solid var(--line);padding:6px 5px;text-align:center;white-space:nowrap}
table.ts th{position:sticky;top:0;background:var(--surface2);color:var(--muted);font-weight:700}
table.ts th.we{color:var(--due)}
table.ts th.today{color:var(--accent)}
table.ts .nm{position:sticky;left:0;background:var(--surface);text-align:left;min-width:120px;z-index:1}
table.ts .nm small{display:block;color:var(--muted);font-size:10px}
table.ts td[data-act]{cursor:pointer;min-width:28px}
table.ts td.on{background:color-mix(in srgb,var(--open) 18%,transparent);font-weight:700}
table.ts td[data-act]:hover{outline:1px solid var(--accent)}
table.ts td.tot{font-weight:800}
table.ts .rate{width:72px;padding:4px 6px;font-size:12px}
table.imp td{text-align:left}
.ts-shift{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:6px 0}
.ts-shift .input{width:108px}
.ts-shift small{color:var(--muted);flex-basis:100%}
.iv-hero{display:flex;flex-direction:column;gap:8px;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--surface);margin-bottom:10px}
.iv-hero small{color:var(--muted)}
.iv-hero.on{border-color:color-mix(in srgb,var(--accent) 50%,transparent)}
.iv-bar{height:8px;border-radius:99px;background:var(--surface2);overflow:hidden}
.iv-bar i{display:block;height:100%;background:linear-gradient(90deg,var(--accent),var(--accent2));border-radius:99px;transition:width .3s}
.minus{color:var(--due)} .plus{color:var(--open)}
.iv-list{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:14px;overflow:hidden;margin-bottom:70px}
.iv-cat{padding:6px 12px;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);background:var(--surface2)}
.iv-row{display:grid;grid-template-columns:1fr auto 74px auto;gap:8px;align-items:center;padding:8px 12px;border-top:1px solid var(--line);background:var(--surface)}
.iv-row.done{background:color-mix(in srgb,var(--open) 7%,var(--surface))}
.iv-row .nm small{display:block;color:var(--muted);font-size:11px}
.iv-in{display:flex;align-items:center;gap:4px}
.iv-in .input{width:92px;text-align:right;font-weight:700}
.iv-in span{color:var(--muted);font-size:12px;width:20px}
.iv-diff{font-weight:800;font-size:12px;text-align:right}
.iv-diff small{display:block;font-weight:600;font-size:10px}
@media (max-width:520px){.iv-row{grid-template-columns:1fr auto;}.iv-diff{grid-column:1}.iv-row .btn{justify-self:end}}
.sticky-save.row{display:flex;gap:8px}

/* ---------- v11: зарплата, вход поддержки ---------- */
.staff-login{margin-top:6px;font-size:13px;opacity:.85}
.pay-modes{margin-bottom:8px}
.pay-set{border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin:8px 0;background:var(--surface)}
.pay-set summary{cursor:pointer;font-weight:700}
.pay-set[open] summary{margin-bottom:8px}
.pay-list{display:flex;flex-direction:column;gap:8px;margin:10px 0}
.pay-row{border:1px solid var(--line);border-radius:14px;background:var(--surface);overflow:hidden}
.pay-row.open{border-color:color-mix(in srgb,var(--accent) 45%,var(--line))}
.pay-main{display:flex;align-items:center;gap:10px;padding:12px;cursor:pointer}
.pay-main .nm{flex:1;min-width:0}
.pay-main .nm small{display:block;color:var(--muted);font-size:12px}
.pay-sum{text-align:right}
.pay-sum b{font-size:17px}
.pay-sum small{display:block;font-size:11px}
.pay-detail{padding:0 12px 12px;display:flex;flex-direction:column;gap:10px}
.pay-lines{border:1px solid var(--line);border-radius:10px;overflow:hidden}
.pay-lines div{display:flex;justify-content:space-between;padding:7px 10px;border-top:1px solid var(--line);font-size:13px}
.pay-lines div:first-child{border-top:0}
.pay-lines .sum{background:var(--surface2);font-weight:800}
.adj-list{display:flex;flex-direction:column;gap:4px}
.adj{display:flex;align-items:center;gap:8px;font-size:13px;padding:6px 8px;border-radius:8px;background:var(--surface2)}
.adj .r{flex:1;min-width:0}
.adj .r small{display:block;color:var(--muted);font-size:10px}
.adj.fine b{color:var(--due)} .adj.bonus b{color:var(--open)}
.rate-row{align-items:center;gap:6px}
.rate-row .input.rate{width:110px}
.rate-row select{width:auto}
.adm-venue.off{opacity:.6}

/* ---------- v13: роли техподдержки ---------- */
.perm-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:6px;margin:10px 0}
.perm-check{display:flex;gap:8px;align-items:flex-start;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:var(--surface2);cursor:pointer;font-size:13px}
.perm-check input{margin-top:2px;accent-color:var(--accent)}
table.ts.roles td,table.ts.roles th{white-space:normal;min-width:90px}
table.ts.roles td.nm{min-width:220px}
.access-box{border:1px solid var(--line);border-radius:12px;padding:10px;margin-top:8px;background:var(--surface2);display:flex;flex-direction:column;gap:4px}
.access-box > small{color:var(--muted)}

/* ---------- v14: коллекция дизайнов заведения ---------- */
[data-theme="velvet"] { /* Бархат */
  --bg: #07130f; --surface: #0d1d17; --surface2: #132820; --line: #1f3b2f; --text: #eef6ef; --muted: #8fae9c; --accent: #d4af37; --accent2: #f0d77a; --accent-ink: #1b1402; --floor: #0b1a14; --grid: #16332a; --table: #1a3a2e; --table-line: #2f6a52; --chair: #245040; --sofa: #1f4a3a; --bar: #123026; --open: #e6c35c; --heat: #ffb547; --due: #ff5a5f;
  --line-soft: rgba(255,255,255,.06); --glow: rgba(212,175,55,.3); --shadow: 0 10px 30px rgba(0,0,0,.5); color-scheme: dark;
  --floor-tex: url(#carpet); --hall-font: "Playfair Display";
}
[data-theme="gold"] { /* Чёрное золото */
  --bg: #08080a; --surface: #111114; --surface2: #18181d; --line: #2a2722; --text: #f5efe2; --muted: #a39b88; --accent: #c9a227; --accent2: #f3d36b; --accent-ink: #1a1300; --floor: #0d0d10; --grid: #1d1b17; --table: #1a1814; --table-line: #6b5a2a; --chair: #2a2620; --sofa: #231f19; --bar: #15130f; --open: #e3bf4d; --heat: #ff9f43; --due: #ff4d5e;
  --line-soft: rgba(255,255,255,.06); --glow: rgba(201,162,39,.32); --shadow: 0 10px 30px rgba(0,0,0,.5); color-scheme: dark;
  --floor-tex: url(#tiles); --hall-font: "Playfair Display";
}
[data-theme="ruby"] { /* Рубин */
  --bg: #12060a; --surface: #1c0b11; --surface2: #261019; --line: #401a28; --text: #ffeef3; --muted: #c3909f; --accent: #ff2e63; --accent2: #ff8fab; --accent-ink: #ffffff; --floor: #170910; --grid: #2a1019; --table: #34131f; --table-line: #7a2944; --chair: #3f1828; --sofa: #5c1d33; --bar: #200a12; --open: #ff6b8b; --heat: #ffc857; --due: #ff3b30;
  --line-soft: rgba(255,255,255,.06); --glow: rgba(255,46,99,.32); --shadow: 0 10px 30px rgba(0,0,0,.5); color-scheme: dark;
  --floor-tex: url(#carpet); --hall-font: "Playfair Display";
}
[data-theme="mocha"] { /* Мокко */
  --bg: #140f0c; --surface: #1c1511; --surface2: #251c16; --line: #3a2c22; --text: #f5ebe0; --muted: #ad9884; --accent: #c8956d; --accent2: #e8c39e; --accent-ink: #1f120a; --floor: #18120e; --grid: #2a1f18; --table: #4a3424; --table-line: #7a5a40; --chair: #3a2a1f; --sofa: #5a3a28; --bar: #2a1e16; --open: #d9a876; --heat: #f2c14e; --due: #ff5d5d;
  --line-soft: rgba(255,255,255,.06); --glow: rgba(200,149,109,.3); --shadow: 0 10px 30px rgba(0,0,0,.5); color-scheme: dark;
  --floor-tex: url(#herring); --hall-font: "Georgia";
}
[data-theme="loft"] { /* Лофт */
  --bg: #121212; --surface: #1a1a1a; --surface2: #222222; --line: #333333; --text: #f0ece6; --muted: #9a948b; --accent: #d9653b; --accent2: #f29a5c; --accent-ink: #ffffff; --floor: #1c1b1a; --grid: #2a2826; --table: #3a2f27; --table-line: #6b5444; --chair: #2e2b28; --sofa: #4a3b30; --bar: #262422; --open: #e98a4f; --heat: #f5c04e; --due: #ff4d4d;
  --line-soft: rgba(255,255,255,.06); --glow: rgba(217,101,59,.3); --shadow: 0 10px 30px rgba(0,0,0,.5); color-scheme: dark;
  --floor-tex: url(#dots); --hall-font: "Oswald";
}
[data-theme="ocean"] { /* Океан */
  --bg: #06121f; --surface: #0b1b2d; --surface2: #10243a; --line: #1b3756; --text: #e8f4ff; --muted: #86a6c4; --accent: #22d3ee; --accent2: #3b82f6; --accent-ink: #02131c; --floor: #08182a; --grid: #0f2742; --table: #123155; --table-line: #2a5c8f; --chair: #18406b; --sofa: #163a63; --bar: #0e2340; --open: #2ee6c5; --heat: #ffd166; --due: #ff5d73;
  --line-soft: rgba(255,255,255,.06); --glow: rgba(34,211,238,.3); --shadow: 0 10px 30px rgba(0,0,0,.5); color-scheme: dark;
  --floor-tex: url(#waves); --hall-font: "Comfortaa";
}
[data-theme="jungle"] { /* Тропики */
  --bg: #061413; --surface: #0b1d1b; --surface2: #102725; --line: #1b3d39; --text: #eafff9; --muted: #86b3aa; --accent: #c6f432; --accent2: #2ee6a8; --accent-ink: #0c1400; --floor: #081a18; --grid: #12302c; --table: #0f3b35; --table-line: #20756a; --chair: #15463f; --sofa: #1a5249; --bar: #0c2b27; --open: #2ee6a8; --heat: #ffd23f; --due: #ff5470;
  --line-soft: rgba(255,255,255,.06); --glow: rgba(198,244,50,.3); --shadow: 0 10px 30px rgba(0,0,0,.5); color-scheme: dark;
  --floor-tex: url(#waves); --hall-font: "Comfortaa";
}
[data-theme="forest"] { /* Лес */
  --bg: #0c120c; --surface: #121a12; --surface2: #182318; --line: #263826; --text: #eef4e8; --muted: #95a88d; --accent: #8bc34a; --accent2: #cddc39; --accent-ink: #0d1a05; --floor: #101810; --grid: #1c2b1c; --table: #3b2e20; --table-line: #6b5235; --chair: #2c3a24; --sofa: #34472a; --bar: #20291a; --open: #a5d65a; --heat: #f5c04e; --due: #ff5a4f;
  --line-soft: rgba(255,255,255,.06); --glow: rgba(139,195,74,.3); --shadow: 0 10px 30px rgba(0,0,0,.5); color-scheme: dark;
  --floor-tex: url(#planks); --hall-font: "Manrope";
}
[data-theme="sunset"] { /* Закат */
  --bg: #160b1e; --surface: #1f1029; --surface2: #2a1636; --line: #40214f; --text: #fff0f5; --muted: #c59ab3; --accent: #ff7e5f; --accent2: #feb47b; --accent-ink: #2a0c05; --floor: #1b0d24; --grid: #2c1538; --table: #3a1d45; --table-line: #7a3d6b; --chair: #4b2556; --sofa: #5a2a4f; --bar: #241231; --open: #ffb37b; --heat: #ffd166; --due: #ff4d6d;
  --line-soft: rgba(255,255,255,.06); --glow: rgba(255,126,95,.35); --shadow: 0 10px 30px rgba(0,0,0,.5); color-scheme: dark;
  --floor-tex: url(#waves); --hall-font: "Comfortaa";
}
[data-theme="cyber"] { /* Киберпанк */
  --bg: #0a0a0f; --surface: #12121a; --surface2: #1a1a26; --line: #2a2a40; --text: #f5f5ff; --muted: #8e8eaf; --accent: #fcee0a; --accent2: #00f0ff; --accent-ink: #0a0a0f; --floor: #0d0d14; --grid: #1d1d33; --table: #15152a; --table-line: #00b8c4; --chair: #23233d; --sofa: #2a1a3d; --bar: #141428; --open: #00f0ff; --heat: #fcee0a; --due: #ff2a6d;
  --line-soft: rgba(255,255,255,.06); --glow: rgba(252,238,10,.3); --shadow: 0 10px 30px rgba(0,0,0,.5); color-scheme: dark;
  --floor-tex: url(#tiles); --hall-font: "Russo One";
}
[data-theme="marble"] { /* Мрамор */
  --bg: #f4f4f2; --surface: #ffffff; --surface2: #ececea; --line: #dcdcd8; --text: #141414; --muted: #6f6f6a; --accent: #141414; --accent2: #8a7a5a; --accent-ink: #ffffff; --floor: #fafaf8; --grid: #e6e6e1; --table: #ffffff; --table-line: #b5b5ad; --chair: #d8d8d2; --sofa: #c9c4b8; --bar: #e9e6df; --open: #1f9d6b; --heat: #d98a00; --due: #d63c2f;
  --line-soft: rgba(0,0,0,.07); --glow: rgba(0,0,0,.18); --shadow: 0 10px 30px rgba(40,40,60,.14); color-scheme: light;
  --floor-tex: url(#tiles); --hall-font: "Playfair Display";
}
[data-theme="sakura"] { /* Сакура */
  --bg: #fff3f6; --surface: #ffffff; --surface2: #ffe4ec; --line: #f6c9d6; --text: #3a1622; --muted: #9a6676; --accent: #e0457b; --accent2: #ff8fb1; --accent-ink: #ffffff; --floor: #fff8fa; --grid: #fbdbe5; --table: #ffd1df; --table-line: #e58aa8; --chair: #f7b6ca; --sofa: #eea0bb; --bar: #ffe0ea; --open: #2e9e78; --heat: #e89a00; --due: #d7263d;
  --line-soft: rgba(0,0,0,.07); --glow: rgba(224,69,123,.22); --shadow: 0 10px 30px rgba(40,40,60,.14); color-scheme: light;
  --floor-tex: url(#dots); --hall-font: "Comfortaa";
}
[data-theme="lavender"] { /* Лаванда */
  --bg: #f5f2fd; --surface: #ffffff; --surface2: #ece7fb; --line: #dcd3f5; --text: #241a45; --muted: #6f6596; --accent: #7c5cff; --accent2: #b49cff; --accent-ink: #ffffff; --floor: #faf8ff; --grid: #e7e1fa; --table: #e3dbff; --table-line: #a593f0; --chair: #cfc3fb; --sofa: #b9a8f5; --bar: #ebe5ff; --open: #1fa37a; --heat: #e09000; --due: #e0384f;
  --line-soft: rgba(0,0,0,.07); --glow: rgba(124,92,255,.22); --shadow: 0 10px 30px rgba(40,40,60,.14); color-scheme: light;
  --floor-tex: url(#herring); --hall-font: "Manrope";
}
[data-theme="arctic"] { /* Арктика */
  --bg: #eef3f6; --surface: #ffffff; --surface2: #e5edf2; --line: #d2dee6; --text: #13222c; --muted: #5f7584; --accent: #0f766e; --accent2: #14b8a6; --accent-ink: #ffffff; --floor: #f6f9fb; --grid: #e1e9ef; --table: #dfe9f0; --table-line: #9fb4c3; --chair: #c6d5df; --sofa: #b3c6d3; --bar: #e3ecf2; --open: #0ea5a0; --heat: #e39a00; --due: #dc3545;
  --line-soft: rgba(0,0,0,.07); --glow: rgba(15,118,110,.2); --shadow: 0 10px 30px rgba(40,40,60,.14); color-scheme: light;
  --floor-tex: url(#tiles); --hall-font: "Oswald";
}
[data-theme="neon2"] .item .rim, [data-theme="wood"] .item .rim, [data-theme="marble"] .item .rim, [data-theme="sakura"] .item .rim, [data-theme="lavender"] .item .rim, [data-theme="arctic"] .item .rim { stroke: rgba(255,255,255,.45); }
[data-theme="neon2"] .item .lbl, [data-theme="wood"] .item .lbl, [data-theme="marble"] .item .lbl, [data-theme="sakura"] .item .lbl, [data-theme="lavender"] .item .lbl, [data-theme="arctic"] .item .lbl { stroke: rgba(255,255,255,.5); }
[data-theme="wood"] { --floor-tex: url(#planks); --hall-font: "Georgia"; }
[data-theme="orient"] { --floor-tex: url(#carpet); }
[data-theme="neon"] { --floor-tex: url(#tiles); }
[data-theme="neon2"] { --floor-tex: url(#dots); }
[data-theme="smoke"] { --floor-tex: url(#dots); }
.floor-tex { fill: var(--floor-tex, url(#planks)); }
.tex-line { stroke: var(--grid); stroke-width: 1; fill: none; opacity: .75; }
.tex-dot { fill: var(--grid); }
/* карточки дизайнов с мини-залом */
.themes.big { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.theme.pv { background: var(--bg); color: var(--text); padding: 8px; border: 2px solid var(--line); }
.theme.pv.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.theme.pv svg { display: block; width: 100%; height: auto; border-radius: 10px; margin-bottom: 8px; }
.theme.pv .pv-floor { fill: var(--floor); }
.theme.pv .pv-table { fill: var(--table); stroke: var(--table-line); stroke-width: 1.5; }
.theme.pv .pv-chair { fill: var(--chair); }
.theme.pv .pv-sofa { fill: var(--sofa); }
.theme.pv .pv-bar { fill: var(--bar); stroke: var(--table-line); }
.theme.pv .pv-open { fill: none; stroke: var(--open); stroke-width: 2.5; }
.theme.pv .pv-due { fill: none; stroke: var(--due); stroke-width: 2.5; }
.theme.pv .pv-num { font: 700 11px var(--hall-font, "Unbounded"), sans-serif; fill: var(--text); text-anchor: middle; }
.theme.pv .pv-btn { fill: var(--accent); }
.theme.pv .pv-btn-t { font: 800 7px "Manrope", sans-serif; fill: var(--accent-ink); text-anchor: middle; }
.theme.pv small { color: var(--muted); opacity: 1; }
.theme.pv b { font-family: var(--hall-font, "Unbounded"), "Manrope", sans-serif; }
.theme-filter { margin-bottom: 10px; }

.vignette { opacity: var(--vignette, 1); }
[data-theme="neon2"], [data-theme="wood"], [data-theme="marble"], [data-theme="sakura"], [data-theme="lavender"], [data-theme="arctic"] { --vignette: .35; }

/* ---------- v15: документы и согласия ---------- */
.consents{display:flex;flex-direction:column;gap:8px;margin:12px 0}
.consent{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.45;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface2);cursor:pointer;text-align:left}
.consent input{width:18px;height:18px;margin-top:1px;flex:none;accent-color:var(--accent)}
.consent a{color:var(--accent);text-decoration:underline}
.consent i{font-style:normal;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;margin-left:4px;white-space:nowrap}
.consent .req-star{color:var(--due)} .consent .opt{color:var(--muted)}
.docs-foot{font-size:12px;opacity:.85}
.docs-foot a{color:var(--muted)}
.doc-bg{position:fixed;inset:0;z-index:90;background:rgba(0,0,0,.55);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:16px}
.doc-card{background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:20px;max-width:720px;width:100%;max-height:calc(100vh - 32px);overflow:auto;padding:18px 20px;box-shadow:var(--shadow)}
.doc-card h2{margin:0;font-size:18px}
.doc-body{margin-top:10px;font-size:14px;line-height:1.55}
.doc-body h4{margin:16px 0 6px;font-size:14px}
.doc-body ul{margin:4px 0;padding-left:20px}
.doc-body li{margin:3px 0}
.doc-body p{margin:6px 0}
.doc-card.gate{max-width:480px;text-align:center;display:flex;flex-direction:column;gap:8px}
.doc-card.gate p{color:var(--muted);font-size:14px;margin:0}
#consent-gate .doc-bg{z-index:85}

/* ---------- v16: панель поддержки, увольнение ---------- */
.adm-tabs{display:flex;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none}
.adm-tabs::-webkit-scrollbar{display:none}
.adm-tabs button{flex:0 0 auto;white-space:nowrap;padding-left:14px;padding-right:14px}
.adm-venue.blocked{border-color:color-mix(in srgb,var(--due) 55%,var(--line));background:color-mix(in srgb,var(--due) 6%,var(--surface))}
.adm-venue.user .row{gap:10px;align-items:center}
.adm-acts{gap:6px;margin-top:4px}
.adm-form{display:flex;flex-direction:column;gap:8px;border:1px dashed var(--line);border-radius:12px;padding:10px;margin-top:6px;background:var(--surface2)}
.adm-form small{color:var(--muted)}
.tk-st.due{color:var(--due);border-color:color-mix(in srgb,var(--due) 45%,transparent)}
.fire-form{display:flex;flex-direction:column;gap:6px;margin-top:8px;padding:8px;border:1px dashed color-mix(in srgb,var(--due) 50%,var(--line));border-radius:10px}
.fired-list{margin-top:10px;border:1px solid var(--line);border-radius:14px;padding:8px 12px;background:var(--surface)}
.fired-list summary{cursor:pointer;font-weight:700;padding:4px 0}
.fired-list .staff-row{opacity:.85}
