@media screen {
    .grocery-theme {
        --bg: #f3f0e4;
        --surface: #fffdf8;
        --surface-2: #f8f7ef;
        --ink: #243625;
        --muted: #576352;
        --line: #e4e4d3;
        --brand: #337347;
        --brand-dark: #235635;
        --shadow: 0 10px 28px rgba(51, 67, 39, .07);
        --grocery-backdrop: radial-gradient(ellipse at top right, #fbe8ad 0, transparent 36rem),
            radial-gradient(ellipse at top left, #dfeccf 0, transparent 40rem), var(--bg);
        --grocery-rail: linear-gradient(160deg, #255238, #163925 66%, #122f20);
        --grocery-active: #ffe18a;
        --grocery-active-ink: #29371e;
        --icon-ink: #2f6b3d;
        --icon-wash: #dbefd4;
        background: var(--grocery-backdrop);
    }

    .grocery-theme[data-theme="dark"] {
        --bg: #e6ebdc;
        --grocery-rail: linear-gradient(160deg, #1c442d, #102e1e 66%, #0c2417);
    }

    .grocery-theme [data-accent="amber"]  { --icon-ink: #79520d; --icon-wash: #ffebae; }
    .grocery-theme [data-accent="orange"] { --icon-ink: #903c14; --icon-wash: #ffddc3; }
    .grocery-theme [data-accent="blue"]   { --icon-ink: #295991; --icon-wash: #dae9ff; }
    .grocery-theme [data-accent="purple"] { --icon-ink: #664396; --icon-wash: #eddefa; }
    .grocery-theme [data-accent="rose"]   { --icon-ink: #963953; --icon-wash: #fbdde6; }
    .grocery-theme [data-accent="teal"]   { --icon-ink: #1a6a64; --icon-wash: #d0eee7; }
    .grocery-theme [data-accent="slate"]  { --icon-ink: #435969; --icon-wash: #e0e9ef; }

    .grocery-theme .app-shell.full-view,
    .grocery-theme .app-shell:fullscreen {
        background: var(--grocery-backdrop);
    }

    .grocery-theme .guest-wrap {
        min-height: var(--zoom-fill-vh);
        min-height: var(--zoom-fill-dvh);
        background: transparent;
    }

    .grocery-theme .side-rail,
    .grocery-theme .side-account-dock {
        background: var(--grocery-rail);
        border: 1px solid #365c41;
        box-shadow: 0 14px 34px rgba(25, 53, 33, .2);
    }

    .grocery-nav-brand {
        display: flex;
        align-items: center;
        gap: 9px;
        min-width: 0;
        padding: 6px 4px 12px;
        border-bottom: 1px solid rgba(244, 250, 227, .18);
    }

    .grocery-nav-brand .brand-dot {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        margin: 0;
        border: 0;
        border-radius: 12px;
        color: #29442a;
        background: #ffedb8;
        box-shadow: none;
    }

    .grocery-nav-brand .brand-dot.has-logo { background: #fffdf8; }
    .grocery-nav-brand .brand-dot img { max-width: 82%; max-height: 82%; }

    .grocery-nav-brand-text {
        display: grid;
        gap: 3px;
        min-width: 0;
        color: #fff5ce;
        font-size: .88rem;
        font-weight: 800;
    }

    .grocery-nav-brand-text small {
        overflow: hidden;
        color: #c8ddc8;
        font-size: .72rem;
        font-weight: 600;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .grocery-theme .side-link {
        gap: 8px;
        padding-inline: 9px;
        color: #ecf3e6;
        border-radius: 12px;
    }

    .grocery-theme .side-link .side-label { white-space: normal; }

    .grocery-theme .side-link:hover {
        color: #fff;
        background: rgba(251, 255, 240, .11);
        transform: none;
    }

    .grocery-theme .side-link.is-active {
        color: var(--grocery-active-ink);
        background: var(--grocery-active);
        box-shadow: 0 4px 10px rgba(17, 35, 20, .17);
    }

    .grocery-theme .side-link > .bi,
    .grocery-icon {
        display: inline-grid;
        place-items: center;
        flex: 0 0 auto;
        width: 31px;
        height: 31px;
        border-radius: 9px;
        background: var(--icon-wash);
        color: var(--icon-ink);
        font-size: 1rem;
        line-height: 1;
    }

    .grocery-theme .side-link:hover > .bi,
    .grocery-theme .side-link.is-active > .bi { color: var(--icon-ink); transform: none; }

    .grocery-theme .side-footer-btn,
    .grocery-theme .tool-btn {
        color: var(--icon-ink);
        background: var(--icon-wash);
        border-color: transparent;
    }

    .grocery-theme .side-footer-btn:hover,
    .grocery-theme .side-footer-btn.is-active,
    .grocery-theme .tool-btn:hover,
    .grocery-theme .tool-btn.is-active,
    .grocery-theme .tool-btn[aria-pressed="true"] {
        color: var(--grocery-active-ink);
        background: var(--grocery-active);
    }

    .grocery-theme .side-link:focus-visible,
    .grocery-theme .side-footer-btn:focus-visible {
        outline: 2px solid #fff1bc;
        outline-offset: -2px;
    }

    .grocery-theme .topbar {
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow);
    }

    .grocery-theme .topbar h1,
    .grocery-theme .panel-title { color: var(--ink); }
    .grocery-theme .topbar p,
    .grocery-theme .panel-sub { color: var(--muted); }

    .grocery-theme .search-pill button,
    .grocery-theme .assistant-toggle,
    .grocery-theme .btn-main {
        color: #fff;
        background: linear-gradient(145deg, #327547, #245a37);
    }

    .grocery-theme .btn-main:hover,
    .grocery-theme .btn-main:focus-visible {
        color: #fff;
        background: #235434;
    }

    .grocery-theme .btn-ghost:hover {
        color: #244d2d;
        border-color: #bacfac;
        background: #edf4e6;
    }

    .grocery-theme .table-clean thead th {
        color: #394b35;
        background: #f1f2e4;
        border-bottom-color: #dce3ce;
    }

    .grocery-theme .metric-card.is-brand {
        background: linear-gradient(145deg, #347447, #235436);
    }

    .grocery-theme .metric-card.is-brand .label,
    .grocery-theme .metric-card.is-brand small.text-muted {
        color: #e9f5e3 !important;
    }

    .grocery-theme .grocery-metrics .label,
    .grocery-theme .grocery-login-hero .metric-card .label {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 6px;
    }

    .grocery-theme .dashboard-analytics .panel-title {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .grocery-theme .report-title .grocery-icon { margin-right: 2px; }

    .grocery-theme .inventory-product-icon {
        color: #397141;
        background: #e3efd7;
    }

    .grocery-theme .grocery-login-hero {
        position: relative;
        isolation: isolate;
        overflow: hidden;
        padding: clamp(20px, 3.5vw, 38px);
        color: #fffdf4;
        border-color: #335d3f;
        background: radial-gradient(circle at top right, #487c45, transparent 18rem), var(--grocery-rail);
    }

    .grocery-login-kicker {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 5px 11px;
        border-radius: 999px;
        background: #ffe18a;
        color: #354022;
        font-size: .78rem;
        font-weight: 800;
    }

    .grocery-login-art {
        position: absolute;
        z-index: -1;
        top: -24px;
        right: 6px;
        color: rgba(255, 233, 158, .16);
        font-size: clamp(7rem, 17vw, 13rem);
        line-height: 1;
        transform: rotate(-13deg);
        pointer-events: none;
    }

    .grocery-login-logo {
        display: inline-flex;
        padding: 7px 10px;
        background: #fffdf8;
        border-radius: 10px;
    }

    .grocery-login-tagline { color: #e1ecdd; }
    .grocery-login-hero .metric-card:not(.is-brand) { color: var(--ink); }
    .grocery-theme .grocery-login-form { padding: clamp(20px, 3.5vw, 38px); }
    .grocery-login-form > .grocery-icon { width: 43px; height: 43px; font-size: 1.22rem; }

    @media (min-width: 992px) {
        .grocery-theme .topbar { padding: 14px 16px; }
        .sidebar-collapsed .grocery-nav-brand { justify-content: center; padding-inline: 0; }
        .sidebar-collapsed .grocery-nav-brand-text { display: none; }
    }

    @media (max-width: 991.98px) {
        .grocery-theme .top-tools { grid-template-columns: repeat(2, 38px); }
        .grocery-theme .top-tools .page-guide-trigger {
            width: 38px;
            height: 38px;
            justify-content: center;
            padding: 0;
            font-size: .92rem;
        }
        .grocery-instruction-label { display: none; }
    }
}
