/* «Тихий Бар» — тёплая тёмная палитра: дерево, латунь, приглушённый свет. */
:root {
  --bg: #16120f;
  --surface: #1f1a16;
  --surface-2: #28221d;
  --line: #3a322b;
  --text: #f1e8db;
  --muted: #a99b89;
  --faint: #7a6e60;
  --brass: #c9a36a;
  --brass-2: #e0c08a;
  --ok: #8fb08a;
  --warn: #d9b25f;
  --bad: #d77a64;
  --info: #8fa9c4;
  --radius: 16px;
  --radius-s: 10px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Noto Serif", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 15px/1.45 var(--sans);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(201, 163, 106, 0.10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

.view { max-width: 640px; margin: 0 auto; padding: 0 16px calc(var(--nav-h) + var(--safe-b) + 28px); }
.screen { display: flex; flex-direction: column; gap: 16px; padding-top: 18px; animation: in .25s ease-out; }
.screen.with-cart { padding-bottom: 72px; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ——— Типографика ——— */
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 4px; }
.title { font: 600 26px/1.15 var(--serif); letter-spacing: .2px; }
.eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin-bottom: 4px; }
.section-title { font: 600 18px/1.2 var(--serif); margin: 6px 0 10px; color: var(--text); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.footnote { font-size: 12px; color: var(--faint); text-align: center; padding: 8px 12px; }
.pos { color: var(--ok); }
.neg { color: var(--bad); }
.code, .mono { font-family: var(--mono); letter-spacing: .08em; }
.code.small { font-size: 12px; color: var(--muted); }
.link { color: var(--brass); font-size: 14px; }
.big { font-size: 20px; }

/* ——— Раскладка ——— */
.row { display: flex; align-items: center; }
.row.between { justify-content: space-between; gap: 12px; }
.row.gap { gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row > .field { flex: 1; min-width: 0; }
.grow { flex: 1; min-width: 0; }
.col-end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
section { display: flex; flex-direction: column; gap: 10px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; display: flex; flex-direction: column; gap: 10px;
}
.card.small { padding: 10px 12px; gap: 4px; }

/* ——— Карта лояльности ——— */
.card-loyalty {
  --tier: var(--brass);
  position: relative; overflow: hidden;
  border-radius: 22px; padding: 18px;
  background:
    radial-gradient(140% 90% at 100% 0%, color-mix(in srgb, var(--tier) 28%, transparent), transparent 55%),
    linear-gradient(160deg, #2b231c 0%, #1b1612 100%);
  border: 1px solid color-mix(in srgb, var(--tier) 40%, var(--line));
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .05);
  display: flex; flex-direction: column; gap: 14px;
}
.card-loyalty::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.012) 0 2px, transparent 2px 7px);
}
.card-loyalty.compact { padding: 14px; gap: 10px; }
.lc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.lc-label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.lc-tier { font: 600 22px/1.2 var(--serif); color: var(--tier); margin-top: 2px; }
.lc-qr {
  width: 76px; height: 76px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; flex-shrink: 0;
  background: #f3ead9; box-shadow: 0 6px 18px rgba(0,0,0,.4); position: relative; z-index: 1;
}
.lc-qr svg { width: 100%; height: 100%; display: block; }
.lc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lc-big { font: 600 34px/1 var(--serif); font-variant-numeric: tabular-nums; }
.lc-big small { font-size: 16px; color: var(--muted); }
.lc-cap { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.lc-progress .bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.lc-progress .bar span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--tier), var(--brass-2)); transition: width .6s ease; }
.lc-link { font-size: 13px; color: var(--brass); position: relative; z-index: 1; align-self: flex-start; }

.qr-sheet { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.qr-big { width: min(78vw, 300px); aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #fff; }
.qr-big svg { width: 100%; height: 100%; display: block; }
.qr-sheet .code { font-size: 18px; }

/* ——— Плитки ——— */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; display: flex; flex-direction: column; gap: 2px; min-height: 96px;
  transition: border-color .15s, transform .15s;
}
.tile:active { transform: scale(.98); }
.tile:hover { border-color: color-mix(in srgb, var(--brass) 50%, var(--line)); }
.tile:first-child { grid-column: span 2; min-height: 0; flex-direction: row; align-items: center; gap: 12px; }
.tile:first-child .tile-sub { margin-left: auto; }
.tile-icon { font-size: 20px; color: var(--brass); width: 28px; flex-shrink: 0; }
.tile-title { font: 600 16px/1.2 var(--serif); margin-top: 6px; }
.tile:first-child .tile-title { margin-top: 0; }
.tile-sub { font-size: 12.5px; color: var(--muted); }

.promo { display: flex; gap: 12px; background: linear-gradient(135deg, #2a2119, #1f1a16); border: 1px solid var(--line); border-left: 3px solid var(--brass); border-radius: var(--radius); padding: 14px; }
.promo h3 { font: 600 16px var(--serif); margin-bottom: 4px; }
.promo p { font-size: 14px; color: var(--muted); }
.promo-img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }

/* ——— Заказ и шаги ——— */
.order-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; position: relative; }
.steps::before { content: ""; position: absolute; left: 10px; right: 10px; top: 6px; height: 2px; background: var(--line); }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; font-size: 11px; color: var(--faint); }
.steps .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--line); z-index: 1; }
.steps li.done { color: var(--muted); }
.steps li.done .dot { background: var(--brass); border-color: var(--brass); }
.steps li.current { color: var(--text); font-weight: 600; }
.steps li.current .dot { box-shadow: 0 0 0 4px color-mix(in srgb, var(--brass) 25%, transparent); }

.pill { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; border: 1px solid transparent; }
.pill.ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.pill.warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.pill.bad { background: color-mix(in srgb, var(--bad) 16%, transparent); color: var(--bad); }
.pill.info { background: color-mix(in srgb, var(--info) 16%, transparent); color: var(--info); }
.pill.accent { background: color-mix(in srgb, var(--brass) 18%, transparent); color: var(--brass-2); }
.pill.muted { background: var(--surface-2); color: var(--muted); }
.tag { display: inline-block; font-size: 11px; padding: 2px 7px; border-radius: 6px; background: color-mix(in srgb, var(--brass) 14%, transparent); color: var(--brass-2); margin-left: 6px; vertical-align: middle; }

.notice { padding: 10px 12px; border-radius: var(--radius-s); background: var(--surface-2); font-size: 14px; border: 1px solid var(--line); }
.notice.ok { background: color-mix(in srgb, var(--ok) 12%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.notice.warn { background: color-mix(in srgb, var(--warn) 12%, var(--surface)); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.notice.bad { background: color-mix(in srgb, var(--bad) 12%, var(--surface)); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.notice.accent { background: color-mix(in srgb, var(--brass) 12%, var(--surface)); border-color: color-mix(in srgb, var(--brass) 35%, transparent); }
ul.notice { margin: 0; padding-left: 28px; }

/* ——— Меню ——— */
.cat-nav { display: flex; gap: 8px; overflow-x: auto; position: sticky; top: 0; z-index: 5; padding: 8px 16px; margin: 0 -16px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); scrollbar-width: none; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat { scroll-margin-top: 60px; }
.prod { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.prod:last-child { border-bottom: 0; }
.prod-img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.prod-img.ph { display: grid; place-items: center; background: linear-gradient(145deg, #2c241d, #211b16); color: var(--brass); font: 600 24px var(--serif); border: 1px solid var(--line); }
.prod-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.prod-info h3 { font: 600 15.5px/1.25 var(--sans); }
.price { font-weight: 600; color: var(--brass-2); font-variant-numeric: tabular-nums; }
.prod-ctrl { flex-shrink: 0; }
.add-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--brass) 60%, transparent); background: transparent; color: var(--brass); font-size: 22px; line-height: 1; }
.add-btn:active { background: var(--brass); color: var(--bg); }

.stepper { display: inline-flex; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.stepper button { width: 34px; height: 34px; border: 0; background: transparent; font-size: 18px; color: var(--brass); }
.stepper button:active { background: var(--line); }
.step-val { min-width: 24px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

.cart-bar-slot { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-b) + 10px); z-index: 20; padding: 0 16px; pointer-events: none; }
.cart-bar {
  pointer-events: auto; max-width: 608px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-radius: 14px; background: var(--brass); color: #1a140f; font-weight: 600;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.6); animation: in .2s ease-out;
}

/* ——— Корзина ——— */
.line { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.line:last-of-type { border-bottom: 0; }
.line-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.line-sum { min-width: 84px; text-align: right; font-variant-numeric: tabular-nums; }
.total { padding-top: 8px; border-top: 1px solid var(--line); }
.total-box { display: flex; flex-direction: column; gap: 4px; }
.slots { display: flex; flex-direction: column; gap: 8px; }
.slot-day { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-top: 4px; }
.slot-row, .reward-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-variant-numeric: tabular-nums; }
.slot.active { border-color: var(--brass); background: color-mix(in srgb, var(--brass) 18%, var(--surface)); color: var(--brass-2); }
.slot.full, .slot:disabled { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.sticky-cta { position: sticky; bottom: calc(var(--nav-h) + var(--safe-b) + 8px); z-index: 10; padding-top: 8px; }

/* ——— Награды ——— */
.seg { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 9px 8px; border-radius: 9px; font-size: 14px; color: var(--muted); }
.seg button.active { background: var(--surface-2); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,.04) inset; }
.balance { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); margin: 12px 0; }
.balance strong { font: 600 20px var(--serif); color: var(--brass-2); }
.reward-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.reward { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.reward.dim { opacity: .72; }
.reward-img { width: 78px; height: 78px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.reward-img.ph { display: grid; place-items: center; font-size: 26px; color: var(--brass); background: radial-gradient(circle at 30% 30%, #3a2e22, #201a15); border: 1px solid var(--line); }
.reward-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.reward-body h3 { font: 600 16px var(--serif); }
.cost { color: var(--brass-2); }
.my-reward { display: flex; justify-content: space-between; gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; margin-bottom: 10px; }
.my-reward h3 { font: 600 16px var(--serif); }
.my-reward.dim { opacity: .6; cursor: default; }
.terms { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; display: flex; flex-direction: column; gap: 4px; }

.tier { --tier: var(--brass); padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--tier); display: flex; flex-direction: column; gap: 6px; }
.tier h3 { font: 600 18px var(--serif); color: var(--tier); }
.tier.current { background: color-mix(in srgb, var(--tier) 9%, var(--surface)); }
.privs { margin: 0; padding-left: 18px; font-size: 14px; }

/* ——— Списки ——— */
.list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.list-row:last-child { border-bottom: 0; }
.list-row.dim { opacity: .55; }
a.list-row:active, .list-row[onclick]:active { background: var(--surface-2); }
.tx-icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-weight: 700; background: var(--surface-2); }
.tx-icon.pos { color: var(--ok); }
.tx-icon.neg { color: var(--bad); }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.chip.active { border-color: var(--brass); color: var(--text); background: color-mix(in srgb, var(--brass) 16%, var(--surface)); }
.badge { background: var(--brass); color: var(--bg); border-radius: 999px; font-size: 11px; padding: 0 6px; font-weight: 700; }
.filters .input { flex: 1; min-width: 0; }

/* ——— Кнопки и формы ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2);
  font-weight: 600; font-size: 15px; transition: transform .1s, background .15s; min-height: 44px; text-align: center;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn.primary { background: var(--brass); border-color: var(--brass); color: #1a140f; }
.btn.danger { background: color-mix(in srgb, var(--bad) 85%, #000); border-color: transparent; color: #fff; }
.btn.ghost { background: transparent; }
.btn.danger-text { color: var(--bad); }
.btn.small { padding: 6px 12px; min-height: 34px; font-size: 13.5px; border-radius: 10px; }
.btn.block { width: 100%; }
.big-btn { padding: 18px; font-size: 17px; }
.big-btn span { font-size: 22px; }
.actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--muted); }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.field > span:first-child { font-weight: 500; }
.hint { font-size: 12px; color: var(--faint); display: block; }
.input {
  width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg);
  color: var(--text); font: 15px var(--sans); min-height: 44px;
}
textarea.input { resize: vertical; min-height: 64px; }
.input:focus { border-color: var(--brass); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brass) 20%, transparent); }
.input:disabled { opacity: .5; }
.input.color { padding: 4px; width: 64px; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
input[type="date"].input, input[type="time"].input { color-scheme: dark; }

.toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 6px 0; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle .track { width: 44px; height: 26px; border-radius: 13px; background: var(--line); position: relative; flex-shrink: 0; transition: background .2s; }
.toggle .knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--text); transition: transform .2s; }
.toggle input:checked + .track { background: var(--brass); }
.toggle input:checked + .track .knob { transform: translateX(18px); background: #1a140f; }
.toggle input:focus-visible + .track { outline: 2px solid var(--brass); outline-offset: 2px; }
.toggle.disabled { opacity: .5; cursor: not-allowed; }
.toggle-label { font-size: 14.5px; display: flex; flex-direction: column; }

.checklist { display: flex; flex-direction: column; gap: 2px; max-height: 200px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; background: var(--bg); }
.check { display: flex; align-items: center; gap: 6px; padding: 6px 0; color: var(--text); font-size: 14px; }
.check input { accent-color: var(--brass); width: 18px; height: 18px; }
.img-preview { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.img-preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }

/* ——— Нижняя навигация ——— */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: space-around; padding: 6px 8px calc(6px + var(--safe-b));
  background: color-mix(in srgb, #120f0c 94%, transparent); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; min-width: 56px; color: var(--faint); font-size: 11px; border-radius: 10px; }
.nav-item.active { color: var(--brass); }
.nav-icon { font-size: 19px; line-height: 1.2; position: relative; }
.nav-badge { position: absolute; top: -4px; right: -12px; background: var(--brass); color: var(--bg); font-size: 10px; font-weight: 700; padding: 0 5px; border-radius: 8px; line-height: 15px; }
body.staff-mode .nav { border-top-color: color-mix(in srgb, var(--brass) 35%, var(--line)); }

/* ——— Лист / тост ——— */
.sheet-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .2s; }
.sheet-backdrop.open { opacity: 1; }
.sheet {
  width: 100%; max-width: 560px; max-height: 92vh; display: flex; flex-direction: column;
  background: var(--surface); border-radius: 20px 20px 0 0; border: 1px solid var(--line); border-bottom: 0;
  transform: translateY(24px); transition: transform .22s ease-out;
}
.sheet.wide { max-width: 640px; }
.sheet-backdrop.open .sheet { transform: none; }
.sheet-handle { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 8px auto 0; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px 6px; gap: 12px; }
.sheet-head h3 { font: 600 19px var(--serif); }
.sheet-body { padding: 8px 16px calc(20px + var(--safe-b)); overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }

.toast {
  position: fixed; left: 50%; top: 14px; transform: translate(-50%, -140%); z-index: 100;
  max-width: calc(100% - 32px); padding: 11px 16px; border-radius: 12px; background: #2d261f; border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,.5); font-size: 14px; transition: transform .25s ease;
}
.toast.show { transform: translate(-50%, 0); }
.toast.success { border-color: color-mix(in srgb, var(--ok) 60%, transparent); }
.toast.error { border-color: color-mix(in srgb, var(--bad) 70%, transparent); }

.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 16px; text-align: center; color: var(--muted); }
.empty.center { min-height: 70vh; justify-content: center; }
.empty-icon { font-size: 30px; color: var(--brass); opacity: .8; }
.brand-mark { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; font: 600 26px var(--serif); color: var(--brass); border: 1px solid var(--brass); }
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 60px 0; color: var(--muted); }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--brass); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ——— Персонал ——— */
.guest-mini { flex-direction: row; justify-content: space-between; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.stat-v { font: 600 20px var(--serif); font-variant-numeric: tabular-nums; margin: 2px 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.table th, .table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { color: var(--muted); font-weight: 500; background: var(--surface); }
.table tr:last-child td { border-bottom: 0; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.timeline li { position: relative; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: -20px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--brass); }
.tier-edit { border-left: 3px solid var(--tier); }
details pre { white-space: pre-wrap; word-break: break-word; background: var(--bg); padding: 8px; border-radius: 8px; color: var(--muted); max-height: 240px; overflow: auto; }

@media (min-width: 520px) {
  .reward-grid { grid-template-columns: 1fr 1fr; }
  .reward { flex-direction: column; }
  .reward-img { width: 100%; height: 120px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tile:first-child { grid-column: span 3; }
}
