/**
 * Alista — estilos do app principal (extraído de index.html)
 */
        * { margin: 0; padding: 0; box-sizing: border-box; }

        button {
            font-family: inherit;
            color: inherit;
        }

        :root {
            --app-header-height: 56px;
            --app-status-bar-color: #2563eb;
            --app-bottom-bar-height: 64px;
            --app-spacing: 16px;
            --app-radius: 16px;
            --bg:          #f5f7fa;
            --surface:     #ffffff;
            --surface2:    #f0f2f5;
            --border:      #e2e6ec;
            --text:        #0f172a;
            --text-sub:    #64748b;
            --accent:      #2563eb;
            --accent-dark: #1d4ed8;
            --accent-glow: rgba(37, 99, 235, 0.18);
            --danger:      #ef4444;
            --success:     #22c55e;
            --warning:     #f59e0b;
            --shadow-sm:   0 1px 3px rgba(15, 23, 42, 0.06);
            --shadow-md:   0 4px 16px rgba(15, 23, 42, 0.08);
            --shadow-lg:   0 8px 32px rgba(15, 23, 42, 0.1);
            --radius:      14px;
            --card-bg:     var(--surface);
            --card-inner:  var(--surface2);
            --neon-blue:   var(--accent);
            --neon-glow:   none;
        }

        [data-theme="dark"] {
            --bg:          #070b14;
            --surface:     #0d1420;
            --surface2:    #121c2e;
            --border:      rgba(59, 130, 246, 0.22);
            --text:        #f1f5f9;
            --text-sub:    #7b8da8;
            --accent:      #3b9eff;
            --accent-dark: #2563eb;
            --accent-glow: rgba(59, 158, 255, 0.35);
            --neon-blue:   #4dabf7;
            --neon-glow:   0 0 14px rgba(77, 171, 247, 0.55), 0 0 28px rgba(59, 130, 246, 0.25);
            --card-bg:     rgba(12, 20, 36, 0.88);
            --card-inner:  rgba(16, 26, 46, 0.72);
            --shadow-sm:   0 1px 3px rgba(0,0,0,0.3);
            --shadow-md:   0 4px 24px rgba(0,0,0,0.45);
            --shadow-lg:   0 8px 40px rgba(0,0,0,0.55);
        }

        [data-theme="dark"] body {
            background: radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.12) 0%, transparent 55%),
                        radial-gradient(ellipse at 80% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 40%),
                        #070b14;
        }

        [data-theme="dark"] .container {
            background: transparent;
            box-shadow: none;
        }

        [data-theme="dark"] {
            color-scheme: dark;
        }

        [data-theme="dark"] body,
        [data-theme="dark"] .container,
        [data-theme="dark"] .panel-sheet,
        [data-theme="dark"] .modal-sheet,
        [data-theme="dark"] .confirm-dialog,
        [data-theme="dark"] .side-menu {
            color: var(--text);
        }

        [data-theme="dark"] h1,
        [data-theme="dark"] h2,
        [data-theme="dark"] h3,
        [data-theme="dark"] h4,
        [data-theme="dark"] p,
        [data-theme="dark"] label,
        [data-theme="dark"] li,
        [data-theme="dark"] td,
        [data-theme="dark"] th,
        [data-theme="dark"] strong,
        [data-theme="dark"] .panel-header h2,
        [data-theme="dark"] .default-list-card h3,
        [data-theme="dark"] .receitas-card-head h3 {
            color: var(--text);
        }

        [data-theme="dark"] button:not(.header-btn):not(.panel-btn):not(.submit-btn):not(.confirm-delete):not(.btn-fechar-compra):not(.install-btn-yes):not(.install-btn-no):not(.side-menu-close):not(.product-icon-btn):not(.qty-btn):not(.icon-btn):not(.remedios-card-btn):not(.remedios-hist-period-chip):not(.remedios-period-tab):not(.remedios-preset-chip) {
            color: var(--text);
        }

        [data-theme="dark"] input,
        [data-theme="dark"] textarea,
        [data-theme="dark"] select {
            color: var(--text);
        }

        [data-theme="dark"] input::placeholder,
        [data-theme="dark"] textarea::placeholder {
            color: var(--text-sub);
            opacity: 1;
        }

        [data-theme="dark"] select option {
            background: var(--surface);
            color: var(--text);
        }

        [data-theme="dark"] code {
            color: var(--text);
            background: rgba(255, 255, 255, 0.08);
        }

        [data-theme="dark"] input:-webkit-autofill,
        [data-theme="dark"] input:-webkit-autofill:hover,
        [data-theme="dark"] input:-webkit-autofill:focus,
        [data-theme="dark"] textarea:-webkit-autofill {
            -webkit-text-fill-color: var(--text) !important;
            caret-color: var(--text);
            box-shadow: 0 0 0 1000px var(--surface2) inset !important;
        }

        [data-theme="dark"] .comparison-table th,
        [data-theme="dark"] .comparison-table td {
            color: var(--text);
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--bg);
            color: var(--text);
            transition: background 0.3s, color 0.3s;
            -webkit-overflow-scrolling: touch;
            overscroll-behavior: none;
            min-height: 100dvh;
            width: 100%;
            max-width: 100%;
            margin: 0;
            overflow-x: hidden;
        }

        .container {
            width: 100%;
            max-width: 100%;
            margin: 0;
            background: var(--surface);
            min-height: 100dvh;
            box-shadow: none;
            transition: background 0.3s;
            position: relative;
        }

        /* ===== HEADER ===== */
        .header {
            background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
            color: white;
            position: relative;
            overflow: hidden;
            border-bottom: 1px solid rgba(255,255,255, 0.12);
            box-shadow: 0 4px 24px var(--accent-glow);
        }

        .header::after {
            content: '';
            position: absolute;
            width: 200px; height: 200px;
            background: rgba(255,255,255,0.1);
            border-radius: 50%;
            top: -60px; right: -40px;
            pointer-events: none;
        }

        .header-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
        }

        .header-leading {
            display: flex;
            align-items: center;
            flex-shrink: 0;
        }

        .header-end {
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
            margin-left: auto;
        }

        .header-greeting {
            flex: 0 1 auto;
            min-width: 0;
        }

        .header-brand {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            flex-shrink: 0;
        }

        .header-icon {
            position: relative;
            width: 72px;
            height: 36px;
            background: transparent;
            flex-shrink: 0;
            overflow: visible;
        }

        .header-icon img {
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 72px;
            height: 72px;
            object-fit: contain;
            display: block;
        }

        .header-subtitle {
            font-size: 12px;
            opacity: 0.85;
            margin-top: 0;
            line-height: 1.2;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .menu-toggle {
            padding: 7px 10px;
            min-width: 40px;
            justify-content: center;
        }

        .menu-toggle svg {
            width: 20px;
            height: 20px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
        }

        /* ===== SIDE MENU ===== */
        .side-menu-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.45);
            z-index: 200;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.25s, visibility 0.25s;
        }

        .side-menu-overlay.open {
            opacity: 1;
            visibility: visible;
        }

        .side-menu {
            position: fixed;
            top: 0;
            left: 0;
            width: min(300px, calc(88vw - var(--app-safe-left)));
            height: 100dvh;
            max-height: 100dvh;
            background: var(--surface);
            border-right: 1px solid var(--border);
            z-index: 210;
            display: flex;
            flex-direction: column;
            transform: translateX(-100%);
            transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
            box-sizing: border-box;
        }

        .side-menu.open {
            transform: translateX(0);
        }

        .side-menu-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
            color: #fff;
            min-height: 81px;
            height: auto;
            padding:
                max(var(--app-edge-inset, 2px), var(--app-safe-top))
                var(--app-edge-inset-x, 10px)
                var(--app-edge-inset, 2px);
            box-sizing: border-box;
        }

        html.capacitor-native.capacitor-status-no-overlay .side-menu-header {
            padding-top: var(--app-edge-inset, 2px);
        }

        body.alista-token-bar-visible .side-menu-header {
            padding-top: calc(var(--app-token-bar-height, 28px) + max(var(--app-edge-inset, 2px), var(--app-safe-top)));
        }

        html.capacitor-native.capacitor-status-no-overlay body.alista-token-bar-visible .side-menu-header {
            padding-top: calc(var(--app-token-bar-height, 28px) + var(--app-edge-inset, 2px));
        }

        .header.app-header {
            padding: var(--app-edge-inset, 2px) var(--app-edge-inset-x, 10px);
            padding-bottom: var(--app-spacing, 16px);
            min-height: 0;
            box-sizing: border-box;
        }

        .header.app-header .header-top {
            min-height: 36px;
            align-items: center;
            width: 100%;
        }

        .side-menu-brand {
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
        }

        .side-menu-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 72px;
            height: 72px;
            flex-shrink: 0;
            overflow: visible;
        }

        .side-menu-icon img {
            width: 72px;
            height: 72px;
            object-fit: contain;
            display: block;
            background: transparent;
        }

        .side-menu-brand span {
            display: block;
            font-size: 12px;
            opacity: 0.85;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 180px;
        }

        .side-menu-close {
            background: rgba(255, 255, 255, 0.15);
            border: none;
            color: #fff;
            width: 34px;
            height: 34px;
            border-radius: 8px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            align-self: center;
        }

        .side-menu-close svg {
            width: 18px;
            height: 18px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .side-menu-close:hover {
            background: rgba(255, 255, 255, 0.25);
        }

        .side-menu-body {
            flex: 1;
            overflow-y: auto;
        }

        .side-menu-section {
            padding: 8px 16px 4px;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: var(--text-sub);
        }

        .side-menu-item {
            display: flex;
            align-items: center;
            gap: 12px;
            width: 100%;
            padding: 14px 18px;
            border: none;
            background: transparent;
            color: var(--text);
            font-family: 'Inter', sans-serif;
            font-size: 15px;
            font-weight: 500;
            text-align: left;
            cursor: pointer;
            transition: background 0.15s;
        }

        .side-menu-item:hover,
        .side-menu-item:focus-visible {
            background: var(--surface2);
        }

        .side-menu-item svg {
            width: 20px;
            height: 20px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
            flex-shrink: 0;
            opacity: 0.85;
        }

        .side-menu-item.danger {
            color: var(--danger);
        }

        .side-menu-item.danger svg {
            stroke: var(--danger);
        }

        .side-menu-toolbar {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 4px 18px 14px;
            flex-shrink: 0;
        }

        .side-menu-lang-wrap {
            position: relative;
            width: 44px;
            height: 44px;
            flex-shrink: 0;
            isolation: isolate;
        }

        .side-menu-lang-flag {
            position: absolute;
            inset: 0;
            z-index: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 10px;
            border: 1px solid var(--border);
            background: var(--surface2);
            font-size: 26px;
            line-height: 1;
            pointer-events: none;
            overflow: hidden;
            font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
            transition: background 0.15s, border-color 0.15s;
        }

        .side-menu-lang-wrap:hover .side-menu-lang-flag {
            background: var(--surface);
            border-color: var(--accent);
        }

        .side-menu-icon-btn {
            width: 44px;
            height: 44px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 10px;
            border: 1px solid var(--border);
            background: var(--surface2);
            color: var(--text);
            cursor: pointer;
            transition: background 0.15s, border-color 0.15s;
            -webkit-tap-highlight-color: transparent;
        }

        .side-menu-icon-btn:hover {
            background: var(--surface);
            border-color: var(--accent);
        }

        .side-menu-lang-btn {
            position: absolute;
            inset: 0;
            z-index: 1;
            width: 100%;
            height: 100%;
            margin: 0;
            padding: 0;
            opacity: 0;
            color: transparent;
            -webkit-text-fill-color: transparent;
            cursor: pointer;
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            font-size: 16px;
            background: transparent;
        }

        .side-menu-lang-btn option {
            color: var(--text);
            background: var(--surface);
            font-size: 16px;
            line-height: 1.2;
        }

        #theme-toggle .theme-icon-wrap {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 22px;
            height: 22px;
            flex-shrink: 0;
            color: inherit;
            pointer-events: none;
        }

        #theme-toggle svg {
            display: block;
            width: 22px;
            height: 22px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
            opacity: 1;
            flex-shrink: 0;
        }

        .side-menu-divider {
            height: 1px;
            background: var(--border);
            margin: 8px 16px;
        }

        body.side-menu-open {
            overflow: hidden;
        }

        .header-btn {
            background: rgba(255,255,255,0.15);
            border: none;
            color: white;
            padding: 7px 12px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 13px;
            font-family: 'Inter', sans-serif;
            font-weight: 500;
            transition: background 0.2s;
            display: flex; align-items: center; gap: 5px;
            -webkit-tap-highlight-color: transparent;
        }

        .header-btn:hover { background: rgba(255,255,255,0.25); }

        #profile-panel-body {
            min-width: 0;
            max-width: 100%;
            box-sizing: border-box;
        }
        .pf-view {
            display: flex;
            flex-direction: column;
            gap: 14px;
            min-width: 0;
            max-width: 100%;
        }
        .pf-section-card {
            padding: 16px;
            border-radius: 14px;
            border: 1px solid var(--border);
            background: var(--card-bg, var(--surface2));
            min-width: 0;
            max-width: 100%;
            box-sizing: border-box;
            overflow: hidden;
        }
        .pf-section-card--avatar {
            padding-top: 20px;
            padding-bottom: 18px;
        }
        .pf-section-card--danger {
            border-color: rgba(239, 68, 68, 0.32);
            background: linear-gradient(180deg, rgba(239, 68, 68, 0.06) 0%, var(--card-bg, var(--surface2)) 72%);
        }
        .pf-section-head {
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 0 0 14px;
            font-size: 14px;
            font-weight: 700;
            color: var(--text);
            line-height: 1.3;
        }
        .pf-section-head--danger { color: var(--danger); }
        .pf-section-head__icon {
            flex-shrink: 0;
            display: inline-flex;
            color: var(--accent);
        }
        .pf-section-head--danger .pf-section-head__icon { color: var(--danger); }
        .pf-section-head__icon svg {
            width: 16px;
            height: 16px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
        }
        .pf-field { margin-bottom: 10px; min-width: 0; }
        .pf-field:last-of-type { margin-bottom: 0; }
        .pf-field__label {
            display: block;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            color: var(--text-sub);
            margin-bottom: 6px;
        }
        .pf-field__control {
            width: 100%;
            padding: 10px 12px;
            border-radius: 10px;
            border: 1px solid var(--border);
            background: var(--surface);
            color: var(--text);
            font-family: 'Inter', sans-serif;
            font-size: 14px;
            box-sizing: border-box;
            min-width: 0;
        }
        .pf-field__control:read-only {
            opacity: 0.75;
            background: var(--surface2);
        }
        .pf-field__control:focus {
            outline: none;
            border-color: rgba(59, 130, 246, 0.45);
            box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
        }
        .pf-section-card .panel-btn {
            margin-top: 12px !important;
            min-height: 44px;
        }
        .pf-section-card .panel-btn.secondary {
            margin-top: 10px !important;
        }

        .profile-delete-warning {
            display: flex;
            gap: 10px;
            align-items: flex-start;
            padding: 12px 14px;
            margin-bottom: 0;
            border-radius: 10px;
            background: rgba(239, 68, 68, 0.08);
            border: 1px solid rgba(239, 68, 68, 0.28);
            color: var(--text);
            font-size: 13px;
            line-height: 1.45;
        }

        .profile-delete-warning svg {
            flex-shrink: 0;
            width: 20px;
            height: 20px;
            stroke: var(--danger);
            fill: none;
            stroke-width: 2;
            margin-top: 1px;
        }

        .profile-delete-warning strong {
            display: block;
            color: var(--danger);
            font-size: 13px;
            margin-bottom: 4px;
        }

        .profile-avatar-wrap {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            margin-bottom: 0;
        }

        .profile-avatar {
            width: 96px;
            height: 96px;
            border-radius: 50%;
            object-fit: cover;
            background: var(--surface2);
            border: 3px solid rgba(37, 99, 235, 0.25);
            box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
        }

        .profile-avatar.placeholder {
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 36px;
            font-weight: 700;
            color: var(--accent);
            background: rgba(37, 99, 235, 0.12);
        }

        .profile-photo-actions {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: center;
            width: 100%;
        }
        .profile-photo-actions .panel-btn {
            flex: 1 1 120px;
            margin-top: 0 !important;
            min-height: 40px;
            font-size: 13px;
        }

        /* ===== SEARCH ===== */
        .search-bar {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px;
            position: relative;
        }

        .search-bar .incomplete-alert {
            margin: 0;
        }

        .search-bar .incomplete-alert.show:not(.is-compact) {
            flex: 1 1 100%;
            width: 100%;
            order: 2;
            position: static;
            transform: none;
        }

        .search-bar .incomplete-alert.show.is-compact {
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            flex: 0 0 auto;
            order: 1;
            align-self: center;
            z-index: 3;
            margin: 0;
        }

        .search-bar:has(.incomplete-alert.show.is-compact) #search-input {
            padding-right: 48px;
        }

        .search-wrap {
            flex: 1 1 100%;
            min-width: 0;
            position: relative;
            order: 0;
        }

        .search-wrap svg {
            position: absolute;
            left: 12px; top: 50%;
            transform: translateY(-50%);
            color: var(--text-sub);
            pointer-events: none;
        }

        #search-input {
            width: 100%;
            padding: 12px 14px 12px 40px;
            background: var(--surface2);
            border: 1.5px solid var(--border);
            border-radius: 10px;
            font-size: 15px;
            font-family: 'Inter', sans-serif;
            color: var(--text);
            transition: border-color 0.25s, box-shadow 0.25s;
            outline: none;
        }

        #search-input::placeholder { color: var(--text-sub); }

        #search-input:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--accent-glow);
        }

        [data-theme="dark"] #search-input {
            background: rgba(16, 26, 46, 0.75);
            border-color: rgba(59, 130, 246, 0.22);
        }

        [data-theme="dark"] .search-wrap svg { color: var(--text-sub); }

        /* ===== EMPTY STATE ===== */
        .empty-state {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 80px 24px;
            text-align: center;
            color: var(--text-sub);
        }

        .empty-icon {
            width: 72px;
            height: 72px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 16px;
            background: var(--surface2);
            border: 1px solid var(--border);
            color: var(--accent);
            opacity: 1;
        }

        .empty-icon svg {
            width: 32px;
            height: 32px;
            stroke: currentColor;
        }

        .empty-state h2 {
            font-size: 19px;
            font-weight: 600;
            color: var(--text);
            margin-bottom: 8px;
        }

        .empty-state p {
            font-size: 14px;
            line-height: 1.6;
        }

        .no-results {
            text-align: center;
            padding: 60px 24px;
            color: var(--text-sub);
            display: none;
        }

        .no-results span { font-size: 40px; display:block; margin-bottom:12px; }

        /* ===== PRODUCT LIST (neon glass layout) ===== */
        .product-list {
            display: none;
        }

        .category-card {
            background: var(--card-bg, rgba(12, 20, 36, 0.88));
            border: 1px solid rgba(59, 130, 246, 0.32);
            border-radius: 18px;
            box-shadow: 0 0 24px rgba(37, 99, 235, 0.1), inset 0 1px 0 rgba(255,255,255,0.04);
            overflow: hidden;
        }

        .category-card-header {
            display: flex;
            align-items: center;
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
            user-select: none;
            min-width: 0;
        }

        .cat-icon-box {
            width: 38px;
            height: 38px;
            border-radius: 10px;
            background: rgba(37, 99, 235, 0.18);
            border: 1px solid rgba(59, 130, 246, 0.35);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
            color: var(--accent, #3b9eff);
        }

        .cat-icon-box svg {
            width: 20px;
            height: 20px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .cat-title-wrap {
            display: flex;
            align-items: center;
            gap: 8px;
            flex: 1;
            min-width: 0;
        }

        .cat-title {
            font-size: 13px;
            font-weight: 700;
            color: var(--text);
            letter-spacing: 0.8px;
            text-transform: uppercase;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .category-count {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: rgba(37, 99, 235, 0.85);
            color: #fff;
            font-size: 11px;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
        }

        .cat-subtotal-wrap {
            text-align: right;
            flex-shrink: 1;
            min-width: 0;
            max-width: 108px;
            margin-right: 4px;
            overflow: hidden;
        }

        .cat-subtotal-label {
            display: block;
            font-size: 10px;
            color: var(--text-sub);
            font-weight: 500;
            margin-bottom: 1px;
        }

        .cat-subtotal-value {
            font-size: 15px;
            font-weight: 700;
            color: var(--neon-blue, #4dabf7);
            text-shadow: var(--neon-glow, 0 0 14px rgba(77, 171, 247, 0.55));
            display: block;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            max-width: 100%;
        }

        .price-text {
            display: inline-block;
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            vertical-align: bottom;
        }

        .cat-chevron {
            width: 20px;
            height: 20px;
            flex-shrink: 0;
            color: var(--text-sub);
            transition: transform 0.25s ease;
        }

        .cat-chevron svg {
            width: 20px;
            height: 20px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2.5;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .category-card.collapsed .cat-chevron { transform: rotate(180deg); }
        .category-card.collapsed .category-card-body { display: none; }

        .category-card-body {
            display: flex;
            flex-direction: column;
        }

        .product-item {
            background: var(--card-inner, rgba(16, 26, 46, 0.72));
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 14px;
            display: flex;
            align-items: stretch;
            gap: 10px;
            min-width: 0;
            transition: border-color 0.2s, box-shadow 0.2s;
            -webkit-tap-highlight-color: transparent;
            animation: itemIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
        }

        @keyframes itemIn {
            from { opacity: 0; transform: translateY(10px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        .product-item:hover {
            border-color: rgba(59, 130, 246, 0.25);
            box-shadow: 0 0 16px rgba(37, 99, 235, 0.08);
        }

        .incomplete-product {
            position: relative;
        }

        .incomplete-product::before {
            content: '';
            position: absolute;
            left: 0;
            width: 3px;
            border-radius: 2px;
            background: linear-gradient(180deg, #f59e0b 0%, #3b82f6 100%);
        }

        .product-item.incomplete-highlight {
            border-color: rgba(245, 158, 11, 0.8) !important;
            background: rgba(245, 158, 11, 0.08);
            box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.4), 0 0 22px rgba(245, 158, 11, 0.22);
            animation: incompletePulse 1.1s ease-in-out 4;
        }

        .product-item.incomplete-highlight .incomplete-badge {
            background: #334155;
            border-color: #f59e0b;
            color: #fcd34d;
        }

        [data-theme="dark"] .product-item.incomplete-highlight .incomplete-badge {
            background: rgba(245, 158, 11, 0.28);
            border-color: #f59e0b;
            color: #fcd34d;
        }

        @keyframes incompletePulse {
            0%, 100% { box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.35), 0 0 14px rgba(245, 158, 11, 0.2); }
            50% { box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.6), 0 0 22px rgba(245, 158, 11, 0.35); }
        }

        .incomplete-alert {
            padding: 12px 14px;
            border-radius: 12px;
            background: rgba(245, 158, 11, 0.12);
            border: 1px solid rgba(245, 158, 11, 0.45);
            color: var(--text);
            font-size: 13px;
            line-height: 1.45;
            display: none;
            box-sizing: border-box;
            transition: width 0.25s ease, height 0.25s ease, min-height 0.25s ease, padding 0.25s ease, border-radius 0.25s ease, margin 0.25s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease, opacity 0.2s ease;
        }

        .incomplete-alert.show { display: block; }

        .incomplete-alert-compact-badge {
            display: none;
        }

        .incomplete-alert.show.is-compact {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 44px;
            min-height: 44px;
            padding: 0;
            margin: 0;
            border-radius: 50%;
            overflow: visible;
            cursor: pointer;
            background: transparent;
            border-color: transparent;
            box-shadow: none;
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
        }

        .incomplete-alert.show.is-compact .incomplete-alert-body {
            display: none;
        }

        .incomplete-alert.show.is-compact .incomplete-alert-compact-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 18px;
            height: 18px;
            padding: 0 6px;
            border-radius: 999px;
            background: #f59e0b;
            border: 1.5px solid #d97706;
            color: #78350f;
            font-size: 11px;
            font-weight: 700;
            line-height: 1;
            letter-spacing: -0.02em;
            box-sizing: border-box;
            pointer-events: none;
            animation: incompletePulse 1.4s ease-in-out infinite;
            transition: transform 0.15s ease, background 0.15s ease;
        }

        .incomplete-alert.show.is-compact:hover .incomplete-alert-compact-badge,
        .incomplete-alert.show.is-compact:focus-visible .incomplete-alert-compact-badge {
            transform: scale(1.1);
            background: #fbbf24;
        }

        .incomplete-alert.show.is-compact:active .incomplete-alert-compact-badge {
            transform: scale(0.95);
        }

        .incomplete-alert.show.is-compact:focus-visible {
            outline: 2px solid rgba(245, 158, 11, 0.65);
            outline-offset: 2px;
        }

        .incomplete-alert strong { color: var(--text); }

        .incomplete-alert-actions {
            margin-top: 10px;
            display: flex;
            flex-wrap: wrap;
            align-items: stretch;
            gap: 8px;
        }

        .incomplete-alert-btn {
            flex: 1 1 0;
            min-width: 0;
            min-height: 44px;
            padding: 8px 10px;
            border-radius: 8px;
            border: 1px solid rgba(245, 158, 11, 0.55);
            background: rgba(245, 158, 11, 0.2);
            color: #92400e;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .incomplete-alert-btn-icon {
            width: 16px;
            height: 16px;
            flex-shrink: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .incomplete-alert-btn-icon svg {
            width: 16px;
            height: 16px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .incomplete-alert-btn-label {
            line-height: 1.2;
            text-align: center;
        }

        .incomplete-alert-btn:hover {
            background: rgba(245, 158, 11, 0.32);
        }

        .incomplete-alert-btn.incomplete-alert-btn--clear {
            border-color: rgba(239, 68, 68, 0.45);
            background: rgba(239, 68, 68, 0.12);
            color: #b91c1c;
        }

        .incomplete-alert-btn.incomplete-alert-btn--clear:hover {
            background: rgba(239, 68, 68, 0.22);
        }

        [data-theme="dark"] .incomplete-alert-btn.incomplete-alert-btn--clear {
            color: #fca5a5;
        }

        [data-theme="dark"] .incomplete-alert {
            color: #fcd34d;
        }

        [data-theme="dark"] .incomplete-alert strong {
            color: #fbbf24;
        }

        [data-theme="dark"] .incomplete-alert-btn {
            color: #fde68a;
        }

        [data-theme="dark"] .incomplete-alert.show.is-compact .incomplete-alert-compact-badge {
            background: #fbbf24;
            border-color: #f59e0b;
            color: #451a03;
        }

        #lista-compartilhada-body {
            min-width: 0;
            max-width: 100%;
            box-sizing: border-box;
        }
        #lista-compartilhada-body .lc-section-card .lc-field,
        #lista-compartilhada-body .lc-section-card .lc-check--boxed {
            width: 100%;
            min-width: 0;
            max-width: 100%;
            box-sizing: border-box;
        }
        #lista-compartilhada-body .lc-member-row {
            min-width: 0;
            max-width: 100%;
            box-sizing: border-box;
        }
        #lista-compartilhada-body .lc-member-info {
            min-width: 0;
            overflow: hidden;
        }
        .lc-hub {
            display: flex;
            flex-direction: column;
            gap: 14px;
            min-width: 0;
            max-width: 100%;
        }
        .lc-hero {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 14px;
            border-radius: 12px;
            border: 1px solid rgba(37, 99, 235, 0.22);
            background: rgba(37, 99, 235, 0.08);
        }
        .lc-hero__icon {
            flex-shrink: 0;
            width: 36px;
            height: 36px;
            border-radius: 10px;
            background: rgba(37, 99, 235, 0.18);
            color: var(--accent);
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        .lc-hero__icon svg {
            width: 18px;
            height: 18px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
        }
        .lc-hero__text strong {
            display: block;
            font-size: 14px;
            color: var(--text);
            margin-bottom: 4px;
        }
        .lc-hero__text p {
            margin: 0;
            font-size: 12px;
            line-height: 1.45;
            color: var(--text-sub);
        }
        .lc-section-card {
            padding: 16px;
            border-radius: 14px;
            border: 1px solid var(--border);
            background: var(--card-bg, var(--surface2));
            min-width: 0;
            max-width: 100%;
            box-sizing: border-box;
            overflow: hidden;
        }
        .lc-section-card__content {
            display: flex;
            flex-direction: column;
            gap: 12px;
            min-width: 0;
            max-width: 100%;
        }
        .lc-section-card--groups .lc-group-create {
            display: flex;
            flex-direction: column;
            gap: 10px;
            min-width: 0;
        }
        .lc-section-card--groups .lc-field { margin-bottom: 0; width: 100%; min-width: 0; }
        .lc-section-card--groups .lc-create-group-btn {
            width: 100% !important;
            margin-top: 0 !important;
        }
        .lc-section-card--cta {
            border-color: rgba(37, 99, 235, 0.32);
            background: linear-gradient(180deg, rgba(37, 99, 235, 0.07) 0%, var(--card-bg, var(--surface2)) 72%);
        }
        .lc-section-head {
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 0 0 12px;
            font-size: 14px;
            font-weight: 700;
            color: var(--text);
            line-height: 1.3;
        }
        .lc-section-head__icon {
            flex-shrink: 0;
            display: inline-flex;
            color: var(--accent);
        }
        .lc-section-head__icon svg {
            width: 16px;
            height: 16px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
        }
        .lc-section-head__badge { margin-left: auto; }
        .lc-badge.lc-badge-alert {
            background: rgba(251, 191, 36, 0.18);
            color: #f59e0b;
            min-width: 22px;
            min-height: 22px;
            padding: 0 7px;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
        }
        .lc-card-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
            min-width: 0;
            max-width: 100%;
        }
        .lc-card-list .lc-empty-state {
            padding: 16px 12px;
            box-sizing: border-box;
        }
        .lc-empty-state {
            text-align: center;
            padding: 22px 14px;
            border-radius: 12px;
            border: 1px dashed var(--border);
            background: var(--surface);
        }
        .lc-empty-state__icon {
            display: inline-flex;
            width: 40px;
            height: 40px;
            border-radius: 10px;
            align-items: center;
            justify-content: center;
            margin-bottom: 10px;
            color: var(--text-sub);
            background: var(--surface2);
        }
        .lc-empty-state__icon svg {
            width: 20px;
            height: 20px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            opacity: 0.75;
        }
        .lc-empty-state__title {
            margin: 0 0 6px;
            font-size: 13px;
            font-weight: 600;
            color: var(--text);
            word-wrap: break-word;
        }
        .lc-empty-state__hint {
            margin: 0;
            font-size: 12px;
            line-height: 1.45;
            color: var(--text-sub);
            word-wrap: break-word;
            overflow-wrap: anywhere;
        }
        .lc-inline-form {
            display: flex;
            align-items: stretch;
            gap: 8px;
        }
        .lc-inline-form .lc-field { margin-bottom: 0; flex: 1; min-width: 0; }
        .lc-create-group-btn {
            display: inline-flex !important;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 12px 16px !important;
            white-space: nowrap;
        }
        .lc-create-group-btn svg {
            width: 16px;
            height: 16px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
        }
        .lc-lista-card {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 14px;
            border-radius: 12px;
            border: 1px solid var(--border);
            background: var(--surface);
            cursor: pointer;
            transition: border-color 0.2s, box-shadow 0.2s;
            -webkit-tap-highlight-color: transparent;
        }
        .lc-lista-card:hover,
        .lc-lista-card:focus-visible {
            border-color: var(--accent);
            box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
            outline: none;
        }
        .lc-lista-card__icon {
            flex-shrink: 0;
            width: 36px;
            height: 36px;
            border-radius: 10px;
            background: rgba(34, 197, 94, 0.12);
            color: #22c55e;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        .lc-lista-card__icon svg {
            width: 18px;
            height: 18px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
        }
        .lc-lista-card__body { flex: 1; min-width: 0; }
        .lc-lista-card__title {
            font-size: 14px;
            font-weight: 700;
            color: var(--text);
            line-height: 1.35;
        }
        .lc-lista-card__meta {
            margin-top: 3px;
            font-size: 12px;
            color: var(--text-sub);
            line-height: 1.4;
        }
        .lc-lista-card__chevron {
            flex-shrink: 0;
            color: var(--text-sub);
            opacity: 0.55;
            display: inline-flex;
        }
        .lc-lista-card__chevron svg {
            width: 18px;
            height: 18px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
        }
        .lc-convite-card {
            padding: 12px;
            border-radius: 12px;
            border: 1px solid rgba(251, 191, 36, 0.28);
            background: rgba(251, 191, 36, 0.06);
        }
        .lc-convite-card__body {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin-bottom: 10px;
        }
        .lc-convite-card__icon {
            flex-shrink: 0;
            width: 34px;
            height: 34px;
            border-radius: 9px;
            background: rgba(251, 191, 36, 0.16);
            color: #f59e0b;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        .lc-convite-card__icon svg {
            width: 17px;
            height: 17px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
        }
        .lc-convite-card__title {
            font-size: 14px;
            font-weight: 700;
            color: var(--text);
            line-height: 1.35;
        }
        .lc-convite-card__meta {
            margin-top: 3px;
            font-size: 12px;
            color: var(--text-sub);
            line-height: 1.4;
        }
        .lc-convite-card__actions {
            display: flex;
            gap: 8px;
        }
        .lc-convite-card__actions .panel-btn {
            flex: 1;
            margin-top: 0 !important;
            padding: 10px 12px !important;
            font-size: 13px;
        }
        .lc-title { font-size: 16px; margin: 0 0 6px; color: var(--text); }
        .lc-subtitle { font-size: 13px; margin: 0 0 10px; color: var(--text-sub); text-transform: uppercase; letter-spacing: 0.04em; }
        .lc-hint { font-size: 12px; color: var(--text-sub); margin: 0 0 8px; line-height: 1.45; }
        .lc-empty { font-size: 12px; color: var(--text-sub); }
        .lc-badge { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: var(--surface2); color: var(--text-sub); margin-left: 6px; }
        .lc-badge.lc-live { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
        .lc-badge.lc-badge-role {
            background: rgba(37, 99, 235, 0.18);
            color: #60a5fa;
            margin-left: 0;
            font-size: 10px;
            padding: 3px 8px;
            border-radius: 999px;
        }
        .lc-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; margin: 10px 0; color: var(--text-sub); }
        .lc-check--boxed {
            padding: 12px;
            border-radius: 10px;
            border: 1px solid var(--border);
            background: var(--surface);
        }
        .lc-check--boxed strong { display: block; color: var(--text); font-size: 13px; margin-bottom: 4px; }
        .lc-check--boxed small { display: block; font-size: 11px; line-height: 1.4; color: var(--text-sub); }
        .lc-check--boxed.lc-toggle-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }
        .lc-toggle-label { flex: 1; min-width: 0; }
        .lc-toggle {
            position: relative;
            width: 48px;
            height: 28px;
            border-radius: 999px;
            border: 1px solid var(--border);
            background: var(--surface-2, rgba(148, 163, 184, 0.15));
            cursor: pointer;
            padding: 0;
            flex-shrink: 0;
            transition: background 0.2s ease, border-color 0.2s ease;
        }
        .lc-toggle--on {
            background: var(--accent);
            border-color: var(--accent);
        }
        .lc-toggle-knob {
            position: absolute;
            top: 3px;
            left: 3px;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #fff;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
            transition: transform 0.2s ease;
        }
        .lc-toggle--on .lc-toggle-knob { transform: translateX(20px); }
        .lc-toggle-cb {
            position: absolute;
            width: 1px;
            height: 1px;
            opacity: 0;
            pointer-events: none;
        }
        .lc-subtitle--icon {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .lc-subtitle--icon svg {
            width: 16px;
            height: 16px;
            stroke: var(--accent);
            fill: none;
            stroke-width: 2;
            flex-shrink: 0;
        }
        .lc-field {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 0 12px;
            min-height: 44px;
            border-radius: 10px;
            border: 1px solid var(--border);
            background: var(--surface);
            margin-bottom: 10px;
        }
        .lc-field--compact { margin-bottom: 8px; }
        .lc-field--grow { flex: 1; min-width: 0; }
        .lc-field__icon {
            flex-shrink: 0;
            display: inline-flex;
            color: var(--text-sub);
        }
        .lc-field__icon svg {
            width: 18px;
            height: 18px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
        }
        .lc-field__control {
            flex: 1;
            min-width: 0;
            border: 0;
            background: transparent;
            color: var(--text);
            font-size: 14px;
            font-family: inherit;
            padding: 10px 0;
            outline: none;
        }
        .lc-field__control::placeholder { color: var(--text-sub); opacity: 0.75; }
        .lc-member-form {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-top: 14px;
            padding-top: 14px;
            border-top: 1px solid var(--border);
            min-width: 0;
            max-width: 100%;
        }
        .lc-member-form .lc-field { width: 100%; min-width: 0; box-sizing: border-box; }
        .lc-role-hint {
            display: flex;
            gap: 10px;
            align-items: flex-start;
            padding: 12px;
            border-radius: 10px;
            border: 1px solid rgba(37, 99, 235, 0.25);
            background: rgba(37, 99, 235, 0.08);
            margin-top: 4px;
            min-width: 0;
            max-width: 100%;
            box-sizing: border-box;
        }
        .lc-member-form__label {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--text-sub);
            margin: 0 0 2px;
        }
        .lc-member-form__label svg {
            width: 14px;
            height: 14px;
            stroke: var(--accent);
            fill: none;
            stroke-width: 2;
        }
        .lc-member-form__actions { display: flex; gap: 8px; }
        .lc-invite-btn,
        .lc-share-btn {
            display: inline-flex !important;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100% !important;
            margin-top: 4px !important;
            padding: 12px 16px !important;
        }
        .lc-invite-btn svg,
        .lc-share-btn svg,
        .lc-grupo-delete svg {
            width: 18px;
            height: 18px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            flex-shrink: 0;
        }
        .lc-role-hint__icon {
            flex-shrink: 0;
            color: var(--accent);
            display: inline-flex;
            margin-top: 1px;
        }
        .lc-role-hint__icon svg {
            width: 18px;
            height: 18px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
        }
        .lc-role-hint__text {
            display: flex;
            flex-direction: column;
            gap: 4px;
            font-size: 12px;
            line-height: 1.45;
            color: var(--text-sub);
            min-width: 0;
            overflow-wrap: anywhere;
        }
        .lc-role-hint__text strong {
            color: var(--text);
            font-size: 12px;
        }
        .lc-member-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
        .lc-member-row {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            border-radius: 12px;
            background: var(--surface);
            border: 1px solid var(--border);
            min-height: 0;
        }
        .lc-member-avatar {
            flex-shrink: 0;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, #2563eb, #1d4ed8);
            color: #fff;
            font-size: 13px;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            letter-spacing: 0.02em;
        }
        .lc-member-info { flex: 1; min-width: 0; }
        .lc-member-name-row {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 6px;
        }
        .lc-member-name { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.3; }
        .lc-member-email {
            font-size: 12px;
            color: var(--text-sub);
            margin-top: 3px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .lc-member-chevron {
            flex-shrink: 0;
            color: var(--text-sub);
            opacity: 0.55;
            display: inline-flex;
        }
        .lc-member-chevron svg {
            width: 18px;
            height: 18px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
        }
        .lc-badge.lc-badge-pending {
            background: rgba(251, 191, 36, 0.15);
            color: #fbbf24;
            margin-left: 0;
        }
        .lc-member-remove {
            flex-shrink: 0;
            width: 36px;
            height: 36px;
            margin: 0;
            padding: 0;
            border: 1px solid rgba(239, 68, 68, 0.35);
            border-radius: 8px;
            background: transparent;
            color: var(--danger);
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            -webkit-tap-highlight-color: transparent;
        }
        .lc-member-remove svg {
            width: 16px;
            height: 16px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }
        .lc-member-remove:hover { opacity: 0.88; }
        .lc-grupo-actions {
            display: flex;
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid var(--border);
        }
        .lc-grupo-delete {
            width: 100% !important;
            margin-top: 0 !important;
            padding: 12px 14px !important;
            font-size: 13px;
            color: var(--danger) !important;
            border-color: rgba(239, 68, 68, 0.35) !important;
            background: transparent !important;
            display: inline-flex !important;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        .lc-grupo-delete:hover { background: rgba(239, 68, 68, 0.08) !important; }
        .lc-grupo-card {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 0;
            margin-bottom: 0;
            padding: 16px;
            width: 100%;
            min-width: 0;
            max-width: 100%;
            box-sizing: border-box;
            overflow: hidden;
            background: var(--card-inner, var(--surface2));
            border: 1px solid var(--border);
            border-radius: 14px;
            outline: none;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .lc-grupo-card--focus,
        .lc-grupo-card:focus-visible {
            border-color: rgba(37, 99, 235, 0.45);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
        }
        .lc-grupo-card__header { margin-bottom: 0; min-width: 0; }
        .lc-grupo-card__title-row {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            min-width: 0;
        }
        .lc-grupo-card__icon {
            flex-shrink: 0;
            width: 40px;
            height: 40px;
            border-radius: 10px;
            background: rgba(37, 99, 235, 0.15);
            color: var(--accent);
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        .lc-grupo-card__icon svg {
            width: 20px;
            height: 20px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
        }
        .lc-grupo-card__title-text { flex: 1; min-width: 0; overflow: hidden; }
        .lc-grupo-card__name-row {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
            min-width: 0;
        }
        .lc-grupo-card__name {
            margin: 0;
            font-size: 16px;
            font-weight: 700;
            color: var(--text);
            line-height: 1.3;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .lc-grupo-card__meta {
            margin: 4px 0 0;
            font-size: 12px;
            color: var(--text-sub);
            line-height: 1.35;
        }
        .lc-share-section { margin-top: 8px; }
        .lc-lista-item { cursor: pointer; }
        .lc-lista-item:hover { border-color: var(--accent); }
        .lc-itens { margin-top: 12px; }
        .lc-comprado { opacity: 0.55; }
        .lc-comprado .product-name { text-decoration: line-through; }
        .lc-add-row { display: flex; gap: 8px; margin-bottom: 12px; }
        .lc-add-row input { flex: 1; padding: 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface2); color: var(--text); }
        .lc-convite { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
        .lc-convite-actions { display: flex; gap: 6px; flex-shrink: 0; }

        .lc-main-banner {
            display: none;
            padding: 8px 10px;
            border-radius: 10px;
            background: rgba(34, 197, 94, 0.1);
            border: 1px solid rgba(34, 197, 94, 0.35);
        }

        .lc-main-banner.show { display: block; }

        .lc-main-banner-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }

        .lc-main-banner-info {
            flex: 1;
            min-width: 0;
        }

        .lc-main-banner-head {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 4px;
        }

        .lc-banner-actions {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 4px;
            flex-shrink: 0;
        }

        .lc-close-share-btn {
            border: 1px solid rgba(34, 197, 94, 0.45);
            background: rgba(34, 197, 94, 0.15);
            color: #4ade80;
            font-size: 10px;
            font-weight: 700;
            font-family: 'Inter', sans-serif;
            padding: 5px 8px;
            border-radius: 6px;
            cursor: pointer;
            white-space: nowrap;
            line-height: 1.2;
        }

        .lc-close-share-btn:hover {
            background: rgba(34, 197, 94, 0.25);
        }

        .lc-badge.lc-closed {
            background: rgba(148, 163, 184, 0.2);
            color: #94a3b8;
        }

        .lc-fechar-actions {
            flex-direction: column;
            align-items: stretch;
            gap: 8px;
        }

        .lc-fechar-actions .confirm-primary,
        .lc-fechar-actions .confirm-cancel {
            width: 100%;
        }

        .lc-main-banner-title {
            font-size: 13px;
            font-weight: 700;
            color: var(--text);
            line-height: 1.2;
        }

        .lc-main-banner-meta {
            font-size: 11px;
            color: var(--text-sub);
            line-height: 1.25;
            margin-top: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .lc-back-btn {
            padding: 5px 8px;
            border-radius: 6px;
            border: 1px solid var(--border);
            background: var(--surface2);
            color: var(--text);
            font-size: 11px;
            font-weight: 600;
            cursor: pointer;
            white-space: nowrap;
            line-height: 1.2;
        }

        .lc-back-btn:hover { border-color: var(--accent); }

        .product-thumb {
            width: 56px;
            height: 56px;
            border-radius: 12px;
            object-fit: cover;
            border: 1px solid rgba(255,255,255,0.08);
            background: rgba(0,0,0,0.3);
            flex-shrink: 0;
            align-self: center;
            cursor: pointer;
            transition: transform 0.15s;
        }

        .product-thumb:hover,
        .product-thumb-placeholder:hover { transform: scale(1.03); }

        .product-thumb-placeholder {
            width: 56px;
            height: 56px;
            border-radius: 12px;
            border: 1px solid rgba(255,255,255,0.08);
            background: rgba(0,0,0,0.25);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            align-self: center;
            font-size: 24px;
            line-height: 1;
            text-align: center;
            cursor: pointer;
        }

        .product-center {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .product-name-row {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
        }

        .product-name {
            font-size: 16px;
            font-weight: 700;
            color: var(--text);
            line-height: 1.2;
        }

        .incomplete-badge {
            display: inline-block;
            background: #1e293b;
            color: #fbbf24;
            padding: 2px 10px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 600;
            border: 1px solid rgba(245, 158, 11, 0.45);
        }

        [data-theme="dark"] .incomplete-badge {
            background: rgba(245, 158, 11, 0.15);
            color: #f59e0b;
            border: 1px solid rgba(245, 158, 11, 0.35);
        }

        .product-category-badge {
            display: inline-block;
            background: rgba(37, 99, 235, 0.1);
            color: var(--accent, #2563eb);
            padding: 2px 10px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 600;
            border: 1px solid rgba(37, 99, 235, 0.22);
        }

        [data-theme="dark"] .product-category-badge {
            background: rgba(37, 99, 235, 0.15);
            color: #60a5fa;
            border: 1px solid rgba(37, 99, 235, 0.3);
        }

        .product-details {
            font-size: 12px;
            color: var(--text-sub);
            line-height: 1.4;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .product-meta {
            font-size: 10px;
            color: var(--text-sub);
            opacity: 0.75;
            line-height: 1.3;
        }

        .product-right {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            justify-content: space-between;
            flex-shrink: 0;
            min-width: 0;
            max-width: 112px;
        }

        .product-total-wrap {
            text-align: right;
            max-width: 100%;
            min-width: 0;
            overflow: hidden;
        }

        .product-amount {
            font-size: 17px;
            font-weight: 700;
            color: var(--neon-blue, #4dabf7);
            text-shadow: var(--neon-glow, 0 0 14px rgba(77, 171, 247, 0.55));
            line-height: 1.1;
            display: block;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            max-width: 100%;
        }

        .product-amount.muted {
            color: var(--text-sub);
            text-shadow: none;
            font-weight: 500;
        }

        .product-amount-label {
            font-size: 10px;
            color: var(--text-sub);
            margin-top: 2px;
        }

        .product-actions {
            display: flex;
        }

        .product-actions--locked {
            position: relative;
        }

        .product-actions--locked .product-icon-btn {
            pointer-events: none;
            opacity: 0.45;
        }

        .product-actions-lock {
            position: absolute;
            inset: 0;
            margin: 0;
            padding: 0;
            border: none;
            background: rgba(15, 23, 42, 0.18);
            border-radius: 21px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 2;
            color: #eab308;
            -webkit-tap-highlight-color: transparent;
        }

        [data-theme="dark"] .product-actions-lock {
            background: rgba(7, 11, 20, 0.4);
        }

        .product-actions-lock svg {
            width: 23px;
            height: 23px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2.2;
            stroke-linecap: round;
            stroke-linejoin: round;
            filter: drop-shadow(0 0 5px rgba(234, 179, 8, 0.45));
        }

        .product-icon-btn {
            width: 39px;
            height: 39px;
            border-radius: 50%;
            border: 1.5px solid;
            background: transparent;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
            -webkit-tap-highlight-color: transparent;
        }

        .product-icon-btn svg {
            width: 17px;
            height: 17px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .product-icon-btn:hover { transform: scale(1.06); opacity: 0.9; }
        .product-icon-btn:active { transform: scale(0.96); }

        .edit-btn {
            border-color: rgba(59, 130, 246, 0.65);
            color: #3b9eff;
            box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
        }

        .delete-btn {
            border-color: rgba(239, 68, 68, 0.65);
            color: #ef4444;
            box-shadow: 0 0 10px rgba(239, 68, 68, 0.15);
        }

        .lc-check-btn {
            border-color: rgba(234, 179, 8, 0.65);
            color: #eab308;
            box-shadow: 0 0 10px rgba(234, 179, 8, 0.2);
        }

        .lc-undo-btn {
            border-color: rgba(34, 197, 94, 0.65);
            color: #22c55e;
            box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
        }

        .photo-preview-wrap {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            margin-bottom: 8px;
        }

        .photo-preview-box {
            width: 120px;
            height: 120px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .photo-preview {
            width: 120px;
            height: 120px;
            border-radius: 12px;
            object-fit: cover;
            border: 1px solid var(--border);
            background: var(--surface2);
            display: none;
        }

        .photo-preview.show { display: block; }

        .photo-preview-placeholder {
            width: 120px;
            height: 120px;
            border-radius: 12px;
            border: 1.5px dashed var(--border);
            background: var(--surface2);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 36px;
            color: var(--text-sub);
            cursor: pointer;
        }

        .photo-preview-placeholder.hidden { display: none; }

        .photo-upload-btn {
            padding: 10px 16px;
            border: 1.5px dashed var(--border);
            border-radius: 10px;
            background: var(--surface2);
            color: var(--text-sub);
            font-size: 13px;
            font-family: inherit;
            cursor: pointer;
            text-align: center;
            width: auto;
            min-width: 160px;
        }

        .form-row-2 {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        @media (max-width: 480px) {
            .form-row-2 { grid-template-columns: 1fr; }
            .form-row-2.form-row-category-unit,
            .form-row-2.form-row-price-qty { grid-template-columns: 1fr 1fr; gap: 8px; }
            .form-row-category-unit select { font-size: 13px; padding: 10px 8px; }
        }

        .input-with-btn {
            display: flex;
            gap: 8px;
            align-items: stretch;
        }

        .input-with-btn input { flex: 1; }

        .scan-btn {
            flex-shrink: 0;
            background: var(--surface2);
            color: var(--accent);
            border: 1.5px solid var(--border);
        }

        .photo-viewer-overlay,
        .scanner-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.88);
            z-index: 2000;
            display: none;
            align-items: center;
            justify-content: center;
        }

        .photo-viewer-overlay.show,
        .scanner-overlay.show { display: flex; }

        .photo-viewer-box {
            width: min(520px, 100%);
            background: var(--surface);
            border-radius: 16px;
            padding: 16px;
            border: 1px solid var(--border);
        }

        .photo-viewer-box img {
            width: 100%;
            max-height: calc(60dvh - var(--app-safe-top) - var(--app-safe-bottom));
            object-fit: contain;
            border-radius: 12px;
            background: #111;
        }

        .photo-viewer-title {
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 12px;
            color: var(--text);
        }

        .photo-viewer-actions {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 14px;
            flex-wrap: wrap;
        }

        .icon-btn {
            width: 44px;
            height: 44px;
            border: none;
            border-radius: 12px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.15s, opacity 0.15s;
            -webkit-tap-highlight-color: transparent;
        }

        .icon-btn svg {
            width: 20px;
            height: 20px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .icon-btn:hover { opacity: 0.88; transform: translateY(-1px); }
        .icon-btn:active { transform: translateY(0); }

        .pv-edit { background: var(--accent); color: #fff; }
        .pv-scan { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
        .pv-delete { background: rgba(239,68,68,0.15); color: #ef4444; }
        .pv-product { background: rgba(37, 99, 235, 0.12); color: var(--accent); border: 1px solid rgba(37,99,235,0.2); }
        .pv-close {
            width: 100%;
            margin-top: 8px;
            padding: 10px;
            background: transparent;
            border: 1px solid var(--border);
            border-radius: 10px;
            color: var(--text-sub);
            cursor: pointer;
        }

        .scanner-box {
            width: min(480px, 100%);
            background: var(--surface);
            border-radius: 16px;
            padding: 16px;
        }

        #barcode-reader {
            width: 100%;
            min-height: 280px;
            border-radius: 12px;
            overflow: hidden;
            background: #111;
        }

        .scanner-actions {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-top: 10px;
        }

        .scanner-hint {
            font-size: 13px;
            color: var(--text-sub);
            margin: 10px 0;
            text-align: center;
        }

        .action-btn {
            display: none;
        }

        .action-btn:hover { opacity: 0.85; transform: translateY(-1px); }
        .action-btn:active { transform: translateY(0); }

        /* ===== TOTAL BAR ===== */
        .total-bar {
            position: fixed;
            background: var(--card-bg, rgba(12, 20, 36, 0.95));
            border: 1px solid rgba(59, 130, 246, 0.38);
            border-radius: 18px;
            padding: 14px 18px;
            display: none;
            z-index: 90;
            box-shadow: 0 0 32px rgba(37, 99, 235, 0.18), inset 0 1px 0 rgba(255,255,255,0.04);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }

        .total-bar-inner {
            display: flex;
            align-items: center;
            gap: 14px;
            min-width: 0;
        }

        .total-bar-icon {
            width: 44px;
            height: 44px;
            border-radius: 12px;
            background: rgba(37, 99, 235, 0.2);
            border: 1px solid rgba(59, 130, 246, 0.4);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            color: var(--accent, #3b9eff);
            box-shadow: 0 0 14px rgba(59, 130, 246, 0.3);
        }

        .total-bar-icon svg {
            width: 22px;
            height: 22px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .total-bar-info {
            flex: 1;
            min-width: 0;
        }

        .total-bar-info strong {
            display: block;
            font-size: 16px;
            font-weight: 700;
            color: var(--text);
            line-height: 1.2;
        }

        .total-bar-info span {
            font-size: 12px;
            color: var(--text-sub);
            margin-top: 2px;
            display: block;
        }

        .total-bar-divider {
            width: 1px;
            height: 40px;
            background: rgba(255, 255, 255, 0.12);
            flex-shrink: 0;
        }

        .total-amount {
            font-size: 28px;
            font-weight: 800;
            color: var(--neon-blue, #4dabf7);
            text-shadow: var(--neon-glow, 0 0 16px rgba(77, 171, 247, 0.6));
            flex: 1 1 auto;
            min-width: 0;
            max-width: 46%;
            letter-spacing: -0.5px;
            line-height: 1;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            text-align: right;
        }

        .total-bar-footer {
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid rgba(255,255,255,0.08);
        }

        .btn-fechar-compra {
            width: 100%;
            padding: 12px 16px;
            border: none;
            border-radius: 12px;
            background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
            color: #fff;
            font-size: 14px;
            font-weight: 700;
            font-family: 'Inter', sans-serif;
            cursor: pointer;
            box-shadow: 0 0 20px var(--accent-glow);
            transition: transform 0.15s, opacity 0.15s;
        }

        .btn-fechar-compra:hover { opacity: 0.92; transform: translateY(-1px); }
        .btn-fechar-compra:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

        /* ===== TOP ACTIONS ===== */
        .top-actions {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .top-action-btn {
            flex: 1;
            min-width: 0;
            padding: 8px 4px;
            border: 1px solid rgba(59, 130, 246, 0.28);
            border-radius: 12px;
            background: var(--card-bg, rgba(12, 20, 36, 0.75));
            color: var(--text);
            font-size: 11px;
            font-weight: 600;
            font-family: 'Inter', sans-serif;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            transition: border-color 0.2s, box-shadow 0.2s;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        .top-action-btn:hover {
            border-color: rgba(59, 130, 246, 0.5);
            box-shadow: 0 0 12px rgba(37, 99, 235, 0.12);
        }

        .top-action-btn svg {
            width: 18px;
            height: 18px;
            stroke: var(--accent, #2563eb);
            color: var(--accent, #2563eb);
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
            flex-shrink: 0;
            display: block;
        }

        .top-action-btn span {
            display: block;
            width: 100%;
            max-width: 100%;
            text-align: center;
            line-height: 1.15;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            padding: 0 2px;
            box-sizing: border-box;
            color: var(--accent, #2563eb);
        }

        [data-theme="dark"] .top-action-btn {
            color: #ffffff;
        }

        [data-theme="dark"] .top-action-btn svg {
            stroke: #ffffff;
            color: #ffffff;
        }

        [data-theme="dark"] .top-action-btn span {
            color: #ffffff;
        }

        .fav-star {
            background: none;
            border: none;
            cursor: pointer;
            font-size: 36px;
            line-height: 1;
            padding: 0 4px;
            min-width: 48px;
            min-height: 48px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            color: var(--text-sub);
            opacity: 0.45;
            transition: opacity 0.15s, transform 0.15s, color 0.15s;
        }

        .fav-star.active {
            opacity: 1;
            color: #fbbf24;
            text-shadow: 0 0 8px rgba(251, 191, 36, 0.55);
        }

        .fav-star:hover { transform: scale(1.1); }

        /* ===== PANELS ===== */
        .panel-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.75);
            z-index: 1500;
            display: none;
            align-items: flex-end;
            justify-content: center;
        }

        .panel-overlay.open { display: flex; }

        html.overlay-open body {
            overflow: hidden;
            overscroll-behavior: none;
        }

        html.overlay-open .main-content {
            overflow: hidden;
            overscroll-behavior: none;
            touch-action: none;
        }

        html.overlay-open .panel-overlay.open .panel-body:not(#receitas-body),
        html.overlay-open .panel-overlay.open .locais-saved-scroll,
        html.overlay-open .modal-overlay.open .modal-sheet form {
            touch-action: pan-y;
        }

        html.overlay-open #panel-receitas.open .panel-body,
        html.overlay-open #panel-receitas.open #receitas-body,
        html.overlay-open #panel-remedios.open .panel-body,
        html.overlay-open #panel-remedios.open #remedios-body {
            touch-action: pan-y;
            overflow-x: hidden;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            overscroll-behavior: contain;
        }

        .panel-overlay.panel-overlay--fullscreen.open {
            overflow: hidden;
            overscroll-behavior: none;
        }

        .panel-overlay.panel-overlay--fullscreen .panel-sheet {
            overflow-x: hidden;
            max-width: 100%;
        }

        .panel-sheet {
            width: 100%;
            max-width: 100%;
            max-height: calc(100dvh - var(--app-safe-top) - var(--app-safe-bottom));
            background: var(--surface);
            border-radius: 20px 20px 0 0;
            border: 1px solid var(--border);
            display: flex;
            flex-direction: column;
            min-height: 0;
            overflow: hidden;
            animation: slideUp 0.3s ease;
        }

        html.capacitor-native.capacitor-status-no-overlay .panel-sheet {
            max-height: calc(100dvh - var(--app-safe-bottom));
        }

        @keyframes slideUp {
            from { transform: translateY(100%); }
            to { transform: translateY(0); }
        }

        .panel-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid var(--border);
            flex-shrink: 0;
            position: sticky;
            top: 0;
            z-index: 2;
            background: var(--surface);
        }

        .panel-header h2 {
            font-size: 17px;
            font-weight: 700;
            color: var(--text);
        }

        .panel-header:has(.panel-back) {
            justify-content: flex-start;
            gap: 10px;
        }

        .panel-header:has(.panel-back) .panel-back {
            order: -1;
            flex-shrink: 0;
        }

        .panel-header:has(.panel-back) h2 {
            flex: 1;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .panel-close {
            background: var(--surface2);
            border: none;
            width: 32px;
            height: 32px;
            border-radius: 8px;
            cursor: pointer;
            color: var(--text-sub);
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .panel-close svg,
        .install-btn-no svg {
            width: 16px;
            height: 16px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .panel-close:hover,
        .modal-close:hover {
            background: var(--border);
            color: var(--text);
        }

        .modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: var(--app-section-gap, 2px);
            flex-shrink: 0;
        }

        .modal-header .modal-title {
            flex: 1;
            min-width: 0;
            margin-bottom: 0;
        }

        .panel-body {
            overflow-y: auto;
            flex: 1;
        }

        .panel-body:has(#locais-compra-body.locais-saved-mode) {
            overflow: hidden;
            display: flex;
            flex-direction: column;
            min-height: 0;
        }

        .panel-filters {
            display: flex;
            gap: 8px;
            margin-bottom: 12px;
            flex-wrap: wrap;
        }

        .panel-filters select, .panel-filters input {
            flex: 1;
            min-width: 80px;
            padding: 8px 10px;
            border-radius: 8px;
            border: 1px solid var(--border);
            background: var(--surface2);
            color: var(--text);
            font-family: 'Inter', sans-serif;
            font-size: 13px;
        }

        .hist-item, .fav-item, .share-item {
            background: var(--card-inner, var(--surface2));
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 12px 14px;
            margin-bottom: 8px;
            transition: border-color 0.2s;
        }

        .hist-item {
            display: flex;
            align-items: stretch;
            gap: 10px;
            cursor: default;
        }

        .hist-item-main {
            flex: 1;
            min-width: 0;
            cursor: pointer;
        }

        .hist-item-main:hover + .hist-item-delete,
        .hist-item:hover { border-color: var(--accent); }

        .hist-item-delete {
            flex-shrink: 0;
            align-self: center;
            width: 40px;
            height: 40px;
            border: 1px solid rgba(239, 68, 68, 0.35);
            border-radius: 10px;
            background: rgba(239, 68, 68, 0.1);
            color: #ef4444;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s, transform 0.15s;
            -webkit-tap-highlight-color: transparent;
        }

        .hist-item-delete svg {
            width: 18px;
            height: 18px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .hist-item-delete:hover {
            background: rgba(239, 68, 68, 0.18);
            transform: translateY(-1px);
        }

        .hist-item:hover, .fav-item:hover { border-color: var(--accent); }

        .fav-item {
            display: flex;
            align-items: stretch;
            gap: 10px;
        }

        .fav-item-main {
            flex: 1;
            min-width: 0;
        }

        .fav-item-actions {
            flex-shrink: 0;
            align-self: center;
            gap: 6px;
        }

        .fav-edit-overlay .confirm-dialog {
            text-align: left;
            max-width: 360px;
        }

        .fav-edit-overlay .form-group {
            margin-bottom: 12px;
        }

        .fav-edit-overlay label {
            display: block;
            font-size: 12px;
            font-weight: 600;
            color: var(--text-sub);
            margin-bottom: 6px;
        }

        .fav-edit-overlay input,
        .fav-edit-overlay select {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid var(--border);
            border-radius: 10px;
            background: var(--surface2);
            color: var(--text);
            font-family: 'Inter', sans-serif;
            font-size: 14px;
        }

        .hist-item-title { font-weight: 700; font-size: 14px; }
        .hist-item-meta {
            font-size: 12px;
            color: var(--text-sub);
            margin-top: 4px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .hist-item-local { font-size: 12px; color: var(--accent); margin-top: 6px; font-weight: 600; }
        .hist-item-local.muted { color: var(--text-sub); font-weight: 500; }
        .hist-item-online {
            font-size: 12px;
            color: #2563eb;
            margin-top: 6px;
            font-weight: 600;
        }
        .hist-item-title .lc-badge {
            margin-left: 6px;
            vertical-align: middle;
        }
        .hist-item-total {
            font-size: 16px;
            font-weight: 700;
            color: var(--neon-blue, var(--accent));
            margin-top: 6px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            max-width: 100%;
        }

        #listas-padrao-panel-body {
            min-width: 0;
            max-width: 100%;
            box-sizing: border-box;
        }
        .dl-hub {
            display: flex;
            flex-direction: column;
            gap: 14px;
            min-width: 0;
            max-width: 100%;
        }
        .dl-hero {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 14px;
            border-radius: 12px;
            border: 1px solid rgba(37, 99, 235, 0.22);
            background: rgba(37, 99, 235, 0.08);
        }
        .dl-hero__icon {
            flex-shrink: 0;
            width: 36px;
            height: 36px;
            border-radius: 10px;
            background: rgba(37, 99, 235, 0.18);
            color: var(--accent);
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        .dl-hero__icon svg {
            width: 18px;
            height: 18px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
        }
        .dl-hero__text p {
            margin: 0;
            font-size: 12px;
            line-height: 1.45;
            color: var(--text-sub);
        }
        .dl-loading,
        .dl-empty,
        .dl-error {
            text-align: center;
            padding: 22px 14px;
            border-radius: 12px;
            border: 1px dashed var(--border);
            background: var(--surface);
            font-size: 13px;
            color: var(--text-sub);
            line-height: 1.45;
        }
        .dl-error {
            color: var(--danger);
            border-color: rgba(239, 68, 68, 0.28);
            background: rgba(239, 68, 68, 0.06);
        }
        .dl-card-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
            min-width: 0;
            max-width: 100%;
        }

        .default-list-card {
            border: 1px solid var(--border);
            border-radius: 14px;
            padding: 14px;
            background: var(--card-bg, var(--surface2));
            display: flex;
            flex-direction: column;
            gap: 12px;
            min-width: 0;
            max-width: 100%;
            box-sizing: border-box;
            overflow: hidden;
        }

        .default-list-card__header {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            min-width: 0;
        }

        .default-list-card__icon {
            flex-shrink: 0;
            width: 42px;
            height: 42px;
            border-radius: 11px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .default-list-card__icon svg {
            width: 20px;
            height: 20px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
        }

        .default-list-card__info {
            flex: 1;
            min-width: 0;
            overflow: hidden;
        }

        .default-list-card h3 {
            font-size: 15px;
            font-weight: 700;
            margin: 0 0 4px;
            color: var(--text);
            line-height: 1.3;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .default-list-card p {
            font-size: 12px;
            color: var(--text-sub);
            margin: 0 0 8px;
            line-height: 1.4;
        }

        .default-list-meta {
            display: inline-flex;
            align-items: center;
            font-size: 11px;
            font-weight: 700;
            color: var(--accent);
            background: rgba(37, 99, 235, 0.12);
            border-radius: 999px;
            padding: 3px 9px;
            line-height: 1.3;
        }

        .default-list-card__actions {
            display: flex;
            gap: 8px;
            min-width: 0;
        }

        .default-list-card__actions .panel-btn {
            flex: 1;
            margin-top: 0 !important;
            padding: 10px 12px !important;
            font-size: 13px;
            display: inline-flex !important;
            align-items: center;
            justify-content: center;
            gap: 6px;
            min-width: 0;
        }

        .default-list-card__actions .panel-btn svg {
            width: 16px;
            height: 16px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            flex-shrink: 0;
        }

        .default-list-card__actions .panel-btn.is-open {
            border-color: rgba(37, 99, 235, 0.35);
            color: var(--accent);
        }

        .default-list-items {
            max-height: 200px;
            overflow-y: auto;
            font-size: 12px;
            color: var(--text-sub);
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 10px;
            background: var(--surface);
            display: none;
            min-width: 0;
            box-sizing: border-box;
        }

        .default-list-items.open { display: block; }

        .default-list-items__loading {
            font-size: 12px;
            color: var(--text-sub);
            text-align: center;
            padding: 6px 0;
        }

        .default-list-item-chip {
            display: inline-block;
            background: var(--surface2);
            border: 1px solid var(--border);
            border-radius: 999px;
            padding: 4px 10px;
            margin: 0 4px 6px 0;
            font-size: 11px;
            line-height: 1.35;
            color: var(--text);
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            vertical-align: top;
        }

        @media (max-width: 380px) {
            .default-list-card__actions {
                flex-direction: column;
            }
        }

        /* Receitas da Vovó */
        #receitas-body {
            min-width: 0;
            max-width: 100%;
            box-sizing: border-box;
        }
        .rx-view {
            display: flex;
            flex-direction: column;
            gap: 14px;
            min-width: 0;
            max-width: 100%;
        }
        .rx-hero {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 14px;
            border-radius: 12px;
            border: 1px solid rgba(37, 99, 235, 0.22);
            background: rgba(37, 99, 235, 0.08);
        }
        .rx-hero__icon {
            flex-shrink: 0;
            width: 36px;
            height: 36px;
            border-radius: 10px;
            background: rgba(37, 99, 235, 0.18);
            color: var(--accent);
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        .rx-hero__icon .receitas-action-icon {
            width: 18px;
            height: 18px;
        }
        .rx-hero__text p {
            margin: 0;
            font-size: 12px;
            line-height: 1.45;
            color: var(--text-sub);
        }
        .rx-section-card {
            padding: 16px;
            border-radius: 14px;
            border: 1px solid var(--border);
            background: var(--card-bg, var(--surface2));
            min-width: 0;
            max-width: 100%;
            box-sizing: border-box;
            overflow: hidden;
        }
        .rx-section-card--cta {
            border-color: rgba(37, 99, 235, 0.32);
            background: linear-gradient(180deg, rgba(37, 99, 235, 0.07) 0%, var(--card-bg, var(--surface2)) 72%);
        }
        .rx-section-head {
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 0 0 12px;
            font-size: 14px;
            font-weight: 700;
            color: var(--text);
            line-height: 1.3;
        }
        .rx-section-head--plain { font-size: 14px; }
        .rx-section-head__icon {
            flex-shrink: 0;
            display: inline-flex;
            color: var(--accent);
        }
        .rx-section-head__icon .receitas-action-icon {
            width: 16px;
            height: 16px;
        }
        .rx-section-head__badge {
            margin-left: auto;
            font-size: 11px;
            font-weight: 700;
            color: var(--accent);
            background: rgba(37, 99, 235, 0.12);
            border-radius: 999px;
            padding: 3px 9px;
            line-height: 1.3;
            white-space: nowrap;
        }
        .rx-field {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 0 12px;
            min-height: 44px;
            border-radius: 10px;
            border: 1px solid var(--border);
            background: var(--surface);
            margin-bottom: 10px;
            min-width: 0;
            box-sizing: border-box;
        }
        .rx-field__icon {
            flex-shrink: 0;
            display: inline-flex;
            color: var(--text-sub);
        }
        .rx-field__icon .receitas-action-icon {
            width: 18px;
            height: 18px;
        }
        .rx-field__control {
            flex: 1;
            min-width: 0;
            border: 0;
            background: transparent;
            color: var(--text);
            font-size: 14px;
            font-family: inherit;
            padding: 10px 0;
            outline: none;
        }
        .rx-field__control::placeholder { color: var(--text-sub); opacity: 0.75; }
        .receitas-subtitle { font-size: 13px; color: var(--text-sub); margin-bottom: 14px; line-height: 1.45; }
        .receitas-hub-stats {
            font-size: 12px; font-weight: 600; color: var(--text-sub);
            padding: 10px 12px; border-radius: 10px;
            background: rgba(37, 99, 235, 0.08); border: 1px solid rgba(59, 130, 246, 0.18);
            margin: 0; line-height: 1.4;
        }
        .receitas-hub-stats--empty { font-weight: 500; }
        .receitas-hub-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 0; }
        .receitas-hub-item {
            display: flex; align-items: center; gap: 12px; width: 100%;
            padding: 14px; border-radius: 14px; text-align: left; cursor: pointer;
            border: 1px solid rgba(59, 130, 246, 0.22);
            background: var(--card-bg, var(--surface2)); color: var(--text);
            transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.12s ease;
        }
        .receitas-hub-item:active { transform: scale(0.98); }
        @media (prefers-reduced-motion: reduce) {
            .receitas-hub-item:active { transform: none; }
        }
        .receitas-hub-item:hover,
        .receitas-hub-item:focus-visible {
            border-color: rgba(59, 130, 246, 0.45);
            background: var(--card-inner, var(--surface));
            box-shadow: 0 0 14px rgba(37, 99, 235, 0.1);
            outline: none;
        }
        .receitas-hub-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
        .receitas-hub-text strong { display: block; font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.3; }
        .receitas-hub-text span { font-size: 12px; color: var(--text-sub); line-height: 1.35; }
        .receitas-hub-section-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-sub); margin: 0 0 8px; }
        .receitas-hub-recent { margin-bottom: 16px; }
        .receitas-hub-recent-list { display: flex; flex-direction: column; gap: 6px; }
        .receitas-hub-recent-item {
            display: flex; align-items: center; gap: 8px; width: 100%;
            padding: 10px 12px; border-radius: 10px; text-align: left; cursor: pointer;
            border: 1px solid var(--border); background: var(--surface);
            color: var(--text); font-size: 13px;
            transition: border-color 0.15s, background 0.15s;
        }
        .receitas-hub-recent-item:hover,
        .receitas-hub-recent-item:focus-visible {
            border-color: rgba(59, 130, 246, 0.35);
            background: var(--surface2);
            outline: none;
        }
        .receitas-hub-recent-name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .receitas-hub-recent-meta { font-size: 11px; color: var(--text-sub); flex-shrink: 0; }
        .receitas-hub-cta {
            width: 100%; margin-top: 4px; min-height: 48px;
            display: inline-flex; align-items: center; justify-content: center; gap: 8px;
            font-size: 15px; font-weight: 600;
        }
        .receitas-hub-cta .receitas-action-icon { width: 18px; height: 18px; }
        #panel-receitas .receitas-hub-item {
            border-radius: 16px;
            box-shadow: 0 0 20px rgba(37, 99, 235, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.04);
        }
        #panel-receitas .receitas-hub-icon {
            width: 42px; height: 42px; border-radius: 11px;
            background: rgba(37, 99, 235, 0.18);
            border: 1px solid rgba(59, 130, 246, 0.35);
            box-shadow: 0 0 12px rgba(59, 130, 246, 0.22);
        }
        .receitas-hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
        .receitas-hub-btn {
            display: flex; flex-direction: column; align-items: center; gap: 10px;
            padding: 16px 10px; border: 1px solid rgba(59, 130, 246, 0.22); border-radius: 12px;
            background: var(--card-bg, var(--surface2)); cursor: pointer; font-size: 13px; font-weight: 600;
            color: var(--text);
            transition: border-color 0.2s, box-shadow 0.2s;
        }
        .receitas-hub-btn:hover {
            border-color: rgba(59, 130, 246, 0.45);
            box-shadow: 0 0 14px rgba(37, 99, 235, 0.12);
        }
        .receitas-hub-icon {
            width: 42px; height: 42px; border-radius: 11px;
            background: rgba(37, 99, 235, 0.18);
            border: 1px solid rgba(59, 130, 246, 0.35);
            display: flex; align-items: center; justify-content: center;
            color: var(--accent, #3b9eff);
            box-shadow: 0 0 12px rgba(59, 130, 246, 0.22);
            flex-shrink: 0;
        }
        .receitas-hub-btn:hover .receitas-hub-icon {
            border-color: rgba(59, 130, 246, 0.55);
            box-shadow: 0 0 16px rgba(59, 130, 246, 0.35);
        }
        .receitas-hub-icon svg {
            width: 20px; height: 20px;
            stroke: currentColor; fill: none; stroke-width: 2;
            stroke-linecap: round; stroke-linejoin: round;
        }
        .receitas-hub-icon svg polygon {
            fill: currentColor;
            stroke: none;
        }
        .receitas-toolbar {
            display: flex;
            align-items: stretch;
            margin-bottom: 12px;
            gap: 8px;
        }
        .receitas-toolbar-btn {
            flex: 1 1 0;
            width: auto;
            margin-top: 0;
            min-height: 44px;
            padding: 8px 10px;
            font-size: 13px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }
        .receitas-toolbar-btn .receitas-action-icon {
            width: 16px;
            height: 16px;
        }
        .receitas-filters { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
        .receitas-filters input, .receitas-filters select { width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 13px; }
        .receitas-check-label { display: flex; flex-direction: row; align-items: center; gap: 8px; font-size: 13px; color: var(--text-sub); }
        .receitas-check-label.receitas-fav-filter-row {
            cursor: pointer;
            user-select: none;
            -webkit-tap-highlight-color: transparent;
        }
        .receitas-check-label.receitas-fav-filter-row.active {
            color: var(--text);
            font-weight: 600;
        }
        .receitas-check-label.receitas-fav-filter-row.active .fav-star.receitas-fav-filter {
            opacity: 1;
            color: #fbbf24;
            text-shadow: 0 0 8px rgba(251, 191, 36, 0.55);
        }
        .locais-saved-filters .receitas-check-label.receitas-fav-filter-row.active {
            color: #fbbf24;
        }
        .locais-saved-card-title {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 4px 6px;
            min-width: 0;
            flex: 1;
        }
        .locais-saved-card-title h3 {
            flex: 1 1 auto;
            min-width: 0;
        }
        .locais-type-badge {
            flex-basis: 100%;
            margin-left: 28px;
            margin-top: 0;
        }
        .locais-card-fav {
            flex-shrink: 0;
            margin-top: -2px;
        }
        .receitas-check-label .fav-star.receitas-fav-filter {
            font-size: 22px;
            min-width: 28px;
            min-height: 28px;
            padding: 0;
            pointer-events: none;
        }
        .receitas-form .receitas-fav-filter-row {
            font-size: 15.6px;
            gap: 10px;
            min-height: 34px;
        }
        .receitas-form .receitas-fav-filter-row .fav-star.receitas-fav-filter {
            font-size: 26px;
            min-width: 34px;
            min-height: 34px;
        }
        .receitas-favorita-cb {
            position: absolute;
            width: 0;
            height: 0;
            opacity: 0;
            pointer-events: none;
        }
        .receitas-fav-star {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 16px;
            height: 16px;
            flex-shrink: 0;
            color: #f59e0b;
        }
        .receitas-fav-star--hub {
            width: 28px;
            height: 28px;
        }
        .receitas-fav-star svg {
            width: 100%;
            height: 100%;
            stroke: none;
            fill: currentColor;
        }
        .receitas-card-head h3 {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .receitas-detail-title {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 18px;
            font-weight: 700;
            margin: 10px 0;
        }
        .receitas-card { border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 10px; background: var(--surface2); }
        .receitas-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
        .receitas-card-head h3 { font-size: 15px; font-weight: 700; flex: 1; color: var(--text); }
        .receitas-badge { font-size: 11px; background: var(--surface); border: 1px solid var(--border); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
        .receitas-card-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--text-sub); margin-bottom: 10px; }
        .receitas-card-actions { display: flex; flex-wrap: wrap; gap: 6px; }
        .receitas-card-actions button { flex: 1; min-width: 70px; font-size: 12px; padding: 8px; color: var(--text); }
        .receitas-action-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
        }
        .receitas-action-icon {
            display: inline-flex;
            flex-shrink: 0;
            width: 14px;
            height: 14px;
        }
        .receitas-action-icon svg {
            width: 100%;
            height: 100%;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }
        .receitas-empty { text-align: center; padding: 24px 12px; color: var(--text-sub); }
        .receitas-empty-hint { font-size: 13px; margin: 8px 0 16px; line-height: 1.45; }
        .receitas-form { display: flex; flex-direction: column; gap: 10px; }
        .receitas-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--text-sub); }
        .receitas-form input, .receitas-form select, .receitas-form textarea {
            padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border);
            background: var(--surface); color: var(--text); font-size: 14px; font-weight: 400;
        }
        .receitas-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
        .receitas-ing-section h4 { font-size: 14px; margin: 8px 0; }
        .receitas-ing-row { display: grid; grid-template-columns: 1fr 70px 100px 32px; gap: 6px; margin-bottom: 6px; align-items: center; }
        .receitas-ing-row input, .receitas-ing-row select { padding: 6px 8px; font-size: 12px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
        .receitas-ing-remove {
            background: transparent;
            border: none;
            color: var(--danger);
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 4px;
        }
        .receitas-ing-remove svg {
            width: 16px;
            height: 16px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .receitas-photo { width: 100%; max-height: 180px; object-fit: cover; border-radius: 12px; margin-bottom: 10px; }
        .receitas-ing-list { padding-left: 18px; font-size: 13px; line-height: 1.6; margin-bottom: 12px; }
        .receitas-preparo { font-size: 13px; line-height: 1.55; white-space: pre-wrap; margin-bottom: 12px; }
        .receitas-detail-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
        .receitas-add-item { display: grid; grid-template-columns: 24px 1fr 70px auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
        .receitas-add-item input[type="number"] { padding: 6px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); }
        .receitas-unit { font-size: 12px; color: var(--text-sub); }
        .receitas-categories { display: flex; flex-direction: column; flex: 1; min-height: 0; min-width: 0; }
        .receitas-cat-summary {
            margin: -4px 0 12px;
            font-size: 12px;
            line-height: 1.4;
            color: var(--text-sub);
        }
        .receitas-cat-list {
            list-style: none; padding: 0; margin: 0;
            display: flex; flex-direction: column; gap: 8px;
            max-height: min(52vh, 420px);
            overflow-y: auto;
            min-width: 0;
        }
        .receitas-cat-item {
            display: flex; align-items: center; gap: 12px;
            padding: 12px 14px; border-radius: 12px;
            border: 1px solid rgba(59, 130, 246, 0.18);
            background: var(--surface);
            min-width: 0;
            box-sizing: border-box;
        }
        .receitas-cat-item--custom { border-color: rgba(34, 197, 94, 0.28); }
        .receitas-cat-emoji {
            width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
            display: flex; align-items: center; justify-content: center;
            font-size: 20px; line-height: 1;
            background: rgba(37, 99, 235, 0.12);
        }
        .receitas-cat-item--custom .receitas-cat-emoji { background: rgba(34, 197, 94, 0.12); }
        .receitas-cat-info {
            flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px;
            align-items: flex-start;
        }
        .receitas-cat-name {
            font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.35;
            overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
        }
        .receitas-cat-badge {
            display: inline-flex;
            font-size: 10px;
            font-weight: 700;
            border-radius: 999px;
            padding: 2px 8px;
            line-height: 1.35;
        }
        .receitas-cat-badge--system {
            color: var(--accent);
            background: rgba(37, 99, 235, 0.12);
        }
        .receitas-cat-badge--custom {
            color: #22c55e;
            background: rgba(34, 197, 94, 0.12);
        }
        .receitas-cat-form { margin: 0; }
        .receitas-cat-form .receitas-cat-submit {
            width: 100%;
            margin-top: 0 !important;
            display: inline-flex; align-items: center; justify-content: center; gap: 6px;
            min-height: 44px;
        }
        .danger-text { color: var(--danger) !important; }

        .locais-map { width: 100%; height: 220px; border-radius: 12px; border: 1px solid var(--border); margin: 10px 0; z-index: 1; overflow: hidden; max-width: 100%; touch-action: none; overscroll-behavior: none; }
        .locais-map-lg { height: 360px; }
        .locais-map-saved { flex: 1 1 180px; min-height: 180px; margin: 0; }
        .locais-map .leaflet-container {
            width: 100% !important;
            max-width: 100%;
            touch-action: none;
            overscroll-behavior: none;
        }
        #panel-locais-compra.panel-overlay--fullscreen,
        #panel-locais-compra.panel-overlay--fullscreen .panel-sheet,
        #panel-locais-compra .panel-body,
        #locais-compra-body,
        #locais-compra-body.locais-saved-mode,
        .locais-saved-layout,
        .locais-saved-map-panel,
        .loc-filters {
            overflow-x: hidden;
            max-width: 100%;
            overscroll-behavior-x: none;
        }

        /* Receitas / Remédios — tela cheia; scroll vertical no conteúdo */
        #panel-receitas.panel-overlay--fullscreen,
        #panel-remedios.panel-overlay--fullscreen {
            overflow: hidden;
            max-width: 100%;
            overscroll-behavior: none;
        }
        #panel-receitas.panel-overlay--fullscreen .panel-sheet,
        #panel-remedios.panel-overlay--fullscreen .panel-sheet {
            overflow: hidden;
            max-width: 100%;
            overscroll-behavior: none;
            height: 100%;
            max-height: 100dvh;
            flex: 1 1 auto;
            min-height: 0;
        }
        #panel-receitas .panel-body,
        #receitas-body,
        #panel-remedios .panel-body,
        #remedios-body {
            overflow-x: hidden;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            min-height: 0;
            flex: 1;
            overscroll-behavior: contain;
            -webkit-overflow-scrolling: touch;
            touch-action: pan-y;
        }
        html.capacitor-native #panel-receitas .panel-body,
        html.capacitor-native #receitas-body,
        html.capacitor-native #panel-remedios .panel-body,
        html.capacitor-native #remedios-body {
            touch-action: pan-y;
        }
        .locais-route-info { font-size: 13px; color: var(--accent); font-weight: 600; margin: 6px 0 8px; min-height: 18px; flex-shrink: 0; }
        .locais-mode-btns {
            display: flex;
            flex-direction: row;
            flex-wrap: nowrap;
            gap: 8px;
            margin-bottom: 12px;
        }
        .locais-mode-btn {
            flex: 1 1 0;
            min-width: 0;
            width: auto;
            margin-top: 0;
            padding: 10px 6px;
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 6px;
            font-size: 11px;
            line-height: 1.25;
            text-align: center;
        }
        .locais-mode-icon {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            background: rgba(37, 99, 235, 0.12);
            border: 1px solid rgba(59, 130, 246, 0.28);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--accent, #2563eb);
            flex-shrink: 0;
        }
        .locais-mode-icon svg {
            width: 18px;
            height: 18px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }
        .locais-subtitle { font-size: 13px; color: var(--text-sub); margin-bottom: 8px; line-height: 1.45; flex-shrink: 0; }
        #locais-compra-body .loc-view {
            display: flex;
            flex-direction: column;
            gap: 12px;
            min-width: 0;
            max-width: 100%;
        }
        #locais-compra-body .loc-view:not(.locais-saved-layout) {
            padding-bottom: 16px;
        }
        #locais-compra-body .lc-section-card {
            min-width: 0;
            max-width: 100%;
        }
        .loc-primary-cta {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-top: 0;
            flex-shrink: 0;
        }
        .loc-primary-cta svg,
        .loc-detail-actions-card .panel-btn svg {
            width: 16px;
            height: 16px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
            flex-shrink: 0;
        }
        .loc-filters {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-bottom: 10px;
            min-width: 0;
        }
        .loc-filters .lc-field { margin: 0; width: 100%; min-width: 0; }
        .loc-filters .receitas-check-label { margin: 0; }
        #locais-compra-body.locais-saved-mode {
            display: flex;
            flex-direction: column;
            overflow: hidden;
            padding: 12px 16px 0;
            min-height: 0;
        }
        .locais-saved-layout {
            display: flex;
            flex-direction: column;
            flex: 1;
            min-height: 0;
            gap: 10px;
        }
        .locais-saved-header {
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .locais-saved-list-panel {
            flex: 1 1 38%;
            min-height: 110px;
            display: flex;
            flex-direction: column;
            min-width: 0;
            overflow: hidden;
        }
        .locais-saved-map-panel {
            flex-shrink: 0;
            min-width: 0;
            padding-bottom: 12px;
        }
        .locais-saved-scroll {
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            min-height: 80px;
            padding: 2px 0 4px;
            -webkit-overflow-scrolling: touch;
            overscroll-behavior: contain;
            overscroll-behavior-x: none;
            touch-action: pan-y;
        }
        .locais-saved-list { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
        .locais-saved-card {
            border: 1px solid var(--border);
            border-radius: 14px;
            padding: 12px;
            background: var(--surface2);
            cursor: pointer;
            transition: border-color 0.2s, box-shadow 0.2s;
            min-width: 0;
        }
        .locais-saved-card:hover,
        .locais-saved-card.selected {
            border-color: rgba(37, 99, 235, 0.45);
            box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
        }
        .locais-saved-card-icon {
            flex-shrink: 0;
            width: 40px;
            height: 40px;
            border-radius: 12px;
            background: var(--surface);
            border: 1px solid var(--border);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            line-height: 1;
        }
        .locais-saved-card-head {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin-bottom: 8px;
        }
        .locais-saved-card-row {
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
        }
        .locais-saved-card-info {
            flex: 1;
            min-width: 0;
        }
        .locais-saved-card-head h3 {
            font-size: 15px;
            font-weight: 700;
            color: var(--text);
            margin: 0;
            line-height: 1.25;
        }
        .locais-saved-address {
            font-size: 12px;
            color: var(--text-sub);
            line-height: 1.4;
            margin: 0;
            word-break: break-word;
        }
        .locais-saved-distance {
            font-size: 11px;
            color: var(--accent);
            margin: 4px 0 0;
        }
        .locais-saved-card-actions {
            display: flex;
            flex-direction: row;
            flex-shrink: 0;
            gap: 6px;
            margin-top: 0;
            flex-wrap: wrap;
        }
        .locais-saved-card-actions .locais-card-btn {
            width: auto;
            min-width: 72px;
            margin-top: 0;
            padding: 8px 12px;
            font-size: 12px;
            white-space: nowrap;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
        }
        .loc-detail-head {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            margin-bottom: 12px;
            min-width: 0;
        }
        .loc-detail-icon {
            width: 48px;
            height: 48px;
            font-size: 24px;
        }
        .loc-detail-meta {
            flex: 1;
            min-width: 0;
        }
        .loc-detail-meta .receitas-detail-title {
            margin: 0 0 6px;
        }
        .loc-detail-actions-card .panel-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        .loc-detail-actions-row {
            display: flex;
            gap: 8px;
            min-width: 0;
        }
        .loc-detail-actions-row .panel-btn {
            flex: 1;
            min-width: 0;
        }
        .loc-shared-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
            min-width: 0;
        }
        .loc-shared-card { cursor: default; }
        .loc-shared-card .locais-saved-card-actions { margin-top: 10px; }
        .loc-shared-by {
            font-size: 12px;
            color: var(--text-sub);
            margin: 6px 0 0;
        }
        .loc-shared-status--accepted { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
        .loc-shared-status--pending { background: rgba(251, 191, 36, 0.15); color: #f59e0b; }
        .loc-shared-status--refused { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
        .locais-route-btn { flex: 1 1 auto; min-width: 0; }
        .locais-marker-selected { filter: drop-shadow(0 0 6px rgba(37, 99, 235, 0.9)); }

        .price-up { color: #ef4444; }
        .price-down { color: #22c55e; }
        .price-same { color: var(--text-sub); }

        .panel-btn {
            width: 100%;
            padding: 11px;
            margin-top: 8px;
            border: none;
            border-radius: 10px;
            background: var(--accent);
            color: #fff;
            font-weight: 600;
            font-family: 'Inter', sans-serif;
            cursor: pointer;
            font-size: 14px;
        }

        .panel-btn.secondary {
            background: var(--surface2);
            color: var(--text);
            border: 1px solid var(--border);
        }

        .panel-btn.danger {
            background: transparent;
            color: var(--danger);
            border: 1px solid rgba(239, 68, 68, 0.35);
        }

        .panel-btn.success {
            background: var(--success);
            color: #fff;
            border: none;
        }

        .panel-btn.success:hover {
            background: #16a34a;
        }

        .share-hint {
            font-size: 13px;
            color: var(--text-sub);
            line-height: 1.45;
            margin: 0 0 16px;
        }
        .share-section { margin-bottom: 4px; }
        .share-section-title {
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            color: var(--text-sub);
            margin: 0 0 10px;
        }
        .share-field-label {
            display: block;
            font-size: 12px;
            font-weight: 600;
            margin-bottom: 8px;
            color: var(--text-sub);
        }
        .share-field-hint {
            font-size: 11px;
            color: var(--text-sub);
            line-height: 1.4;
            margin: 6px 0 0;
            opacity: 0.9;
        }
        .share-type-grid {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-bottom: 14px;
        }
        .share-type-card {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            width: 100%;
            padding: 12px 14px;
            border-radius: 12px;
            border: 1px solid var(--border);
            background: var(--surface2);
            color: var(--text);
            text-align: left;
            cursor: pointer;
            transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
            -webkit-tap-highlight-color: transparent;
        }
        .share-type-card:hover {
            border-color: rgba(59, 130, 246, 0.35);
        }
        .share-type-card.active {
            border-color: rgba(59, 130, 246, 0.55);
            background: rgba(37, 99, 235, 0.08);
            box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2);
        }
        .share-type-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(37, 99, 235, 0.15);
            color: var(--accent, #3b9eff);
        }
        .share-type-icon--fav {
            background: rgba(251, 191, 36, 0.15);
            color: #fbbf24;
        }
        .share-type-icon svg {
            width: 20px;
            height: 20px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }
        .share-type-icon--fav svg {
            fill: currentColor;
            stroke: none;
        }
        .share-type-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
        .share-type-name { font-size: 14px; font-weight: 600; line-height: 1.3; }
        .share-type-desc { font-size: 12px; color: var(--text-sub); line-height: 1.35; }
        .share-group-field { margin-bottom: 14px; }
        .share-group-field label {
            display: block;
            font-size: 12px;
            font-weight: 600;
            margin-bottom: 6px;
            color: var(--text-sub);
        }
        .share-generate-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
        }
        .share-generate-icon {
            display: inline-flex;
            width: 18px;
            height: 18px;
            flex-shrink: 0;
        }
        .share-generate-icon svg {
            width: 100%;
            height: 100%;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
        }
        .share-generate-btn:disabled { opacity: 0.65; cursor: wait; }
        .share-divider {
            display: flex;
            align-items: center;
            gap: 12px;
            margin: 16px 0;
            color: var(--text-sub);
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }
        .share-divider::before,
        .share-divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: var(--border);
        }
        .share-live-card {
            display: flex;
            align-items: center;
            gap: 12px;
            width: 100%;
            padding: 14px;
            border-radius: 12px;
            border: 1px solid rgba(34, 197, 94, 0.28);
            background: rgba(34, 197, 94, 0.08);
            color: var(--text);
            text-align: left;
            cursor: pointer;
            transition: border-color 0.2s, background 0.2s;
            -webkit-tap-highlight-color: transparent;
        }
        .share-live-card:hover {
            border-color: rgba(34, 197, 94, 0.45);
            background: rgba(34, 197, 94, 0.12);
        }
        .share-live-icon {
            width: 42px;
            height: 42px;
            border-radius: 11px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(34, 197, 94, 0.18);
            color: #22c55e;
        }
        .share-live-icon svg {
            width: 20px;
            height: 20px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
        }
        .share-live-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
        .share-live-name { font-size: 14px; font-weight: 700; line-height: 1.3; }
        .share-live-desc { font-size: 12px; color: var(--text-sub); line-height: 1.35; }
        .share-live-chevron {
            width: 18px;
            height: 18px;
            flex-shrink: 0;
            color: var(--text-sub);
            opacity: 0.7;
        }
        .share-live-chevron svg {
            width: 100%;
            height: 100%;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
        }
        .share-result {
            padding-top: 4px;
        }
        .share-result-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 14px;
        }
        .share-result-check {
            width: 28px;
            height: 28px;
            flex-shrink: 0;
            color: #22c55e;
        }
        .share-result-check svg {
            width: 100%;
            height: 100%;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
        }
        .share-result-title {
            font-size: 15px;
            font-weight: 700;
            margin: 0;
            color: var(--text);
        }
        .share-link-row {
            display: flex;
            gap: 8px;
            align-items: stretch;
            margin-bottom: 4px;
        }
        .share-link-input {
            flex: 1;
            min-width: 0;
            padding: 10px 12px;
            border-radius: 8px;
            border: 1px solid var(--border);
            background: var(--surface2);
            color: var(--text);
            font-size: 13px;
            font-family: 'Inter', sans-serif;
        }
        .share-link-copy {
            flex-shrink: 0;
            width: 44px;
            border-radius: 8px;
            border: 1px solid var(--border);
            background: var(--surface2);
            color: var(--text);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.15s;
        }
        .share-link-copy:hover { background: var(--surface); }
        .share-link-copy svg {
            width: 18px;
            height: 18px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
        }
        .share-back-btn { margin-top: 14px; width: 100%; }
        .share-form .form-group { margin-bottom: 12px; }
        .share-form label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 4px; color: var(--text-sub); }
        .share-form input:not(.share-link-input), .share-form select {
            width: 100%;
            padding: 10px;
            border-radius: 8px;
            border: 1px solid var(--border);
            background: var(--surface2);
            color: var(--text);
            font-family: 'Inter', sans-serif;
        }

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

        .share-social-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            padding: 10px 4px;
            border: 1px solid var(--border);
            border-radius: 12px;
            background: var(--surface2);
            color: var(--text);
            font-size: 10px;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.15s ease, background 0.15s ease;
        }

        .share-social-btn:hover {
            background: var(--surface);
            transform: translateY(-1px);
        }

        .share-social-btn--primary {
            grid-column: 1 / -1;
            flex-direction: row;
            justify-content: center;
            padding: 14px;
            font-size: 14px;
            background: var(--accent);
            color: #fff;
            border-color: transparent;
        }

        .share-social-btn--primary .share-social-icon {
            width: 28px;
            height: 28px;
            font-size: 16px;
            background: rgba(255,255,255,0.2) !important;
        }

        .share-social-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            font-size: 18px;
            color: #fff;
            background: var(--accent);
        }

        .share-social-icon img {
            width: 22px;
            height: 22px;
            display: block;
            object-fit: contain;
            filter: brightness(0) invert(1);
        }

        .share-social-icon svg {
            width: 22px;
            height: 22px;
            stroke: #fff;
            fill: none;
        }

        .share-social-label {
            line-height: 1.2;
            text-align: center;
            color: var(--text-sub);
        }

        .share-social-btn--primary .share-social-label {
            color: #fff;
        }

        .share-social-hint {
            font-size: 12px;
            color: var(--text-sub);
            margin: 0 0 12px;
            line-height: 1.45;
        }

        .share-social-section-title {
            font-size: 13px;
            font-weight: 700;
            margin: 16px 0 8px;
            color: var(--text);
        }

        .comparison-table { width: 100%; font-size: 12px; border-collapse: collapse; margin-top: 10px; color: var(--text); table-layout: fixed; }
        .comparison-table th, .comparison-table td { padding: 6px 4px; text-align: left; border-bottom: 1px solid var(--border); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .comparison-table th:nth-child(1), .comparison-table td:nth-child(1) { width: 44%; }
        .comparison-table th:nth-child(2), .comparison-table td:nth-child(2) { width: 28%; text-align: right; }
        .comparison-table th:nth-child(3), .comparison-table td:nth-child(3) { width: 28%; }

        /* ===== MODAL ===== */
        .modal-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.5);
            z-index: 1000;
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            align-items: flex-end;
            justify-content: center;
        }

        .modal-overlay.open {
            display: flex;
            animation: overlayIn 0.25s ease;
        }

        @keyframes overlayIn {
            from { opacity: 0; }
            to   { opacity: 1; }
        }

        .modal-sheet {
            background: var(--surface);
            border-radius: 20px 20px 0 0;
            padding: 0;
            width: 100%;
            max-width: 100%;
            display: flex;
            flex-direction: column;
            min-height: 0;
            overflow: hidden;
            animation: sheetUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
            transition: background 0.3s;
        }

        .modal-sheet .modal-header {
            flex-shrink: 0;
            padding-top: 8px;
        }

        .modal-sheet form {
            display: flex;
            flex-direction: column;
            flex: 1;
            min-height: 0;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            padding-bottom: max(12px, var(--app-safe-bottom));
        }

        @keyframes sheetUp {
            from { transform: translateY(100%); }
            to   { transform: translateY(0); }
        }

        .modal-handle {
            width: 36px; height: 4px;
            background: var(--border);
            border-radius: 4px;
            margin: 12px auto 20px;
        }

        .modal-title {
            font-size: 19px;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 20px;
        }

        .form-group {
            margin-bottom: 16px;
        }

        .form-group label {
            display: block;
            font-size: 12px;
            font-weight: 600;
            color: var(--text-sub);
            margin-bottom: 7px;
            letter-spacing: 0.4px;
            text-transform: uppercase;
        }

        .form-group input,
        .form-group select {
            width: 100%;
            padding: 12px 14px;
            background: var(--surface2);
            border: 1.5px solid var(--border);
            border-radius: 10px;
            font-size: 15px;
            font-family: 'Inter', sans-serif;
            color: var(--text);
            outline: none;
            transition: border-color 0.25s, box-shadow 0.25s;
            -webkit-appearance: none;
        }

        .form-group input:focus,
        .form-group select:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--accent-glow);
        }

        .qty-row {
            display: flex;
            align-items: stretch;
            gap: 8px;
        }

        .form-row-price-qty .qty-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
        }

        .form-row-price-qty .qty-btn,
        .form-row-price-qty .qty-input {
            width: 100% !important;
            height: 44px;
            min-height: 44px;
            max-height: 44px;
            padding: 0;
            box-sizing: border-box;
        }

        .form-row-price-qty .qty-btn {
            font-size: 20px;
        }

        .qty-btn {
            width: 40px; height: 40px;
            background: var(--surface2);
            border: 1.5px solid var(--border);
            border-radius: 10px;
            font-size: 20px;
            color: var(--text);
            cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0;
            transition: background 0.2s;
        }

        .qty-btn:hover { background: var(--accent); color: white; border-color: var(--accent); }

        .qty-input {
            width: 70px !important;
            text-align: center;
        }

        .submit-btn {
            width: 100%;
            height: 48px;
            min-height: 48px;
            max-height: 48px;
            padding: 0 16px;
            background: var(--accent);
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 15px;
            font-weight: 600;
            font-family: 'Inter', sans-serif;
            cursor: pointer;
            margin-top: 8px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-sizing: border-box;
            flex: 0 0 auto;
            transition: transform 0.2s, background 0.2s, box-shadow 0.2s, opacity 0.2s;
            box-shadow: 0 4px 14px var(--accent-glow);
        }

        .submit-btn:hover { transform: translateY(-1px); background: var(--accent-dark); box-shadow: 0 6px 20px var(--accent-glow); }
        .submit-btn:active { transform: translateY(0); }
        .submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

        /* ===== CONFIRM DIALOG ===== */
        .confirm-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.6);
            z-index: 2000;
            align-items: center;
            justify-content: center;
        }

        .confirm-overlay.open {
            display: flex;
            animation: overlayIn 0.2s ease;
        }

        .confirm-dialog {
            background: var(--surface);
            border-radius: 18px;
            padding: 28px 24px 20px;
            width: 100%;
            max-width: 320px;
            text-align: center;
            animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        @keyframes popIn {
            from { opacity: 0; transform: scale(0.85); }
            to   { opacity: 1; transform: scale(1); }
        }

        .confirm-icon {
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--accent, #3b9eff);
        }

        .confirm-icon svg {
            width: 40px;
            height: 40px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .confirm-dialog h3 {
            font-size: 17px;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 8px;
        }

        .confirm-dialog p {
            font-size: 13px;
            color: var(--text-sub);
            margin-bottom: 20px;
            line-height: 1.5;
        }

        .confirm-actions {
            display: flex;
            gap: 10px;
        }

        .confirm-actions > .confirm-cancel,
        .confirm-actions > .confirm-primary,
        .confirm-actions > .confirm-delete {
            flex: 1 1 0;
            min-width: 0;
        }

        .confirm-actions.fechar-actions {
            flex-direction: column;
        }

        .confirm-actions.fechar-actions .confirm-action-row {
            display: flex;
            gap: 10px;
            width: 100%;
        }

        .confirm-actions.fechar-actions .confirm-cancel {
            width: 100%;
        }

        .confirm-cancel {
            padding: 11px;
            background: var(--surface2);
            border: 1.5px solid var(--border);
            border-radius: 10px;
            font-size: 14px;
            font-weight: 600;
            font-family: 'Inter', sans-serif;
            color: var(--text);
            cursor: pointer;
            transition: background 0.2s;
        }

        .confirm-cancel:hover { background: var(--border); }

        .confirm-delete.icon-btn {
            width: auto;
            height: auto;
            min-height: 44px;
            padding: 11px;
            border-radius: 10px;
            background: var(--danger);
            color: #fff;
        }

        .confirm-delete:hover { opacity: 0.85; }

        .confirm-primary {
            padding: 11px;
            background: var(--accent);
            border: none;
            border-radius: 10px;
            font-size: 14px;
            font-weight: 600;
            font-family: 'Inter', sans-serif;
            color: #fff;
            cursor: pointer;
            transition: opacity 0.2s, transform 0.15s;
        }

        .confirm-primary:hover { opacity: 0.92; transform: translateY(-1px); }

        .confirm-primary.confirm-warning {
            background: var(--warning);
        }

        .confirm-primary.confirm-warning:hover {
            background: #d97706;
            opacity: 1;
        }

        .confirm-icon.confirm-icon--warning {
            color: #f59e0b;
        }

        [data-theme="dark"] .confirm-icon.confirm-icon--warning {
            color: #fbbf24;
        }

        .confirm-primary.confirm-danger {
            background: var(--danger, #ef4444);
        }

        .confirm-primary.confirm-danger:hover {
            background: #dc2626;
            opacity: 1;
        }

        .fechar-incomplete-warning {
            display: none;
            margin: -8px 0 14px;
            padding: 10px 12px;
            border-radius: 10px;
            background: rgba(245, 158, 11, 0.12);
            border: 1px solid rgba(245, 158, 11, 0.35);
            color: #b45309;
            font-size: 12px;
            line-height: 1.45;
            text-align: left;
        }

        [data-theme="dark"] .fechar-incomplete-warning {
            color: #fcd34d;
        }

        .fechar-incomplete-warning.show { display: block; }

        .hist-detail-actions {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 16px;
        }

        /* ===== TOAST ===== */
        .toast-container {
            position: fixed;
            z-index: 3000;
            display: flex;
            flex-direction: column;
            gap: 8px;
            pointer-events: none;
            width: min(380px, calc(100vw - var(--app-safe-left, 0px) - var(--app-safe-right, 0px) - 24px));
            min-width: 0;
            max-width: calc(100vw - var(--app-safe-left, 0px) - var(--app-safe-right, 0px) - 24px);
        }

        .toast {
            background: var(--surface);
            border: 1.5px solid var(--border);
            border-radius: 12px;
            padding: 12px 16px;
            display: flex;
            align-items: center;
            gap: 10px;
            box-shadow: var(--shadow-lg);
            animation: toastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
            font-size: 14px;
            font-weight: 500;
            color: var(--text);
            pointer-events: all;
        }

        .toast.exit { animation: toastOut 0.3s ease forwards; }

        @keyframes toastIn {
            from { opacity: 0; transform: translateY(-16px) scale(0.95); }
            to   { opacity: 1; transform: translateY(0) scale(1); }
        }

        @keyframes toastOut {
            from { opacity: 1; transform: translateY(0) scale(1); }
            to   { opacity: 0; transform: translateY(-10px) scale(0.95); }
        }

        .toast-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 22px;
            height: 22px;
            flex-shrink: 0;
        }

        .toast-icon svg {
            width: 20px;
            height: 20px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .toast.error .toast-icon { color: #f87171; }
        .toast.success .toast-icon { color: #4ade80; }
        .toast.info .toast-icon { color: var(--accent, #60a5fa); }

        .toast.success { border-color: rgba(34,197,94,0.35); }
        .toast.error   { border-color: rgba(239,68,68,0.35); }
        .toast.info    { border-color: rgba(37, 99, 235, 0.35); }

        /* ===== PWA INSTALL ===== */
        .install-bar {
            position: fixed;
            background: var(--accent);
            color: white;
            padding: 10px 16px;
            display: none;
            align-items: center;
            gap: 10px;
            z-index: 900;
            font-size: 13px;
            font-weight: 500;
        }

        .install-bar.show { display: flex; }

        .install-bar-cta {
            margin-left: auto;
            display: flex; gap: 8px;
        }

        .install-btn-yes, .install-btn-no {
            background: rgba(255,255,255,0.2);
            border: none; color: white;
            padding: 5px 12px; border-radius: 6px;
            cursor: pointer; font-size: 13px;
            font-family: 'Inter', sans-serif; font-weight: 600;
        }

        .install-btn-no {
            padding: 5px 8px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .install-btn-yes:hover, .install-btn-no:hover { background: rgba(255,255,255,0.35); }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 480px) {
            .product-name { font-size: 15px; }
            .product-amount { font-size: 15px; }
            .product-thumb, .product-thumb-placeholder { width: 50px; height: 50px; }
            .total-amount { font-size: 22px; }
            .cat-subtotal-value { font-size: 13px; }
            .total-bar { width: calc(100% - 20px); padding: 12px 14px; }
            .modal-sheet { border-radius: 16px 16px 0 0; }
        }
