:root {
    --green: #174A3A;
    --orange: #C85A32;
    --mustard: #D6A62C;
    --sand: #E8D3B0;
    --brown: #3A2922;
    --cream: #fff7e9;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 12% 0, rgba(200, 90, 50, 0.12), transparent 28%),
        linear-gradient(120deg, rgba(23, 74, 58, 0.08), transparent 34%),
        var(--sand);
    color: var(--brown);
    font-family: "DM Sans", Arial, sans-serif;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
    background:
        linear-gradient(90deg, rgba(13, 39, 31, 0.98), rgba(23, 74, 58, 0.96)),
        var(--green);
    color: var(--cream);
    box-shadow: 0 16px 40px rgba(23, 74, 58, 0.25);
}

.admin-brand {
    display: inline-flex;
    align-items: center;
    width: 58px;
    height: 58px;
    text-decoration: none;
}

.admin-brand img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border: 1px solid rgba(214, 166, 44, 0.5);
    border-radius: 50%;
    background: var(--sand);
    padding: 0.12rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.admin-topbar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.admin-nav-toggle {
    display: none;
}

.admin-topbar a,
.table-link {
    font-weight: 700;
    text-decoration: none;
}

.admin-topbar nav a {
    padding: 0.45rem 0.65rem;
    border-radius: 999px;
}

.admin-topbar nav a.is-active {
    background: rgba(214, 166, 44, 0.18);
    color: var(--mustard);
}

.admin-topbar button,
.admin-btn,
.table-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.7rem 1rem;
    border: 0;
    border-radius: 999px;
    background: var(--orange);
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    font-weight: 800;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.admin-topbar button:hover,
.admin-btn:hover,
.table-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(200, 90, 50, 0.22);
}

.admin-btn.muted,
.table-link {
    background: rgba(23, 74, 58, 0.1);
    color: var(--green);
    border: 1px solid rgba(23, 74, 58, 0.18);
    box-shadow: none;
}

.admin-shell {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

.auth-panel,
.admin-card,
.stat-grid article {
    border: 1px solid rgba(58, 41, 34, 0.14);
    border-radius: 8px;
    background: rgba(255, 247, 233, 0.72);
    box-shadow: 0 22px 70px rgba(58, 41, 34, 0.12);
}

.auth-panel {
    max-width: 460px;
    margin: 3rem auto;
    padding: 1.4rem;
}

.page-head {
    margin-bottom: 1.4rem;
}

.page-head.with-actions {
    display: grid;
    gap: 1rem;
    align-items: end;
}

.page-actions,
.row-actions,
.quick-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.kicker {
    margin: 0 0 0.4rem;
    color: var(--orange);
    font-family: "Rye", Georgia, serif;
}

h1,
h2 {
    margin: 0;
    font-family: "Bree Serif", Georgia, serif;
    font-weight: 400;
    line-height: 1.05;
}

h1 {
    font-size: clamp(2.4rem, 9vw, 4.5rem);
}

h2 {
    font-size: 2rem;
}

.admin-flash {
    padding: 0.9rem 1rem;
    border-radius: 8px;
    background: var(--green);
    color: var(--cream);
    font-weight: 700;
}

.admin-flash.error {
    background: var(--orange);
}

.admin-form {
    display: grid;
    gap: 1rem;
}

.two-col,
.settings-grid,
.four-col {
    display: grid;
    gap: 1rem;
}

label {
    display: grid;
    gap: 0.35rem;
    font-weight: 700;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    width: 100%;
    border: 1px solid rgba(58, 41, 34, 0.2);
    border-radius: 6px;
    padding: 0.75rem;
    background: #fffaf0;
    color: var(--brown);
    box-sizing: border-box;
    font-size: 0.95rem;
}

input[type="checkbox"],
input[type="radio"] {
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
    accent-color: var(--orange);
    margin: 0;
    flex-shrink: 0;
}

.checkbox-field {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.72rem 0.9rem;
    border: 1px solid rgba(58, 41, 34, 0.2);
    border-radius: 6px;
    background: #fffaf0;
    color: var(--brown);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    box-sizing: border-box;
    min-height: 48px;
    transition: border-color 160ms ease, background 160ms ease;
}

.checkbox-field:hover {
    border-color: var(--orange);
    background: #fff5e6;
}

.hour-row label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.holiday-form {
    align-items: end;
}

.holiday-form .form-btn-wrap {
    display: flex;
    align-items: flex-end;
}

.holiday-form .form-btn-wrap .admin-btn {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.badge-closed {
    background: rgba(200, 90, 50, 0.15);
    color: #a43a18;
    border: 1px solid rgba(200, 90, 50, 0.3);
}

.badge-open {
    background: rgba(23, 74, 58, 0.12);
    color: #174a3a;
    border: 1px solid rgba(23, 74, 58, 0.25);
}

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

.admin-card {
    display: grid;
    gap: 1.3rem;
    margin-bottom: 1.4rem;
    padding: 1rem;
}

.stat-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.stat-grid article {
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.stat-grid article::after {
    content: "";
    position: absolute;
    right: -2rem;
    top: -2rem;
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    background: rgba(214, 166, 44, 0.15);
}

.stat-grid span,
.stat-grid small,
.detail-grid dt {
    color: rgba(58, 41, 34, 0.7);
    font-weight: 700;
}

.stat-grid strong {
    display: block;
    color: var(--green);
    font-family: "Bree Serif", Georgia, serif;
    font-size: 3rem;
    font-weight: 400;
}

.filter-bar {
    display: grid;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: -0.4rem 0 1rem;
}

.quick-filters a {
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(58, 41, 34, 0.16);
    border-radius: 999px;
    background: rgba(255, 247, 233, 0.72);
    color: var(--brown);
    font-weight: 800;
    text-decoration: none;
}

.table-wrap {
    overflow-x: auto;
    border-radius: 8px;
    background: rgba(255, 247, 233, 0.65);
    box-shadow: 0 16px 54px rgba(58, 41, 34, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

th,
td {
    padding: 0.85rem;
    border-bottom: 1px solid rgba(58, 41, 34, 0.12);
    text-align: left;
    vertical-align: top;
}

th {
    background: var(--green);
    color: var(--cream);
}

.status {
    display: inline-block;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: var(--mustard);
    color: var(--brown);
    font-weight: 700;
}

.status-pending {
    background: var(--mustard);
    color: var(--brown);
}

.status-confirmed {
    background: var(--green);
    color: var(--cream);
}

.status-declined {
    background: var(--orange);
    color: #fff;
}

.status-completed {
    background: rgba(58, 41, 34, 0.14);
    color: var(--brown);
}

.status-noshow {
    background: #3a2922;
    color: var(--cream);
}

.inline-action {
    display: inline-flex;
}

.inline-action button {
    min-height: 34px;
    padding: 0.45rem 0.7rem;
    border: 1px solid rgba(23, 74, 58, 0.16);
    border-radius: 999px;
    background: #fffaf0;
    color: var(--brown);
    font-weight: 800;
    cursor: pointer;
}

.inline-action button:hover {
    background: var(--mustard);
}

.booking-detail-card {
    gap: 1.6rem;
}

.reservation-summary {
    display: grid;
    gap: 0.45rem;
    padding: 1rem;
    border-radius: 8px;
    background:
        linear-gradient(120deg, rgba(23, 74, 58, 0.1), rgba(214, 166, 44, 0.12)),
        rgba(255, 247, 233, 0.65);
}

.reservation-summary strong {
    color: var(--green);
    font-family: "Bree Serif", Georgia, serif;
    font-size: clamp(1.6rem, 5vw, 2.5rem);
    font-weight: 400;
    line-height: 1.05;
}

.detail-grid {
    display: grid;
    gap: 1rem;
}

.detail-grid div {
    padding-left: 0.8rem;
    border-left: 3px solid var(--orange);
}

.detail-grid dd {
    margin: 0;
}

.wide {
    grid-column: 1 / -1;
}

.hours-list {
    display: grid;
    gap: 0.8rem;
}

.hour-row {
    display: grid;
    gap: 0.7rem;
    padding: 0.8rem;
    border: 1px solid rgba(58, 41, 34, 0.12);
    border-radius: 8px;
}

.dev-note {
    overflow-wrap: anywhere;
    color: var(--orange);
    font-weight: 700;
}

@media (min-width: 760px) {
    .admin-nav-toggle {
        display: none !important;
    }

    .admin-topbar {
        grid-template-columns: auto 1fr auto;
        align-items: center;
    }

    .admin-topbar nav {
        justify-content: center;
    }

    .admin-topbar form {
        justify-self: end;
    }

    .stat-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .page-head.with-actions {
        grid-template-columns: 1fr auto;
    }

    .filter-bar,
    .four-col {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: end;
    }

    .two-col,
    .settings-grid,
    .detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hour-row {
        grid-template-columns: 1fr auto 150px 150px;
        align-items: center;
    }
}

@media print {
    .admin-topbar,
    .filter-bar,
    .quick-filters,
    .page-actions,
    .kitchen-actions,
    .row-actions .inline-action,
    .admin-flash {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .admin-shell {
        width: 100%;
        padding: 0;
    }

    .table-wrap,
    .admin-card,
    .stat-grid article {
        box-shadow: none;
    }

    .kitchen-sheet {
        border: 0;
        padding: 0;
        background: #fff;
    }

    .kitchen-row {
        break-inside: avoid;
        grid-template-columns: 80px 1fr 1.2fr 1.2fr auto;
        border-color: #222;
        background: #fff;
    }
}

/* Admin usability upgrades */
tr.is-pending-row {
    background: rgba(214, 166, 44, 0.13);
}

.timeline-card {
    gap: 0.65rem;
}

.timeline-item {
    display: grid;
    gap: 0.35rem;
    padding: 0.9rem;
    border: 1px solid rgba(58, 41, 34, 0.12);
    border-radius: 8px;
    background: rgba(255, 250, 240, 0.7);
    color: inherit;
    text-decoration: none;
}

.timeline-item time {
    color: var(--orange);
    font-weight: 900;
}

.timeline-item strong {
    color: var(--green);
    font-size: 1.1rem;
}

.table-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.table-presets button {
    min-height: 36px;
    padding: 0.4rem 0.7rem;
    border: 1px solid rgba(23, 74, 58, 0.18);
    border-radius: 999px;
    background: #fffaf0;
    color: var(--green);
    font-weight: 900;
    cursor: pointer;
}

.table-presets button:hover {
    background: var(--mustard);
    color: var(--brown);
}

.email-log-card {
    gap: 0.8rem;
}

.email-log-card pre {
    margin: 0;
    max-height: 180px;
    overflow: auto;
    padding: 0.8rem;
    border: 1px solid rgba(58, 41, 34, 0.12);
    border-radius: 8px;
    background: #fffaf0;
    white-space: pre-wrap;
    word-break: break-word;
}

.capacity-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    font-weight: 900;
}

.capacity-ok {
    background: rgba(23, 74, 58, 0.12);
    color: var(--green);
}

.capacity-watch {
    background: rgba(214, 166, 44, 0.28);
    color: var(--brown);
}

.capacity-high {
    background: rgba(200, 90, 50, 0.22);
    color: var(--orange);
}

.capacity-full {
    background: var(--orange);
    color: #fff;
}

.capacity-card {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
    border: 1px solid rgba(23, 74, 58, 0.16);
    border-radius: 8px;
    background: rgba(23, 74, 58, 0.08);
}

.capacity-card span,
.capacity-card small {
    color: rgba(58, 41, 34, 0.68);
    font-weight: 800;
}

.capacity-card strong {
    display: block;
    color: var(--green);
    font-family: "Bree Serif", Georgia, serif;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 400;
}

.capacity-card p {
    margin: 0;
    font-weight: 900;
}

.capacity-card meter {
    width: 100%;
    height: 14px;
}

.capacity-card-watch {
    background: rgba(214, 166, 44, 0.16);
}

.capacity-card-high {
    border-color: rgba(200, 90, 50, 0.28);
    background: rgba(200, 90, 50, 0.1);
}

.capacity-card-full {
    border-color: rgba(200, 90, 50, 0.46);
    background: rgba(200, 90, 50, 0.16);
}

.dashboard-actions,
.dashboard-grid,
.alert-list {
    margin-bottom: 1.4rem;
}

.dashboard-actions {
    display: grid;
    gap: 0.85rem;
}

.dashboard-actions a {
    display: grid;
    gap: 0.25rem;
    min-height: 112px;
    align-content: end;
    padding: 1rem;
    border: 1px solid rgba(23, 74, 58, 0.14);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(23, 74, 58, 0.1), rgba(214, 166, 44, 0.12)),
        rgba(255, 247, 233, 0.72);
    color: var(--brown);
    text-decoration: none;
    box-shadow: 0 16px 48px rgba(58, 41, 34, 0.08);
}

.dashboard-actions span {
    color: var(--orange);
    font-family: "Rye", Georgia, serif;
}

.dashboard-actions strong {
    color: var(--green);
    font-size: 1.12rem;
}

.dashboard-card {
    align-content: start;
}

.dashboard-card p {
    margin: 0;
}

.dashboard-card > strong {
    color: var(--green);
    font-size: 1.2rem;
}

.dashboard-grid {
    display: grid;
    gap: 1rem;
}

.alert-list {
    gap: 0.65rem;
}

.capacity-alert {
    display: grid;
    gap: 0.3rem;
    padding: 0.9rem;
    border: 1px solid rgba(58, 41, 34, 0.12);
    border-radius: 8px;
    background: #fffaf0;
}

.capacity-alert time {
    color: var(--orange);
    font-weight: 900;
}

.capacity-alert strong {
    color: var(--green);
    font-size: 1.2rem;
}

.capacity-alert-watch {
    background: rgba(214, 166, 44, 0.13);
}

.capacity-alert-high {
    background: rgba(200, 90, 50, 0.12);
}

.capacity-alert-full {
    border-color: rgba(200, 90, 50, 0.42);
    background: rgba(200, 90, 50, 0.18);
}

.kitchen-sheet {
    gap: 0.85rem;
}

.kitchen-sheet-head,
.kitchen-row {
    display: grid;
    gap: 0.8rem;
}

.kitchen-sheet-head {
    align-items: end;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(58, 41, 34, 0.16);
}

.kitchen-sheet-head strong {
    color: var(--green);
    font-size: 1.2rem;
}

.kitchen-row {
    padding: 1rem;
    border: 1px solid rgba(58, 41, 34, 0.14);
    border-radius: 8px;
    background: #fffaf0;
}

.kitchen-row time {
    color: var(--orange);
    font-weight: 900;
}

.kitchen-row strong {
    color: var(--green);
}

.kitchen-row p {
    margin: 0;
}

@media (max-width: 759px) {
    .admin-topbar {
        grid-template-columns: auto auto;
        align-items: center;
    }

    .admin-nav-toggle {
        justify-self: end;
        display: grid;
        gap: 0.22rem;
        width: 44px;
        height: 44px;
        place-content: center;
        border: 1px solid rgba(232, 211, 176, 0.42);
        border-radius: 50%;
        background: transparent;
    }

    .admin-nav-toggle span {
        display: block;
        width: 19px;
        height: 2px;
        background: var(--cream);
        transition: transform 220ms ease, opacity 180ms ease;
    }

    .admin-nav-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .admin-nav-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .admin-nav-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .admin-topbar nav,
    .admin-topbar form {
        grid-column: 1 / -1;
    }

    .admin-topbar nav {
        display: grid;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: max-height 300ms ease, opacity 220ms ease, transform 260ms ease;
    }

    .admin-topbar nav.is-open {
        max-height: 420px;
        opacity: 1;
        transform: translateY(0);
    }

    .admin-topbar nav a {
        padding: 0.72rem 0.8rem;
        border-bottom: 1px solid rgba(232, 211, 176, 0.1);
    }

    .admin-topbar form {
        justify-self: stretch;
    }

    .admin-topbar form button {
        width: 100%;
    }

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

    .timeline-item {
        grid-template-columns: 74px 1fr;
        align-items: center;
    }

    .timeline-item .status {
        justify-self: start;
    }
}

@media (min-width: 760px) {
    .timeline-item {
        grid-template-columns: 90px 1fr 1.2fr auto auto;
        align-items: center;
    }

    .dashboard-actions {
        grid-template-columns: repeat(4, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .capacity-alert {
        grid-template-columns: 90px 1fr 1.5fr;
        align-items: center;
    }

    .kitchen-sheet-head {
        grid-template-columns: 1fr auto;
    }

    .kitchen-row {
        grid-template-columns: 90px 1.1fr 1.25fr 1.25fr auto;
        align-items: start;
    }
}

@media (max-width: 980px) and (min-width: 760px) {
    .stat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile admin repair */
@media (max-width: 759px) {
    body {
        overflow-x: hidden;
    }

    .admin-topbar {
        position: sticky;
        top: 0;
        grid-template-columns: auto auto;
        padding: 0.75rem 1rem;
    }

    .admin-brand,
    .admin-brand img {
        width: 50px;
        height: 50px;
    }

    .admin-topbar form {
        display: none;
    }

    .admin-topbar.has-admin-menu-open form {
        display: block;
    }

    .admin-shell {
        width: min(100% - 1rem, 720px);
        padding: 1.25rem 0 3rem;
    }

    h1 {
        font-size: clamp(2.2rem, 13vw, 3.4rem);
    }

    h2 {
        font-size: 1.55rem;
    }

    .page-head {
        margin-bottom: 1rem;
    }

    .page-actions,
    .quick-detail-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .page-actions .admin-btn,
    .quick-detail-actions .inline-action,
    .quick-detail-actions button {
        width: 100%;
    }

    .stat-grid {
        gap: 0.65rem;
    }

    .stat-grid article {
        padding: 0.85rem;
    }

    .stat-grid strong {
        font-size: 2.35rem;
    }

    .dashboard-actions {
        gap: 0.65rem;
    }

    .dashboard-actions a {
        min-height: 92px;
    }

    .admin-card,
    .auth-panel,
    .table-wrap {
        border-radius: 8px;
    }

    .table-wrap {
        overflow: visible;
        background: transparent;
        box-shadow: none;
    }

    .admin-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0 0.75rem;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table,
    .admin-table tbody,
    .admin-table tr,
    .admin-table td {
        display: block;
        width: 100%;
    }

    .admin-table tr {
        padding: 0.85rem;
        border: 1px solid rgba(58, 41, 34, 0.12);
        border-radius: 8px;
        background: rgba(255, 247, 233, 0.78);
        box-shadow: 0 14px 38px rgba(58, 41, 34, 0.08);
    }

    .admin-table tr.is-pending-row {
        border-color: rgba(214, 166, 44, 0.44);
        background: rgba(214, 166, 44, 0.16);
    }

    .admin-table td {
        display: grid;
        grid-template-columns: 92px 1fr;
        gap: 0.75rem;
        padding: 0.45rem 0;
        border: 0;
        align-items: center;
    }

    .admin-table td::before {
        color: rgba(58, 41, 34, 0.64);
        font-size: 0.78rem;
        font-weight: 900;
        text-transform: uppercase;
    }

    .admin-table td:nth-child(1)::before { content: "Code"; }
    .admin-table td:nth-child(2)::before { content: "Status"; }
    .admin-table td:nth-child(3)::before { content: "Guest"; }
    .admin-table td:nth-child(4)::before { content: "Date"; }
    .admin-table td:nth-child(5)::before { content: "Time"; }
    .admin-table td:nth-child(6)::before { content: "Guests"; }
    .admin-table td:nth-child(7)::before { content: "Capacity"; }
    .admin-table td:nth-child(8)::before { content: "Source"; }
    .admin-table td:nth-child(9)::before { content: "Phone"; }
    .admin-table td:nth-child(10)::before { content: "Actions"; }

    .admin-table td[colspan] {
        display: block;
    }

    .admin-table td[colspan]::before {
        content: "";
        display: none;
    }

    .row-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .row-actions .table-link,
    .row-actions .inline-action,
    .row-actions .inline-action button {
        width: 100%;
    }

    .filter-bar {
        gap: 0.65rem;
    }

    .quick-filters {
        gap: 0.45rem;
    }

    .quick-filters a {
        flex: 1 1 calc(50% - 0.45rem);
        text-align: center;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .form-grid,
    .two-col,
    .settings-grid,
    .four-col {
        grid-template-columns: 1fr;
    }

    .hour-row {
        grid-template-columns: 1fr;
    }

    .timeline-item,
    .kitchen-row,
    .capacity-alert {
        grid-template-columns: 1fr;
    }
}

/* Final mobile width guard */
@media (max-width: 759px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .admin-topbar,
    .admin-shell,
    .admin-card,
    .auth-panel,
    .table-wrap,
    .dashboard-actions,
    .dashboard-grid,
    .alert-list,
    .timeline-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .admin-topbar {
        left: 0;
        right: 0;
        margin: 0;
    }

    .admin-shell {
        margin: 0;
        padding: 1.25rem 0.75rem 3rem;
    }

    table,
    .admin-table {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .stat-grid article,
    .dashboard-actions a {
        min-width: 0;
    }

    .admin-table tr {
        width: 100%;
        max-width: 100%;
    }

    .admin-table td {
        grid-template-columns: 86px minmax(0, 1fr);
        overflow-wrap: anywhere;
    }
}
