/* ==================== GREY FOX UNIFIED DESIGN SYSTEM (HOME & CARE) ==================== */
:root {
  --m3-bg: #F5EFE6;
  --m3-bg-top: #FFFDF9;
  --m3-bg-bottom: #EFE6D6;
  --m3-surface: rgba(255, 253, 249, 0.92);
  --m3-well: rgba(229, 220, 203, 0.88);
  --m3-outline: #D2C5B0;
  --m3-espresso: #231C18;
  --m3-taupe: #5A4D44;
  --m3-primary: #3F624C;
  --m3-primary-dark: #2F4D3A;
  --m3-primary-soft: #D8E8DD;
  --m3-accent: #B8892E;
  --m3-accent-dark: #966B1B;
  --m3-accent-soft: #FBF0D1;
  --m3-rose: #B45E6D;
  --m3-rose-dark: #924452;
  --m3-rose-soft: #F7E2E6;
}

* {
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.font-serif-warm {
  font-family: 'Lora', Georgia, serif;
}

.material-symbols-rounded {
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 32;
  vertical-align: middle;
  line-height: 1;
}

body.gf-app-body {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--m3-bg);
  background-image: radial-gradient(circle at 50% 0%, var(--m3-bg-top) 0%, var(--m3-bg-bottom) 100%);
  color: var(--m3-espresso);
  transition: background-color 0.35s ease, color 0.35s ease;
}

/* Painted Watercolor Wallpaper + Warm Scrim + Ambient Particle Layers */
#gfWallpaperLayer {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  pointer-events: none;
  transition: opacity 0.45s ease, background-image 0.45s ease;
}

#gfWallpaperScrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transition: background-color 0.45s ease;
}

#gfAmbientCanvas {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.gf-stage {
  position: relative;
  z-index: 10;
}

/* Jewel-Toned Theme Fills */
.theme-primary-bg {
  background: linear-gradient(180deg, var(--m3-primary) 0%, var(--m3-primary-dark) 100%) !important;
  color: #FFFDF9 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.42) !important;
}

.theme-accent-bg {
  background: linear-gradient(180deg, var(--m3-accent) 0%, var(--m3-accent-dark) 100%) !important;
  color: #FFFDF9 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
}

.theme-rose-bg {
  background: linear-gradient(180deg, var(--m3-rose) 0%, var(--m3-rose-dark) 100%) !important;
  color: #FFFDF9 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
}

.theme-soft-pill {
  background-color: var(--m3-rose-soft) !important;
  border: 1.5px solid var(--m3-rose) !important;
  color: var(--m3-espresso) !important;
}

/* Floating Theme-Tinted Frosted Glass Docks */
.glass-dock {
  background-color: rgba(255, 253, 249, 0.72);
  background: color-mix(in srgb, var(--m3-primary) 12%, rgba(255, 253, 249, 0.72));
  backdrop-filter: blur(22px) saturate(175%);
  -webkit-backdrop-filter: blur(22px) saturate(175%);
  border: 1.5px solid rgba(255, 255, 255, 0.80);
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.90),
    inset 0 -1px 0 rgba(35, 28, 24, 0.06),
    0 10px 28px -8px rgba(35, 28, 24, 0.20),
    0 2px 6px rgba(35, 28, 24, 0.08);
  transition: background 0.35s ease, border-color 0.35s ease;
}

/* Frosted Glass Elevated Sheet (Exact Home Card Surface) */
.elevated-sheet {
  background-color: var(--m3-surface);
  backdrop-filter: blur(16px) saturate(155%);
  -webkit-backdrop-filter: blur(16px) saturate(155%);
  border: 1.5px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 12px 28px -8px rgba(55, 43, 34, 0.16),
    0 2px 6px rgba(55, 43, 34, 0.08);
}

/* Recessed Input & Info Well */
.recessed-well {
  background-color: var(--m3-well);
  border: 1.5px solid var(--m3-outline);
  box-shadow:
    inset 0 2px 5px rgba(42, 35, 31, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.75);
}

.gf-input {
  width: 100%;
  border-radius: 18px;
  background-color: rgba(255, 253, 249, 0.94);
  border: 1.5px solid var(--m3-outline);
  padding: 12px 16px;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--m3-espresso);
  outline: none;
  box-shadow: inset 0 2px 4px rgba(42, 35, 31, 0.05);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.gf-input:focus {
  border-color: var(--m3-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--m3-primary) 20%, transparent);
}

/* Tactile Buttons & Tiles */
.tactile-tile {
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    inset 0 -1px 0 rgba(35, 28, 24, 0.08),
    0 5px 14px rgba(60, 50, 40, 0.11),
    0 1px 2px rgba(60, 50, 40, 0.14);
  transition: transform 0.15s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.15s ease, filter 0.15s ease;
}

.tactile-tile:active {
  transform: translateY(1px) scale(0.97);
  box-shadow:
    inset 0 1px 2px rgba(35, 28, 24, 0.14),
    0 1px 3px rgba(60, 50, 40, 0.10);
}

/* Nav Dock Pills */
.m3-nav-pill {
  border-radius: 20px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.m3-nav-pill:active {
  transform: scale(0.95);
}

.m3-nav-active {
  background: linear-gradient(180deg, var(--m3-primary) 0%, var(--m3-primary-dark) 100%);
  color: #FFFDF9 !important;
  font-weight: 800;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.45),
    0 6px 16px -3px color-mix(in srgb, var(--m3-primary) 55%, transparent);
}

.m3-nav-inactive {
  background: transparent;
  color: var(--m3-espresso);
  font-weight: 800;
}

.m3-nav-inactive:hover {
  background: rgba(255, 255, 255, 0.48);
}

/* Poster Cards */
.m3-poster-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--m3-surface);
  border: 2px solid var(--m3-outline);
  box-shadow:
    0 10px 22px -6px rgba(45, 34, 24, 0.20),
    0 2px 6px rgba(45, 34, 24, 0.10);
  transition: transform 0.18s cubic-bezier(0.2, 0, 0, 1), border-color 0.18s ease;
}

.m3-poster-card:active {
  transform: scale(0.97);
}

/* Expandable Frosted Glass Accordions */
details.gf-accordion {
  background-color: var(--m3-surface);
  backdrop-filter: blur(16px) saturate(155%);
  -webkit-backdrop-filter: blur(16px) saturate(155%);
  border: 1.5px solid rgba(255, 255, 255, 0.80);
  border-radius: 26px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 24px -8px rgba(55, 43, 34, 0.14);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

details.gf-accordion[open] {
  border-color: var(--m3-accent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 14px 30px -8px rgba(55, 43, 34, 0.20);
}

details.gf-accordion > summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

details.gf-accordion > summary::-webkit-details-marker {
  display: none;
}

details.gf-accordion .gf-chevron {
  transition: transform 0.22s ease;
  color: var(--m3-taupe);
}

details.gf-accordion[open] .gf-chevron {
  transform: rotate(180deg);
  color: var(--m3-primary);
}

.gf-accordion-body {
  padding: 6px 20px 20px 20px;
  border-top: 1px solid rgba(210, 197, 176, 0.55);
}
