/* Shopping List — Liquid Glass / праздничная тема. Фон независим от высоты контента. */
html[data-theme="liquid-glass"] {
  color-scheme: light;
  --page-bg: #f7f3fb; --text: #263044; --secondary-text: #667085;
  --card-bg: rgba(255,255,255,.48); --card-border: rgba(255,255,255,.72);
  --divider: rgba(255,255,255,.54); --hover-bg: rgba(255,255,255,.58);
  --accent: #4eaa83; --accent-dark: #358d6b;
  --danger: #d94e70; --danger-bg: rgba(255,226,235,.68);
  --input-bg: rgba(255,255,255,.54); --input-border: rgba(255,255,255,.82);
  --lg-glass: rgba(255,255,255,.38); --lg-glass-border: rgba(255,255,255,.72);
  --lg-glass-shadow: 0 18px 48px rgba(63,54,98,.13), 0 3px 12px rgba(77,73,112,.07), inset 0 1px 0 rgba(255,255,255,.82);
  --lg-blur: 25px;
  background: #f7f3fb; min-height: 100%; isolation: isolate;
}
html[data-theme="liquid-glass"]::before {
  content: ""; position: fixed; z-index: -2; inset: -22vmax; pointer-events: none;
  background:
    radial-gradient(ellipse at 14% 24%, rgba(255,183,211,.76) 0, transparent 34%),
    radial-gradient(ellipse at 78% 18%, rgba(190,181,255,.72) 0, transparent 35%),
    radial-gradient(ellipse at 86% 72%, rgba(158,218,255,.72) 0, transparent 34%),
    radial-gradient(ellipse at 28% 82%, rgba(170,239,218,.68) 0, transparent 36%),
    radial-gradient(ellipse at 52% 48%, rgba(255,225,170,.54) 0, transparent 32%),
    radial-gradient(ellipse at 54% 8%, rgba(242,190,255,.52) 0, transparent 34%);
  background-size: 170% 170%; background-position: 0% 30%;
  filter: blur(62px) saturate(1.18) hue-rotate(var(--lg-hue-shift,0deg)); opacity: .94;
  transform: translate3d(var(--lg-drift-offset,0%),0,0) scale(1.04);
  animation: liquid-aquarium-drift 108s ease-in-out var(--lg-animation-phase,0s) infinite alternate;
  will-change: background-position, transform;
}
html[data-theme="liquid-glass"]::after {
  content: ""; position: fixed; z-index: -1; inset: 0; pointer-events: none;
  background: linear-gradient(132deg,rgba(255,255,255,.20),transparent 34%,rgba(255,255,255,.12) 68%,transparent),
    radial-gradient(ellipse at 50% 0%,rgba(255,255,255,.28),transparent 60%); opacity: .68;
}
@keyframes liquid-aquarium-drift {
  0% { background-position: 0% 28%; transform: translate3d(calc(var(--lg-drift-offset,0%) * -1),-1.5%,0) scale(1.04); }
  50% { background-position: 54% 72%; transform: translate3d(var(--lg-drift-offset,0%),1.5%,0) scale(1.09); }
  100% { background-position: 100% 34%; transform: translate3d(calc(var(--lg-drift-offset,0%) * -1),-1%,0) scale(1.05); }
}
html[data-theme="liquid-glass"] body { position: relative; min-height: 100vh; background: transparent !important; background-image: none !important; color: var(--text) !important; }
html[data-theme="liquid-glass"] .page,
html[data-theme="liquid-glass"] .container,
html[data-theme="liquid-glass"] .admin-shell,
html[data-theme="liquid-glass"] .content-area,
html[data-theme="liquid-glass"] .main-area { background: transparent !important; }

/* Главные поверхности. */
html[data-theme="liquid-glass"] .navbar,
html[data-theme="liquid-glass"] .table-wrap,
html[data-theme="liquid-glass"] .shopping-list,
html[data-theme="liquid-glass"] .settings-card,
html[data-theme="liquid-glass"] .help-card,
html[data-theme="liquid-glass"] .add-form,
html[data-theme="liquid-glass"] .card,
html[data-theme="liquid-glass"] .panel,
html[data-theme="liquid-glass"] .panel-card,
html[data-theme="liquid-glass"] .stat-card,
html[data-theme="liquid-glass"] .table-card,
html[data-theme="liquid-glass"] .quick-action,
html[data-theme="liquid-glass"] .invite-panel,
html[data-theme="liquid-glass"] .result-card,
html[data-theme="liquid-glass"] .sidebar,
html[data-theme="liquid-glass"] .topbar,
html[data-theme="liquid-glass"] .app-dialog,
html[data-theme="liquid-glass"] .accordion,
html[data-theme="liquid-glass"] .theme-option {
  background: var(--lg-glass) !important; border: 1px solid var(--lg-glass-border) !important;
  box-shadow: var(--lg-glass-shadow) !important;
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(1.55); backdrop-filter: blur(var(--lg-blur)) saturate(1.55);
}
html[data-theme="liquid-glass"] .table-wrap,
html[data-theme="liquid-glass"] .shopping-list { background: rgba(255,255,255,.20) !important; }
html[data-theme="liquid-glass"] .list-header { background: rgba(255,255,255,.34) !important; color: #687287 !important; }
html[data-theme="liquid-glass"] .item-row,
html[data-theme="liquid-glass"] .member-row,
html[data-theme="liquid-glass"] .service-row,
html[data-theme="liquid-glass"] .summary-row { background: rgba(255,255,255,.23) !important; border-color: rgba(255,255,255,.44) !important; color: var(--text) !important; }
html[data-theme="liquid-glass"] .item-row:hover { background: rgba(255,255,255,.43) !important; }
html[data-theme="liquid-glass"] .item-name-text,
html[data-theme="liquid-glass"] .name-text,
html[data-theme="liquid-glass"] .item-row,
html[data-theme="liquid-glass"] .item-row *,
html[data-theme="liquid-glass"] .page-title,
html[data-theme="liquid-glass"] h1, html[data-theme="liquid-glass"] h2,
html[data-theme="liquid-glass"] h3, html[data-theme="liquid-glass"] h4,
html[data-theme="liquid-glass"] label,
html[data-theme="liquid-glass"] .section-title,
html[data-theme="liquid-glass"] .theme-name,
html[data-theme="liquid-glass"] .theme-description,
html[data-theme="liquid-glass"] .help-card,
html[data-theme="liquid-glass"] .settings-card,
html[data-theme="liquid-glass"] .card { color: var(--text); }
html[data-theme="liquid-glass"] .theme-description,
html[data-theme="liquid-glass"] .secondary-text,
html[data-theme="liquid-glass"] .item-meta,
html[data-theme="liquid-glass"] .item-comment,
html[data-theme="liquid-glass"] small { color: var(--secondary-text); }

/* Поля */
html[data-theme="liquid-glass"] input,
html[data-theme="liquid-glass"] select,
html[data-theme="liquid-glass"] textarea,
html[data-theme="liquid-glass"] .quantity-input-wrap {
  background: rgba(255,255,255,.58) !important; color: #263044 !important;
  border: 1px solid rgba(255,255,255,.86) !important;
  box-shadow: inset 0 1px 3px rgba(69,67,103,.06), 0 5px 18px rgba(69,67,103,.06);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
}
html[data-theme="liquid-glass"] input::placeholder,
html[data-theme="liquid-glass"] textarea::placeholder { color: #7b8497 !important; }

/* Вторичные кнопки — стекло; акцентные сохраняют зелёный оттенок. */
html[data-theme="liquid-glass"] button:not(.button):not(.submit-button):not(.voice-mic):not(.button-primary):not(.primary),
html[data-theme="liquid-glass"] .theme-option,
html[data-theme="liquid-glass"] .navbar a {
  background: rgba(255,255,255,.40) !important; color: #344057 !important;
  border: 1px solid rgba(255,255,255,.76) !important;
  box-shadow: 0 7px 22px rgba(68,57,103,.10), inset 0 1px 0 rgba(255,255,255,.88) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
}
html[data-theme="liquid-glass"] .button,
html[data-theme="liquid-glass"] button.button,
html[data-theme="liquid-glass"] .submit-button,
html[data-theme="liquid-glass"] .settings-action.primary,
html[data-theme="liquid-glass"] .button-primary,
html[data-theme="liquid-glass"] .voice-mic {
  background: linear-gradient(145deg,color-mix(in srgb,var(--accent) 78%,white),color-mix(in srgb,var(--accent-dark) 88%,white)) !important;
  color: #fff !important; border: 1px solid rgba(255,255,255,.66) !important;
  box-shadow: 0 10px 28px color-mix(in srgb,var(--accent) 25%,transparent), inset 0 1px 0 rgba(255,255,255,.78), inset 0 -2px 5px rgba(24,75,58,.10) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.65); backdrop-filter: blur(18px) saturate(1.65);
}
html[data-theme="liquid-glass"] .button:hover,
html[data-theme="liquid-glass"] .submit-button:hover,
html[data-theme="liquid-glass"] .settings-action.primary:hover,
html[data-theme="liquid-glass"] .button-primary:hover,
html[data-theme="liquid-glass"] .voice-mic:hover:not(:disabled) { filter: brightness(1.06) saturate(1.12); transform: translateY(-2px); }
html[data-theme="liquid-glass"] .navbar a.active,
html[data-theme="liquid-glass"] .theme-option.selected {
  background: rgba(255,255,255,.66) !important; border-color: color-mix(in srgb,var(--accent) 40%,white) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb,var(--accent) 16%,transparent), 0 8px 24px rgba(68,57,103,.12), inset 0 1px 0 rgba(255,255,255,.95) !important;
}

/* Микрофон сам — стеклянный; внешней подложки нет. */
html[data-theme="liquid-glass"] .voice-dock::before { display: none !important; content: none !important; }
html[data-theme="liquid-glass"] .voice-mic { margin-left: auto !important; border-radius: 50% !important; -webkit-backdrop-filter: blur(22px) saturate(1.7); backdrop-filter: blur(22px) saturate(1.7); }
html[data-theme="liquid-glass"] .voice-mic-icon { font-size: 38px !important; line-height: 1 !important; }
html[data-theme="liquid-glass"] .app-dialog-backdrop { background: rgba(40,42,66,.18) !important; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
html[data-theme="liquid-glass"] .app-dialog { background: rgba(255,255,255,.78) !important; color: #263044 !important; }

@media (max-width: 700px) {
  html[data-theme="liquid-glass"]::before { filter: blur(38px) saturate(1.12) hue-rotate(var(--lg-hue-shift,0deg)); animation-duration: 132s; }
  html[data-theme="liquid-glass"] .navbar,
  html[data-theme="liquid-glass"] .table-wrap,
  html[data-theme="liquid-glass"] .shopping-list,
  html[data-theme="liquid-glass"] .settings-card,
  html[data-theme="liquid-glass"] .help-card,
  html[data-theme="liquid-glass"] .add-form,
  html[data-theme="liquid-glass"] .card,
  html[data-theme="liquid-glass"] .voice-mic { -webkit-backdrop-filter: blur(13px) saturate(1.35); backdrop-filter: blur(13px) saturate(1.35); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html[data-theme="liquid-glass"] .navbar,
  html[data-theme="liquid-glass"] .table-wrap,
  html[data-theme="liquid-glass"] .shopping-list,
  html[data-theme="liquid-glass"] .settings-card,
  html[data-theme="liquid-glass"] .help-card,
  html[data-theme="liquid-glass"] .add-form,
  html[data-theme="liquid-glass"] .card { background: rgba(255,255,255,.84) !important; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-theme="liquid-glass"]::before { animation: none !important; transform: none !important; }
}


/* Filter group: keep the four controls, remove the enclosing glass frame. */
html[data-theme="liquid-glass"] .order-filters {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
