.shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: calc(100vh - 40px); }
.shell-body { background: var(--color-bg); }
.shell-nav.offcanvas-lg {
    --bs-offcanvas-width: 292px;
    background: linear-gradient(180deg, #4A1528 0%, #321428 58%, #3B185F 140%) !important;
    color: #f6edf2;
}
.shell-nav .offcanvas-header { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.shell-nav .offcanvas-title { color: white; font-family: var(--font-display); font-size: 1.15rem; }
.shell-nav .brand { color: white; padding: 4px 10px 10px; margin-bottom: 2px; font-size: 1.15rem; gap: 10px; }
.shell-nav .brand-mark { width: 42px; height: 42px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22); }
.shell-nav .brand:hover { background: transparent; color: white; }
.shell-nav a:not(.brand) {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f6edf2;
    text-decoration: none;
    padding: 9px 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
}
.shell-nav a:not(.brand) .icon { width: 18px; height: 18px; flex: none; opacity: 0.9; }
.shell-nav a:not(.brand):hover { background: rgba(255, 255, 255, 0.08); color: white; }
.shell-nav a.is-current {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    box-shadow: inset 3px 0 0 #f0e8f7;
}
.shell-kicker {
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 700;
    color: #e7c9d6;
    margin: 2px 12px 12px;
}
.shell-nav .nav-group { margin-top: 4px; }
.shell-nav .fine {
    color: rgba(255, 255, 255, 0.78);
    margin: 8px 12px 0;
    line-height: 1.4;
}
.shell-nav .nav-label {
    margin: 16px 12px 6px;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #d7c3d4;
    font-weight: 700;
}
.shell-nav form { margin: 14px 10px 0; }
.shell-nav .btn-quiet {
    width: 100%;
    color: #f8eef1;
    border-color: rgba(255, 255, 255, 0.24);
    background: transparent;
}
.shell-nav .btn-quiet:hover { background: rgba(255, 255, 255, 0.1); color: white; border-color: rgba(255, 255, 255, 0.4); }
.shell-main { padding: 28px 32px 48px; min-width: 0; }
.shell-top { display: none; }
.shell-main > h1 { margin-top: 2px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 18px 0 22px; }
.admin-body .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-grid article, .queue-card {
    position: relative;
    overflow: hidden;
    background: white;
    border: 1px solid var(--color-line);
    border-radius: 14px;
    padding: 16px 16px 16px 18px;
    box-shadow: var(--vy-shadow-sm);
}
.stat-grid article::before, .queue-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--brand-burgundy), var(--brand-purple));
}
.stat-grid span, .stat-grid small, .queue-card span, .queue-card small { display: block; color: var(--color-muted); }
.stat-grid strong, .queue-card strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.7rem;
    color: var(--brand-wine-dark);
    margin: 4px 0;
}
.queue-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.queue-card:hover { border-color: #d9c4d0; color: inherit; transform: translateY(-2px); box-shadow: var(--vy-shadow); }

.data-table { background: white; }
.table-scroll {
    overflow-x: auto;
    background: white;
    border: 1px solid var(--color-line);
    border-radius: 12px;
}
.panel .table-scroll { border: 0; border-radius: 0; background: transparent; }
.data-table th {
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-muted);
    font-weight: 700;
    background: #fbf9fc;
    white-space: nowrap;
}
.data-table tbody tr:hover { background: #fbf7fa; }
.data-table a { font-weight: 700; text-decoration: none; }
.data-table a:hover { text-decoration: underline; }
.panel .data-table { margin: 0; }

@media (min-width: 992px) {
    .shell-nav.offcanvas-lg {
        position: sticky;
        top: 0;
        height: calc(100vh - 40px) !important;
        overflow: auto;
    }
    .shell-nav .offcanvas-body {
        display: block !important;
        padding: 22px 14px 32px !important;
        background: transparent !important;
    }
}
