        :root {
            color-scheme: dark;
            --sk-bg: #07111f;
            --sk-surface: #0d1a2b;
            --sk-surface-2: #111f32;
            --sk-border: #26364b;
            --sk-text: #f4f7fb;
            --sk-muted: #9eacc0;
            --sk-primary: #247cff;
            --sk-primary-hover: #3c8bff;
            --sk-success: #2fca72;
            --sk-warning: #f3a51b;
            --sk-danger: #ff5656;
            --sk-radius-sm: 12px;
            --sk-radius-md: 16px;
            --sk-sidebar: 268px;
            --sk-focus: 0 0 0 3px rgba(36, 124, 255, .35);
            --sk-shadow: none;

            /* Transitional aliases for dormant legacy selectors. */
            --bg: var(--sk-bg);
            --panel: var(--sk-surface);
            --line: var(--sk-border);
            --text: var(--sk-text);
            --muted: var(--sk-muted);
            --primary: var(--sk-primary);
            --primary-2: var(--sk-primary-hover);
            --success: var(--sk-success);
            --warning: var(--sk-warning);
            --danger: var(--sk-danger);
            --shadow: var(--sk-shadow);
        }

        * {
            box-sizing: border-box;
        }

        html, body {
            margin: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at top, #16213a 0%, var(--bg) 42%);
            color: var(--text);
            font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
            overflow: hidden;
            color-scheme: dark;
        }

        body {
            -webkit-font-smoothing: antialiased;
        }

        button, input, select, textarea {
            font: inherit;
            min-width: 0;
        }

        button {
            cursor: pointer;
        }

        a {
            color: inherit;
        }

        img {
            max-width: 100%;
            display: block;
        }

        .hidden {
            display: none !important;
        }

        #phoneField,
        #phoneSettingLine {
            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;
        }

        .app-shell {
            width: 100%;
            margin: 0 auto;
            height: 100dvh;
            padding: clamp(8px, 1vw, 16px);
            display: grid;
            grid-template-rows: minmax(0, 1fr);
            gap: clamp(8px, 1vw, 14px);
            overflow: hidden;
        }

        .app-shell.nav-compact {
            grid-template-rows: minmax(0, 1fr);
        }

        .glass {
            background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)), rgba(15,23,42,.96);
            border: 1px solid var(--line);
            box-shadow: var(--shadow);
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
        }

        .btn {
            border: 0;
            border-radius: 16px;
            padding: 12px 16px;
            color: white;
            background: linear-gradient(135deg, var(--primary), var(--primary-2));
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            white-space: nowrap;
            transition: transform .18s ease, filter .18s ease, opacity .18s ease;
        }

            .btn:hover {
                transform: translateY(-1px);
                filter: brightness(1.06);
            }

            .btn:active {
                transform: translateY(1px) scale(0.985);
            }

            .btn.secondary {
                background: rgba(255,255,255,0.06);
                color: var(--text);
                border: 1px solid var(--line);
            }

            .btn.danger {
                background: linear-gradient(135deg, #ef4444, #dc2626);
            }

            .btn.success {
                background: linear-gradient(135deg, #10b981, #059669);
            }

            .btn.warning {
                background: linear-gradient(135deg, #f59e0b, #d97706);
            }

            .btn.ghost {
                background: transparent;
                border: 1px solid var(--line);
                color: var(--muted);
            }

            .btn.small {
                padding: 9px 12px;
                border-radius: 12px;
                font-size: 14px;
            }

            .btn:disabled {
                opacity: .6;
                cursor: not-allowed;
                transform: none;
            }

        .input, .select, .textarea {
            width: 100%;
            border-radius: 16px;
            border: 1px solid var(--line);
            background: rgba(255,255,255,0.04);
            color: var(--text);
            padding: 13px 15px;
            outline: none;
            min-width: 0;
            transition: border-color .18s ease, background .18s ease;
        }

        .select {
            color-scheme: dark;
            background-color: rgba(17,24,39,.96);
        }

            .input:focus, .select:focus, .textarea:focus {
                border-color: rgba(59,130,246,0.7);
                background: rgba(255,255,255,0.06);
            }

        .select option {
            background: #111827;
            color: #e5e7eb;
        }

        .textarea {
            min-height: 110px;
            resize: vertical;
        }

        .auth-wrap {
            height: 100dvh;
            display: grid;
            place-items: center;
            padding: 24px;
            overflow: auto;
        }

        .auth-card {
            width: min(100%, 1180px);
            min-height: min(680px, calc(100dvh - 48px));
            border-radius: 32px;
            overflow: hidden;
            display: grid;
            grid-template-columns: minmax(0, 1.05fr) minmax(380px, .82fr);
        }

        .auth-left {
            padding: 36px;
            background: linear-gradient(145deg, rgba(30,64,175,.32), rgba(15,23,42,.96) 58%, rgba(20,83,45,.22));
            border-right: 1px solid var(--line);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            gap: 28px;
        }

        .auth-right {
            padding: 36px;
            background: var(--panel);
            display: grid;
            align-content: center;
        }

        .brand-title {
            margin: 0 0 10px;
            font-size: clamp(28px, 5vw, 46px);
            line-height: 1;
        }

        .brand-sub {
            color: var(--muted);
            max-width: 48ch;
            line-height: 1.6;
        }

        .badge-row {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 20px;
        }

        .badge {
            padding: 8px 12px;
            border-radius: 999px;
            border: 1px solid var(--line);
            background: rgba(255,255,255,0.05);
            color: var(--muted);
            font-size: 14px;
        }

        .auth-preview-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 12px;
        }

        .auth-preview-card {
            border: 1px solid var(--line);
            background: rgba(255,255,255,.06);
            border-radius: 18px;
            padding: 14px;
            min-height: 112px;
        }

        .auth-preview-card strong {
            display: block;
            margin-top: 10px;
            font-size: 16px;
        }

        .auth-preview-icon {
            width: 36px;
            height: 36px;
            border-radius: 12px;
            display: inline-grid;
            place-items: center;
            color: #dbeafe;
            background: linear-gradient(145deg, rgba(59,130,246,.32), rgba(15,23,42,.72));
            border: 1px solid rgba(147,197,253,.22);
            box-shadow: 0 14px 28px rgba(15,23,42,.24);
        }

        .auth-preview-icon svg {
            width: 22px;
            height: 22px;
        }

        .auth-quiet-note {
            border: 1px solid rgba(255,255,255,.12);
            background: rgba(255,255,255,.05);
            border-radius: 20px;
            padding: 16px;
            color: var(--muted);
            line-height: 1.55;
        }

        .auth-extra-actions {
            display: grid;
            grid-template-columns: 1fr;
            gap: 10px;
            margin-top: 12px;
        }

        #googleLinkBtn,
        .google-login,
        .google-auth,
        [data-provider="google"],
        [data-auth-provider="google"],
        [href*="/api/auth/google"] {
            display: none !important;
        }

        .password-label {
            position: relative;
        }

        .password-label .input {
            padding-right: 54px;
        }

        .password-toggle {
            position: absolute;
            right: 10px;
            bottom: 10px;
            width: 42px;
            height: 42px;
            border-radius: 14px;
            border: 1px solid var(--line);
            background: rgba(255,255,255,.04);
            color: var(--muted);
            display: inline-grid;
            place-items: center;
            cursor: pointer;
            transition: transform .18s ease, border-color .18s ease, color .18s ease, background .18s ease;
        }

        .password-toggle:hover {
            color: var(--text);
            border-color: rgba(59,130,246,.52);
            background: rgba(59,130,246,.12);
        }

        .password-toggle:active {
            transform: translateY(1px);
        }

        .password-toggle svg {
            width: 20px;
            height: 20px;
        }

        .auth-code-hint {
            border: 1px solid rgba(59,130,246,.28);
            background: rgba(37,99,235,.12);
            color: #bfdbfe;
            border-radius: 16px;
            padding: 12px 14px;
            line-height: 1.45;
            font-size: 14px;
        }

        .auth-mode-hint {
            border: 1px solid rgba(148,163,184,.16);
            background: rgba(30,41,59,.54);
            color: var(--muted);
            border-radius: 16px;
            padding: 12px 14px;
            line-height: 1.45;
            font-size: 14px;
        }

        .auth-mode-hint:empty {
            display: none;
        }

        .form-grid {
            display: grid;
            gap: 14px;
        }

        .section-title {
            margin: 0 0 8px;
            font-size: 26px;
        }

        .section-desc {
            margin: 0 0 18px;
            color: var(--muted);
            line-height: 1.55;
        }

        .tiny {
            font-size: 13px;
            color: var(--muted);
        }

        .error-box, .info-box, .success-box {
            border-radius: 16px;
            padding: 12px 14px;
            font-size: 14px;
            line-height: 1.5;
        }

        .error-box {
            background: rgba(239,68,68,0.12);
            border: 1px solid rgba(239,68,68,0.28);
            color: #fecaca;
        }

        .info-box {
            background: rgba(59,130,246,0.12);
            border: 1px solid rgba(59,130,246,0.25);
            color: #bfdbfe;
        }

        .success-box {
            background: rgba(16,185,129,0.12);
            border: 1px solid rgba(16,185,129,0.28);
            color: #bbf7d0;
        }

        .topbar {
            display: none !important;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            flex-wrap: wrap;
            padding: 10px 14px;
            border-radius: 20px;
            margin-bottom: 0;
            position: relative;
            z-index: 20;
            min-width: 0;
            transition: padding .2s ease, border-radius .2s ease, opacity .2s ease;
        }

        .app-shell.nav-compact .topbar {
            display: none;
        }

        .topbar-left {
            display: flex;
            align-items: center;
            gap: 14px;
            min-width: 0;
            flex: 1 1 220px;
            transition: opacity .18s ease, flex-basis .2s ease, max-width .2s ease;
        }

        .app-shell.nav-compact .topbar-left {
            flex: 0 0 0;
            max-width: 0;
            opacity: 0;
            overflow: hidden;
            pointer-events: none;
        }

        .topbar-title {
            margin: 0;
            font-size: 19px;
            line-height: 1.1;
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: 0;
        }

        .topbar-sub {
            color: var(--muted);
            font-size: 12px;
            overflow-wrap: anywhere;
        }

        .topbar > .toolbar {
            flex: 0 1 auto;
            justify-content: flex-end;
            min-width: 0;
        }

        .status-pill {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            border-radius: 999px;
            padding: 8px 12px;
            border: 1px solid var(--line);
            background: rgba(255,255,255,0.05);
            color: var(--muted);
            font-size: 14px;
        }

        .app-shell.nav-compact .status-pill {
            width: 42px;
            height: 42px;
            padding: 0;
            justify-content: center;
        }

            .app-shell.nav-compact .status-pill span:not(.dot) {
                display: none;
            }

        .topbar-icon-btn {
            width: auto;
            min-width: 42px;
            height: 42px;
            padding: 0 12px;
            border-radius: 14px;
            gap: 8px;
        }

            .topbar-icon-btn svg {
                width: 20px;
                height: 20px;
            }

        .app-shell.nav-compact .topbar-icon-btn .btn-label {
            display: none;
        }

        .app-shell.nav-compact .topbar-icon-btn {
            width: 42px;
            padding: 0;
        }

        .app-shell.nav-compact .topbar > .toolbar {
            width: auto;
            margin-left: auto;
            display: flex;
            grid-template-columns: none;
        }

        .topbar-logout {
            display: none;
        }

        .dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: var(--warning);
            box-shadow: 0 0 0 4px rgba(245,158,11,0.12);
        }

            .dot.ok {
                background: var(--success);
                box-shadow: 0 0 0 4px rgba(16,185,129,0.12);
            }

            .dot.err {
                background: var(--danger);
                box-shadow: 0 0 0 4px rgba(239,68,68,0.12);
            }

        .layout {
            display: grid;
            grid-template-columns: 74px minmax(0, 1fr);
            gap: 12px;
            min-height: 0;
            height: 100%;
            overflow: hidden;
            transition: grid-template-columns .22s ease;
        }

        .app-shell.nav-compact .layout {
            grid-template-columns: 74px minmax(0, 1fr);
        }

        .sidebar {
            padding: 10px 8px;
            border-radius: 18px;
            min-height: 0;
            height: 100%;
            overflow: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
            position: relative;
            display: flex;
            flex-direction: column;
            transition: padding .22s ease, border-radius .22s ease;
        }

        .app-shell.nav-compact .sidebar {
            padding: 10px 8px;
            border-radius: 18px;
        }

        .sidebar::-webkit-scrollbar {
            width: 0;
            height: 0;
        }

        .nav-col {
            display: grid;
            gap: 8px;
            align-content: start;
        }

        .nav-status-dock {
            display: grid;
            gap: 8px;
            justify-items: center;
            margin-top: auto;
            padding-top: 12px;
        }

            .nav-status-dock .status-pill {
                width: 42px;
                height: 42px;
                padding: 0;
                justify-content: center;
            }

                .nav-status-dock .status-pill span:not(.dot) {
                    display: none;
                }

        .nav-btn {
            width: 100%;
            text-align: left;
            border: 1px solid transparent;
            padding: 12px 10px;
            border-radius: 16px;
            background: transparent;
            color: var(--text);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0;
            transition: .18s ease;
            min-width: 0;
        }

            .nav-btn:hover {
                background: rgba(255,255,255,0.05);
                border-color: var(--line);
            }

            .nav-btn.active {
                background: linear-gradient(135deg, rgba(59,130,246,.18), rgba(59,130,246,.07));
                border-color: rgba(59,130,246,.32);
            }

        .nav-icon {
            width: 23px;
            height: 23px;
            flex: 0 0 23px;
            color: #dbeafe;
            filter: drop-shadow(0 6px 12px rgba(59,130,246,.22));
        }

        .nav-icon svg {
            width: 100%;
            height: 100%;
            display: block;
        }

        .nav-label {
            display: none;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            transition: opacity .18s ease, max-width .2s ease;
            opacity: 0;
            max-width: 0;
        }

        .app-shell.nav-compact .nav-btn {
            justify-content: center;
            padding: 12px 10px;
            gap: 0;
        }

        .app-shell.nav-compact .nav-label {
            opacity: 0;
            max-width: 0;
        }

        .nav-meta {
            display: none;
            color: var(--muted);
            font-size: 13px;
            margin-top: 12px;
            transition: opacity .18s ease, max-height .18s ease, margin .18s ease;
        }

        .app-shell.nav-compact .nav-meta {
            opacity: 0;
            max-height: 0;
            margin: 0;
            overflow: hidden;
        }

        .content {
            min-width: 0;
            min-height: 0;
            overflow: hidden;
        }

        .page {
            display: none;
        }

            .page.active {
                display: block;
                height: 100%;
                min-height: 0;
                overflow: auto;
                overflow-x: hidden;
                padding: 0 4px 4px 0;
                scrollbar-width: none;
                -ms-overflow-style: none;
            }

            .page.active::-webkit-scrollbar {
                width: 0;
                height: 0;
            }

        @media (prefers-reduced-motion: no-preference) {
            .page.active {
                animation: pageIn .22s ease both;
            }

            @keyframes pageIn {
                from {
                    opacity: .72;
                    transform: translateY(6px);
                }
                to {
                    opacity: 1;
                    transform: translateY(0);
                }
            }
        }

        .hero-grid, .stat-grid, .two-col, .cards-grid {
            display: grid;
            gap: 18px;
        }

        .hero-grid {
            grid-template-columns: minmax(0, 1.6fr) minmax(320px, .9fr);
            margin-bottom: 18px;
        }

        .stat-grid {
            grid-template-columns: repeat(4, minmax(0,1fr));
            margin-bottom: 18px;
        }

        .two-col {
            grid-template-columns: minmax(0, 1.3fr) minmax(340px, .9fr);
        }

        .cards-grid {
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        }

        .card {
            padding: 20px;
            border-radius: 24px;
        }

        .hero-card {
            padding: 24px;
            border-radius: 28px;
            overflow: hidden;
            position: relative;
        }

            .hero-card::after {
                display: none;
            }

        .card-title {
            margin: 0 0 6px;
            font-size: 20px;
        }

        .card-sub {
            color: var(--muted);
            margin: 0 0 14px;
            line-height: 1.5;
        }

        .metric {
            font-size: 32px;
            font-weight: 800;
        }

        .metric-label {
            color: var(--muted);
            font-size: 14px;
        }

        .recipe-card, .fridge-card, .chat-item, .ticket-card {
            background: rgba(255,255,255,0.04);
            border: 1px solid var(--line);
            border-radius: 20px;
            overflow: hidden;
        }

        .fridge-ai-grid {
            display: grid;
            grid-template-columns: minmax(0, 1.35fr) minmax(0, .82fr) minmax(88px, .35fr) minmax(104px, .35fr) auto;
            gap: 10px;
            align-items: center;
            min-width: 0;
        }

        .fridge-ai-grid > * {
            min-width: 0;
        }

        .fridge-ai-hint {
            margin-top: 12px;
            border-radius: 16px;
            border: 1px solid rgba(59,130,246,.22);
            background: rgba(59,130,246,.08);
            color: #bfdbfe;
            padding: 10px 12px;
            line-height: 1.45;
        }

        .fridge-market-layout {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
            gap: 18px;
            min-width: 0;
            overflow: hidden;
        }

        .fridge-market-layout > *,
        .fridge-market-layout .card,
        .fridge-market-layout .list {
            min-width: 0;
        }

        .fridge-market-layout .card {
            overflow: hidden;
        }

        .category-tabs {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            overflow: visible;
            padding-bottom: 4px;
            margin-bottom: 12px;
        }

        .category-chip {
            border: 1px solid var(--line);
            border-radius: 999px;
            background: rgba(255,255,255,.04);
            color: var(--muted);
            padding: 8px 11px;
            white-space: nowrap;
            font-weight: 700;
        }

            .category-chip.active, .category-chip:hover {
                color: var(--text);
                border-color: rgba(59,130,246,.42);
                background: rgba(59,130,246,.14);
            }

        .fridge-catalog-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
            gap: 10px;
            min-width: 0;
        }

        .fridge-product-card {
            border: 1px solid var(--line);
            background: rgba(255,255,255,.04);
            color: var(--text);
            border-radius: 18px;
            padding: 12px;
            text-align: left;
            display: grid;
            gap: 8px;
            min-height: 132px;
            min-width: 0;
            transition: transform .18s ease, border-color .18s ease, background .18s ease;
        }

        .fridge-product-card strong,
        .fridge-product-card .tiny,
        .fridge-product-card .muted,
        .card-sub {
            overflow-wrap: anywhere;
        }

            .fridge-product-card:hover {
                transform: translateY(-1px);
                border-color: rgba(59,130,246,.42);
                background: rgba(59,130,246,.12);
            }

        .product-icon {
            width: 42px;
            height: 42px;
            display: grid;
            place-items: center;
            border-radius: 14px;
            background: rgba(255,255,255,.07);
            font-size: 24px;
        }

        .fridge-item-title {
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
        }

        .fridge-item-title > div {
            min-width: 0;
            max-width: 100%;
        }

        .fridge-item-title strong {
            display: block;
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .fridge-workspace {
            display: grid;
            gap: 16px;
            min-width: 0;
        }

        .fridge-hero {
            border-radius: 24px;
            padding: 18px;
        }

        .fridge-hero-head {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(280px, .42fr);
            gap: 14px;
            align-items: end;
            margin-bottom: 14px;
        }

        .fridge-search-tools {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 10px;
            min-width: 0;
        }

        .fridge-summary-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 10px;
            margin: 12px 0 14px;
        }

        .fridge-summary-tile {
            border: 1px solid var(--line);
            background: rgba(255,255,255,.04);
            border-radius: 18px;
            padding: 13px;
            display: grid;
            gap: 3px;
            min-width: 0;
        }

        .fridge-summary-tile strong {
            font-size: 26px;
            line-height: 1;
        }

        .fridge-summary-tile span {
            color: var(--muted);
            font-size: 12px;
            font-weight: 700;
        }

        .fridge-inventory-card,
        .fridge-side-card {
            border-radius: 24px;
            padding: 18px;
            min-width: 0;
            overflow: hidden;
        }

        .fridge-stock-list {
            display: grid;
            gap: 9px;
            max-height: min(58dvh, 620px);
            overflow: auto;
            padding-right: 2px;
            scrollbar-width: thin;
            scrollbar-color: rgba(148,163,184,.28) transparent;
        }

        .fridge-stock-row {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 12px;
            align-items: center;
            border: 1px solid var(--line);
            background: rgba(255,255,255,.04);
            border-radius: 18px;
            padding: 12px;
            min-width: 0;
        }

        .fridge-stock-main {
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
        }

        .fridge-stock-main strong {
            display: block;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .fridge-stock-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: 0;
        }

        .fridge-qty-pill {
            border: 1px solid rgba(148,163,184,.16);
            border-radius: 999px;
            background: rgba(255,255,255,.06);
            color: #dbeafe;
            padding: 7px 10px;
            font-weight: 800;
            white-space: nowrap;
        }

        .fridge-icon-btn {
            width: 36px;
            height: 36px;
            border: 1px solid var(--line);
            border-radius: 12px;
            color: var(--text);
            background: rgba(255,255,255,.055);
            font-weight: 900;
        }

        .fridge-icon-btn:hover {
            border-color: rgba(59,130,246,.38);
            background: rgba(59,130,246,.12);
        }

        .fridge-icon-btn.remove {
            color: #fecaca;
            border-color: rgba(239,68,68,.18);
            background: rgba(239,68,68,.07);
        }

        .fridge-market-layout {
            align-items: start;
        }

        .fridge-side-stack {
            display: grid;
            gap: 16px;
            min-width: 0;
        }

        .fridge-catalog-grid {
            max-height: min(55dvh, 560px);
            overflow: auto;
            padding-right: 2px;
            scrollbar-width: thin;
            scrollbar-color: rgba(148,163,184,.28) transparent;
        }

        .fridge-product-card {
            min-height: 112px;
        }

        .recipe-image {
            height: 170px;
            background: linear-gradient(135deg, rgba(59,130,246,.15), rgba(16,185,129,.15));
            display: grid;
            place-items: center;
            font-size: 44px;
            color: rgba(255,255,255,.7);
        }

        .recipe-body {
            padding: 16px;
            display: grid;
            gap: 10px;
        }

        .tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .tag {
            border-radius: 999px;
            padding: 6px 10px;
            background: rgba(255,255,255,.06);
            color: var(--muted);
            font-size: 12px;
        }

        .list {
            display: grid;
            gap: 12px;
        }

        .cart-layout {
            display: grid;
            grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
            gap: 18px;
            min-height: 0;
        }

        .cart-main-column,
        .cart-side-column {
            display: grid;
            gap: 16px;
            align-content: start;
            min-width: 0;
        }

        .cart-hero {
            border-radius: 24px;
            padding: 20px;
        }

        .cart-hero-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 14px;
            flex-wrap: wrap;
            margin-bottom: 16px;
        }

        .cart-actions {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            justify-content: flex-end;
        }

        .soft-action {
            border: 1px solid var(--line);
            border-radius: 14px;
            background: rgba(255,255,255,.055);
            color: #dbeafe;
            padding: 10px 13px;
            font-weight: 800;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            min-height: 42px;
            white-space: nowrap;
            transition: transform .18s ease, background .18s ease, border-color .18s ease;
        }

        .soft-action:hover {
            transform: translateY(-1px);
            border-color: rgba(59,130,246,.36);
            background: rgba(59,130,246,.12);
        }

        .soft-action.danger {
            color: #fecaca;
            border-color: rgba(239,68,68,.22);
            background: rgba(239,68,68,.08);
        }

        .soft-action.success {
            color: #bbf7d0;
            border-color: rgba(16,185,129,.24);
            background: rgba(16,185,129,.09);
        }

        .cart-summary-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
        }

        .cart-summary-tile {
            border: 1px solid var(--line);
            border-radius: 18px;
            background: rgba(255,255,255,.04);
            padding: 14px;
            min-width: 0;
        }

        .cart-summary-tile span {
            color: var(--muted);
            font-size: 13px;
        }

        .cart-summary-tile strong {
            display: block;
            margin-top: 5px;
            font-size: 24px;
            line-height: 1;
        }

        .cart-note {
            margin-top: 12px;
            border-radius: 16px;
            border: 1px solid rgba(59,130,246,.22);
            background: rgba(59,130,246,.08);
            color: #bfdbfe;
            padding: 11px 13px;
            line-height: 1.45;
        }

        .cart-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 12px;
        }

        .cart-product-card {
            border: 1px solid var(--line);
            border-radius: 20px;
            background: rgba(255,255,255,.04);
            padding: 14px;
            display: grid;
            gap: 12px;
            min-width: 0;
        }

        .cart-product-top {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            min-width: 0;
        }

        .cart-product-icon {
            width: 42px;
            height: 42px;
            border-radius: 14px;
            display: grid;
            place-items: center;
            background: rgba(59,130,246,.12);
            color: #bfdbfe;
            flex: 0 0 42px;
        }

        .cart-product-icon svg {
            width: 22px;
            height: 22px;
        }

        .cart-product-name {
            font-weight: 900;
            overflow-wrap: anywhere;
        }

        .cart-product-meta {
            margin-top: 3px;
            color: var(--muted);
            font-size: 13px;
        }

        .cart-product-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
        }

        .cart-price {
            font-weight: 900;
        }

        .cart-card-remove {
            border: 1px solid rgba(239,68,68,.18);
            border-radius: 12px;
            background: rgba(239,68,68,.07);
            color: #fecaca;
            padding: 8px 10px;
            font-weight: 800;
        }

        .cart-empty-state {
            border: 1px dashed rgba(148,163,184,.28);
            border-radius: 20px;
            padding: 24px;
            color: var(--muted);
            text-align: center;
        }

        .row-between {
            display: flex;
            gap: 12px;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            min-width: 0;
        }

        .row-between > * {
            min-width: 0;
        }

        .muted {
            color: var(--muted);
        }

        .mono {
            font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
        }

        .table-wrap {
            overflow: auto;
        }

        table {
            width: 100%;
            border-collapse: collapse;
        }

        th, td {
            padding: 12px 10px;
            border-bottom: 1px solid var(--line);
            text-align: left;
        }

        th {
            color: var(--muted);
            font-size: 13px;
            font-weight: 600;
        }
