:root {
  --bg-0: #03111c;
  --bg-1: #071c2b;
  --bg-2: #0d3146;
  --bg-soft: #eef8ff;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --surface-muted: rgba(244, 251, 255, 0.8);
  --surface-dark: rgba(6, 20, 31, 0.9);
  --text-1: #061722;
  --text-2: #274153;
  --text-3: #4f6779;
  --text-muted: #4f6779;
  --text-inverse: #f4fbff;
  --line: rgba(8, 26, 39, 0.12);
  --line-strong: rgba(8, 26, 39, 0.18);
  --brand: #2de1a8;
  --brand-strong: #34c7ff;
  --brand-deep: #0b8f73;
  --brand-ink: #062227;
  --danger: #dd4768;
  --success: #10845d;
  --warning: #cb8b16;
  --radius-2xl: 32px;
  --radius-xl: 24px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-shell: 0 24px 60px rgba(2, 16, 27, 0.18);
  --shadow-card: 0 20px 44px rgba(6, 22, 33, 0.12);
  --shadow-pop: 0 18px 36px rgba(18, 152, 176, 0.24);
  --shadow-soft: 0 10px 26px rgba(5, 24, 36, 0.08);
  --touch-target: 52px;
  --safe-top: max(14px, env(safe-area-inset-top));
  --safe-bottom: max(18px, env(safe-area-inset-bottom));
}

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

html[data-theme="dark"] {
  color-scheme: dark;
  --bg-0: #02070d;
  --bg-1: #07111a;
  --bg-2: #0d1d2a;
  --bg-soft: #0c1620;
  --surface: rgba(8, 19, 29, 0.88);
  --surface-strong: rgba(10, 25, 38, 0.96);
  --surface-muted: rgba(13, 28, 40, 0.84);
  --surface-dark: rgba(3, 10, 16, 0.94);
  --text-1: #edf6fb;
  --text-2: #bfd3df;
  --text-3: #89a3b5;
  --text-muted: #89a3b5;
  --text-inverse: #f7fcff;
  --line: rgba(166, 216, 239, 0.12);
  --line-strong: rgba(166, 216, 239, 0.18);
  --shadow-shell: 0 24px 60px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 18px 40px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 10px 26px rgba(0, 0, 0, 0.26);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 10% 8%, rgba(45, 225, 168, 0.12), transparent 22%),
    radial-gradient(circle at 86% 6%, rgba(52, 199, 255, 0.12), transparent 22%),
    linear-gradient(180deg, #03070c, #08121b 24%, #0b1822 52%, #0e1f2b 100%);
}

html[data-theme="dark"] body::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 22%),
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.06), transparent 34%);
}

html[data-theme="dark"] .glass-panel,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .shopping-list-card,
html[data-theme="dark"] .shopping-list-item,
html[data-theme="dark"] .notification-card,
html[data-theme="dark"] .history-point,
html[data-theme="dark"] .history-sheet__panel,
html[data-theme="dark"] .settings-card,
html[data-theme="dark"] .compact-note,
html[data-theme="dark"] .summary-box,
html[data-theme="dark"] .dashboard-card,
html[data-theme="dark"] .history-summary-card,
html[data-theme="dark"] .skeleton-card {
  background: linear-gradient(180deg, rgba(8, 19, 29, 0.94), rgba(10, 24, 38, 0.88));
  border-color: rgba(166, 216, 239, 0.08);
}

html[data-theme="dark"] .input,
html[data-theme="dark"] .select,
html[data-theme="dark"] .textarea,
html[data-theme="dark"] .search-input-wrap,
html[data-theme="dark"] .select-shell {
  background: rgba(7, 16, 24, 0.96);
  color: var(--text-1);
  border-color: rgba(166, 216, 239, 0.12);
}

html[data-theme="dark"] .hero-badge,
html[data-theme="dark"] .notification-chip--digest,
html[data-theme="dark"] .notification-chip--system {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-2);
}

html[data-theme="dark"] .shopping-list-card__count,
html[data-theme="dark"] .shopping-create-trigger {
  border-color: rgba(166, 216, 239, 0.14);
  background: linear-gradient(180deg, rgba(10, 24, 38, 0.98), rgba(13, 31, 47, 0.94));
  color: var(--text-inverse);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 24px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .pill-btn,
html[data-theme="dark"] .control-btn,
html[data-theme="dark"] .footer-link,
html[data-theme="dark"] .control-card,
html[data-theme="dark"] .shopping-workspace,
html[data-theme="dark"] .shopping-create,
html[data-theme="dark"] .shopping-qty,
html[data-theme="dark"] .shopping-picker__list-btn,
html[data-theme="dark"] .shopping-picker__create,
html[data-theme="dark"] .dashboard-highlight,
html[data-theme="dark"] .loader,
html[data-theme="dark"] .theme-choice,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .notification-panel,
html[data-theme="dark"] .notification-card,
html[data-theme="dark"] .seo-card,
html[data-theme="dark"] .seo-query-band,
html[data-theme="dark"] .faq-item {
  border-color: rgba(166, 216, 239, 0.12);
}

html[data-theme="dark"] .pill-btn,
html[data-theme="dark"] .control-btn,
html[data-theme="dark"] .footer-link,
html[data-theme="dark"] .control-card,
html[data-theme="dark"] .shopping-qty,
html[data-theme="dark"] .shopping-picker__list-btn,
html[data-theme="dark"] .shopping-picker__create,
html[data-theme="dark"] .dashboard-highlight,
html[data-theme="dark"] .loader,
html[data-theme="dark"] .theme-choice,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .notification-panel,
html[data-theme="dark"] .notification-card,
html[data-theme="dark"] .seo-card,
html[data-theme="dark"] .seo-query-band,
html[data-theme="dark"] .faq-item {
  background: linear-gradient(180deg, rgba(9, 21, 32, 0.96), rgba(11, 27, 40, 0.9));
}

html[data-theme="dark"] .field-label,
html[data-theme="dark"] .field-caption,
html[data-theme="dark"] .result-count,
html[data-theme="dark"] .shopping-list-card__meta,
html[data-theme="dark"] .shopping-list-card__hint,
html[data-theme="dark"] .shopping-workspace__empty p,
html[data-theme="dark"] .shopping-picker__meta,
html[data-theme="dark"] .shopping-picker__list-meta,
html[data-theme="dark"] .shopping-picker__eyebrow,
html[data-theme="dark"] .footer-meta,
html[data-theme="dark"] .notification-time,
html[data-theme="dark"] .notification-card__message,
html[data-theme="dark"] .dashboard-card__label,
html[data-theme="dark"] .history-summary-card__label,
html[data-theme="dark"] .history-point__time,
html[data-theme="dark"] .seo-card p,
html[data-theme="dark"] .faq-item p,
html[data-theme="dark"] .settings-card__head p,
html[data-theme="dark"] .theme-choice span:last-child,
html[data-theme="dark"] .loader-text,
html[data-theme="dark"] .product-meta,
html[data-theme="dark"] .product-distance {
  color: var(--text-2);
}

html[data-theme="dark"] .field-caption {
  color: #f1fbff;
  background: linear-gradient(180deg, rgba(11, 28, 40, 0.96), rgba(9, 21, 31, 0.94));
  border-color: rgba(92, 226, 198, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 20px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .product-card__side-actions .favorite-toggle,
html[data-theme="dark"] .favorite-toggle,
html[data-theme="dark"] .favorite-remove {
  background: linear-gradient(180deg, rgba(9, 22, 34, 0.98), rgba(12, 29, 43, 0.96));
  border-color: rgba(166, 216, 239, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 24px rgba(0, 0, 0, 0.24);
  color: #dbeaf3;
}

html[data-theme="dark"] .favorite-toggle.off {
  color: #bcd0dc;
}

html[data-theme="dark"] .favorite-toggle.on,
html[data-theme="dark"] .favorite-remove {
  color: #ff7f98;
}

html[data-theme="dark"] .wolt-link,
html[data-theme="dark"] .wolt-link.wolt-link--side {
  background: linear-gradient(180deg, rgba(9, 22, 34, 0.98), rgba(12, 29, 43, 0.96));
  border-color: rgba(166, 216, 239, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 24px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .input::placeholder,
html[data-theme="dark"] .textarea::placeholder {
  color: rgba(191, 211, 223, 0.56);
}

html[data-theme="dark"] .control-card::before,
html[data-theme="dark"] .shopping-create,
html[data-theme="dark"] .shopping-picker__create {
  background:
    linear-gradient(180deg, rgba(9, 21, 32, 0.96), rgba(11, 27, 40, 0.9)),
    radial-gradient(circle at top right, rgba(45, 225, 168, 0.12), transparent 42%);
}

html[data-theme="dark"] .control-card--region[data-state="live"] {
  border-color: rgba(45, 225, 168, 0.24);
  background:
    linear-gradient(180deg, rgba(8, 22, 28, 0.98), rgba(12, 32, 31, 0.92)),
    radial-gradient(circle at top right, rgba(45, 225, 168, 0.14), transparent 36%);
}

html[data-theme="dark"] .control-card--region[data-state="preset"],
html[data-theme="dark"] .control-card--sort[data-state="distance"] {
  border-color: rgba(52, 199, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(8, 20, 31, 0.98), rgba(11, 25, 41, 0.92)),
    radial-gradient(circle at top right, rgba(52, 199, 255, 0.14), transparent 36%);
}

html[data-theme="dark"] .control-card--sort[data-state="price"] {
  border-color: rgba(45, 225, 168, 0.22);
}

html[data-theme="dark"] .select-shell::before {
  background: linear-gradient(180deg, rgba(6, 15, 24, 0.98), rgba(10, 20, 30, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .select-shell::after {
  background:
    linear-gradient(180deg, rgba(10, 22, 34, 0.96), rgba(14, 28, 42, 0.96)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23dff8ff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 14px no-repeat;
  border-color: rgba(166, 216, 239, 0.14);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .seo-mini-cta--ghost {
  color: var(--text-inverse);
  background: linear-gradient(180deg, rgba(8, 20, 31, 0.98), rgba(11, 25, 40, 0.92));
  border-color: rgba(166, 216, 239, 0.12);
}

html[data-theme="dark"] .seo-mini-cta--ghost .seo-mini-cta__icon,
html[data-theme="dark"] .seo-card__icon {
  color: #dff8ff;
  background: linear-gradient(135deg, rgba(45, 225, 168, 0.22), rgba(52, 199, 255, 0.2));
}

html[data-theme="dark"] .seo-query-chip {
  background: rgba(10, 24, 36, 0.96);
  border-color: rgba(166, 216, 239, 0.12);
  color: var(--text-inverse);
}

html[data-theme="dark"] .footer-domain {
  color: #f4fbff;
  background: linear-gradient(135deg, rgba(7, 33, 44, 0.96), rgba(10, 84, 80, 0.92));
  border-color: rgba(45, 225, 168, 0.28);
  box-shadow: 0 14px 28px rgba(4, 18, 29, 0.24);
}

html[data-theme="dark"] .shopping-workspace,
html[data-theme="dark"] .dashboard-card,
html[data-theme="dark"] .skeleton-card {
  background: linear-gradient(180deg, rgba(8, 19, 29, 0.96), rgba(10, 24, 38, 0.92));
}

html[data-theme="dark"] .shopping-workspace {
  background:
    radial-gradient(circle at top right, rgba(45, 225, 168, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(7, 24, 29, 0.98), rgba(10, 30, 42, 0.94));
  border-color: rgba(45, 225, 168, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 30px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .skeleton-image,
html[data-theme="dark"] .skeleton-line {
  background: linear-gradient(90deg, rgba(22, 40, 54, 0.92), rgba(33, 57, 74, 0.98), rgba(22, 40, 54, 0.92));
  background-size: 200% 100%;
}

html[data-theme="dark"] .btn-icon,
html[data-theme="dark"] .ui-icon,
html[data-theme="dark"] .theme-choice__icon,
html[data-theme="dark"] .shopping-qty__btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-inverse);
}

html[data-theme="dark"] .theme-choice.is-active,
html[data-theme="dark"] .shopping-picker__list-btn.is-preferred,
html[data-theme="dark"] .shopping-list-card.is-active {
  border-color: rgba(45, 225, 168, 0.46);
  box-shadow: 0 16px 34px rgba(45, 225, 168, 0.14);
}

html[data-theme="dark"] .settings-theme-pill,
html[data-theme="dark"] .settings-form__footer,
html[data-theme="dark"] .settings-preview-card,
html[data-theme="dark"] .settings-accordion__chevron {
  border-color: rgba(166, 216, 239, 0.12);
}

html[data-theme="dark"] .settings-theme-pill {
  color: #f4fbff;
  background: linear-gradient(180deg, rgba(8, 20, 31, 0.98), rgba(11, 25, 40, 0.92));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .settings-dirty-badge.is-dirty {
  color: #ecfffb;
  background: linear-gradient(135deg, rgba(11, 122, 104, 0.54), rgba(27, 112, 159, 0.42));
}

html[data-theme="dark"] .settings-form__footer {
  background: linear-gradient(180deg, rgba(9, 21, 32, 0.96), rgba(11, 27, 40, 0.9));
}

html[data-theme="dark"] .settings-preview-card {
  background: linear-gradient(180deg, rgba(6, 14, 22, 0.98), rgba(10, 26, 40, 0.94));
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .settings-accordion__chevron {
  color: #f4fbff;
  background: linear-gradient(180deg, rgba(8, 20, 31, 0.98), rgba(11, 25, 40, 0.92));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .settings-eyebrow {
  color: #dff8ff;
  background: rgba(45, 225, 168, 0.16);
}

html[data-theme="dark"] .profile-avatar-shell,
html[data-theme="dark"] .settings-preview-avatar {
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .mobile-dock,
html[data-theme="dark"] .page-head {
  background:
    linear-gradient(180deg, rgba(3, 10, 16, 0.98), rgba(7, 17, 26, 0.95));
}
.search-row-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}

.scan-action-btn {
  min-height: var(--touch-target);
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(8, 21, 33, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 255, 0.92));
  color: var(--text-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(5, 24, 36, 0.06);
  transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.scan-action-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(45, 225, 168, 0.32);
  box-shadow: 0 14px 28px rgba(45, 225, 168, 0.14);
}

.scan-action-btn.is-pending {
  opacity: 0.86;
}

.scan-action-btn .btn-icon {
  background: rgba(45, 225, 168, 0.16);
  color: var(--brand-deep);
}

.scan-action-btn .btn-icon--scan {
  position: relative;
  overflow: hidden;
}

.scan-action-btn .btn-icon--scan::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, transparent 0 7%, currentColor 7% 12%, transparent 12% 18%, currentColor 18% 24%, transparent 24% 33%, currentColor 33% 38%, transparent 38% 48%, currentColor 48% 56%, transparent 56% 64%, currentColor 64% 70%, transparent 70% 79%, currentColor 79% 84%, transparent 84% 100%),
    linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% 1.5px;
  background-position: center, center;
}

.shopping-section,
.dashboard-panel {
  gap: 14px;
}

.shopping-section__head {
  align-items: flex-start;
}

.shopping-create {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(8, 21, 33, 0.08);
  background: linear-gradient(145deg, rgba(45, 225, 168, 0.08), rgba(52, 199, 255, 0.08));
}

.shopping-create.is-hidden {
  display: none;
}

.shopping-create__field {
  display: grid;
  gap: 6px;
}

.shopping-lists {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.shopping-list-card {
  display: grid;
  gap: 0;
  min-height: 0;
  padding: 12px 14px;
  border-radius: 20px;
  border: 1px solid rgba(8, 21, 33, 0.08);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.shopping-list-card.is-active {
  border-color: rgba(45, 225, 168, 0.56);
  box-shadow: 0 14px 28px rgba(45, 225, 168, 0.18);
}

.shopping-list-card:hover,
.shopping-picker__list-btn:hover {
  transform: translateY(-1px);
}

.shopping-list-card__row,
.history-point__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.shopping-list-item__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.shopping-list-card__title,
.shopping-workspace__head h4,
.dashboard-card strong,
.history-summary-card strong {
  margin: 0;
  font-family: "Space Grotesk", "Montserrat", sans-serif;
}

.shopping-list-card__title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 16px;
  line-height: 1.2;
}

.shopping-list-card__main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.shopping-list-card__side {
  display: grid;
  gap: 8px;
  justify-items: end;
  align-content: center;
}

.shopping-list-card__total {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(45, 225, 168, 0.12), rgba(52, 199, 255, 0.08));
  border: 1px solid rgba(8, 21, 33, 0.08);
  color: var(--text-1);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
  line-height: 1.35;
  max-width: min(46vw, 220px);
  box-shadow: 0 10px 18px rgba(5, 24, 36, 0.06);
}

.shopping-list-card__count {
  flex-shrink: 0;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(8, 21, 33, 0.08);
  background: linear-gradient(180deg, rgba(45, 225, 168, 0.16), rgba(52, 199, 255, 0.12));
  color: var(--text-1);
  font-weight: 800;
  font-size: 12px;
}

.shopping-list-card__delete {
  flex-shrink: 0;
}

.shopping-list-card__meta,
.shopping-list-card__hint,
.shopping-workspace__empty p,
.dashboard-highlight,
.history-sheet__head p,
.history-point__time {
  color: var(--text-muted);
}

.shopping-list-card__meta,
.shopping-list-card__hint {
  font-size: 12px;
}

.shopping-list-card__hint {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shopping-workspace {
  display: grid;
  gap: 12px;
  min-height: 220px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(45, 225, 168, 0.16);
  background:
    radial-gradient(circle at top right, rgba(45, 225, 168, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(245, 255, 251, 0.98), rgba(236, 248, 255, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 14px 28px rgba(8, 21, 33, 0.06);
}

.shopping-workspace__empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
}

.shopping-workspace__empty h4 {
  margin: 0;
  font-size: 22px;
}

.shopping-workspace__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.shopping-workspace__head h4 {
  font-size: 24px;
}

.shopping-total-stack {
  min-width: 0;
  display: grid;
  justify-items: end;
  gap: 6px;
}

.shopping-total-stack__label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shopping-total-stack__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.shopping-total-chip {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(8, 21, 33, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 255, 0.9));
  color: var(--text-1);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.shopping-total-chip--muted {
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.82);
}

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

.shopping-list-item__actions {
  grid-area: actions;
  display: grid;
  gap: 8px;
  justify-items: end;
  align-content: start;
  flex-shrink: 0;
}

.shopping-list-item__main {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.shopping-workspace__intro {
  display: grid;
  gap: 12px;
}

.shopping-add-row {
  display: grid;
  gap: 10px;
}

.shopping-list-items {
  display: grid;
  gap: 8px;
}

.shopping-list-item {
  display: grid;
  gap: 0;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(8, 21, 33, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.shopping-list-item__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 12px;
  align-items: start;
}

.shopping-list-item__query {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  min-width: 0;
}

.shopping-list-item__price-block {
  display: grid;
  gap: 3px;
  justify-items: end;
  text-align: right;
}

.shopping-list-item__price-block.is-muted {
  justify-items: end;
}

.shopping-list-item__price-main {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-1);
}

.shopping-list-item__price-block.is-muted .shopping-list-item__price-main {
  color: var(--text-2);
}

.shopping-list-item__price-detail {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.shopping-list-item__foot {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.shopping-qty {
  grid-area: qty;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(8, 21, 33, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 20px rgba(5, 24, 36, 0.05);
}

.shopping-qty__btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(6, 21, 32, 0.06);
  color: var(--text-1);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.shopping-qty__btn:hover {
  background: rgba(45, 225, 168, 0.16);
}

.shopping-qty__value {
  min-width: 88px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-1);
}

.shopping-link-btn {
  width: fit-content;
}

html[data-theme="dark"] .shopping-list-card__total,
html[data-theme="dark"] .shopping-total-chip {
  background: linear-gradient(180deg, rgba(9, 22, 34, 0.98), rgba(12, 29, 43, 0.96));
  border-color: rgba(166, 216, 239, 0.14);
  color: var(--text-inverse);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 24px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .shopping-total-stack__label,
html[data-theme="dark"] .shopping-list-item__price-detail {
  color: var(--text-2);
}

html[data-theme="dark"] .shopping-list-item__price-main {
  color: var(--text-inverse);
}

.shopping-picker {
  position: fixed;
  inset: 0;
  z-index: 92;
  display: none;
}

.shopping-picker.is-open {
  display: block;
}

.shopping-picker__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 15, 24, 0.56);
  backdrop-filter: blur(10px);
}

.shopping-picker__panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 580px);
  max-height: min(88vh, 780px);
  overflow: auto;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.shopping-picker__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.shopping-picker__head h3 {
  margin: 4px 0 0;
  font-size: clamp(22px, 5vw, 28px);
  font-family: "Space Grotesk", "Montserrat", sans-serif;
}

.shopping-picker__eyebrow {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.shopping-picker__meta {
  margin: 6px 0 0;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.6;
}

.shopping-picker__lists {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.shopping-picker__list-btn {
  width: 100%;
  border: 1px solid rgba(8, 21, 33, 0.08);
  border-radius: 20px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  gap: 8px;
  text-align: left;
  color: var(--text-1);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.shopping-picker__list-btn.is-preferred {
  border-color: rgba(45, 225, 168, 0.36);
  box-shadow: 0 16px 30px rgba(45, 225, 168, 0.12);
}

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

.shopping-picker__list-top strong {
  font-size: 16px;
  line-height: 1.35;
  font-family: "Space Grotesk", "Montserrat", sans-serif;
}

.shopping-picker__list-meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
}

.shopping-picker__empty {
  padding: 18px;
  border-radius: 20px;
  border: 1px dashed rgba(8, 21, 33, 0.14);
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.65;
}

.shopping-picker__create {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(8, 21, 33, 0.08);
  background: linear-gradient(145deg, rgba(45, 225, 168, 0.08), rgba(52, 199, 255, 0.08));
}

.shopping-picker__create-field {
  display: grid;
  gap: 6px;
}

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

.dashboard-grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-card,
.history-summary-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(8, 21, 33, 0.08);
}

.dashboard-card__label,
.history-summary-card__label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.dashboard-card strong,
.history-summary-card strong {
  font-size: clamp(18px, 5vw, 28px);
}

.dashboard-highlight {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(8, 21, 33, 0.08);
  background: rgba(255, 255, 255, 0.84);
  font-size: 13px;
}

.history-sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
}

.history-sheet.is-open {
  display: block;
}

.history-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 21, 33, 0.58);
  backdrop-filter: blur(10px);
}

.history-sheet__panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(940px, 100%);
  max-height: min(88vh, 820px);
  overflow: auto;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.history-sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.history-sheet__head h3 {
  margin: 0;
  font-size: clamp(20px, 5vw, 30px);
}

.history-chart {
  display: grid;
  align-items: end;
  grid-auto-flow: column;
  grid-auto-columns: minmax(28px, 1fr);
  gap: 8px;
  min-height: 180px;
  padding: 14px 0 6px;
}

.history-chart__bar-wrap {
  display: grid;
  gap: 8px;
  align-items: end;
  justify-items: center;
}

.history-chart__bar {
  width: 100%;
  min-height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand-strong), var(--brand));
}

.history-chart__label {
  font-size: 11px;
  color: var(--text-muted);
}

.history-timeline {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.history-point {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(8, 21, 33, 0.08);
  background: rgba(255, 255, 255, 0.8);
}

.history-point__price {
  font-weight: 800;
  color: #068365;
}

.mobile-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  transform: none;
  width: 100%;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding:
    10px
    max(14px, env(safe-area-inset-right))
    calc(12px + env(safe-area-inset-bottom))
    max(14px, env(safe-area-inset-left));
  border-radius: 26px 26px 0 0;
  border-top: 1px solid rgba(130, 214, 244, 0.14);
  background:
    linear-gradient(180deg, rgba(5, 17, 28, 0.98), rgba(8, 21, 33, 0.94));
  box-shadow: 0 -16px 38px rgba(3, 14, 24, 0.28);
  backdrop-filter: blur(24px);
}

.mobile-dock__item {
  min-height: 64px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: rgba(244, 251, 255, 0.76);
  text-decoration: none;
  display: grid;
  place-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
}

.mobile-dock__item.is-active {
  background: linear-gradient(180deg, rgba(45, 225, 168, 0.18), rgba(52, 199, 255, 0.14));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(130, 240, 213, 0.14);
}

.mobile-dock__icon {
  font-size: 17px;
}

.page-hero {
  padding-bottom: 22px;
}

.page-hero--compact {
  padding-bottom: 18px;
}

.shopping-section--page {
  gap: 14px;
}

.page-lists .app-shell {
  overflow-x: clip;
}

.page-lists .page-hero--compact {
  padding: 14px 14px 16px;
}

.page-lists .hero-grid {
  gap: 8px;
}

.page-lists .hero-grid h2 {
  font-size: clamp(22px, 7vw, 32px);
}

.page-lists .hero-grid p {
  font-size: 13px;
  max-width: none;
}

.page-lists .shopping-section--page {
  padding: 14px;
  gap: 12px;
}

.page-lists .shopping-section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.page-lists .shopping-section__head > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.page-lists .shopping-section__head .result-count {
  line-height: 1.45;
}

.page-lists #shoppingCreateBtn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 16px;
  justify-content: center;
  align-self: center;
  box-shadow: var(--shadow-pop);
}

.page-lists #shoppingCreateBtn .btn-icon {
  margin: 0;
  width: 18px;
  height: 18px;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.page-lists .shopping-create {
  padding: 14px;
  border-radius: 20px;
}

.page-lists .shopping-lists {
  grid-auto-flow: row;
  grid-auto-columns: initial;
  grid-template-columns: 1fr;
  overflow: visible;
  padding-bottom: 0;
}

.page-lists .shopping-list-card {
  position: relative;
  min-height: auto;
  padding: 12px 14px;
  gap: 0;
  border-radius: 18px;
}

.page-lists .shopping-list-card__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: start;
  gap: 10px;
}

.page-lists .shopping-workspace {
  min-height: 0;
  padding: 14px;
  border-radius: 20px;
}

.page-lists .shopping-workspace__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.page-lists .shopping-workspace__head h4 {
  font-size: 22px;
}

.page-lists .shopping-workspace__intro {
  gap: 8px;
}

.page-lists .shopping-link-btn {
  width: 100%;
}

.page-lists .shopping-list-item {
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
}

.page-lists .shopping-list-item__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.page-lists .shopping-list-item__top {
  grid-template-columns: 1fr;
  gap: 6px;
}

.page-lists .shopping-list-item__main {
  flex: 0 1 75%;
  width: 75%;
  max-width: 75%;
  min-width: 0;
}

.page-lists .shopping-list-item__actions .control-btn,
.page-lists .shopping-list-item__actions .pill-btn {
  min-height: 38px;
  padding-inline: 10px;
}

.page-lists .shopping-list-item__actions .control-btn--icon,
.page-lists .shopping-list-item__actions .pill-btn--icon,
.page-lists .shopping-list-card__delete {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
}

.page-lists .shopping-list-card__side {
  padding-right: 50px;
  min-width: 0;
}

.page-lists .shopping-list-card__delete {
  align-self: start;
  justify-self: end;
}

.page-lists .shopping-list-card__total {
  align-self: center;
  justify-self: end;
}

.page-lists .shopping-list-item__actions {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 6px;
  flex: 0 0 25%;
  width: 25%;
  max-width: 25%;
  min-width: 56px;
  padding-top: 2px;
}

.page-lists .shopping-list-item__price-block {
  justify-items: start;
  text-align: left;
}

.page-lists .shopping-qty {
  width: max-content;
}

.page-lists .shopping-total-stack {
  justify-items: end;
}

.compact-note {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(8, 21, 33, 0.08);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.55;
}

.compact-note--accent {
  background: linear-gradient(145deg, rgba(45, 225, 168, 0.12), rgba(52, 199, 255, 0.08));
  border-color: rgba(52, 199, 255, 0.16);
}

.notification-page {
  gap: 14px;
}

.notification-page__head,
.notification-page__actions,
.notification-card__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.notification-list--page {
  gap: 12px;
}

.pill-btn--compact {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 12px;
}

.pill-btn--icon,
.control-btn--icon {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 14px;
  justify-content: center;
}

.pill-btn--icon .btn-icon,
.control-btn--icon .btn-icon {
  margin: 0;
}

.control-btn--icon {
  display: inline-grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
}

.settings-hero .hero-grid {
  gap: 6px;
}

.settings-page {
  gap: 18px;
}

.settings-page__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.settings-page__header h3 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(20px, 4vw, 28px);
}

.settings-page__header p {
  margin: 6px 0 0;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.65;
}

.settings-status {
  min-height: 22px;
}

.settings-theme-pill {
  min-height: 42px;
  padding-inline: 14px;
  font-weight: 800;
  color: #0b3e50;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(240, 249, 255, 0.88));
  border: 1px solid rgba(8, 21, 33, 0.08);
  box-shadow: 0 12px 24px rgba(8, 21, 33, 0.06);
}

.settings-layout {
  display: grid;
  gap: 16px;
}

.settings-layout--single {
  grid-template-columns: minmax(0, 1fr);
}

.settings-side-stack {
  display: grid;
  gap: 16px;
}

.settings-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 28px;
  border: 1px solid rgba(8, 21, 33, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 250, 255, 0.88)),
    radial-gradient(circle at top right, rgba(45, 225, 168, 0.08), transparent 34%);
  box-shadow: var(--shadow-soft);
}

.settings-card.is-collapsed {
  gap: 0;
}

.settings-card__bar {
  display: grid;
  gap: 12px;
}

.settings-card__bar--split {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.settings-card__head {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.settings-card__head--split {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.settings-accordion__toggle {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  text-align: left;
  cursor: pointer;
}

.settings-accordion__toggle--split {
  align-items: start;
}

.settings-accordion__toggle:hover .settings-accordion__chevron {
  border-color: rgba(45, 225, 168, 0.32);
  box-shadow: 0 12px 24px rgba(45, 225, 168, 0.14);
}

.settings-accordion__chevron {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(8, 21, 33, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 255, 0.94));
  display: inline-grid;
  place-items: center;
  color: var(--text-2);
  box-shadow: 0 10px 20px rgba(5, 24, 36, 0.07);
  transition: transform 0.22s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  flex-shrink: 0;
}

.settings-accordion__chevron::before {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.settings-card.is-expanded .settings-accordion__chevron {
  transform: rotate(180deg);
}

.settings-accordion__panel {
  display: grid;
  grid-template-rows: 1fr;
  min-height: 0;
  opacity: 1;
  transition: grid-template-rows 0.28s ease, opacity 0.18s ease;
}

.settings-accordion__panel-inner {
  min-height: 0;
  overflow: hidden;
  display: grid;
  gap: 16px;
  padding-top: 4px;
}

.settings-card.is-collapsed .settings-accordion__panel {
  grid-template-rows: 0fr;
  opacity: 0;
  pointer-events: none;
}

.settings-card__head h4 {
  margin: 0;
  font-family: "Space Grotesk", "Montserrat", sans-serif;
  font-size: clamp(21px, 4vw, 28px);
  line-height: 1.1;
}

.settings-card__head p {
  margin: 0;
  color: var(--text-3);
  line-height: 1.6;
  font-size: 13px;
}

.settings-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(45, 225, 168, 0.12);
  color: #0b6c60;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.settings-head-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.settings-dirty-badge {
  min-height: 40px;
  padding-inline: 14px;
  font-weight: 800;
}

.settings-dirty-badge.is-dirty {
  color: #084241;
  background: linear-gradient(135deg, rgba(45, 225, 168, 0.24), rgba(52, 199, 255, 0.2));
  border-color: rgba(45, 225, 168, 0.28);
}

.profile-hero {
  display: grid;
  gap: 14px;
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr);
}

.profile-avatar-shell,
.settings-preview-avatar {
  width: 98px;
  height: 98px;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(45, 225, 168, 0.18), rgba(52, 199, 255, 0.18));
  border: 1px solid rgba(52, 199, 255, 0.18);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 18px 34px rgba(11, 92, 107, 0.12);
}

.profile-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-avatar-fallback {
  font-family: "Space Grotesk", "Montserrat", sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #0a5d51;
}

.profile-hero__meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.profile-hero__meta strong {
  font-family: "Space Grotesk", "Montserrat", sans-serif;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.profile-hero__meta span {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 700;
}

.profile-hero__meta p {
  margin: 0;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.65;
}

.profile-avatar-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.settings-form {
  display: grid;
  gap: 16px;
}

.settings-form__grid {
  display: grid;
  gap: 14px;
}

.settings-field {
  display: grid;
  gap: 8px;
}

.settings-field--full {
  grid-column: 1 / -1;
}

.settings-counter {
  justify-self: end;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
}

.settings-form__footer {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(8, 21, 33, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(240, 248, 255, 0.82));
}

.settings-save-meta {
  display: grid;
  gap: 0;
}

.settings-save-meta strong {
  font-size: 14px;
  line-height: 1.35;
}

.settings-save-btn {
  width: 100%;
  min-height: 54px;
}

.settings-save-btn:disabled {
  opacity: 0.56;
  cursor: default;
  filter: grayscale(0.08);
  box-shadow: none;
}

.settings-preview-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(8, 21, 33, 0.08);
  background: linear-gradient(145deg, rgba(8, 21, 33, 0.95), rgba(12, 43, 58, 0.9));
  color: #f4fbff;
  box-shadow: 0 20px 40px rgba(6, 22, 33, 0.18);
}

.settings-preview-card__top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.settings-preview-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.settings-preview-copy strong {
  font-family: "Space Grotesk", "Montserrat", sans-serif;
  font-size: 20px;
  line-height: 1.1;
}

.settings-preview-copy span {
  color: rgba(235, 246, 252, 0.8);
  font-size: 13px;
  font-weight: 700;
}

.settings-preview-bio {
  margin: 0;
  color: rgba(235, 246, 252, 0.86);
  font-size: 13px;
  line-height: 1.7;
}

.theme-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.theme-choice {
  min-height: 86px;
  border-radius: 22px;
  border: 1px solid rgba(8, 21, 33, 0.08);
  background: rgba(255, 255, 255, 0.86);
  padding: 14px 10px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
  color: var(--text-1);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.theme-choice:hover {
  transform: translateY(-1px);
}

.theme-choice strong {
  font-size: 13px;
  line-height: 1.2;
}

.theme-choice__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(45, 225, 168, 0.14);
  color: #0a6f97;
  font-size: 17px;
}

.theme-choice.is-active {
  border-color: rgba(45, 225, 168, 0.36);
  box-shadow: 0 16px 30px rgba(45, 225, 168, 0.12);
  background: linear-gradient(180deg, rgba(45, 225, 168, 0.14), rgba(52, 199, 255, 0.1));
}

.textarea {
  min-height: 140px;
  resize: vertical;
  padding: 14px;
}

.textarea--compact {
  min-height: 124px;
}

@media (min-width: 860px) {
  .settings-layout {
    grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
    align-items: start;
  }

  .settings-layout--single {
    grid-template-columns: minmax(0, 1fr);
  }

  .settings-form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-form__footer {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .settings-save-btn {
    width: auto;
    min-width: 170px;
  }
}

@media (max-width: 719px) {
  .notification-page__actions {
    width: 100%;
  }

  .notification-page__actions .pill-btn {
    width: 100%;
  }

  .page-notifications .notification-page__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .page-notifications #notificationsMarkAll {
    grid-column: 1 / -1;
  }

  .profile-hero {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .settings-card__head--split,
  .settings-card__bar--split {
    grid-template-columns: 1fr;
  }

  .settings-head-badges {
    justify-content: flex-start;
  }

  .settings-accordion__toggle {
    gap: 10px;
  }

  .settings-page__header {
    align-items: stretch;
  }

  .settings-theme-pill {
    width: fit-content;
  }

  .theme-choice {
    min-height: 78px;
    padding-inline: 8px;
  }

  .theme-choice__icon {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .page-lists .shopping-workspace__head,
  .page-lists .shopping-list-item__top {
    grid-template-columns: 1fr;
  }

  .page-lists .shopping-total-stack,
  .page-lists .shopping-list-item__price-block {
    justify-items: start;
    text-align: left;
  }

  .page-lists .shopping-total-stack__chips {
    justify-content: flex-start;
  }

  .page-lists .shopping-list-item__row {
    gap: 10px;
  }

  .page-lists .shopping-list-item__main {
    flex-basis: calc(100% - 56px);
    width: calc(100% - 56px);
    max-width: calc(100% - 56px);
  }

  .page-lists .shopping-list-item__actions {
    flex-basis: 44px;
    width: 44px;
    max-width: 44px;
    min-width: 44px;
  }
}

@media (min-width: 680px) {
  .shopping-create,
  .shopping-add-row {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .shopping-picker__create {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .page-lists .shopping-section__head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .page-lists #shoppingCreateBtn {
    width: 48px;
  }

  .page-lists .shopping-lists {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 980px) {
  .dashboard-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .shopping-workspace__head {
    align-items: center;
  }
}

@media (min-width: 1180px) {
  .shopping-section {
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    align-items: start;
  }

  .shopping-section > .shopping-section__head,
  .shopping-section > .shopping-create,
  .shopping-section > #shoppingStatus {
    grid-column: 1 / -1;
  }

  .shopping-lists {
    grid-auto-flow: row;
    grid-auto-columns: initial;
    grid-template-columns: 1fr;
    overflow: visible;
  }
}

@media (max-width: 1179px) {
  body {
    padding-bottom: calc(104px + var(--safe-bottom));
  }

  .pwa-banner {
    bottom: calc(102px + var(--safe-bottom));
  }

  .stats-grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .stats-grid--compact .stat-card {
    padding: 12px 10px;
    border-radius: 18px;
  }

  .stats-grid--compact .stat-card h3 {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    font-size: 10px;
    gap: 5px;
    line-height: 1.15;
    letter-spacing: 0.04em;
  }

  .stats-grid--compact .stat-card .ui-icon {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }

  .stats-grid--compact .stat-card p {
    margin-top: 6px;
    font-size: clamp(16px, 4.8vw, 22px);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  color: var(--text-1);
  background:
    radial-gradient(circle at 10% 8%, rgba(45, 225, 168, 0.22), transparent 24%),
    radial-gradient(circle at 86% 6%, rgba(52, 199, 255, 0.2), transparent 26%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 16%, var(--bg-2) 30%, #dff3ff 68%, #f7fcff 100%);
  padding: var(--safe-top) 12px calc(22px + var(--safe-bottom));
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 22%),
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.18), transparent 34%);
  z-index: 0;
}

img {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.app-shell {
  position: relative;
  z-index: 2;
  width: min(100%, 1120px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.glass-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 251, 255, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-2xl);
}

.glass-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 44%);
}

.page-head {
  position: sticky;
  top: calc(var(--safe-top) - 4px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background:
    linear-gradient(145deg, rgba(6, 21, 32, 0.96), rgba(7, 34, 50, 0.92) 58%, rgba(10, 66, 88, 0.88)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent);
  border: 1px solid rgba(159, 228, 255, 0.16);
  box-shadow: 0 20px 50px rgba(4, 18, 29, 0.3);
}

.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 18%, rgba(45, 225, 168, 0.22), transparent 32%),
    radial-gradient(circle at 86% 16%, rgba(52, 199, 255, 0.18), transparent 30%);
}

.brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand--interactive {
  cursor: pointer;
  user-select: none;
  border-radius: 18px;
  transition: transform 0.18s ease, opacity 0.18s ease;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

.brand--interactive,
.brand--interactive * {
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

.brand--interactive:hover {
  transform: translateY(-1px);
}

.brand--interactive:active {
  transform: translateY(0);
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(144, 224, 255, 0.22);
  box-shadow: 0 12px 26px rgba(1, 13, 21, 0.28);
  display: grid;
  place-items: center;
  padding: 6px;
  flex-shrink: 0;
}

.brand-mark-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-title {
  margin: 0;
  font-family: "Space Grotesk", "Montserrat", sans-serif;
  font-size: clamp(20px, 5vw, 30px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-inverse);
}

.brand-subtitle {
  margin: 5px 0 0;
  color: rgba(222, 241, 252, 0.82);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.head-actions {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.head-actions--desktop {
  display: none;
}

.desktop-nav {
  gap: 10px;
}

.pill-btn {
  min-height: var(--touch-target);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-2);
  padding: 10px 16px;
  cursor: pointer;
  font-size: 13px;
  text-decoration: none;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.pill-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(8, 21, 33, 0.24);
  box-shadow: var(--shadow-soft);
}

.pill-btn.is-active {
  border-color: rgba(45, 225, 168, 0.4);
  background: rgba(45, 225, 168, 0.12);
  color: #0a5d51;
}

.page-head .pill-btn {
  color: var(--text-inverse);
  background: rgba(244, 251, 255, 0.12);
  border-color: rgba(222, 241, 252, 0.18);
}

.page-head .pill-btn:hover {
  background: rgba(244, 251, 255, 0.18);
  border-color: rgba(45, 225, 168, 0.62);
}

.page-head .pill-btn--nav.is-active,
.page-head .pill-btn[aria-current="page"] {
  background: rgba(45, 225, 168, 0.18);
  border-color: rgba(45, 225, 168, 0.58);
  color: #fff;
  box-shadow: 0 14px 28px rgba(45, 225, 168, 0.14);
}

.notification-trigger {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff7a62, #ff4d7d);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(221, 71, 104, 0.28);
}

.page-head .notification-trigger .notification-badge {
  top: -6px;
  right: -6px;
}

.mobile-dock__item.notification-trigger {
  position: relative;
}

.mobile-dock__item.notification-trigger .notification-badge {
  top: 7px;
  right: 10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 9px;
  box-shadow: 0 8px 16px rgba(221, 71, 104, 0.26);
}

.notification-panel {
  display: none;
  padding: 14px;
  gap: 12px;
  position: relative;
  z-index: 6;
}

.notification-panel.is-open {
  display: grid;
}

.notification-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.notification-panel__head h3 {
  margin: 0;
  font-family: "Space Grotesk", "Montserrat", sans-serif;
  font-size: clamp(18px, 4.8vw, 24px);
}

.notification-panel__head p {
  margin: 4px 0 0;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.5;
}

.notification-panel__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.notification-list {
  display: grid;
  gap: 10px;
}

.notification-card {
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(8, 26, 39, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 251, 255, 0.88));
  box-shadow: var(--shadow-soft);
}

.notification-card--unread {
  border-color: rgba(52, 199, 255, 0.28);
  box-shadow: 0 14px 28px rgba(52, 199, 255, 0.12);
}

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

.notification-card__title {
  margin: 10px 0 6px;
  font-size: 15px;
  line-height: 1.3;
}

.notification-card__message {
  margin: 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.6;
}

.notification-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.notification-chip--price_alert {
  background: rgba(45, 225, 168, 0.16);
  color: #0a7b5e;
}

.notification-chip--campaign {
  background: rgba(52, 199, 255, 0.14);
  color: #0a6f97;
}

.notification-chip--digest,
.notification-chip--system {
  background: rgba(8, 26, 39, 0.08);
  color: var(--text-2);
}

.notification-time {
  color: var(--text-3);
  font-size: 11px;
  font-weight: 700;
}

.btn-icon,
.ui-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(6, 21, 32, 0.08);
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.page-head .btn-icon {
  background: rgba(255, 255, 255, 0.14);
}

.hero {
  padding: 16px 16px 58px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.14), transparent 28%),
    linear-gradient(165deg, rgba(5, 22, 33, 0.98), rgba(8, 33, 49, 0.92) 58%, rgba(11, 76, 92, 0.86));
  color: var(--text-inverse);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.94;
  pointer-events: none;
}

.hero::before {
  width: 240px;
  height: 240px;
  right: -84px;
  top: -116px;
  background: radial-gradient(circle at 44% 44%, rgba(45, 225, 168, 0.42), rgba(45, 225, 168, 0));
}

.hero::after {
  width: 260px;
  height: 260px;
  left: -78px;
  bottom: -162px;
  background: radial-gradient(circle at 54% 54%, rgba(52, 199, 255, 0.34), rgba(52, 199, 255, 0));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  width: 100%;
}

.hero-kicker {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 251, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(233, 248, 255, 0.14);
}

.hero h2 {
  margin: 0;
  font-family: "Space Grotesk", "Montserrat", sans-serif;
  font-size: clamp(25px, 7vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.05em;
  width: 100%;
  max-width: 100%;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.hero p {
  margin: 0;
  color: rgba(228, 243, 251, 0.9);
  font-size: clamp(13px, 3.5vw, 16px);
  line-height: 1.5;
  max-width: 46ch;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.hero-badge {
  border-radius: 999px;
  border: 1px solid rgba(8, 21, 33, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 255, 0.94));
  padding: 8px 11px;
  font-size: 11px;
  color: var(--text-1);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 20px rgba(5, 24, 36, 0.07);
}

.hero .hero-badge {
  border: 1px solid rgba(233, 248, 255, 0.12);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(244, 251, 255, 0.92);
  box-shadow: none;
}

.shopping-create-trigger {
  background: linear-gradient(145deg, var(--brand), var(--brand-strong));
  color: #062126;
  border-color: rgba(8, 21, 33, 0.08);
}

.hero .ui-icon {
  background: rgba(255, 255, 255, 0.14);
}

.hero + .search-panel {
  margin-top: -42px;
}

#searchForm {
  display: grid;
  gap: 16px;
}

.search-panel {
  z-index: 3;
  padding: 14px;
  display: grid;
  gap: 12px;
  position: relative;
  scroll-margin-top: 96px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 251, 255, 0.92));
}

.search-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(135deg, rgba(45, 225, 168, 0.16), transparent 36%, rgba(52, 199, 255, 0.14));
  box-shadow: inset 0 0 0 1px rgba(45, 225, 168, 0.2);
  transition: opacity 0.28s ease;
}

.search-panel--spotlight::before {
  opacity: 1;
  animation: spotlightPulse 0.9s ease;
}

.search-row {
  display: grid;
  gap: 10px;
  align-items: stretch;
}

.search-row .search-input-wrap {
  min-width: 0;
}

.search-input-wrap {
  position: relative;
}

.search-row-actions .search-btn {
  min-width: 0;
}

.input,
.select,
.search-btn,
.control-btn {
  border-radius: 18px;
  border: 1px solid var(--line);
  font: inherit;
}

.input,
.select {
  width: 100%;
  min-height: var(--touch-target);
  background: var(--surface-strong);
  color: var(--text-1);
  padding: 14px 46px 14px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  font-size: 14px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.input::placeholder {
  color: #718999;
  font-weight: 500;
}

.select {
  appearance: none;
  position: relative;
  z-index: 1;
  background: transparent;
  border-color: rgba(8, 21, 33, 0.08);
  box-shadow: none;
  padding-right: 52px;
}

.input:focus,
.select:focus {
  border-color: rgba(52, 199, 255, 0.5);
  box-shadow: 0 0 0 5px rgba(52, 199, 255, 0.14), 0 10px 22px rgba(52, 199, 255, 0.08);
  transform: translateY(-1px);
}

.clear-input {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(6, 21, 32, 0.06);
  color: var(--text-3);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: none;
  cursor: pointer;
}

.clear-input:hover {
  background: rgba(6, 21, 32, 0.1);
  color: var(--text-1);
}

html[data-theme="dark"] .scan-action-btn {
  background: linear-gradient(180deg, rgba(9, 22, 34, 0.98), rgba(12, 29, 43, 0.96));
  border-color: rgba(166, 216, 239, 0.14);
  color: var(--text-inverse);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 24px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .scan-action-btn .btn-icon {
  background: rgba(45, 225, 168, 0.18);
  color: #dff8ff;
}

.search-btn {
  min-height: var(--touch-target);
  border: 0;
  background: linear-gradient(140deg, var(--brand), var(--brand-strong));
  color: var(--brand-ink);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.01em;
  padding: 14px 16px;
  cursor: pointer;
  box-shadow: var(--shadow-pop);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.search-btn:hover {
  transform: translateY(-2px);
  filter: saturate(1.05);
}

.search-btn:disabled {
  opacity: 0.7;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.controls-grid {
  display: grid;
  gap: 14px;
  align-items: start;
}

.control-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  gap: 10px;
  padding: 13px;
  border-radius: 22px;
  border: 1px solid rgba(8, 21, 33, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 248, 255, 0.9)),
    radial-gradient(circle at top right, rgba(45, 225, 168, 0.14), transparent 34%);
  box-shadow: 0 16px 30px rgba(5, 24, 36, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.control-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(45, 225, 168, 0.12), transparent 42%, rgba(52, 199, 255, 0.12));
  opacity: 0.72;
}

.control-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(5, 24, 36, 0.1);
}

.control-card:focus-within {
  border-color: rgba(52, 199, 255, 0.24);
  box-shadow: 0 0 0 4px rgba(52, 199, 255, 0.08), 0 18px 34px rgba(5, 24, 36, 0.1);
}

.control-card--region[data-state="live"] {
  border-color: rgba(45, 225, 168, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 251, 247, 0.92)),
    radial-gradient(circle at top right, rgba(45, 225, 168, 0.18), transparent 38%);
}

.control-card--region[data-state="preset"] {
  border-color: rgba(52, 199, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 255, 0.92)),
    radial-gradient(circle at top right, rgba(52, 199, 255, 0.16), transparent 38%);
}

.control-card--sort[data-state="price"] {
  border-color: rgba(45, 225, 168, 0.16);
}

.control-card--sort[data-state="distance"] {
  border-color: rgba(52, 199, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 248, 255, 0.92)),
    radial-gradient(circle at top right, rgba(52, 199, 255, 0.16), transparent 36%);
}

.field-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.field-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field-caption {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(8, 21, 33, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: #5d7385;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  text-align: right;
  max-width: min(62%, 260px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.control-card--region .field-caption::before,
.control-card--sort .field-caption::before {
  flex-shrink: 0;
}

.control-card--region .field-caption::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(45, 225, 168, 0.14);
}

.control-card--region[data-state="preset"] .field-caption::before {
  background: var(--brand-strong);
  box-shadow: 0 0 0 4px rgba(52, 199, 255, 0.12);
}

.control-card--sort .field-caption::before {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
  color: #0d4b5b;
  background: rgba(52, 199, 255, 0.12);
}

.control-card--sort[data-state="price"] .field-caption::before {
  content: "¤";
  background: rgba(45, 225, 168, 0.14);
}

.control-card--sort[data-state="distance"] .field-caption::before {
  content: "⌖";
}

.select-shell {
  position: relative;
  display: block;
  z-index: 1;
}

.select-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(237, 246, 255, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.select-shell::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 26px;
  height: 26px;
  transform: translateY(-50%);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(231, 242, 251, 0.96)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230c4454' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 14px no-repeat;
  border: 1px solid rgba(8, 21, 33, 0.08);
  box-shadow: 0 8px 14px rgba(8, 21, 33, 0.08);
  pointer-events: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.control-card:hover .select-shell::after,
.control-card:focus-within .select-shell::after {
  transform: translateY(-50%) scale(1.04);
  border-color: rgba(52, 199, 255, 0.22);
  box-shadow: 0 10px 18px rgba(8, 21, 33, 0.1);
}

.select option,
.select optgroup {
  color: var(--text-1);
  background: #f7fbff;
  font-weight: 600;
}

.status-row {
  min-height: 20px;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 600;
  line-height: 1.5;
}

.status-row.error {
  color: var(--danger);
}

.status-row.info {
  color: var(--success);
}

.recent-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.recent-row::-webkit-scrollbar {
  display: none;
}

.recent-row .pill-btn {
  min-height: 42px;
  padding-inline: 14px;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 248, 255, 0.88));
  border-color: rgba(8, 21, 33, 0.08);
  box-shadow: 0 10px 18px rgba(5, 24, 36, 0.05);
}

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

.stat-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 255, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-xl);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: auto -16px -22px auto;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 225, 168, 0.18), transparent 70%);
}

.stat-card h3 {
  margin: 0;
  font-size: 11px;
  color: var(--text-3);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.stat-card .ui-icon {
  background: rgba(45, 225, 168, 0.14);
  color: var(--brand-deep);
}

.stat-card p {
  margin: 12px 0 0;
  font-family: "Space Grotesk", "Montserrat", sans-serif;
  font-size: clamp(20px, 7vw, 30px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.section-panel {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.result-head h3 {
  margin: 0;
  font-size: clamp(19px, 5vw, 28px);
  font-family: "Space Grotesk", "Montserrat", sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.03em;
}

.result-count {
  flex-shrink: 0;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  background: rgba(6, 21, 32, 0.05);
  border: 1px solid rgba(8, 21, 33, 0.08);
}

.results-grid,
.favorites-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.product-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 255, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
  border-radius: 22px;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  transform: translateY(14px);
  opacity: 0;
  animation: cardIn 0.38s ease forwards;
}

.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(52, 199, 255, 0.1), transparent 34%, rgba(45, 225, 168, 0.06));
}

.ad-card {
  display: block;
  padding: 0;
  border-color: rgba(45, 225, 168, 0.36);
  background: linear-gradient(160deg, rgba(45, 225, 168, 0.18), rgba(52, 199, 255, 0.12) 48%, rgba(255, 255, 255, 0.98));
}

.ad-card::after {
  background: linear-gradient(140deg, rgba(45, 225, 168, 0.24), rgba(52, 199, 255, 0.14) 42%, transparent 76%);
}

.ad-card-link {
  position: relative;
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
}

.ad-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--brand-ink);
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  border: 1px solid rgba(8, 21, 33, 0.12);
  z-index: 2;
}

.ad-image {
  border-color: rgba(8, 21, 33, 0.08);
  object-fit: contain;
  object-position: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 251, 255, 0.88));
  padding: 8px;
}

.ad-body {
  padding-top: 22px;
}

.ad-card .product-title {
  max-width: 100%;
  padding-right: 0;
}

.ad-cta {
  min-height: 42px;
  border-color: rgba(8, 21, 33, 0.1);
  background: rgba(255, 255, 255, 0.92);
  color: #06352c;
  font-weight: 800;
}

.product-image {
  width: 104px;
  height: 104px;
  border-radius: 18px;
  object-fit: cover;
  background: linear-gradient(135deg, #eef5fb, #f9fdff);
  border: 1px solid rgba(8, 21, 33, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

.product-image.ad-image {
  width: 126px;
  height: auto;
  aspect-ratio: 16 / 9;
}

.product-body {
  display: grid;
  gap: 8px;
  min-width: 0;
  align-content: start;
}

.product-card__side-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: grid;
  gap: 8px;
}

.product-title {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: calc(100% - 16px);
}

.product-card--search .product-title,
.product-card--search .product-meta,
.product-card--search .product-distance {
  padding-right: 54px;
}

.product-meta {
  margin: 0;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.6;
}

.product-meta a {
  color: var(--brand-deep);
  text-decoration: none;
  font-weight: 700;
}

.product-distance {
  margin: 0;
  font-size: 12px;
  color: var(--text-3);
}

.price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.price-main {
  font-family: "Space Grotesk", "Montserrat", sans-serif;
  font-size: 24px;
  color: #05785f;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.price-old {
  font-size: 13px;
  color: var(--danger);
  text-decoration: line-through;
  font-weight: 600;
}

.card-actions {
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.control-btn {
  min-height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(8, 21, 33, 0.1);
  color: var(--text-2);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(5, 24, 36, 0.05);
}

.control-btn:hover {
  border-color: rgba(8, 21, 33, 0.24);
}

.wolt-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(8, 21, 33, 0.1);
  box-shadow: 0 10px 18px rgba(5, 24, 36, 0.06);
}

.wolt-link--side {
  width: 42px;
  height: 42px;
}

.wolt-link img {
  width: 20px;
  height: 20px;
}

.favorite-toggle,
.favorite-remove {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(8, 21, 33, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 18px rgba(5, 24, 36, 0.08);
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
}

.product-card__side-actions .favorite-toggle,
.product-card__side-actions .wolt-link {
  position: static;
}

.favorite-toggle.on {
  color: var(--danger);
}

.favorite-toggle.off {
  color: #9cadbb;
}

.favorite-remove {
  color: var(--danger);
}

.empty-state {
  grid-column: 1 / -1;
  justify-self: stretch;
  width: 100%;
  text-align: center;
  color: var(--text-3);
  padding: 30px 18px;
  border: 1px dashed rgba(8, 21, 33, 0.16);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(244, 250, 255, 0.72));
  font-size: 14px;
  font-weight: 600;
}

.summary-box {
  padding: 14px 16px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(241, 249, 255, 0.84));
  box-shadow: var(--shadow-soft);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
}

.summary-box strong {
  color: #067260;
}

.delta {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}

.delta.down {
  color: var(--success);
}

.delta.up {
  color: var(--danger);
}

.delta.same {
  color: var(--text-3);
}

.loader {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(239, 247, 255, 0.86));
  border: 1px solid rgba(8, 21, 33, 0.08);
  box-shadow: 0 16px 32px rgba(5, 24, 36, 0.08);
}

.loader-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(8, 21, 33, 0.08);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(8, 21, 33, 0.08);
}

.loader-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-strong));
  transition: width 0.25s ease;
  box-shadow: 0 0 18px rgba(52, 199, 255, 0.26);
}

.loader-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  min-height: 44px;
  margin: 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  text-align: center;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 800;
  letter-spacing: 0.01em;
  background: rgba(6, 21, 32, 0.06);
  border: 1px solid rgba(8, 21, 33, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 12px 20px rgba(8, 21, 33, 0.06);
}

.loader-text__pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--brand), var(--brand-strong));
  box-shadow: 0 0 0 0 rgba(45, 225, 168, 0.32);
  animation: loaderPulse 1.4s ease infinite;
}

.loader-text__label {
  display: inline-block;
}

.loader-text[data-progress="100"] {
  color: #0a6d52;
  background: rgba(45, 225, 168, 0.12);
  border-color: rgba(45, 225, 168, 0.2);
}

.loader-text[data-progress="100"] .loader-text__pulse {
  animation: none;
  box-shadow: 0 0 0 6px rgba(45, 225, 168, 0.12);
}

.skeleton-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  padding: 12px;
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 12px;
}

.skeleton-image,
.skeleton-line {
  background: linear-gradient(90deg, rgba(225, 237, 246, 0.9), rgba(246, 250, 255, 0.96), rgba(225, 237, 246, 0.9));
  background-size: 200% 100%;
  animation: shimmer 1.1s linear infinite;
}

.skeleton-image {
  width: 104px;
  height: 104px;
  border-radius: 18px;
}

.skeleton-lines {
  display: grid;
  gap: 10px;
  align-content: center;
}

.skeleton-line {
  height: 11px;
  border-radius: 999px;
}

.skeleton-line.short {
  width: 44%;
}

.skeleton-line.mid {
  width: 62%;
}

.seo-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 249, 255, 0.88));
}

.seo-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 94% 12%, rgba(52, 199, 255, 0.16), transparent 26%),
    radial-gradient(circle at 8% 90%, rgba(45, 225, 168, 0.18), transparent 24%);
}

.seo-grid,
.faq-list,
.seo-panel__top,
.seo-query-band {
  position: relative;
  z-index: 1;
}

.seo-panel__top {
  display: grid;
  gap: 14px;
}

.seo-panel__intro {
  display: grid;
  gap: 10px;
}

.seo-panel__eyebrow {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  min-height: 32px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0a4c41;
  background: rgba(45, 225, 168, 0.12);
  border: 1px solid rgba(8, 21, 33, 0.08);
}

.seo-panel__title {
  margin: 0;
  font-family: "Space Grotesk", "Montserrat", sans-serif;
  font-size: clamp(22px, 6.5vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.seo-panel__lead {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.75;
  max-width: 720px;
}

.seo-panel__actions {
  display: grid;
  gap: 10px;
}

.seo-mini-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 14px 16px;
  border-radius: 20px;
  text-decoration: none;
  border: 1px solid rgba(8, 21, 33, 0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.seo-mini-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(8, 21, 33, 0.08);
}

.seo-mini-cta--primary {
  color: #f4fbff;
  background: linear-gradient(135deg, #081521, #0f3347 54%, #0b8b6c);
}

.seo-mini-cta--ghost {
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.9);
}

.seo-mini-cta__icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
}

.seo-mini-cta--primary .seo-mini-cta__icon {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.seo-mini-cta--ghost .seo-mini-cta__icon {
  color: #07463f;
  background: rgba(45, 225, 168, 0.16);
}

.seo-mini-cta__body {
  display: grid;
  gap: 2px;
}

.seo-mini-cta__body strong {
  font-size: 15px;
  line-height: 1.2;
}

.seo-mini-cta__body span {
  font-size: 12px;
  line-height: 1.45;
  opacity: 0.86;
}

.seo-grid {
  display: grid;
  gap: 10px;
}

.seo-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(8, 21, 33, 0.08);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 24px rgba(8, 21, 33, 0.05);
}

.seo-card__icon {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(45, 225, 168, 0.22), rgba(52, 199, 255, 0.18));
  color: #07463f;
  font-weight: 800;
  font-size: 15px;
}

.seo-card h4 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
  font-family: "Space Grotesk", "Montserrat", sans-serif;
  letter-spacing: -0.02em;
}

.seo-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.72;
  color: var(--text-2);
}

.seo-query-band {
  display: grid;
  gap: 10px;
  padding: 15px;
  border-radius: 22px;
  border: 1px solid rgba(8, 21, 33, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 250, 255, 0.94));
  box-shadow: 0 12px 24px rgba(8, 21, 33, 0.05);
}

.seo-query-band__label {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: var(--text-3);
  text-transform: uppercase;
}

.seo-query-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seo-query-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(8, 21, 33, 0.08);
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border-radius: 20px;
  border: 1px solid rgba(8, 21, 33, 0.1);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(8, 21, 33, 0.05);
  overflow: hidden;
}

.faq-item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 16px 50px 16px 16px;
  font-family: "Space Grotesk", "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(8, 21, 33, 0.06);
  color: #0b8b6c;
  font-size: 18px;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.72;
}

.footer {
  margin-top: 2px;
  padding: 16px;
  display: grid;
  gap: 12px;
  justify-items: stretch;
  text-align: left;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 250, 255, 0.9));
}

.footer-brand {
  display: grid;
  gap: 8px;
}

.footer-domain {
  width: fit-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  color: #052c2a;
  background: linear-gradient(135deg, rgba(45, 225, 168, 0.42), rgba(52, 199, 255, 0.36));
  border: 1px solid rgba(8, 21, 33, 0.12);
  border-radius: 999px;
  padding: 8px 14px;
}

.footer-meta {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
}

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

.footer-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  color: var(--text-2);
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  border: 1px solid rgba(8, 21, 33, 0.08);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.84);
}

.footer-link:hover {
  border-color: rgba(8, 21, 33, 0.2);
  color: #06292f;
}

.pwa-banner {
  position: fixed;
  left: 50%;
  bottom: calc(14px + var(--safe-bottom));
  transform: translateX(-50%);
  width: min(94vw, 420px);
  display: none;
  align-items: stretch;
  gap: 10px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(5, 21, 32, 0.96);
  color: #fff;
  box-shadow: 0 24px 50px rgba(3, 15, 23, 0.34);
  z-index: 82;
}

.pwa-banner p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(238, 247, 252, 0.92);
}

.pwa-banner-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.pwa-banner button {
  min-height: 42px;
  border-radius: 14px;
  border: 0;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.pwa-install {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: var(--brand-ink);
}

.pwa-close {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.ad-rail {
  position: fixed;
  top: 20px;
  bottom: calc(20px + var(--safe-bottom));
  width: 164px;
  border-radius: 28px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(6, 20, 31, 0.96), rgba(8, 28, 40, 0.88));
  box-shadow: 0 24px 50px rgba(8, 21, 33, 0.26);
  display: none;
  align-items: stretch;
  justify-content: center;
  text-align: center;
  z-index: 3;
}

.ad-rail--left {
  left: 18px;
}

.ad-rail--right {
  right: 18px;
}

.ad-rail__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.ad-rail__image {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.ad-rail__title {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: 0.07em;
  color: #dff8ff;
  font-weight: 800;
  text-transform: uppercase;
}

.ad-rail__cta,
.ad-rail__phone {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 11px;
  text-decoration: none;
  color: #08222a;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  box-shadow: var(--shadow-soft);
}

.ad-rail--text-only .ad-rail__card {
  align-items: center;
}

.ad-rail--text-only .ad-rail__title {
  max-width: 13ch;
}

.ad-rail--has-image .ad-rail__card {
  overflow: hidden;
  justify-content: stretch;
}

.ad-rail--has-image .ad-rail__image {
  flex: 1 1 auto;
}

.ad-rail--has-image .ad-rail__title {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 16px;
  opacity: 0;
  transform: translateY(8px);
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(5, 21, 32, 0), rgba(5, 21, 32, 0.88) 38%);
  backdrop-filter: blur(10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.ad-rail--has-image .ad-rail__cta {
  display: none;
}

.ad-rail--has-image .ad-rail__card:hover .ad-rail__title,
.ad-rail--has-image .ad-rail__card:focus-visible .ad-rail__title {
  opacity: 1;
  transform: translateY(0);
}

.hidden {
  display: none !important;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

@keyframes loaderPulse {
  0% {
    transform: scale(0.92);
    box-shadow: 0 0 0 0 rgba(45, 225, 168, 0.28);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(45, 225, 168, 0);
  }
  100% {
    transform: scale(0.92);
    box-shadow: 0 0 0 0 rgba(45, 225, 168, 0);
  }
}

@keyframes cardIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes spotlightPulse {
  0% {
    opacity: 0.1;
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0.25;
  }
}

@media (min-width: 700px) {
  body {
    padding-inline: 16px;
  }

  .page-head {
    padding: 14px 16px;
  }

  .hero {
    padding: 18px 18px 54px;
  }

  .hero + .search-panel {
    margin-top: -36px;
  }

  .search-panel,
  .section-panel,
  .footer {
    padding-inline: 18px;
  }

  .search-row {
    grid-template-columns: 1fr auto;
  }

  .search-row-actions {
    grid-template-columns: auto auto;
  }

  .search-btn {
    min-width: 150px;
  }

  .controls-grid,
  .seo-grid,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .results-grid,
  .favorites-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seo-panel__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .footer-links {
    justify-content: flex-end;
  }
}

@media (min-width: 920px) {
  .seo-panel__top {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    align-items: start;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 100%;
  }

  .controls-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .results-grid,
  .favorites-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .results-grid,
  .favorites-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  body {
    padding-bottom: calc(22px + var(--safe-bottom));
  }

  .head-actions--desktop {
    display: inline-flex;
  }

  .mobile-dock {
    display: none;
  }
}

@media (min-width: 1280px) {
  body {
    padding-inline: 22px;
  }

  body.layout-with-side-ads .app-shell {
    width: min(1120px, calc(100% - 360px));
  }

  body.layout-with-side-ads .ad-rail {
    display: flex;
  }
}

@media (max-width: 719px) {
  .page-head {
    gap: 10px;
  }

  .brand-title {
    font-size: clamp(18px, 5.2vw, 24px);
  }

  .brand-subtitle {
    font-size: 10px;
  }

  .head-actions .pill-btn {
    min-height: 46px;
    padding-inline: 14px;
  }

  .result-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .product-image {
    width: 92px;
    height: 92px;
  }

  .product-image.ad-image,
  .ad-card-link {
    grid-template-columns: 1fr;
  }

  .product-image.ad-image {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .ad-body {
    padding-top: 6px;
  }

  .footer {
    text-align: center;
  }

  .footer-domain {
    margin-inline: auto;
  }

  .footer-links {
    justify-content: center;
  }

  .pwa-banner {
    flex-direction: column;
  }

  .shopping-picker__panel {
    width: 100%;
  }
}

@media (min-width: 720px) {
  .shopping-picker__panel {
    bottom: 18px;
    border-radius: 28px;
  }
}

@media (max-width: 520px) {
  body {
    padding-inline: 10px;
  }

  .app-shell {
    gap: 12px;
  }

  .page-head {
    padding: 12px;
    border-radius: 22px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .head-actions .pill-btn {
    min-width: 46px;
    padding-inline: 12px;
  }

  .head-actions .pill-btn span:not(.btn-icon) {
    display: none;
  }

  .notification-panel__head {
    display: grid;
    gap: 10px;
  }

  .notification-panel__actions {
    width: 100%;
  }

  .notification-panel__actions .pill-btn {
    flex: 1 1 0;
  }

  .hero {
    padding: 14px 14px 48px;
  }

  .hero h2 {
    max-width: 100%;
  }

  .hero + .search-panel {
    margin-top: -28px;
  }

  .search-panel {
    padding: 12px;
  }

  .control-card {
    padding: 12px;
    gap: 8px;
  }

  .field-topline {
    gap: 8px;
  }

  .field-caption {
    max-width: 54%;
    font-size: 10px;
  }

  .stats-grid,
  .controls-grid,
  .seo-grid,
  .seo-panel__actions {
    grid-template-columns: 1fr;
  }

  .page-notifications .stats-grid--compact,
  .page-lists .stats-grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .page-notifications .stats-grid--compact .stat-card,
  .page-lists .stats-grid--compact .stat-card {
    padding: 11px 8px;
    border-radius: 16px;
  }

  .page-notifications .stats-grid--compact .stat-card h3,
  .page-lists .stats-grid--compact .stat-card h3 {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 4px;
    font-size: 9px;
    line-height: 1.1;
    letter-spacing: 0.03em;
  }

  .page-notifications .stats-grid--compact .stat-card .ui-icon,
  .page-lists .stats-grid--compact .stat-card .ui-icon {
    width: 17px;
    height: 17px;
    font-size: 9px;
  }

  .page-notifications .stats-grid--compact .stat-card p,
  .page-lists .stats-grid--compact .stat-card p {
    margin-top: 6px;
    font-size: clamp(15px, 4.6vw, 20px);
  }

  .results-grid,
  .favorites-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-image {
    width: 100%;
    height: 172px;
  }

  .product-title {
    max-width: 100%;
    padding-right: 38px;
  }

  .favorite-toggle,
  .favorite-remove {
    top: 12px;
    right: 12px;
  }

  .product-card__side-actions {
    top: 12px;
    right: 12px;
  }

  .product-card--search .product-title,
  .product-card--search .product-meta,
  .product-card--search .product-distance {
    padding-right: 54px;
  }

  .shopping-list-item__foot,
  .shopping-picker__list-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .shopping-link-btn,
  .shopping-picker__create .search-btn {
    width: 100%;
  }

  .shopping-qty {
    width: 100%;
    justify-content: space-between;
  }

  .page-lists .page-hero--compact {
    padding: 12px 12px 14px;
  }

  .page-lists .hero-grid p {
    display: none;
  }

  .page-lists .shopping-section--page {
    padding: 12px;
  }

  .page-lists .shopping-workspace__actions {
    grid-template-columns: repeat(2, minmax(0, max-content));
    justify-content: flex-end;
  }

  .pwa-banner {
    bottom: calc(110px + var(--safe-bottom));
  }
}
