/* Admin shell — shared layout for all new admin surfaces (dashboard, future
   hall editor, price control, promo, specials, home CMS, telegram). Keeps
   the existing /admin editor (admin.css) untouched. Premium dark palette
   mirrors the kiosk (GRIFONE / APEX): ink #1a1a1e, gold #c99a4a. */

:root {
    --shell-bg: #f5f4ef;
    --shell-ink: #1a1a1e;
    --shell-ink-soft: #2a2a30;
    --shell-paper: #ffffff;
    --shell-muted: #a8a195;
    --shell-text: #1a1a1e;
    --shell-text-soft: #6b6459;
    --shell-gold: #c99a4a;
    --shell-gold-soft: #e8b974;
    --shell-border: #e5e2d9;
    --shell-green: #5aa274;
    --shell-amber: #d1912e;
    --shell-red: #c95757;
    --shell-blue: #4f7fb0;
    --shell-lilac: #8a6aa6;
    --shell-radius: 14px;
    --shell-radius-sm: 9px;
    --shell-shadow: 0 1px 2px rgba(20, 18, 10, 0.06), 0 6px 18px rgba(20, 18, 10, 0.05);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    background: var(--shell-bg);
    color: var(--shell-text);
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

.shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

/* ============ SIDEBAR ============ */
.shell-sidebar {
    background: var(--shell-ink);
    color: #e6e2d8;
    padding: 22px 18px 28px;
    border-right: 1px solid var(--shell-ink-soft);
    position: sticky;
    top: 0;
    max-height: 100vh;
    overflow-y: auto;
}

.brand {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 4px 6px 18px;
    border-bottom: 1px solid #2f2f36;
    margin-bottom: 14px;
}
.brand-name {
    font-family: "Playfair Display", serif;
    letter-spacing: 0.18em;
    font-size: 18px;
    color: #f4efe6;
}
.brand-tag {
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--shell-gold);
}

.nav-section {
    margin: 18px 0 4px;
    padding: 0 6px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #6b6459;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.nav-list li { margin: 2px 0; }
.nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--shell-radius-sm);
    color: #c9c3b4;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: background 0.15s ease, color 0.15s ease;
}
.nav-item:hover {
    background: rgba(201, 154, 74, 0.08);
    color: #f4efe6;
}
.nav-item.active {
    background: linear-gradient(180deg, rgba(232, 185, 116, 0.14), rgba(201, 154, 74, 0.08));
    color: #f4efe6;
    box-shadow: inset 2px 0 0 var(--shell-gold);
}
.nav-item[aria-disabled="true"] {
    opacity: 0.55;
    cursor: default;
    pointer-events: none;
}
.nav-item .nav-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    background: #2f2f36;
    color: #c9c3b4;
    letter-spacing: 0.1em;
}
.nav-item .nav-badge.soon { background: #3a2f1f; color: var(--shell-gold-soft); }

.admin-lang-switch {
    display: flex;
    gap: 4px;
    padding: 6px;
    margin: 4px 6px 14px;
    background: #14141a;
    border: 1px solid #2f2f36;
    border-radius: var(--shell-radius-sm);
}
.admin-lang-switch button {
    flex: 1;
    padding: 6px 0;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    background: transparent;
    color: #6b6459;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.admin-lang-switch button:hover { color: #c9c3b4; }
.admin-lang-switch button.is-active {
    background: linear-gradient(180deg, var(--shell-gold-soft), var(--shell-gold));
    color: #1a1306;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.sidebar-foot {
    margin-top: 24px;
    padding: 14px 10px;
    border-top: 1px solid #2f2f36;
    font-size: 11px;
    color: #6b6459;
    letter-spacing: 0.06em;
}

/* ============ MAIN ============ */
.shell-main {
    padding: 26px 32px 60px;
    max-width: 1400px;
    width: 100%;
}

.shell-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}
.shell-head h1 {
    font-family: "Playfair Display", serif;
    font-size: 26px;
    margin: 0 0 4px;
    letter-spacing: 0.02em;
}
.shell-head .shell-sub {
    color: var(--shell-text-soft);
    font-size: 13px;
    letter-spacing: 0.04em;
}

.shell-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ============ BUTTONS ============ */
.btn {
    appearance: none;
    border: 1px solid var(--shell-border);
    background: var(--shell-paper);
    color: var(--shell-text);
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: var(--shell-radius-sm);
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.btn:hover { border-color: var(--shell-gold); }
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: linear-gradient(180deg, var(--shell-gold-soft) 0%, var(--shell-gold) 100%);
    color: #1a1306;
    border-color: var(--shell-gold);
}
.btn-primary:hover { filter: brightness(1.04); border-color: var(--shell-gold); }
.btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--shell-text-soft);
}
.btn-ghost:hover { background: rgba(201, 154, 74, 0.08); border-color: transparent; color: var(--shell-text); }
.btn-danger {
    background: #fff;
    color: var(--shell-red);
    border-color: #e9c4c4;
}
.btn-danger:hover { background: #fdf2f2; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ============ CARDS / PANELS ============ */
.panel {
    background: var(--shell-paper);
    border: 1px solid var(--shell-border);
    border-radius: var(--shell-radius);
    padding: 18px 20px;
    box-shadow: var(--shell-shadow);
}
.panel h2 {
    margin: 0 0 14px;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--shell-text-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.panel h2 .panel-action {
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--shell-gold);
    cursor: pointer;
    text-transform: none;
}

.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
}
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

/* ============ STAT CARDS ============ */
.stat-card {
    background: var(--shell-paper);
    border: 1px solid var(--shell-border);
    border-radius: var(--shell-radius);
    padding: 16px 18px;
    box-shadow: var(--shell-shadow);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.stat-card .stat-label {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--shell-text-soft);
}
.stat-card .stat-value {
    font-family: "Playfair Display", serif;
    font-size: 34px;
    line-height: 1.05;
    color: var(--shell-text);
}
.stat-card .stat-meta {
    font-size: 12px;
    color: var(--shell-text-soft);
}
.stat-card.accent-free { border-top: 3px solid var(--shell-green); }
.stat-card.accent-reserved { border-top: 3px solid var(--shell-amber); }
.stat-card.accent-occupied { border-top: 3px solid var(--shell-red); }
.stat-card.accent-cleaning { border-top: 3px solid var(--shell-blue); }
.stat-card.accent-disabled { border-top: 3px solid var(--shell-lilac); }

/* ============ STATUS PILLS ============ */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: #eeeae0;
    color: var(--shell-text-soft);
}
.pill.pill-free { background: #e5f2ea; color: #2f6a49; }
.pill.pill-reserved { background: #fbf2df; color: #8a6210; }
.pill.pill-occupied { background: #fce6e6; color: #8c2d2d; }
.pill.pill-cleaning { background: #e4edf5; color: #355a82; }
.pill.pill-disabled { background: #ebe5f3; color: #584170; }
.pill.pill-seated { background: #fce6d2; color: #8a4010; }
.pill.pill-completed { background: #e0e0df; color: #3f3f3f; }
.pill.pill-cancelled { background: #f3e3e3; color: #8c3e3e; }
.pill.pill-no_show { background: #f6dede; color: #a23c3c; }

/* ============ LISTS ============ */
.list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}
.list li {
    padding: 10px 0;
    border-top: 1px solid var(--shell-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 13.5px;
}
.list li:first-child { border-top: none; }
.list .li-meta {
    color: var(--shell-text-soft);
    font-size: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.list .li-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.list .li-main strong { font-weight: 600; }
.list .li-side { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

/* ============ ZONE STRIP ============ */
.zone-strip {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.zone-chip {
    border: 1px solid var(--shell-border);
    border-radius: var(--shell-radius-sm);
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 130px;
}
.zone-chip .zone-chip-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}
.zone-chip .zone-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--shell-gold);
}
.zone-chip .zone-counts {
    font-size: 11px;
    color: var(--shell-text-soft);
    letter-spacing: 0.04em;
}

/* ============ QUICK ACTIONS ============ */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}
.quick-action {
    border: 1px dashed var(--shell-border);
    border-radius: var(--shell-radius-sm);
    padding: 12px 14px;
    text-align: left;
    background: #fbf9f3;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.quick-action:hover { border-color: var(--shell-gold); background: #f6f1e4; }
.quick-action .qa-title { font-weight: 600; font-size: 13px; }
.quick-action .qa-sub { font-size: 11px; color: var(--shell-text-soft); }

/* ============ SPECIALS CARDS ============ */
.specials-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.special-card {
    border: 1px solid var(--shell-border);
    border-radius: var(--shell-radius);
    padding: 14px 16px;
    background: linear-gradient(180deg, #ffffff, #fbf9f3);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.special-card .sp-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--shell-text-soft);
}
.special-card .sp-item {
    font-family: "Playfair Display", serif;
    font-size: 18px;
    line-height: 1.15;
}
.special-card .sp-item.muted { color: var(--shell-text-soft); font-style: italic; }
.special-card .sp-meta {
    font-size: 12px;
    color: var(--shell-text-soft);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.special-card .sp-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============ AUDIT ============ */
.audit-list { font-size: 12px; }
.audit-list li {
    border-top: 1px solid var(--shell-border);
    padding: 7px 0;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}
.audit-list li:first-child { border-top: none; }
.audit-time { color: var(--shell-text-soft); font-variant-numeric: tabular-nums; }
.audit-text { flex: 1; min-width: 0; }

/* ============ MODAL ============ */
.modal-back {
    position: fixed;
    inset: 0;
    background: rgba(20, 18, 10, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
}
.modal-back.open { display: flex; }
.modal {
    background: var(--shell-paper);
    border-radius: var(--shell-radius);
    min-width: 480px;
    max-width: 640px;
    width: 90vw;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 16px 40px rgba(20, 18, 10, 0.25);
    padding: 22px 24px;
}
.modal h3 {
    margin: 0 0 14px;
    font-family: "Playfair Display", serif;
    letter-spacing: 0.02em;
}
.modal .form-row { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.modal label {
    display: flex; flex-direction: column; gap: 4px;
    font-size: 12px; letter-spacing: 0.04em; color: var(--shell-text-soft);
    flex: 1; min-width: 0;
}
.modal input[type="text"],
.modal input[type="date"],
.modal select,
.modal textarea {
    font-family: inherit;
    padding: 8px 10px;
    border: 1px solid var(--shell-border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--shell-text);
    background: #fff;
}
.modal textarea { resize: vertical; min-height: 52px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }

/* ============ MESSAGES ============ */
.shell-toast {
    position: fixed;
    top: 14px; right: 18px;
    background: var(--shell-ink);
    color: #f4efe6;
    padding: 10px 16px;
    border-radius: var(--shell-radius-sm);
    font-size: 13px;
    letter-spacing: 0.04em;
    box-shadow: 0 6px 22px rgba(20, 18, 10, 0.25);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.18s, transform 0.18s;
    z-index: 60;
    pointer-events: none;
}
.shell-toast.show { opacity: 1; transform: translateY(0); }
.shell-toast.err { background: #8c2d2d; }
.shell-toast.ok { background: #2f6a49; }

.empty {
    color: var(--shell-text-soft);
    font-size: 13px;
    padding: 10px 0;
}

@media (max-width: 960px) {
    .shell { grid-template-columns: 1fr; }
    .shell-sidebar { position: static; max-height: none; }
    .grid-12 { grid-template-columns: repeat(6, 1fr); }
    .col-3, .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: span 6; }
    .specials-row { grid-template-columns: 1fr; }
}

/* =================================================================
   Tooltips
   data-tooltip is populated by admin-i18n.js applyTo() from
   data-i18n-tooltip="tip.<key>". On hover (or focus-within) we render
   a small bubble with the help text. The native title attribute is
   also set in parallel so long-press works on touch devices.
   ================================================================= */
[data-tooltip] {
    position: relative;
}
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #1a1a1e;
    color: #f4efe6;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.01em;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: normal;
    width: max-content;
    max-width: 280px;
    box-shadow: 0 8px 22px rgba(20, 18, 10, 0.35);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.16s ease, transform 0.16s ease;
    z-index: 200;
    text-align: left;
}
[data-tooltip]::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1a1a1e;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.16s ease;
    z-index: 200;
}
[data-tooltip]:hover::after,
[data-tooltip]:focus-within::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
[data-tooltip]:hover::before,
[data-tooltip]:focus-within::before {
    opacity: 1;
}
/* Tiny help-cue glyph next to a labelled control. Add class .has-help to the
   <label> wrapper to draw a discreet "?" after the text. */
.has-help::after {
    content: "?";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    margin-left: 6px;
    border-radius: 50%;
    border: 1px solid var(--shell-text-soft, #6b6459);
    color: var(--shell-text-soft, #6b6459);
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    cursor: help;
    vertical-align: middle;
}

/* ============================================================
   APEX ADMIN SIMPLIFICATION (shell) — touch ergonomics for
   buttons / nav-items / pills / panel headers across all
   admin surfaces. Append-only. Matches kiosk-side polish.
   ============================================================ */

/* 1. Tap-highlight + touch-action on every interactive shell surface. */
.btn,
.nav-item,
.admin-lang-switch button,
.quick-action,
.zone-chip,
.modal button,
.shell-actions button,
.shell-actions a {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* 2. .btn — 40 px tablet-comfortable height (was ~36 px). */
.btn {
    min-height: 40px;
    padding: 10px 16px;
}
.btn-primary { font-weight: 700; }

/* 3. Bigger, calmer pills — read across the floor. */
.pill { padding: 4px 11px; font-size: 12px; }

/* 4. Quick action — touch-comfortable height. */
.quick-action { min-height: 64px; }

/* 5. Modal inputs — 40 px hit target. */
.modal input[type="text"],
.modal input[type="date"],
.modal select,
.modal textarea {
    min-height: 40px;
    padding: 10px 12px;
    font-size: 14px;
}

/* 6. Mobile sidebar — currently expands to full width on <960px which
      can push the main view down by ~340 px before content appears.
      Tighten the section padding so the manager scrolls less. */
@media (max-width: 960px) {
    .shell-sidebar { padding: 14px 14px 18px; }
    .nav-section { margin: 12px 0 2px; }
    .nav-list li { margin: 1px 0; }
    .nav-item { padding: 11px 12px; font-size: 14px; }
    .shell-main { padding: 18px 18px 60px; }
    .shell-head h1 { font-size: 22px; }
    .shell-head .shell-sub { font-size: 12px; }
}

/* 7. Focus-visible — premium gold ring, accessible. */
.btn:focus-visible,
.nav-item:focus-visible,
.admin-lang-switch button:focus-visible,
.quick-action:focus-visible {
    outline: 2px solid rgba(232, 185, 116, 0.85);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(201, 154, 74, 0.18);
}

/* 8. Reduced-motion compliance. */
@media (prefers-reduced-motion: reduce) {
    .btn, .nav-item, .pill, .stat-card, .quick-action {
        transition-duration: 80ms !important;
    }
    .shell-toast { transition-duration: 80ms !important; }
}

/* ============================================================
   STAGE A1 — admin shell modern polish (append-only, 2026-04-30)
   Scope: sidebar, page header, panels/cards, buttons, pills,
   lists, quick actions, scrollbars. No selectors are redefined
   elsewhere — additive only. Rollback = remove this block.
   ============================================================ */

:root {
    --shell-line: #e8e3d6;
    --shell-line-soft: #efeadd;
    --shell-paper-2: #fbf8f1;
    --shell-radius-md: 12px;
    --shell-shadow-card: 0 1px 0 rgba(20,18,10,0.04), 0 8px 22px -16px rgba(20,18,10,0.20);
    --shell-shadow-pop: 0 1px 0 rgba(20,18,10,0.04), 0 14px 28px -18px rgba(20,18,10,0.30);
}

html, body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #f3f0e8;
}

/* ---- SIDEBAR ---- */
.shell { grid-template-columns: 248px 1fr; }
.shell-sidebar {
    padding: 20px 14px 24px;
    background: linear-gradient(180deg, #1c1c22 0%, #161619 100%);
    border-right: 1px solid #25252b;
}
.brand { padding: 2px 8px 16px; gap: 10px; border-bottom-color: #26262d; }
.brand-name { font-size: 16.5px; letter-spacing: 0.22em; color: #f6f1e2; }
.brand-tag { font-size: 10.5px; letter-spacing: 0.24em; }

.admin-lang-switch {
    margin: 4px 8px 18px;
    padding: 4px;
    background: #15151b;
    border-color: #26262d;
    border-radius: 10px;
}
.admin-lang-switch button { padding: 7px 0; font-size: 11.5px; letter-spacing: 0.16em; color: #8a8473; }
.admin-lang-switch button:hover { color: #d6cfbd; }

.nav-section {
    margin: 16px 8px 6px;
    padding: 0 4px;
    font-size: 10.5px;
    letter-spacing: 0.22em;
    color: #79735f;
}
.nav-list li { margin: 1px 0; }
.nav-item {
    padding: 10px 12px;
    font-size: 13.5px;
    font-weight: 500;
    color: #cdc7b6;
    border-radius: 10px;
}
.nav-item:hover { background: rgba(232, 185, 116, 0.07); color: #f4efe6; }
.nav-item.active {
    background: linear-gradient(180deg, rgba(232,185,116,0.16), rgba(201,154,74,0.05));
    color: #f7f1de;
    box-shadow: inset 2px 0 0 var(--shell-gold), inset 0 0 0 1px rgba(201,154,74,0.12);
}
.nav-item .nav-badge {
    font-size: 9.5px;
    padding: 2px 7px;
    background: #2a2a30;
    color: #b6ad9a;
    letter-spacing: 0.10em;
}
.nav-item .nav-badge.soon { background: #38301f; color: var(--shell-gold-soft); }

.sidebar-foot {
    margin-top: 22px;
    padding: 12px 14px 0;
    border-top-color: #26262d;
    font-size: 10.5px;
    letter-spacing: 0.06em;
    color: #6e6757;
}

.shell-sidebar::-webkit-scrollbar { width: 6px; }
.shell-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 3px; }

/* ---- MAIN HEAD ---- */
.shell-main { padding: 28px 36px 64px; }
.shell-head {
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--shell-line);
    align-items: flex-end;
}
.shell-head h1 {
    font-family: "Playfair Display", "Georgia", serif;
    font-weight: 600;
    font-size: 28px;
    letter-spacing: 0.005em;
    color: #1d1d22;
    line-height: 1.15;
}
.shell-head .shell-sub {
    font-size: 13px;
    letter-spacing: 0;
    color: #71695a;
    margin-top: 4px;
}
.shell-actions { gap: 10px; }

/* ---- PANELS ---- */
.panel {
    border-color: var(--shell-line);
    border-radius: var(--shell-radius);
    box-shadow: var(--shell-shadow-card);
    padding: 20px 22px;
    background: #fff;
}
.panel h2 {
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.16em;
    color: #6e6757;
    margin: 0 0 14px;
}

/* ---- STAT CARDS ---- */
.stat-card {
    border-color: var(--shell-line);
    border-radius: var(--shell-radius);
    box-shadow: var(--shell-shadow-card);
    padding: 18px 20px 16px;
    gap: 8px;
    background: #fff;
}
.stat-card .stat-label {
    font-size: 10.5px;
    letter-spacing: 0.18em;
    color: #7a7363;
}
.stat-card .stat-value {
    font-family: "Playfair Display", "Georgia", serif;
    font-weight: 600;
    font-size: 36px;
    line-height: 1;
    letter-spacing: -0.01em;
    color: #1d1d22;
}
.stat-card .stat-meta { font-size: 11.5px; color: #807967; }

/* ---- BUTTONS ---- */
.btn {
    border-radius: var(--shell-radius-md);
    border-color: var(--shell-line);
    font-size: 13px;
    letter-spacing: 0.02em;
    min-height: 40px;
    padding: 10px 16px;
    font-weight: 600;
    transition: border-color .14s ease, background .14s ease, transform .08s ease, box-shadow .14s ease;
}
.btn:hover {
    border-color: rgba(201,154,74,0.55);
    background: var(--shell-paper-2);
}
.btn-primary {
    background: linear-gradient(180deg, #ecc285 0%, #c99a4a 100%);
    color: #1a1306;
    border-color: rgba(159, 113, 39, 0.40);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.40), 0 6px 14px -10px rgba(159, 113, 39, 0.55);
}
.btn-primary:hover {
    filter: brightness(1.04);
    border-color: rgba(159, 113, 39, 0.65);
    background: linear-gradient(180deg, #ecc285 0%, #c99a4a 100%);
}
.btn-ghost { color: var(--shell-text-soft); border-color: transparent; }
.btn-ghost:hover {
    background: rgba(20,18,10,0.05);
    border-color: transparent;
    color: var(--shell-text);
}
.btn-danger { border-color: #e9c4c4; }

/* ---- PILLS ---- */
.pill {
    font-weight: 700;
    letter-spacing: 0.10em;
    font-size: 10.5px;
    padding: 4px 10px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.30);
}

/* ---- QUICK ACTIONS ---- */
.quick-action {
    border: 1px solid var(--shell-line);
    border-radius: var(--shell-radius-md);
    background: #fff;
    padding: 14px 16px;
    transition: border-color .14s ease, background .14s ease, box-shadow .14s ease, transform .08s ease;
}
.quick-action:hover {
    border-color: rgba(201, 154, 74, 0.50);
    background: linear-gradient(180deg, #fff 0%, var(--shell-paper-2) 100%);
    box-shadow: var(--shell-shadow-card);
}
.quick-action .qa-title { font-weight: 600; font-size: 13.5px; color: #1d1d22; }
.quick-action .qa-sub { font-size: 11.5px; color: #807967; margin-top: 2px; }

/* ---- LIST ROWS ---- */
.list li {
    padding: 12px 6px;
    border-top-color: var(--shell-line-soft);
    border-radius: 8px;
    margin: 0 -6px;
    transition: background .14s ease;
}
.list li:hover { background: var(--shell-paper-2); }
.list .li-main strong { color: #1d1d22; }

/* ---- ZONE CHIPS ---- */
.zone-chip {
    border-color: var(--shell-line);
    border-radius: var(--shell-radius-md);
    background: #fff;
    padding: 10px 14px;
}

/* ---- SPECIAL CARDS ---- */
.special-card {
    border-color: var(--shell-line);
    border-radius: var(--shell-radius);
    background: linear-gradient(180deg, #fff 0%, var(--shell-paper-2) 100%);
    box-shadow: var(--shell-shadow-card);
    padding: 16px 18px;
}
.special-card .sp-item { font-size: 19px; font-weight: 600; color: #1d1d22; }

/* ---- TOAST ---- */
.shell-toast {
    border-radius: 10px;
    padding: 11px 18px;
    box-shadow: 0 12px 30px -12px rgba(20,18,10,0.40);
}

/* ---- MAIN AREA SCROLLBAR ---- */
.shell-main::-webkit-scrollbar { width: 8px; height: 8px; }
.shell-main::-webkit-scrollbar-thumb { background: rgba(20,18,10,0.10); border-radius: 4px; }
.shell-main::-webkit-scrollbar-thumb:hover { background: rgba(20,18,10,0.18); }

/* ---- MOBILE ---- */
@media (max-width: 960px) {
    .shell-main { padding: 22px 18px 60px; }
    .shell-head h1 { font-size: 23px; }
    .stat-card .stat-value { font-size: 30px; }
}
/* ============================================================
   END STAGE A1 — admin shell modern polish
   ============================================================ */

/* ============================================================
   STAGE A3 — Home CMS + Specials polish (append-only, 2026-04-30)
   Scope:
     - /admin/home-cms .cms-block / .cms-form / .cms-cat-card /
       .cms-lang-grid (overrides inline <style> via specificity)
     - /admin/dashboard .special-card + .modal-back .modal
       (Specials editing modal for Chef / Dish of Day)
   No template/JS edits. All selectors carry an extra ancestor
   so they outweigh the inline <style> block in admin_home_cms.html.
   Rollback = remove this block.
   ============================================================ */

/* ---- HOME CMS: form spacing ---- */
.shell .cms-form { gap: 22px; }

/* ---- HOME CMS: section card ---- */
.shell .cms-block {
    background: #fff;
    border: 1px solid var(--shell-line);
    border-radius: var(--shell-radius);
    box-shadow: var(--shell-shadow-card);
    padding: 24px 26px;
    position: relative;
}
.shell .cms-block h2 {
    font-family: "Playfair Display", "Georgia", serif;
    font-weight: 600;
    font-size: 20px;
    color: #1d1d22;
    margin: 0 0 4px;
    letter-spacing: 0.005em;
}
.shell .cms-block .cms-block-sub {
    color: #71695a;
    font-size: 13px;
    margin-bottom: 20px;
}

/* Eyebrow tag — visual link "what I edit here → where it shows
   on the homepage". Per-block content via :nth-of-type so we
   don't need any HTML changes. */
.shell .cms-form > .cms-block::before {
    display: inline-block;
    margin: -2px 0 10px;
    padding: 4px 10px 5px;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: var(--shell-gold);
    background: rgba(201, 154, 74, 0.08);
    border: 1px solid rgba(201, 154, 74, 0.32);
    border-radius: 999px;
    line-height: 1;
}
.shell .cms-form > .cms-block:nth-of-type(1)::before { content: "↓ Shows on /  ·  Hero banner"; }
.shell .cms-form > .cms-block:nth-of-type(2)::before { content: "↓ Shows on /  ·  QR side card"; }
.shell .cms-form > .cms-block:nth-of-type(3)::before { content: "↓ Shows on /  ·  Scenario entry cards"; }

/* ---- HOME CMS: section labels (Title / Subtitle / Description) ---- */
.shell .cms-block .cms-field { margin-bottom: 16px; }
.shell .cms-block .cms-field:last-child { margin-bottom: 0; }
.shell .cms-block .cms-field-label {
    font-size: 10.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #6b6457;
    font-weight: 700;
    margin-bottom: 8px;
}

/* ---- HOME CMS: lang-grid as chip cards (matches A2 menu/wine) ---- */
.shell .cms-block .cms-lang-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.shell .cms-block .cms-lang-grid > label {
    background: #fcfaf4;
    border: 1px solid #ece6d6;
    border-radius: 10px;
    padding: 8px 10px 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #6b6457;
    text-transform: uppercase;
    transition: border-color .14s;
}
.shell .cms-block .cms-lang-grid > label:focus-within {
    border-color: rgba(201, 154, 74, 0.55);
}
.shell .cms-block .cms-lang-grid input,
.shell .cms-block .cms-lang-grid textarea {
    border: 1px solid #ece6d6;
    border-radius: 10px;
    background: #fff;
    padding: 10px 12px;
    font-size: 14px;
    min-height: 40px;
    color: #1d1d22;
    text-transform: none;
    letter-spacing: 0;
    transition: border-color .14s, box-shadow .14s;
}
.shell .cms-block .cms-lang-grid input:focus,
.shell .cms-block .cms-lang-grid textarea:focus {
    outline: none;
    border-color: var(--shell-gold);
    box-shadow: 0 0 0 3px rgba(201, 154, 74, 0.18);
    background: #fff;
}
.shell .cms-block .cms-lang-grid textarea { min-height: 64px; line-height: 1.45; }

/* ---- HOME CMS: scenario sub-cards ---- */
.shell .cms-block .cms-cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.shell .cms-block .cms-cat-card {
    background: #fcfaf4;
    border: 1px solid #ece6d6;
    border-radius: 12px;
    padding: 16px 18px;
    min-width: 0;
}
.shell .cms-block .cms-lang-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shell .cms-block .cms-lang-grid > label { min-width: 0; }
.shell .cms-block .cms-lang-grid input,
.shell .cms-block .cms-lang-grid textarea { width: 100%; max-width: 100%; box-sizing: border-box; }
.shell .cms-block .cms-cat-card h3 {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 11px;
    letter-spacing: 0.20em;
    color: #1d1d22;
    font-weight: 700;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ece6d6;
}
.shell .cms-block .cms-cat-card .cms-field-label {
    margin-top: 12px;
    margin-bottom: 6px;
    font-size: 10px;
    letter-spacing: 0.16em;
}
.shell .cms-block .cms-cat-card .cms-field-label:first-child { margin-top: 0; }

@media (max-width: 1100px) {
    .shell .cms-block .cms-cat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .shell .cms-block .cms-lang-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   DASHBOARD — Specials cards + Specials modal
   ============================================================ */

/* Special card (Dish of Day / Chef Special) — visual cue that
   this content is live on the homepage. */
.shell .special-card {
    position: relative;
    padding: 18px 20px 16px;
    border-radius: var(--shell-radius);
    border-color: var(--shell-line);
    background: linear-gradient(180deg, #fff 0%, var(--shell-paper-2) 100%);
    box-shadow: var(--shell-shadow-card);
    gap: 10px;
}
.shell .special-card .sp-head {
    font-size: 10.5px;
    letter-spacing: 0.18em;
    color: #6b6457;
    font-weight: 700;
    align-items: center;
}
.shell .special-card .sp-head .pill {
    font-size: 10px;
    padding: 3px 9px;
    letter-spacing: 0.10em;
}
.shell .special-card .sp-item {
    font-family: "Playfair Display", "Georgia", serif;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 600;
    color: #1d1d22;
    min-height: 24px;
}
.shell .special-card .sp-item.muted,
.shell .special-card .sp-item:empty,
.shell .special-card .sp-item:has(:only-child) { color: #a8a195; font-weight: 500; }
.shell .special-card .sp-meta {
    font-size: 11.5px;
    color: #807967;
    letter-spacing: 0.04em;
}
.shell .special-card .sp-actions { gap: 8px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--shell-line-soft); }
.shell .special-card .sp-actions .btn { min-height: 34px; padding: 7px 12px; font-size: 12px; }

/* Tiny "→ /" indicator at the top-right of each special card so
   the manager sees the visual link to the kiosk homepage. */
.shell .special-card::after {
    content: "Live on /";
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--shell-gold);
    background: rgba(201, 154, 74, 0.08);
    border: 1px solid rgba(201, 154, 74, 0.32);
    border-radius: 999px;
    padding: 3px 9px 3.5px;
    line-height: 1;
}

/* ---- Specials modal (#specials-modal-back .modal) ---- */
.shell-main + .modal-back .modal,
.shell ~ .modal-back .modal,
.modal-back#specials-modal-back .modal {
    min-width: 540px;
    max-width: 720px;
    padding: 26px 28px 24px;
    border-radius: var(--shell-radius);
    box-shadow: 0 24px 60px -20px rgba(20, 18, 10, 0.45);
}
.modal-back#specials-modal-back .modal h3 {
    font-family: "Playfair Display", "Georgia", serif;
    font-weight: 600;
    font-size: 22px;
    color: #1d1d22;
    margin: 0 0 4px;
}
.modal-back#specials-modal-back .modal h3::after {
    display: block;
    content: "Shown on the kiosk homepage  ·  also on /chef for chef special";
    font-family: "Inter", system-ui, sans-serif;
    font-size: 11.5px;
    font-weight: 500;
    color: #807967;
    letter-spacing: 0.02em;
    margin: 4px 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--shell-line);
}

/* Form rows polish inside specials modal. */
.modal-back#specials-modal-back .modal .form-row {
    gap: 12px;
    margin-bottom: 12px;
}
.modal-back#specials-modal-back .modal label {
    font-size: 10.5px;
    letter-spacing: 0.16em;
    color: #6b6457;
    text-transform: uppercase;
    font-weight: 700;
    gap: 6px;
}
.modal-back#specials-modal-back .modal input[type="text"],
.modal-back#specials-modal-back .modal input[type="date"],
.modal-back#specials-modal-back .modal select {
    border: 1px solid var(--shell-line);
    border-radius: 10px;
    background: #fff;
    color: #1d1d22;
    padding: 10px 12px;
    font-size: 14px;
    min-height: 42px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    transition: border-color .14s, box-shadow .14s, background .14s;
}
.modal-back#specials-modal-back .modal input:focus,
.modal-back#specials-modal-back .modal select:focus {
    outline: none;
    border-color: var(--shell-gold);
    box-shadow: 0 0 0 3px rgba(201, 154, 74, 0.18);
    background: #fff;
}
.modal-back#specials-modal-back .modal input[readonly] {
    background: #fcfaf4;
    color: #6b6457;
    cursor: default;
}
.modal-back#specials-modal-back .modal input[type="checkbox"] {
    align-self: flex-start;
    margin-top: 2px;
}

/* Modal action bar polish. */
.modal-back#specials-modal-back .modal .modal-actions {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--shell-line);
    gap: 10px;
}
.modal-back#specials-modal-back .modal .modal-actions .btn {
    min-height: 42px;
    padding: 11px 18px;
    font-size: 13px;
}
.modal-back#specials-modal-back .modal .modal-actions .btn-primary {
    padding: 11px 22px;
    min-width: 120px;
}

/* Mobile: stack form rows in the modal. */
@media (max-width: 720px) {
    .modal-back#specials-modal-back .modal {
        min-width: 0;
        width: 94vw;
        padding: 20px 18px;
    }
    .modal-back#specials-modal-back .modal .form-row {
        flex-direction: column;
        gap: 10px;
    }
    .shell .special-card::after { top: 10px; right: 12px; }
}

/* ============================================================
   END STAGE A3 — Home CMS + Specials polish
   ============================================================ */

/* ============================================================
   STAGE B1 PHASE 1 — A4 responsive shell regression fix
   (append-only, 2026-04-30)

   Problem: A1 polish at line 728 introduced
       .shell { grid-template-columns: 248px 1fr; }
   outside any media query, AFTER the existing
       @media (max-width: 960px) { .shell { grid-template-columns: 1fr; } }
   block. Source order made the desktop rule win on every
   viewport, so on portrait tablets (800×1280) and phones
   (412×915) the dashboard horizontally overflowed by
   176px and 564px respectively (A4 audit, 2026-04-30).

   Fix: re-assert the responsive collapse at the end of the
   stylesheet so cascade order favors the collapsed grid on
   tablets/phones. Append-only — A1 block is preserved
   verbatim. Rollback = remove this block.
   ============================================================ */

@media (max-width: 960px) {
    .shell { grid-template-columns: 1fr; }
    .shell-sidebar { position: static; max-height: none; }
}

/* Long unbreakable IDs in dashboard audit-list / list .li-meta
   (e.g. "table_moia8udj8197_copy_177736016801") were forcing
   horizontal overflow on phone widths even after the shell
   collapse. Allow break-anywhere on these text cells only. */
.audit-list .audit-text,
.audit-list .audit-time,
.list .li-meta,
.list .li-main strong { overflow-wrap: anywhere; word-break: break-word; }

/* ============================================================
   END STAGE B1 PHASE 1 — responsive shell regression fix
   ============================================================ */

/* ============================================================
   STAGE B1 PHASE 2 — Quick Operations Panel (append-only, 2026-04-30)

   Scope: new .ops-band section inside /admin/dashboard, between
   the stat strip and the main panel grid. Four operational cards:
     1. Pricing actions (5 toggles)
     2. Specials control (Dish / Chef / Promo)
     3. Telegram operations (5 alert toggles)
     4. Today status (full-width KPI strip)

   Visual goal: large horeca cards, strong hierarchy, tablet-
   friendly tactile rows (≥48px touch targets). Reuses existing
   tokens (--shell-gold, --shell-line, --shell-paper-2, etc.).

   No selectors are redefined elsewhere — additive only.
   Rollback = remove this block + revert admin_dashboard.html.
   ============================================================ */

/* ---- BAND CONTAINER ---- */
.ops-band {
    margin: 4px 0 24px;
    padding: 22px 24px 24px;
    background: linear-gradient(180deg, #faf6ec 0%, #f7f2e3 100%);
    border: 1px solid var(--shell-line);
    border-radius: 14px;
    box-shadow: 0 1px 0 rgba(20,18,10,0.02);
}

.ops-band-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--shell-line);
}
.ops-band-eyebrow {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--shell-gold);
    text-transform: uppercase;
}
.ops-band-title {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 600;
    font-size: 26px;
    line-height: 1.15;
    color: #1d1d22;
}
.ops-band-tagline {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--shell-text-soft);
}

/* ---- GRID ---- */
.ops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}
.ops-card--wide { grid-column: 1 / -1; }

/* ---- CARD ---- */
.ops-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px 22px 20px;
    background: #ffffff;
    border: 1px solid var(--shell-line);
    border-top: 3px solid var(--shell-line);
    border-radius: var(--shell-radius-md, 12px);
    box-shadow: 0 1px 0 rgba(20,18,10,0.02);
    min-width: 0;
}
.ops-card--pricing  { border-top-color: var(--shell-gold); }
.ops-card--specials { border-top-color: var(--shell-amber); }
.ops-card--telegram { border-top-color: var(--shell-blue); }
.ops-card--status   { border-top-color: var(--shell-green); }

.ops-card-head { display: flex; flex-direction: column; gap: 3px; }
.ops-card-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.20em;
    color: var(--shell-text-soft);
    text-transform: uppercase;
}
.ops-card-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #1d1d22;
    letter-spacing: -0.005em;
}
.ops-card-sub {
    margin: 1px 0 0;
    font-size: 12.5px;
    color: var(--shell-text-soft);
}

/* ---- TOGGLE LIST (Pricing / Telegram) ---- */
.ops-toggle-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ops-toggle {
    width: 100%;
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--shell-paper-2, #fbf8f1);
    border: 1px solid var(--shell-line);
    border-left: 3px solid transparent;
    border-radius: 10px;
    color: #1d1d22;
    text-align: left;
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease, transform 80ms ease;
    font-family: inherit;
}
.ops-toggle:hover { background: #f6f1e4; border-color: var(--shell-gold); }
.ops-toggle:active { transform: translateY(1px); }
.ops-toggle:focus-visible {
    outline: 2px solid var(--shell-gold);
    outline-offset: 2px;
}
.ops-toggle.is-on {
    background: linear-gradient(180deg, #fbf2dd 0%, #f9ecc8 100%);
    border-left-color: var(--shell-gold);
    box-shadow: inset 0 0 0 1px rgba(201,154,74,0.18);
}

.ops-toggle-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--shell-line);
    flex-shrink: 0;
    box-shadow: inset 0 0 0 2px #fff;
}
.ops-toggle-dot--gold     { background: var(--shell-gold); }
.ops-toggle-dot--amber    { background: var(--shell-amber); }
.ops-toggle-dot--green    { background: var(--shell-green); }
.ops-toggle-dot--blue     { background: var(--shell-blue); }
.ops-toggle-dot--cyan     { background: #4a8db0; }
.ops-toggle-dot--red      { background: var(--shell-red); }
.ops-toggle-dot--burgundy { background: #8b3142; }

.ops-toggle-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.ops-toggle-name {
    font-size: 14px;
    font-weight: 600;
    color: #1d1d22;
    line-height: 1.25;
}
.ops-toggle-meta {
    font-size: 11.5px;
    color: var(--shell-text-soft);
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.ops-toggle-pill {
    flex-shrink: 0;
    min-width: 44px;
    text-align: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #ece6d4;
    color: #807967;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
}
.ops-toggle.is-on .ops-toggle-pill {
    background: linear-gradient(180deg, #e7c374 0%, #c99a4a 100%);
    color: #1c1c22;
    box-shadow: 0 0 0 1px rgba(201,154,74,0.25);
}

/* ---- MINI ROW LIST (Specials Control) ---- */
.ops-mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ops-mini-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--shell-paper-2, #fbf8f1);
    border: 1px solid var(--shell-line);
    border-radius: 10px;
    min-height: 56px;
    flex-wrap: wrap;
}
.ops-mini-dot {
    width: 8px;
    height: 36px;
    border-radius: 4px;
    background: var(--shell-amber);
    flex-shrink: 0;
}
.ops-mini-row:nth-child(2) .ops-mini-dot { background: var(--shell-gold); }
.ops-mini-row:nth-child(3) .ops-mini-dot { background: #8b3142; }
.ops-mini-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.ops-mini-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--shell-text-soft);
    text-transform: uppercase;
}
.ops-mini-value {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d22;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.ops-mini-pill {
    flex-shrink: 0;
    min-width: 44px;
    text-align: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #ece6d4;
    color: #807967;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
}
.ops-mini-pill.is-on {
    background: linear-gradient(180deg, #d8ebd9 0%, #b9deb8 100%);
    color: #2f5d2f;
}
.ops-mini-pill.is-off { background: #ece6d4; color: #807967; }
.ops-mini-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--shell-line);
    background: #ffffff;
    color: #1d1d22;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    text-decoration: none;
    transition: background 120ms ease, border-color 120ms ease;
    font-family: inherit;
}
.ops-mini-btn:hover { background: #f6f1e4; border-color: var(--shell-gold); color: #1c1c22; }

/* ---- TODAY STATUS — KPI STRIP ---- */
.ops-status-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}
.ops-status-tile {
    position: relative;
    padding: 16px 18px 18px;
    background: var(--shell-paper-2, #fbf8f1);
    border: 1px solid var(--shell-line);
    border-radius: 10px;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ops-status-tile::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    border-radius: 10px 0 0 10px;
    background: var(--shell-line);
}
.ops-status-tile[data-tone="green"]::before { background: var(--shell-green); }
.ops-status-tile[data-tone="amber"]::before { background: var(--shell-amber); }
.ops-status-tile[data-tone="gold"]::before  { background: var(--shell-gold); }
.ops-status-tile[data-tone="blue"]::before  { background: var(--shell-blue); }
.ops-status-tile[data-tone="red"]::before   { background: var(--shell-red); }
.ops-status-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--shell-text-soft);
    text-transform: uppercase;
}
.ops-status-value {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 600;
    font-size: 30px;
    line-height: 1.1;
    color: #1d1d22;
    margin-top: 2px;
}
.ops-status-meta {
    font-size: 11.5px;
    color: var(--shell-text-soft);
    margin-top: auto;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 960px) {
    .ops-band { padding: 18px 16px 18px; border-radius: 12px; }
    .ops-band-title { font-size: 22px; }
    .ops-grid { grid-template-columns: 1fr; gap: 12px; }
    .ops-card { padding: 18px 16px 16px; }
    .ops-status-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
    .ops-status-value { font-size: 26px; }
}
@media (max-width: 480px) {
    .ops-toggle-pill, .ops-mini-pill { min-width: 38px; padding: 4px 8px; }
    .ops-status-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   END STAGE B1 PHASE 2 — Quick Operations Panel
   ============================================================ */

/* ============================================================
   STAGE B1.5 — TABLET UX MATURATION (append-only, 2026-04-30)

   Scope: visual scale + hierarchy + touch zones across the
   admin shell so dashboard reads as a horeca control terminal
   on Tab A9+ (1024×600 landscape, 800×1280 portrait).

   No new structures. No HTML changes. No JS. Only:
     - bigger touch targets (≥44px) on nav-item, .btn, ops-*
     - bigger panel h2 (was 12px → 16.5px) — biggest quality win
     - bigger Today Status KPI numbers (30→36px Playfair)
     - more generous paddings on ops cards / stat cards / panels
     - readable form labels (10.5→12px)
     - calmer letter-spacing on operational labels
     - analytics .kv-table overflow fix on phone widths

   Rollback = remove this block.
   ============================================================ */

/* ---- 1. SIDEBAR — tablet-sized tap rows ---- */
.shell-sidebar { padding: 22px 14px 26px; }
.brand-name { font-size: 17.5px; }
.nav-section { font-size: 11px; letter-spacing: 0.24em; margin: 18px 8px 8px; }
.nav-item {
    min-height: 46px;
    padding: 12px 13px;
    font-size: 14px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.admin-lang-switch { margin: 4px 8px 20px; padding: 5px; }
.admin-lang-switch button { padding: 9px 0; font-size: 12px; min-height: 36px; }

/* ---- 2. PAGE HEADER ---- */
.shell-head { padding-bottom: 22px; margin-bottom: 26px; }
.shell-head h1 { font-size: 30px; line-height: 1.12; letter-spacing: -0.005em; }
.shell-head .shell-sub { font-size: 13.5px; margin-top: 4px; }
.shell-actions { gap: 12px; }

/* ---- 3. STAT STRIP — premium ---- */
.stat-card {
    padding: 22px 22px 24px;
    min-height: 138px;
    border-radius: 13px;
    border-top-width: 4px;
}
.stat-card .stat-label { font-size: 11.5px; letter-spacing: 0.18em; }
.stat-card .stat-value { font-size: 40px; line-height: 1.0; margin-top: 4px; }
.stat-card .stat-meta  { font-size: 12.5px; margin-top: auto; }

/* ---- 4. BUTTONS — tablet target ≥44 ---- */
.btn {
    min-height: 44px;
    padding: 11px 18px;
    font-size: 13.5px;
    border-radius: 10px;
    letter-spacing: 0.02em;
}
.btn-primary { padding: 11px 22px; font-weight: 700; }
.btn-ghost { padding: 11px 16px; }

/* ---- 5. PILLS ---- */
.pill { padding: 5px 12px; font-size: 12px; letter-spacing: 0.04em; }

/* ---- 6. PANEL H2 — biggest single hierarchy win ---- */
.panel { padding: 24px 24px 22px; border-radius: 13px; }
.panel h2 {
    font-size: 16.5px;
    line-height: 1.3;
    letter-spacing: 0.005em;
    margin-bottom: 16px;
}
.panel h2 .panel-action { font-size: 11.5px; padding: 4px 10px; }

/* ---- 7. QUICK ACTIONS — tactile ---- */
.quick-actions { gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.quick-action {
    min-height: 72px;
    padding: 14px 16px;
    border-radius: 12px;
}
.quick-action .qa-title { font-size: 14.5px; }
.quick-action .qa-sub   { font-size: 12.5px; margin-top: 3px; }

/* ---- 8. OPS BAND — more imposing ---- */
.ops-band {
    padding: 28px 28px 30px;
    border-radius: 16px;
    margin: 8px 0 28px;
    background: linear-gradient(180deg, #faf5e7 0%, #f6f0df 100%);
}
.ops-band-head { padding-bottom: 22px; margin-bottom: 22px; gap: 5px; }
.ops-band-eyebrow { font-size: 11.5px; letter-spacing: 0.24em; }
.ops-band-title   { font-size: 30px; line-height: 1.12; }
.ops-band-tagline { font-size: 14px; margin-top: 4px; }

/* ---- 9. OPS CARDS ---- */
.ops-grid { gap: 18px; }
.ops-card {
    padding: 26px 24px 24px;
    border-radius: 14px;
    border-top-width: 4px;
    gap: 18px;
}
.ops-card-eyebrow { font-size: 11px; letter-spacing: 0.22em; }
.ops-card-title   { font-size: 19px; letter-spacing: -0.005em; }
.ops-card-sub     { font-size: 13px; margin-top: 2px; }

/* ---- 10. OPS TOGGLES — tablet tactile ---- */
.ops-toggle-list { gap: 9px; }
.ops-toggle {
    min-height: 68px;
    padding: 14px 16px;
    border-radius: 12px;
    border-left-width: 4px;
    gap: 14px;
}
.ops-toggle-dot { width: 12px; height: 12px; }
.ops-toggle-name { font-size: 15px; }
.ops-toggle-meta { font-size: 12.5px; margin-top: 1px; }
.ops-toggle-pill {
    min-width: 50px;
    padding: 6px 12px;
    font-size: 11px;
    letter-spacing: 0.18em;
}

/* ---- 11. OPS MINI ROWS (Specials Control) ---- */
.ops-mini-list { gap: 9px; }
.ops-mini-row {
    min-height: 76px;
    padding: 14px 16px;
    gap: 14px;
    border-radius: 12px;
}
.ops-mini-dot { width: 10px; height: 44px; border-radius: 5px; }
.ops-mini-label { font-size: 11.5px; letter-spacing: 0.16em; }
.ops-mini-value { font-size: 16.5px; line-height: 1.3; }
.ops-mini-pill {
    min-width: 50px;
    padding: 6px 12px;
    font-size: 11px;
    letter-spacing: 0.18em;
}
.ops-mini-btn {
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    letter-spacing: 0.04em;
}

/* ---- 12. TODAY STATUS — premium "live floor" feel ---- */
.ops-status-grid {
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.ops-status-tile {
    padding: 22px 22px 22px 26px;
    min-height: 144px;
    border-radius: 12px;
    gap: 6px;
}
.ops-status-tile::before { width: 4px; }
.ops-status-label { font-size: 11.5px; letter-spacing: 0.20em; }
.ops-status-value { font-size: 36px; line-height: 1.05; margin-top: 4px; }
.ops-status-meta  { font-size: 12.5px; }

/* ---- 13. SPECIAL CARD (existing dashboard panel) ---- */
.shell .special-card { padding: 22px 22px 20px; gap: 12px; }
.shell .special-card .sp-head { font-size: 11.5px; letter-spacing: 0.18em; }
.shell .special-card .sp-item { font-size: 22px; line-height: 1.25; }
.shell .special-card .sp-meta { font-size: 12.5px; }

/* ---- 14. FORM LABELS — readable at tablet distance ---- */
.form-row label,
.form-row > label {
    font-size: 12px;
    letter-spacing: 0.06em;
    line-height: 1.35;
    gap: 7px;
}
.form-row input[type="text"],
.form-row input[type="date"],
.form-row input[type="number"],
.form-row input[type="email"],
.form-row select,
.form-row textarea {
    min-height: 42px;
    font-size: 14px;
    padding: 10px 12px;
}

/* ---- 15. LISTS (today / upcoming / promos) ---- */
.list li { padding: 12px 0; }
.list .li-meta { font-size: 12px; gap: 10px; }
.list .li-main strong { font-size: 14.5px; }

/* ---- 16. AUDIT LIST ---- */
.audit-list { font-size: 12.5px; }
.audit-list li { padding: 10px 0; gap: 14px; }

/* ---- 17. ZONE STRIP ---- */
.zone-chip { padding: 12px 14px; min-width: 150px; border-radius: 12px; }
.zone-chip .zone-chip-head { font-size: 13px; gap: 8px; }
.zone-chip .zone-counts { font-size: 12px; margin-top: 4px; }

/* ---- 18. RESERVATIONS FILTERS ---- */
.res-filter-btn { min-height: 40px; padding: 8px 14px; font-size: 12.5px; border-radius: 9px; }

/* ---- 19. RESPONSIVE TIGHTENING ---- */
@media (max-width: 960px) {
    .ops-band { padding: 22px 18px 22px; border-radius: 14px; }
    .ops-band-title { font-size: 26px; }
    .ops-card { padding: 22px 18px 20px; }
    .ops-card-title { font-size: 18px; }
    .ops-status-tile { min-height: 124px; padding: 20px 20px 20px 22px; }
    .ops-status-value { font-size: 32px; }
    .panel { padding: 20px 20px 18px; }
    .panel h2 { font-size: 16px; margin-bottom: 14px; }
    .stat-card { padding: 20px 20px 22px; min-height: 130px; }
    .stat-card .stat-value { font-size: 36px; }
    .nav-item { font-size: 14.5px; padding: 13px 14px; min-height: 48px; }
    .shell-head h1 { font-size: 26px; }
}
@media (max-width: 480px) {
    .shell-head h1 { font-size: 24px; }
    .ops-band { padding: 18px 14px 18px; }
    .ops-band-title { font-size: 22px; }
    .ops-status-value { font-size: 28px; }
    .stat-card .stat-value { font-size: 30px; }
    .ops-toggle { padding: 12px 14px; min-height: 64px; }
    .ops-mini-row { min-height: 72px; padding: 12px 14px; }
    .panel { padding: 18px 16px 16px; }
    .panel h2 { font-size: 15px; }
}

/* ---- 20. ANALYTICS PAGE OVERFLOW FIX (kv-table + funnel rows) ----
   Two underlying causes were forcing the admin shell wider than the viewport
   on /admin/analytics: (a) .grid-12 used `repeat(12, 1fr)` which lets a
   panel's min-content (e.g. a kv-table or a funnel row with fixed flex
   columns) push the grid track wider than its allocation; (b) panels
   containing the funnel divs (.f-name flex:0 0 190px + .f-count 110px +
   .f-drop 90px = 390px intrinsic) had no internal scroll, so the
   intrinsic width bled all the way up to .shell.
   Fix: clamp grid tracks with minmax(0, 1fr); let panels shrink with
   min-width:0; give kv-table and #*-funnel containers internal scroll. */
.grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
@media (max-width: 960px) {
    /* Re-assert responsive 6-col grid with minmax(0,1fr) — without this,
       the unconditional rule above wins source-order and breaks the
       phone collapse to wider tracks. */
    .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.shell-main .panel { min-width: 0; }
.panel:has(.kv-table),
.panel:has(.funnel-row) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
#main-funnel, #side-funnel {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
@media (max-width: 760px) {
    .kv-table { font-size: 12.5px; }
    .kv-table th, .kv-table td { padding: 8px 10px; }
}

/* ============================================================
   END STAGE B1.5 — TABLET UX MATURATION
   ============================================================ */

/* ============================================================
   STAGE C1 — LIVE HORECA FEEL (append-only, 2026-04-30)

   Goal: take the matured B1.5 dashboard from "static, calm panel"
   to "live operations terminal" via tasteful micro-interactions
   and live indicators. Restraint over flash:
     - subtle hover lifts (translateY -1px + softer shadow)
     - tactile press states (translateY 1px, no scale tricks)
     - pulse only on a single "live" dot beside the operations
       eyebrow + Today Status eyebrow — never on numbers, cards
       or whole panels
     - pill flash on toggle activation (380ms one-shot)
     - clearer focus rings (gold, 2px) for keyboard/tablet users
     - sidebar active accent extended into a 3px gold rail

   No JS, no template changes for this CSS layer. Visual layer only.
   Rollback = remove this block.
   ============================================================ */

/* ---- 1. Live indicator dot (pulses next to "OPERATIONS · TODAY") ---- */
.ops-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 6px;
    border-radius: 50%;
    background: var(--shell-gold);
    vertical-align: middle;
    box-shadow: 0 0 0 0 rgba(201, 154, 74, 0.55);
    animation: ops-live-pulse 1.8s ease-in-out infinite;
    transform: translateY(-1px);
}
.ops-live-dot--green { background: var(--shell-green); box-shadow: 0 0 0 0 rgba(74, 180, 120, 0.55); }
.ops-live-dot--green { animation-name: ops-live-pulse-green; }

@keyframes ops-live-pulse {
    0%   { box-shadow: 0 0 0 0    rgba(201, 154, 74, 0.55); }
    65%  { box-shadow: 0 0 0 8px  rgba(201, 154, 74, 0.00); }
    100% { box-shadow: 0 0 0 0    rgba(201, 154, 74, 0.00); }
}
@keyframes ops-live-pulse-green {
    0%   { box-shadow: 0 0 0 0    rgba(74, 180, 120, 0.55); }
    65%  { box-shadow: 0 0 0 8px  rgba(74, 180, 120, 0.00); }
    100% { box-shadow: 0 0 0 0    rgba(74, 180, 120, 0.00); }
}

/* Reduced motion users: don't pulse. */
@media (prefers-reduced-motion: reduce) {
    .ops-live-dot { animation: none; box-shadow: none; }
}

/* ---- 2. Sidebar active rail — louder horeca feel ---- */
.nav-item {
    transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 80ms ease;
}
.nav-item:active { transform: translateY(1px); }
.nav-item.active {
    box-shadow: inset 3px 0 0 var(--shell-gold), inset 0 0 0 1px rgba(201, 154, 74, 0.16);
}
.nav-item:focus-visible {
    outline: 2px solid var(--shell-gold);
    outline-offset: 2px;
    background: rgba(232, 185, 116, 0.12);
}

/* ---- 3. Stat cards — subtle hover lift ---- */
.stat-card {
    transition: transform 140ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 140ms ease, border-color 140ms ease;
}
.stat-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px -10px rgba(20, 18, 10, 0.18);
    border-color: rgba(201, 154, 74, 0.20);
}

/* ---- 4. Quick action — better tactile feel ---- */
.quick-action {
    transition: transform 100ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.quick-action:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -8px rgba(20, 18, 10, 0.16); }
.quick-action:active { transform: translateY(1px); box-shadow: none; }

/* ---- 5. Ops cards — depth on hover (tablet hover via stylus / pointing device) ---- */
.ops-card {
    transition: transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 160ms ease, border-color 160ms ease;
}
.ops-card:hover {
    box-shadow: 0 10px 28px -16px rgba(20, 18, 10, 0.22);
    border-color: rgba(201, 154, 74, 0.18);
}

/* ---- 6. Ops toggle — tactile press + flash on activate ---- */
.ops-toggle {
    transition: background 140ms ease, border-color 140ms ease, transform 90ms ease, box-shadow 140ms ease;
}
.ops-toggle:active { transform: translateY(1px); }
.ops-toggle:focus-visible {
    outline: 2px solid var(--shell-gold);
    outline-offset: 2px;
}
.ops-toggle.is-on {
    box-shadow: inset 0 0 0 1px rgba(201, 154, 74, 0.22), 0 4px 12px -8px rgba(201, 154, 74, 0.30);
}
.ops-toggle .ops-toggle-pill {
    transition: background 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
@keyframes ops-pill-flash {
    0%   { transform: scale(1.0); box-shadow: 0 0 0 0   rgba(201, 154, 74, 0.55); }
    40%  { transform: scale(1.06); box-shadow: 0 0 0 6px rgba(201, 154, 74, 0.00); }
    100% { transform: scale(1.0); }
}
.ops-toggle.is-flash .ops-toggle-pill {
    animation: ops-pill-flash 380ms ease-out;
}
@media (prefers-reduced-motion: reduce) {
    .ops-toggle.is-flash .ops-toggle-pill { animation: none; }
}

/* ---- 7. Ops mini-row (Specials Control) — clearer active emphasis ---- */
.ops-mini-row {
    transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.ops-mini-row:hover { border-color: rgba(201, 154, 74, 0.20); }
.ops-mini-pill { transition: background 200ms ease, color 200ms ease, box-shadow 200ms ease; }
.ops-mini-pill.is-on {
    box-shadow: 0 0 0 1px rgba(74, 180, 120, 0.22), 0 4px 10px -6px rgba(74, 180, 120, 0.35);
}
.ops-mini-btn {
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 80ms ease;
}
.ops-mini-btn:active { transform: translateY(1px); }
.ops-mini-btn:focus-visible {
    outline: 2px solid var(--shell-gold);
    outline-offset: 2px;
    background: #f6f1e4;
}

/* ---- 8. Today Status tiles — subtle live emphasis ---- */
.ops-status-tile {
    transition: transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 160ms ease, border-color 160ms ease;
}
.ops-status-tile:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px -14px rgba(20, 18, 10, 0.22);
    border-color: rgba(201, 154, 74, 0.16);
}
.ops-status-value {
    transition: color 200ms ease;
}

/* ---- 9. Buttons — clearer focus + tactile press ---- */
.btn {
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease,
                box-shadow 140ms ease, transform 80ms ease;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible {
    outline: 2px solid var(--shell-gold);
    outline-offset: 2px;
}
.btn-primary {
    box-shadow: 0 4px 12px -8px rgba(201, 154, 74, 0.45);
}
.btn-primary:hover {
    box-shadow: 0 6px 16px -8px rgba(201, 154, 74, 0.55);
}

/* ---- 10. Pills — gentler transition ---- */
.pill { transition: background 180ms ease, color 180ms ease; }

/* ---- 11. Special-card edit/clear buttons — focus rings ---- */
.shell .special-card .sp-actions .btn:focus-visible {
    outline: 2px solid var(--shell-gold);
    outline-offset: 2px;
}

/* ---- 12. Refresh button — subtle pulse on click ---- */
@keyframes ops-refresh-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.btn#btn-refresh:active { transform: translateY(1px); }

/* ---- 13. List rows (today / upcoming / promo) — hover ---- */
.list li {
    transition: background 140ms ease, border-color 140ms ease;
    border-radius: 8px;
    margin: 0 -8px;
    padding: 12px 8px;
}
.list li:hover { background: rgba(232, 185, 116, 0.06); }
.list .empty:hover { background: transparent; }

/* ---- 14. Audit list — subtle hover ---- */
.audit-list li {
    transition: background 140ms ease;
    border-radius: 6px;
    margin: 0 -6px;
    padding: 10px 6px;
}
.audit-list li:hover { background: rgba(20, 18, 10, 0.03); }

/* ---- 15. Ops band — depth on the band itself ---- */
.ops-band {
    box-shadow: 0 1px 0 rgba(20, 18, 10, 0.02), 0 12px 32px -24px rgba(20, 18, 10, 0.10);
}

/* ---- 16. Brand row — micro-tighten ---- */
.brand { transition: opacity 120ms ease; }

/* ---- 17. Reduced-motion override — zero out hover transforms ---- */
@media (prefers-reduced-motion: reduce) {
    .stat-card:hover,
    .ops-card:hover,
    .ops-status-tile:hover,
    .quick-action:hover,
    .ops-toggle:active,
    .ops-mini-btn:active,
    .nav-item:active,
    .btn:active,
    .quick-action:active { transform: none; }
}

/* ---- 18. Specials Control row — protect body from squash ----
   When the `Edit/Izmijeni/Изменить` button is wider than EN ("Edit"),
   `flex: 1; min-width: 0` on .ops-mini-body collapsed to ~25px and the
   value text broke per-character due to overflow-wrap: anywhere
   (which is needed for actual long dish IDs). Give body a sensible
   floor and let the row wrap so the button drops to a new line when
   it doesn't fit alongside body + pill. */
.ops-mini-row {
    align-items: center;
    row-gap: 8px;
}
.ops-mini-body {
    flex: 1 1 110px;
    min-width: 110px;
}

/* ============================================================
   END STAGE C1 — LIVE HORECA FEEL
   ============================================================ */

/* ============================================================
   STAGE C2 — VISUAL DENSITY + PREMIUM HORECA UI
   (append-only, 2026-04-30)

   Goal: collapse the airy "marketing-card" feel and make the
   admin read as a packed horeca terminal. Every change here
   either tightens whitespace, adds a hairline that visually
   binds elements, or pushes typography toward terminal/POS
   rhythm (tabular-nums, uppercase eyebrows, 5px accent rails).

   Scope:
     1. KPI strip — denser, terminal numbers, live pulse on first tile
     2. Ops band — tighter paddings/gaps, denser rows
     3. Sidebar — POS-grade active rail + gold halo, section dividers
     4. Panel — hairline under .panel h2 for section binding
     5. Form inputs — unified focus ring + radius
     6. Analytics — uppercase tabular table heads, alt-row stripes,
        denser funnel rows with gradient bars
     7. Micro polish — premium shadow rhythm

   No JS, no template changes. Rollback = remove this block.
   ============================================================ */

/* ============ 1. KPI STRIP — TERMINAL ============ */
.stat-card {
    padding: 18px 20px 20px;
    min-height: 122px;
    border-top-width: 5px;
    background: linear-gradient(180deg, #ffffff 0%, #fcfaf3 100%);
    position: relative;
    gap: 4px;
}
.stat-card .stat-label {
    font-size: 10.5px;
    letter-spacing: 0.22em;
    color: #807967;
    font-weight: 700;
}
.stat-card .stat-value {
    font-size: 44px;
    line-height: 0.96;
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
    color: #1d1d22;
}
.stat-card .stat-meta {
    font-size: 11.5px;
    color: #a39c89;
    font-variant-numeric: tabular-nums;
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--shell-line-soft, #efeadd);
}

/* Live-data pulse dot in top-right of the first stat card.
   Symbolises "data is live" without copy. */
.stat-card.accent-free::before {
    content: "";
    position: absolute;
    top: 14px;
    right: 18px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--shell-green);
    box-shadow: 0 0 0 0 rgba(74, 180, 120, 0.55);
    animation: ops-live-pulse-green 2.0s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
    .stat-card.accent-free::before { animation: none; box-shadow: none; }
}

/* ============ 2. OPS BAND — DENSER ============ */
.ops-band {
    padding: 22px 22px 24px;
    margin: 6px 0 22px;
}
.ops-band-head {
    padding-bottom: 16px;
    margin-bottom: 16px;
    gap: 4px;
}
.ops-band-title { font-size: 28px; }
.ops-band-tagline { margin-top: 3px; font-size: 13px; }

.ops-grid { gap: 14px; }
.ops-card {
    padding: 22px 20px 20px;
    gap: 14px;
    border-top-width: 4px;
}
.ops-card-head {
    padding-bottom: 12px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--shell-line-soft, #efeadd);
}
.ops-card-eyebrow { font-size: 10.5px; letter-spacing: 0.24em; }
.ops-card-title { font-size: 18px; }
.ops-card-sub { font-size: 12.5px; }

.ops-toggle-list { gap: 7px; }
.ops-toggle {
    min-height: 62px;
    padding: 11px 14px;
}
.ops-toggle-name { font-size: 14.5px; }
.ops-toggle-meta { font-size: 12px; }

.ops-mini-list { gap: 7px; }
.ops-mini-row {
    min-height: 70px;
    padding: 11px 14px;
}
.ops-mini-dot { height: 40px; }
.ops-mini-value { font-size: 16px; line-height: 1.25; }

.ops-status-grid {
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.ops-status-tile {
    padding: 18px 18px 18px 22px;
    min-height: 128px;
    gap: 4px;
}
.ops-status-tile::before { width: 4px; }
.ops-status-label { font-size: 10.5px; letter-spacing: 0.22em; }
.ops-status-value { font-size: 38px; line-height: 1.0; font-variant-numeric: tabular-nums; }
.ops-status-meta { font-size: 12px; }

/* ============ 3. SIDEBAR — POS-GRADE ============ */
.shell-sidebar {
    background: linear-gradient(180deg, #1e1e25 0%, #131319 50%, #0f0f15 100%);
    box-shadow: inset -1px 0 0 #27272f;
    padding: 22px 14px 26px;
}
.brand {
    padding: 4px 10px 18px;
    margin-bottom: 4px;
    border-bottom: 1px solid #26262d;
}
.brand-name { letter-spacing: 0.24em; color: #f8f1d9; }
.brand-tag { color: #c99a4a; }

.admin-lang-switch {
    background: rgba(0, 0, 0, 0.30);
    border: 1px solid #25252b;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}
.admin-lang-switch button {
    color: #8a8473;
    font-weight: 600;
    transition: color 140ms ease, background 140ms ease;
}
.admin-lang-switch button.active,
.admin-lang-switch button[aria-pressed="true"] {
    color: #1c1c22;
    background: linear-gradient(180deg, #e7c374 0%, #c99a4a 100%);
    box-shadow: 0 2px 8px -4px rgba(201, 154, 74, 0.50);
}

.nav-section {
    margin: 22px 8px 8px;
    padding: 0 4px 8px;
    border-bottom: 1px solid #1e1e25;
    font-size: 10.5px;
    letter-spacing: 0.26em;
    color: #6e6753;
}
.nav-list { padding: 4px 0 0; }

.nav-item {
    margin: 1px 0;
    padding: 12px 13px;
    color: #d1cab9;
    transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.nav-item:hover:not(.active) {
    background: rgba(232, 185, 116, 0.08);
    color: #f5efde;
}
.nav-item.active {
    background: linear-gradient(90deg, rgba(232, 185, 116, 0.20) 0%, rgba(201, 154, 74, 0.05) 100%);
    color: #fbf5e1;
    box-shadow: inset 4px 0 0 var(--shell-gold),
                inset 0 0 0 1px rgba(201, 154, 74, 0.22),
                0 6px 16px -10px rgba(201, 154, 74, 0.32);
}
.nav-item .nav-badge {
    font-size: 9.5px;
    letter-spacing: 0.14em;
    padding: 2px 8px;
    background: #2c2c33;
    color: #b6ad9a;
    border-radius: 999px;
}
.nav-item .nav-badge.soon { background: #38301f; color: var(--shell-gold-soft, #d6b376); }

.sidebar-foot {
    margin-top: auto;
    padding: 14px 14px 0;
    border-top: 1px solid #26262d;
    color: #6e6757;
}
.shell-sidebar { display: flex; flex-direction: column; }

/* ============ 4. PANEL HEADING — HAIRLINE BIND ============ */
.panel h2 {
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--shell-line-soft, #efeadd);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    line-height: 1.3;
}
.panel h2 .panel-action,
.panel h2 .chip {
    flex-shrink: 0;
    font-weight: 600;
}

/* ============ 5. FORM INPUTS — UNIFIED ============ */
.shell input[type="text"],
.shell input[type="date"],
.shell input[type="time"],
.shell input[type="number"],
.shell input[type="email"],
.shell input[type="password"],
.shell input[type="tel"],
.shell input[type="url"],
.shell select,
.shell textarea {
    background: #ffffff;
    border: 1px solid var(--shell-line);
    border-radius: 9px;
    transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
.shell input:focus,
.shell select:focus,
.shell textarea:focus {
    outline: none;
    border-color: var(--shell-gold);
    box-shadow: 0 0 0 3px rgba(201, 154, 74, 0.12);
}
.shell input:hover:not(:focus),
.shell select:hover:not(:focus),
.shell textarea:hover:not(:focus) {
    border-color: rgba(201, 154, 74, 0.35);
}

/* ============ 6. ANALYTICS — TERMINAL TABLES ============ */
.shell .kv-table {
    font-variant-numeric: tabular-nums;
    border-collapse: collapse;
    width: 100%;
}
.shell .kv-table thead th {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #807967;
    padding: 10px 10px 8px;
    border-bottom: 1.5px solid var(--shell-line);
    text-align: left;
    background: transparent;
}
.shell .kv-table thead th.num { text-align: right; }
.shell .kv-table tbody td {
    padding: 9px 10px;
    border-bottom: 1px solid #f1eddf;
    font-size: 12.5px;
    color: #1d1d22;
}
.shell .kv-table tbody td.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: #807967;
}
.shell .kv-table tbody tr:nth-child(even) td {
    background: rgba(232, 185, 116, 0.04);
}
.shell .kv-table tbody tr:hover td {
    background: rgba(232, 185, 116, 0.10);
}
.shell .kv-table tbody tr:last-child td { border-bottom: none; }

/* Analytics funnel rows — denser, gradient bar */
.shell .funnel-row {
    padding: 9px 0;
    border-bottom: 1px solid #f1eddf;
    align-items: center;
    gap: 12px;
}
.shell .funnel-row:last-child { border-bottom: none; }
.shell .funnel-row .f-name {
    flex: 0 1 160px;
    min-width: 0;
    font-size: 13px;
    font-weight: 500;
    color: #1d1d22;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.shell .funnel-row .f-bar {
    height: 8px;
    background: #f1eddf;
    border-radius: 4px;
    flex: 1;
    min-width: 60px;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(20, 18, 10, 0.04);
}
.shell .funnel-row .f-bar > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #4ab478 0%, #58c285 100%);
    box-shadow: 0 0 6px rgba(74, 180, 120, 0.30);
}
.shell .funnel-row .f-count,
.shell .funnel-row .f-drop {
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
    flex: 0 0 auto;
}
.shell .funnel-row .f-count { color: #1d1d22; min-width: 64px; text-align: right; }
.shell .funnel-row .f-drop { color: #c96060; min-width: 64px; text-align: right; }

/* Analytics page header — slightly denser */
body.an-loaded .shell-head h1,
.shell-main h1 { letter-spacing: -0.005em; }

/* ============ 7. PANEL SHADOWS — PREMIUM RHYTHM ============ */
.panel {
    box-shadow: 0 1px 0 rgba(20, 18, 10, 0.02),
                0 4px 14px -10px rgba(20, 18, 10, 0.10);
    transition: box-shadow 200ms ease, border-color 200ms ease;
}
.panel:hover {
    box-shadow: 0 1px 0 rgba(20, 18, 10, 0.02),
                0 8px 22px -14px rgba(20, 18, 10, 0.14);
}

.stat-card {
    box-shadow: 0 1px 0 rgba(20, 18, 10, 0.02),
                0 6px 16px -12px rgba(20, 18, 10, 0.10);
}

.ops-card {
    box-shadow: 0 1px 0 rgba(20, 18, 10, 0.02),
                0 6px 18px -14px rgba(20, 18, 10, 0.12);
}

/* ============ 8. SHELL HEAD — DENSER ============ */
.shell-head {
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--shell-line-soft, #efeadd);
}
.shell-head .shell-sub { font-size: 13px; color: #807967; }
.shell-head h1 { font-size: 28px; line-height: 1.12; }

/* ============ 9. RESPONSIVE TIGHTENING ============ */
@media (max-width: 960px) {
    .stat-card { padding: 16px 16px 16px; min-height: 110px; }
    .stat-card .stat-value { font-size: 36px; }
    .stat-card.accent-free::before { top: 12px; right: 14px; }
    .ops-band { padding: 18px 16px 18px; }
    .ops-band-head { padding-bottom: 12px; margin-bottom: 14px; }
    .ops-band-title { font-size: 24px; }
    .ops-card { padding: 18px 16px 16px; }
    .ops-card-head { padding-bottom: 10px; }
    .ops-card-title { font-size: 17px; }
    .ops-status-tile { padding: 16px 16px 16px 20px; min-height: 116px; }
    .ops-status-value { font-size: 32px; }
    .panel h2 { font-size: 15px; padding-bottom: 10px; margin-bottom: 12px; }
    .nav-section { margin: 16px 8px 6px; padding-bottom: 6px; }
    .nav-item.active { box-shadow: inset 4px 0 0 var(--shell-gold), inset 0 0 0 1px rgba(201, 154, 74, 0.22); }
}
@media (max-width: 480px) {
    .stat-card .stat-value { font-size: 30px; }
    .ops-band-title { font-size: 22px; }
    .ops-status-value { font-size: 28px; }
    .panel h2 { font-size: 14.5px; }
}

/* ============================================================
   END STAGE C2 — VISUAL DENSITY + PREMIUM HORECA UI
   ============================================================ */

/* ============================================================
   STAGE F2 — OPS HONESTY PILLS (append-only, 2026-04-30)
   Scope: /admin/dashboard Quick Operations panel.
   New visual states for rows that aren't togglable controls:
     .is-preview  — "Coming soon" row (Pricing card, Peak hours)
     .is-na       — "Not configured" row (4/5 Telegram channels)
     .is-real     — "Active" row (Reservation alerts) + promo count
   The non-interactive rows (.ops-toggle--preview, --real, --na)
   strip cursor/hover so they don't read as buttons.
   Append-only — no rule above is redefined. Rollback = remove block.
   ============================================================ */

/* Container rows lose their button affordance. */
.ops-toggle--preview,
.ops-toggle--real,
.ops-toggle--na {
    cursor: default;
}
.ops-toggle--preview:hover,
.ops-toggle--real:hover,
.ops-toggle--na:hover {
    background: inherit;
    border-color: inherit;
    transform: none;
}
.ops-toggle--preview .ops-toggle-name,
.ops-toggle--na .ops-toggle-name { opacity: 0.85; }
.ops-toggle--preview .ops-toggle-meta,
.ops-toggle--na .ops-toggle-meta { opacity: 0.7; }

/* Preview pill — soft amber, reads as "in flight" but not an ON/OFF state. */
.ops-toggle-pill.is-preview,
.ops-mini-pill.is-preview {
    background: linear-gradient(180deg, #fff2cb 0%, #f1d895 100%);
    color: #6b4b1f;
    box-shadow: 0 0 0 1px rgba(201, 154, 74, 0.30);
    letter-spacing: 0.10em;
    min-width: 96px;
}

/* Not-configured pill — quiet grey, reads as "not wired", neither ON nor OFF. */
.ops-toggle-pill.is-na,
.ops-mini-pill.is-na {
    background: #ece6d4;
    color: #8a8167;
    box-shadow: 0 0 0 1px rgba(20, 18, 10, 0.06);
    letter-spacing: 0.10em;
    min-width: 110px;
}

/* Real-active pill — green; only used for things that genuinely run. */
.ops-toggle-pill.is-real,
.ops-mini-pill.is-real {
    background: linear-gradient(180deg, #b9e0a7 0%, #6fa75d 100%);
    color: #1a3308;
    box-shadow: 0 0 0 1px rgba(79, 141, 68, 0.45);
    letter-spacing: 0.10em;
    min-width: 76px;
}

/* Today Status — Peak hours preview tile reads quietly so the eye still
   lands on the four real numbers first. */
.ops-status-tile--preview .ops-status-value--preview {
    font-size: 14px;
    color: #6b4b1f;
    letter-spacing: 0.04em;
    font-weight: 600;
    opacity: 0.9;
}
.ops-status-tile--preview .ops-status-meta { opacity: 0.7; }

/* Card-level "preview" hint — pricing card subhead reads in muted gold. */
.ops-card--preview .ops-card-sub { color: #6b4b1f; opacity: 0.85; }

/* Phone breakpoint: keep pills compact but readable. */
@media (max-width: 720px) {
    .ops-toggle-pill.is-preview,
    .ops-toggle-pill.is-na { min-width: 84px; font-size: 10px; }
    .ops-toggle-pill.is-real { min-width: 64px; font-size: 10px; }
}
/* ============================================================
   END STAGE F2 — OPS HONESTY PILLS
   ============================================================ */

/* ============================================================
   STAGE F4 — SCENES ADMIN (append-only, 2026-04-30)
   Scope: /admin/scenes (.page-admin-scenes / .sc-admin selectors).
   Append-only — no rule above is redefined. Rollback = remove block.
   ============================================================ */

.page-admin-scenes .shell-main { padding-bottom: 80px; }

/* Tab strip — visually mirrors .res-filter chips on /admin/reservations. */
.sc-admin {
    background: var(--shell-paper, #fff);
    border: 1px solid var(--shell-line, #e8e3d6);
    border-radius: var(--shell-radius, 14px);
    padding: 18px 20px;
    box-shadow: 0 1px 0 rgba(20,18,10,0.04), 0 14px 30px -22px rgba(20,18,10,0.18);
}
.sc-admin-tabs {
    display: flex;
    gap: 6px;
    background: #f5f4ef;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 14px;
}
.sc-tab {
    flex: 1;
    min-height: 44px;
    border: none;
    background: transparent;
    color: #6b4b1f;
    padding: 10px 12px;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
}
.sc-tab.is-active {
    background: #1a1a1e;
    color: #f4efe6;
    box-shadow: 0 4px 14px rgba(20,18,10,0.18);
}

.sc-admin-status {
    min-height: 22px;
    margin-bottom: 12px;
    font-size: 12.5px;
    color: var(--shell-text-soft, #807967);
    letter-spacing: 0.04em;
}
.sc-admin-status[data-kind="ok"]  { color: #4f8d44; }
.sc-admin-status[data-kind="err"] { color: #b5505b; }

.sc-admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 16px;
}
@media (max-width: 1100px) {
    .sc-admin-grid { grid-template-columns: 1fr; }
}

.sc-admin-card {
    background: #fafaf6;
    border: 1px solid var(--shell-line, #e8e3d6);
    border-radius: var(--shell-radius, 14px);
    padding: 16px 18px;
    min-width: 0;
}
.sc-admin-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.sc-admin-card-head h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--shell-text-soft, #807967);
}

.sc-active-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #1d1d22;
    cursor: pointer;
}
.sc-active-toggle input[type="checkbox"] {
    width: 18px; height: 18px;
}

.sc-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 12px;
}
@media (max-width: 720px) {
    .sc-form-grid { grid-template-columns: 1fr 1fr; }
}
/* G1 — phone needs single column for the scene-meta form. The 1fr 1fr
   above runs out of room at ≤500 px (date+time inputs are ~150 px each
   plus padding), causing horizontal overflow. */
@media (max-width: 500px) {
    .sc-form-grid { grid-template-columns: 1fr; }
}
.sc-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #6b4b1f;
    min-width: 0;
}
.sc-field small {
    font-size: 10px;
    color: #b5a98a;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-left: 6px;
}
.sc-field input,
.sc-field select {
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--shell-line, #e3d9c4);
    border-radius: 8px;
    background: #fff;
    color: #1d1d22;
    font: inherit;
    font-size: 13px;
}
.sc-field input:focus,
.sc-field select:focus {
    outline: none;
    border-color: #c99a4a;
    box-shadow: 0 0 0 3px rgba(201, 154, 74, 0.18);
}
.sc-field-full { grid-column: 1 / -1; }

/* Slot rows — one row per role. */
.sc-slot-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sc-slot-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--shell-line, #e3d9c4);
    border-radius: 10px;
    padding: 12px 14px;
}
.sc-slot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 12px;
    min-width: 0;
}
@media (max-width: 720px) {
    .sc-slot-grid { grid-template-columns: 1fr 1fr; }
}
/* G1 — same: phone needs single column for slot-grid (3 inputs per slot
   plus a fallback-sources textbox that runs full-width). */
@media (max-width: 500px) {
    .sc-slot-grid { grid-template-columns: 1fr; }
}
.sc-slot-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
    justify-content: center;
}
.sc-slot-actions button {
    min-width: 36px;
    min-height: 36px;
    border: 1px solid var(--shell-line, #e3d9c4);
    background: #fafaf6;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #6b4b1f;
}
.sc-slot-actions button:hover { background: #fdfaf2; }
.sc-slot-remove { color: #b5505b; }
.sc-slot-remove:hover { background: #fdf2f2; }

/* Sticky action bar at the bottom on phones so Save stays in reach. */
.sc-admin-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--shell-line, #e8e3d6);
}
@media (max-width: 720px) {
    .sc-admin-actions {
        position: sticky;
        bottom: 0;
        background: var(--shell-paper, #fff);
        margin: 16px -20px -18px;
        padding: 14px 20px max(14px, env(safe-area-inset-bottom));
        border-top: 1px solid var(--shell-line, #e8e3d6);
        z-index: 5;
    }
}
.sc-admin-actions .btn { min-height: 44px; }

/* Phone tweaks for /scenario hero — keep desktop unchanged. */
@media (max-width: 720px) {
    .sc-hero-bg { display: none !important; }
}

/* /scenario public hero block (rendered by scenario.js when /scenario/data
   succeeds). Hidden by default; scenario.js sets style.backgroundImage and
   reveals it. Premium dark-on-photo treatment. */
.sc-hero-bg {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 5;
    border-radius: var(--radius, 14px);
    background-size: cover;
    background-position: center;
    background-color: #1c1c22;
    margin: 12px 0 6px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}
.sc-hero-bg::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(11,11,13,0.20) 0%, rgba(11,11,13,0.78) 100%);
    pointer-events: none;
}

/* ============================================================
   END STAGE F4 — SCENES ADMIN
   ============================================================ */

/* ============================================================
   STAGE F5 — PROMOTIONS ADMIN (append-only, 2026-04-30)
   Scope: /admin/promotions (.page-admin-promotions / .pr- selectors).
   Append-only — no rule above is redefined. Rollback = remove block.
   ============================================================ */
.page-admin-promotions .shell-main { padding-bottom: 60px; }

/* Feature-flag banner — persistent header that explains why prices may
   not have moved yet. Two visual states tied to data-state on the host
   element, written by the inline JS. */
.pr-flag-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.45;
}
.pr-flag-banner[data-state="off"] {
    background: #fff7e6;
    border: 1px solid #f0c453;
    color: #6b4b1f;
}
.pr-flag-banner[data-state="on"] {
    background: #e8f5e3;
    border: 1px solid #6fa75d;
    color: #1a3308;
}
.pr-flag-state {
    flex-shrink: 0;
    padding: 4px 10px;
    background: rgba(255,255,255,0.55);
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.14em;
    font-size: 11px;
    text-transform: uppercase;
}

.pr-status {
    min-height: 22px;
    margin-bottom: 8px;
    font-size: 12.5px;
    color: var(--shell-text-soft, #807967);
}
.pr-status[data-kind="ok"]  { color: #4f8d44; }
.pr-status[data-kind="err"] { color: #b5505b; }

.pr-list-wrap {
    background: var(--shell-paper, #fff);
    border: 1px solid var(--shell-line, #e8e3d6);
    border-radius: var(--shell-radius, 14px);
    padding: 16px 18px;
}
.pr-list-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--shell-text-soft, #807967);
}
.pr-list-count {
    background: #1a1a1e;
    color: #f6d99a;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.05em;
}
.pr-list { display: flex; flex-direction: column; gap: 10px; }
.pr-empty {
    padding: 28px 14px;
    color: var(--shell-text-soft, #807967);
    text-align: center;
    font-style: italic;
}

/* Per-promotion row */
.pr-row {
    background: #fafaf6;
    border: 1px solid var(--shell-line, #e3d9c4);
    border-radius: 12px;
    padding: 12px 14px;
}
.pr-row[data-state="live"] {
    background: linear-gradient(180deg, #f3fbef 0%, #ecf6e7 100%);
    border-color: #b9e0a7;
}
.pr-row[data-state="off"] { opacity: 0.62; }

.pr-row-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.pr-row-badge {
    flex-shrink: 0;
    background: linear-gradient(180deg, #ecc384 0%, #c99a4a 100%);
    color: #1a1306;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.04em;
    min-width: 56px;
    text-align: center;
}
.pr-row-name { font-size: 15px; font-weight: 700; color: #1d1d22; }
.pr-row-id   { font-size: 11px; color: #8a7a4f; letter-spacing: 0.06em; font-family: 'JetBrains Mono', monospace; }
.pr-row-pill {
    margin-left: auto;
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.10em;
}
.pr-row-pill[data-state="live"]      { background: linear-gradient(180deg, #b9e0a7 0%, #6fa75d 100%); color: #1a3308; }
.pr-row-pill[data-state="scheduled"] { background: #e6eef8; color: #2e4a73; }
.pr-row-pill[data-state="off"]       { background: #ece6d4; color: #807967; }

.pr-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 8px;
    font-size: 12.5px;
    color: #4d4538;
}
.pr-row-meta > span { letter-spacing: 0.04em; }
.pr-row-discount    { font-weight: 700; color: #b5505b; }
.pr-row-window      { color: #4d4538; }
.pr-row-days        { color: #6b4b1f; }
.pr-row-dates       { color: #8a7a4f; }
.pr-row-scope {
    margin-top: 6px;
    font-size: 12px;
    color: #6b4b1f;
    font-family: 'JetBrains Mono', monospace;
}
.pr-row-scope--empty { color: #b5505b; font-style: italic; font-family: inherit; }
.pr-row-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
.pr-row-actions .btn { min-height: 38px; }

/* Modal — same visual language as the specials modal on /admin/dashboard. */
.pr-modal-back {
    position: fixed;
    inset: 0;
    background: rgba(11,11,13,0.78);
    z-index: 9000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 24px;
}
.pr-modal-back[hidden] { display: none; }
.pr-modal {
    background: var(--shell-paper, #fff);
    border-radius: 16px;
    width: 100%;
    max-width: 720px;
    margin-top: 5vh;
    box-shadow: 0 18px 50px rgba(0,0,0,0.45);
    padding: 22px 24px 16px;
    color: #1d1d22;
}
.pr-modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.pr-modal-head h2 { margin: 0; font-size: 17px; font-weight: 700; }
.pr-modal-close {
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    color: var(--shell-text-soft, #807967);
    padding: 0 4px;
}

.pr-section {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0ebd8;
}
.pr-section:last-of-type { border-bottom: none; }
.pr-section-h {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--shell-text-soft, #807967);
    margin-bottom: 10px;
}

.pr-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 12px;
}
@media (max-width: 720px) { .pr-grid { grid-template-columns: 1fr 1fr; } }
.pr-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #6b4b1f;
    min-width: 0;
}
.pr-field small {
    font-size: 10px;
    color: #b5a98a;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-left: 6px;
    font-weight: normal;
}
.pr-field input,
.pr-field select {
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--shell-line, #e3d9c4);
    border-radius: 8px;
    background: #fff;
    color: #1d1d22;
    font: inherit;
    font-size: 13px;
}
.pr-field-full { grid-column: 1 / -1; }
.pr-field-active {
    align-self: end;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}
.pr-field-active input { width: 22px; height: 22px; }
.pr-hint { color: #8a7a4f; font-size: 11px; margin-top: 2px; }
.pr-hint-block { display: block; margin-top: 6px; }

.pr-days-field { border: none; padding: 0; }
.pr-days-field legend { font-size: 12px; color: #6b4b1f; padding: 0 0 4px; }
.pr-days {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}
.pr-days label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #1d1d22;
}

.pr-form-error {
    background: #fdf2f2;
    border: 1px solid #b5505b;
    color: #8b3540;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 13px;
}

.pr-modal-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid #f0ebd8;
}
.pr-modal-actions .btn { min-height: 44px; }
/* ============================================================
   END STAGE F5 — PROMOTIONS ADMIN
   ============================================================ */

/* ============================================================
   STAGE F6 — TELEGRAM SETTINGS ADMIN (append-only, 2026-04-30)
   Scope: /admin/telegram. Append-only. Rollback = remove block.
   ============================================================ */
.page-admin-telegram .shell-main { padding-bottom: 60px; }

.tg-bot-state {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; border-radius: 12px; margin-bottom: 14px;
    background: #fafaf6; border: 1px solid var(--shell-line, #e8e3d6);
    font-size: 13px;
}
.tg-bot-state-pill {
    flex-shrink: 0;
    padding: 4px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 800; letter-spacing: 0.14em;
    text-transform: uppercase;
}
.tg-bot-state-pill[data-state="on"]  { background: linear-gradient(180deg, #b9e0a7 0%, #6fa75d 100%); color: #1a3308; }
.tg-bot-state-pill[data-state="off"] { background: #ece6d4; color: #807967; }

.tg-status { min-height: 22px; margin-bottom: 8px; font-size: 12.5px; color: var(--shell-text-soft, #807967); }
.tg-status[data-kind="ok"]  { color: #4f8d44; }
.tg-status[data-kind="err"] { color: #b5505b; }

.tg-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 1100px) { .tg-grid { grid-template-columns: 1.4fr 1fr; } }

.tg-card {
    background: var(--shell-paper, #fff);
    border: 1px solid var(--shell-line, #e8e3d6);
    border-radius: var(--shell-radius, 14px);
    padding: 16px 20px;
}
.tg-card-head { margin-bottom: 12px; }
.tg-card-head h2 {
    margin: 0 0 4px;
    font-size: 13px; font-weight: 800; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--shell-text-soft, #807967);
}
.tg-card-sub {
    margin: 0; font-size: 12.5px; color: #6b4b1f;
}

/* Alert rows */
.tg-row-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tg-row {
    display: grid;
    grid-template-columns: 32px 1fr auto auto;
    gap: 10px 14px;
    align-items: center;
    padding: 12px 14px;
    background: #fafaf6;
    border: 1px solid var(--shell-line, #e3d9c4);
    border-radius: 12px;
}
.tg-row-icon { font-size: 22px; text-align: center; }
.tg-row-body { min-width: 0; }
.tg-row-title { font-size: 14px; font-weight: 700; color: #1d1d22; }
.tg-row-meta  { font-size: 12px; color: #6b4b1f; margin-top: 2px; }
.tg-row-pill {
    flex-shrink: 0;
    padding: 4px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 800; letter-spacing: 0.10em;
    min-width: 86px; text-align: center;
}
.tg-row-pill.is-on  { background: linear-gradient(180deg, #b9e0a7 0%, #6fa75d 100%); color: #1a3308; }
.tg-row-pill.is-off { background: #ece6d4; color: #807967; }

/* iOS-style switch */
.tg-switch {
    position: relative;
    display: inline-block;
    width: 44px; height: 24px;
    flex-shrink: 0;
}
.tg-switch input { opacity: 0; width: 0; height: 0; }
.tg-switch-slider {
    position: absolute; cursor: pointer;
    inset: 0;
    background: #c8c2b1;
    border-radius: 999px;
    transition: background 0.2s;
}
.tg-switch-slider::before {
    content: ""; position: absolute;
    width: 18px; height: 18px;
    left: 3px; bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}
.tg-switch input:checked + .tg-switch-slider { background: linear-gradient(180deg, #6fa75d 0%, #4f8d44 100%); }
.tg-switch input:checked + .tg-switch-slider::before { transform: translateX(20px); }
.tg-switch input:focus-visible + .tg-switch-slider { box-shadow: 0 0 0 3px rgba(201, 154, 74, 0.32); }

/* Form fields */
.tg-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
}
@media (max-width: 600px) { .tg-form-grid { grid-template-columns: 1fr; } }
.tg-field {
    display: flex; flex-direction: column; gap: 4px;
    font-size: 12px; color: #6b4b1f; min-width: 0;
}
.tg-field input[type="number"],
.tg-field input[type="time"],
.tg-field input[type="text"] {
    min-height: 40px; padding: 8px 10px;
    border: 1px solid var(--shell-line, #e3d9c4); border-radius: 8px;
    background: #fff; color: #1d1d22; font: inherit; font-size: 13px;
}
.tg-field input[readonly] { background: #f5f4ef; color: #807967; }
.tg-field input[type="checkbox"] { width: 22px; height: 22px; }
.tg-hint { font-size: 12px; color: #8a7a4f; margin-top: 8px; }
.tg-hint code {
    background: #f0ebd8; padding: 2px 8px; border-radius: 4px;
    font-family: 'JetBrains Mono', monospace; font-size: 11.5px;
}

.tg-form-actions { margin-top: 12px; }
.tg-actions { margin-top: 16px; display: flex; justify-content: flex-end; }
.tg-actions .btn { min-height: 44px; }

/* Pending-save tone for the row pill */
.tg-row-pill.is-on[data-pending="1"] { background: linear-gradient(180deg, #ffe079 0%, #f6c440 100%); color: #2a1f08; }
/* ============================================================
   END STAGE F6 — TELEGRAM SETTINGS ADMIN
   ============================================================ */





/* ============================================================
   H2 — Admin operator UX polish (mobile drawer, FAB safe-area,
   kv-table overflow, RU label tweaks). All rules scoped so that
   .page-admin-waiter remains untouched (waiter is mobile-first
   and intentionally has no sidebar).
   ============================================================ */

/* ---------- H2-1: hamburger / drawer ---------- */
.shell-sidebar-trigger {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 70;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(20, 18, 10, 0.92);
    border: 1px solid rgba(201, 154, 74, 0.40);
    color: #f1d59b;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    align-items: center;
    justify-content: center;
    padding: 0;
}
.shell-sidebar-trigger__bars,
.shell-sidebar-trigger__bars::before,
.shell-sidebar-trigger__bars::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    position: relative;
}
.shell-sidebar-trigger__bars::before,
.shell-sidebar-trigger__bars::after {
    content: "";
    position: absolute;
    left: 0;
}
.shell-sidebar-trigger__bars::before { top: -7px; }
.shell-sidebar-trigger__bars::after  { top:  7px; }

.shell-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 55;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.shell-sidebar-close {
    display: none;
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #f1d59b;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 2;
}

@media (max-width: 1024px) {
    body:not(.page-admin-waiter) .shell-sidebar-trigger { display: inline-flex; }
    body:not(.page-admin-waiter) .shell-sidebar-close   { display: inline-flex; }

    body:not(.page-admin-waiter) .shell {
        grid-template-columns: 1fr;
        display: block;
    }
    body:not(.page-admin-waiter) .shell-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: min(86vw, 320px);
        height: 100vh;
        max-height: 100vh;
        overflow-y: auto;
        z-index: 60;
        transform: translateX(-100%);
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 8px 0 28px rgba(0, 0, 0, 0.55);
        padding-top: 56px;
    }
    body.sidebar-open:not(.page-admin-waiter) .shell-sidebar {
        transform: translateX(0);
    }
    body:not(.page-admin-waiter) .shell-sidebar-overlay {
        display: none;
    }
    body.sidebar-open:not(.page-admin-waiter) .shell-sidebar-overlay {
        display: block;
    }
    /* leave room for the hamburger above shell-head */
    body:not(.page-admin-waiter) .shell-main {
        padding-top: 64px;
    }
}

@media (min-width: 1025px) {
    .shell-sidebar-trigger,
    .shell-sidebar-close,
    .shell-sidebar-overlay { display: none !important; }
}

/* prevent body scroll while drawer is open */
body.sidebar-open { overflow: hidden; }

/* ---------- H2-7: kv-table phone overflow ---------- */
@media (max-width: 480px) {
    .kv-table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .kv-table thead,
    .kv-table tbody,
    .kv-table tr,
    .kv-table td,
    .kv-table th {
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .kv-table thead { display: none; }
    .kv-table tr {
        padding: 8px 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .kv-table td {
        padding: 2px 0;
        word-break: break-word;
    }
    .kv-table td.num { text-align: right; opacity: 0.85; font-variant-numeric: tabular-nums; }
}

/* ---------- H2-8: FAB safe-area bottom padding ---------- */
.page-admin-host       .shell-main,
.page-admin-floor      .shell-main,
.page-admin-waiter     .shell-main,
.page-admin-tables     .shell-main,
.page-admin-reservations .shell-main,
.page-admin-editor     .shell-main {
    padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
}
@media (max-width: 720px) {
    .page-admin-host       .shell-main,
    .page-admin-floor      .shell-main,
    .page-admin-waiter     .shell-main,
    .page-admin-tables     .shell-main,
    .page-admin-reservations .shell-main,
    .page-admin-editor     .shell-main {
        padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px));
    }
}

/* ---------- H2-3: reservations filter strip — keep "Все" tab readable ---------- */
.res-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
}
.res-filter .res-filter-btn {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    padding-left: 12px;
    padding-right: 12px;
    text-overflow: clip;
    overflow: visible;
}
