/* Quick Premium — editorial light (off-white, glass, soft blue/violet) */

html[data-tm-effective="light"] {
  --qp-bg: radial-gradient(110% 90% at 6% -8%, rgba(91, 111, 216, 0.14), transparent 52%),
    radial-gradient(85% 70% at 94% 2%, rgba(139, 124, 248, 0.12), transparent 48%),
    linear-gradient(175deg, var(--tm-bg-gradient-top) 0%, var(--tm-bg-gradient-mid) 42%, var(--tm-bg) 100%);
  --qp-glass: rgba(255, 255, 255, 0.58);
  --qp-glass-strong: rgba(255, 255, 255, 0.78);
  --qp-glass-border: rgba(99, 102, 241, 0.14);
  --qp-glass-border-soft: rgba(30, 41, 59, 0.08);
  --qp-shadow-soft: 0 2px 8px rgba(15, 23, 42, 0.04), 0 12px 36px rgba(91, 108, 216, 0.08);
  --qp-shadow-lift: 0 4px 14px rgba(15, 23, 42, 0.06), 0 20px 48px rgba(99, 102, 241, 0.1);
  --qp-text: var(--tm-on-surface);
  --qp-text-muted: var(--tm-on-surface-muted);
  --qp-accent-blue: #5b7cfa;
  --qp-accent-purple: #8b7cf8;
  --qp-gradient-text: linear-gradient(120deg, #1a2234 0%, #5b7cfa 48%, #8b7cf8 92%);
  --qp-gradient-brand: linear-gradient(135deg, #3d4f8f 0%, #5b7cfa 55%, #8b7cf8 100%);
}

html[data-tm-effective="light"] .quick-body.quick-body--premium {
  background: var(--qp-bg);
  color: var(--qp-text);
}

/* Hero & greeting */
html[data-tm-effective="light"] .quick-body.quick-body--premium .quick-hero-band {
  background:
    radial-gradient(90% 120% at 8% -20%, rgba(91, 111, 216, 0.1), transparent 55%),
    radial-gradient(70% 90% at 92% -10%, rgba(139, 124, 248, 0.08), transparent 50%);
}

html[data-tm-effective="light"] .quick-body.quick-body--premium .quick-hero-band::after {
  background: linear-gradient(90deg, transparent, rgba(91, 111, 216, 0.35), rgba(139, 124, 248, 0.28), transparent);
  box-shadow: 0 0 14px rgba(91, 111, 216, 0.15);
}

html[data-tm-effective="light"] .quick-body.quick-body--premium #quick-greeting {
  background: linear-gradient(120deg, #1a2234 0%, #4a5568 12%, #5b7cfa 48%, #8b7cf8 88%);
  -webkit-background-clip: text;
  background-clip: text;
}

html[data-tm-effective="light"] .quick-body.quick-body--premium .quick-app-header__title,
html[data-tm-effective="light"] .quick-body.quick-body--premium .quick-app-header__subtitle {
  opacity: 1;
  color: var(--qp-text-muted);
}

/* Theme toggle */
html[data-tm-effective="light"] .quick-body.quick-body--premium .quick-theme-toggle {
  border-color: var(--qp-glass-border);
  background: var(--qp-glass);
  color: var(--qp-text);
  box-shadow: var(--tm-elev-1);
}

html[data-tm-effective="light"] .quick-body.quick-body--premium .quick-theme-toggle:hover {
  border-color: rgba(139, 124, 248, 0.35);
  box-shadow: 0 0 20px rgba(91, 111, 216, 0.12);
}

/* Sidebar */
html[data-tm-effective="light"] .quick-body.quick-body--premium .tm-quick-sidebar__logo {
  box-shadow: 0 4px 16px rgba(91, 111, 216, 0.2);
}

html[data-tm-effective="light"] .quick-body.quick-body--premium .tm-quick-sidebar__name {
  background: var(--qp-gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
}

html[data-tm-effective="light"] .quick-body.quick-body--premium .quick-shell-nav__item {
  color: var(--qp-text-muted);
}

html[data-tm-effective="light"] .quick-body.quick-body--premium .quick-shell-nav__item:hover {
  color: var(--qp-text);
  background: rgba(255, 255, 255, 0.65);
  border-color: var(--qp-glass-border-soft);
  box-shadow: var(--tm-elev-1);
}

html[data-tm-effective="light"] .quick-body.quick-body--premium .quick-shell-nav__item--active {
  color: #2a3568;
  background: linear-gradient(135deg, rgba(91, 111, 216, 0.14), rgba(139, 124, 248, 0.1));
  border-color: rgba(91, 111, 216, 0.22);
  box-shadow: 0 0 24px rgba(91, 111, 216, 0.1);
}

html[data-tm-effective="light"] .quick-body.quick-body--premium .quick-shell-nav__item--active .quick-shell-nav__icon-svg {
  filter: drop-shadow(0 0 4px rgba(91, 111, 216, 0.35));
}

/* Day header */
html[data-tm-effective="light"] .quick-body.quick-body--premium #quick-day-header.quick-day-header--compact {
  border-color: var(--qp-glass-border-soft);
  background: var(--qp-glass);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  box-shadow: var(--qp-shadow-soft);
}

html[data-tm-effective="light"] .quick-body.quick-body--premium .quick-day-header__nav {
  color: var(--qp-text-muted);
}

html[data-tm-effective="light"] .quick-body.quick-body--premium .quick-day-header__nav:hover {
  background: rgba(91, 111, 216, 0.08);
  color: var(--qp-text);
}

html[data-tm-effective="light"] .quick-body.quick-body--premium .quick-day-header__cal {
  background: rgba(91, 111, 216, 0.1);
  border-color: rgba(91, 111, 216, 0.18);
  color: #4f63c9;
}

html[data-tm-effective="light"] .quick-body.quick-body--premium .quick-day-header__cal:hover {
  background: rgba(91, 111, 216, 0.16);
  border-color: rgba(139, 124, 248, 0.28);
  box-shadow: 0 0 16px rgba(91, 111, 216, 0.12);
}

html[data-tm-effective="light"] .quick-body.quick-body--premium .quick-day-header__title {
  color: var(--qp-text);
}

html[data-tm-effective="light"] .quick-body.quick-body--premium .quick-day-header__meta {
  color: var(--qp-text-muted);
  opacity: 1;
}

html[data-tm-effective="light"] .quick-body.quick-body--premium .quick-day-header--today .quick-day-header__title {
  background: linear-gradient(120deg, #1a2234 0%, #5b7cfa 65%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Timeline surface */
html[data-tm-effective="light"] .quick-body.quick-body--premium .quick-timeline-surface {
  background: var(--qp-glass);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border: 1px solid var(--qp-glass-border-soft);
  box-shadow: var(--qp-shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

html[data-tm-effective="light"] .quick-body.quick-body--premium .quick-timeline-surface__title {
  color: var(--qp-text-muted);
  opacity: 1;
}

html[data-tm-effective="light"] .quick-body.quick-body--premium #quick-timeline-mount .quick-day-tl-row--thread:hover {
  background: rgba(91, 111, 216, 0.06);
}

html[data-tm-effective="light"] .quick-body.quick-body--premium .quick-day-tl-row--thread .quick-day-tl-time {
  color: var(--qp-text-muted);
}

html[data-tm-effective="light"] .quick-tl-type-dot {
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

html[data-tm-effective="light"] .quick-tl-event__title {
  color: var(--qp-text);
}

html[data-tm-effective="light"] .quick-tl-event__meta,
html[data-tm-effective="light"] .quick-tl-event__hint {
  color: var(--qp-text-muted);
}

html[data-tm-effective="light"] .quick-body.quick-body--premium .quick-tl-interval-val {
  color: var(--qp-text);
  opacity: 0.75;
}

html[data-tm-effective="light"] .quick-tl-menu {
  color: var(--qp-text-muted);
}

html[data-tm-effective="light"] .quick-tl-menu:hover {
  background: rgba(91, 111, 216, 0.08);
  color: var(--qp-text);
}

html[data-tm-effective="light"] .quick-tl-menu__panel {
  background: var(--qp-glass-strong);
  border-color: var(--qp-glass-border);
  box-shadow: var(--qp-shadow-lift);
  backdrop-filter: blur(20px);
}

html[data-tm-effective="light"] .quick-tl-menu__item {
  color: var(--qp-text);
}

html[data-tm-effective="light"] .quick-tl-menu__item:hover {
  background: rgba(91, 111, 216, 0.08);
}

html[data-tm-effective="light"] .quick-tl-premium-thumb {
  border-color: var(--qp-glass-border-soft);
}

/* Insights */
html[data-tm-effective="light"] .quick-body.quick-body--premium .tm-insight-card {
  background: var(--qp-glass);
  border-color: var(--qp-glass-border-soft);
  box-shadow: var(--qp-shadow-soft);
  backdrop-filter: blur(16px) saturate(1.1);
}

html[data-tm-effective="light"] .quick-body.quick-body--premium .tm-insight-card__label {
  color: var(--qp-text-muted);
  opacity: 1;
}

html[data-tm-effective="light"] .quick-body.quick-body--premium .tm-insight-card__value {
  background: linear-gradient(135deg, #5b7cfa, #8b7cf8);
  -webkit-background-clip: text;
  background-clip: text;
}

html[data-tm-effective="light"] .quick-body.quick-body--premium .tm-heatmap__cell {
  background: rgba(30, 41, 59, 0.06);
}

html[data-tm-effective="light"] .quick-body.quick-body--premium .tm-habit-row {
  border-bottom-color: var(--qp-glass-border-soft);
}

html[data-tm-effective="light"] .quick-body.quick-body--premium .tm-habit-dot {
  background: rgba(30, 41, 59, 0.12);
}

html[data-tm-effective="light"] .quick-body.quick-body--premium .tm-habit-row__streak {
  background: rgba(91, 111, 216, 0.12);
  color: #4f63c9;
}

/* Active hero */
html[data-tm-effective="light"] #quick-active-hero {
  background: linear-gradient(135deg, rgba(91, 111, 216, 0.45), rgba(139, 124, 248, 0.32));
  box-shadow: var(--qp-shadow-lift);
}

html[data-tm-effective="light"] #quick-active-hero .quick-card,
html[data-tm-effective="light"] #quick-active-hero #quick-active-section {
  background: var(--qp-glass-strong);
  backdrop-filter: blur(20px) saturate(1.12);
}

html[data-tm-effective="light"] .quick-active-card__badge {
  color: #6b5ce8;
}

html[data-tm-effective="light"] .quick-active-card__ring-wrap--hero .quick-ring__percent {
  color: #0f172a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

html[data-tm-effective="light"] .quick-active-card__ring-wrap--hero .quick-ring__elapsed {
  color: #334155;
}

html[data-tm-effective="light"] .quick-active-card__ring-wrap--hero .quick-ring__sub {
  color: rgba(51, 65, 85, 0.72);
}

html[data-tm-effective="light"] .quick-active-hero__goal-label {
  color: var(--qp-text-muted);
  opacity: 1;
}

html[data-tm-effective="light"] .quick-active-hero__bar {
  background: rgba(30, 41, 59, 0.08);
}

html[data-tm-effective="light"] .quick-btn--hero-finish {
  border-color: rgba(91, 111, 216, 0.28);
  color: #4f63c9;
}

/* Boot fallback */
html[data-tm-effective="light"] .quick-boot-fallback {
  border-color: var(--qp-glass-border);
  background: var(--qp-glass-strong);
  box-shadow: var(--qp-shadow-soft);
}

html[data-tm-effective="light"] .quick-boot-fallback__message {
  color: var(--qp-text-muted);
}

/* Cards & dialogs */
html[data-tm-effective="light"] .quick-body.quick-body--premium .quick-card {
  background: var(--qp-glass);
  border-color: var(--qp-glass-border-soft);
  box-shadow: var(--qp-shadow-soft);
  backdrop-filter: blur(14px);
}

html[data-tm-effective="light"] .quick-body.quick-body--premium .quick-card--accent {
  border-color: rgba(91, 111, 216, 0.22);
  background: linear-gradient(145deg, rgba(91, 111, 216, 0.08), rgba(139, 124, 248, 0.06));
}

html[data-tm-effective="light"] .quick-body.quick-body--premium .quick-dialog__panel {
  background: var(--qp-glass-strong);
  border-color: var(--qp-glass-border-soft);
  box-shadow: var(--qp-shadow-lift);
}

html[data-tm-effective="light"] .quick-body.quick-body--premium .quick-dialog::backdrop {
  background: rgba(244, 242, 239, 0.72);
  backdrop-filter: blur(8px);
}

html[data-tm-effective="light"] .quick-dialog--motion::backdrop {
  background: rgba(244, 242, 239, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

html[data-tm-effective="light"] .quick-body.quick-body--premium .quick-btn--secondary {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--qp-glass-border-soft);
  color: var(--qp-text);
}

/* FAB & bottom nav */
html[data-tm-effective="light"] .quick-body.quick-body--premium .quick-fab-scrim {
  background: rgba(91, 111, 216, 0.08);
}

html[data-tm-effective="light"] .quick-body.quick-body--premium .quick-fab--main.quick-fab--pill {
  background: linear-gradient(135deg, #5b7cfa, #8b7cf8);
  box-shadow: 0 4px 20px rgba(91, 111, 216, 0.35), 0 8px 28px rgba(139, 124, 248, 0.2);
  animation: qp-pulse-glow-light 2.8s ease-in-out infinite;
}

@keyframes qp-pulse-glow-light {
  0%,
  100% {
    box-shadow: 0 4px 20px rgba(91, 111, 216, 0.3), 0 8px 24px rgba(15, 23, 42, 0.06);
  }
  50% {
    box-shadow: 0 4px 28px rgba(139, 124, 248, 0.4), 0 12px 32px rgba(91, 111, 216, 0.15);
  }
}

html[data-tm-effective="light"] .quick-body.quick-body--premium .quick-bottom-nav {
  background: rgba(255, 255, 255, 0.82);
  border-top-color: var(--qp-glass-border-soft);
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.04);
}

/* Date picker */
html[data-tm-effective="light"] .quick-date-picker::backdrop {
  background: rgba(244, 242, 239, 0.65);
  backdrop-filter: blur(12px);
}

html[data-tm-effective="light"] .quick-date-picker__panel {
  border-color: var(--qp-glass-border);
  background: var(--qp-glass-strong);
  color: var(--qp-text);
  box-shadow:
    var(--qp-shadow-lift),
    0 0 40px rgba(91, 111, 216, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-tm-effective="light"] .quick-date-picker__month {
  color: var(--qp-text);
}

html[data-tm-effective="light"] .quick-date-picker__wd {
  color: var(--qp-text-muted);
}

html[data-tm-effective="light"] .quick-date-picker__day {
  color: var(--qp-text);
}

html[data-tm-effective="light"] .quick-date-picker__day:hover:not(:disabled):not(.quick-date-picker__day--pad) {
  background: rgba(91, 111, 216, 0.08);
  border-color: rgba(91, 111, 216, 0.15);
}

html[data-tm-effective="light"] .quick-date-picker__day--today:not(.quick-date-picker__day--selected) {
  border-color: rgba(91, 111, 216, 0.4);
  color: #4f63c9;
}

html[data-tm-effective="light"] .quick-date-picker__day--selected {
  border-color: rgba(139, 124, 248, 0.5);
  background: linear-gradient(145deg, rgba(91, 111, 216, 0.35), rgba(139, 124, 248, 0.28));
  box-shadow: 0 0 0 1px rgba(139, 124, 248, 0.25), 0 4px 16px rgba(91, 111, 216, 0.2);
}

html[data-tm-effective="light"] .quick-date-picker__foot {
  border-top-color: var(--qp-glass-border-soft);
}

/* Theme popover (Quick header) */
html[data-tm-effective="light"] .tm-theme-popover--quick {
  background: var(--qp-glass-strong);
  border-color: var(--qp-glass-border-soft);
  box-shadow: var(--qp-shadow-lift);
  backdrop-filter: blur(20px) saturate(1.12);
}

html[data-tm-effective="light"] .tm-theme-popover__backdrop {
  background: rgba(244, 242, 239, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  html[data-tm-effective="light"] .quick-body.quick-body--premium .quick-fab--main.quick-fab--pill {
    animation: none;
  }
}
