:root {
    --ink: #18221d;
    --muted: #68736d;
    --paper: #f7f4ec;
    --surface: #fffdf8;
    --line: #ddd9cd;
    --green: #154b36;
    --lime: #d9f36a;
    --orange: #f0643c;
    --shadow: 0 18px 50px rgba(24, 34, 29, .08);
}

[hidden] { display: none !important; }

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 15px/1.5 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { min-height: 76px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; padding: 10px clamp(20px, 5vw, 72px); border-bottom: 1px solid var(--line); background: rgba(247, 244, 236, .92); box-shadow: 0 1px 0 rgba(255,255,255,.7); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 10; }
.brand { min-width: 0; flex: 0 0 auto; display: flex; gap: 11px; align-items: center; text-decoration: none; color: var(--ink); font: 700 18px system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; white-space: nowrap; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; color: var(--lime); background: var(--green); font-weight: 800; transform: rotate(-4deg); }
.header-mode { grid-column: 2; justify-self: center; min-width: 0; }
.header-actions { grid-column: 3; justify-self: end; min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.account-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.account-nav a, .account-nav button { color: var(--muted); background: none; border: 0; text-decoration: none; font-weight: 600; font-size: 13px; }
.account-nav a:hover, .account-nav button:hover { color: var(--green); }
.account-nav form, .logout-form { margin: 0; }
.account-nav > span { color: var(--ink); font-size: 13px; font-weight: 700; }
.catalog-mode-form { flex: 0 0 auto; margin: 0; }
.catalog-mode-switch { display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 7px 9px 7px 12px; color: inherit; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: 0 2px 8px rgba(24,34,29,.04); font: inherit; text-align: left; cursor: pointer; user-select: none; }
.catalog-mode-label { max-width: 150px; color: var(--ink); font-size: 12px; font-weight: 750; line-height: 1.15; }
.catalog-mode-track { width: 38px; height: 22px; display: flex; align-items: center; flex: 0 0 auto; padding: 3px; border-radius: 999px; background: #bbbfb9; transition: background .18s ease; }
.catalog-mode-track span { width: 16px; height: 16px; border-radius: 50%; background: white; box-shadow: 0 1px 4px rgba(24,34,29,.25); transition: transform .18s ease; }
.catalog-mode-switch[aria-checked="true"] .catalog-mode-track { background: var(--green); }
.catalog-mode-switch[aria-checked="true"] .catalog-mode-track span { transform: translateX(16px); }
.catalog-mode-switch:focus-visible { outline: 3px solid rgba(217,243,106,.75); outline-offset: 2px; }
.logout-form button { width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); }
.main-menu { position: relative; }
.main-menu > summary { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 2px 8px rgba(24,34,29,.03); font-weight: 700; cursor: pointer; list-style: none; user-select: none; }
.menu-icon { font-size: 18px; line-height: 1; }
.main-menu > summary::-webkit-details-marker { display: none; }
.main-menu[open] > summary { color: white; border-color: var(--green); background: var(--green); }
.menu-popover { position: absolute; top: calc(100% + 10px); right: 0; width: 285px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 22px 65px rgba(24,34,29,.18); z-index: 30; }
.menu-group + .menu-group { margin-top: 5px; padding-top: 5px; border-top: 1px solid var(--line); }
.menu-group h2 { margin: 0; padding: 7px 10px 3px; color: var(--muted); font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
.menu-popover a, .menu-popover button { width: 100%; display: grid; grid-template-columns: 32px 1fr; gap: 9px; align-items: center; padding: 10px; color: var(--ink); border: 0; border-radius: 10px; background: none; text-align: left; text-decoration: none; }
.menu-popover a:hover, .menu-popover button:hover { background: var(--paper); }
.menu-popover a[aria-current="page"] { background: #edf2df; }
.menu-popover a > span:first-child, .menu-popover button > span:first-child { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: var(--green); background: #e9eddc; font-weight: 800; }
.menu-popover strong, .menu-popover small { display: block; }
.menu-popover strong { font-size: 13px; }
.menu-popover small { color: var(--muted); font-size: 11px; font-weight: 400; }
.menu-popover form { margin: 6px 0 0; padding-top: 6px; border-top: 1px solid var(--line); }
.updated { color: var(--muted); font-size: 13px; }
.basket-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; color: white; background: var(--green); border: 0; border-radius: 999px; padding: 9px 11px 9px 17px; font-weight: 700; line-height: 1; white-space: nowrap; text-decoration: none; }
.basket-label-short { display: none; }
.basket-count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; margin-left: 9px; padding: 0 6px; border-radius: 999px; color: var(--green); background: var(--lime); font-size: 13px; }

.hero { padding: clamp(55px, 8vw, 108px) clamp(20px, 8vw, 120px) 68px; background: radial-gradient(circle at 82% 18%, rgba(217,243,106,.72), transparent 22%), linear-gradient(145deg, #f7f4ec 45%, #ece8dc); border-bottom: 1px solid var(--line); }
.eyebrow, .kicker { color: var(--orange); font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.hero h1 { max-width: 860px; margin: 14px 0 19px; font: 800 clamp(42px, 6.2vw, 83px)/.98 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: -.055em; }
.hero h1 em { color: var(--green); font-style: normal; }
.hero > p { max-width: 620px; margin: 0 0 31px; color: var(--muted); font-size: 18px; }
.search { max-width: 720px; display: flex; gap: 8px; padding: 7px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: var(--shadow); }
.search input { min-width: 0; flex: 1; padding: 13px 16px; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search button { border: 0; border-radius: 12px; padding: 0 25px; color: var(--green); background: var(--lime); font-weight: 700; }
.recent-searches { max-width: 900px; display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 15px; color: var(--muted); font-size: 12px; }
.recent-search-list { display: flex; flex-wrap: wrap; gap: 7px; }
.recent-search-chip { display: inline-flex; overflow: hidden; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,253,248,.75); }
.recent-search-chip button { padding: 6px 4px 6px 10px; border: 0; color: var(--ink); background: none; font-size: 12px; }
.recent-search-chip .recent-search-remove { padding: 6px 9px 6px 4px; color: var(--muted); font-size: 15px; }
.recent-searches > a { color: var(--green); font-weight: 700; }

.home-feed { padding: 52px clamp(20px, 5vw, 72px) 74px; }
.home-feed-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.home-feed-heading h2 { margin: 7px 0 5px; font: 800 clamp(30px, 4vw, 48px) system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: -.045em; }
.home-feed-heading p { max-width: 690px; margin: 0; color: var(--muted); }
.home-controls { min-width: min(100%, 370px); display: flex; align-items: end; gap: 9px; }
.home-controls label { min-width: 170px; display: grid; flex: 1; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.home-controls select { width: 100%; padding: 11px 34px 11px 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: var(--surface); }
.refresh-button { padding: 11px 14px; border: 1px solid var(--green); border-radius: 11px; color: var(--green); background: transparent; font-weight: 700; white-space: nowrap; }
.personalize-button { padding: 11px 14px; border: 0; border-radius: 11px; color: white; background: var(--green); font-weight: 700; white-space: nowrap; }
.refresh-button:hover { color: white; background: var(--green); }
.refresh-button:disabled { opacity: .55; cursor: wait; }
.home-status { margin: 0 0 22px; padding: 14px 17px; border-radius: 12px; color: var(--green); background: #e9eddc; }
.category-preferences { margin: 0 0 28px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.preference-heading { display: flex; justify-content: space-between; gap: 20px; }
.preference-heading p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.preference-heading > button { border: 0; color: var(--muted); background: none; font-size: 25px; }
.preference-list { display: grid; gap: 7px; margin: 18px 0; padding: 0; list-style: none; }
.preference-list li { display: grid; grid-template-columns: 42px minmax(150px, 1fr) auto auto; gap: 14px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); }
.preference-list li.dragging { opacity: .55; border-color: var(--green); }
.drag-handle { min-height: 36px; border: 0; color: var(--green); background: transparent; cursor: grab; touch-action: none; font-size: 18px; }
.preference-list label { color: var(--muted); font-size: 12px; white-space: nowrap; }
.preference-list input { accent-color: var(--green); }
.preference-save { padding: 11px 17px; border: 0; border-radius: 11px; color: white; background: var(--green); font-weight: 700; }
.home-sections { display: grid; gap: 30px; }
.custom-sections { margin-bottom: 30px; }
.category-section { min-width: 0; padding: 23px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,253,248,.72); box-shadow: 0 8px 28px rgba(24,34,29,.035); }
.category-section.custom-category { border-color: rgba(240,100,60,.35); background: linear-gradient(120deg, rgba(240,100,60,.075), rgba(217,243,106,.1)); }
.category-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.category-kind { color: var(--orange); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.category-name { margin: 2px 0 0; font: 800 25px system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: -.03em; }
.category-name a { color: inherit; text-decoration: none; }
.category-name a:hover { color: var(--green); text-decoration: underline; }
.category-actions { display: flex; align-items: center; gap: 15px; }
.favorite-mark { color: #9a6b00; font-size: 11px; font-weight: 800; }
.category-link, .category-all-link { color: var(--green); font-size: 12px; font-weight: 700; text-decoration: none; }
.category-link { color: var(--muted); }
.category-link:hover, .category-all-link:hover { text-decoration: underline; }
.category-empty { margin: 0; padding: 24px; border-radius: 14px; color: var(--muted); background: var(--paper); }

.workspace { display: grid; grid-template-columns: minmax(210px, 255px) minmax(0, 1fr); gap: clamp(26px, 4vw, 60px); padding: 48px clamp(20px, 5vw, 72px) 80px; }
.filters { align-self: start; position: sticky; top: 104px; }
.filter-heading, .results-heading { display: flex; align-items: center; justify-content: space-between; }
.filter-heading h2, .results-heading h2 { margin: 0; font: 700 24px system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: -.025em; }
.filter-heading button { padding: 0; color: var(--muted); background: none; border: 0; font-size: 13px; text-decoration: underline; }
.field { display: grid; gap: 8px; margin-top: 25px; font-weight: 600; }
.field span { font-size: 13px; }
.field select, .sort select { width: 100%; padding: 11px 34px 11px 12px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.facet-select { position: relative; min-width: 0; width: 100%; font-weight: 400; }
.facet-native-select { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0 !important; }
.facet-select-button, .facet-select-option { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; color: var(--ink); background: var(--surface); text-align: left; }
.facet-select-button { grid-template-columns: minmax(0, 1fr) auto 15px; min-height: 44px; padding: 10px 11px 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.facet-select-button:disabled { opacity: 1; cursor: progress; }
.facet-select-button:hover, .facet-select-button[aria-expanded="true"] { border-color: var(--green); }
.facet-select-button:focus-visible { outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgba(21,75,54,.1); }
.facet-option-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facet-option-count { min-width: 2ch; color: #778078; font-size: 11px; font-weight: 700; line-height: 1; text-align: right; font-variant-numeric: tabular-nums; }
.facet-select-arrow { width: 7px; height: 7px; justify-self: center; border-right: 1.5px solid var(--green); border-bottom: 1.5px solid var(--green); transform: rotate(45deg) translate(-1px, -1px); transition: transform .15s ease; }
.facet-select-button[aria-expanded="true"] .facet-select-arrow { transform: rotate(225deg) translate(-1px, -1px); }
.facet-select-list { position: absolute; z-index: 40; top: calc(100% + 5px); left: 0; right: 0; max-height: min(330px, 52vh); overflow-y: auto; padding: 5px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-shadow: 0 16px 38px rgba(24,34,29,.16); }
.facet-select-option { min-height: 36px; padding: 7px 9px; border: 0; border-radius: 7px; }
.facet-select-option:hover, .facet-select-option:focus-visible { outline: 0; background: #f0f4df; }
.facet-select-option[aria-selected="true"] { color: white; background: var(--green); font-weight: 700; }
.facet-select-option[aria-selected="true"] .facet-option-count { color: rgba(255,255,255,.78); }
.facet-select-button.facet-is-loading { grid-template-columns: minmax(0, 1fr) 18px; border-color: #d9d5cb; background: rgba(255,253,248,.72); }
.facet-loading-placeholder { width: min(58%, 115px); height: 7px; border-radius: 999px; background: linear-gradient(90deg, #e4e1d9 20%, #f2efe8 50%, #e4e1d9 80%); background-size: 220% 100%; animation: facet-loading-sheen 1.25s ease-in-out infinite; }
.facet-loading-spinner.android-loading-spinner { width: 17px; height: 17px; margin: 0; color: var(--green); }
@keyframes facet-loading-sheen { to { background-position: -220% 0; } }
@media (prefers-reduced-motion: reduce) { .facet-loading-placeholder { animation: none; } }
.check { display: flex; gap: 10px; align-items: start; margin-top: 19px; color: var(--muted); cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--green); }
.results-heading { align-items: end; margin-bottom: 27px; }
.results-heading h2 { margin-top: 5px; }
.sort { display: grid; grid-template-columns: auto minmax(180px, 240px); gap: 10px; align-items: center; color: var(--muted); font-size: 13px; }

.status-card { min-height: 240px; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 40px; text-align: left; border: 1px dashed #c9c4b8; border-radius: 22px; background: rgba(255,253,248,.55); }
.status-card strong { font: 700 18px system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.status-card p { margin: 4px 0 0; color: var(--muted); }
.status-icon { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 15px; color: var(--green); background: var(--lime); font-size: 23px; font-weight: 700; }
.android-loading-spinner { width: 18px; height: 18px; display: inline-grid; place-items: center; flex: 0 0 18px; color: currentColor; vertical-align: -3px; }
.android-loading-spinner svg { width: 18px; height: 18px; display: block; overflow: visible; animation: sweeper-spin .72s linear infinite; }
.android-loading-spinner-track, .android-loading-spinner-arc { fill: none; stroke: currentColor; stroke-width: 2.5; }
.android-loading-spinner-track { opacity: .22; }
.is-loading-message { cursor: progress; }
.updated.is-loading-message, button.is-loading-message { display: inline-flex; align-items: center; gap: 9px; }
.home-status.is-loading-message, [role="status"].is-loading-message, [id$="Status"].is-loading-message, [id$="Progress"].is-loading-message { display: flex; align-items: center; gap: 10px; }
.status-icon.is-loading-indicator-host { position: relative; overflow: hidden; font-size: 0; }
@media (prefers-reduced-motion: reduce) { .android-loading-spinner svg { animation-duration: 1.6s; } }
.category-page { min-height: calc(100vh - 150px); padding: 38px clamp(20px, 5vw, 72px) 80px; }
.category-breadcrumb { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 25px; color: var(--green); font-weight: 700; text-decoration: none; }
.category-breadcrumb:hover { text-decoration: underline; }
.category-page-heading { display: flex; align-items: end; justify-content: space-between; gap: 35px; margin-bottom: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.category-page-heading h1 { margin: 7px 0 7px; font: 800 clamp(36px, 5vw, 62px)/1.02 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: -.05em; }
.category-page-heading p { margin: 0; color: var(--muted); font-size: 16px; }
.category-page-heading .sort { min-width: min(100%, 370px); grid-template-columns: 1fr; gap: 7px; }
.category-results-meta { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 20px; color: var(--muted); }
.category-results-meta strong { color: var(--ink); }
.load-more-wrap { display: flex; justify-content: center; padding-top: 34px; }
.load-more-button { min-width: 220px; padding: 13px 24px; border: 1px solid var(--green); border-radius: 12px; color: var(--green); background: transparent; font-weight: 800; }
.load-more-button:hover { color: white; background: var(--green); }
.load-more-button:disabled { opacity: .55; cursor: wait; }

.interests-page { min-height: calc(100vh - 150px); padding: 38px clamp(20px, 5vw, 72px) 80px; }
.interests-heading { max-width: 800px; margin-bottom: 32px; }
.interests-heading h1 { margin: 8px 0; font: 800 clamp(40px, 6vw, 68px)/1 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: -.05em; }
.interests-heading p { color: var(--muted); font-size: 17px; }
.interest-sections { display: grid; gap: 28px; }
.interest-section .deal-strip { min-height: 310px; }
.interest-section .interest-offers-status { width: 100%; min-height: 260px; display: grid; place-items: center; }
.interest-actions { display: flex; gap: 8px; }
.interest-actions button { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: white; font-weight: 700; }
.interest-actions .interest-alert.active { color: #7a5900; border-color: #e7c657; background: #fff8d9; }
.interest-actions .interest-delete { color: #a33e29; }
.product-link { text-decoration: none; }

.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 26px clamp(20px, 5vw, 72px); color: var(--muted); border-top: 1px solid var(--line); font-size: 13px; }
.site-footer span:first-child { color: var(--ink); font-weight: 700; }

.auth-page { min-height: 100vh; background: var(--green); }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1.08fr .92fr; }
.auth-intro { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(35px, 6vw, 78px); color: white; background: radial-gradient(circle at 70% 30%, rgba(217,243,106,.22), transparent 28%), var(--green); }
.auth-intro .brand { color: white; }
.auth-intro .brand-mark { color: var(--green); background: var(--lime); }
.auth-intro h1 { margin: 16px 0 20px; font: 800 clamp(42px, 5vw, 72px)/1.02 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: -.05em; }
.auth-intro h1 em { color: var(--lime); font-style: normal; }
.auth-intro p { max-width: 580px; color: rgba(255,255,255,.7); font-size: 18px; }
.auth-intro small { color: rgba(255,255,255,.55); }
.login-panel { display: grid; place-items: center; padding: 30px; background: var(--paper); }
.login-card { width: min(100%, 430px); padding: clamp(28px, 4vw, 48px); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.login-card h2 { margin: 7px 0 4px; font: 800 34px system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.login-card > div > p { margin: 0 0 22px; color: var(--muted); }
.field input { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; outline: 0; }
.field input:focus, .field select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(21,75,54,.1); }
.primary-button { display: inline-flex; justify-content: center; width: 100%; margin-top: 24px; padding: 13px 18px; color: white; background: var(--green); border: 0; border-radius: 11px; text-decoration: none; font-weight: 700; }
.alert { margin: 20px 0; padding: 12px 15px; border-radius: 10px; font-size: 14px; }
.alert.error { color: #8d2e1b; background: #fbe5df; }
.alert.success { color: var(--green); background: #e5f2db; }

.settings-page { max-width: 1180px; margin: 0 auto; padding: 58px 24px 90px; }
.narrow-settings { max-width: 650px; }
.settings-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; }
.settings-heading h1 { margin: 8px 0 3px; font: 800 44px system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: -.04em; }
.settings-heading p { margin: 0; color: var(--muted); }
.plus-button { display: flex; align-items: center; gap: 9px; padding: 11px 17px; border: 0; border-radius: 12px; color: white; background: var(--green); font-weight: 700; }
.plus-button span { font-size: 22px; line-height: 1; }
.settings-card, .account-card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 8px 30px rgba(24,34,29,.04); }
.form-drawer { margin-bottom: 22px; }
.form-drawer h2 { margin-top: 0; }
.settings-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.settings-form .primary-button { align-self: end; height: 45px; }
.input-action { display: flex; }
.input-action input { border-radius: 10px 0 0 10px; }
.input-action button { border: 1px solid var(--line); border-left: 0; border-radius: 0 10px 10px 0; background: var(--paper); font-weight: 600; }
.table-card { overflow-x: auto; }
.performance-page { display: flex; flex-direction: column; gap: 22px; }
.performance-page .settings-heading { margin-bottom: 10px; }
.performance-page .settings-card { margin: 0; }
.performance-page .status-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.performance-page .status-stats > div { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; padding: 15px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.performance-page .status-stats span { color: var(--muted); font-size: 12px; line-height: 1.25; }
.performance-page .status-stats strong { display: block; max-width: 100%; overflow-wrap: anywhere; font-size: 19px; line-height: 1.2; }
.performance-page .status-stats small { display: block; color: var(--muted); line-height: 1.35; }
.performance-page .settings-card > h2:first-child { margin-top: 0; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 15px 12px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
td strong, td small { display: block; }
td small { color: var(--muted); }
.pill { padding: 5px 9px; border-radius: 999px; background: #e8eddd; font-size: 12px; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.catalog-dashboard { margin-bottom: 44px; }
.catalog-dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.catalog-dashboard-heading > div:first-child { max-width: 770px; }
.catalog-service-status { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; padding: 10px 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.catalog-service-status > span { width: 10px; height: 10px; border-radius: 50%; background: #c17721; box-shadow: 0 0 0 4px #f7e9d5; }
.catalog-service-status.is-success > span { background: #3d9760; box-shadow: 0 0 0 4px #e1f2e6; }
.catalog-service-status strong, .catalog-service-status small { display: block; }
.catalog-service-status strong { font-size: 12px; }
.catalog-service-status small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.catalog-health-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.catalog-health-card { overflow: hidden; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 8px 30px rgba(24,34,29,.04); }
.catalog-health-card.is-warning { border-color: #e4ca97; }
.catalog-health-card.is-critical { border-color: #e9aa9b; }
.catalog-health-card > header { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.catalog-health-identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.catalog-health-logo { width: 43px; height: 43px; display: grid; place-items: center; flex: 0 0 43px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.catalog-health-logo img { width: 100%; height: 100%; object-fit: contain; }
.catalog-health-identity h3 { margin: 0; font-size: 17px; }
.catalog-health-identity small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.catalog-health-pill { padding: 5px 8px; border-radius: 999px; color: var(--green); background: #edf5dc; font-size: 12px; }
.is-warning .catalog-health-pill { color: #8c5915; background: #fff0d5; }
.is-critical .catalog-health-pill { color: #9a351e; background: #ffe4dd; }
.catalog-progress { display: block; width: 100%; height: 4px; margin-top: 14px; overflow: hidden; border: 0; border-radius: 999px; background: rgba(25,86,63,.16); appearance: none; -webkit-appearance: none; }
.catalog-progress::-webkit-progress-bar { border-radius: 999px; background: rgba(25,86,63,.16); }
.catalog-progress::-webkit-progress-value { border-radius: 999px; background: linear-gradient(90deg, #19563f, #2d765c); }
.catalog-progress::-moz-progress-bar { border-radius: 999px; background: linear-gradient(90deg, #19563f, #2d765c); }
.is-warning .catalog-progress,
.is-warning .catalog-progress::-webkit-progress-bar { background: #e2c38f; }
.is-warning .catalog-progress::-webkit-progress-value,
.is-warning .catalog-progress::-moz-progress-bar { background: linear-gradient(90deg, #7d4c0e, #aa6b17); }
.is-critical .catalog-progress,
.is-critical .catalog-progress::-webkit-progress-bar { background: #efc5ba; }
.is-critical .catalog-progress::-webkit-progress-value,
.is-critical .catalog-progress::-moz-progress-bar { background: linear-gradient(90deg, #a33d28, #cc563e); }
.catalog-progress-copy { min-height: 30px; margin: 7px 0 15px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.catalog-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border: 1px solid #ece9e0; border-radius: 13px; overflow: hidden; }
.catalog-stats > div { min-width: 0; padding: 11px; background: #fcfbf7; }
.catalog-stats > div:nth-child(n+4) { border-top: 1px solid #ece9e0; }
.catalog-stats > div:not(:nth-child(3n+1)) { border-left: 1px solid #ece9e0; }
.catalog-stats dt { color: var(--muted); font-size: 9px; }
.catalog-stats dd { overflow: hidden; margin: 4px 0 0; font-size: 13px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.catalog-health-card > footer { margin-top: 13px; }
.catalog-health-card > footer p { margin: 0; color: var(--ink); font-size: 11px; line-height: 1.45; }
.catalog-health-card > footer small { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.catalog-method-note { margin: 15px 0 0; padding: 14px 16px; border-left: 4px solid var(--green); border-radius: 0 12px 12px 0; color: var(--muted); background: #f3f6ea; font-size: 11px; line-height: 1.5; }
.catalog-method-note strong { color: var(--ink); }
.account-title { display: flex; align-items: center; gap: 12px; }
.account-title h2 { margin: 0; font: 700 19px system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.account-title p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.source-monogram { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--green); background: var(--lime); font-weight: 800; font-size: 20px; }
.source-logo { position: relative; width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; color: var(--green); background: white; font-weight: 800; font-size: 20px; }
.source-logo img { position: absolute; inset: 7px; width: calc(100% - 14px); height: calc(100% - 14px); object-fit: contain; background: white; }
.connection-dot { width: 9px; height: 9px; margin-left: auto; border-radius: 50%; background: #bbb; }
.connection-dot.connected { background: #48a168; box-shadow: 0 0 0 4px #e1f2e6; }
.credential-form { margin-top: 18px; }
.oauth-connection { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; background: #faf8f1; }
.oauth-connection > div { min-width: 0; }
.oauth-connection strong, .oauth-connection small { display: block; }
.oauth-connection strong { font-size: 13px; }
.oauth-connection small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.oauth-status-dot { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; background: #aaa; box-shadow: 0 0 0 4px #eceae3; }
.oauth-connection.is-connected { border-color: #b8d9c1; background: #f0f8ed; }
.oauth-connection.is-connected .oauth-status-dot { background: #48a168; box-shadow: 0 0 0 4px #dcefe1; }
.oauth-action-form { margin-top: 10px; }
.oauth-action-form .primary-button, .oauth-action-form .secondary-button { width: 100%; margin: 0; cursor: pointer; }
.oauth-error { display: block; margin-top: 8px; color: #a33e29; line-height: 1.4; }
.sezamo-connection-copy { margin-top: 0; }
.sezamo-credential-form { margin-top: 12px; }
.sezamo-credential-form .field { margin-top: 12px; }
.sezamo-credential-form .primary-button { margin-top: 14px; }
.sezamo-credential-details { margin-top: 12px; border-top: 1px solid var(--line); }
.sezamo-credential-details summary { padding-top: 12px; color: var(--green); font-size: 12px; font-weight: 800; cursor: pointer; }
.sezamo-remove-form { margin-top: 10px; text-align: center; }
.sezamo-remove-form button { padding: 6px 8px; border: 0; color: #9b4334; background: transparent; font-size: 11px; text-decoration: underline; cursor: pointer; }
.source-toggle { margin: 18px -24px 0; padding: 14px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #faf8f1; }
.delivery-profile-toggle { margin: 0 -24px; padding: 14px 24px; border-bottom: 1px solid var(--line); background: #f3f7e7; }
.delivery-profile-toggle small { display: block; margin: 7px 0 0 52px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.delivery-matrix { margin-top: 28px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.delivery-matrix > summary { cursor: pointer; list-style: none; }
.delivery-matrix > summary::-webkit-details-marker { display: none; }
.delivery-matrix > summary span { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; }
.delivery-matrix > summary small { color: var(--muted); font-weight: 400; }
.delivery-matrix-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.delivery-matrix-grid article { padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fcfbf7; }
.delivery-matrix-grid header, .delivery-matrix-grid footer { display: flex; justify-content: space-between; gap: 12px; }
.delivery-matrix-grid header div > *, .delivery-matrix-grid li small { display: block; }
.delivery-matrix-grid header small, .delivery-matrix-grid li small, .delivery-matrix-grid p, .delivery-matrix-grid footer { color: var(--muted); font-size: 11px; }
.delivery-matrix-grid header > span { align-self: flex-start; padding: 3px 7px; border-radius: 999px; background: #edf2df; color: var(--green); font-size: 10px; font-weight: 800; }
.delivery-matrix-grid ul { margin: 12px 0; padding-left: 18px; font-size: 12px; }
.delivery-matrix-grid li + li { margin-top: 6px; }
.delivery-matrix-grid p { min-height: 31px; margin: 0 0 12px; line-height: 1.45; }
.delivery-matrix-grid footer a { color: var(--green); font-weight: 800; }

@media (max-width: 760px) {
    .delivery-matrix-grid { grid-template-columns: 1fr; }
    .delivery-matrix > summary span { display: block; }
    .delivery-matrix > summary small { display: block; margin-top: 4px; }
}
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch > span { position: relative; width: 42px; height: 24px; flex: 0 0 auto; border-radius: 999px; background: #c9cbc6; transition: background .2s ease; }
.switch > span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: white; box-shadow: 0 1px 4px rgba(0,0,0,.22); transition: transform .2s ease; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch strong { font-size: 13px; }
.remove-form { margin-top: 12px; text-align: center; }
.remove-form button { color: #a33e29; border: 0; background: none; font-size: 12px; text-decoration: underline; }
.simple-message { width: min(90%, 520px); margin: 15vh auto; padding: 45px; border-radius: 24px; text-align: center; background: var(--surface); }
.table-action, .back-link { color: var(--green); font-weight: 700; text-decoration: none; }
.table-action:hover, .back-link:hover { text-decoration: underline; }
.back-link { display: inline-block; margin-bottom: 22px; }
.user-edit-heading .pill { align-self: center; }
.settings-section-heading { margin: 35px 0 20px; }
.settings-section-heading h2 { margin: 5px 0 3px; font: 800 28px system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: -.03em; }
.settings-section-heading p { max-width: 760px; margin: 0; color: var(--muted); }

.weekly-basket-page { max-width: 980px; }
.weekly-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.weekly-overview > div { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.weekly-overview small, .weekly-overview span { display: block; color: var(--muted); }
.weekly-overview strong { display: block; margin: 6px 0; font: 800 20px system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.weekly-overview span { font-size: 12px; line-height: 1.45; }
.weekly-basket-form { padding: 28px; }
.weekly-switch-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.weekly-switch-row h2 { margin: 0 0 3px; font: 800 25px system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.weekly-switch-row p { margin: 0; color: var(--muted); }
.weekday-picker { margin: 26px 0 0; padding: 0; border: 0; }
.weekday-picker legend { margin-bottom: 12px; font-weight: 800; }
.weekday-picker > div { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.weekday-picker label { cursor: pointer; }
.weekday-picker input { position: absolute; opacity: 0; pointer-events: none; }
.weekday-picker span { display: block; padding: 11px 6px; border: 1px solid var(--line); border-radius: 10px; text-align: center; background: white; font-size: 13px; font-weight: 700; }
.weekday-picker input:checked + span { color: white; border-color: var(--green); background: var(--green); box-shadow: 0 0 0 3px rgba(21,75,54,.1); }
.weekly-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.weekly-fields .field small { display: block; margin-top: 6px; color: var(--muted); }
.weekly-explainer { margin-top: 24px; padding: 18px 20px; border-radius: 14px; background: #f3f5e8; }
.weekly-explainer ol { margin: 10px 0 0; padding-left: 20px; color: var(--muted); }
.weekly-explainer li + li { margin-top: 5px; }
.weekly-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.weekly-actions .primary-button { margin: 0; }
.secondary-button { display: inline-flex; align-items: center; justify-content: center; padding: 12px 17px; border: 1px solid var(--green); border-radius: 11px; color: var(--green); background: white; font-weight: 800; }
.secondary-button:disabled { border-color: #d9ddd3; color: #8b918a; background: #eef0ea; cursor: not-allowed; }
.secondary-button.is-loading-message:disabled { cursor: wait; }

.basket-warnings { margin-top: 14px; padding: 11px 14px; border-radius: 12px; color: #745c16; background: #fff5cf; font-size: 13px; }
.basket-warnings p { margin: 0; }
.basket-warnings p + p { margin-top: 6px; }
.basket-open-all { margin-top: 18px; }
.basket-clear { display: block; margin: 13px auto 0; border: 0; color: var(--muted); background: none; text-decoration: underline; }

@media (max-width: 760px) {
    .site-header { gap: 12px; padding-inline: 16px; }
    .header-actions, .account-nav { gap: 9px; }
    .updated { display: none; }
    .catalog-mode-label { max-width: 105px; font-size: 11px; }
    .hero { padding-top: 55px; }
    .home-feed-heading { align-items: stretch; flex-direction: column; }
    .home-controls { width: 100%; min-width: 0; }
    .preference-list li { grid-template-columns: 38px 1fr; }
    .preference-list label { grid-column: 2; }
    .workspace { grid-template-columns: 1fr; }
    .filters { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 0 15px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
    .filter-heading { grid-column: 1 / -1; }
    .results-heading { align-items: start; gap: 20px; }
    .desktop-nav { display: none; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-intro { min-height: 42vh; }
    .auth-intro small { display: none; }
    .settings-form, .account-grid, .catalog-health-grid { grid-template-columns: 1fr; }
    .catalog-dashboard-heading { align-items: flex-start; flex-direction: column; }
    .weekly-overview { grid-template-columns: 1fr; }
    .weekday-picker > div { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .weekly-fields, .weekly-actions { grid-template-columns: 1fr; }
    .account-nav > span { display: none; }
    .sort { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
    .site-header { min-height: 64px; gap: 8px; padding: 8px 14px; }
    .brand { gap: 8px; font-size: 16px; letter-spacing: -.025em; }
    .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
    .brand > span:last-child strong { display: none; }
    .catalog-stats { grid-template-columns: 1fr 1fr; }
    .catalog-stats > div:nth-child(n+3) { border-top: 1px solid #ece9e0; }
    .catalog-stats > div:nth-child(odd) { border-left: 0; }
    .catalog-stats > div:nth-child(even) { border-left: 1px solid #ece9e0; }
    .header-actions, .account-nav { gap: 7px; }
    .catalog-mode-switch { min-height: 40px; gap: 6px; padding: 5px 7px 5px 9px; }
    .catalog-mode-label { max-width: 72px; font-size: 10px; }
    .catalog-mode-track { width: 34px; height: 20px; }
    .catalog-mode-track span { width: 14px; height: 14px; }
    .catalog-mode-switch[aria-checked="true"] .catalog-mode-track span { transform: translateX(14px); }
    .basket-button { min-height: 42px; padding: 8px 9px 8px 12px; }
    .basket-label-long { display: none; }
    .basket-label-short { display: inline; }
    .basket-count { min-width: 23px; height: 23px; margin-left: 7px; padding: 0 5px; font-size: 12px; }
    .main-menu > summary { width: 42px; min-height: 42px; padding: 0; border-radius: 13px; }
    .menu-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
    .menu-popover { position: fixed; top: 72px; right: 14px; left: 14px; width: auto; max-height: calc(100vh - 86px); overflow-y: auto; }
    .hero h1 { font-size: 43px; }
    .home-feed { padding: 38px 14px 55px; }
    .home-controls { align-items: stretch; flex-direction: column; }
    .home-controls label { min-width: 0; }
    .category-section { padding: 17px; border-radius: 18px; }
    .category-section-heading { align-items: start; flex-direction: column; gap: 6px; }
    .category-actions { width: 100%; justify-content: space-between; }
    .interest-actions { width: 100%; flex-wrap: wrap; }
    .search { align-items: stretch; flex-direction: column; }
    .search button { padding: 12px; }
    .filters { grid-template-columns: 1fr; }
    .filter-heading { grid-column: auto; }
    .results-heading { flex-direction: column; }
    .sort { width: 100%; }
    .category-page { padding: 25px 14px 55px; }
    .category-page-heading { align-items: stretch; flex-direction: column; }
    .category-page-heading .sort { min-width: 0; }
    .category-results-meta { align-items: start; flex-direction: column; gap: 4px; }
    .site-footer { flex-direction: column; }
}

@media (max-width: 420px) {
    .brand > span:last-child { display: none; }
    .basket-button { width: 42px; min-width: 42px; padding: 0; justify-content: center; }
    .basket-label { display: none; }
    .basket-count { margin-left: 0; }
}

/* Search lists */
.search-lists-body { padding-bottom: 112px; }
.search-lists-page { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
.lists-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); gap: 54px; align-items: center; padding: 74px 0 62px; }
.lists-hero h1 { max-width: 760px; margin: 12px 0 20px; font: 800 clamp(48px, 6vw, 86px)/.94 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: -.065em; }
.lists-hero h1 em { color: var(--green); font-style: normal; }
.lists-hero > div > p { max-width: 720px; margin: 0; color: var(--muted); font-size: 19px; line-height: 1.55; }
.lists-how-it-works { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.lists-how-it-works span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--green); background: rgba(255,255,255,.72); font-size: 11px; font-weight: 800; }
.lists-how-it-works b { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font-size: 10px; }
.new-list-form { padding: 26px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.82); box-shadow: 0 18px 55px rgba(21,75,54,.08); }
.new-list-form > label > span, .list-color-picker legend { display: block; margin-bottom: 9px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.new-list-form input[type="text"], .new-list-form input:not([type]) { width: 100%; }
.new-list-form > label > input { width: 100%; padding: 14px 15px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: white; font: 700 16px system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.list-color-picker { margin: 20px 0; padding: 0; border: 0; }
.list-color-picker > div { display: flex; flex-wrap: wrap; gap: 10px; }
.color-option { position: relative; display: grid; justify-items: center; gap: 5px; cursor: pointer; }
.color-option input { position: absolute; opacity: 0; pointer-events: none; }
.color-option > span, .inline-color { width: 30px; height: 30px; border: 3px solid white; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.color-option small { color: var(--muted); font-size: 10px; }
.color-option input:checked + span { box-shadow: 0 0 0 3px var(--green); }
.color-lime > span, .inline-color.color-lime, .color-lime .list-color-dot { background: #cfe950; }
.color-coral > span, .inline-color.color-coral, .color-coral .list-color-dot { background: #f0643c; }
.color-sky > span, .inline-color.color-sky, .color-sky .list-color-dot { background: #53a7c7; }
.color-violet > span, .inline-color.color-violet, .color-violet .list-color-dot { background: #8a6fbe; }
.color-amber > span, .inline-color.color-amber, .color-amber .list-color-dot { background: #e7ab35; }
.new-list-form > button { width: 100%; padding: 14px; border: 0; border-radius: 12px; color: white; background: var(--green); font-size: 15px; font-weight: 800; }
.new-list-form button:disabled { opacity: .55; }
.lists-workspace { margin-bottom: 56px; }
.lists-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.lists-heading h2 { margin: 6px 0 4px; font: 800 40px system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: -.045em; }
.lists-heading p { margin: 0; color: var(--muted); }
.lists-heading-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.global-selector { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--green); background: white; cursor: pointer; font-size: 12px; }
.global-selector input, .item-selector input { position: absolute; opacity: 0; }
.global-selector > span, .item-selector > span { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: white; }
.global-selector input:checked + span, .global-selector input:indeterminate + span, .item-selector input:checked + span { border-color: var(--green); background: var(--green); }
.global-selector input:checked + span::after, .item-selector input:checked + span::after { content: '✓'; color: white; font-size: 12px; font-weight: 900; }
.global-selector input:indeterminate + span::after { content: '−'; color: white; font-size: 13px; font-weight: 900; }
.global-selector:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.decimal-note { padding: 9px 13px; border: 1px solid #d7e6a1; border-radius: 999px; color: var(--green); background: #f5fadf; font-size: 12px; font-weight: 800; white-space: nowrap; }
.lists-status { padding: 22px; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); text-align: center; }
.lists-status.error { color: #9a351e; border-color: #f2ad9c; background: #fff0eb; }
.search-list-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.search-list-card { position: relative; overflow: hidden; padding: 21px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.88); box-shadow: 0 12px 38px rgba(26,52,41,.055); transition: border-color .2s, transform .2s, box-shadow .2s; }
.search-list-card::before { position: absolute; inset: 0 0 auto; height: 5px; content: ''; background: var(--list-accent, #cfe950); }
.search-list-card.color-lime { --list-accent: #cfe950; }
.search-list-card.color-coral { --list-accent: #f0643c; }
.search-list-card.color-sky { --list-accent: #53a7c7; }
.search-list-card.color-violet { --list-accent: #8a6fbe; }
.search-list-card.color-amber { --list-accent: #e7ab35; }
.search-list-card.blacklist-card { --list-accent: #202d27; margin-top: 18px; border-color: #d9d3c7; background: linear-gradient(135deg, #fffdf8, #f6f1e8); }
.search-list-card.blacklist-card .list-title-row { position: relative; grid-template-columns: 1fr; padding-left: 31px; }
.search-list-card.blacklist-card .list-title-row::before { content: '⛔'; position: absolute; left: 0; font-size: 20px; }
.search-list-card.blacklist-card .list-color-dot { display: none; }
.search-list-card.selected { border-color: var(--green); box-shadow: 0 0 0 3px rgba(21,75,54,.08), 0 18px 42px rgba(21,75,54,.11); transform: translateY(-2px); }
.list-card-top { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.list-selector { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 800; cursor: pointer; }
.list-selector input { position: absolute; opacity: 0; }
.list-selector > span { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: white; }
.list-selector input:checked + span { border-color: var(--green); background: var(--green); }
.list-selector input:checked + span::after { content: '✓'; color: white; font-size: 12px; }
.list-title-row { grid-column: 1 / -1; display: grid; grid-template-columns: 20px 1fr; align-items: center; gap: 10px; }
.list-color-dot { width: 18px; height: 18px; border: 3px solid white; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.list-name-input { min-width: 0; padding: 5px 2px; border: 0; border-bottom: 1px solid transparent; color: var(--ink); background: transparent; font: 800 24px system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: -.035em; }
.list-name-input:focus { outline: 0; border-bottom-color: var(--green); }
.list-card-actions { grid-column: 2; grid-row: 1; display: flex; gap: 5px; }
.list-card-actions button { padding: 5px 7px; border: 0; color: var(--muted); background: transparent; font-size: 11px; font-weight: 700; }
.list-card-actions .delete-list { color: #a54b35; }
.inline-color-picker { display: flex; gap: 7px; margin: 13px 0 15px 30px; }
.inline-color { width: 18px; height: 18px; padding: 0; border-width: 2px; }
.inline-color[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--green); }
.system-list-description { max-width: 840px; margin: 8px 0 16px 30px; padding: 12px 14px; border-left: 3px solid #202d27; border-radius: 0 10px 10px 0; color: #505a54; background: #f2eee5; font-size: 12px; line-height: 1.5; }
.list-item-count { margin-bottom: 11px; padding-top: 12px; border-top: 1px solid #eeebe3; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.list-items { display: grid; gap: 7px; }
.search-list-item { display: grid; grid-template-columns: 25px minmax(0, 1fr) auto 28px; align-items: center; gap: 7px; padding: 8px 8px 8px 10px; border: 1px solid #e8e4da; border-radius: 11px; background: #fbfaf6; }
.search-list-item:has(.item-selector input:checked) { border-color: rgba(21,75,54,.42); background: #f7faec; }
.item-selector { display: grid; cursor: pointer; }
.blacklist-item { grid-template-columns: minmax(0, 1fr) auto 28px; border-color: #e1d5ce; background: #fff9f5; }
.search-list-item input { min-width: 0; padding: 4px; border: 0; border-bottom: 1px solid transparent; color: var(--ink); background: transparent; font-size: 14px; }
.search-list-item input:focus { outline: 0; border-bottom-color: var(--green); }
.item-save-state { color: var(--muted); font-size: 9px; }
.search-list-item button { width: 27px; height: 27px; padding: 0; border: 0; border-radius: 8px; color: #9d5140; background: transparent; font-size: 18px; }
.search-list-item button:hover { background: #fff0eb; }
.empty-list-items { margin: 0; padding: 14px; border-radius: 10px; color: var(--muted); background: #f7f5ef; font-size: 12px; line-height: 1.45; }
.add-list-item { display: grid; grid-template-columns: 1fr 38px; gap: 7px; margin-top: 10px; }
.add-list-item input { min-width: 0; padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.add-list-item button { border: 0; border-radius: 10px; color: var(--green); background: var(--lime); font-size: 22px; font-weight: 700; }
.list-selection-bar { position: fixed; z-index: 30; right: 24px; bottom: 22px; left: 24px; width: min(760px, calc(100% - 48px)); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 16px 14px 21px; border: 1px solid rgba(255,255,255,.25); border-radius: 18px; color: white; background: #143f30; box-shadow: 0 18px 55px rgba(9,35,25,.33); }
.list-selection-bar[hidden] { display: none; }
.list-selection-bar strong, .list-selection-bar small { display: block; }
.list-selection-bar small { margin-top: 3px; color: rgba(255,255,255,.68); font-size: 11px; }
.list-selection-bar button { min-width: 220px; padding: 13px 24px; border: 0; border-radius: 12px; color: var(--green); background: var(--lime); font-size: 15px; font-weight: 900; }
.list-selection-bar button:disabled { color: rgba(20,63,48,.52); background: #dce2d4; cursor: not-allowed; }
.selection-bar-actions { display: flex; gap: 8px; align-items: center; }
.list-selection-bar .clear-selection { min-width: auto; padding: 12px 14px; border: 1px solid rgba(255,255,255,.28); color: white; background: transparent; font-size: 12px; }
.list-selection-bar .clear-selection:disabled { color: rgba(255,255,255,.42); background: transparent; }
.optimization-results { margin: 20px 0 70px; padding: 30px; border: 1px solid var(--line); border-radius: 28px; background: #fffdf8; box-shadow: 0 25px 70px rgba(21,75,54,.1); }
.optimization-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.optimization-heading h2 { margin: 6px 0; font: 800 43px system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: -.05em; }
.optimization-heading p { margin: 0; color: var(--muted); }
.optimization-heading > button { padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: white; }
.optimization-summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 26px 0; border: 1px solid var(--line); border-radius: 17px; overflow: hidden; }
.optimization-summary > div { min-width: 0; padding: 15px; background: white; }
.optimization-summary > div + div { border-left: 1px solid var(--line); }
.optimization-summary small, .optimization-summary strong, .optimization-summary span { display: block; }
.optimization-summary small { color: var(--muted); font-size: 11px; }
.optimization-summary strong { margin-top: 3px; font-size: 18px; }
.optimization-summary span { margin-top: 4px; color: #8b6c1a; font-size: 9px; }
.source-coverage { margin: -8px 0 22px; padding: 16px; border: 1px solid var(--line); border-radius: 17px; background: #f8f7f1; }
.source-coverage[hidden] { display: none; }
.source-coverage-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.source-coverage-heading strong, .source-coverage-heading small { display: block; }
.source-coverage-heading small { color: var(--muted); font-size: 10px; text-align: right; }
.source-coverage > section + section { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.source-coverage-query { display: block; margin-bottom: 9px; font-size: 12px; }
.source-coverage-stores { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.source-coverage-store { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 9px; border: 1px solid #dfe4d7; border-radius: 11px; background: white; }
.source-coverage-store img { width: 25px; height: 25px; flex: 0 0 25px; object-fit: contain; }
.source-coverage-store span { min-width: 0; }
.source-coverage-store strong, .source-coverage-store small { display: block; overflow: hidden; text-overflow: ellipsis; }
.source-coverage-store strong { font-size: 10px; white-space: nowrap; }
.source-coverage-store small { margin-top: 2px; color: var(--muted); font-size: 8px; line-height: 1.3; }
.source-coverage-store.is-error, .source-coverage-store.is-unsupported { border-color: #f1b8a9; background: #fff3ef; }
.source-coverage-store.is-cached, .source-coverage-store.is-not_checked { border-style: dashed; }
.unmatched-searches { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-bottom: 18px; padding: 13px; border-radius: 12px; background: #fff2ed; }
.unmatched-searches strong { margin-right: 5px; color: #9a351e; font-size: 12px; }
.unmatched-searches span { padding: 5px 8px; border-radius: 999px; color: #7c3e2e; background: white; font-size: 11px; }
.optimized-store-groups { display: grid; gap: 20px; }
.optimized-store-group { overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: white; }
.optimized-store-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 17px 19px; border-bottom: 1px solid var(--line); background: #f7f6ef; }
.optimized-store-heading > div:first-child { display: flex; align-items: center; gap: 12px; }
.optimized-store-heading img { width: 44px; height: 44px; object-fit: contain; }
.optimized-store-heading span strong, .optimized-store-heading span small, .optimized-delivery strong, .optimized-delivery small { display: block; }
.optimized-store-heading span small, .optimized-delivery small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.optimized-store-heading span .optimized-store-savings { color: #397044; font-weight: 800; }
.optimized-delivery { text-align: right; }
.optimized-products { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.optimized-product { display: grid; grid-template-columns: 74px minmax(0, 1fr) minmax(150px, auto); align-items: center; gap: 13px; padding: 15px 18px; border-bottom: 1px solid #f0ede5; }
.optimized-product:nth-child(odd) { border-right: 1px solid #f0ede5; }
.optimized-product-image { width: 74px; height: 68px; display: grid; place-items: center; border: 1px solid #eeebe3; border-radius: 10px; background: white; }
.optimized-product-image img { width: 90%; height: 90%; object-fit: contain; }
.optimized-product-info { min-width: 0; }
.optimized-product .requested-query, .optimized-product a, .optimized-product span { display: block; }
.optimized-product .requested-query { margin-bottom: 4px; color: #b45334; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.optimized-product a { overflow: hidden; color: var(--ink); font-size: 13px; font-weight: 800; line-height: 1.3; text-decoration: none; text-overflow: ellipsis; }
.optimized-product span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.optimized-product-price { min-width: 145px; text-align: right; }
.optimized-product-price > strong, .optimized-product-price > span { display: block; }
.optimized-product-price > strong { font-size: 14px; white-space: nowrap; }
.optimized-product .optimized-unit-price { margin-top: 3px; color: var(--green); font-size: 11px; font-weight: 800; }
.optimized-quantity { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.optimized-product .optimized-quantity > small { margin: 0; color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.optimized-quantity-controls { display: inline-grid; grid-template-columns: 28px 31px 28px; align-items: center; overflow: hidden; border: 1px solid #cbd4c2; border-radius: 9px; background: white; }
.optimized-quantity-controls button { width: 28px; height: 28px; padding: 0; border: 0; color: var(--green); background: #f4f7eb; font-size: 17px; font-weight: 850; line-height: 1; cursor: pointer; }
.optimized-quantity-controls button:hover:not(:disabled) { background: var(--lime); }
.optimized-quantity-controls button:disabled { color: #aab0a4; background: #f2f2ed; cursor: default; }
.optimized-product .optimized-quantity-value { margin: 0; color: var(--ink); font-size: 12px; text-align: center; }
.optimized-product .optimized-line-total { margin: 0; color: var(--muted); font-size: 9px; white-space: nowrap; }
.show-alternatives { margin-top: 8px; padding: 6px 8px; border: 1px solid #bed36a; border-radius: 8px; color: var(--green); background: #f8fce8; font-size: 10px; font-weight: 800; cursor: pointer; }
.optimized-alternatives { grid-column: 1 / -1; margin: 4px -4px -4px; border: 1px solid #dfe5c7; border-radius: 12px; background: #fbfcf4; overflow: hidden; }
.optimized-alternatives[hidden] { display: none; }
.optimized-alternative { display: grid; grid-template-columns: 90px minmax(0, 1fr) 120px 65px; align-items: center; gap: 12px; padding: 11px 12px; }
.optimized-alternative + .optimized-alternative { border-top: 1px solid #e8eadf; }
.alternative-store { display: flex; align-items: center; gap: 6px; min-width: 0; }
.alternative-store img { width: 27px; height: 27px; object-fit: contain; }
.alternative-store small { overflow: hidden; color: var(--green); font-size: 9px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.optimized-alternative > div:nth-child(2) { min-width: 0; }
.optimized-alternative a, .optimized-alternative span { display: block; }
.optimized-alternative a { overflow: hidden; color: var(--ink); font-size: 11px; font-weight: 800; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.optimized-alternative span { margin-top: 2px; color: var(--muted); font-size: 9px; }
.alternative-prices { text-align: right; }
.alternative-prices strong { display: block; font-size: 12px; }
.alternative-prices span { color: var(--green); font-weight: 800; }
.optimized-alternative > button { padding: 7px 8px; border: 0; border-radius: 8px; color: var(--green); background: var(--lime); font-size: 10px; font-weight: 900; cursor: pointer; }
.optimized-alternative > button:disabled { color: var(--muted); background: #ecece6; cursor: default; }
.delivery-footnote { margin: 0; padding: 11px 18px; color: var(--muted); background: #fcfbf7; font-size: 10px; }
.delivery-footnote a { color: var(--green); font-weight: 800; }
.optimization-order-bar { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-top: 24px; padding: 18px 20px; border-radius: 16px; color: white; background: var(--green); }
.optimization-order-bar strong, .optimization-order-bar small { display: block; }
.optimization-order-bar strong { font-size: 20px; }
.optimization-order-bar small { margin-top: 4px; color: rgba(255,255,255,.65); }
.optimization-order-bar .optimization-savings { color: var(--lime); font-weight: 800; }
.optimization-order-bar button { padding: 13px 18px; border: 0; border-radius: 11px; color: var(--green); background: var(--lime); font-weight: 900; white-space: nowrap; }
.prepared-carts { margin-top: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.prepared-carts a { display: block; padding: 11px; border-radius: 9px; color: white; background: var(--green); text-align: center; text-decoration: none; font-weight: 800; }
.prepared-carts p { margin: 9px 0 0; color: var(--muted); font-size: 12px; }

/* Checkout review */
.checkout-page { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 52px 0 90px; }
.checkout-heading { display: flex; align-items: end; justify-content: space-between; gap: 35px; margin-bottom: 30px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.checkout-heading h1 { margin: 8px 0 10px; font: 800 clamp(45px, 6vw, 72px)/.95 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: -.06em; }
.checkout-heading p { max-width: 760px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.checkout-heading > a { flex: 0 0 auto; color: var(--green); font-size: 13px; font-weight: 800; text-decoration: none; }
.checkout-loading, .checkout-empty { min-height: 180px; display: flex; align-items: center; justify-content: center; gap: 13px; padding: 30px; border: 1px dashed var(--line); border-radius: 20px; background: rgba(255,253,248,.65); text-align: left; }
.checkout-loading strong, .checkout-loading small { display: block; }
.checkout-loading small { margin-top: 3px; color: var(--muted); }
.checkout-empty { flex-direction: column; text-align: center; }
.checkout-empty strong { font-size: 22px; }
.checkout-empty p { margin: 0 0 8px; color: var(--muted); }
.checkout-empty .primary-button { margin: 0; text-decoration: none; }
.checkout-store-list { display: grid; gap: 18px; }
.checkout-store { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 10px 30px rgba(24,34,29,.045); }
.checkout-store > header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 19px; border-bottom: 1px solid var(--line); background: #f4f3eb; }
.checkout-store > header > div { display: flex; align-items: center; gap: 11px; }
.checkout-store > header img { width: 42px; height: 42px; object-fit: contain; }
.checkout-store > header span, .checkout-store > header strong, .checkout-store > header small { display: block; }
.checkout-store > header small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.checkout-store > header > div:last-child { display: block; max-width: 420px; text-align: right; }
.checkout-store-items { display: grid; }
.checkout-item { display: grid; grid-template-columns: 72px minmax(180px, 1fr) 135px minmax(190px, auto); align-items: center; gap: 16px; padding: 14px 18px; }
.checkout-item + .checkout-item { border-top: 1px solid #ece9e0; }
.checkout-item-image { width: 72px; height: 68px; display: grid; place-items: center; overflow: hidden; border: 1px solid #ece9e0; border-radius: 11px; background: white; }
.checkout-item-image img { width: calc(100% - 12px); height: calc(100% - 12px); object-fit: contain; }
.checkout-item-info { min-width: 0; }
.checkout-item-info > a { display: block; color: var(--ink); font-size: 14px; font-weight: 850; line-height: 1.3; text-decoration: none; }
.checkout-item-info > a:hover { color: var(--green); text-decoration: underline; }
.checkout-item-info small, .checkout-item-price small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.checkout-item-remove { margin-top: 7px; padding: 0; border: 0; color: #9a4938; background: transparent; font-size: 10px; text-decoration: underline; }
.checkout-item-price { text-align: right; }
.checkout-item-price strong { font-size: 15px; white-space: nowrap; }
.checkout-item-quantity { display: grid; grid-template-columns: auto auto minmax(72px, auto); align-items: center; justify-content: end; gap: 9px; }
.checkout-item-quantity > small { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.checkout-stepper { display: inline-grid; grid-template-columns: 32px 35px 32px; align-items: center; overflow: hidden; border: 1px solid #c9d2c0; border-radius: 10px; background: white; }
.checkout-stepper button { width: 32px; height: 32px; padding: 0; border: 0; color: var(--green); background: #f1f5e7; font-size: 18px; font-weight: 900; line-height: 1; }
.checkout-stepper button:hover:not(:disabled) { background: var(--lime); }
.checkout-stepper button:disabled { color: #a9afa5; background: #f1f1ec; cursor: default; }
.checkout-stepper strong { text-align: center; font-size: 13px; }
.checkout-line-total { color: var(--green); font-size: 12px; font-weight: 850; text-align: right; white-space: nowrap; }
.checkout-summary { display: grid; grid-template-columns: 1fr 1fr 1.4fr; margin-top: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.checkout-summary > div { padding: 18px 20px; }
.checkout-summary > div + div { border-left: 1px solid var(--line); }
.checkout-summary span, .checkout-summary strong { display: block; }
.checkout-summary span { color: var(--muted); font-size: 11px; }
.checkout-summary strong { margin-top: 3px; font-size: 21px; }
.checkout-summary .checkout-grand-total { color: white; background: var(--green); }
.checkout-summary .checkout-grand-total span { color: rgba(255,255,255,.68); }
.checkout-summary .checkout-grand-total strong { font-size: 24px; }
.checkout-summary > p { grid-column: 1 / -1; margin: 0; padding: 12px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.5; }
.checkout-finalize { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-top: 18px; padding: 20px; border-radius: 18px; color: white; background: #173f30; }
.checkout-finalize-copy { min-width: 0; }
.checkout-finalize strong, .checkout-finalize small { display: block; }
.checkout-finalize strong { font-size: 18px; }
.checkout-finalize small { margin-top: 3px; color: rgba(255,255,255,.68); }
.checkout-finalize .primary-button { min-width: 315px; margin: 0; color: var(--green); background: var(--lime); }
.checkout-extension-state { display: flex; align-items: center; gap: 8px; width: fit-content; margin-top: 12px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 11px; background: rgba(255,255,255,.08); }
.checkout-extension-state::before { content: ''; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: #d5a647; box-shadow: 0 0 0 4px rgba(213,166,71,.14); }
.checkout-extension-state[data-state="checking"]::before { display: none; }
.checkout-extension-state[data-state="current"]::before { background: #aee852; box-shadow: 0 0 0 4px rgba(174,232,82,.14); }
.checkout-extension-state[data-state="missing"]::before, .checkout-extension-state[data-state="outdated"]::before { background: #f2b34f; box-shadow: 0 0 0 4px rgba(242,179,79,.14); }
.checkout-extension-state > span:last-child { min-width: 0; }
.checkout-extension-state b { display: block; font-size: 12px; line-height: 1.25; }
.checkout-extension-state small { margin-top: 2px; font-size: 10px; line-height: 1.35; }
.checkout-extension-state a { color: var(--lime); font-weight: 850; }
.checkout-progress { margin-top: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.checkout-progress > p { margin: 0 0 13px; color: var(--muted); }
.checkout-progress > p a { color: var(--green); font-weight: 800; }
.checkout-progress > div { display: grid; gap: 8px; }
.checkout-progress-store { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid #e2dfd5; border-radius: 12px; color: var(--ink); background: white; text-decoration: none; }
.checkout-progress-store img { width: 35px; height: 35px; object-fit: contain; }
.checkout-progress-store span, .checkout-progress-store strong, .checkout-progress-store small { display: block; }
.checkout-progress-store small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.checkout-progress-store-action { min-height: 34px; padding: 8px 13px; border: 1px solid var(--green); border-radius: 9px; color: white; background: var(--green); font: inherit; font-size: 11px; font-weight: 850; white-space: nowrap; }
.checkout-progress-store-action:hover { border-color: #0e3326; background: #0e3326; }
.checkout-progress-store-action:focus-visible { outline: 3px solid rgba(213,244,91,.72); outline-offset: 2px; }
.checkout-progress-store-action:disabled { border-color: #d9ddd3; color: #8b918a; background: #eef0ea; cursor: not-allowed; }
.checkout-progress-store-action.is-loading-message:disabled { cursor: wait; }
.checkout-progress-warning { margin: 3px 0 0; color: #91432f; font-size: 11px; }
.checkout-progress .secondary-button { width: 100%; margin-top: 12px; }

@media (max-width: 820px) {
    .checkout-item { grid-template-columns: 64px minmax(0, 1fr) auto; }
    .checkout-item-image { width: 64px; height: 62px; }
    .checkout-item-price { text-align: right; }
    .checkout-item-quantity { grid-column: 2 / -1; justify-content: start; }
}
@media (max-width: 600px) {
    .checkout-page { width: min(100% - 24px, 1120px); padding-top: 32px; }
    .checkout-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
    .checkout-store > header { align-items: flex-start; flex-direction: column; }
    .checkout-store > header > div:last-child { padding-left: 53px; text-align: left; }
    .checkout-item { grid-template-columns: 58px minmax(0, 1fr); gap: 11px; padding: 12px; }
    .checkout-item-image { width: 58px; height: 56px; }
    .checkout-item-price { grid-column: 2; text-align: left; }
    .checkout-item-quantity { grid-column: 2; grid-template-columns: auto auto; }
    .checkout-line-total { grid-column: 1 / -1; text-align: left; }
    .checkout-summary { grid-template-columns: 1fr 1fr; }
    .checkout-summary .checkout-grand-total { grid-column: 1 / -1; }
    .checkout-summary > div:nth-child(3) { border-top: 1px solid var(--line); border-left: 0; }
    .checkout-finalize { align-items: stretch; flex-direction: column; }
    .checkout-finalize .primary-button { min-width: 0; width: 100%; }
}

@media (max-width: 1000px) {
    .optimization-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .optimization-summary > div:nth-child(4) { border-left: 0; border-top: 1px solid var(--line); }
    .optimization-summary > div:nth-child(5), .optimization-summary > div:nth-child(6) { border-top: 1px solid var(--line); }
    .source-coverage-stores { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .search-lists-page { width: min(100% - 28px, 1240px); }
    .lists-hero { grid-template-columns: 1fr; gap: 30px; padding: 46px 0; }
    .lists-heading { align-items: start; flex-direction: column; gap: 12px; }
    .lists-heading-actions { justify-content: flex-start; }
    .optimized-products { grid-template-columns: 1fr; }
    .source-coverage-stores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .optimized-product:nth-child(odd) { border-right: 0; }
}
@media (max-width: 560px) {
    .search-lists-body { padding-bottom: 126px; }
    .lists-hero h1 { font-size: 48px; }
    .new-list-form { padding: 20px; border-radius: 20px; }
    .optimization-results { padding: 18px 14px; border-radius: 20px; }
    .optimization-heading h2 { font-size: 34px; }
    .optimization-summary { grid-template-columns: 1fr 1fr; }
    .optimization-summary > div { border-top: 1px solid var(--line); }
    .optimization-summary > div:nth-child(1), .optimization-summary > div:nth-child(2) { border-top: 0; }
    .optimization-summary > div:nth-child(odd) { border-left: 0; }
    .source-coverage-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
    .source-coverage-heading small { text-align: left; }
    .source-coverage-stores { grid-template-columns: 1fr; }
    .optimized-store-heading { align-items: start; flex-direction: column; }
    .optimized-delivery { padding-left: 56px; text-align: left; }
    .optimized-product { grid-template-columns: 62px minmax(0, 1fr); padding: 13px 11px; }
    .optimized-product-image { width: 62px; height: 58px; }
    .optimized-product-price { grid-column: 2; min-width: 0; text-align: left; }
    .optimized-quantity { justify-content: flex-start; flex-wrap: wrap; }
    .optimized-alternative { grid-template-columns: 70px minmax(0, 1fr); gap: 8px; }
    .alternative-prices { text-align: left; }
    .optimized-alternative > button { grid-column: 2; justify-self: start; }
    .optimization-order-bar { align-items: stretch; flex-direction: column; }
    .list-selection-bar { right: 10px; bottom: 10px; left: 10px; width: calc(100% - 20px); padding: 12px; }
    .list-selection-bar small { display: none; }
    .list-selection-bar button { min-width: 105px; padding-inline: 12px; font-size: 13px; }
    .list-selection-bar .clear-selection { min-width: auto; }
}

/* Cart extension */
.extension-page { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0 80px; }
.extension-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); gap: 54px; align-items: center; }
.extension-hero h1 { margin: 12px 0 20px; font: 800 clamp(52px, 6.5vw, 88px)/.93 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: -.065em; }
.extension-hero h1 em { color: var(--green); font-style: normal; }
.extension-hero > div > p { max-width: 700px; margin: 0; color: var(--muted); font-size: 19px; line-height: 1.55; }
.extension-install-card { padding: 27px; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: 0 22px 65px rgba(21,75,54,.11); }
.extension-state { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; }
.extension-state span { padding: 7px 10px; border-radius: 999px; color: #8a5b19; background: #fff0c9; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.extension-state span.connected { color: white; background: var(--green); }
.extension-install-card p { min-height: 50px; margin: 20px 0; color: var(--muted); line-height: 1.5; }
.extension-install-card .primary-button, .extension-install-card .secondary-button { width: 100%; margin: 0; text-decoration: none; }
.extension-install-card .secondary-button { margin-top: 10px; cursor: pointer; }
.extension-install-card .secondary-button.checking::before { content: ''; width: 15px; height: 15px; display: inline-block; margin-right: 9px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -2px; animation: sweeper-spin .7s linear infinite; }
.extension-install-card .secondary-button:disabled { cursor: wait; opacity: .72; }
@keyframes sweeper-spin { to { transform: rotate(360deg); } }
.extension-privacy-link { display: block; margin-top: 14px; color: var(--green); font-size: 12px; font-weight: 800; text-align: center; }
.extension-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; margin-top: 65px; }
.extension-steps > div { padding: 24px; border: 1px solid var(--line); border-radius: 19px; background: rgba(255,255,255,.72); }
.extension-steps > div > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--green); background: var(--lime); font-weight: 900; }
.extension-steps h2 { margin: 17px 0 8px; font-size: 21px; }
.extension-steps p { margin: 0; color: var(--muted); line-height: 1.5; }
.extension-steps code { padding: 2px 5px; border-radius: 5px; background: #ece9df; font-size: 12px; }
.extension-store-readiness { margin-top: 22px; padding: 35px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.78); }
.extension-store-readiness > div:first-child { max-width: 780px; }
.extension-store-readiness h2 { margin: 8px 0 10px; font-size: 32px; letter-spacing: -.04em; }
.extension-store-readiness > div:first-child p { margin: 0; color: var(--muted); line-height: 1.55; }
.extension-store-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 12px; margin-top: 24px; }
.extension-store-grid article { display: flex; flex-direction: column; min-height: 210px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.extension-store-grid article strong { font-size: 18px; }
.extension-store-grid article span { margin-top: 7px; color: var(--green); font-size: 12px; font-weight: 850; line-height: 1.35; }
.extension-store-grid article p { margin: 12px 0 16px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.extension-store-grid article a { margin-top: auto; color: var(--green); font-size: 12px; font-weight: 850; text-decoration: none; }
.extension-privacy-page { max-width: 900px; }
.extension-privacy-page > .brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 58px; color: var(--ink); text-decoration: none; }
.extension-privacy-page > .brand span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--lime); background: var(--green); font-size: 21px; font-weight: 900; }
.extension-privacy-page h1 { margin: 12px 0 22px; font-size: clamp(48px,8vw,82px); line-height: .94; letter-spacing: -.06em; }
.extension-privacy-page h1 em { color: var(--green); font-style: normal; }
.extension-privacy-lead { max-width: 760px; margin: 0 0 38px; color: var(--muted); font-size: 19px; line-height: 1.55; }
.extension-privacy-page section { padding: 25px 0; border-top: 1px solid var(--line); }
.extension-privacy-page section h2 { margin: 0 0 9px; font-size: 22px; }
.extension-privacy-page section p { margin: 0; color: var(--muted); line-height: 1.65; }
.extension-privacy-page section a { color: var(--green); font-weight: 800; }
.extension-privacy-updated { margin-top: 30px; color: var(--muted); font-size: 12px; }
.extension-safety { display: grid; grid-template-columns: .8fr 1.2fr; gap: 45px; margin-top: 22px; padding: 35px; border-radius: 24px; color: white; background: var(--green); }
.extension-safety h2 { margin: 8px 0 0; font-size: 32px; letter-spacing: -.04em; }
.extension-safety ul { margin: 0; padding-left: 20px; color: rgba(255,255,255,.78); line-height: 1.55; }
.extension-safety li + li { margin-top: 9px; }
.credential-use { display: block; margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.45; }

@media (max-width: 760px) {
    .extension-page { width: min(100% - 28px, 1180px); padding-top: 45px; }
    .extension-hero, .extension-safety { grid-template-columns: 1fr; gap: 30px; }
    .extension-steps { grid-template-columns: 1fr; margin-top: 35px; }
    .extension-hero h1 { font-size: 50px; }
}
.taxonomy-source-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px;margin-top:20px}.taxonomy-source-grid article{border:1px solid var(--line,#ddd7c8);border-radius:16px;padding:16px;background:#fff}.taxonomy-source-grid article strong,.taxonomy-source-grid article span,.taxonomy-source-grid article small{display:block}.taxonomy-source-grid article span{margin-top:4px;color:#6b716a}.taxonomy-meter{height:8px;background:#e7e6dc;border-radius:999px;overflow:hidden;margin:12px 0 8px}.taxonomy-meter i{display:block;height:100%;background:#ccef56;border-radius:inherit}.taxonomy-rule{max-width:900px}.taxonomy-page .table-card td small{display:block;color:#777;margin-top:3px}.taxonomy-page .alert{margin-top:16px}
