:root {
    --bg: #0f1419;
    --surface: #1a2332;
    --surface-2: #243044;
    --text: #f0f4f8;
    --muted: #94a3b8;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #fbbf24;
    --radius: 12px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    background: linear-gradient(180deg, #0f1419 0%, #162032 100%);
    color: var(--text);
    min-height: 100vh;
    min-height: 100dvh;
    line-height: 1.5;
    overflow-x: hidden;
}

body.is-splash-active .site-top-fixed,
body.is-splash-active .site-top-spacer,
body.is-splash-active main,
body.is-splash-active .site-footer {
    visibility: hidden;
}

img {
    max-width: 100%;
}

a {
    color: var(--accent);
    text-decoration: none;
}

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

.site-top-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 150;
    overflow: visible;
    background: rgba(15, 20, 25, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    padding-top: env(safe-area-inset-top, 0px);
}

.site-top-spacer {
    height: 5rem;
    flex-shrink: 0;
}

.site-header {
    border-bottom: none;
    background: transparent;
    position: static;
    top: auto;
    z-index: auto;
    box-shadow: none;
}

.site-header--restaurant {
    box-shadow: none;
}

.build-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.35rem 0.5rem;
    padding: 0.28rem 0.7rem;
    padding-left: max(0.55rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.55rem, env(safe-area-inset-right, 0px));
    color: var(--accent);
    background: #0c1017;
    border-bottom: 1px solid rgba(245, 158, 11, 0.28);
}

.build-banner-build {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    min-width: 0;
    justify-self: start;
    font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
}

.build-banner-label {
    color: var(--muted);
    text-transform: uppercase;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.build-banner-value {
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: baseline;
    min-width: 0;
    max-width: 100%;
}

.build-banner-clock {
    color: inherit;
    font: inherit;
}

.build-banner-sep {
    color: rgba(251, 191, 36, 0.72);
}

.build-banner-brand {
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-align: center;
    line-height: 1;
    position: relative;
    z-index: 1;
    background: #0c1017;
    padding: 0 0.35rem;
    white-space: nowrap;
}

.build-banner-contact {
    justify-self: end;
    text-align: right;
    font-size: 0.58rem;
    font-weight: 500;
    line-height: 1.25;
    color: #f0f4f8;
}

.build-banner-contact a {
    display: block;
    color: inherit;
    text-decoration: none;
}

@media (max-width: 768px), (hover: none) {
    .build-banner {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.35rem 0.65rem;
        padding-top: 0.32rem;
        padding-bottom: 0.32rem;
    }

    .build-banner-build {
        max-width: 100%;
    }

    .build-banner-brand {
        font-size: 0.72rem;
        letter-spacing: 0.08em;
        justify-self: end;
    }

    .build-banner-contact {
        display: none;
    }
}

@media (hover: hover) and (pointer: fine) {
    .site-top-fixed {
        backdrop-filter: blur(8px);
        background: rgba(15, 20, 25, 0.94);
    }
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.75rem 0;
}

.header-inner--guest {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 0.6rem;
    row-gap: 0.4rem;
    padding: 0.5rem 0;
}

.header-inner--guest .site-nav {
    grid-column: 1 / -1;
}

.header-inner--guest .guest-app-menu {
    margin-top: 0.15rem;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    color: var(--text);
    text-decoration: none;
}

.brand-block:hover .brand-name {
    color: var(--accent);
}

.brand-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.brand-logo--fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.15rem;
    font-weight: 800;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.brand-name {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-meta {
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 500;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
}

.site-header nav,
.site-nav {
    display: flex;
    gap: 1rem;
}

.site-header nav a {
    color: var(--muted);
    font-weight: 500;
}

.site-header nav a:hover {
    color: var(--text);
}

main.container {
    padding: 1.25rem 0 calc(6.5rem + env(safe-area-inset-bottom, 0px));
}

body.has-compare-bar main.container {
    padding-bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px));
}

body.has-order-bar main.container {
    padding-bottom: calc(10rem + env(safe-area-inset-bottom, 0px));
}

body.has-order-bar.has-compare-bar main.container {
    padding-bottom: calc(12.5rem + env(safe-area-inset-bottom, 0px));
}

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.footer-info-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: 1px solid rgba(245, 158, 11, 0.45);
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.footer-tagline {
    margin: 0.65rem 0 0;
}

.footer-info-modal {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.footer-info-modal.hidden {
    display: none !important;
}

html.footer-info-open {
    overflow: hidden;
}

.footer-info-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
}

.footer-info-card {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: min(80dvh, 80vh);
    overflow-y: auto;
    background: var(--surface);
    border-radius: 18px 18px 0 0;
    padding: 1.1rem 1.2rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
}

.footer-info-close {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.footer-info-card h2 {
    margin: 0 2.5rem 0.85rem 0;
    color: var(--text);
    font-size: 1.15rem;
}

.footer-info-list {
    list-style: none;
    margin: 0 0 0.85rem;
    padding: 0;
    color: var(--text);
}

.footer-info-list li {
    display: grid;
    gap: 0.1rem;
    padding: 0.55rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.95rem;
}

.footer-info-list span {
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.hero {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-title-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
    min-width: 0;
    width: 100%;
}

.hero h1,
.hero-title-row h1 {
    margin: 0;
    font-size: clamp(1.05rem, 4.8vw, 1.85rem);
    white-space: nowrap;
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-title-row .hero-info-btn,
.hero-title-row .footer-info-btn {
    flex-shrink: 0;
}

.guest-app-menu {
    position: relative;
    z-index: 40;
    flex-shrink: 0;
}

.guest-app-menu--header {
    z-index: 160;
}

.guest-app-menu--header .guest-app-menu-panel {
    left: auto;
    right: 0;
}

.guest-app-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(245, 158, 11, 0.45);
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.guest-app-menu-btn[aria-expanded="true"] {
    background: var(--accent);
    color: #0f1419;
    border-color: var(--accent);
}

.guest-app-menu-panel {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    min-width: 12.75rem;
    padding: 0.35rem;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

body > .guest-app-menu-panel {
    position: fixed;
    z-index: 500;
    max-width: min(18rem, calc(100vw - 1.25rem));
    max-height: min(80dvh, calc(100dvh - env(safe-area-inset-top, 0px) - 4rem));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.guest-app-menu-sep {
    height: 1px;
    margin: 0.3rem 0.4rem;
    background: rgba(255, 255, 255, 0.1);
}

.guest-app-menu-panel[hidden] {
    display: none !important;
}

.guest-app-menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0.7rem 0.85rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    min-height: 44px;
}

.guest-app-menu-item:hover,
.guest-app-menu-item:focus-visible {
    background: rgba(245, 158, 11, 0.16);
    color: var(--accent);
}

.hero-lede {
    margin-top: 0.5rem;
}

.hero p,
.hero-lede p {
    color: var(--muted);
    margin: 0;
}

.hero-diagnostic {
    margin: 0.75rem 0 0;
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    font-size: 0.82rem;
    color: var(--accent);
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.menu-section {
    margin-bottom: 2.5rem;
}

.menu-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.accordion-item {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.accordion-trigger {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    border: none;
    background: var(--surface);
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    min-height: 56px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background 0.2s;
}

.accordion-trigger:hover,
.accordion-trigger:focus-visible {
    background: rgba(255, 255, 255, 0.04);
    outline: none;
}

.accordion-item.is-open .accordion-trigger {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(245, 158, 11, 0.06);
}

.accordion-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.accordion-cat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    flex-shrink: 0;
    border: 1.5px solid var(--accent);
    border-radius: 50%;
    color: var(--accent);
    background: rgba(245, 158, 11, 0.06);
}

.accordion-cat-svg {
    width: 1.2rem;
    height: 1.2rem;
    display: block;
}

.accordion-cat-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.accordion-accent {
    width: 3px;
    height: 1.35em;
    border-radius: 999px;
    background: var(--accent);
    flex-shrink: 0;
}

.accordion-meta {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.accordion-meta-label {
    margin-left: 0.2rem;
}

.accordion-meta.has-fraction .accordion-meta-visible {
    color: var(--accent);
    font-weight: 700;
}

.accordion-meta-full {
    color: var(--muted);
    font-weight: 600;
}

.accordion-item.has-category-selection .accordion-trigger {
    border-color: rgba(245, 158, 11, 0.22);
}

.accordion-chevron {
    display: inline-flex;
    color: var(--muted);
}

.accordion-chevron .dish-icon-svg {
    width: 20px;
    height: 20px;
}

.accordion-chevron-up {
    display: none;
}

.accordion-item.is-open .accordion-chevron-down {
    display: none;
}

.accordion-item.is-open .accordion-chevron-up {
    display: inline-flex;
    color: var(--accent);
}

.accordion-panel {
    padding: 0 1rem 1rem;
}

.accordion-panel[hidden] {
    display: none;
}

.accordion-empty {
    margin: 0.75rem 0 0.25rem;
    padding: 1.25rem;
    text-align: center;
    color: var(--muted);
    background: var(--surface-2);
    border-radius: 10px;
    font-size: 0.92rem;
}

.menu-section h2 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.dish-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 1.25rem;
}

.dish-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.dish-preview {
    background: var(--surface-2);
    height: 220px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: stretch;
    overflow: hidden;
    position: relative;
}

.dish-preview--simple {
    display: block;
    height: auto;
    overflow: hidden;
}

.dish-preview--simple .dish-preview-media {
    height: 200px;
}

.dish-preview-media {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-width: 0;
    cursor: zoom-in;
    touch-action: pan-y;
    position: relative;
    background: var(--surface-2);
}

.dish-preview-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    z-index: 1;
    background: linear-gradient(
        110deg,
        rgba(255, 255, 255, 0) 20%,
        rgba(255, 255, 255, 0.08) 45%,
        rgba(255, 255, 255, 0) 70%
    );
    background-size: 220% 100%;
    transition: opacity 0.2s ease;
}

.dish-preview-media.is-loading::after {
    opacity: 1;
    animation: dish-preview-shimmer 1.15s linear infinite;
}

.dish-preview-media.is-loaded::after {
    display: none;
}

@keyframes dish-preview-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .dish-preview-media.is-loading::after {
        animation: none;
        opacity: 0.45;
    }
}

.dish-preview-media img,
.dish-preview-media model-viewer,
.dish-preview-media .dish-preview-placeholder {
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1);
    transform-origin: center center;
}

@media (hover: hover) and (pointer: fine) {
    .dish-preview-media img,
    .dish-preview-media model-viewer,
    .dish-preview-media .dish-preview-placeholder {
        will-change: transform;
    }

    .dish-preview-media:hover img,
    .dish-preview-media:hover model-viewer,
    .dish-preview-media:hover .dish-preview-placeholder {
        transform: scale(1.14);
    }
}

.dish-preview-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    padding: 0.5rem;
    background: var(--surface-2);
}

.dish-preview-photo--progressive {
    opacity: 1;
    transition: filter 0.45s ease, transform 0.45s ease, opacity 0.45s ease;
}

.dish-preview-photo--progressive.is-placeholder-ready:not(.is-loaded) {
    filter: blur(14px);
    transform: scale(1.06);
}

.dish-preview-photo--progressive.is-loaded {
    filter: none;
    transform: none;
}

.dish-preview-photo--progressive.is-load-error {
    filter: none;
    transform: none;
    opacity: 0.65;
}

.dish-preview-media model-viewer {
    width: 100%;
    height: 220px;
    --poster-color: transparent;
}

.dish-icon-rail {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.35rem 0.15rem;
    z-index: 2;
    flex-shrink: 0;
    background: linear-gradient(90deg, rgba(15, 20, 25, 0.82), rgba(15, 20, 25, 0.35));
}

.dish-icon-rail--right {
    background: linear-gradient(270deg, rgba(15, 20, 25, 0.82), rgba(15, 20, 25, 0.35));
}

.dish-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: rgba(15, 20, 25, 0.35);
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s, background 0.2s, transform 0.2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.dish-icon-btn:hover,
.dish-icon-btn:focus-visible {
    color: #e2e8f0;
    background: rgba(15, 20, 25, 0.55);
    outline: none;
}

.dish-icon-btn.is-active:not(.dish-icon-btn--favorite) {
    color: #f59e0b;
}

.dish-icon-btn--favorite.is-active {
    color: #ef4444;
}

.dish-icon-btn--favorite.is-active .dish-icon-svg {
    fill: #ef4444;
    stroke: #ef4444;
}

.dish-icon-btn.is-popping {
    animation: icon-pop 0.35s ease;
}

.dish-icon-btn.is-flash {
    animation: icon-flash 0.3s ease;
}

@keyframes icon-pop {
    0% { transform: scale(1); }
    45% { transform: scale(1.22); }
    100% { transform: scale(1); }
}

@keyframes icon-flash {
    0%, 100% { color: #94a3b8; }
    50% { color: #e2e8f0; }
}

.dish-icon-svg {
    width: 24px;
    height: 24px;
    display: block;
    pointer-events: none;
}

#menu-overlays {
    pointer-events: none;
}

#menu-overlays .menu-sheet.is-open,
#menu-overlays .menu-action-sheet.is-open {
    z-index: 560;
    pointer-events: auto;
}

html.menu-overlay-open #menu-overlays {
    pointer-events: auto;
}

#compare-sheet.is-open,
#maps-sheet.is-open {
    z-index: 560;
}

html.menu-overlay-open .compare-bar,
html.menu-overlay-open .order-bar,
html.menu-overlay-open .guest-status-bar {
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

.compare-bar {
    position: fixed;
    left: max(1rem, env(safe-area-inset-left, 0px));
    right: max(1rem, env(safe-area-inset-right, 0px));
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    z-index: 280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.35rem;
    border: 1px solid rgba(245, 158, 11, 0.45);
    border-radius: 999px;
    background: rgba(26, 35, 50, 0.98);
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 44px;
}

.order-bar {
    position: fixed;
    left: max(1rem, env(safe-area-inset-left, 0px));
    right: max(1rem, env(safe-area-inset-right, 0px));
    bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    z-index: 280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.35rem;
    border: 1px solid rgba(34, 197, 94, 0.45);
    border-radius: 999px;
    background: rgba(26, 35, 50, 0.98);
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 44px;
}

.order-bar-icon {
    font-size: 1.1rem;
}

body.has-order-bar .compare-bar {
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
}

body.has-order-bar:not(.has-compare-bar) .order-bar {
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
}

.compare-bar-icon {
    color: #ef4444;
}

html.menu-overlay-open {
    overflow: hidden;
    overscroll-behavior: none;
}

html.menu-overlay-open body {
    overflow: hidden;
}

.menu-action-sheet,
.menu-sheet {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.sheet-panel,
.compare-sheet-body {
    touch-action: pan-y;
}

.menu-action-sheet.is-open,
.menu-sheet.is-open {
    z-index: 420;
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    touch-action: none;
}

#nutrition-sheet.is-open,
#story-sheet.is-open,
#share-sheet.is-open {
    z-index: 260;
}

.sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
}

.sheet-panel {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: min(85dvh, 85vh);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    background: var(--surface);
    border-radius: 20px 20px 0 0;
    padding: 1rem max(1.25rem, env(safe-area-inset-right, 0px)) calc(1.5rem + env(safe-area-inset-bottom, 0px)) max(1.25rem, env(safe-area-inset-left, 0px));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

#compare-sheet .sheet-panel {
    display: flex;
    flex-direction: column;
    max-height: min(92dvh, 92vh);
    height: min(92dvh, 92vh);
    overflow: hidden;
}

#compare-sheet .sheet-handle,
#compare-sheet h2,
#compare-sheet .sheet-subtitle,
#compare-sheet .sheet-close-btn {
    flex-shrink: 0;
}

.compare-sheet-body {
    flex: 1 1 auto;
    min-height: 12rem;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    margin: 0 -0.15rem;
    padding: 0 0.15rem;
}

#compare-sheet .sheet-close-btn {
    margin-top: 0.85rem;
}

.menu-action-sheet.is-open .sheet-panel,
.menu-sheet.is-open .sheet-panel {
    transform: translateY(0);
}

.sheet-handle {
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.45);
    margin: 0 auto 1rem;
}

.sheet-panel h2 {
    margin: 0 0 0.35rem;
    font-size: 1.2rem;
}

.sheet-subtitle {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.sheet-close-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font-weight: 600;
    cursor: pointer;
    min-height: 44px;
}

#reserve-sheet .sheet-panel,
#reservations-sheet .sheet-panel {
    padding: 0.65rem 1.1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    max-height: min(96dvh, 96vh);
}

#reserve-sheet .sheet-handle,
#reservations-sheet .sheet-handle {
    margin-bottom: 0.5rem;
}

#reserve-sheet .sheet-panel h2,
#reservations-sheet .sheet-panel h2 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.25;
}

.reserve-sheet-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.7rem;
}

.reserve-sheet-head .sheet-subtitle {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.3;
    text-align: right;
}

.reserve-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.reserve-form label {
    margin-bottom: 0;
    font-size: 0.82rem;
}

.reserve-optional {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 400;
}

.reserve-form input,
.reserve-form select {
    margin-bottom: 0;
    margin-top: 0.2rem;
    padding: 0.48rem 0.65rem;
    min-height: 40px;
    font-size: 0.95rem;
}

.reserve-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.reserve-form-row--people-name {
    grid-template-columns: 5.75rem minmax(0, 1fr);
}

.reserve-form-actions {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.45fr);
    gap: 0.5rem;
    margin-top: 0.15rem;
    align-items: stretch;
}

#reserve-sheet .reserve-form-actions .sheet-close-btn,
#reserve-sheet .reserve-form-actions .btn,
#reservations-sheet .reserve-form-actions .sheet-close-btn,
#reservations-sheet .reserve-form-actions .btn {
    width: 100%;
    margin: 0;
    min-height: 42px;
    padding: 0.55rem 0.7rem;
}

#reserve-sheet .order-submit-error,
#reservations-sheet .order-submit-error {
    margin: 0;
}

.reserve-success {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.reserve-success.hidden {
    display: none !important;
}

.reserve-success-card {
    padding: 0.85rem 0.9rem;
    border-radius: 12px;
    background: var(--surface-2);
    border: 1px solid rgba(34, 197, 94, 0.28);
}

.reserve-success-kicker {
    margin: 0 0 0.65rem;
    color: #86efac;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.reserve-success-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin: 0;
}

.reserve-success-meta div {
    min-width: 0;
}

.reserve-success-meta dt {
    margin: 0 0 0.2rem;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.reserve-success-meta dd {
    margin: 0;
    color: var(--text);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    word-break: break-all;
}

#reserve-success-codigo {
    color: var(--accent);
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}

.reserve-success-note {
    margin: 0.7rem 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

#reserve-success-actions.reserve-form-actions--single {
    grid-template-columns: 1fr;
}

#reserve-success-actions .btn {
    text-decoration: none;
}

.reservations-own,
.reservations-mesas {
    margin-top: 0.7rem;
}

.reservations-own-card {
    padding: 0.7rem 0.8rem;
    border-radius: 10px;
    background: var(--surface-2);
    border: 1px solid rgba(245, 158, 11, 0.28);
    margin-bottom: 0.45rem;
}

.reservations-own-card strong {
    display: block;
    margin-bottom: 0.2rem;
}

.reservations-own-meta,
.reservations-mesas-legend {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.reservations-mesas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(4.6rem, 1fr));
    gap: 0.4rem;
    margin-top: 0.45rem;
}

.reservations-mesa-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    min-height: 3.1rem;
    padding: 0.35rem 0.25rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
}

.reservations-mesa-chip small {
    font-weight: 600;
    opacity: 0.85;
}

.reservations-mesa-chip.is-taken {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.28);
    color: #fca5a5;
}

@media (max-width: 420px) {
    .reserve-sheet-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
        margin-bottom: 0.55rem;
    }

    .reserve-sheet-head .sheet-subtitle {
        text-align: left;
    }

    .reserve-form-row--people-name {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-height: 560px) {
    .app-dialog-card {
        max-height: 92dvh;
        padding-top: 1rem;
    }
}

@media (max-height: 520px) {
    #reserve-sheet .sheet-panel,
    #reservations-sheet .sheet-panel {
        padding-top: 0.45rem;
        padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
    }

    #reserve-sheet .sheet-handle,
    #reservations-sheet .sheet-handle {
        margin-bottom: 0.35rem;
    }

    .reserve-sheet-head {
        margin-bottom: 0.45rem;
    }

    .reserve-form {
        gap: 0.35rem;
    }

    .reserve-form input,
    .reserve-form select {
        min-height: 36px;
        padding: 0.38rem 0.55rem;
    }

    #reserve-sheet .reserve-form-actions .sheet-close-btn,
    #reserve-sheet .reserve-form-actions .btn,
    #reservations-sheet .reserve-form-actions .sheet-close-btn,
    #reservations-sheet .reserve-form-actions .btn {
        min-height: 38px;
    }
}

.sheet-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.sheet-action-btn {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    min-height: 44px;
}

.sheet-action-btn:hover {
    border-color: rgba(245, 158, 11, 0.45);
}

#maps-sheet .sheet-panel {
    display: flex;
    flex-direction: column;
    max-height: min(92dvh, 92vh);
    height: min(92dvh, 92vh);
    overflow: hidden;
}

#maps-sheet .sheet-handle,
#maps-sheet h2,
#maps-sheet .sheet-subtitle,
#maps-sheet .sheet-action-btn,
#maps-sheet .sheet-close-btn {
    flex-shrink: 0;
}

.maps-embed-wrap {
    flex: 1 1 auto;
    min-height: 240px;
    margin: 0 0 0.85rem;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0f172a;
}

.maps-embed-wrap iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 240px;
    border: 0;
}

.maps-embed-fallback {
    margin: 0 0 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.65);
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.4;
}

.sheet-action-icon {
    font-size: 1.25rem;
}

#share-sheet .sheet-panel {
    max-height: min(92dvh, 92vh);
}

.share-step[hidden] {
    display: none !important;
}

.share-stamp-picker {
    margin: 0 0 1rem;
}

.share-stamp-label {
    margin: 0 0 0.55rem;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.share-stamp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

.share-stamp-option {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 4.4rem;
    padding: 0.55rem 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: var(--surface-2);
    cursor: pointer;
}

.share-stamp-option:hover,
.share-stamp-option.is-selected {
    border-color: var(--accent);
}

.share-stamp-option.is-selected {
    background: rgba(245, 158, 11, 0.12);
    box-shadow: 0 0 0 1px var(--accent);
}

.share-stamp-picker.is-custom-only .share-stamp-grid {
    opacity: 0.4;
    pointer-events: none;
}

.share-stamp-badge {
    display: inline-block;
    max-width: 100%;
    padding: 0.38rem 0.7rem;
    border-radius: 12px;
    background: var(--accent);
    color: #0f1419;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
}

.share-stamp-custom {
    display: block;
    margin: 0.85rem 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.share-stamp-optional {
    font-weight: 500;
    opacity: 0.8;
}

.share-stamp-custom input {
    display: block;
    width: 100%;
    margin-top: 0.4rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 500;
}

.share-stamp-custom input:focus {
    outline: 2px solid rgba(245, 158, 11, 0.55);
    outline-offset: 1px;
    border-color: var(--accent);
}

.share-stamp-check {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0.85rem 0 0;
    padding: 0.6rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
}

.share-stamp-check input {
    flex: 0 0 auto;
    width: 1.1rem;
    height: 1.1rem;
    margin: 0.05rem 0 0;
    accent-color: var(--accent);
}

.share-stamp-hint {
    margin: 0.85rem 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.share-stamp-preview {
    display: block;
    margin: 0.35rem 0 0;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    background: var(--accent);
    color: #0f1419;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    overflow-wrap: anywhere;
}

.share-stamp-preview:empty {
    display: none;
}

.share-preview-status {
    margin: 0 0 0.75rem;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.35;
}

.share-preview-frame {
    margin: 0 0 0.85rem;
    overflow: hidden;
    border-radius: 16px;
    background: var(--surface-2);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.share-preview-frame img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.share-preview-caption {
    margin: 0 0 1rem;
    white-space: pre-wrap;
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.4;
}

.share-preview-caption:empty,
.share-preview-caption[hidden] {
    display: none;
}

.share-splash {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: linear-gradient(165deg, #0f1419 0%, #162032 55%, #1a2332 100%);
    color: #f0f4f8;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.share-splash.is-hidden,
.share-splash[hidden] {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.share-splash-inner {
    width: min(22rem, 100%);
    text-align: center;
}

.share-splash-mark {
    position: relative;
    width: 5.5rem;
    height: 5.5rem;
    margin: 0 auto 1.25rem;
}

.share-splash-mark-ring {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(245, 158, 11, 0.35);
    border-top-color: #f59e0b;
    border-radius: 50%;
    animation: splash-spin 0.9s linear infinite;
}

.share-splash-mark-core {
    position: absolute;
    inset: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.14);
    color: #f59e0b;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.share-splash-logo {
    width: 5.5rem;
    height: 5.5rem;
    object-fit: contain;
    margin: 0 auto 1.25rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.35rem;
}

.share-splash-brand {
    margin: 0 0 0.35rem;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.2;
}

.share-splash-subtitle {
    margin: 0 0 1.35rem;
    color: #94a3b8;
    font-size: 0.95rem;
}

.share-splash-progress {
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.share-splash-progress-bar {
    display: block;
    width: 38%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #d97706, #f59e0b);
    animation: splash-progress 1.2s ease-in-out infinite;
}

@keyframes splash-spin {
    to { transform: rotate(360deg); }
}

@keyframes splash-progress {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(320%); }
}

@media (prefers-reduced-motion: reduce) {
    .share-splash-mark-ring,
    .share-splash-progress-bar {
        animation: none;
    }

    .share-splash-progress-bar {
        width: 55%;
        margin: 0 auto;
    }
}

#share-whatsapp.is-busy,
#share-native.is-busy,
#share-postcard.is-busy,
#share-stamp-confirm.is-busy,
#share-preview-confirm.is-busy {
    opacity: 0.7;
    pointer-events: none;
}

.dish-card.is-shared-target {
    outline: 2px solid var(--accent);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.28);
    scroll-margin-top: 5.5rem;
}

.allergen-popover {
    position: absolute;
    z-index: 260;
    width: min(280px, calc(100vw - 24px));
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    pointer-events: none;
}

.allergen-popover.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.popover-title {
    margin: 0 0 0.65rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.allergen-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.allergen-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fecaca;
    font-size: 0.82rem;
    font-weight: 600;
}

.allergen-badge--safe {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
    color: #bbf7d0;
}

.nutrition-panel {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    align-items: center;
}

.nutrition-header {
    margin: 0.35rem 0 1rem;
}

.nutrition-dish-meta {
    margin: 0;
    display: grid;
    gap: 0.65rem;
}

.nutrition-dish-meta-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 0.75rem;
    align-items: baseline;
}

.nutrition-dish-meta dt {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.nutrition-dish-meta dd {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 600;
}

.hero-restaurant {
    margin: 0.35rem 0 0;
    color: var(--accent);
    font-weight: 600;
}

.dish-tooltip-btn {
    position: relative;
}

@media (hover: hover) and (pointer: fine) {
    .dish-tooltip-btn::after {
        content: attr(data-tooltip);
        position: absolute;
        left: 50%;
        bottom: calc(100% + 8px);
        transform: translateX(-50%) translateY(4px);
        padding: 0.35rem 0.55rem;
        border-radius: 6px;
        background: rgba(15, 20, 25, 0.96);
        color: var(--text);
        font-size: 0.72rem;
        font-weight: 600;
        line-height: 1.25;
        white-space: nowrap;
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
        z-index: 5;
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
    }

    .dish-tooltip-btn:hover::after,
    .dish-tooltip-btn:focus-visible::after {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .dish-actions .dish-tooltip-btn::after {
        bottom: auto;
        top: calc(100% + 8px);
        transform: translateX(-50%) translateY(-4px);
    }

    .dish-actions .dish-tooltip-btn:hover::after,
    .dish-actions .dish-tooltip-btn:focus-visible::after {
        transform: translateX(-50%) translateY(0);
    }

    .compare-item-icons .dish-tooltip-btn::after {
        bottom: auto;
        top: calc(100% + 8px);
        transform: translateX(-50%) translateY(-4px);
        z-index: 20;
    }

    .compare-item-icons .dish-tooltip-btn:hover::after,
    .compare-item-icons .dish-tooltip-btn:focus-visible::after {
        transform: translateX(-50%) translateY(0);
    }
}

.admin-subnav {
    display: flex;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
    padding: 0.35rem;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: fit-content;
}

.admin-subnav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
}

.admin-subnav-link:hover,
.admin-subnav-link:focus-visible {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.admin-subnav-link.is-active {
    color: var(--text);
    background: rgba(245, 158, 11, 0.14);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    gap: 0.35rem 0.75rem;
    margin: 0.5rem 0 1rem;
}

/* Superadmin — formulario de usuario / mozo */
.user-mozo-form .user-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.7rem 1rem;
    align-items: end;
    margin-bottom: 1rem;
}

.user-mozo-form .user-form-grid .form-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.user-mozo-form .user-form-grid .form-field label {
    margin-bottom: 0;
}

.user-mozo-form .user-form-grid .form-field input,
.user-mozo-form .user-form-grid .form-field select {
    margin-bottom: 0;
}

.user-mozo-form .user-form-grid .form-field--wide {
    grid-column: 1 / -1;
}

.user-mozo-form .user-form-actions {
    margin-top: 1rem;
}

.mozo-assign-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.1rem 1.15rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.mozo-assign-block[hidden] {
    display: none;
}

.mozo-assign-section {
    min-width: 0;
}

.mozo-section-label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 700;
}

.mozo-area-rows {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.mozo-area-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 2.65rem;
    padding: 0.35rem 0.55rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 20, 25, 0.55);
}

.mozo-area-label {
    flex: 0 0 auto;
    min-width: 6.5rem;
    max-width: 9rem;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mozo-area-mesas-scroll {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.55rem 0.85rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.2rem 0.15rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 158, 11, 0.45) rgba(255, 255, 255, 0.06);
}

.mozo-area-mesas-scroll::-webkit-scrollbar {
    height: 6px;
}

.mozo-area-mesas-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.mozo-area-mesas-scroll::-webkit-scrollbar-thumb {
    background: rgba(245, 158, 11, 0.45);
    border-radius: 999px;
}

.mozo-mesa-pill {
    flex: 0 0 auto;
}

.mozo-area-all {
    flex: 0 0 auto;
    margin-left: 0.15rem;
    padding-left: 0.65rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 700;
}

@media (max-width: 640px) {
    .user-mozo-form .user-form-grid {
        grid-template-columns: 1fr;
    }

    .mozo-area-row {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .mozo-area-label {
        width: 100%;
        max-width: none;
    }

    .mozo-area-mesas-scroll {
        width: 100%;
    }

    .mozo-area-all {
        margin-left: auto;
        border-left: none;
        padding-left: 0;
    }
}

/* Mozos — formulario de asignación */
.admin-mozos-page .mozos-qr-hint {
    margin: 0 0 1.25rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.admin-mozos-page .mozos-qr-hint a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.admin-mozos-page .mozos-qr-hint a:hover {
    text-decoration: underline;
}

.mozos-form {
    margin-bottom: 2rem;
    padding: 1.25rem 1.35rem 1.5rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.mozos-form-row {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.mozos-form-row--identity {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mozos-form-row--sector {
    grid-template-columns: minmax(11rem, 18rem);
}

.mozos-form-row--horarios,
.mozos-form-row--mesas {
    grid-template-columns: minmax(0, 1fr);
}

.mozos-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
}

.mozos-field-head .mozos-field-label {
    margin-bottom: 0;
}

.mozos-sector-field select,
.mozos-form .form-field input[type="text"],
.mozos-form .form-field input[type="password"] {
    width: 100%;
    min-height: 2.65rem;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 20, 25, 0.85);
    color: var(--text);
}

.mozos-field-label,
.mozos-form .form-field > label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 700;
}

.mozos-mesa-count {
    color: var(--muted);
    font-weight: 600;
}

.mozos-inline-options {
    min-height: 2.65rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 20, 25, 0.55);
}

.mozos-horarios-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 1.15rem;
}

.mozos-mesas-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem 0.65rem;
    align-items: start;
}

.mozos-mesas-grid .mozos-check-pill {
    width: 100%;
    min-width: 0;
    padding: 0.35rem 0.45rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}

.mozos-mesas-empty {
    grid-column: 1 / -1;
}

.mozos-check-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    font-size: 0.92rem;
    color: var(--text);
}

.mozos-check-pill input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--accent);
}

.mozo-mesa-item.is-hidden {
    display: none;
}

.mozos-select-all-btn {
    min-width: 5rem;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    font-weight: 800;
    flex-shrink: 0;
}

.mozos-form-actions {
    margin-top: 0.35rem;
}

.mozos-form-actions .btn-lg {
    min-width: 10rem;
    padding: 0.8rem 1.35rem;
    font-size: 1rem;
    font-weight: 800;
}

.mozos-list {
    margin-top: 0.5rem;
}

.mozos-list-title {
    margin: 0 0 0.85rem;
    font-size: 1.05rem;
}

.mozos-edit-details {
    min-width: 14rem;
}

.mozos-edit-details > summary {
    cursor: pointer;
    color: var(--accent);
    font-weight: 700;
}

.mozos-edit-details .mozos-form {
    margin-top: 0.85rem;
    margin-bottom: 0;
}

@media (max-width: 960px) {
    .mozos-form-row--identity,
    .mozos-form-row--sector,
    .mozos-form-row--horarios,
    .mozos-form-row--mesas {
        grid-template-columns: 1fr;
    }

    .mozos-mesas-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .mozos-mesas-grid {
        grid-template-columns: 1fr;
    }
}

/* Sectores y mesas — CRUD */
.admin-sectors-page .sectors-lead {
    margin: 0 0 1.25rem;
    color: var(--muted);
}

.sectors-panel,
.sector-card {
    margin-bottom: 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.sectors-panel-head,
.sector-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
}

.sectors-panel-summary {
    min-width: 0;
}

.sectors-panel-meta {
    margin: 0.2rem 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.sectors-toggle-btn {
    flex-shrink: 0;
    min-width: 6.5rem;
}

.sectors-panel-body {
    padding: 0 1.2rem 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sectors-panel-body[hidden] {
    display: none;
}

.sectors-create-form {
    margin-top: 1rem;
}

.sectors-block-title,
.sector-card-title {
    margin: 0;
    font-size: 1.05rem;
}

.sectors-form-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: end;
}

.sectors-form-row--compact {
    grid-template-columns: minmax(8rem, 12rem) minmax(6rem, 8rem) auto;
}

.sectors-action-field {
    justify-self: start;
}

.sector-card-body {
    padding-top: 1rem;
}

.sector-card-meta {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.sector-edit-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    padding: 0.85rem;
    border-radius: 10px;
    background: rgba(15, 20, 25, 0.45);
}

.sector-edit-form {
    flex: 1 1 16rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 0;
}

.sector-floor-image {
    width: 100%;
    padding: 0.65rem 0.7rem 0.7rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(248, 250, 252, 0.96);
}

.sector-floor-image .admin-field-hint {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    line-height: 1.35;
}

.sector-edit-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.sector-btn-group {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem;
}

.sector-card-actions,
.sector-inline-form,
.sector-mesa-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.sector-inline-form input[type="text"],
.sector-inline-form input[type="number"],
.sectors-create-form input,
.sector-add-mesa-form input {
    min-height: 2.4rem;
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 20, 25, 0.85);
    color: var(--text);
}

.sector-generate {
    margin-bottom: 0.85rem;
    padding: 0.75rem;
    border-radius: 10px;
    background: rgba(15, 20, 25, 0.45);
}

.sector-generate-head {
    margin-bottom: 0.55rem;
}

.sector-generate-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 0.55rem 0.65rem;
    align-items: end;
}

.sector-generate-field {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.78rem;
    color: var(--muted);
}

.sector-generate-field input {
    width: 100%;
    min-width: 0;
}

.sector-generate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.sector-range-preview {
    margin-top: 0.65rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.08);
    font-size: 0.82rem;
    line-height: 1.45;
}

.sector-range-preview.is-ok {
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.08);
}

.sector-range-preview.is-empty {
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.08);
}

.sector-range-preview ul {
    margin: 0.35rem 0 0;
    padding-left: 1.1rem;
}

.sector-range-preview-title {
    font-weight: 700;
    color: var(--text);
}

@media (max-width: 900px) {
    .sector-generate-fields {
        grid-template-columns: 1fr 1fr;
    }

    .sector-generate-actions {
        grid-column: 1 / -1;
    }
}

.sector-generate-label {
    color: var(--muted);
    font-size: 0.88rem;
}

.sector-mesas-wrap {
    overflow-x: auto;
    margin-bottom: 0.85rem;
}

.sector-mesas-table .mesa-num-input {
    width: 5.5rem;
}

.sector-mesas-table .mesa-cap-input {
    width: 4.5rem;
}

.mesa-codigo-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.sector-mesas-table .mesa-codigo-input {
    width: 5.75rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.mesa-codigo-regen {
    min-width: 2rem;
    padding: 0.2rem 0.4rem;
    line-height: 1;
}

.mesa-qr-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.mesa-qr-code {
    width: 72px;
    height: 72px;
}

.mesa-qr-code img,
.mesa-qr-code canvas {
    width: 72px !important;
    height: 72px !important;
    display: block;
}

.mesa-qr-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.mesa-qr-link {
    font-size: 0.75rem;
    color: var(--accent, #c45c26);
}

.mesa-qr-btn {
    padding: 0.15rem 0.45rem;
    font-size: 0.72rem;
    line-height: 1.2;
}

.mesa-qr-hint {
    margin: 0.35rem 0 0;
}

.mesa-qr-hint code {
    font-size: 0.8em;
}

.sector-mesa-actions .sector-btn-group {
    justify-content: flex-start;
}

.sector-no-mesas {
    color: var(--muted);
    font-style: italic;
}

.mesa-servicio-badge {
    display: inline-flex;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.mesa-servicio-badge--abierta {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
}

.mesa-servicio-badge--cerrada {
    background: rgba(100, 116, 139, 0.2);
    color: #cbd5e1;
}

.sectors-empty {
    padding: 2rem;
    text-align: center;
    color: var(--muted);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 12px;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

@media (max-width: 1100px) {
    .sectors-form-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .sectors-form-row,
    .sectors-form-row--compact {
        grid-template-columns: 1fr;
    }

    .sectors-panel-head,
    .sector-card-head,
    .sector-edit-block {
        flex-direction: column;
        align-items: stretch;
    }

    .sector-btn-group {
        width: 100%;
    }

    .sector-btn-group .btn {
        flex: 1 1 0;
    }
}

.dias-picker {
    margin: 0.35rem 0 0.75rem;
}

.dias-picker-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.dias-picker-all {
    padding: 0.35rem 0.85rem;
    font-size: 0.85rem;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.dias-picker-all:hover,
.dias-picker-all:focus-visible {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.45);
}

.dias-picker-all[aria-pressed="true"] {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.55);
}

.dias-picker-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.1rem;
}

.dias-picker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    font-size: 0.95rem;
    line-height: 1.2;
}

.dias-picker-item input[type="checkbox"] {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    flex-shrink: 0;
    accent-color: #f59e0b;
    cursor: pointer;
    vertical-align: middle;
}

.dias-picker-item span {
    line-height: 1.2;
}

.dias-picker--compact {
    margin: 0;
}

.dias-picker--compact .dias-picker-grid {
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.45rem;
}

.dias-picker--compact .dias-picker-item {
    font-size: 0.85rem;
}

.dias-picker--compact .dias-picker-item input[type="checkbox"] {
    width: 0.95rem;
    height: 0.95rem;
}

.dias-picker-all--below {
    margin-top: 0.15rem;
}

.admin-table .dias-picker {
    min-width: 14rem;
}

.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.admin-page-lead {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.admin-empty-state {
    margin-top: 1.5rem;
    padding: 2rem;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    text-align: center;
}

.admin-empty-state h2 {
    margin-top: 0;
}

.salon-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.salon-picker-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.1rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: var(--surface-2);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.salon-picker-card:hover {
    border-color: rgba(245, 158, 11, 0.45);
    transform: translateY(-1px);
}

.salon-picker-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.salon-picker-card-head h2 {
    margin: 0;
    font-size: 1.1rem;
}

.salon-picker-badge {
    display: inline-flex;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #86efac;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.salon-picker-badge--inactive {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.35);
    color: #cbd5e1;
}

.salon-picker-slug {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.salon-picker-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
}

.salon-picker-stats div {
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}

.salon-picker-stats dt {
    margin: 0;
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.salon-picker-stats dd {
    margin: 0.15rem 0 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.salon-picker-cta {
    margin-top: auto;
    color: #fbbf24;
    font-size: 0.88rem;
    font-weight: 600;
}

.admin-page .admin-table {
    width: 100%;
    margin-top: 1rem;
}

/* Restaurant edit: compact master-detail layout */
.restaurant-form-card {
    padding: 1.1rem 1.2rem 1.3rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 1.25rem;
}

.restaurant-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.7rem 1rem;
    align-items: end;
}

.restaurant-form-grid .form-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.restaurant-form-grid .form-field label {
    margin-bottom: 0;
}

.restaurant-form-grid .form-field input,
.restaurant-form-grid .form-field select {
    margin-bottom: 0;
}

.restaurant-form-grid .form-field--wide {
    grid-column: 1 / -1;
}

.restaurant-form-grid .form-field--action {
    justify-content: flex-end;
}

.restaurant-form-grid .form-field--action .btn {
    width: 100%;
}

.sectors-back-link {
    display: inline-flex;
    margin-bottom: 0.85rem;
}

.restaurant-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
    gap: 1.1rem;
    margin-bottom: 1.1rem;
}

.restaurant-edit-head {
    align-items: center;
}

.restaurant-edit-head--compact {
    margin-bottom: 0.65rem;
    padding-bottom: 0.65rem;
}

.restaurant-edit-actions {
    align-items: center;
}

.restaurant-status-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-right: 0.25rem;
    cursor: pointer;
    user-select: none;
    color: var(--admin-text);
    font-size: 0.88rem;
    font-weight: 600;
}

.restaurant-status-toggle--topbar {
    margin: 0;
    padding: 0.35rem 0.75rem 0.35rem 0.45rem;
    border: 1px solid var(--admin-border);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.admin-topbar-extra {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.restaurant-detail-page.entity-edit-page > .admin-back-link {
    margin: 0 0 0.45rem;
}

.restaurant-detail-page .restaurant-edit-card.admin-config-card {
    padding: 0.85rem 1.15rem 1rem;
}

.restaurant-detail-page .restaurant-tabs {
    margin: 0 0 0.55rem;
    padding: 0.1rem;
}

.restaurant-detail-page.entity-edit-page > .admin-dash-layout {
    flex: 1 1 auto;
    min-height: 0;
    align-items: stretch;
    width: 100%;
}

.admin-config-page.entity-edit-page > .admin-dash-layout {
    flex: 1 1 auto;
    min-height: 0;
    align-items: stretch;
    width: 100%;
}

.restaurant-detail-page.entity-edit-page .admin-dash-main,
.admin-config-page.entity-edit-page .admin-dash-main {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.restaurant-detail-page.entity-edit-page .entity-edit-card,
.admin-config-page.entity-edit-page .entity-edit-card {
    flex: 1 1 auto;
    min-height: 0;
}

.admin-topbar-extra .admin-config-save--topbar {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.5rem;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .admin-topbar-extra .admin-config-save--topbar {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .admin-topbar-extra .admin-config-save--topbar svg {
        margin: 0;
    }
}

.restaurant-detail-page .entity-edit-actions,
.admin-config-page.entity-edit-page .entity-edit-actions {
    position: sticky;
    bottom: 0;
    margin-top: auto;
    z-index: 3;
}

.restaurant-detail-page #superadmin-restaurant-form {
    gap: 0.65rem;
}

.restaurant-info-layout {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.restaurant-info-identity,
.restaurant-info-brand {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
    align-items: start;
}

.restaurant-info-layout .admin-field {
    margin: 0;
}

.restaurant-info-layout .admin-field-hint {
    margin-top: 0.3rem;
}

.restaurant-info-layout .admin-menu-layout-control {
    max-width: none;
    gap: 0.4rem;
}

.restaurant-info-layout .admin-menu-layout-current {
    padding: 0.4rem 0.65rem;
    font-size: 0.82rem;
}

.restaurant-info-layout .admin-atmosphere-block {
    margin: 0;
}

.restaurant-info-layout .admin-atmosphere-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.35rem;
}

.restaurant-info-layout .admin-atmosphere-head label {
    margin: 0;
}

.restaurant-info-layout .admin-atmosphere-head .admin-field-hint {
    margin: 0;
}

.restaurant-info-layout .admin-atmosphere-cols {
    margin-top: 0;
    gap: 0.65rem;
}

.restaurant-info-layout .admin-atmosphere-col {
    padding: 0.55rem 0.65rem 0.6rem;
    gap: 0.35rem;
}

.restaurant-info-layout .admin-atmosphere-col-title {
    font-size: 0.85rem;
    margin-bottom: 0;
}

.restaurant-info-layout .admin-atmosphere-row {
    grid-template-columns: 2.85rem minmax(0, 1fr);
    gap: 0.45rem;
}

.restaurant-info-layout .admin-atmosphere-thumb {
    width: 2.85rem;
    height: 2.15rem;
}

.restaurant-info-layout .admin-logo-row--with-links {
    gap: 0.75rem;
}

.restaurant-info-layout .admin-restaurant-links {
    gap: 0.28rem;
}

.restaurant-info-layout .admin-restaurant-link {
    padding: 0.28rem 0.45rem;
}

@media (max-width: 960px) {
    .restaurant-info-identity,
    .restaurant-info-brand {
        grid-template-columns: 1fr;
    }
}

.admin-logo-row--with-links {
    align-items: flex-start;
}

.admin-logo-aside {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-width: 0;
    flex: 1 1 14rem;
}

.admin-restaurant-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.admin-restaurant-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-width: 100%;
    padding: 0.35rem 0.55rem;
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    background: var(--admin-input-bg, #f8fafc);
    color: var(--admin-text);
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.admin-restaurant-link:hover,
.admin-restaurant-link:focus-visible {
    border-color: rgba(245, 158, 11, 0.55);
    background: rgba(245, 158, 11, 0.06);
    outline: none;
}

.admin-restaurant-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--admin-sidebar-active, #f97316);
}

.admin-restaurant-link-copy {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
}

.admin-restaurant-link-copy strong {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--admin-muted);
}

.admin-restaurant-link-copy span {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--admin-sidebar-active, #f97316);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-restaurant-link-hint {
    margin: 0;
}

.restaurant-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem;
    margin: -0.35rem 0 1.25rem;
    padding: 0.2rem;
    border-bottom: 1px solid var(--admin-border);
}

.restaurant-tab {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--admin-muted);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.7rem 0.95rem;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    position: relative;
}

.restaurant-tab:hover:not(:disabled) {
    color: var(--admin-text);
    background: rgba(15, 23, 42, 0.04);
}

.restaurant-tab.is-active {
    color: var(--admin-sidebar-active);
    background: rgba(255, 122, 33, 0.08);
}

.restaurant-tab.is-active::after {
    content: "";
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    bottom: -0.22rem;
    height: 3px;
    border-radius: 999px;
    background: var(--admin-sidebar-active);
}

.restaurant-tab:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.restaurant-tab-panel[hidden] {
    display: none !important;
}

.restaurant-tab-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
}

.restaurant-tab-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Entity edit shell: solapas + cuerpo con scroll + acciones siempre visibles */
.admin-dashboard:has(.entity-edit-page) {
    height: 100dvh;
    overflow: hidden;
}

.admin-dashboard:has(.entity-edit-page) .admin-shell {
    min-height: 0;
    height: 100dvh;
    overflow: hidden;
}

.admin-dashboard:has(.entity-edit-page) .admin-topbar {
    flex-shrink: 0;
}

.admin-dashboard:has(.entity-edit-page) .admin-flash {
    flex-shrink: 0;
}

.entity-edit-page > .admin-back-link {
    flex-shrink: 0;
}

.admin-dashboard:has(.entity-edit-page) .admin-main {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.entity-edit-page {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.entity-edit-card {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.entity-edit-card > form,
.entity-edit-form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    gap: 0;
}

.entity-edit-card .testra-warning,
.entity-edit-card .testra-ok {
    flex-shrink: 0;
}

.entity-edit-head {
    flex-shrink: 0;
}

.entity-edit-card > .restaurant-tabs,
.entity-edit-card > .entity-edit-tabs {
    flex-shrink: 0;
    margin-bottom: 0.65rem;
}

.entity-edit-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding-right: 0.15rem;
}

.entity-edit-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    flex-shrink: 0;
    z-index: 2;
    margin-top: 0.75rem;
    padding: 0.75rem 0 0;
    border-top: 1px solid var(--admin-border);
    background: var(--admin-card-bg, #fff);
    box-shadow: 0 -10px 18px rgba(15, 23, 42, 0.04);
}

.entity-edit-actions .btn {
    min-height: 2.65rem;
}

.entity-edit-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.entity-edit-footnote {
    margin-right: auto;
    max-width: 28rem;
    color: var(--admin-muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.entity-edit-list-scroll {
    max-height: min(40vh, 280px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 0.15rem 0.1rem;
}

.admin-dialog:not(.admin-dialog--photo) {
    max-height: min(92dvh, calc(100dvh - 1.5rem));
}

.admin-dialog-card:not(.admin-dialog-card--photo):not(.admin-dialog-card--plato-editor) {
    display: flex;
    flex-direction: column;
    max-height: min(92dvh, calc(100dvh - 1.5rem));
    overflow: hidden;
}

.admin-dialog-card:not(.admin-dialog-card--photo) > form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.admin-dialog-card > form:not(:has(.entity-edit-body)) {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-dialog-card .entity-edit-body {
    padding-bottom: 0.25rem;
}

.admin-dialog-card .entity-edit-actions,
.admin-dialog-card .admin-dialog-actions {
    flex-shrink: 0;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--admin-border);
    background: #fff;
}

.salon-preview-head {
    margin-top: 1.35rem;
    padding-top: 1rem;
    border-top: 1px solid var(--admin-border);
}

.detail-panel {
    padding: 1rem 1.2rem 1.2rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    min-width: 0;
}

.detail-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.detail-panel-head h2 {
    margin: 0;
    font-size: 1.05rem;
}

.detail-panel-summary {
    min-width: 0;
}

.detail-panel-meta {
    margin: 0.2rem 0 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.detail-panel .admin-table th,
.detail-panel .admin-table td {
    padding: 0.55rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
}

.detail-panel .admin-table thead th {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.detail-panel .admin-table-actions a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.detail-panel .admin-table-actions a:hover {
    text-decoration: underline;
}

.detail-empty {
    padding: 0.85rem 0.25rem;
    color: var(--muted);
    font-style: italic;
    font-size: 0.9rem;
}

.detail-empty--sm {
    padding: 0.35rem 0;
}

.salon-preview-panel {
    padding: 1rem 1.2rem 1.2rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.salon-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.salon-preview-sector-title {
    margin: 0 0 0.55rem;
    font-size: 0.92rem;
    color: var(--text);
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.salon-preview-mesas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.mesa-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    min-width: 3.4rem;
    height: 3.4rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(100, 116, 139, 0.12);
    color: #cbd5e1;
    font-weight: 700;
    cursor: default;
}

.mesa-chip--abierta {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
}

.mesa-chip-num {
    font-size: 0.95rem;
    line-height: 1;
}

.mesa-chip-cap {
    font-size: 0.65rem;
    font-weight: 600;
    opacity: 0.85;
}

.salon-preview-legend {
    display: flex;
    gap: 1.1rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-size: 0.82rem;
}

.salon-preview-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.mesa-chip-dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: rgba(100, 116, 139, 0.6);
}

.mesa-chip-dot--abierta {
    background: #22c55e;
}

.mesa-chip-dot--cerrada {
    background: #64748b;
}

.form-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.restaurant-config-form textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

.restaurant-config-form .form-row--contact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
}

.restaurant-logo-upload {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.restaurant-logo-preview {
    width: 88px;
    height: 88px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.restaurant-logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.restaurant-logo-placeholder {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.restaurant-logo-input {
    flex: 1 1 220px;
}

.field-hint {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.admin-config-subtitle {
    margin: 1.5rem 0 0.85rem;
    font-size: 1.05rem;
    color: var(--text);
}

.guest-identify-card {
    max-width: 560px;
}

.table-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.table-picker-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-height: 4.5rem;
    padding: 0.55rem 0.35rem;
    border-radius: 12px;
    border: 1px solid rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.08);
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.table-picker-btn:hover,
.table-picker-btn:focus-visible {
    outline: none;
    border-color: rgba(245, 158, 11, 0.65);
    background: rgba(245, 158, 11, 0.14);
}

.table-picker-btn.is-selected {
    border-color: var(--accent);
    background: rgba(245, 158, 11, 0.22);
    transform: translateY(-1px);
}

.table-picker-btn.is-unavailable,
.table-picker-btn.is-closed,
.table-picker-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    border-color: rgba(148, 163, 184, 0.2);
    background: rgba(148, 163, 184, 0.08);
}

.table-picker-number {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
}

.table-picker-status {
    font-size: 0.68rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.order-identification {
    margin-bottom: 1rem;
}

.order-identification-form,
.order-identification-ready {
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(245, 158, 11, 0.25);
    background: rgba(245, 158, 11, 0.06);
}

.order-identification-title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.order-identification-lead {
    margin: 0 0 0.85rem;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.order-identification-label {
    margin: 0;
    font-size: 0.95rem;
}

.order-identification-ready {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.order-identification-field {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.order-identification-field input {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 20, 25, 0.65);
    color: var(--text);
}

.order-identification-error {
    margin: 0 0 0.75rem;
    color: #f87171;
    font-size: 0.85rem;
}

.order-submit-wrap {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.order-submit-error {
    margin: 0 0 0.55rem;
    color: #f87171;
    font-size: 0.85rem;
}

.order-table-picker {
    margin-bottom: 0.85rem;
}

.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.82rem;
}

.nav-guest {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--muted);
    font-size: 0.9rem;
    max-width: 180px;
}

.nav-guest-label {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    line-height: 1.2;
    min-width: 0;
    overflow: hidden;
}

.nav-guest-name {
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-guest-meta {
    font-size: 0.72rem;
    color: var(--accent);
    font-weight: 600;
}

.nav-guest-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.footer-restaurant-name {
    margin: 0;
    font-weight: 700;
    color: var(--text);
}

.footer-restaurant-contact {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.nutrition-chart-wrap {
    position: relative;
    width: 120px;
    height: 120px;
}

.nutrition-chart {
    width: 100%;
    height: 100%;
}

.nutrition-calories {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    line-height: 1.2;
}

.nutrition-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.nutrition-legend strong {
    color: var(--text);
}

.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.4rem;
}

.story-heading {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    color: var(--accent);
}

.story-origin {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.85rem;
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.story-origin-flag {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
    flex-shrink: 0;
}

.story-origin-label {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.story-origin-country {
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 700;
}

.story-text {
    margin: 0 0 1rem;
    color: var(--muted);
    line-height: 1.65;
    max-width: 52ch;
}

.story-audio-btn.is-playing {
    border-color: var(--accent);
    color: var(--accent);
}

.compare-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.compare-group {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(15, 20, 25, 0.35);
}

.compare-group:not(.is-open) .compare-group-trigger {
    border-radius: 11px;
}

.compare-group.is-open .compare-group-trigger {
    border-radius: 11px 11px 0 0;
}

.compare-group.is-open .compare-group-list {
    border-radius: 0 0 11px 11px;
}

.compare-group-trigger {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 0.65rem;
    padding: 0.8rem 0.9rem;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.compare-group-trigger:hover,
.compare-group-trigger:focus-visible {
    background: rgba(255, 255, 255, 0.04);
    outline: none;
}

.compare-group.is-open .compare-group-trigger {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(245, 158, 11, 0.08);
}

.compare-group-label {
    position: relative;
    padding-left: 0.75rem;
}

.compare-group-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.12em;
    bottom: 0.12em;
    width: 3px;
    border-radius: 999px;
    background: var(--accent);
}

.compare-group-count {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.compare-group-chevron-wrap {
    display: inline-flex;
    color: var(--muted);
    transition: transform 0.25s ease, color 0.2s;
}

.compare-group-chevron-wrap .compare-group-chevron,
.compare-group-chevron-wrap .dish-icon-svg {
    width: 18px;
    height: 18px;
}

.compare-group.is-open .compare-group-chevron-wrap {
    transform: rotate(180deg);
    color: var(--accent);
}

.compare-group-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.65rem;
}

.compare-group-list[hidden] {
    display: none;
}

.compare-item {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: 14px;
    background: rgba(26, 35, 50, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.compare-item.is-ordered {
    border-color: rgba(34, 197, 94, 0.45);
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.15);
}

.compare-item-top {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
}

.compare-item-icons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    width: 100%;
}

.compare-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    background: rgba(15, 20, 25, 0.55);
    color: #94a3b8;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.compare-icon-btn:hover,
.compare-icon-btn:focus-visible {
    color: #e2e8f0;
    background: rgba(15, 20, 25, 0.82);
    border-color: rgba(255, 255, 255, 0.14);
    outline: none;
}

.compare-icon-btn.is-flash {
    animation: icon-flash 0.3s ease;
}

.compare-icon-svg {
    width: 20px;
    height: 20px;
}

.compare-item-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
}

.compare-order-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 0.3rem 0.55rem;
    border-radius: 6px;
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.45);
    color: #86efac;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: lowercase;
}

.compare-order-btn {
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    border: 1.5px solid rgba(245, 158, 11, 0.65);
    background: transparent;
    color: var(--accent);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.compare-order-btn:hover,
.compare-order-btn:focus-visible {
    background: rgba(245, 158, 11, 0.1);
    outline: none;
}

.compare-order-btn.is-active {
    border-color: rgba(148, 163, 184, 0.4);
    background: rgba(148, 163, 184, 0.1);
    color: var(--muted);
}

.order-summary {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.order-summary-title {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    color: #86efac;
}

.order-summary-meta {
    margin: 0 0 0.65rem;
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 600;
}

.order-summary-groups {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.order-summary-group h4 {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #bbf7d0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.order-summary-group ul {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.55;
}

.order-summary-list {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.6;
}

.compare-item-media {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: zoom-in;
}

.compare-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compare-item-placeholder {
    color: var(--accent);
    font-weight: 800;
    font-size: 0.85rem;
}

.compare-item-name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    min-width: 0;
}

.compare-item-price {
    margin: 0;
    color: var(--accent);
    font-weight: 700;
    font-size: 1.05rem;
    white-space: nowrap;
}

.compare-nutrition {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.compare-nutrition-row {
    display: grid;
    grid-template-columns: minmax(7.5rem, 38%) minmax(0, 1fr);
    align-items: start;
    gap: 0.65rem;
    font-size: 0.82rem;
    line-height: 1.4;
}

.compare-nutrition-row dt {
    margin: 0;
    color: var(--muted);
    font-weight: 500;
}

.compare-nutrition-row dd {
    margin: 0;
    color: var(--text);
    font-weight: 700;
    text-align: left;
}

.compare-nutrition-macros {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.compare-item-meta {
    margin: 0.15rem 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.sheet-empty {
    margin: 0;
    color: var(--muted);
    text-align: center;
    padding: 1rem 0;
}

.dish-preview-placeholder {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    color: var(--muted);
    background:
        radial-gradient(circle at 50% 35%, rgba(245, 158, 11, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
}

.dish-preview-icon {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(245, 158, 11, 0.16);
    color: var(--accent);
    font-weight: 800;
    letter-spacing: 0.06em;
}

.dish-preview-text {
    font-size: 0.85rem;
}

.dish-info {
    padding: 1rem 1.25rem 1.25rem;
}

.dish-info h3 {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
}

.dish-info-header {
    margin-bottom: 0.65rem;
}

.dish-info-title {
    min-width: 0;
}

.dish-info-header .price,
.dish-info-title .price {
    margin: 0;
}

.btn-ar {
    justify-content: space-between;
    gap: 0.65rem;
}

.btn-ar-label,
.btn-ar-price {
    white-space: nowrap;
}

.btn-ar-price {
    font-weight: 800;
    letter-spacing: 0.01em;
}

.dish-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.dish-quick-actions .dish-icon-btn {
    background: var(--surface-2);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.price {
    color: var(--accent);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.dish-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dish-actions .btn {
    flex: 1 1 auto;
}

.change-image-form {
    margin: 0;
    flex: 1 1 auto;
    display: flex;
}

.change-image-form .btn {
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    border-radius: 8px;
    padding: 0.65rem 1.1rem;
    min-height: 44px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--accent);
    color: #111;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: var(--surface-2);
    color: var(--text);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

.app-dialog {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(0.75rem, env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px)) max(0.75rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
    box-sizing: border-box;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.app-dialog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.app-dialog-card {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    max-height: min(88dvh, 40rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    box-sizing: border-box;
    /* Evita heredar --admin-text (oscuro) del dashboard claro */
    color: var(--text);
}

.app-dialog-card h2 {
    margin: 0 0 0.75rem;
    color: var(--text);
}

.app-dialog-card p {
    margin: 0;
    color: #e2e8f0;
    white-space: pre-line;
}

.app-dialog-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 0.85rem;
}

.app-dialog-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 999px;
    font-size: 1.45rem;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.app-dialog-icon--info {
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(59, 130, 246, 0.35);
}

.app-dialog-icon--success {
    background: rgba(34, 197, 94, 0.16);
    border-color: rgba(34, 197, 94, 0.35);
}

.app-dialog-icon--warning {
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.35);
}

.app-dialog-icon--danger {
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(239, 68, 68, 0.35);
}

.app-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.flash-messages {
    margin-bottom: 1rem;
}

.flash {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.flash-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid var(--success);
}

.flash-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--danger);
}

.flash-warning {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid var(--warning);
}

.auth-card,
.admin-panel {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 1.5rem;
    max-width: 480px;
}

.admin-panel {
    max-width: none;
}

.form label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.form input,
.form select {
    width: 100%;
    padding: 0.65rem 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 1rem;
}

.form input[type="file"] {
    padding: 0.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.plato-create-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.plato-create-form .form-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.plato-create-form .form-field label,
.plato-create-form .categoria-select-label {
    margin-bottom: 0;
}

.plato-create-form .form-field input,
.plato-create-form .form-field select,
.plato-create-form .form-field .categoria-select {
    margin-bottom: 0;
}

.plato-create-form .form-row--meta {
    display: grid;
    grid-template-columns: minmax(110px, 0.9fr) minmax(150px, 1.1fr) minmax(220px, 2fr);
    gap: 0.85rem 1rem;
    align-items: end;
}

.plato-create-form .form-row--models {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
    align-items: end;
}

.plato-create-form .form-actions {
    margin-top: 0.25rem;
}

.form-actions {
    grid-column: 1 / -1;
}

.admin-header h1 {
    margin-top: 0;
}

.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-filters {
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(220px, 1fr) auto;
    gap: 0.85rem 1rem;
    align-items: end;
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: var(--surface-2);
}

.admin-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.admin-filter-field--grow {
    min-width: 0;
}

.admin-filter-field label {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 600;
}

.admin-filter-field select,
.admin-filter-field input {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text);
}

.admin-filter-count {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
    white-space: nowrap;
    align-self: end;
    padding-bottom: 0.55rem;
}

.plato-admin-row.is-filtered-out {
    display: none;
}

.plato-row {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-table--platos thead th {
    font-size: 0.9rem;
    text-align: left;
    padding: 0 0 0.75rem;
    color: var(--text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.plato-list-form {
    display: none;
}

.admin-dialog .plato-list-form,
.admin-dialog .plato-edit-form {
    display: block;
}

.plato-list-item {
    min-width: 0;
}

.plato-list-main {
    display: grid;
    grid-template-columns: minmax(150px, 2fr) minmax(90px, 0.8fr) minmax(170px, 1.2fr) minmax(90px, 0.7fr) minmax(240px, 1.4fr);
    gap: 0.75rem 1rem;
    align-items: end;
}

.plato-list-field input,
.plato-list-field .categoria-select {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 0.95rem;
}

.plato-list-field .categoria-select-label,
.plato-list-field .sr-only + .categoria-select {
    margin-top: 0;
}

.plato-list-field--estado {
    display: flex;
    align-items: center;
    min-height: 42px;
}

.plato-list-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.plato-list-actions .inline-form {
    display: inline-flex;
}

.plato-list-archivos {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.plato-list-archivos-title {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.plato-archivos-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem 1rem;
}

.plato-ar-preview-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    margin-top: 0.85rem;
}

.plato-ar-preview-row .admin-field-hint {
    margin: 0;
}

.plato-archivo-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    font-size: 0.82rem;
}

.plato-archivo-label {
    color: var(--text);
    font-weight: 600;
    white-space: nowrap;
}

.plato-archivo-name {
    flex: 1 1 120px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted);
}

.plato-file-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 0.78rem;
    cursor: pointer;
    white-space: nowrap;
}

.plato-file-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

.plato-optimize-btn {
    white-space: nowrap;
}

.plato-optimize-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.plato-preview-thumb {
    width: 120px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--surface-2);
    flex-shrink: 0;
}

.plato-preview-thumb--inline {
    width: 48px;
    height: 36px;
    border-radius: 6px;
}

.plato-preview-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plato-preview-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0.25rem;
    text-align: center;
    font-size: 0.65rem;
    color: var(--muted);
    line-height: 1.2;
}

.plato-edit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    align-items: start;
}

.plato-edit-grid input,
.plato-edit-grid select,
.categoria-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    background: var(--surface-2);
    color: var(--text);
}

.categoria-select-label {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.25rem;
}

.badge-category {
    align-self: center;
    white-space: nowrap;
}

.plato-edit-actions {
    margin-top: 0.75rem;
}

.file-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.file-inputs input {
    margin: 0;
}

.row-actions,
.row-actions-extra {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.row-actions-extra {
    margin-top: 0.75rem;
}

.inline-form {
    display: inline;
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-active {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success);
}

.badge-hidden {
    background: rgba(148, 163, 184, 0.2);
    color: var(--muted);
}

.nav-admin {
    color: var(--accent) !important;
    font-weight: 700;
}

.empty-state-card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    max-width: 560px;
    margin: 2rem auto;
    box-shadow: var(--shadow);
}

.empty-state-card h2 {
    margin-top: 0;
}

.empty-state-card p {
    color: var(--muted);
}

.setup-steps {
    text-align: left;
    margin: 1.5rem auto;
    max-width: 420px;
    color: var(--muted);
    line-height: 1.7;
}

.empty-state {
    text-align: center;
    color: var(--muted);
    padding: 2rem;
}

.ar-modal {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ar-modal.hidden {
    display: none;
}

html.ar-modal-open,
html.ar-modal-open body {
    overflow: hidden;
}

.ar-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.ar-modal-content {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.25rem;
    width: min(520px, 92vw);
    z-index: 1;
    box-shadow: var(--shadow);
}

#ar-viewer {
    display: block;
    width: 100%;
    height: min(60vh, 520px);
    min-height: 280px;
    background: rgba(15, 20, 25, 0.35);
    border-radius: 12px;
    overflow: hidden;
    --poster-color: transparent;
}

.ar-loading {
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent);
    font-size: 0.9rem;
}

.ar-loading-label {
    margin: 0 0 0.65rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
}

.ar-loading-progress {
    width: 100%;
    height: 0.45rem;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.18);
    overflow: hidden;
}

.ar-loading-progress-bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #d97706 0%, #f59e0b 55%, #fbbf24 100%);
    transition: width 0.18s ease-out;
}

.ar-loading.is-indeterminate .ar-loading-progress-bar {
    width: 35%;
    animation: ar-loading-indeterminate 1.1s ease-in-out infinite;
}

.ar-loading-pct {
    margin: 0.45rem 0 0;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: right;
    color: var(--accent);
}

.ar-loading.is-error .ar-loading-label,
.ar-loading.is-error .ar-loading-pct {
    color: #f87171;
}

.ar-loading.is-error .ar-loading-progress {
    background: rgba(239, 68, 68, 0.15);
}

.ar-loading.is-error .ar-loading-progress-bar {
    background: #ef4444;
    animation: none;
}

@keyframes ar-loading-indeterminate {
    0% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(320%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ar-loading.is-indeterminate .ar-loading-progress-bar {
        animation: none;
        width: 55%;
        margin: 0 auto;
    }

    .ar-loading-progress-bar {
        transition: none;
    }
}

.ar-loading.is-error {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

.ar-modal-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin: -0.25rem 0 0.75rem;
}

.ar-modal-toolbar #ar-modal-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.3;
}

.ar-modal-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
    min-width: 44px;
    min-height: 44px;
}

.ar-modal-actions {
    display: flex;
    align-items: stretch;
    gap: 0.55rem;
    flex-shrink: 0;
    margin-top: 0.85rem;
}

.ar-launch-btn {
    flex: 1 1 52%;
    width: auto;
    min-width: 0;
    margin: 0;
    min-height: 44px;
    font-weight: 700;
}

.ar-launch-btn:not(.hidden) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ar-launch-btn.hidden {
    display: none;
}

.ar-modal-actions:has(.ar-launch-btn.hidden) .ar-back-menu {
    flex: 1 1 100%;
}

.ar-native-btn {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.ar-hint {
    color: var(--muted);
    font-size: 0.85rem;
    margin: 0.75rem 0 0;
}

.ar-back-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex: 1 1 48%;
    width: auto;
    min-width: 0;
    min-height: 46px;
    margin: 0;
    padding: 0.55rem 0.7rem;
    text-align: center;
}

html.ar-modal-open .site-top-fixed {
    visibility: hidden;
    pointer-events: none;
}

html.ar-modal-open .ar-modal {
    z-index: 700;
}

html.ar-modal-open.has-atmosphere main.container,
html.ar-modal-open body.has-atmosphere main.container {
    z-index: 700;
}

@media (max-width: 768px), (hover: none) {
    .ar-modal {
        align-items: stretch;
        justify-content: stretch;
        padding: 0;
    }

    .ar-modal--mobile .ar-modal-content,
    .ar-modal-content {
        width: 100%;
        max-width: none;
        height: 100%;
        height: 100dvh;
        max-height: 100dvh;
        min-height: 0;
        overflow: hidden;
        border-radius: 0;
        padding: max(1.15rem, calc(env(safe-area-inset-top, 0px) + 0.85rem)) 1rem max(1rem, env(safe-area-inset-bottom));
        display: flex;
        flex-direction: column;
    }

    .ar-modal-toolbar {
        position: relative;
        top: auto;
        z-index: 2;
        margin: 0.35rem 0 0.85rem;
        padding: 0.15rem 0 0.2rem;
        background: transparent;
    }

    .ar-modal-close {
        display: none;
    }

    .ar-back-menu {
        min-height: 48px;
        font-size: 0.92rem;
        font-weight: 700;
    }

    #ar-loading {
        flex-shrink: 0;
    }

    .ar-modal-toolbar #ar-modal-title,
    #ar-modal-title {
        margin: 0;
        padding-top: 0.15rem;
        font-size: 1.2rem;
        line-height: 1.25;
    }

    #ar-viewer {
        flex: 1 1 0;
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
    }

    .ar-modal-actions,
    .ar-hint {
        flex-shrink: 0;
    }

    .ar-modal-actions {
        margin-top: 0.85rem;
        gap: 0.5rem;
    }

    .ar-launch-btn {
        min-height: 48px;
        font-size: 0.92rem;
    }

    .ar-hint {
        margin-top: 0.65rem;
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

.dish-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 290;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.dish-image-lightbox.hidden {
    display: none;
}

html.dish-lightbox-open,
html.dish-lightbox-open body {
    overflow: hidden;
}

.dish-image-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
}

.dish-image-lightbox-content {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    max-height: min(92dvh, 92vh);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.dish-image-lightbox-close {
    position: absolute;
    top: -0.25rem;
    right: 0;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(15, 20, 25, 0.82);
    color: var(--text);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.dish-image-lightbox-close:hover,
.dish-image-lightbox-close:focus-visible {
    background: rgba(15, 20, 25, 0.95);
    outline: none;
}

.dish-image-lightbox-title {
    margin: 0;
    width: 100%;
    padding-right: 2.75rem;
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

.dish-image-lightbox-img {
    width: 100%;
    max-height: min(78dvh, 78vh);
    object-fit: contain;
    border-radius: 14px;
    background: rgba(15, 20, 25, 0.55);
    box-shadow: var(--shadow);
}

.dish-image-lightbox-ar {
    margin-top: 0.15rem;
    min-width: 9.5rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.dish-image-lightbox-ar[hidden] {
    display: none !important;
}

@media (max-width: 900px) {
    .container {
        width: min(1100px, 94%);
    }

    .plato-edit-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }
}

@media (max-width: 720px) {
    main.container {
        padding: 1rem 0 calc(7rem + env(safe-area-inset-bottom, 0px));
    }

    body.has-compare-bar main.container {
        padding-bottom: calc(8.5rem + env(safe-area-inset-bottom, 0px));
    }

    body.has-order-bar main.container {
        padding-bottom: calc(11rem + env(safe-area-inset-bottom, 0px));
    }

    body.has-order-bar.has-compare-bar main.container {
        padding-bottom: calc(13.5rem + env(safe-area-inset-bottom, 0px));
    }

    .admin-panel,
    .auth-card {
        padding: 1.15rem;
    }

    .admin-filters {
        grid-template-columns: 1fr;
    }

    .plato-create-form .form-row--meta,
    .plato-create-form .form-row--models {
        grid-template-columns: 1fr;
    }

    .plato-list-main,
    .plato-archivos-row {
        grid-template-columns: 1fr;
    }

    .plato-list-field--actions {
        grid-column: 1 / -1;
    }

    .plato-list-actions {
        width: 100%;
    }

    .plato-list-actions .btn {
        flex: 1 1 auto;
    }

    .admin-filter-count {
        padding-bottom: 0;
    }

    .row-actions .btn,
    .row-actions-extra .btn {
        flex: 1 1 auto;
    }

    .row-actions-extra .inline-form {
        display: flex;
        flex: 1 1 auto;
    }

    .row-actions-extra .inline-form .btn {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .header-inner {
        flex-wrap: wrap;
        align-items: center;
        gap: 0.65rem;
    }

    .header-inner--guest {
        flex-wrap: nowrap;
        padding: 0.4rem 0;
    }

    .header-inner--guest .brand-logo {
        width: 40px;
        height: 40px;
    }

    .header-inner--guest .brand-name {
        font-size: 0.95rem;
    }

    .header-inner--guest .brand-meta {
        -webkit-line-clamp: 1;
        font-size: 0.68rem;
    }

    .guest-app-menu--header .guest-app-menu-btn {
        width: 36px;
        height: 36px;
        border-radius: 9px;
    }

    .guest-app-menu--header .guest-app-menu-panel,
    body > .guest-app-menu-panel {
        left: auto;
        right: max(0.5rem, env(safe-area-inset-right, 0px));
        max-width: min(18rem, calc(100vw - 1rem));
    }

    .sheet-panel,
    #compare-sheet .sheet-panel,
    #reserve-sheet .sheet-panel,
    #reservations-sheet .sheet-panel,
    #maps-sheet .sheet-panel {
        width: 100%;
        max-width: none;
    }

    #compare-sheet .sheet-panel {
        max-height: min(92dvh, calc(100dvh - env(safe-area-inset-top, 0px)));
        height: min(92dvh, calc(100dvh - env(safe-area-inset-top, 0px)));
    }

    .brand-block {
        flex: 1 1 auto;
        min-width: 0;
    }

    .site-nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.65rem 0.85rem;
    }

    .site-header nav {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .dish-grid {
        grid-template-columns: 1fr;
    }

    .dish-preview,
    .dish-preview-media model-viewer {
        height: 200px;
    }

    .dish-icon-btn {
        width: 40px;
        height: 40px;
        padding: 8px;
    }

    .dish-icon-svg {
        width: 22px;
        height: 22px;
    }

    .compare-item-top {
        grid-template-columns: 64px minmax(0, 1fr) auto;
        gap: 0.6rem;
    }

    .compare-item-icons {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 0.3rem;
    }

    .compare-icon-btn {
        width: 100%;
        max-width: 42px;
        height: 42px;
        margin: 0 auto;
    }

    .order-bar,
    .compare-bar {
        width: min(92vw, 420px);
        justify-content: center;
        font-size: 0.88rem;
        padding-inline: 1rem;
    }

    .app-dialog {
        align-items: flex-end;
        justify-content: stretch;
        padding: 0;
    }

    .app-dialog-card {
        width: 100%;
        max-width: none;
        max-height: min(88dvh, calc(100dvh - env(safe-area-inset-top, 0px)));
        border-radius: 18px 18px 0 0;
        padding: 1.15rem 1.1rem calc(1.15rem + env(safe-area-inset-bottom, 0px));
    }

    .app-dialog-actions {
        flex-direction: column-reverse;
        flex-wrap: nowrap;
        position: sticky;
        bottom: 0;
        z-index: 1;
        margin-bottom: calc(-1.15rem - env(safe-area-inset-bottom, 0px));
        padding: 0.75rem 0 calc(1.15rem + env(safe-area-inset-bottom, 0px));
        background: linear-gradient(180deg, transparent 0%, var(--surface) 28%, var(--surface) 100%);
    }

    .app-dialog-actions .btn {
        width: 100%;
        min-height: 2.75rem;
    }

    .auth-card {
        max-width: none;
    }
}

@media (max-width: 380px) {
    .dish-actions {
        flex-direction: column;
    }

    .dish-actions .btn,
    .change-image-form .btn {
        width: 100%;
    }

    .reserve-form-actions {
        grid-template-columns: 1fr;
    }

    .reserve-form-row--people-name {
        grid-template-columns: 1fr;
    }
}

/* ── Acceso comensal (Instagram / WhatsApp) ── */
.guest-access {
    max-width: 480px;
    margin: 1rem auto 2rem;
}

.guest-auth-card h1 {
    margin-top: 0;
}

.guest-auth-lead {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 48px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    width: 100%;
}

.btn-social-icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.18);
}

.btn-instagram {
    background: linear-gradient(135deg, #f58529 0%, #dd2a7b 45%, #8134af 100%);
    color: #fff;
}

.btn-whatsapp,
.btn-whatsapp-link {
    background: #25d366;
    color: #fff;
}

.btn-email {
    background: #3b82f6;
    color: #fff;
}

.whatsapp-login-form label,
.email-login-form label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.whatsapp-login-form input,
.email-login-form input {
    width: 100%;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 1rem;
}

.whatsapp-verify-card,
.email-verify-card {
    padding: 1rem;
    border-radius: 12px;
    background: var(--surface-2);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.whatsapp-verify-card h2,
.email-verify-card h2 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}

.demo-code-hint {
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: var(--accent);
    font-size: 0.9rem;
}

.whatsapp-debug-log {
    margin: 0.75rem 0;
    padding: 0.75rem;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.25);
    font-size: 0.82rem;
    color: var(--text, #e2e8f0);
}

.whatsapp-send-status {
    margin: 0.75rem 0;
    padding: 0.85rem;
    border-radius: 8px;
    font-size: 0.84rem;
}

.whatsapp-send-status--ok {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.whatsapp-send-status--error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.whatsapp-http-code {
    margin: 0.45rem 0 0.6rem;
    font-size: 0.95rem;
}

.whatsapp-http-code span {
    font-weight: 800;
    font-size: 1.15rem;
}

.whatsapp-send-status-details {
    margin: 0;
    padding-left: 1.1rem;
}

.whatsapp-send-status-details li {
    margin: 0.2rem 0;
    word-break: break-word;
}

.guest-auth-note {
    margin: 1.25rem 0 0;
    padding: 0.75rem;
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.12);
    color: var(--muted);
    font-size: 0.85rem;
}

.guest-auth-footer {
    margin: 1.25rem 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.guest-consent-label {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    margin: 0 0 1rem;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.1);
    color: var(--text);
    font-size: 0.88rem;
    line-height: 1.45;
}

.guest-consent-label input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.guest-instagram-form,
.whatsapp-login-form,
.email-login-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.menu-category-nav-btn--promo {
    border-color: rgba(245, 158, 11, 0.45);
    color: #fbbf24;
}

.accordion-item--promo .accordion-cat-icon {
    color: #fbbf24;
    font-weight: 700;
}

.dish-card--promo {
    outline: 1px solid rgba(245, 158, 11, 0.25);
}

.dish-price-original,
.btn-ar-price-original {
    text-decoration: line-through;
    opacity: 0.65;
    margin-right: 0.35rem;
}

.dish-price-promo,
.btn-ar-price-promo {
    color: #fbbf24;
    font-weight: 700;
}

.dish-promo-badge {
    display: inline-block;
    margin-left: 0.45rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    vertical-align: middle;
}

.admin-cat-badge--muted {
    opacity: 0.75;
}

.crm-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1rem;
}

.crm-filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
}

.crm-filter-chip.is-active {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.45);
    color: #93c5fd;
}

.crm-filter-chip--ig.is-active {
    background: rgba(236, 72, 153, 0.12);
    border-color: rgba(236, 72, 153, 0.35);
    color: #f9a8d4;
}

.crm-filter-chip--wa.is-active {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
    color: #86efac;
}

.crm-filter-chip--email.is-active {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.35);
    color: #93c5fd;
}

.crm-provider-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}

.crm-provider-badge--instagram {
    background: rgba(236, 72, 153, 0.15);
    color: #f9a8d4;
}

.crm-provider-badge--whatsapp {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
}

.crm-provider-badge--email {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
}

.footer-restaurant {
    margin-bottom: 0.75rem;
}

.footer-restaurant-details {
    margin-top: 0.55rem;
}

/* Rendimiento móvil */
@media (max-width: 768px), (hover: none) {
    .container {
        width: 100%;
        max-width: none;
        padding-left: max(0.55rem, env(safe-area-inset-left, 0px));
        padding-right: max(0.55rem, env(safe-area-inset-right, 0px));
    }

    .menu-accordion {
        gap: 0.5rem;
        margin-bottom: 1.25rem;
    }

    .accordion-trigger {
        padding: 0.85rem 0.8rem;
        gap: 0.55rem;
    }

    .accordion-label {
        gap: 0.55rem;
    }

    .accordion-cat-icon {
        width: 2rem;
        height: 2rem;
    }

    .accordion-cat-svg {
        width: 1.1rem;
        height: 1.1rem;
    }

    .accordion-panel {
        padding: 0.35rem 0.4rem 0.7rem;
    }

    .dish-grid {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .dish-card {
        width: 100%;
        max-width: none;
    }

    .dish-card--simple {
        display: grid;
        grid-template-columns: minmax(112px, 36%) minmax(0, 1fr);
        align-items: stretch;
    }

    .dish-card--simple .dish-preview--simple {
        min-height: 0;
        height: auto;
    }

    .dish-card--simple .dish-info {
        padding: 0.5rem 0.55rem 0.55rem 0.45rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-width: 0;
        gap: 0.35rem;
    }

    .dish-card--simple .dish-info-header {
        margin: 0;
    }

    .dish-card--simple .dish-info h3 {
        font-size: 0.98rem;
        line-height: 1.2;
        margin: 0;
    }

    .dish-card--simple .price,
    .dish-price-desktop {
        display: none;
    }

    .dish-card--simple .dish-quick-actions {
        margin: 0;
        gap: 0.22rem;
    }

    .dish-card--simple .dish-quick-actions .dish-icon-btn {
        width: 34px;
        height: 34px;
        padding: 6px;
        flex: 0 0 auto;
    }

    .dish-card--simple .dish-quick-actions .dish-icon-svg {
        width: 16px;
        height: 16px;
    }

    .dish-card--simple .dish-actions {
        margin-top: auto;
        gap: 0.35rem;
    }

    .dish-card--simple .btn-ar {
        min-height: 38px;
        padding: 0.4rem 0.65rem;
        font-size: 0.82rem;
        border-radius: 10px;
        width: 100%;
        flex: 1 1 auto;
    }

    .dish-card--simple .dish-diet-pills,
    .dish-card--simple .dish-ar-views {
        display: none;
    }

    .dish-info {
        padding: 0.85rem 0.9rem 1rem;
    }

    .order-bar,
    .compare-bar {
        left: max(0.55rem, env(safe-area-inset-left, 0px));
        right: max(0.55rem, env(safe-area-inset-right, 0px));
        width: auto;
        max-width: none;
    }

    .site-footer {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 215;
        margin: 0;
        padding: 0.4rem 0 calc(0.4rem + env(safe-area-inset-bottom, 0px));
        background: rgba(15, 20, 25, 0.98);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        pointer-events: none;
    }

    body.has-compare-bar .site-footer,
    body.has-order-bar .site-footer {
        bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
        padding-bottom: 0.4rem;
    }

    body.has-order-bar.has-compare-bar .site-footer {
        bottom: calc(8.25rem + env(safe-area-inset-bottom, 0px));
    }

    .footer-info-btn {
        display: inline-flex;
        pointer-events: auto;
    }

    .hero {
        text-align: left;
        margin-bottom: 0.65rem;
    }

    .hero-lede {
        display: none;
    }

    .hero-title-row {
        justify-content: flex-start;
    }

    .hero-title-row h1 {
        font-size: clamp(1rem, 5.2vw, 1.2rem);
        white-space: nowrap;
    }

    .guest-filter-row {
        margin-top: 0.55rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.2rem;
    }

    .guest-filter-row::-webkit-scrollbar {
        display: none;
    }

    .guest-chip {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .footer-restaurant-details {
        display: none;
    }

    .footer-restaurant-name {
        font-size: 0.95rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    main.container {
        padding-bottom: calc(3.75rem + env(safe-area-inset-bottom, 0px));
    }

    body.has-compare-bar main.container,
    body.has-order-bar main.container {
        padding-bottom: calc(8.5rem + env(safe-area-inset-bottom, 0px));
    }

    body.has-order-bar.has-compare-bar main.container {
        padding-bottom: calc(12rem + env(safe-area-inset-bottom, 0px));
    }

    .dish-preview-3d {
        display: none !important;
    }

    .dish-preview-media {
        cursor: default;
    }

    .dish-preview-media img,
    .dish-preview-media model-viewer,
    .dish-preview-media .dish-preview-placeholder {
        transition: none;
        transform: none;
        will-change: auto;
    }

    .dish-preview-photo--progressive.is-placeholder-ready:not(.is-loaded) {
        filter: blur(10px);
        transform: scale(1.04);
        transition: filter 0.35s ease, transform 0.35s ease;
    }

    .dish-preview-photo--progressive.is-loaded,
    .dish-preview-photo--progressive.is-load-error {
        filter: none;
        transform: none;
    }

    .accordion-item {
        box-shadow: none;
        overflow: visible;
    }

    .accordion-trigger {
        position: relative;
        z-index: 3;
        isolation: isolate;
        transition: none;
    }

    .accordion-item.is-open .accordion-panel {
        max-height: min(58dvh, calc(100dvh - 11rem));
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        overflow-anchor: none;
        contain: layout style;
        position: relative;
        z-index: 1;
    }

    body.has-compare-bar .accordion-item.is-open .accordion-panel {
        max-height: min(52dvh, calc(100dvh - 14rem));
    }

    body.has-order-bar .accordion-item.is-open .accordion-panel {
        max-height: min(50dvh, calc(100dvh - 16rem));
    }

    body.has-order-bar.has-compare-bar .accordion-item.is-open .accordion-panel {
        max-height: min(46dvh, calc(100dvh - 19rem));
    }

    .accordion-panel .dish-card,
    .accordion-panel .dish-preview,
    .accordion-panel .dish-preview-media {
        overflow: hidden;
        box-shadow: none;
    }

    .accordion-panel .dish-preview,
    .accordion-panel .dish-preview-media,
    .accordion-panel .dish-preview--simple .dish-preview-media {
        height: min(42vw, 220px);
        min-height: 180px;
    }

    .accordion-panel .dish-card--simple .dish-preview,
    .accordion-panel .dish-card--simple .dish-preview-media,
    .accordion-panel .dish-card--simple .dish-preview--simple,
    .accordion-panel .dish-card--simple .dish-preview--simple .dish-preview-media {
        height: 100%;
        min-height: 118px;
        max-height: 148px;
    }

    .dish-card--simple .dish-preview-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .compare-sheet-body {
        overflow-anchor: none;
    }

    .order-bar,
    .compare-bar {
        font-size: 0.88rem;
        padding-inline: 1rem;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
    }

    .menu-action-sheet.is-open .sheet-panel,
    .menu-sheet.is-open .sheet-panel {
        transition: transform 0.2s ease;
    }
}

@media (hover: hover) and (pointer: fine) and (min-width: 769px) {
    .dish-preview {
        height: 160px;
    }

    .dish-preview--simple .dish-preview-media {
        height: 140px;
    }

    .dish-preview-media model-viewer {
        height: 160px;
    }

    .dish-preview-media img {
        object-fit: cover;
        padding: 0;
    }

    .dish-preview-media:has(.dish-preview-3d) .dish-preview-photo--fallback {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dish-preview-media img,
    .dish-preview-media model-viewer,
    .dish-preview-media .dish-preview-placeholder {
        transition: none;
        transform: none;
    }
}

/* Admin dashboard — sidebar layout */
.admin-dashboard {
    --admin-sidebar-bg: #151929;
    --admin-sidebar-text: #94a3b8;
    --admin-sidebar-active: #ff7a21;
    --admin-sidebar-width: 260px;
    --admin-sidebar-width-collapsed: 76px;
    --admin-shell-bg: #eef1f7;
    --admin-card-bg: #ffffff;
    --admin-text: #1e293b;
    --admin-muted: #64748b;
    --admin-border: #e2e8f0;
    --admin-input-bg: #f8fafc;
    margin: 0;
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--admin-sidebar-width) minmax(0, 1fr);
    background: var(--admin-shell-bg);
    color: var(--admin-text);
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    transition: grid-template-columns 0.2s ease;
}

.admin-dashboard.is-sidebar-collapsed {
    grid-template-columns: var(--admin-sidebar-width-collapsed) minmax(0, 1fr);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 1.35rem 1rem 1.25rem;
    background: var(--admin-sidebar-bg);
    color: #e2e8f0;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    width: var(--admin-sidebar-width);
    transition: width 0.2s ease, padding 0.2s ease;
}

.admin-dashboard.is-sidebar-collapsed .admin-sidebar {
    width: var(--admin-sidebar-width-collapsed);
    padding-left: 0.65rem;
    padding-right: 0.65rem;
}

.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0 0.15rem 1.35rem;
    margin-bottom: 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar-brand-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    flex: 1 1 auto;
    color: inherit;
    text-decoration: none;
}

.admin-sidebar-collapse-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    cursor: pointer;
    flex-shrink: 0;
}

.admin-sidebar-collapse-btn:hover,
.admin-sidebar-collapse-btn:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.admin-sidebar-collapse-icon--expand {
    display: none;
}

.admin-dashboard.is-sidebar-collapsed .admin-sidebar-collapse-icon--collapse {
    display: none;
}

.admin-dashboard.is-sidebar-collapsed .admin-sidebar-collapse-icon--expand {
    display: block;
}

.admin-sidebar-brand-text,
.admin-sidebar-link-label,
.admin-sidebar-user-name,
.admin-sidebar-logout .admin-sidebar-link-label {
    transition: opacity 0.15s ease;
}

.admin-dashboard.is-sidebar-collapsed .admin-sidebar-brand-text,
.admin-dashboard.is-sidebar-collapsed .admin-sidebar-link-label,
.admin-dashboard.is-sidebar-collapsed .admin-sidebar-user-name {
    opacity: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    pointer-events: none;
}

.admin-dashboard.is-sidebar-collapsed .admin-sidebar-link {
    justify-content: center;
    padding-left: 0.55rem;
    padding-right: 0.55rem;
}

.admin-dashboard.is-sidebar-collapsed .admin-sidebar-logout {
    justify-content: center;
}

.admin-dashboard.is-sidebar-collapsed .admin-sidebar-user {
    justify-content: center;
}

.admin-dashboard.is-sidebar-collapsed .admin-sidebar-brand {
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
}

.admin-dashboard.is-sidebar-collapsed .admin-sidebar-brand-link {
    justify-content: center;
}

.admin-topbar-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    color: var(--admin-muted);
    text-decoration: none;
}

.admin-topbar-home:hover,
.admin-topbar-home:focus-visible {
    background: rgba(15, 23, 42, 0.06);
    color: var(--admin-sidebar-active);
}

.admin-topbar-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.admin-home {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.admin-home-hero h2 {
    margin: 0 0 0.35rem;
}

.admin-home-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.admin-home-stat {
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: var(--admin-card-bg);
    border: 1px solid var(--admin-border);
}

.admin-home-stat span {
    display: block;
    font-size: 0.82rem;
    color: var(--admin-muted);
}

.admin-home-stat strong {
    display: block;
    margin-top: 0.2rem;
    font-size: 1.45rem;
}

.admin-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.85rem;
}

.admin-home-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: 14px;
    background: var(--admin-card-bg);
    border: 1px solid var(--admin-border);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-home-card:hover,
.admin-home-card:focus-visible {
    border-color: rgba(255, 122, 33, 0.45);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.admin-home-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.admin-home-card-body strong {
    font-size: 0.98rem;
}

.admin-home-card-body small {
    color: var(--admin-muted);
    line-height: 1.35;
}

.admin-home-card-icon {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 10px;
    background: rgba(255, 122, 33, 0.12);
    flex-shrink: 0;
}

.admin-reservas-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
    margin: 0 0 1rem;
}

.admin-reservas-filter label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--admin-muted);
}

.admin-reservas-filter input[type="date"] {
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: var(--admin-input-bg);
}

.admin-sidebar-logout {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.admin-sidebar-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 10px;
    background: rgba(255, 122, 33, 0.15);
    color: var(--admin-sidebar-active);
}

.admin-sidebar-brand-text {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.admin-sidebar-brand-text small {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--admin-sidebar-text);
}

.admin-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1 1 auto;
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.72rem 0.85rem;
    border-radius: 10px;
    color: var(--admin-sidebar-text);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease;
}

.admin-sidebar-link:hover,
.admin-sidebar-link:focus-visible {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.06);
}

.admin-sidebar-link.is-active {
    color: #fff;
    background: linear-gradient(90deg, rgba(255, 122, 33, 0.22), rgba(255, 122, 33, 0.08));
    box-shadow: inset 3px 0 0 var(--admin-sidebar-active);
}

.admin-sidebar-link-icon {
    display: inline-flex;
    flex-shrink: 0;
    opacity: 0.9;
}

.admin-sidebar-group {
    margin-top: 0.35rem;
    padding-top: 0.45rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar-group-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem 0.35rem;
    color: #f8fafc;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-sidebar-sublink {
    display: block;
    margin: 0.1rem 0 0.1rem 2.65rem;
    padding: 0.5rem 0.7rem;
    border-radius: 8px;
    color: var(--admin-sidebar-text);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
}

.admin-sidebar-sublink:hover,
.admin-sidebar-sublink:focus-visible,
.admin-sidebar-sublink.is-active {
    color: #fff;
    background: rgba(255, 122, 33, 0.16);
}

.admin-sidebar-foot {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.55rem;
}

.admin-sidebar-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: var(--admin-sidebar-active);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
}

.admin-sidebar-user-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #f1f5f9;
}

.admin-sidebar-logout {
    display: inline-block;
    font-size: 0.82rem;
    color: var(--admin-sidebar-text);
    text-decoration: none;
}

.admin-sidebar-logout:hover {
    color: #fff;
}

.admin-shell {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.75rem 0.85rem;
    background: var(--admin-shell-bg);
}

.admin-topbar-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.admin-topbar-title h1 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--admin-text);
}

.admin-topbar-menu {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: #fff;
    color: var(--admin-text);
    cursor: pointer;
}

.admin-topbar-tools {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.admin-topbar-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--admin-border);
    border-radius: 50%;
    background: #fff;
    color: var(--admin-muted);
    cursor: pointer;
}

.admin-topbar-bell-dot {
    position: absolute;
    top: 0.45rem;
    right: 0.5rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #ef4444;
}

.admin-topbar-search {
    position: relative;
    width: min(280px, 100%);
}

.admin-dash-page,
.admin-dash-layout {
    min-width: 0;
}

.admin-dash-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 1.25rem;
    align-items: start;
}

.admin-dash-layout--single {
    grid-template-columns: minmax(0, 1fr);
}

.admin-dash-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.admin-dash-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-dash-header h2 {
    margin: 0 0 0.25rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--admin-text);
}

.admin-dash-subtitle {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--admin-text);
}

.admin-dash-table-wrap {
    overflow-x: auto;
}

.admin-dash-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-dash-table th,
.admin-dash-table td {
    padding: 0.85rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--admin-border);
    font-size: 0.92rem;
    color: var(--admin-text);
}

.admin-dash-table thead th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--admin-muted);
    font-weight: 700;
}

.admin-dash-table tbody tr:hover {
    background: rgba(255, 122, 33, 0.04);
}

.admin-dash-empty {
    padding: 1.25rem 0.5rem;
    color: var(--admin-muted);
    font-style: italic;
}

.admin-dash-footer {
    margin: 0.85rem 0 0;
    font-size: 0.82rem;
    color: var(--admin-muted);
}

.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1rem;
}

.admin-pagination[hidden],
.admin-pagination.hidden {
    display: none;
}

.admin-page-numbers {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.admin-page-btn {
    min-height: 2.25rem;
    min-width: 2.25rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: #fff;
    color: var(--admin-text);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.admin-page-btn:hover:not(:disabled) {
    border-color: var(--admin-sidebar-active);
    color: var(--admin-sidebar-active);
}

.admin-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.admin-page-btn.is-active {
    background: var(--admin-sidebar-active);
    border-color: var(--admin-sidebar-active);
    color: #fff;
}

.admin-dash-link {
    color: var(--admin-sidebar-active);
    font-weight: 700;
    text-decoration: none;
}

.admin-dash-link:hover {
    text-decoration: underline;
}

.admin-dash-actions {
    white-space: nowrap;
}

.admin-dash-muted {
    color: var(--admin-muted);
}

.admin-role-badge {
    display: inline-flex;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.admin-role-badge--mozo {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.admin-role-badge--admin {
    background: rgba(168, 85, 247, 0.12);
    color: #9333ea;
}

.admin-status-dot {
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    margin-right: 0.35rem;
    border-radius: 50%;
    background: #94a3b8;
    vertical-align: middle;
}

.admin-status-dot.is-active {
    background: #22c55e;
}

.admin-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--admin-muted);
    cursor: pointer;
}

.admin-icon-btn:hover {
    color: var(--admin-sidebar-active);
    border-color: rgba(255, 122, 33, 0.35);
}

.admin-sector-name {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
}

.admin-open-badge {
    display: inline-flex;
    min-width: 1.75rem;
    justify-content: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-open-badge.is-open {
    background: rgba(255, 122, 33, 0.15);
    color: #ea580c;
}

.admin-summary-aside {
    position: sticky;
    top: 1rem;
    padding: 1.15rem;
    border-radius: 16px;
    background: linear-gradient(165deg, #ff8c42 0%, #ff7a21 55%, #f97316 100%);
    color: #fff;
    box-shadow: 0 12px 28px rgba(255, 122, 33, 0.25);
}

.admin-summary-aside-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 800;
}

.admin-summary-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 0.95rem;
    margin-bottom: 0.65rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.88rem;
}

.admin-summary-stat strong {
    font-size: 1.15rem;
    font-weight: 800;
}

.restaurant-switch-aside {
    position: sticky;
    top: 1rem;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid var(--admin-border);
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.restaurant-switch-aside-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--admin-text);
}

.restaurant-switch-aside-lead {
    margin: 0 0 0.85rem;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--admin-muted);
}

.restaurant-switch-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-height: min(70vh, 640px);
    overflow-y: auto;
}

.restaurant-switch-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--admin-border);
    background: #f8fafc;
    color: var(--admin-text);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.restaurant-switch-item:hover {
    border-color: rgba(255, 122, 33, 0.45);
    background: rgba(255, 122, 33, 0.06);
}

.restaurant-switch-item.is-current {
    border-color: #ff7a21;
    background: rgba(255, 122, 33, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 122, 33, 0.18);
    cursor: default;
}

.restaurant-switch-item.is-inactive:not(.is-current) {
    opacity: 0.72;
}

.restaurant-switch-item-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.restaurant-switch-item-badge {
    flex-shrink: 0;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.restaurant-switch-item-badge.is-current {
    background: #ff7a21;
    color: #fff;
}

.admin-sectors-detail-card .sector-card {
    border-color: var(--admin-border);
    background: #f8fafc;
}

.admin-dialog {
    padding: 0;
    border: none;
    background: transparent;
    width: min(720px, calc(100vw - 2rem));
    max-width: min(720px, calc(100vw - 2rem));
    margin: auto;
    box-sizing: border-box;
}

.admin-dialog::backdrop {
    background: rgba(15, 23, 42, 0.45);
}

.admin-dialog-card {
    padding: 1.25rem 1.35rem 1.35rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--admin-border);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
    box-sizing: border-box;
}

.admin-dialog-card--wide {
    max-width: 760px;
}

.admin-dialog-card--scroll {
    max-height: min(90dvh, 900px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-dialog--plato-editor {
    width: min(820px, calc(100vw - 1.5rem));
    max-width: min(820px, calc(100vw - 1.5rem));
    height: min(92dvh, 860px);
    max-height: min(92dvh, 860px);
    /* Nunca forzar display en cerrado: el <dialog> nativo usa display:none.
       Si se pone flex aquí, todas las fichas quedan “abiertas” y la X no cierra. */
    flex-direction: column;
    overflow: hidden;
}

.admin-dialog--plato-editor:not([open]) {
    display: none;
}

.admin-dialog--plato-editor[open] {
    display: flex;
    flex-direction: column;
}

.admin-dialog-card--plato-editor,
.admin-dialog-card.admin-dialog-card--plato-editor {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
    padding: 0.95rem 1.15rem 0.85rem;
}

.admin-dialog-head--plato {
    align-items: flex-start;
    margin-bottom: 0.7rem;
    flex-shrink: 0;
}

.admin-dialog-head-copy {
    min-width: 0;
}

.admin-dialog-head--plato h3 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    font-size: 1.12rem;
}

.plato-editor-title-icon {
    color: #f59e0b;
    flex-shrink: 0;
}

.plato-editor-id {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.admin-dialog-sub {
    margin: 0.28rem 0 0;
    color: var(--admin-muted);
    font-size: 0.82rem;
}

.plato-editor-form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.plato-editor {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.plato-editor > .restaurant-tabs {
    flex-shrink: 0;
    margin: 0 0 0.65rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: none;
}

.plato-editor > .restaurant-tabs::-webkit-scrollbar {
    display: none;
}

.plato-editor > .restaurant-tabs .restaurant-tab {
    flex: 0 0 auto;
    white-space: nowrap;
}

.plato-editor-col {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 0;
    padding: 0.15rem 0.1rem 0.4rem;
}

.plato-editor-col-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    flex-shrink: 0;
}

.plato-editor-col-head h4,
.plato-editor-col-head h5 {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #334155;
}

.plato-editor-col-head span {
    color: var(--admin-muted);
    font-size: 0.72rem;
    white-space: nowrap;
}

.plato-editor-col-head--sub {
    margin-top: 0.15rem;
    padding-top: 0.45rem;
    border-top: 1px solid var(--admin-border);
}

.plato-editor-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
}

.plato-editor-tag--blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.plato-editor-tag--orange {
    background: #ffedd5;
    color: #c2410c;
}

.plato-editor .admin-field {
    min-width: 0;
}

.plato-editor .admin-field label,
.plato-editor .categoria-select-label {
    margin-bottom: 0.28rem;
    font-size: 0.75rem;
}

.plato-editor .admin-field select,
.plato-editor .admin-field > input[type="text"],
.plato-editor .admin-field > input[type="number"],
.plato-editor .categoria-select,
.plato-editor .plato-input-affix input,
.plato-editor textarea {
    width: 100%;
    min-height: 2.35rem;
    margin-bottom: 0;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--admin-border);
    border-radius: 9px;
    background: #fff;
    color: var(--admin-text);
    font-size: 0.88rem;
}

.plato-editor textarea {
    min-height: 0;
    resize: none;
    line-height: 1.4;
}

.plato-editor-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

.plato-input-affix {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 2.35rem;
    padding: 0 0.7rem;
    border: 1px solid var(--admin-border);
    border-radius: 9px;
    background: #fff;
}

.plato-input-affix span {
    color: var(--admin-muted);
    font-size: 0.82rem;
    font-weight: 700;
    flex-shrink: 0;
}

.plato-input-affix input {
    border: none !important;
    background: transparent !important;
    min-height: 2.2rem !important;
    padding: 0 !important;
    box-shadow: none;
}

.plato-input-affix--suffix {
    padding-right: 0.65rem;
}

.plato-editor-files {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0;
}

.plato-file-slot {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.45rem 0.5rem;
    padding: 0.4rem 0.45rem;
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    background: #fff;
}

.plato-file-slot .admin-field-hint {
    grid-column: 1 / -1;
    margin: 0;
}

.plato-file-slot-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.plato-file-slot .plato-archivo-label {
    font-size: 0.7rem;
    color: var(--admin-muted);
}

.plato-file-slot .plato-archivo-name {
    flex: none;
    font-size: 0.78rem;
    color: var(--admin-text);
}

.plato-file-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 1.7rem;
    padding: 0 0.4rem;
    border-radius: 6px;
    background: #0f172a;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
}

.plato-editor .plato-file-btn {
    position: relative;
    overflow: hidden;
    min-height: 1.85rem;
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
}

.plato-file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.plato-editor .plato-optimize-btn {
    background: #1e3a5f;
    color: #fff;
    border: none;
    min-height: 1.85rem;
    padding: 0.3rem 0.55rem;
}

.plato-editor .plato-preview-thumb--inline {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border-color: var(--admin-border);
}

.plato-ar-preview-row {
    margin-top: 0.15rem;
}

.plato-ar-btn {
    width: 100%;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.45rem;
    background: #0f172a;
    color: #fff;
    border: none;
}

.plato-editor .plato-file-btn:hover {
    background: #f8fafc;
}

.plato-ar-btn:hover {
    background: #1e293b;
    color: #fff;
}

.plato-story-card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.55rem 0.6rem 0.6rem;
    border-radius: 12px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.plato-story-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
}

.plato-story-head strong {
    font-size: 0.82rem;
    color: #9a3412;
}

.plato-story-card textarea {
    background: #fff;
}

.plato-chip-block {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.plato-chip-label {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--admin-muted);
}

.plato-chip-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
}

.plato-file-slot-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
}

.plato-chip {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.15rem;
    padding: 0.3rem 0.45rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

.plato-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.plato-chip span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.plato-chip--allergen:has(input:checked) {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

.plato-chip--diet:has(input:checked) {
    background: #dcfce7;
    border-color: #22c55e;
    color: #166534;
}

.plato-chip--diet:has(input:checked) span::after {
    content: " ✓";
}

.plato-menu-preview {
    margin-top: auto;
    border-radius: 14px;
    background: #0f172a;
    color: #e2e8f0;
    overflow: hidden;
}

.plato-menu-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.7rem 0.35rem;
}

.plato-menu-preview-head strong {
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.plato-menu-preview-status {
    display: inline-flex;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: #f59e0b;
    color: #111;
    font-size: 0.68rem;
    font-weight: 800;
}

.plato-menu-preview-status.is-visible {
    background: #22c55e;
    color: #052e16;
}

.plato-menu-preview-body {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 0.65rem;
    padding: 0.35rem 0.7rem 0.75rem;
    align-items: center;
}

.plato-menu-preview-thumb {
    width: 58px;
    height: 58px;
    border-radius: 10px;
    overflow: hidden;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plato-menu-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plato-menu-preview-thumb span {
    color: #94a3b8;
    font-size: 0.68rem;
}

.plato-menu-preview-copy {
    min-width: 0;
}

.plato-menu-preview-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.plato-menu-preview-title-row strong {
    font-size: 0.95rem;
    color: #fff;
}

.plato-menu-preview-title-row span {
    color: #fbbf24;
    font-weight: 800;
    font-size: 0.88rem;
}

.plato-menu-preview-copy p {
    margin: 0.15rem 0 0;
    font-size: 0.75rem;
    color: #94a3b8;
}

.plato-menu-preview-note {
    color: #86efac !important;
}

/* ── Carrusel Instagram: posición de marca en postal ── */
.plato-marca-layout {
    display: grid;
    grid-template-columns: minmax(128px, 168px) minmax(0, 1fr);
    gap: 0.85rem 1rem;
    align-items: start;
}

.plato-marca-preview-frame {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    border: 1px solid var(--admin-border);
    background: linear-gradient(165deg, #1e293b 0%, #0f172a 55%, #020617 100%);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.plato-marca-preview-photo {
    position: absolute;
    inset: 22% 12% 18%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    color: rgba(148, 163, 184, 0.75);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.25;
    padding: 0.35rem;
}

.plato-marca-preview-badge {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.28rem 0.45rem;
    background: #f59e0b;
    color: #0f1419;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.2;
    text-align: center;
    box-sizing: border-box;
}

.plato-marca-preview-frame[data-marca-pos="top"] .plato-marca-preview-badge {
    top: 0;
    left: 0;
    right: 0;
    border-radius: 0 0 6px 6px;
    min-height: 18%;
}

.plato-marca-preview-frame[data-marca-pos="bottom"] .plato-marca-preview-badge {
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 6px 6px 0 0;
    min-height: 18%;
}

.plato-marca-preview-frame[data-marca-pos="top-left"] .plato-marca-preview-badge,
.plato-marca-preview-frame[data-marca-pos="top-right"] .plato-marca-preview-badge,
.plato-marca-preview-frame[data-marca-pos="bottom-left"] .plato-marca-preview-badge,
.plato-marca-preview-frame[data-marca-pos="bottom-right"] .plato-marca-preview-badge {
    max-width: 58%;
    border-radius: 6px;
}

.plato-marca-preview-frame[data-marca-pos="top-left"] .plato-marca-preview-badge {
    top: 6%;
    left: 6%;
}

.plato-marca-preview-frame[data-marca-pos="top-right"] .plato-marca-preview-badge {
    top: 6%;
    right: 6%;
}

.plato-marca-preview-frame[data-marca-pos="bottom-left"] .plato-marca-preview-badge {
    bottom: 6%;
    left: 6%;
}

.plato-marca-preview-frame[data-marca-pos="bottom-right"] .plato-marca-preview-badge {
    bottom: 6%;
    right: 6%;
}

.plato-marca-pos-grid {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}

.plato-marca-pos-option {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.5rem;
    padding: 0.45rem 0.55rem;
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--admin-text);
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.plato-marca-pos-option:has(input:checked) {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.25);
}

.plato-marca-pos-option input {
    flex-shrink: 0;
    margin: 0;
    accent-color: #f59e0b;
}


@media (max-width: 640px) {
    .plato-marca-layout {
        grid-template-columns: 1fr;
    }

    .plato-marca-preview {
        max-width: 180px;
    }

    .plato-marca-pos-grid {
        grid-template-columns: 1fr;
    }
}

.admin-dialog-actions--plato {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding-top: 0.7rem;
    border-top: 1px solid var(--admin-border);
    background: #fff;
    flex-shrink: 0;
}

.plato-editor-footnote {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin: 0;
    color: var(--admin-muted);
    font-size: 0.78rem;
    line-height: 1.35;
    max-width: 28rem;
}

.admin-dialog-actions--plato .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.admin-dialog-actions--plato .btn-secondary {
    background: #fff;
    color: var(--admin-text);
    border: 1px solid var(--admin-border);
}

.admin-dashboard .plato-editor .admin-field select,
.admin-dashboard .plato-editor .admin-field > input[type="text"],
.admin-dashboard .plato-editor .admin-field > input[type="number"],
.admin-dashboard .plato-editor .admin-field .categoria-select {
    min-height: 2.35rem;
    padding: 0.45rem 0.7rem;
}

@media (max-width: 1100px) {
    .admin-dialog--plato-editor {
        width: 100%;
        max-width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        margin: 0;
    }

    .admin-dialog-card--plato-editor,
    .admin-dialog-card.admin-dialog-card--plato-editor {
        height: 100%;
        max-height: 100%;
        overflow: hidden;
        border-radius: 0;
        padding-bottom: calc(0.9rem + env(safe-area-inset-bottom, 0px));
    }

    .plato-editor-col {
        background: #fff;
    }

    .admin-dialog-actions--plato,
    .entity-edit-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-dialog-actions--plato .admin-dialog-actions-primary,
    .entity-edit-actions .admin-dialog-actions-primary {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.55rem;
    }

    .admin-dialog-actions--plato .btn,
    .entity-edit-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .entity-edit-footnote,
    .plato-editor-footnote {
        margin-right: 0;
        max-width: none;
    }
}

@media (max-width: 720px) {
    .plato-editor-pair {
        grid-template-columns: 1fr;
    }

    .plato-file-slot {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .plato-file-slot-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .plato-menu-preview-body {
        grid-template-columns: 1fr;
    }

    .admin-dialog-head--plato h3 {
        font-size: 1rem;
    }

    .plato-editor-footnote {
        max-width: none;
    }
}

.admin-dialog-section-title {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--admin-muted);
}

.admin-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.admin-dialog-head h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--admin-text);
}

.admin-dialog-close {
    border: none;
    background: transparent;
    color: var(--admin-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.admin-dialog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.admin-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 1rem;
}

.admin-dashboard .admin-panel {
    max-width: none;
    margin-bottom: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.admin-dashboard .admin-panel .form input,
.admin-dashboard .admin-panel .form select,
.admin-dashboard .admin-panel .form textarea {
    margin-bottom: 0;
    background: var(--admin-input-bg);
    border-color: var(--admin-border);
    color: var(--admin-text);
}

.admin-dashboard .admin-filters {
    background: #f8fafc;
    border-color: var(--admin-border);
}

.admin-dashboard .admin-filter-field select,
.admin-dashboard .admin-filter-field input {
    background: #fff;
    border-color: var(--admin-border);
    color: var(--admin-text);
}

.admin-dashboard .mozos-inline-options {
    background: #f8fafc;
    border-color: var(--admin-border);
}

.admin-dashboard .mozos-check-pill {
    color: var(--admin-text);
}

.estacion-field {
    margin-top: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.estacion-assoc-row {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 0.85rem 1rem;
    margin-top: 0.75rem;
    align-items: stretch;
}

.estacion-meta-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(4.5rem, 0.55fr) minmax(5rem, 0.7fr) minmax(4.5rem, 0.55fr);
    gap: 0.65rem 0.75rem;
}

.estacion-field > label:first-child {
    display: block;
    margin-bottom: 0;
    font-weight: 600;
    color: var(--admin-text);
    font-size: 0.9rem;
}

.estacion-field-optional {
    font-weight: 500;
    color: var(--admin-muted);
    font-size: 0.82em;
}

.estacion-field-hint {
    margin: 0;
    font-size: 0.78rem;
    color: var(--admin-muted);
    line-height: 1.35;
}

.estacion-field-hint--short {
    margin-bottom: 0.15rem;
}

.estacion-field-hint--tiny {
    font-size: 0.72rem;
    opacity: 0.9;
}

.estacion-platos-filter-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.35rem;
    max-width: none;
}

.estacion-platos-filter-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--admin-muted);
}

.estacion-platos-cat-filter,
.estacion-multiselect {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: #fff;
    color: var(--admin-text);
    font: inherit;
}

.estacion-platos-cat-filter {
    min-height: 2.25rem;
    padding: 0.3rem 0.5rem;
}

.estacion-multiselect {
    flex: 1 1 auto;
    min-height: 8.5rem;
    max-height: 12rem;
    padding: 0.3rem 0.4rem;
    line-height: 1.3;
    overflow: auto;
}

.estacion-multiselect option {
    padding: 0.15rem 0.3rem;
    border-radius: 4px;
}

.estacion-multiselect option:checked {
    background: linear-gradient(0deg, rgba(245, 158, 11, 0.22), rgba(245, 158, 11, 0.22));
    color: var(--admin-text);
}

.estacion-form-actions {
    position: sticky;
    bottom: 0;
    z-index: 8;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 0.75rem;
    padding: 0.65rem 0 0.15rem;
    border-top: 1px solid var(--admin-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, #fff 35%);
}

.estacion-form-actions .btn {
    min-height: 2.65rem;
    min-width: 7.5rem;
}

@media (max-width: 900px) {
    .estacion-assoc-row {
        grid-template-columns: 1fr;
    }

    .estacion-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .admin-dash-layout {
        grid-template-columns: 1fr;
    }

    .admin-summary-aside {
        position: static;
    }
}

@media (max-width: 900px) {
    .admin-topbar-menu {
        display: inline-flex;
    }

    .admin-sidebar-collapse-btn {
        display: none;
    }

    .admin-dashboard.is-sidebar-collapsed .admin-sidebar-brand-text,
    .admin-dashboard.is-sidebar-collapsed .admin-sidebar-link-label,
    .admin-dashboard.is-sidebar-collapsed .admin-sidebar-user-name {
        opacity: 1;
        width: auto;
        pointer-events: auto;
    }

    .admin-dashboard.is-sidebar-collapsed .admin-sidebar-link,
    .admin-dashboard.is-sidebar-collapsed .admin-sidebar-logout {
        justify-content: flex-start;
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .admin-home-stats {
        grid-template-columns: 1fr;
    }

    .admin-dashboard {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
    }

    .admin-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 200;
        width: min(260px, 86vw);
        height: 100dvh;
        max-height: 100dvh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translateX(-105%);
        transition: transform 0.2s ease;
        padding-top: max(1.35rem, env(safe-area-inset-top, 0px));
        padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
    }

    .admin-sidebar.is-open {
        transform: translateX(0);
    }

    .admin-shell {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
    }

    .admin-topbar {
        position: sticky;
        top: 0;
        z-index: 80;
        padding: max(0.75rem, env(safe-area-inset-top, 0px)) 1rem 0.75rem;
        background: var(--admin-shell-bg);
    }

    .admin-main {
        padding: 0 1rem 1.5rem;
    }

    .admin-dash-header {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-dialog-grid {
        grid-template-columns: 1fr;
    }

    .admin-dialog {
        width: 100%;
        max-width: 100%;
        margin: auto 0 0;
        max-height: 100dvh;
    }

    .admin-dialog.admin-dialog--plato-editor {
        height: 100dvh;
        max-height: 100dvh;
        margin: 0;
    }

    .admin-dialog-card,
    .admin-dialog-card--wide,
    .admin-dialog-card--scroll {
        border-radius: 18px 18px 0 0;
        max-height: min(92dvh, calc(100dvh - env(safe-area-inset-top, 0px)));
        overflow: hidden;
        padding: 1rem 1.05rem calc(1rem + env(safe-area-inset-bottom, 0px));
    }

    .admin-dialog-card.admin-dialog-card--plato-editor {
        border-radius: 0;
        max-height: 100%;
        overflow: hidden;
        padding: 0.95rem 1.15rem calc(0.9rem + env(safe-area-inset-bottom, 0px));
    }

    .admin-dialog-head {
        gap: 0.65rem;
        align-items: flex-start;
    }

    .admin-dialog-actions,
    .admin-dialog-actions--split,
    .entity-edit-actions {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-end;
    }

    .admin-dialog-actions .btn,
    .admin-dialog-actions-primary,
    .admin-dialog-actions-secondary {
        width: 100%;
    }

    .admin-dialog-actions-primary,
    .admin-dialog-actions-secondary {
        flex-direction: column-reverse;
    }

    .admin-dialog-actions .btn {
        min-height: 2.75rem;
    }
}


.admin-topbar-search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--admin-muted);
    pointer-events: none;
}

.admin-topbar-search input {
    width: 100%;
    min-height: 2.65rem;
    padding: 0.55rem 0.85rem 0.55rem 2.35rem;
    border: 1px solid var(--admin-border);
    border-radius: 999px;
    background: #fff;
    color: var(--admin-text);
    font-size: 0.92rem;
}

.admin-topbar-search input:focus {
    outline: none;
    border-color: rgba(255, 122, 33, 0.45);
    box-shadow: 0 0 0 3px rgba(255, 122, 33, 0.12);
}

.admin-main {
    padding: 0 1.75rem 2rem;
    min-width: 0;
}

.admin-flash {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.92rem;
    animation: admin-flash-fade 4.5s ease forwards;
}

@keyframes admin-flash-fade {
    0%, 70% { opacity: 1; }
    100% { opacity: 0; margin: 0; padding-top: 0; padding-bottom: 0; max-height: 0; overflow: hidden; border-width: 0; }
}

.admin-flash-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #166534;
}

.admin-flash-warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #92400e;
}

.admin-flash-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #991b1b;
}

.admin-config-page {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.admin-config-card {
    background: var(--admin-card-bg);
    border: 1px solid var(--admin-border);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    padding: 1.35rem 1.5rem 1.5rem;
}

.admin-config-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--admin-border);
}

.detail-panel-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.admin-config-card-head h2,
.admin-config-section-title {
    margin: 0 0 0.25rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--admin-text);
}

.admin-config-lead {
    margin: 0;
    color: var(--admin-muted);
    font-size: 0.88rem;
}

.admin-config-save {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.65rem;
    padding: 0.65rem 1.15rem;
    border-radius: 10px;
    background: var(--admin-sidebar-active);
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.admin-config-save:hover {
    background: #e56a12;
}

.admin-config-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-config-form.entity-edit-form {
    gap: 0;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.admin-config-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.admin-field label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--admin-muted);
}

.admin-input-wrap {
    position: relative;
}

.admin-secret-input {
    position: relative;
    display: flex;
    align-items: stretch;
}

.admin-secret-input [data-secret-input] {
    width: 100%;
    min-height: 2.75rem;
    padding-right: 3rem;
}

.admin-secret-toggle {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--admin-muted);
    cursor: pointer;
}

.admin-secret-toggle:hover {
    background: rgba(15, 23, 42, 0.06);
    color: var(--admin-text);
}

.admin-secret-toggle .admin-secret-eye-off {
    display: none;
}

.admin-secret-toggle.is-visible .admin-secret-eye-on {
    display: none;
}

.admin-secret-toggle.is-visible .admin-secret-eye-off {
    display: block;
}

.admin-secret-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.45rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font-size: 0.78rem;
    font-weight: 600;
}

.admin-secret-status-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #10b981;
}

.admin-input-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--admin-muted);
    pointer-events: none;
    display: inline-flex;
}

.admin-input-wrap input,
.admin-field select,
.admin-field > input[type="text"],
.admin-field > input[type="tel"],
.admin-field > input[type="url"],
.admin-field > input[type="email"],
.admin-field > input[type="password"],
.admin-field > input[type="number"] {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.65rem 0.85rem 0.65rem 2.65rem;
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    background: var(--admin-input-bg);
    color: var(--admin-text);
    font-size: 0.95rem;
}

.admin-field > input[type="text"],
.admin-field > input[type="tel"],
.admin-field > input[type="url"],
.admin-field > input[type="email"],
.admin-field > input[type="password"],
.admin-field > input[type="number"] {
    padding-left: 0.85rem;
}

.admin-field select {
    padding-left: 0.85rem;
    appearance: auto;
}

.admin-field-hint {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    color: var(--admin-muted);
}

.admin-field-hint--warn {
    color: #92400e;
    font-weight: 600;
}

.plato-archivo-size {
    font-size: 0.75rem;
    color: var(--admin-muted);
}

.plato-archivo-size.is-heavy {
    color: #92400e;
    font-weight: 700;
}

.admin-field-hint a {
    color: var(--admin-sidebar-active);
    font-weight: 600;
    text-decoration: none;
}

.admin-logo-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-logo-preview {
    width: 4rem;
    height: 4rem;
    border-radius: 12px;
    border: 1px solid var(--admin-border);
    background: var(--admin-input-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 0.75rem;
    color: var(--admin-muted);
}

.admin-logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.admin-config-card--ops {
    padding-top: 1.15rem;
}

.admin-config-ops {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: end;
}

.admin-field--toggle .admin-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 2.75rem;
    cursor: pointer;
    user-select: none;
}

.admin-toggle-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.admin-toggle-track {
    position: relative;
    width: 2.75rem;
    height: 1.5rem;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.admin-toggle-track::after {
    content: "";
    position: absolute;
    top: 0.15rem;
    left: 0.15rem;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.admin-toggle-input:checked + .admin-toggle-track {
    background: #22c55e;
}

.admin-toggle-input:checked + .admin-toggle-track::after {
    transform: translateX(1.25rem);
}

.admin-toggle-text {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--admin-text);
}

.admin-config-row--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
}

.detail-stat-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.detail-stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid var(--admin-border);
}

.detail-stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
    color: var(--admin-text);
}

.detail-stat-value--accent {
    color: var(--admin-sidebar-active);
}

.detail-stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--admin-muted);
}

.detail-state {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}

.detail-state::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: currentColor;
}

.detail-state--on {
    background: #dcfce7;
    color: #15803d;
}

.detail-state--off {
    background: #f1f5f9;
    color: #64748b;
}

.salon-preview-sector-count {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--admin-muted);
}

@media (max-width: 1100px) {
    .restaurant-tab-grid {
        grid-template-columns: 1fr;
    }

    .admin-config-row--3 {
        grid-template-columns: 1fr;
    }

    .detail-stat-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .admin-config-ops {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .admin-dashboard {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
    }

    .admin-config-row {
        grid-template-columns: 1fr;
    }

    .admin-config-card-head {
        flex-direction: column;
        align-items: stretch;
    }

    .restaurant-edit-actions,
    .entity-edit-actions {
        justify-content: stretch;
    }

    .entity-edit-footnote {
        margin-right: 0;
        max-width: none;
    }

    .restaurant-status-toggle {
        margin-right: 0;
    }

    .restaurant-status-toggle--topbar .admin-toggle-text {
        font-size: 0.78rem;
    }

    .admin-logo-row--with-links {
        flex-direction: column;
    }

    .restaurant-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .restaurant-tab {
        flex: 0 0 auto;
    }

    .admin-config-save {
        justify-content: center;
    }
}

/* Salón en Vivo embebido en panel admin */
.admin-dashboard--salon {
    --admin-shell-bg: #f1f5f9;
}

.admin-dashboard--salon .admin-shell {
    min-height: 100vh;
}

.admin-dashboard--salon .admin-main {
    display: flex;
    flex-direction: column;
    padding: 0;
    min-height: calc(100vh - 4.5rem);
}

.admin-dashboard--salon .admin-topbar-search {
    display: none;
}

.admin-dashboard--salon .rf-app--embedded {
    flex: 1;
    min-height: 0;
    border-radius: 0;
}

.admin-dashboard--salon .rf-app--embedded .rf-layout {
    min-height: calc(100vh - 4.5rem);
}

/* Platos — tema claro dentro del dashboard */
.admin-dashboard .plato-row {
    border-bottom-color: var(--admin-border);
}

.admin-dashboard .admin-table--platos thead th {
    color: var(--admin-muted);
    border-bottom-color: var(--admin-border);
}

.admin-dashboard .plato-list-field input,
.admin-dashboard .plato-list-field .categoria-select {
    background: var(--admin-input-bg);
    border-color: var(--admin-border);
    color: var(--admin-text);
}

.admin-dashboard .plato-list-archivos {
    border-top-color: var(--admin-border);
}

.admin-dashboard .plato-list-archivos-title {
    color: var(--admin-text);
}

.admin-dashboard .plato-archivo-name {
    color: var(--admin-muted);
}

.admin-dashboard .empty-state {
    color: var(--admin-muted);
}

/* Platos — badges, acciones y filtros */
.admin-cat-badge {
    display: inline-flex;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    background: #e2e8f0;
    color: #334155;
}

.admin-cat-badge--entrada { background: #dbeafe; color: #1d4ed8; }
.admin-cat-badge--principal { background: #ffedd5; color: #c2410c; }
.admin-cat-badge--postre { background: #fce7f3; color: #be185d; }
.admin-cat-badge--bebida { background: #dcfce7; color: #15803d; }
.admin-cat-badge--cafe { background: #fef3c7; color: #92400e; }
.admin-cat-badge--pizza { background: #fee2e2; color: #b91c1c; }
.admin-cat-badge--ensalada { background: #ecfccb; color: #3f6212; }
.admin-cat-badge--pescado { background: #e0f2fe; color: #0369a1; }
.admin-cat-badge--copa { background: #ede9fe; color: #6d28d9; }

.admin-icon-btn--danger {
    color: #ef4444;
}

.admin-icon-btn--danger:hover {
    background: #fef2f2;
    border-color: #fecaca;
}

.admin-inline-form {
    display: inline-flex;
    margin: 0;
}

.admin-dash-actions .admin-inline-form {
    vertical-align: middle;
}

.admin-filters--inline {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.admin-filters--inline .admin-filter-field {
    min-width: 150px;
    flex: 1 1 150px;
}

.admin-filters--inline .admin-filter-count {
    margin-left: auto;
    align-self: flex-end;
}

.admin-tag-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.admin-tag-pill {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.admin-tag-pill--diet {
    background: #ffedd5;
    color: #c2410c;
}

.admin-tag-pill--allergen {
    background: #fee2e2;
    color: #b91c1c;
}

.admin-tag-empty {
    color: var(--admin-muted);
}

.admin-dash-table--platos th:nth-child(4),
.admin-dash-table--platos th:nth-child(5),
.admin-dash-table--platos td:nth-child(4),
.admin-dash-table--platos td:nth-child(5) {
    min-width: 8.5rem;
}

.plato-admin-identity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 12rem;
}

.plato-admin-thumb {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    color: #94a3b8;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.plato-admin-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.plato-admin-thumb:hover {
    border-color: rgba(255, 122, 33, 0.45);
}

.plato-admin-thumb.is-empty {
    cursor: default;
}

.admin-icon-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.admin-dialog--photo {
    max-width: min(92vw, 720px);
}

.admin-dialog-card--photo {
    width: 100%;
    max-height: 90vh;
    overflow: auto;
}

.plato-photo-frame {
    padding-top: 0.35rem;
}

.plato-photo-frame img {
    display: block;
    width: 100%;
    max-height: min(72vh, 640px);
    object-fit: contain;
    background: #0f172a;
    border-radius: 12px;
}

.plato-photo-empty {
    margin: 0;
    padding: 2rem 1rem;
    text-align: center;
    color: var(--admin-muted);
}

.admin-dialog-actions--split {
    justify-content: space-between;
    align-items: center;
}

.admin-dialog-actions-primary,
.admin-dialog-actions-secondary {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.admin-dash-empty--block {
    padding: 2rem 1rem;
    text-align: center;
}

.admin-dash-empty--block h3 {
    margin: 0 0 0.5rem;
    color: var(--admin-text);
}

.admin-back-link {
    margin: 0 0 1rem;
}

.admin-code-inline {
    font-size: 0.85rem;
    background: #f1f5f9;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    color: var(--admin-text);
}

.admin-url-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
}

.admin-url-stack .admin-dash-link {
    text-decoration: none;
}

.admin-role-badge--super {
    background: #ede9fe;
    color: #6d28d9;
}

.admin-role-badge--mozo {
    background: #dbeafe;
    color: #1d4ed8;
}

/* Dashboard claro — formularios y paneles heredados */
.admin-dashboard .restaurant-form-grid .form-field input,
.admin-dashboard .restaurant-form-grid .form-field select,
.admin-dashboard .user-form-grid .form-field input,
.admin-dashboard .user-form-grid .form-field select,
.admin-dashboard .admin-config-form .form-field input,
.admin-dashboard .admin-config-form .form-field select {
    background: var(--admin-input-bg);
    border: 1px solid var(--admin-border);
    color: var(--admin-text);
}

.admin-dashboard .detail-panel,
.admin-dashboard .restaurant-form-card {
    background: var(--admin-card-bg);
    border: 1px solid var(--admin-border);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.admin-dashboard .detail-panel-head h2,
.admin-dashboard .detail-panel-summary h2,
.admin-dashboard .sector-card-title {
    color: var(--admin-text);
}

.admin-dashboard .detail-panel-meta,
.admin-dashboard .detail-empty,
.admin-dashboard .field-hint,
.admin-dashboard .sector-card-meta {
    color: var(--admin-muted);
}

.admin-dashboard .detail-panel .admin-dash-table th,
.admin-dashboard .detail-panel .admin-dash-table td {
    border-bottom-color: var(--admin-border);
}

.admin-dashboard .detail-panel .admin-table th,
.admin-dashboard .detail-panel .admin-table td {
    border-bottom-color: var(--admin-border);
    color: var(--admin-text);
}

.admin-dashboard .sector-card {
    border-color: var(--admin-border);
    background: #f8fafc;
}

.admin-dashboard .sector-card-head,
.admin-dashboard .sectors-panel-body {
    border-color: var(--admin-border);
}

.admin-dashboard .sector-edit-fields input,
.admin-dashboard .sector-generate-form input,
.admin-dashboard .sector-mesas-table input,
.admin-dashboard .sector-mesas-table select,
.admin-dashboard .admin-dash-table input,
.admin-dashboard .admin-dash-table select {
    background: #fff;
    border-color: var(--admin-border);
    color: var(--admin-text);
}

.admin-dashboard .salon-picker-card {
    background: var(--admin-card-bg);
    border-color: var(--admin-border);
}

.admin-dashboard .salon-picker-card h2 {
    color: var(--admin-text);
}

.admin-dashboard .mesa-chip {
    background: #f8fafc;
    border-color: var(--admin-border);
    color: var(--admin-text);
}

.admin-dashboard .mesa-chip--abierta {
    background: #dcfce7;
    border-color: rgba(34, 197, 94, 0.4);
    color: #15803d;
}

.admin-dashboard .salon-preview-panel {
    background: var(--admin-card-bg);
    border-color: var(--admin-border);
}

.admin-dashboard .salon-preview-sector-title {
    color: var(--admin-text);
    border-bottom-color: var(--admin-border);
}

.admin-dashboard .salon-preview-legend {
    color: var(--admin-muted);
    border-top-color: var(--admin-border);
}

.admin-dashboard .plato-file-btn {
    background: #fff;
    border-color: var(--admin-border);
    color: var(--admin-text);
}

.admin-dashboard .plato-preview-empty {
    background: #f1f5f9;
    color: var(--admin-muted);
}

.admin-dashboard .admin-field .categoria-select {
    width: 100%;
    min-height: 2.65rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: var(--admin-input-bg);
    color: var(--admin-text);
}

.admin-dashboard .admin-dialog .plato-list-archivos {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--admin-border);
}

.plato-processing {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(3px);
}

.plato-processing.hidden,
.plato-processing[hidden] {
    display: none !important;
}

.plato-processing-card {
    width: min(100%, 420px);
    padding: 1.4rem 1.35rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.28);
    text-align: center;
}

.plato-processing-card strong {
    display: block;
    margin: 0.85rem 0 0.35rem;
    color: #0f172a;
    font-size: 1.05rem;
}

.plato-processing-card p {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.45;
}

.plato-processing-spinner {
    width: 2.4rem;
    height: 2.4rem;
    margin: 0 auto;
    border: 3px solid #fed7aa;
    border-top-color: #f97316;
    border-radius: 50%;
    animation: plato-spin 0.8s linear infinite;
}

@keyframes plato-spin {
    to { transform: rotate(360deg); }
}

body.is-plato-processing {
    overflow: hidden;
}

.guest-social-row,
.guest-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.85rem;
}

.guest-social-btn,
.guest-chip,
.guest-request-btn {
    border: 1px solid rgba(245, 158, 11, 0.35);
    background: rgba(26, 35, 50, 0.9);
    color: var(--text);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.82rem;
    cursor: pointer;
    text-decoration: none;
}

.guest-chip.is-active,
.guest-social-btn:hover {
    background: var(--accent);
    color: #0f1419;
    border-color: var(--accent);
}

.accordion-item.is-diet-hidden {
    display: none !important;
}

.guest-filter-empty-msg {
    margin: 0.75rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.dish-pill {
    display: inline-block;
    margin: 0.15rem 0.2rem 0 0;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    font-size: 0.72rem;
}

.dish-pill--warn {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.dish-ar-views {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.75rem;
}

.guest-dish-hidden {
    display: none !important;
}

.guest-check {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin: 0.4rem 0;
    color: var(--text);
}

.guest-stepper {
    padding-left: 1.1rem;
    color: var(--muted);
}

.guest-stepper .is-done {
    color: var(--accent);
    font-weight: 700;
}

.guest-status-items {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0;
}

.guest-status-items li {
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.guest-request-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin: 0.75rem 0;
}

.guest-request-btn {
    border-radius: 12px;
    padding: 0.85rem 0.5rem;
}

.guest-sheet-actions {
    display: flex;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.guest-status-bar {
    bottom: 4.5rem;
}

.guest-stars button {
    background: none;
    border: 0;
    color: var(--accent);
    font-size: 1.6rem;
    cursor: pointer;
}

.guest-loyalty {
    margin-top: 0.75rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    color: var(--text);
}

.guest-again-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

#reserve-form label,
#feedback-comment {
    display: block;
    margin: 0.45rem 0;
    color: var(--text);
}

#reserve-form input,
#feedback-comment {
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--surface-2);
    color: var(--text);
}

/* Decoración por restaurante: fondos, viñeta, luces y badges flotantes */
.pointer-events-none {
    pointer-events: none;
}

body.has-atmosphere {
    position: relative;
    background: #05070c;
    --float-rail-reserve: 0px;
    --float-rail-gap: 1.25rem;
}

body.has-atmosphere .site-top-fixed {
    background: rgba(12, 16, 23, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: rgba(245, 158, 11, 0.18);
}

body.has-atmosphere main.container {
    position: relative;
    z-index: 5;
    box-sizing: border-box;
}

@media (min-width: 1180px) {
    body.has-atmosphere main.container {
        width: min(1100px, calc(100% - (2 * var(--float-rail-reserve)) - (2 * var(--float-rail-gap))));
        max-width: calc(100vw - (2 * var(--float-rail-reserve)) - (2 * var(--float-rail-gap)) - 0.5rem);
    }
}

body.has-atmosphere .site-footer {
    z-index: 5;
}

@media (min-width: 769px) {
    body.has-atmosphere .site-footer {
        background: transparent;
        border-top-color: rgba(255, 255, 255, 0.06);
    }
}

.atmosphere {
    position: fixed;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.atmosphere-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(1.05) brightness(0.78);
}

.atmosphere-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, transparent 42%, rgba(8, 10, 16, 0.28) 72%, rgba(5, 7, 12, 0.72) 100%),
        linear-gradient(180deg, rgba(8, 10, 16, 0.22) 0%, rgba(8, 10, 16, 0.08) 45%, rgba(5, 7, 12, 0.55) 100%);
}

.atmosphere-glow {
    position: absolute;
    width: 28rem;
    height: 28rem;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.85;
    pointer-events: none;
}

.atmosphere-glow--amber-tl {
    top: -8rem;
    left: 6%;
    background: rgba(245, 158, 11, 0.34);
}

.atmosphere-glow--amber-tr {
    top: -6rem;
    right: 4%;
    width: 22rem;
    height: 22rem;
    background: rgba(251, 146, 60, 0.26);
}

.atmosphere-glow--blue-bl {
    bottom: -8rem;
    left: 8%;
    width: 24rem;
    height: 24rem;
    background: rgba(59, 130, 246, 0.22);
}

.atmosphere-glow--blue-br {
    bottom: -7rem;
    right: 6%;
    background: rgba(37, 99, 235, 0.2);
}

.float-rail {
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 3;
    width: var(--float-rail-reserve, min(280px, 24vw));
    flex-direction: column;
    justify-content: space-evenly;
    pointer-events: none;
    box-sizing: border-box;
}

.float-rail--left {
    left: 0;
    align-items: flex-start;
    padding: 7.5rem 0.55rem 2.5rem 0.85rem;
}

.float-rail--right {
    right: 0;
    align-items: flex-end;
    padding: 7.5rem 0.85rem 2.5rem 0.55rem;
}

.float-side-photo {
    position: absolute;
    top: 7.25rem;
    bottom: 2.25rem;
    width: max(0px, calc(var(--float-rail-reserve) - 1.6rem));
    margin: 0;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(245, 158, 11, 0.32);
    box-shadow:
        0 0 28px rgba(245, 158, 11, 0.18),
        0 16px 36px rgba(0, 0, 0, 0.45);
}

.float-side-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.float-side-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(8, 10, 16, 0.05) 0%, rgba(8, 10, 16, 0.28) 100%);
    pointer-events: none;
}

.float-rail--left .float-side-photo {
    left: 0.75rem;
}

.float-rail--right .float-side-photo {
    right: 0.75rem;
}

.float-side-photo--slow {
    animation: floatSlow 8s ease-in-out infinite;
}

.float-side-photo--reverse {
    animation: floatReverse 8.6s ease-in-out infinite;
}

.float-rail.has-side-photo .float-badge {
    position: relative;
    z-index: 1;
}

.float-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 260px;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow:
        0 0 24px rgba(245, 158, 11, 0.16),
        0 12px 32px rgba(0, 0, 0, 0.38);
    color: #f8fafc;
}

.float-badge--float-slow {
    animation: floatSlow 6.5s ease-in-out infinite;
}

.float-badge--float-reverse {
    animation: floatReverse 7.2s ease-in-out infinite;
}

.float-badge-icon {
    flex-shrink: 0;
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: #0f1419;
}

.float-badge-icon--amber {
    background: linear-gradient(180deg, #fbbf24, #f59e0b);
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.45);
}

.float-badge-icon--green {
    background: linear-gradient(180deg, #4ade80, #16a34a);
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.35);
    color: #052e16;
}

.float-badge-icon--blue {
    background: linear-gradient(180deg, #60a5fa, #2563eb);
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.4);
    color: #eff6ff;
}

.float-badge-copy {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.float-badge-copy strong {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.2;
}

.float-badge-copy small {
    color: #cbd5e1;
    font-size: 0.72rem;
    line-height: 1.3;
}

/* Rails solo cuando hay ancho real para menú + laterales sin solaparse */
@media (min-width: 1180px) {
    body.has-atmosphere {
        --float-rail-reserve: clamp(150px, 16vw, 220px);
        --float-rail-gap: 1rem;
    }

    .float-rail {
        display: flex;
    }

    .float-badge {
        max-width: calc(var(--float-rail-reserve) - 0.35rem);
        padding: 0.7rem 0.8rem;
        gap: 0.55rem;
    }

    .float-badge-copy strong {
        font-size: 0.84rem;
    }

    .float-badge-copy small {
        font-size: 0.68rem;
    }
}

@media (min-width: 1440px) {
    body.has-atmosphere {
        --float-rail-reserve: clamp(200px, 17vw, 260px);
        --float-rail-gap: 1.35rem;
    }

    .float-rail--left {
        padding-left: 1.15rem;
    }

    .float-rail--right {
        padding-right: 1.15rem;
    }

    .float-rail--left .float-side-photo {
        left: 1rem;
    }

    .float-rail--right .float-side-photo {
        right: 1rem;
    }

    .float-badge {
        max-width: 260px;
        padding: 0.85rem 1rem;
        gap: 0.75rem;
    }

    .float-badge-copy strong {
        font-size: 0.92rem;
    }

    .float-badge-copy small {
        font-size: 0.72rem;
    }
}

@media (min-width: 1680px) {
    body.has-atmosphere {
        --float-rail-reserve: min(280px, 18vw);
    }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes floatReverse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(12px); }
}

@media (prefers-reduced-motion: reduce) {
    .float-badge--float-slow,
    .float-badge--float-reverse,
    .float-side-photo--slow,
    .float-side-photo--reverse {
        animation: none;
    }
}

body.atmosphere-login main.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: calc(100dvh - 11rem);
    padding-top: 1.25rem;
    padding-bottom: 2rem;
}

body.atmosphere-login main.container > .flash-messages {
    width: min(440px, 100%);
}

body.has-atmosphere .auth-card {
    width: min(440px, 100%);
    margin-left: auto;
    margin-right: auto;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(245, 158, 11, 0.28);
    box-shadow:
        0 0 40px rgba(245, 158, 11, 0.12),
        0 20px 50px rgba(0, 0, 0, 0.45);
}

body.has-atmosphere .auth-card .page-back {
    margin-bottom: 0.75rem;
}

.auth-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.auth-card-head h1 {
    margin: 0;
}

.login-mesa-checkin {
    margin: 0 0 1rem;
    padding: 0.7rem 0.85rem;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.35;
}

.login-mesa-checkin--ok {
    background: rgba(34, 140, 80, 0.12);
    color: #1a6b3c;
    border: 1px solid rgba(34, 140, 80, 0.28);
}

.login-mesa-checkin--blocked {
    background: rgba(180, 50, 40, 0.1);
    color: #8a2a22;
    border: 1px solid rgba(180, 50, 40, 0.25);
}

.mesa-qr-access-meta {
    margin: 0 0 0.5rem;
    color: var(--muted, #666);
    font-size: 0.92rem;
}

.mesa-qr-access-msg {
    margin: 0 0 0.75rem;
    line-height: 1.4;
}

.mesa-qr-access-msg--error {
    color: #8a2a22;
}

.auth-card-note {
    margin: 0;
    font-size: 0.86rem;
    color: var(--muted, #666);
    line-height: 1.4;
}

.cliente-app {
    max-width: 42rem;
    margin: 0 auto;
    padding: 0.75rem 1rem 2.5rem;
    color: #15202b;
}

.cliente-app--public-menu {
    max-width: none;
    padding: 0.5rem 0 2.5rem;
    color: inherit;
}

.cliente-app--public-menu .cliente-tabs {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-bottom: 0.75rem;
}

.cliente-app--public-menu .cliente-panel[data-cliente-panel="pedido"],
.cliente-app--public-menu .cliente-panel[data-cliente-panel="mozo"] {
    max-width: 42rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.cliente-app--public-menu .cliente-panel[data-cliente-panel="menu"] {
    padding: 0;
}


body:has(#cliente-app) .flash-messages {
    margin: 0.75rem 1rem 0;
}

body:has(#cliente-app) .flash {
    animation: cliente-flash-fade 4.5s ease forwards;
}

@keyframes cliente-flash-fade {
    0%, 70% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

.cliente-welcome {
    margin: 0 0 0.85rem;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    background: rgba(34, 140, 80, 0.12);
    border: 1px solid rgba(34, 140, 80, 0.28);
    color: #1a6b3c;
    font-weight: 700;
    animation: cliente-flash-fade 4.5s ease forwards;
}

.cliente-welcome-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(12, 18, 24, 0.72);
    backdrop-filter: blur(4px);
}

.cliente-welcome-overlay.is-hidden {
    display: none;
}

.cliente-welcome-modal {
    width: min(100%, 22rem);
    padding: 1.35rem 1.25rem 1.2rem;
    border-radius: 16px;
    background: #fff;
    color: #1a1f24;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    text-align: center;
}

.cliente-welcome-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5a6a78;
    font-weight: 700;
}

.cliente-welcome-modal h2 {
    margin: 0 0 1rem;
    font-size: 1.45rem;
    line-height: 1.2;
    color: #15202b;
}

.cliente-welcome-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin: 0 0 0.95rem;
    text-align: left;
}

.cliente-welcome-facts > div {
    padding: 0.65rem 0.7rem;
    border-radius: 10px;
    background: #f3f6f8;
}

.cliente-welcome-facts dt {
    margin: 0;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6a7a88;
}

.cliente-welcome-facts dd {
    margin: 0.2rem 0 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #15202b;
}

.cliente-welcome-hint {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: #4a5864;
    line-height: 1.35;
}

body.cliente-welcome-locked {
    overflow: hidden;
}

body.cliente-welcome-locked #cliente-app,
body.cliente-welcome-locked #guest-app-menu {
    pointer-events: none;
    user-select: none;
}

.cliente-top {
    display: none;
}

.cliente-kicker {
    margin: 0;
    font-size: 0.8rem;
    color: #5b6b7a;
}

.cliente-top h1 {
    margin: 0.15rem 0 0;
    font-size: 1.35rem;
    line-height: 1.25;
    color: #15202b;
}

.cliente-id-line {
    margin: 0.25rem 0 0;
    color: #5b6b7a;
    font-size: 0.9rem;
}

.brand-block--cliente .brand-name {
    font-size: 0.98rem;
}

.brand-block--cliente .brand-meta {
    font-size: 0.78rem;
}

.cliente-role-badge {
    display: inline-flex;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(34, 140, 80, 0.12);
    color: #1a6b3c;
    font-size: 0.75rem;
    font-weight: 700;
}

.cliente-request-btn--wide {
    width: 100%;
    margin-top: 0.5rem;
}

.cliente-custom-box {
    margin: 0.75rem 0;
}

.cliente-custom-box textarea {
    width: 100%;
    margin-bottom: 0.55rem;
    color: #15202b;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 10px;
    padding: 0.7rem 0.75rem;
}

.cliente-salida {
    max-width: 28rem;
    margin: 2rem auto;
    padding: 1.5rem 1rem;
    text-align: center;
}

.cliente-salida-hint {
    color: #5b6b7a;
}

.cliente-salida-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.cliente-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    margin-bottom: 1rem;
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(248, 250, 252, 0.94);
    backdrop-filter: blur(8px);
    padding: 0.35rem 0;
    border-radius: 12px;
}

.cliente-tab {
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #fff;
    color: #15202b;
    border-radius: 10px;
    padding: 0.55rem 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.cliente-tab.is-active {
    background: #1f2937;
    color: #fff;
    border-color: #1f2937;
}

.cliente-panel h2 {
    margin: 0 0 0.35rem;
    color: #f8fafc;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.cliente-lead {
    margin: 0 0 1rem;
    color: rgba(248, 250, 252, 0.86);
    font-size: 0.92rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.cliente-panel {
    color: #15202b;
}

.cliente-pedido-box,
.cliente-pedido-item,
.cliente-dish,
.cliente-rate-block,
.cliente-msg-item {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 12px;
    padding: 0.85rem;
    color: #15202b;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.cliente-pedido-box {
    font-weight: 600;
}

.cliente-pedido-items {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.75rem;
}

.cliente-pedido-item {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
}

.cliente-pedido-item strong,
.cliente-dish strong {
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.3;
}

.cliente-pedido-item em {
    color: #475569;
    font-style: normal;
    font-size: 0.82rem;
    font-weight: 600;
}

.cliente-menu-tools {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.cliente-menu-tools input {
    flex: 1;
    min-width: 0;
    color: #15202b;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
}

.cliente-menu-tools input::placeholder {
    color: #64748b;
}

.cliente-tool-btn {
    background: #fff !important;
    color: #15202b !important;
    border: 1px solid rgba(15, 23, 42, 0.14) !important;
    white-space: nowrap;
}

.cliente-tool-btn.is-active {
    background: #1f2937 !important;
    color: #fff !important;
    border-color: #1f2937 !important;
}

.cliente-menu-list {
    display: grid;
    gap: 1rem;
}

.cliente-menu-cat h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: #f8fafc;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.cliente-dish {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    align-items: flex-start;
}

.cliente-dish-main {
    min-width: 0;
    flex: 1;
}

.cliente-dish p {
    margin: 0.25rem 0;
    color: #475569;
    font-size: 0.88rem;
}

.cliente-dish-price {
    display: inline-block;
    margin-top: 0.2rem;
    font-weight: 700;
    color: #0f172a;
    font-size: 0.95rem;
}

.cliente-fav-btn {
    border: 0;
    background: transparent;
    font-size: 1.25rem;
    color: #94a3b8;
    line-height: 1;
    padding: 0.15rem;
}

.cliente-fav-btn.is-on {
    color: #c04545;
}

.cliente-request-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.cliente-request-btn {
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #fff;
    color: #15202b;
    border-radius: 10px;
    padding: 0.75rem 0.5rem;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.cliente-custom-label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: #f8fafc;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.cliente-status-line {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: rgba(248, 250, 252, 0.88);
}

.cliente-msg-history {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(248, 250, 252, 0.18);
}

.cliente-msg-history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.cliente-msg-history-head h3 {
    margin: 0;
    font-size: 1rem;
    color: #f8fafc;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.cliente-msg-list {
    display: grid;
    gap: 0.55rem;
}

.cliente-msg-empty {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    padding: 0.85rem;
    color: #475569;
    font-size: 0.92rem;
}

.cliente-msg-item {
    display: grid;
    gap: 0.3rem;
}

.cliente-msg-item-top {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: baseline;
}

.cliente-msg-item-top strong {
    color: #0f172a;
}

.cliente-msg-item-top time {
    color: #64748b;
    font-size: 0.78rem;
    white-space: nowrap;
}

.cliente-msg-item-body {
    margin: 0;
    color: #334155;
    font-size: 0.9rem;
}

.cliente-msg-estado {
    display: inline-flex;
    width: fit-content;
    margin-top: 0.15rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: #e2e8f0;
    color: #334155;
}

.cliente-msg-estado.is-pendiente {
    background: rgba(245, 158, 11, 0.18);
    color: #92400e;
}

.cliente-msg-estado.is-vista {
    background: rgba(59, 130, 246, 0.16);
    color: #1d4ed8;
}

.cliente-msg-estado.is-resuelta {
    background: rgba(34, 197, 94, 0.16);
    color: #166534;
}

.cliente-stars {
    display: flex;
    gap: 0.25rem;
    margin: 0.4rem 0 0.6rem;
}

.cliente-stars button {
    border: 0;
    background: transparent;
    font-size: 1.4rem;
    color: #d4a017;
}

.cliente-rate-block {
    margin-bottom: 0.85rem;
}

.cliente-plato-rates {
    display: grid;
    gap: 0.65rem;
}

.cliente-muted {
    color: #5b6b7a;
    font-size: 0.9rem;
}

.rf-msg-mesa {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    margin-bottom: 0.5rem;
    background: #fff;
}

.rf-msg-mesa-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    font-weight: 700;
}

.rf-msg-mesa-summary::-webkit-details-marker {
    display: none;
}

.rf-msg-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: rgba(180, 50, 40, 0.12);
    color: #8a2a22;
}

.rf-msg-mesa-body {
    padding: 0 0.75rem 0.75rem;
    display: grid;
    gap: 0.5rem;
}

.rf-msg-item {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    padding: 0.55rem 0.65rem;
    background: #fafafa;
}

.rf-msg-item.is-unread {
    border-color: rgba(180, 50, 40, 0.25);
    background: rgba(180, 50, 40, 0.06);
}

.rf-msg-item-head {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.rf-msg-text {
    margin: 0.35rem 0;
    font-size: 0.88rem;
}

.rf-msg-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.auth-rest-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    font-size: 0.72rem;
    font-weight: 700;
}

body.has-atmosphere .accordion-item,
body.has-atmosphere .hero {
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: rgba(245, 158, 11, 0.18);
}

body.has-atmosphere .hero {
    border-radius: var(--radius);
    padding: 1rem 1.1rem 1.15rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(245, 158, 11, 0.18);
}

.admin-atmosphere-block {
    margin-top: 0.2rem;
}

.admin-atmosphere-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.1rem;
    margin-top: 0.55rem;
}

.admin-atmosphere-col {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
    padding: 0.7rem 0.75rem 0.75rem;
    border: 1px solid var(--admin-border, #e2e8f0);
    border-radius: 12px;
    background: var(--admin-input-bg, #f8fafc);
}

.admin-atmosphere-col-title {
    margin: 0 0 0.15rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--admin-text, #0f172a);
}

.admin-atmosphere-row {
    display: grid;
    grid-template-columns: 3.4rem minmax(0, 1fr);
    gap: 0.55rem;
    align-items: center;
}

.admin-atmosphere-thumb {
    width: 3.4rem;
    height: 2.55rem;
    padding: 0;
    border-radius: 8px;
    border: 1px solid var(--admin-border, #e2e8f0);
    background: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
}

.admin-atmosphere-thumb.is-empty,
.admin-atmosphere-thumb:disabled {
    cursor: default;
    color: var(--admin-muted, #64748b);
    font-size: 0.62rem;
    line-height: 1.15;
    text-align: center;
}

.admin-atmosphere-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.admin-atmosphere-meta {
    min-width: 0;
}

.admin-atmosphere-label {
    display: block;
    margin: 0 0 0.2rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--admin-muted, #64748b);
}

.admin-atmosphere-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.55rem;
}

.admin-atmosphere-pick {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.7rem;
    padding: 0 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(245, 158, 11, 0.45);
    background: #fff;
    color: #b45309;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
}

.admin-atmosphere-pick input {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.admin-atmosphere-remove {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    font-size: 0.72rem;
    color: var(--admin-muted, #64748b);
    cursor: pointer;
}

.admin-atmosphere-lightbox {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.admin-atmosphere-lightbox.hidden {
    display: none;
}

.admin-atmosphere-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
}

.admin-atmosphere-lightbox-card {
    position: relative;
    z-index: 1;
    width: min(860px, 100%);
    max-height: min(88dvh, 88vh);
    padding: 1.1rem 1.1rem 1.2rem;
    border-radius: 16px;
    background: #0f172a;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.admin-atmosphere-lightbox-close {
    position: absolute;
    top: 0.55rem;
    right: 0.65rem;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.admin-atmosphere-lightbox-title {
    margin: 0 2rem 0.65rem 0;
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 700;
}

.admin-atmosphere-lightbox-img {
    display: block;
    width: 100%;
    max-height: min(74dvh, 74vh);
    object-fit: contain;
    border-radius: 10px;
    background: #020617;
}

@media (max-width: 720px) {
    .admin-atmosphere-cols {
        grid-template-columns: 1fr;
    }
}

.login-top-brand,
.login-hero,
.login-bottom-brand,
.auth-card-icon,
.auth-card-logo-wrap,
.auth-secure {
    display: none;
}

.auth-card-lead {
    margin: 0 0 1rem;
    color: var(--muted);
}

.auth-card-lead--hint {
    margin-top: -0.45rem;
    font-size: 0.88rem;
}

.auth-card-lead--hint code {
    color: var(--text);
    font-size: 0.85em;
}

.auth-form .auth-input {
    position: relative;
    margin-bottom: 1rem;
}

.auth-form .auth-input input {
    margin-bottom: 0;
    padding-left: 2.55rem;
    padding-right: 3rem;
}

.auth-input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    display: flex;
    pointer-events: none;
}

.auth-input-toggle {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-input-toggle .auth-eye-off {
    display: none;
}

.auth-input-toggle.is-visible .auth-eye-on {
    display: none;
}

.auth-input-toggle.is-visible .auth-eye-off {
    display: block;
}

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.auth-title span {
    color: inherit;
}

@media (max-width: 768px) {
    body.atmosphere-login {
        background: #0d1117;
    }

    body.atmosphere-login .build-banner {
        display: none;
    }

    body.atmosphere-login .site-header--restaurant .brand-block {
        display: none;
    }

    body.atmosphere-login .login-top-brand {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        color: #fff;
        font-size: 0.9rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        min-width: 0;
        flex: 1 1 auto;
        max-width: calc(100% - 3.25rem);
        overflow: hidden;
    }

    body.atmosphere-login .login-top-brand strong {
        font-weight: 800;
        white-space: nowrap;
        flex: 0 0 auto;
    }

    body.atmosphere-login .login-top-brand > span:last-child {
        color: var(--accent);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }

    body.atmosphere-login .login-top-chef {
        display: inline-flex;
        color: var(--accent);
        flex: 0 0 auto;
    }

    body.atmosphere-login .header-inner--guest {
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
        padding: 0.45rem 0;
    }

    body.atmosphere-login .guest-app-menu--header {
        flex: 0 0 auto;
        margin-left: auto;
    }

    body.atmosphere-login .site-top-fixed {
        background: #0d1117;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    body.atmosphere-login .atmosphere-vignette,
    body.atmosphere-login .atmosphere-glow {
        display: none;
    }

    body.atmosphere-login .atmosphere-photo {
        opacity: 0;
    }

    body.atmosphere-login main.container {
        width: min(28rem, 92%);
        min-height: 0;
        padding: 0.65rem 0 1.1rem;
        align-items: stretch;
    }

    body.atmosphere-login main.container > .flash-messages {
        width: 100%;
        order: 0;
        margin: 0 0 0.75rem;
    }

    body.atmosphere-login .flash {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.45rem;
        padding: 0.45rem 0.85rem;
        border-radius: 999px;
        font-size: 0.82rem;
        font-weight: 600;
    }

    body.atmosphere-login .flash-success {
        background: rgba(21, 128, 61, 0.92);
        border-color: #16a34a;
        color: #ecfdf5;
    }

    body.atmosphere-login .flash-success::before {
        content: "";
        width: 0.95rem;
        height: 0.95rem;
        flex-shrink: 0;
        background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386efac' stroke-width='2.4'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8.5 12.5 2.2 2.2 4.8-5'/%3E%3C/svg%3E");
    }

    body.atmosphere-login .flash-warning {
        display: none;
    }

    body.atmosphere-login .login-hero {
        display: none;
    }

    body.atmosphere-login .auth-card .page-back {
        display: inline-flex;
        align-self: flex-start;
        margin: 0 0 0.75rem;
        text-align: left;
    }

    body.atmosphere-login .auth-card {
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin: 0;
        padding: 1.1rem 1.1rem 1.05rem;
        text-align: center;
        background: #152033;
        border: 1px solid rgba(245, 158, 11, 0.45);
        border-radius: 18px;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    }

    body.atmosphere-login .auth-card-logo-wrap {
        display: flex;
        justify-content: center;
        margin: 0 0 0.75rem;
    }

    body.atmosphere-login .auth-card-logo {
        width: 4.25rem;
        height: 4.25rem;
        border-radius: 50%;
        object-fit: cover;
        background: #fff;
        border: 3px solid rgba(255, 255, 255, 0.92);
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
    }

    body.atmosphere-login .auth-card-logo--fallback {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #b45309;
        font-weight: 800;
        font-size: 1.35rem;
    }

    body.atmosphere-login .auth-card-icon {
        display: none;
    }

    body.atmosphere-login .auth-card-head {
        display: block;
        margin-bottom: 0.2rem;
    }

    body.atmosphere-login .auth-rest-badge {
        display: none;
    }

    body.atmosphere-login .auth-card h1 {
        font-size: 1.35rem;
        font-weight: 700;
        color: #fff;
        line-height: 1.2;
        margin: 0 0 0.85rem;
    }

    body.atmosphere-login .auth-card h1 span {
        display: block;
        color: var(--accent);
        font-weight: 800;
        font-size: 1.45rem;
    }

    body.atmosphere-login .auth-card-lead {
        display: none;
    }

    body.atmosphere-login .auth-form {
        text-align: left;
    }

    body.atmosphere-login .auth-form label {
        text-transform: uppercase;
        letter-spacing: 0.08em;
        font-size: 0.68rem;
        font-weight: 700;
        color: #94a3b8;
    }

    body.atmosphere-login .auth-form .auth-input input {
        background: #e8edf5;
        color: #0f172a;
        border: 0;
        border-radius: 12px;
        min-height: 2.85rem;
        font-size: 0.98rem;
    }

    body.atmosphere-login .auth-input-icon,
    body.atmosphere-login .auth-input-toggle {
        color: #64748b;
    }

    body.atmosphere-login .auth-submit {
        min-height: 2.9rem;
        border-radius: 12px;
        font-size: 1.05rem;
        font-weight: 800;
        margin-top: 0.25rem;
    }

    body.atmosphere-login .auth-secure {
        display: block;
        margin-top: 1.1rem;
        color: #94a3b8;
    }

    body.atmosphere-login .auth-secure > span {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        justify-content: center;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        font-size: 0.68rem;
        font-weight: 700;
        color: var(--accent);
    }

    body.atmosphere-login .auth-secure > span::before,
    body.atmosphere-login .auth-secure > span::after {
        content: "";
        flex: 1;
        height: 1px;
        background: rgba(245, 158, 11, 0.35);
    }

    body.atmosphere-login .auth-secure p {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        margin: 0.45rem 0 0;
        font-size: 0.78rem;
    }

    body.atmosphere-login .login-bottom-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        order: 4;
        margin-top: 1.35rem;
        text-align: center;
        color: #fff;
    }

    body.atmosphere-login .login-bottom-icon {
        color: var(--accent);
        margin-bottom: 0.25rem;
    }

    body.atmosphere-login .login-bottom-brand strong {
        font-size: 1rem;
    }

    body.atmosphere-login .login-bottom-brand p {
        margin: 0.2rem 0 0;
        color: #cbd5e1;
        font-size: 0.88rem;
    }

    body.atmosphere-login .login-bottom-brand span {
        color: var(--accent);
        font-weight: 700;
    }

    body.atmosphere-login .site-footer {
        display: none;
    }
}

/* ── UX homogenization: back, actions, touch targets, overflow ── */
.page-back,
.admin-back-link a,
.sectors-back-link,
a.testra-camera-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.35rem 0.2rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    color: inherit;
    line-height: 1.2;
}

.page-back::before,
.admin-back-link a::before,
.sectors-back-link::before {
    content: "";
    width: 1.05rem;
    height: 1.05rem;
    flex-shrink: 0;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.admin-dashboard .page-back,
.admin-dashboard .admin-back-link a,
.admin-dashboard .sectors-back-link {
    color: var(--admin-sidebar-active, #ff7a21);
}

body:not(.admin-dashboard) .page-back,
body:not(.admin-dashboard) .admin-back-link a {
    color: var(--accent, #f59e0b);
}

.page-back:focus-visible,
.admin-back-link a:focus-visible,
.btn:focus-visible,
.admin-icon-btn:focus-visible,
.admin-dialog-close:focus-visible,
.admin-topbar-menu:focus-visible,
.sheet-close-btn:focus-visible {
    outline: 2px solid var(--accent, #f59e0b);
    outline-offset: 2px;
}

.btn-sm {
    min-height: 36px;
}

.admin-icon-btn {
    width: 44px;
    height: 44px;
}

.admin-dialog-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
}

.admin-topbar-menu {
    width: 44px;
    height: 44px;
}

.admin-dash-header > .btn,
.admin-dash-header > .admin-config-save,
.admin-page-header > .btn {
    flex-shrink: 0;
    min-height: 48px;
}

.entity-edit-actions,
.form-actions,
.admin-dialog-actions,
.detail-panel-actions,
.app-dialog-actions,
.guest-sheet-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
}

.guest-sheet-actions .btn {
    flex: 1 1 8rem;
}

.sheet-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.85rem;
    min-height: 48px;
    padding: 0.7rem 1.1rem;
    border-radius: 8px;
    border: none;
    background: var(--surface-2, #1e293b);
    color: var(--text, #f0f4f8);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.admin-dashboard .sheet-close-btn {
    background: #fff;
    color: var(--admin-text);
    border: 1px solid var(--admin-border);
}

.restaurant-detail-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
}

.admin-dash-table-wrap,
.table-responsive {
    -webkit-overflow-scrolling: touch;
}

.admin-dash-actions {
    white-space: normal;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.admin-sidebar-backdrop {
    display: none;
}

.guest-identify-card .page-back,
.guest-auth-card .page-back {
    margin: 0 0 0.85rem;
}

@media (max-width: 900px) {
    .admin-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 199;
        background: rgba(15, 23, 42, 0.45);
        border: 0;
        padding: 0;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .admin-sidebar-backdrop.is-visible {
        opacity: 1;
        pointer-events: auto;
    }

    .admin-dash-header > .btn,
    .admin-dash-header > .admin-config-save,
    .admin-page-header > .btn {
        width: 100%;
        justify-content: center;
    }

    .entity-edit-actions,
    .form-actions,
    .admin-dialog-actions,
    .detail-panel-actions,
    .app-dialog-actions {
        flex-wrap: nowrap;
        flex-direction: column;
        align-items: stretch;
    }

    .entity-edit-actions .btn,
    .form-actions .btn,
    .admin-dialog-actions .btn,
    .detail-panel-actions .btn,
    .app-dialog-actions .btn,
    .guest-sheet-actions .btn {
        width: 100%;
        min-height: 48px;
        justify-content: center;
        white-space: normal;
    }

    .admin-config-save {
        white-space: normal;
    }
}

@media (max-width: 768px), (pointer: coarse) {
    .btn-sm {
        min-height: 44px;
        padding: 0.5rem 0.85rem;
    }

    .admin-dash-table th,
    .admin-dash-table td {
        padding: 0.7rem 0.55rem;
    }

    .guest-sheet-actions,
    .reserve-form-actions {
        flex-direction: column;
    }

    .guest-sheet-actions .btn,
    .reserve-form-actions .btn,
    .reserve-form-actions .sheet-close-btn {
        flex: 1 1 auto;
        width: 100%;
        min-height: 48px;
    }

    .guest-request-btn {
        min-height: 48px;
    }
}

/* Superadmin — selector de diseño del menú QR */
.admin-menu-layout-control {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    max-width: 32rem;
}

.admin-menu-layout-current {
    margin: 0;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.1);
    color: #166534;
    font-size: 0.88rem;
    font-weight: 600;
}

.admin-menu-layout-current strong {
    color: #14532d;
    font-size: 0.95rem;
}

.admin-menu-layout-select {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.55rem 2.4rem 0.55rem 0.85rem;
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    background: #fff;
    color: var(--admin-text);
    font-size: 0.95rem;
    font-weight: 600;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    cursor: pointer;
}

.admin-menu-layout-select:focus {
    outline: none;
    border-color: rgba(249, 115, 22, 0.65);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.admin-menu-layout-desc {
    margin: 0;
}
