:root {
    --bg: #1a1f1e;
    --surface: #242b2a;
    --surface2: #2f3836;
    --accent: #c8952e;
    --accent-hover: #dba83a;
    --teal: #2d6a6a;
    --teal-light: #3a8585;
    --text: #f0ebe3;
    --muted: #9aa3a0;
    --danger: #c44;
    --radius: 12px;
    --touch-min: 48px;
    font-family: "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

.hidden { display: none !important; }

/* Auth */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 32px;
    width: min(420px, 100%);
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
}

.auth-card h1, .auth-card .logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    color: var(--accent);
}

.subtitle {
    text-align: center;
    color: var(--muted);
    margin: 8px 0 24px;
}

.auth-card label {
    display: block;
    margin-bottom: 14px;
    font-size: .9rem;
    color: var(--muted);
}

.auth-card input {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 14px 16px;
    border: 1px solid var(--surface2);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
}

.error { color: var(--danger); margin: 10px 0; font-size: .9rem; }
.success { color: #6c6; margin: 10px 0; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    min-height: var(--touch-min);
    transition: background .15s, transform .1s;
    touch-action: manipulation;
    user-select: none;
}

.btn:active { transform: scale(.97); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px; font-size: 1.1rem; }
.btn-xl { padding: 20px; font-size: 1.2rem; }
.btn-sm { padding: 8px 12px; font-size: .85rem; min-height: 36px; }

.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-light); }
.btn-accent { background: var(--accent); color: #1a1a1a; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-accent:disabled { opacity: .45; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--surface2); }

/* POS Layout */
.pos-page { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }

.pos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--surface);
    border-bottom: 2px solid var(--teal);
    flex-shrink: 0;
}

.logo-sm {
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--accent);
    font-size: 1.1rem;
}

.cashier { color: var(--muted); font-size: .85rem; margin-left: 12px; }

.header-actions { display: flex; gap: 10px; align-items: center; }

.table-input {
    width: 90px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--surface2);
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    text-align: center;
}

.pos-main {
    display: grid;
    grid-template-columns: 280px 1fr 360px;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

/* Categories — крупные квадраты для сенсора */
.categories-panel {
    background: var(--surface);
    border-right: 1px solid var(--surface2);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px;
}

.categories-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    align-content: start;
}

.cat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    width: 100%;
    min-height: 110px;
    padding: 10px 8px;
    border: 2px solid var(--surface2);
    border-radius: var(--radius);
    background: var(--surface2);
    color: var(--text);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    touch-action: manipulation;
    user-select: none;
    transition: transform .1s, border-color .15s, background .15s;
    word-break: break-word;
    hyphens: auto;
}

.cat-btn:hover {
    border-color: var(--teal-light);
    background: #354240;
}

.cat-btn:active {
    transform: scale(.95);
}

.cat-btn.active {
    background: var(--teal);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 0 2px rgba(200, 149, 46, .35);
}

/* Products — крупные карточки */
.products-panel {
    overflow-y: auto;
    padding: 16px;
    background: var(--bg);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
    align-content: start;
}

.product-card {
    background: var(--surface);
    border: 2px solid var(--surface2);
    border-radius: var(--radius);
    padding: 16px 14px;
    cursor: pointer;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    touch-action: manipulation;
    transition: border-color .15s, transform .1s, background .15s;
}

.product-card:hover {
    border-color: var(--teal-light);
}

.product-card:active {
    transform: scale(.96);
    border-color: var(--accent);
    background: #2a3230;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
}

.product-weight {
    font-size: .8rem;
    color: var(--muted);
}

.product-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 10px;
}

.products-empty {
    grid-column: 1 / -1;
    color: var(--muted);
    text-align: center;
    padding: 48px 24px;
    font-size: 1.1rem;
}

.panel-title {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 12px;
    font-weight: 600;
    padding: 0 4px;
}

.categories-panel-title {
    font-size: .85rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    padding: 0 4px;
}

.cart-panel {
    background: var(--surface);
    border-left: 1px solid var(--surface2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--surface2);
}

.cart-header h2 { font-size: 1.1rem; }

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px;
}

.cart-empty {
    color: var(--muted);
    text-align: center;
    padding: 32px 16px;
    font-size: .9rem;
}

.cart-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 8px;
    padding: 10px 0;
    border-bottom: 1px solid var(--surface2);
    align-items: center;
}

.cart-row-name { font-size: .88rem; font-weight: 500; grid-column: 1; }
.cart-row-price { font-size: .85rem; color: var(--accent); grid-column: 2; text-align: right; }

.qty-controls {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 10px;
    background: var(--surface2);
    color: var(--text);
    font-size: 1.3rem;
    cursor: pointer;
    touch-action: manipulation;
}

.qty-btn.remove { color: var(--danger); font-size: .9rem; width: auto; padding: 0 10px; }

.qty-value {
    min-width: 28px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.cart-totals {
    padding: 12px 16px;
    border-top: 1px solid var(--surface2);
    font-size: .95rem;
}

.cart-totals .row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    color: var(--muted);
}

.cart-totals .row.total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--surface2);
}

.payment-methods {
    display: flex;
    gap: 8px;
    padding: 0 12px 8px;
}

.pay-btn {
    flex: 1;
    padding: 16px;
    border: 2px solid var(--surface2);
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    min-height: 56px;
    touch-action: manipulation;
}

.pay-btn.active {
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 600;
}

.cart-panel > .btn-accent { margin: 0 12px 12px; }

/* Admin */
.admin-page { padding: 20px; max-width: 1100px; margin: 0 auto; }

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--surface2);
}

.stat-card .label { color: var(--muted); font-size: .85rem; }
.stat-card .value { font-size: 1.6rem; font-weight: 700; color: var(--accent); margin-top: 4px; }

.filters {
    display: flex;
    gap: 10px;
    align-items: end;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filters label { font-size: .85rem; color: var(--muted); }
.filters input {
    display: block;
    margin-top: 4px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--surface2);
    background: var(--bg);
    color: var(--text);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    font-size: .9rem;
}

th, td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--surface2);
}

th { background: var(--surface2); color: var(--muted); font-weight: 600; }

.table-wrap { overflow-x: auto; margin-bottom: 24px; }

/* Receipt — screen hidden */
.receipt-print { display: none; }

/* Receipt print — 58mm thermal */
@media print {
    body * { visibility: hidden !important; }
    .receipt-print, .receipt-print * { visibility: visible !important; }
    .receipt-print {
        display: block !important;
        position: fixed;
        left: 0;
        top: 0;
        width: 58mm;
        padding: 2mm;
        font-family: "Courier New", monospace;
        font-size: 11px;
        line-height: 1.35;
        color: #000;
        background: #fff;
    }
    @page {
        size: 58mm auto;
        margin: 0;
    }
}

.receipt-line { margin: 0; }
.receipt-center { text-align: center; }
.receipt-bold { font-weight: bold; }
.receipt-divider { border-top: 1px dashed #000; margin: 4px 0; }
.receipt-row {
    display: flex;
    justify-content: space-between;
    gap: 4px;
}
.receipt-row span:first-child { flex: 1; word-break: break-word; }
.receipt-row span:last-child { white-space: nowrap; }

/* Моноблок / планшет landscape */
@media (max-width: 1200px) {
    .pos-main {
        grid-template-columns: 240px 1fr 300px;
    }
    .cat-btn {
        min-height: 95px;
        font-size: .85rem;
    }
}

/* Узкий экран — категории сверху сеткой, не полоской */
@media (max-width: 900px) {
    .pos-main {
        grid-template-columns: 1fr 300px;
        grid-template-rows: auto 1fr;
        grid-template-areas:
            "cats cats"
            "products cart";
    }
    .categories-panel {
        grid-area: cats;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid var(--surface2);
    }
    .categories-list {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        max-height: 220px;
        overflow-y: auto;
    }
    .cat-btn {
        aspect-ratio: 1;
        min-height: 90px;
    }
    .products-panel { grid-area: products; }
    .cart-panel { grid-area: cart; }
}

@media (max-width: 700px) {
    .pos-main {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
        grid-template-areas:
            "cats"
            "products"
            "cart";
    }
    .categories-list {
        grid-template-columns: repeat(4, 1fr);
        max-height: 180px;
    }
    .cat-btn { min-height: 72px; font-size: .75rem; }
    .cart-panel { max-height: 42vh; }
    .header-actions { flex-wrap: wrap; }
}
.admin-nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.admin-nav-link {
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--muted);
    border: 1px solid var(--surface2);
    font-size: .9rem;
    min-height: var(--touch-min);
    display: inline-flex;
    align-items: center;
}

.admin-nav-link.active,
.admin-nav-link:hover {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
}

.admin-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 16px;
}

.admin-panel {
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: var(--radius);
    padding: 16px;
}

.admin-panel-wide { min-width: 0; }

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
}

.panel-head h2 { font-size: 1rem; }

.muted-label { color: var(--muted); font-weight: 400; font-size: .9rem; }

.admin-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 6px;
    border: 1px solid transparent;
    touch-action: manipulation;
}

.admin-list-item:hover { background: var(--surface2); }
.admin-list-item.active { background: var(--teal); border-color: var(--teal-light); }
.admin-list-item.inactive { opacity: .5; }

.item-main { display: flex; flex-direction: column; gap: 2px; }
.item-meta { font-size: .75rem; color: var(--muted); }
.admin-list-item.active .item-meta { color: rgba(255,255,255,.7); }

.row-inactive { opacity: .45; }
.row-actions { white-space: nowrap; }

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 16px;
}

.modal-box {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    width: min(440px, 100%);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-box h3 { margin-bottom: 16px; }

.modal-box label {
    display: block;
    margin-bottom: 12px;
    font-size: .85rem;
    color: var(--muted);
}

.modal-box input,
.modal-box select,
.modal-box textarea {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--surface2);
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    color: var(--text) !important;
}

.checkbox-label input { width: auto; margin: 0; }

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 16px;
}

/* Online/offline badge */
.status-badge {
    font-size: .75rem;
    padding: 6px 10px;
    border-radius: 20px;
    background: #2a5a3a;
    color: #8fdf8f;
    font-weight: 600;
}

.status-badge.offline {
    background: #5a3a2a;
    color: #dfaf8f;
}

.status-badge.pending {
    background: #5a4a2a;
    color: var(--accent);
}

@media (max-width: 900px) {
    .admin-grid { grid-template-columns: 1fr; }
}

/* Orders page */
.orders-page-title {
    color: var(--muted);
    font-size: .95rem;
    margin-left: 10px;
}

.orders-main {
    display: grid;
    grid-template-columns: 280px minmax(320px, 1fr) 340px;
    flex: 1;
    overflow: hidden;
    min-height: 0;
    background: var(--bg);
}

.orders-list-panel,
.orders-detail-panel,
.orders-add-panel {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.orders-list-panel {
    background: var(--surface);
    border-right: 1px solid var(--surface2);
    padding: 14px;
}

.orders-detail-panel {
    padding: 16px;
    overflow-y: auto;
}

.orders-add-panel {
    background: var(--surface);
    border-left: 1px solid var(--surface2);
    padding: 14px;
}

.order-detail-inner {
    max-width: 560px;
}

.orders-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--muted);
    padding: 48px 24px;
    height: 100%;
    min-height: 200px;
}

.orders-placeholder-title {
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 600;
}

.orders-placeholder-sub {
    font-size: .85rem;
    color: var(--muted);
    margin-top: 6px;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    flex: 1;
}

.order-row {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    border: 2px solid var(--surface2);
    border-radius: var(--radius);
    background: linear-gradient(145deg, var(--surface2) 0%, #2a3230 100%);
    color: var(--text);
    cursor: pointer;
    touch-action: manipulation;
    transition: border-color .15s, transform .1s;
}

.order-row:active { transform: scale(.98); }

.order-row.active {
    border-color: var(--accent);
    background: linear-gradient(145deg, #3a4a48 0%, #354240 100%);
    box-shadow: 0 0 0 1px rgba(200, 149, 46, .25);
}

.order-row.cancelled { opacity: .55; }

.order-row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.order-row-sum {
    color: var(--accent);
    font-weight: 700;
}

.order-row-meta,
.order-row-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: .8rem;
    color: var(--muted);
    margin-bottom: 4px;
}

.order-row-footer { margin-bottom: 0; margin-top: 6px; }

.order-row-cashier { margin-left: auto; }

.order-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: .72rem;
    font-weight: 600;
    background: var(--surface2);
}

.badge-pay { color: #8fdf8f; background: #2a4030; }
.badge-cancel { color: #df8f8f; background: #402a2a; }

.order-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--surface2);
}

.order-detail-title {
    font-size: 1.35rem;
    color: var(--accent);
    margin-bottom: 4px;
}

.order-detail-time {
    font-size: .85rem;
    color: var(--muted);
}

.order-status-pill {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-paid { background: #2a5a3a; color: #8fdf8f; }
.status-cancelled { background: #5a2a2a; color: #dfaf8f; }

.order-cashier-line {
    font-size: .88rem;
    color: var(--muted);
    margin-bottom: 16px;
}

.order-section-title {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    margin-bottom: 10px;
}

.order-info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.order-info-row label {
    font-size: .8rem;
    color: var(--muted);
    font-weight: 600;
}

.order-info-row input,
.order-info-row select {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 12px;
    border-radius: 10px;
    border: 2px solid var(--surface2);
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    min-height: var(--touch-min);
}

.order-items-edit {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.order-item-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: 10px;
}

.order-item-main { flex: 1; min-width: 0; }

.order-item-right {
    text-align: right;
    flex-shrink: 0;
}

.order-item-sum {
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 6px;
}

.order-totals {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 16px;
    border: 1px solid var(--surface2);
}

.order-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.order-actions .btn:first-child { grid-column: 1 / -1; }

.btn-danger-outline {
    border-color: #6a3535 !important;
    color: #df8f8f !important;
}

/* Add dishes panel */
.add-panel-menu {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.add-panel-menu.added-flash {
    animation: addFlash .3s ease;
}

@keyframes addFlash {
    0% { background: rgba(200, 149, 46, .15); }
    100% { background: transparent; }
}

.add-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 12px;
    max-height: 200px;
    overflow-y: auto;
    flex-shrink: 0;
}

.add-cat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 8px 6px;
    border: 2px solid var(--surface2);
    border-radius: 10px;
    background: var(--surface2);
    color: var(--text);
    font-size: .78rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    touch-action: manipulation;
    line-height: 1.2;
}

.add-cat-btn.active {
    background: var(--teal);
    border-color: var(--accent);
    color: #fff;
}

.add-products {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    overflow-y: auto;
    flex: 1;
    align-content: start;
}

.add-product-btn {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 2px 12px;
    width: 100%;
    text-align: left;
    padding: 14px;
    border: 2px solid var(--surface2);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    touch-action: manipulation;
    transition: border-color .15s, transform .1s;
}

.add-product-btn:active {
    transform: scale(.98);
    border-color: var(--accent);
}

.add-product-name {
    grid-column: 1;
    font-weight: 600;
    font-size: .95rem;
}

.add-product-weight {
    grid-column: 1;
    font-size: .75rem;
    color: var(--muted);
}

.add-product-price {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    font-weight: 700;
    color: var(--accent);
    font-size: 1rem;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .orders-main {
        grid-template-columns: 240px 1fr 300px;
    }
}

@media (max-width: 900px) {
    .orders-main {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
        overflow-y: auto;
    }
    .orders-list-panel { max-height: 220px; border-right: none; border-bottom: 1px solid var(--surface2); }
    .orders-add-panel { max-height: 320px; border-left: none; border-top: 1px solid var(--surface2); }
    .order-actions { grid-template-columns: 1fr; }
}

