:root {
    --bg: #111311;
    --panel: #191c18;
    --gold: #c7af79;
    --text: #f5f0e6;
    --muted: #b8b9ad;
    --line: #33372f;
    --ink: #1e2822;
    --paper: #f6f5ef;
    --border: #dcded5;
    --danger: #a33d32;
    --radius: 12px;
    --sans: Arial,"DejaVu Sans",sans-serif;
    color-scheme: dark;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 var(--sans);
}
button, input, select, textarea {
    font: inherit;
}
button, a, input, select, textarea {
    touch-action: manipulation;
}
button, .button {
    cursor: pointer;
    background: transparent;
    color: inherit;
    border: 1px solid var(--line);
    padding: 10px 17px;
    border-radius: 7px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
button:hover, .button:hover {
    border-color: var(--gold);
}
button:disabled {
    opacity: .5;
    cursor: not-allowed;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}
button.primary, .button.primary {
    background: var(--gold);
    color: #1b211b;
    border-color: var(--gold);
    font-weight: 700;
}
button.quiet {
    border-color: transparent;
}
h1, h2, h3, p {
    margin-top: 0;
}
h1 {
    font-size: clamp(34px,5vw,58px);
    line-height: 1.15;
    font-weight: 400;
    letter-spacing: -1px;
    margin-bottom: 28px;
}
h2 {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.4;
}
h3 {
    font-size: 18px;
    line-height: 1.5;
}
.brand-logo {
    width: 68px;
    height: 72px;
    object-fit: contain;
    filter: none;
    mix-blend-mode: normal;
}
.brand-logo.custom-logo {
    filter: none;
    mix-blend-mode: normal;
}
.eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.4px;
    color: var(--gold);
    margin: 0 0 18px;
}
.guest-header {
    max-width: 1080px;
    padding: 32px 40px 28px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-button {
    padding: 0;
    border: 0;
}
.languages {
    display: flex;
    gap: 4px;
    align-items: center;
}
.languages button {
    font-size: 12px;
    padding: 8px 12px;
    border-color: transparent;
}
.languages button.active {
    color: var(--gold);
    border-color: #756648;
    background: #211f18;
}
.menu-shell {
    max-width: 1080px;
    padding: 35px 40px 24px;
    margin: auto;
}
.notice {
    max-width: 680px;
    color: var(--muted);
    white-space: pre-line;
}
.menu-index {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 18px;
    padding: 18px 0 48px;
}
.menu-tile {
    min-height: 145px;
    display: flex;
    justify-content: flex-start;
    gap: 24px;
    text-align: left;
    border-radius: 0;
    background: var(--panel);
    font-size: 23px;
    padding: 28px;
}
.tile-number {
    font-size: 12px;
    color: var(--gold);
    align-self: flex-start;
}
.arrow {
    margin-left: auto;
    color: var(--gold);
}
.search-field {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    margin-bottom: 14px;
    color: var(--gold);
}
.search-field input {
    width: 100%;
    padding: 2px;
    background: transparent;
    border: 0;
    color: var(--text);
    font-size: 14px;
    outline: none;
}
.dish-section {
    padding-top: 36px;
}
.dish-section h2 {
    color: var(--gold);
    margin-bottom: 10px;
}
.dish {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 27px 0;
    border-bottom: 1px solid var(--line);
}
.dish-copy {
    flex: 1;
    min-width: 0;
}
.dish h3 {
    font-size: 17px;
    font-weight: 500;
    margin: 0 0 7px;
    overflow-wrap: anywhere;
}
.dish p {
    font-size: 14px;
    max-width: 560px;
    color: var(--muted);
    margin: 0;
    white-space: pre-line;
}
.dish-image {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    overflow: hidden;
    border-radius: 7px;
}
.dish-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.price-list {
    display: flex;
    gap: 24px;
    text-align: right;
    flex-shrink: 0;
}
.price-option {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 54px;
    max-width: 140px;
}
.price {
    font-size: 21px;
    white-space: nowrap;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
}
.lari {
    font-size: 16px;
}
.portion {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
}
.unavailable .dish-copy, .unavailable .price-list {
    opacity: .6;
}
.guest-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--line);
    margin-top: 70px;
    padding: 24px 0;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .4px;
}
.guest-footer span:first-child {
    color: var(--gold);
    letter-spacing: 2px;
}
.empty, .loading {
    padding: 50px 20px;
    color: var(--muted);
    text-align: center;
}
.admin {
    background: var(--paper);
    color: var(--ink);
    font-size: 14px;
}
.admin h1 {
    font-size: 32px;
    letter-spacing: -.8px;
    font-weight: 500;
    margin-bottom: 12px;
}
.admin h2 {
    font-size: 20px;
    font-weight: 600;
}
.admin h3 {
    font-size: 16px;
}
.admin button, .admin .button {
    border-color: var(--border);
    padding: 8px 12px;
    font-size: 13px;
    background: white;
}
.admin .primary {
    background: var(--ink);
    color: white;
    border-color: var(--ink);
}
.admin .gold {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--ink);
}
.admin .danger {
    color: var(--danger);
}
.admin input, .admin textarea, .admin select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 9px 11px;
    background: white;
    color: var(--ink);
    min-height: 38px;
}
.admin input[type=checkbox] {
    width: 17px;
    min-height: 17px;
    height: 17px;
    accent-color: var(--ink);
    margin: 0;
}
.admin textarea {
    resize: vertical;
    min-height: 76px;
    line-height: 1.5;
}
.admin label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #586158;
    margin-bottom: 12px;
}
.admin label>input, .admin label>select, .admin label>textarea {
    display: block;
    margin-top: 5px;
}
.auth {
    max-width: 520px;
    margin: 7vh auto;
    padding: 34px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
}
.auth .brand-logo {
    filter: none;
    mix-blend-mode: normal;
    width: 63px;
    margin-bottom: 22px;
}
.auth .eyebrow {
    color: #8b7447;
}
.auth form {
    margin-top: 25px;
}
.auth p {
    color: #687367;
}
.admin-header {
    background: #172019;
    color: #f5f0e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    gap: 15px;
}
.admin-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}
.admin-brand .brand-logo {
    width: 43px;
    height: 46px;
}
.admin-brand strong {
    font-size: 16px;
    letter-spacing: .5px;
}
.admin-brand small {
    display: block;
    font-size: 11px;
    color: #b6c0ae;
}
.admin-header button {
    background: transparent;
    color: var(--text);
    border-color: #566050;
}
.admin-header button.gold {
    background: var(--gold);
    color: var(--ink);
}
.header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.admin-layout {
    display: grid;
    grid-template-columns: 205px 1fr;
    min-height: calc(100vh - 87px);
}
.sidebar {
    padding: 28px 16px;
    background: #eeeee6;
    border-right: 1px solid var(--border);
}
.sidebar button {
    display: block;
    text-align: left;
    justify-content: flex-start;
    border: 0;
    background: transparent;
    width: 100%;
    padding: 11px 13px;
    margin-bottom: 5px;
}
.sidebar button.active {
    background: white;
    box-shadow: 0 2px 6px #00000007;
}
.sidebar .subtle {
    font-size: 11px;
    padding: 12px;
    margin-top: 40px;
}
.studio {
    padding: 32px;
    min-width: 0;
}
.page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}
.subtle {
    color: #657061;
    font-size: 13px;
}
.toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin: 20px 0 12px;
}
.toolbar input {
    width: 220px;
}
.toolbar select {
    width: 180px;
}
.lang-buttons {
    display: flex;
    gap: 3px;
    margin-left: auto;
}
.lang-buttons button.active {
    background: var(--ink);
    color: white;
}
.bulkbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 2px;
}
.bulkbar select {
    width: 170px;
}
.bulkbar small {
    margin-left: auto;
}
.table-wrap {
    overflow: auto;
    max-height: 68vh;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: white;
}
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 1040px;
    font-size: 13px;
}
.data-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #eaece3;
    color: #52614d;
    text-align: left;
    padding: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .3px;
    border-bottom: 1px solid var(--border);
}
.data-table td {
    vertical-align: top;
    padding: 12px;
    border-bottom: 1px solid #e7e9e0;
}
.data-table tr:last-child td {
    border-bottom: 0;
}
.data-table .name-col {
    min-width: 235px;
    width: 25%;
}
.data-table .desc-col {
    min-width: 250px;
    width: 30%;
}
.data-table .price-col {
    min-width: 210px;
}
.data-table .meta-col {
    min-width: 150px;
}
.data-table input, .data-table textarea, .data-table select {
    font-size: 13px;
    min-height: 34px;
    padding: 7px 9px;
}
.data-table textarea {
    min-height: 72px;
}
.data-table small {
    font-size: 10px;
    display: block;
    color: #7c8478;
    margin-top: 6px;
}
.variant-line {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
}
.variant-line input:first-child {
    width: 110px;
}
.variant-line input:last-child {
    width: 86px;
}
.row-actions {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}
.row-actions button {
    font-size: 11px;
    padding: 4px 8px;
}
.missing {
    border-color: #bb8847 !important;
    background: #fffdf5 !important;
}
.panel {
    padding: 24px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 18px;
}
.panel .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.panel h3 {
    margin-bottom: 5px;
}
.panel p:last-child {
    margin-bottom: 0;
}
.menu-card {
    margin-bottom: 18px;
}
.category-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
}
.category-row span {
    flex: 1;
}
.actions {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}
.stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.stat {
    padding: 12px 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
}
.stat strong {
    font-size: 24px;
    margin-right: 8px;
    font-weight: 500;
}
.stat span {
    font-size: 11px;
    color: #64705e;
}
.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.grid3 {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 14px;
}
.check-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
}
.check-label input {
    display: inline-block !important;
    width: 17px !important;
    margin: 0 !important;
}
dialog {
    border: 1px solid var(--border);
    border-radius: 16px;
    max-width: 980px;
    width: calc(100vw - 40px);
    max-height: 90vh;
    padding: 0;
    color: var(--ink);
    background: var(--paper);
}
dialog::backdrop {
    background: #111b13aa;
    backdrop-filter: blur(3px);
}
.modal-head {
    position: sticky;
    top: 0;
    background: var(--paper);
    padding: 20px 25px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
}
.modal-head h2 {
    margin: 0;
}
.modal-body {
    padding: 24px;
}
.modal-foot {
    position: sticky;
    bottom: 0;
    padding: 16px 24px;
    background: var(--paper);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.variant-editor {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    margin-bottom: 12px;
}
.variant-editor .grid3 {
    margin-top: 10px;
}
.memberships {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.membership {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
}
.thumb {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 6px;
}
.mapping-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px 18px;
    max-height: 450px;
    overflow: auto;
    padding: 12px;
}
.file-zone {
    display: block;
    padding: 30px;
    border: 1px dashed #a8b09f;
    border-radius: 12px;
    background: white;
    margin: 20px 0;
}
.file-zone input {
    border: 0;
}
.error {
    background: #fff1ed;
    border: 1px solid #ebc6bc;
    color: #8b3028;
    padding: 12px;
    border-radius: 7px;
    white-space: pre-line;
}
.success {
    background: #e8f0e4;
    color: #37502a;
    padding: 12px;
    border-radius: 7px;
}
.warn {
    background: #fbf3db;
    border: 1px solid #e6d5a5;
    padding: 12px;
    border-radius: 7px;
    color: #725c24;
}
.tag {
    display: inline-block;
    padding: 2px 7px;
    font-size: 10px;
    border: 1px solid var(--border);
    border-radius: 5px;
    white-space: nowrap;
}
#toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    border-radius: 10px;
    background: var(--ink);
    color: white;
    box-shadow: 0 6px 20px #0002;
    max-width: 90%;
    z-index: 20;
    display: none;
    white-space: pre-line;
}
.mapping-table {
    width: 100%;
    font-size: 12px;
    border-collapse: collapse;
}
.mapping-table td, .mapping-table th {
    padding: 8px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}
code {
    font-size: 12px;
    overflow-wrap: anywhere;
}
.inline-help {
    font-size: 11px;
    color: #6c7666;
}
.settings-logo {
    filter: none;
    mix-blend-mode: normal;
    width: 80px;
    background: #efefea;
    padding: 6px;
}
.save-state {
    font-size: 11px;
    color: #cbd2c4;
}
@media (max-width:760px) {
    .guest-header {
        padding: 22px 22px 14px;
    }
    .menu-shell {
        padding: 27px 22px 16px;
    }
    .brand-logo {
        width: 57px;
        height: 62px;
    }
    h1 {
        font-size: 36px;
        margin-bottom: 24px;
    }
    .menu-index {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .menu-tile {
        min-height: 110px;
        font-size: 22px;
        padding: 24px;
    }
    .dish {
        gap: 15px;
        padding: 22px 0;
        flex-wrap: wrap;
    }
    .dish-copy {
        min-width: 60%;
        flex-basis: 60%;
    }
    .dish-image {
        flex: 0 0 65px;
        width: 65px;
        height: 65px;
    }
    .dish:has(.dish-image) .dish-copy {
        flex-basis: calc(100% - 85px);
        min-width: 0;
    }
    .price-list {
        margin-left: auto;
        gap: 22px;
        flex-wrap: wrap;
    }
    .dish:not(:has(.dish-image)) .price-list {
        flex-basis: 100%;
        justify-content: flex-end;
    }
    .price {
        font-size: 20px;
    }
    .guest-footer {
        margin-top: 44px;
        font-size: 10px;
        align-items: flex-start;
    }
    .guest-footer span:last-child {
        text-align: right;
    }
    .admin-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        display: flex;
        overflow: auto;
        gap: 5px;
        padding: 10px;
    }
    .sidebar button {
        white-space: nowrap;
        margin: 0;
        width: auto;
    }
    .sidebar .subtle {
        display: none;
    }
    .admin-header {
        padding: 15px;
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .admin-brand small {
        display: none;
    }
    .header-actions {
        margin-left: auto;
    }
    .header-actions button {
        font-size: 11px;
        padding: 7px;
    }
    .studio {
        padding: 22px 15px;
    }
    .page-head {
        flex-wrap: wrap;
    }
    .page-head h1 {
        font-size: 27px;
    }
    .grid3, .mapping-grid {
        grid-template-columns: 1fr;
    }
    .grid2, .memberships {
        grid-template-columns: 1fr;
    }
    .toolbar {
        padding: 12px;
    }
    .toolbar input {
        width: 100%;
    }
    .toolbar select {
        width: calc(100% - 130px);
    }
    .lang-buttons {
        margin-left: 0;
    }
    .table-wrap {
        max-height: 63vh;
    }
    .panel {
        padding: 17px;
    }
    .modal-body {
        padding: 18px;
    }
    .modal-head {
        padding: 16px;
    }
    .modal-head h2 {
        font-size: 18px;
    }
    .auth {
        margin: 25px 15px;
        padding: 25px;
    }
    .stats {
        gap: 6px;
    }
    .stat {
        padding: 8px 12px;
    }
    .stat strong {
        font-size: 20px;
    }
}
@media print {
    .guest-header, body {
        background: white;
        color: black;
    }
    .menu-shell {
        padding: 0;
    }
    .dish {
        break-inside: avoid;
    }
    .dish p, .portion, .price, .dish-section h2, .guest-footer {
        color: black;
    }
    .guest-footer {
        margin-top: 20px;
    }
}
[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;
}
.availability-note {
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
    background: #fff;
}
.availability-note p {
    margin: 6px 0 0;
    font-size: 13px;
    max-width: 950px;
}
.menu-card-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.structure-title, .category-title {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    min-width: 0;
}
.structure-title h2 {
    margin: 0;
}
.structure-title p {
    margin: 5px 0;
}
.structure-title input[type=checkbox], .category-title input[type=checkbox] {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 7px 0 0;
}
.category-title {
    flex: 1 1 180px;
}
.category-title strong {
    overflow-wrap: anywhere;
}
.category-title small {
    display: block;
    color: #596453;
    font-size: 12px;
}
.category-row {
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.category-row .actions {
    justify-content: flex-end;
}
.status-control {
    margin: 0 !important;
    display: block;
    min-width: 180px;
}
.status-control select {
    width: 100%;
    margin: 0 !important;
    font-size: 12px;
    padding: 9px 10px;
    min-height: 39px;
}
.menu-card .actions {
    align-items: center;
}
.menu-card .actions button {
    font-size: 12px;
    padding: 8px 11px;
    min-height: 39px;
}
.inherit-hint {
    display: block;
    font-size: 11px;
    color: #885b1b;
    line-height: 1.5;
    margin-top: 4px;
}
.structure-bulk {
    flex-wrap: wrap;
}
.structure-bulk select {
    max-width: 280px;
}
.warning {
    background: #fff6dd;
    border: 1px solid #d7be78;
    padding: 12px;
    border-radius: 7px;
    font-size: 13px;
}
#operation-error {
    white-space: normal;
}
.availability-badge {
    display: inline-block;
    font-size: 11px;
    line-height: 1.45;
    color: var(--gold);
    border: 1px solid #645d46;
    border-radius: 5px;
    padding: 3px 7px;
    max-width: 100%;
    white-space: normal;
}
.availability-badge.is-hidden {
    color: #ecc3ab;
    border-style: dashed;
}
.menu-availability:empty {
    display: none;
}
.menu-availability {
    margin: -14px 0 22px;
}
.tile-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    min-width: 0;
    overflow-wrap: anywhere;
}
.category-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.category-heading h2 {
    margin: 0;
}
.category-heading {
    margin-bottom: 10px;
}
.dish-copy .availability-badge {
    margin-top: 10px;
}
.menu-tile.unavailable .tile-copy>span:first-child {
    opacity: .75;
}
@media (max-width:1000px) {
    .menu-card-heading>.actions {
        width: 100%;
    }
    .category-row .actions {
        justify-content: flex-start;
    }
}
@media (max-width:760px) {
    .menu-card {
        padding: 16px;
    }
    .menu-card-heading {
        gap: 12px;
    }
    .category-row .actions {
        width: 100%;
    }
    .category-row .status-control {
        flex: 1 1 100%;
    }
    .structure-bulk select {
        max-width: 100%;
        width: 100%;
    }
    .status-control {
        min-width: 0;
    }
    .menu-card-heading .status-control {
        flex: 1 1 100%;
    }
    .availability-note {
        padding: 14px;
    }
    .availability-badge {
        font-size: 10px;
    }
    .category-heading {
        gap: 7px;
    }
    .modal-foot {
        flex-wrap: wrap;
    }
    dialog {
        width: calc(100vw - 20px);
    }
    .modal-body {
        padding: 18px;
    }
    .modal-head {
        padding: 16px 18px;
    }
}
.availability-indicator {
    color: var(--gold);
    font-size: 11px;
    line-height: 1;
    flex: 0 0 auto;
}
.unavailable .dish-copy, .unavailable .price-list {
    opacity: 1;
}
.unavailable .dish-copy h3 {
    color: var(--muted);
}
.structure-bulk select {
    width: auto;
    min-width: 230px;
}
.row-actions {
    flex-wrap: wrap;
}
@media (max-width:760px) {
    .structure-bulk select {
        width: 100%;
        min-width: 0;
    }
}
.pwa-panel {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
    margin: 0 0 28px;
}
.pwa-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pwa-actions button {
    font-size: 12px;
    min-height: 38px;
    padding: 8px 12px;
}
.pwa-meta {
    display: flex;
    flex-wrap: wrap;
    column-gap: 18px;
    row-gap: 3px;
    margin-top: 9px;
    color: var(--muted);
    font-size: 11px;
}
.pwa-meta:empty {
    display: none;
}
.offline-warning {
    border-left: 3px solid var(--gold);
    padding: 2px 12px;
    margin-bottom: 12px;
}
.offline-warning strong {
    color: var(--gold);
    font-size: 14px;
}
.offline-warning p {
    color: var(--muted);
    font-size: 12px;
    margin: 4px 0 0;
}
.pwa-dialog {
    max-width: 520px;
    background: var(--bg);
    color: var(--text);
    border-color: var(--line);
}
.pwa-dialog-inner {
    padding: 28px;
}
.pwa-dialog-inner p {
    color: var(--muted);
}
.text-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.text-filter input {
    flex: 1;
    min-width: 180px;
}
.text-filter select {
    width: 220px;
}
.text-editor {
    max-height: none;
    overflow: visible;
}
.text-group {
    background: #ebeee5;
    font-size: 13px;
    font-weight: 700;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    margin: 0;
}
.text-row {
    display: grid;
    grid-template-columns: minmax(165px,.85fr) repeat(3,minmax(0,1fr));
    gap: 16px;
    padding: 18px;
    border-bottom: 1px solid var(--border);
    background: white;
}
.text-row-meta strong {
    display: block;
    font-size: 13px;
    line-height: 1.45;
}
.text-row-meta code {
    display: block;
    font-size: 11px;
    margin: 6px 0;
    color: #6c7569;
}
.text-row-meta small {
    display: block;
    line-height: 1.4;
    margin-bottom: 10px;
}
.text-row textarea {
    font-size: 13px;
    min-height: 86px;
}
.text-row label {
    margin: 0;
}
.text-row label small {
    font-size: 10px;
    font-weight: 400;
    display: block;
    margin-top: 3px;
    color: #66705f;
}
.text-row textarea.is-custom {
    border-color: #b09a69;
    background: #fffcf3;
}
.text-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.text-toolbar input[type=file] {
    width: 240px;
}
.pwa-summary {
    padding: 15px 18px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: 8px;
    margin-bottom: 20px;
    background: white;
}
.pwa-summary p {
    margin: 6px 0;
    color: #63705d;
    font-size: 13px;
}
.text-empty {
    padding: 25px;
    background: white;
}
.settings-toggle {
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin: 15px 0 !important;
}
.settings-toggle input {
    width: 18px !important;
    margin: 0 !important;
}
.guest-footer {
    overflow-wrap: anywhere;
}
@media (max-width:1000px) {
    .text-row {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
    .text-row-meta {
        grid-column: 1/-1;
    }
    .text-row-meta code, .text-row-meta small {
        display: inline-block;
        margin-right: 12px;
    }
    .text-row-meta button {
        float: right;
    }
}
@media (max-width:760px) {
    .text-row {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    .text-row-meta {
        grid-column: auto;
    }
    .text-filter select {
        width: 100%;
    }
    .text-toolbar>* {
        max-width: 100%;
    }
    .pwa-actions button {
        flex: 1 1 auto;
    }
    .pwa-meta {
        flex-direction: column;
    }
    .pwa-panel {
        margin-bottom: 24px;
    }
    .pwa-dialog-inner {
        padding: 24px;
    }
    .guest-header {
        padding-top: max(22px,env(safe-area-inset-top));
    }
    .menu-shell {
        padding-bottom: max(20px,env(safe-area-inset-bottom));
    }
}
@media print {
    .pwa-panel {
        display: none;
    }
}
.text-import-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    flex-wrap: wrap;
}
.text-import-label input[type=file] {
    width: 240px;
    max-width: 100%;
}
.price-list {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.dish {
    flex-wrap: wrap;
}
.dish-copy {
    flex: 1 1 260px;
}
.price-option {
    overflow-wrap: anywhere;
}
.save-state {
    align-self: center;
}
.auth form button {
    margin-top: 8px;
}
.data-table td {
    overflow-wrap: anywhere;
}
button:focus-visible {
    outline-offset: 3px;
}
@media (max-width:400px) {
    .guest-header {
        gap: 8px;
    }
    .languages button {
        padding: 8px;
    }
    .menu-shell {
        padding-left: 18px;
        padding-right: 18px;
    }
    .pwa-actions {
        flex-direction: column;
    }
    .dish-copy {
        flex-basis: 100%;
    }
}
@media (prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
.admin {
    --paper: #111311;
    --ink: #f5f0e6;
    --border: #42483c;
    --danger: #ffada0;
    --panel: #191d18;
    --field: #121611;
    --soft: #b9c1b2;
    background: var(--paper);
    color: var(--ink);
    color-scheme: dark;
}
.admin .studio {
    background: var(--paper);
}
.admin .auth, .admin .panel, .admin .toolbar, .admin .table-wrap, .admin .stat, .admin .availability-note, .admin .variant-editor, .admin .membership, .admin .text-group, .admin .text-row, .admin .pwa-summary, .admin .text-empty {
    background: var(--panel);
    border-color: var(--border);
}
.admin .sidebar {
    background: #151914;
    border-color: var(--border);
}
.admin .sidebar button {
    background: transparent;
}
.admin .sidebar button.active {
    background: #2b2d22;
    color: var(--gold);
    box-shadow: inset 3px 0 var(--gold);
}
.admin .admin-header {
    background: #151914;
    border-bottom: 1px solid var(--border);
}
.admin button, .admin .button {
    background: #20271e;
    border-color: var(--border);
    color: var(--text);
}
.admin button:hover, .admin .button:hover {
    background: #2b3226;
    border-color: var(--gold);
}
.admin button.primary, .admin .button.primary, .admin button.gold, .admin .lang-buttons button.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #171c14;
}
.admin button.primary:hover, .admin button.gold:hover {
    background: #dcc38b;
}
.admin button.danger {
    color: var(--danger);
    border-color: #805349;
    background: #2c1e19;
}
.admin button.danger:hover {
    background: #442820;
    border-color: var(--danger);
}
.admin input, .admin textarea, .admin select {
    background: var(--field);
    color: var(--text);
    border-color: #515847;
    max-width: 100%;
}
.admin input::placeholder, .admin textarea::placeholder {
    color: #9eaa95;
    opacity: 1;
}
.admin select option {
    background: var(--field);
    color: var(--text);
}
.admin input:disabled, .admin select:disabled, .admin textarea:disabled {
    background: #1c211a;
    color: #a0a898;
    opacity: .75;
}
.admin input[type=checkbox] {
    accent-color: var(--gold);
    color-scheme: dark;
}
.admin label {
    color: #d0d6c8;
    min-width: 0;
}
.admin .grid2>*, .admin .grid3>* {
    min-width: 0;
}
.admin .subtle, .admin .inline-help, .admin .auth p, .admin .stat span, .admin .data-table small, .admin .category-title small, .admin .text-row-meta code, .admin .text-row-meta small, .admin .text-row label small, .admin .pwa-summary p {
    color: var(--soft);
}
.admin .eyebrow, .admin .auth .eyebrow {
    color: var(--gold);
}
.admin .data-table th, .admin .text-group h2, .admin .text-group h3 {
    background: #262d22;
    color: #d4dcca;
    border-color: var(--border);
}
.admin .data-table td, .admin .mapping-table th, .admin .mapping-table td, .admin .category-row {
    border-color: #343c2e;
}
.admin .data-table tbody tr:hover {
    background: #1f251d;
}
.admin .missing {
    background: #292619 !important;
    border-color: #b99b5a !important;
}
.admin .text-row textarea.is-custom {
    background: #292619;
    border-color: #b99b5a;
}
.admin .error {
    background: #2e1d19;
    color: #ffc5b8;
    border-color: #885449;
}
.admin .warn, .admin .warning {
    background: #2b281a;
    color: #ead49a;
    border-color: #776638;
}
.admin .success {
    background: #1e2c1b;
    color: #c5dfb5;
    border: 1px solid #5b7449;
}
.admin .inherit-hint {
    color: #e0c183;
}
.admin .file-zone {
    background: #151b13;
    border-color: #7d8066;
}
.admin dialog, .admin .modal-head, .admin .modal-foot {
    background: #191d18;
    color: var(--text);
    border-color: var(--border);
}
.admin .auth .brand-logo {
    filter: none;
    mix-blend-mode: normal;
}
.admin .settings-logo {
    background: #dedbd3;
}
.admin #toast {
    background: #d1bc87;
    color: #141911;
    box-shadow: 0 6px 25px #0007;
}
.admin .tag {
    border-color: #5c654d;
    color: #d0d7c5;
}
.admin .import-destination-note, .admin .delete-impact {
    background: #22271d;
    border: 1px solid #646046;
    border-left: 3px solid var(--gold);
    padding: 16px 18px;
    margin: 8px 0 20px;
    border-radius: 9px;
    line-height: 1.65;
    color: #dbe0d1;
}
.admin .delete-impact p {
    margin: 8px 0 0;
}
.admin .delete-names {
    color: var(--gold);
    font-weight: 600;
    overflow-wrap: anywhere;
}
.admin .mapping-ignored {
    opacity: .65;
}
.admin .mapping-ignored small {
    display: block;
    font-size: 11px;
    font-weight: 400;
}
.admin .import-preview-title {
    margin-top: 26px;
}
.admin .import-preview-scroll {
    overflow: auto;
    max-height: 480px;
    border: 1px solid var(--border);
    border-radius: 8px;
}
.admin .import-preview-scroll .mapping-table {
    min-width: 740px;
}
.admin .mapping-table th {
    background: #262d22;
    position: sticky;
    top: 0;
    z-index: 1;
    color: #d9e0d0;
}
.admin .mapping-table td {
    vertical-align: top;
    max-width: 280px;
    overflow-wrap: anywhere;
}
.admin .mapping-grid {
    margin: 16px 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #151914;
}
.admin .mapping-grid label {
    margin: 0 0 12px;
}
.admin .header-actions {
    align-items: center;
}
.admin .file-zone input {
    padding-left: 0;
    font-size: 13px;
}
@media (max-width:760px) {
    .admin .import-destination-note, .admin .delete-impact {
        padding: 13px;
    }
    .admin .import-preview-scroll {
        max-height: 400px;
    }
    .admin .header-actions {
        margin-left: 0;
        width: 100%;
        gap: 7px;
    }
    .admin .save-state {
        width: 100%;
        line-height: 1.4;
    }
    .admin .grid2 {
        gap: 12px;
    }
    .admin .modal-foot button {
        min-height: 42px;
    }
    .admin .mapping-grid {
        max-height: 440px;
    }
    .admin .page-head .actions {
        width: 100%;
    }
    .admin .file-zone {
        padding: 18px;
    }
    .admin .file-zone input {
        width: 100%;
    }
}
.menu-index {
    grid-template-columns: minmax(0,1fr);
}
.dish-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    column-gap: 40px;
    align-items: stretch;
}
.dish-grid>.dish {
    min-width: 0;
    margin: 0;
}
.dish-grid .price-list {
    min-width: 0;
}
.dish-grid .dish-copy, .dish-grid .portion {
    overflow-wrap: anywhere;
}
#pwa-host:empty, #pwa-footer:empty {
    display: none;
}
.guest-app-tools {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
}
.guest-app-tools button {
    font-size: 12px;
    color: var(--muted);
    padding: 8px 0;
    border: 0;
    border-radius: 0;
    background: none;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.guest-app-tools button:hover {
    color: var(--gold);
}
#pwa-host .pwa-panel {
    margin: 0 0 24px;
}
#pwa-host .pwa-meta:empty {
    display: none;
}
.guest-app-tools+.guest-footer {
    margin-top: 24px;
}
@media (min-width:1024px) {
    .guest-header, .menu-shell {
        max-width: 1280px;
    }
    .menu-index, .dish-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .dish-grid>.dish {
        display: grid;
        grid-template-columns: minmax(0,1fr) auto;
        column-gap: 18px;
        row-gap: 12px;
        align-content: start;
        align-items: start;
    }
    .dish-grid>.dish:has(.dish-image) {
        grid-template-columns: 72px minmax(0,1fr);
    }
    .dish-grid>.dish .dish-image {
        width: 72px;
        height: 72px;
    }
    .dish-grid>.dish .dish-copy {
        min-width: 0;
    }
    .dish-grid>.dish .price-list {
        grid-column: 1/-1;
        justify-self: end;
        gap: 14px 22px;
        margin: 0;
        max-width: 100%;
        flex-wrap: wrap;
    }
    .dish-grid>.dish .price-option {
        min-width: 54px;
        max-width: 125px;
    }
    .dish-grid>.dish:not(:has(.dish-image)) .dish-copy {
        grid-column: 1/-1;
    }
}
@media print {
    .dish-grid {
        display: block;
    }
    .guest-app-tools {
        display: none;
    }
    .dish {
        break-inside: avoid;
    }
    .menu-index {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}
.brand-logo, .admin .brand-logo, .auth .brand-logo {
    filter: none;
    mix-blend-mode: normal;
    object-fit: contain;
}
.studio-content {
    min-width: 0;
}
.history-list {
    display: grid;
    gap: 0;
}
.history-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.history-row:first-child {
    padding-top: 0;
}
.history-row:last-child {
    border-bottom: 0;
}
.history-row>div:first-child {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}
.history-row strong {
    display: block;
    font-size: 15px;
}
.history-row small {
    display: block;
    font-size: 12px;
    margin-top: 6px;
    color: #bbc1b3;
}
.profile-tools {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}
.profile-tools label {
    flex: 1;
    min-width: 180px;
    margin: 0;
}
.profile-tools button {
    min-height: 40px;
}
.admin .auth {
    background: #191d18;
}
.admin .modal-body {
    overflow-wrap: anywhere;
}
.data-table select {
    margin-top: 8px;
}
.brand-logo.custom-logo {
    max-width: 130px;
}
@media (max-width:760px) {
    .history-row .actions {
        width: 100%;
    }
    .history-row .actions button {
        flex: 1;
    }
    .history-row {
        gap: 12px;
    }
    .profile-tools>button {
        flex: 1;
    }
    .profile-tools label {
        flex-basis: 100%;
    }
    .admin .page-head h1 {
        line-height: 1.2;
    }
    .admin .header-actions {
        margin: 0;
        width: 100%;
    }
    .admin-brand {
        min-width: 0;
    }
    .admin .header-actions button {
        flex: 1;
    }
    .admin .save-state {
        width: 100%;
    }
}
.admin .addons-col {
    min-width: 235px;
}
.addon-inline {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.addon-inline-price {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 5px 0;
}
.addon-inline select {
    font-size: 12px;
}
.addon-editor {
    padding: 18px;
    margin-bottom: 14px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.addon-editor-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}
.addon-editor .grid2 label {
    margin-bottom: 6px;
}
.membership-heading {
    margin-top: 26px;
}
.guest-addons {
    grid-column: 1/-1;
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    align-self: start;
    margin-top: 6px;
    background: var(--panel);
}
.guest-addons summary {
    padding: 12px 14px;
    cursor: pointer;
    font-size: 13px;
    color: var(--gold);
    overflow-wrap: anywhere;
}
.addon-count {
    display: inline-block;
    font-size: 11px;
    margin-left: 8px;
    color: var(--muted);
}
.guest-addons fieldset {
    border: 0;
    padding: 0 14px;
    margin: 0;
    min-width: 0;
}
.guest-addons fieldset:disabled {
    opacity: .7;
}
.addon-choice, .addon-base {
    display: grid;
    grid-template-columns: 18px minmax(0,1fr) auto;
    gap: 10px;
    align-items: start;
    padding: 11px 0;
    border-top: 1px solid var(--line);
    font-size: 13px;
    line-height: 1.55;
    cursor: pointer;
}
.guest-addons input[type=checkbox], .guest-addons input[type=radio] {
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    accent-color: var(--gold);
    color-scheme: dark;
}
.addon-unavailable {
    color: var(--muted);
    cursor: default;
}
.addon-name {
    min-width: 0;
    overflow-wrap: anywhere;
}
.addon-name .availability-badge {
    display: block;
    width: fit-content;
    margin-top: 5px;
}
.addon-amount {
    white-space: nowrap;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
}
.addon-base-options>p {
    margin: 0 0 9px;
    font-size: 12px;
}
.addon-base-options {
    margin-bottom: 12px;
}
.addon-base span {
    overflow-wrap: anywhere;
}
.addon-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin: 6px 14px 0;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    font-size: 13px;
}
.addon-total output {
    color: var(--gold);
    font-size: 20px;
    white-space: nowrap;
}
.guest-addons .addon-note {
    margin: 0;
    padding: 0 14px 14px;
    font-size: 11px;
    line-height: 1.65;
    color: var(--muted);
}
.guest-addons .addon-reset {
    padding: 5px 14px;
    font-size: 11px;
    color: var(--muted);
    margin: 0 0 8px;
    min-height: 32px;
    max-width: 100%;
    text-align: left;
}
.guest-addons summary:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}
@media (min-width:761px) and (max-width:1023px) {
    .dish:has(.guest-addons) {
        flex-wrap: wrap;
    }
}
@media (max-width:400px) {
    .addon-choice, .addon-base {
        grid-template-columns: 18px minmax(0,1fr);
        gap: 6px 9px;
    }
    .addon-amount {
        grid-column: 2;
        justify-self: end;
    }
    .addon-editor {
        padding: 12px;
    }
}
@media print {
    .guest-addons {
        display: none;
    }
}
.admin input::placeholder, .admin textarea::placeholder {
    color: #aeb7a5;
    opacity: 1;
    font-weight: 400;
}
.admin label {
    line-height: 1.55;
    margin-bottom: 16px;
}
.admin input:not([type=checkbox]):not([type=radio]), .admin select {
    min-height: 42px;
}
.admin textarea {
    line-height: 1.6;
}
.admin .check-label, .admin .settings-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 12px;
    min-height: 42px;
    line-height: 1.6;
    margin: 8px 0 16px !important;
}
.admin input[type=checkbox], .admin input[type=radio] {
    display: inline-block !important;
    flex: 0 0 18px;
    width: 18px !important;
    height: 18px;
    min-height: 18px !important;
    margin: 0 !important;
    vertical-align: middle;
    align-self: center;
}
.admin .structure-title, .admin .category-title {
    align-items: center;
    gap: 14px;
}
.admin .data-table td:first-child, .admin .data-table th:first-child {
    vertical-align: middle;
    text-align: center;
    width: 45px;
    min-width: 45px;
}
.admin .data-table th {
    vertical-align: middle;
}
.admin .data-table td {
    padding: 15px 12px;
}
.admin .variant-line {
    gap: 9px;
    margin-bottom: 10px;
    align-items: center;
}
.admin .variant-line input:first-child {
    min-width: 100px;
    flex: 1;
}
.admin .variant-line input:last-child {
    width: 100px;
    flex: 0 0 100px;
}
.admin .variant-editor>.row {
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.admin .variant-editor>.row>label {
    margin: 0;
    min-width: 135px;
}
.admin .addon-inline {
    display: grid;
    gap: 9px;
    margin-bottom: 15px;
    padding-bottom: 12px;
}
.admin .addon-inline-price {
    display: flex;
    align-items: center;
    gap: 9px;
}
.admin .image-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}
.admin .row-actions {
    gap: 7px;
    margin-top: 12px;
}
.admin .grid2, .admin .grid3 {
    gap: 22px;
}
.admin .modal-body>form>h3, .admin .modal-body>form>.membership-heading {
    margin-top: 28px;
    margin-bottom: 16px;
}
.admin .modal-foot {
    gap: 12px;
    padding: 18px 24px;
}
.admin .modal-body {
    padding: 26px;
}
.admin .membership {
    padding: 16px;
}
.admin .membership>label {
    margin-bottom: 12px !important;
}
.admin .upload-panel {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin: 8px 0 22px;
    display: grid;
    gap: 14px;
    align-items: start;
}
.admin .upload-panel label {
    margin: 0;
}
.admin .upload-panel>button {
    justify-self: start;
}
.admin .upload-preview {
    display: block;
    width: 110px;
    height: 100px;
    object-fit: contain;
    border-radius: 8px;
    background: #111311;
    border: 1px solid #454c40;
    padding: 6px;
}
.admin input[type=file] {
    max-width: 100%;
    padding: 10px;
    font-size: 13px;
    overflow: hidden;
}
.admin .spaced-label {
    margin-top: 22px;
}
.admin .toolbar {
    gap: 14px;
}
.admin .bulkbar {
    gap: 10px;
    line-height: 1.7;
}
.admin .save-strip {
    padding: 18px 32px 0;
}
.admin .save-feedback {
    border: 1px solid #424b3b;
    border-radius: 10px;
    background: #192019;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    color: #d3dcc9;
    font-size: 12px;
}
.admin .save-feedback .live-status {
    font-size: 13px;
    font-weight: 700;
    color: #d2bd8d;
}
.admin .save-feedback small {
    flex-basis: 100%;
    color: #b6c1ab;
    font-size: 12px;
}
.admin .save-feedback p {
    margin: 5px 0 0;
    max-width: 850px;
}
.admin .save-feedback.is-error {
    border-color: #a97d5a;
    background: #33251b;
    color: #f2d2b9;
    justify-content: space-between;
}
.admin .header-actions {
    align-items: center;
    gap: 10px;
}
.admin .save-state {
    min-width: 96px;
    line-height: 1.5;
}
.admin .panel .actions {
    align-items: center;
}
.admin .status-control {
    margin-bottom: 0 !important;
}
.admin .auth .brand-logo {
    filter: none;
    mix-blend-mode: normal;
}
.guest-addons .addon-choice, .guest-addons .addon-base {
    align-items: center;
    gap: 12px;
    line-height: 1.6;
    padding-top: 11px;
    padding-bottom: 11px;
}
.guest-addons input[type=checkbox], .guest-addons input[type=radio] {
    align-self: center;
    margin: 0;
    min-width: 18px;
    width: 18px;
    height: 18px;
    vertical-align: middle;
}
@media (max-width:760px) {
    .admin .save-strip {
        padding: 14px 15px 0;
    }
    .admin .save-feedback {
        padding: 13px;
        gap: 9px;
    }
    .admin .header-actions {
        width: 100%;
        margin: 10px 0 0;
        justify-content: flex-start;
    }
    .admin .header-actions .save-state {
        flex-basis: 100%;
    }
    .admin .upload-panel {
        padding: 16px;
    }
    .admin .modal-body {
        padding: 18px;
    }
    .admin .modal-foot {
        padding: 16px;
    }
    .admin .grid2, .admin .grid3 {
        gap: 16px;
    }
    .admin .variant-editor>.row>strong {
        flex-basis: 100%;
    }
    .admin .check-label, .admin .settings-toggle {
        gap: 10px;
    }
    .admin .page-head .actions {
        gap: 10px;
    }
    .admin .text-toolbar {
        gap: 14px;
    }
    .admin .text-filter input {
        min-width: 0;
    }
}
@media (max-width:400px) {
    .guest-addons .addon-choice>input, .guest-addons .addon-base>input {
        grid-column: 1;
        grid-row: 1 / span 2;
        align-self: center;
    }
    .guest-addons .addon-amount {
        grid-column: 2;
        grid-row: 2;
    }
}

/* Guest navigation: one horizontal viewport, with accessible overflow controls. */
.menu-shell h1, .menu-shell .notice, .category-heading h2 {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}
.menu-tools {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 2;
    background: var(--bg);
    padding: 12px 0 2px;
    min-width: 0;
}
.nav-rail {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    align-items: center;
    width: 100%;
    min-width: 0;
    direction: ltr;
}
.nav-rail[data-overflow] {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
}
.menu-rail { margin-bottom: 25px; }
.category-rail {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}
.nav-viewport {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px;
    scrollbar-width: none;
    scroll-padding-inline: 6px;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}
.nav-viewport::-webkit-scrollbar { display: none; width: 0; height: 0; }
.nav-viewport > button {
    flex: 0 0 auto;
    max-width: calc(100% - 12px);
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    padding: 9px 15px;
    font-size: 13px;
    line-height: 1.5;
}
.nav-label {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.nav-viewport > button:focus-visible { outline-offset: -3px; }
.menu-tabs .selected {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--bg);
}
.menu-tabs .selected .availability-indicator { color: var(--bg); }
.category-tabs > button {
    border-radius: 24px;
    border-color: transparent;
    font-size: 12px;
}
.category-tabs > button.active {
    background: #232219;
    color: var(--gold);
    border-color: var(--gold);
}
.rail-arrow {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    color: var(--gold);
    border-color: var(--line);
    background: var(--panel);
}
.rail-arrow:not(:disabled):hover { border-color: var(--gold); background: #23271f; }
.rail-arrow:disabled { opacity: .35; cursor: default; }
.rail-arrow svg { flex-shrink: 0; pointer-events: none; }
@media (max-width: 760px) {
    .menu-rail { margin-bottom: 12px; }
    .nav-viewport { gap: 6px; }
    .nav-viewport > button { padding-inline: 12px; }
}
@media (forced-colors: active) {
    .nav-viewport, .rail-arrow { forced-color-adjust: auto; }
    .nav-viewport > button.active, .nav-viewport > button.selected { outline: 2px solid Highlight; outline-offset: -3px; }
}
@media print {
    .guest-header, .nav-rail, .menu-tools, #pwa-host, #pwa-footer { display: none !important; }
    body { color-scheme: light; background: white; color: black; }
}

/* Management rhythm: keep helper copy visually separated from controls. */
.admin p.inline-help,
.admin p.subtle,
.admin p.warn,
.admin p.error,
.admin p.success {
    line-height: 1.65;
}
.admin p.inline-help {
    margin: 12px 0 18px;
}
.admin button + p.inline-help,
.admin .button + p.inline-help,
.admin .actions + p.inline-help,
.admin .row-actions + p.inline-help,
.admin input + p.inline-help,
.admin select + p.inline-help,
.admin textarea + p.inline-help {
    margin-top: 14px;
}
.admin p.inline-help + button,
.admin p.inline-help + .button,
.admin p.inline-help + .actions,
.admin p.subtle + button,
.admin p.subtle + .button,
.admin p.subtle + .actions {
    margin-top: 4px;
}
.admin form > button,
.admin form > .actions {
    margin-bottom: 12px;
}
.admin .panel > button + label,
.admin .panel > .button + label,
.admin .panel > button + p,
.admin .panel > .button + p {
    margin-top: 16px;
}
.admin .upload-panel p.inline-help {
    margin: 2px 0 0;
}
.admin .upload-panel > button + p.inline-help {
    margin-top: 2px;
}
.admin .membership select {
    margin-top: 4px;
}
.admin .check-label > span,
.admin .settings-toggle > span {
    align-self: center;
}
.admin .bulkbar > span,
.admin .bulkbar > small {
    align-self: center;
}
@media (max-width:760px) {
    .admin p.inline-help { margin-bottom: 16px; }
    .admin form > button, .admin form > .actions { margin-bottom: 14px; }
}

.admin button + small.inline-help,
.admin .button + small.inline-help,
.admin button + .subtle,
.admin .button + .subtle {
    display: block;
    margin-top: 12px;
}
.admin .actions + .subtle,
.admin .actions + small.inline-help {
    display: block;
    margin-top: 12px;
}
.admin .panel > p:last-child,
.admin form > p:last-child {
    margin-bottom: 0;
}

/* Price choices: fixed centered label/price pairing. */
.price-list {
    align-items: flex-start;
}
.price-option {
    min-width: 88px;
    max-width: 140px;
    align-items: center;
    text-align: center;
}
.price-option .price,
.price-option .portion {
    display: block;
    width: 100%;
    text-align: center;
}
.price-option .portion {
    min-height: 1.4em;
}
.price-option .portion.is-empty {
    visibility: hidden;
}
.admin .inline-add {
    margin-top: 8px;
    width: 100%;
    justify-content: center;
    border-style: dashed;
}
.admin .inline-remove {
    flex: 0 0 32px;
    width: 32px;
    min-height: 34px;
    padding: 4px 8px;
    font-size: 18px;
    line-height: 1;
}
.admin .variant-line,
.admin .addon-inline {
    align-items: center;
}


/* Dish image upload: explicit current/selected/uploaded/saved states. */
.admin .image-current {
    min-height: 70px;
    display: flex;
    align-items: center;
}
.admin .image-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.admin .image-empty {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
}
.admin .image-upload-status {
    display: block;
    max-width: 240px;
    margin-top: 2px;
    line-height: 1.5;
    color: var(--muted);
    overflow-wrap: anywhere;
}
.admin .image-upload-status.is-uploading,
.admin .image-upload-status.is-saving,
.admin .image-upload-status.is-removing { color: var(--gold); }
.admin .image-upload-status.is-live,
.admin .image-upload-status.is-removed { color: #b9d9b2; }
.admin .image-upload-status.is-error { color: #ffb1aa; }
.admin .upload-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.admin .image-upload-panel #item-image-preview {
    min-height: 108px;
    display: flex;
    align-items: center;
}
.admin .image-upload-panel #item-image-status {
    max-width: none;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255,255,255,.025);
}
