@import url('https://fonts.googleapis.com/css2?family=Philosopher:ital,wght@0,400;0,700;1,400&family=Outfit:wght@300;400&family=Jua&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --ivory:      #FAF7F2;
  --rose:       #F2C4CE;
  --mauve:      #C9A9C8;
  --sage:       #A8BFA8;
  --pistachio:  #B5CC8E;
  --text:       #3D3530;
  --text-soft:  rgba(61,53,48,.52);
  --border:     rgba(201,169,200,.22);

  --header-h:   82px;
  --drawer-w:   350px;
  --info-w:     308px;
  --analysis-w: 256px;
  --r-sm:  8px;
  --r-md:  16px;
  --r-lg:  24px;
  --t:     220ms ease;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Aquarelle paper body ──────────────────────────────────── */
body {
  min-height: 100vh;
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  color: var(--text);
  background-color: var(--ivory);
  background-image:
    radial-gradient(ellipse 80% 60% at 15% 20%,  rgba(242,196,206,.22) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 75%,  rgba(201,169,200,.18) 0%, transparent 55%),
    radial-gradient(ellipse 70% 40% at 55% 10%,  rgba(168,191,168,.15) 0%, transparent 50%),
    radial-gradient(ellipse 50% 60% at 90% 30%,  rgba(181,204,142,.12) 0%, transparent 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.032'/%3E%3C/svg%3E");
  background-size: auto,auto,auto,auto, 300px 300px;
  background-attachment: fixed;
  overflow-x: hidden;
}

/* ── Typography ─────────────────────────────────────────────── */
h1,h2,h3 { font-family: 'Philosopher', serif; font-weight: 700; }
a { color: inherit; text-decoration: none; }

/* ═══════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════ */
.site-header {
  position: fixed; top:0; left:0; right:0; z-index: 200;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  background: rgba(250,247,242,.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-logo { display:flex; align-items:center; gap:10px; transition:opacity var(--t); }
.header-logo:hover { opacity: .75; }
.header-logo img   { height: 68px; width: auto; display: block; }
.header-logo-text  { font-family:'Philosopher',serif; font-weight:700; font-size:1.55rem; letter-spacing:.04em; }
.header-nav        { display:flex; align-items:center; gap:22px; }
.nav-link          { font-family:'Outfit',sans-serif; font-weight:300; font-size:.88rem; letter-spacing:.06em; text-transform:uppercase; transition:color var(--t); }
.nav-link:hover    { color: var(--mauve); }
.lang-toggle       { display:flex; align-items:center; gap:2px; background:rgba(201,169,200,.15); border:1px solid rgba(201,169,200,.35); border-radius:20px; padding:3px 5px; }
.lang-btn          { font-family:'Outfit',sans-serif; font-weight:300; font-size:.78rem; letter-spacing:.08em; padding:3px 9px; border-radius:14px; border:none; background:transparent; color:var(--text); cursor:pointer; transition:background var(--t), color var(--t); }
.lang-btn.active   { background:var(--mauve); color:#fff; }
.lang-btn:not(.active):hover { background:rgba(201,169,200,.2); }

/* ═══════════════════════════════════════════════════════════
   PAGE SCAFFOLD
═══════════════════════════════════════════════════════════ */
.page-content { padding-top: calc(var(--header-h) + 8px); padding-bottom: 60px; }
.container    { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ═══════════════════════════════════════════════════════════
   LEFT DRAWER (slide-in library)
═══════════════════════════════════════════════════════════ */
.drawer-backdrop {
  position: fixed; inset:0; z-index: 149;
  background: rgba(61,53,48,.15);
  backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none;
  transition: opacity var(--t);
}
.drawer-backdrop.visible { opacity:1; pointer-events:auto; }

#flower-drawer {
  position: fixed; top: var(--header-h); left:0; bottom:0; z-index: 150;
  width: var(--drawer-w);
  background: rgba(250,247,242,.98);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform 360ms cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
#flower-drawer.open { transform: translateX(0); }

/* drawer toggle tab */
#drawer-toggle {
  position: fixed;
  top: calc(var(--header-h) + 100px);
  left: 0;
  z-index: 151;
  background: var(--mauve);
  color: #fff;
  border: none;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 20px 13px;
  cursor: pointer;
  writing-mode: vertical-rl;
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: .9rem;
  letter-spacing: .08em;
  display: flex; align-items: center; gap: 8px;
  transition: background var(--t), transform 360ms cubic-bezier(.4,0,.2,1);
  box-shadow: 3px 0 14px rgba(201,169,200,.35);
}
#drawer-toggle .toggle-arrow { font-size:1rem; writing-mode:horizontal-tb; }
#drawer-toggle:hover { background: #b897b7; }
#drawer-toggle.open  { transform: translateX(var(--drawer-w)); }

/* ── Drawer head ─────────────────────────────────────────── */
.drawer-head {
  padding: 16px 14px 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.drawer-head-title { font-family:'Philosopher',serif; font-size:1.05rem; margin-bottom:10px; }

.drawer-search {
  width: 100%; padding: 7px 12px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: rgba(250,247,242,.8); font-family:'Outfit',sans-serif; font-weight:300; font-size:.83rem;
  color: var(--text); outline: none;
  transition: border-color var(--t);
}
.drawer-search:focus { border-color: var(--mauve); }

.filter-row  { display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin-top:8px; }
.type-btn {
  font-family:'Outfit',sans-serif; font-weight:300; font-size:.82rem;
  padding: 4px 12px; border-radius: 14px;
  border: 1px solid rgba(61,53,48,.2); background:transparent; color:var(--text);
  cursor:pointer; transition:background var(--t), border-color var(--t);
}
.type-btn.active, .type-btn:hover { background:var(--rose); border-color:var(--rose); }

/* ── Color swatches (drawer — collapsible grid) ──────────── */
.drawer-color-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
  overflow: hidden; max-height: 0;
  transition: max-height 280ms ease;
  padding-bottom: 0;
}
.drawer-color-grid.expanded { max-height: 120px; padding-bottom: 2px; }
.color-swatch {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid transparent; cursor: pointer;
  overflow: hidden;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
  justify-self: center;
}
.color-swatch.active { border-color: var(--text); box-shadow:0 0 0 2px white; transform:scale(1.18); }
.color-swatch:hover   { transform: scale(1.12); }
.color-swatch.multi-swatch {
  border: none;
  width: 30px; height: 30px;
  box-shadow: 0 0 0 1.5px rgba(61,53,48,.2);
  padding: 0;
}
.color-swatch.multi-swatch.active { box-shadow: 0 0 0 2px white, 0 0 0 4px var(--text); }
/* "All" swatch — text pill spanning full grid width */
.all-swatch {
  grid-column: 1 / -1;
  width: 100%; height: 26px;
  border-radius: 13px;
  background: transparent;
  border: 1.5px solid rgba(61,53,48,.18) !important;
  box-shadow: none !important;
  font-family: 'Outfit', sans-serif; font-weight: 300; font-size: .76rem;
  letter-spacing: .05em; color: var(--text-soft);
  transform: none !important;
}
.all-swatch:hover   { background: rgba(201,169,200,.12) !important; transform: none !important; color: var(--text); }
.all-swatch.active  { background: rgba(201,169,200,.22) !important; border-color: var(--mauve) !important; color: var(--text); }

/* ── Expandable filter sections ──────────────────────────── */
.drawer-filter-section { border-top: 1px solid var(--border); padding: 8px 14px 8px; flex-shrink: 0; }
.filter-section-header {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; padding: 2px 0 6px;
}
.filter-section-title { font-size:.75rem; font-weight:300; letter-spacing:.07em; text-transform:uppercase; color:var(--text-soft); }
.filter-section-toggle { font-size:1.05rem; line-height:1; color:var(--text-soft); border:none; background:none; cursor:pointer; padding:2px 7px; border-radius:6px; transition:background var(--t), color var(--t); }
.filter-section-toggle:hover { background:rgba(201,169,200,.2); color:var(--text); }
.filter-tags {
  display: flex; flex-wrap: wrap; gap: 5px;
  overflow: hidden; max-height: 0;
  transition: max-height 280ms ease;
}
.filter-tags.expanded { max-height: 500px; }
.filter-tag {
  font-family: 'Outfit', sans-serif;
  font-size:.8rem; font-weight:300; padding:3px 11px; border-radius:12px;
  border:1px solid rgba(61,53,48,.18); background:transparent; color:var(--text-soft);
  cursor:pointer; transition:background var(--t), color var(--t), border-color var(--t);
  white-space: nowrap;
}
.filter-tag.active, .filter-tag:hover { background:rgba(201,169,200,.25); border-color:var(--mauve); color:var(--text); }
.filter-expand-btn {
  font-size:.73rem; font-weight:300; color:var(--mauve);
  border:none; background:none; cursor:pointer; margin-top:5px;
  padding: 0; letter-spacing:.03em;
}

/* ── Drawer scroll wrapper (covers filters + grid) ──────── */
.drawer-scroll {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin; scrollbar-color: var(--rose) transparent;
}
.drawer-scroll::-webkit-scrollbar { width:4px; }
.drawer-scroll::-webkit-scrollbar-thumb { background:var(--rose); border-radius:2px; }

/* ── Drawer grid (species-grouped) ──────────────────────── */
.drawer-grid {
  padding: 6px 10px 20px;
  border-top: 1.5px solid rgba(201,169,200,.35);
  margin-top: 2px;
}

.species-group { margin-bottom: 4px; }
.species-label {
  font-family: 'Philosopher', serif;
  font-size: .92rem; font-weight: 400;
  color: var(--text);
  letter-spacing: .04em;
  padding: 6px 4px 4px;
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; user-select: none;
}
.species-label::after {
  content: '';
  flex: 1; height: 1px;
  background: linear-gradient(to right, var(--mauve), transparent);
  opacity: .3;
  border-radius: 1px;
}
.species-toggle {
  background: none; border: none; padding: 0 2px;
  font-size: .7rem; color: var(--text-soft);
  cursor: pointer; flex-shrink: 0; line-height: 1;
  pointer-events: none;
}
.species-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding-bottom: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height .22s ease, padding-bottom .22s;
}
.species-thumbs.open {
  max-height: 600px;
  padding-bottom: 6px;
}
.drawer-thumb {
  display: flex; flex-direction:column; align-items:center; gap:3px;
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  background: rgba(250,247,242,.6);
  padding: 5px 3px;
  cursor: pointer;
  transition: border-color var(--t), background var(--t), transform var(--t);
}
.drawer-thumb:hover, .drawer-thumb.active {
  border-color: var(--mauve);
  background: rgba(201,169,200,.12);
  transform: translateY(-1px);
}
.drawer-thumb-img {
  width: 100%; height: 72px;
  display:flex; align-items:flex-end; justify-content:center;
  overflow:hidden;
}
.drawer-thumb-img img { max-height:100%; max-width:100%; width:auto; height:auto; object-fit:contain; pointer-events:none; }
.drawer-thumb-name { font-family:'Outfit',sans-serif; font-size:.68rem; font-weight:400; text-align:center; line-height:1.2; color:var(--text-soft); }
.drawer-empty { text-align:center; font-weight:300; font-size:.85rem; color:var(--text-soft); padding:24px 0; }

/* ═══════════════════════════════════════════════════════════
   FLOWER POPOVER
═══════════════════════════════════════════════════════════ */
.flower-popover {
  position: fixed; z-index: 300;
  width: 310px;
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 8px 32px rgba(61,53,48,.14);
  opacity: 0; pointer-events: none;
  transform: translateY(6px) scale(.97);
  transition: opacity var(--t), transform var(--t);
}
.flower-popover.visible { opacity:1; pointer-events:auto; transform:none; }
.popover-inner  { padding: 18px; position:relative; display:flex; flex-direction:column; }
.popover-close  { position:absolute; top:10px; right:12px; background:none; border:none; cursor:pointer; font-size:.82rem; color:var(--text-soft); }
.popover-header { display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.popover-img    { width:52px; height:52px; object-fit:contain; flex-shrink:0; }
.popover-name   { font-family:'Philosopher',serif; font-size:1rem; margin-bottom:3px; line-height:1.2; }
.popover-color-dot  { display:inline-block; width:9px; height:9px; border-radius:50%; margin-right:4px; vertical-align:middle; }
.popover-color-label { font-size:.73rem; font-weight:300; text-transform:capitalize; color:var(--text-soft); }
.popover-desc   { font-weight:300; font-size:.8rem; line-height:1.65; color:rgba(61,53,48,.75); margin-bottom:9px; }
.popover-keywords { display:flex; flex-wrap:wrap; gap:4px; margin-bottom:9px; }
.popover-months-label { font-size:.7rem; font-weight:300; letter-spacing:.06em; text-transform:uppercase; color:var(--text-soft); margin-bottom:5px; }
.popover-occasions { display:flex; flex-wrap:wrap; gap:4px; margin: 8px 0 12px; }
.popover-add { width: auto; align-self: center; padding-left: 24px; padding-right: 24px; }

/* ═══════════════════════════════════════════════════════════
   MONTH STRIP
═══════════════════════════════════════════════════════════ */
.month-strip { display:flex; gap:2px; }
.month-cell {
  flex:1; text-align:center; font-size:.65rem; font-weight:300; line-height:1;
  padding: 4px 1px;
  border-radius: 3px;
  background: rgba(61,53,48,.07);
  color: var(--text-soft);
  transition: background var(--t), color var(--t);
}
.month-cell.active { background: var(--sage); color: var(--text); font-weight:400; }

/* ═══════════════════════════════════════════════════════════
   BOTANICAL BADGES
═══════════════════════════════════════════════════════════ */
.keyword-badge {
  font-family: 'Outfit', sans-serif;
  font-weight: 700; font-size: .8rem;
  padding: 3px 10px;
  border-radius: 10px;
  border: 1px solid rgba(168,191,168,.55);
  background: rgba(168,191,168,.14);
  color: var(--text);
  white-space: nowrap;
}
.occasion-tag {
  font-family: 'Outfit', sans-serif;
  font-weight: 300; font-size: .8rem;
  padding: 3px 10px;
  border-radius: 10px;
  background: rgba(242,196,206,.32);
  border: 1px solid rgba(242,196,206,.48);
  color: var(--text);
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════
   INDEX LAYOUT  — 3-column: info | canvas | analysis
═══════════════════════════════════════════════════════════ */
.creator-layout {
  display: grid;
  grid-template-columns: var(--info-w) minmax(0, 1fr) var(--analysis-w);
  gap: 16px;
  align-items: start;
}
@media (max-width: 960px) {
  .creator-layout { grid-template-columns: 1fr; }
  #flower-info-panel { display: none; }
}

/* hero */
.hero { text-align:center; padding:10px 0 10px; min-height:110px; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.hero-title    { font-size: clamp(1.9rem,4vw,3rem); line-height:1.15; margin-bottom:6px; }
.hero-subtitle { font-family:'Outfit',sans-serif; font-weight:300; font-size:.95rem; color:var(--text-soft); max-width:440px; margin:0 auto; line-height:1.65; text-wrap:balance; }

/* ═══════════════════════════════════════════════════════════
   LEFT INFO PANEL (replaces bottom tray)
═══════════════════════════════════════════════════════════ */
#flower-info-panel {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: rgba(250,247,242,.72);
  min-height: 380px;
  overflow: hidden;
  transition: box-shadow var(--t);
}
#flower-info-panel.has-flower { box-shadow: 0 4px 24px rgba(201,169,200,.15); }

.info-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; height: 380px;
  color: var(--text-soft); font-weight:300; font-size:.85rem; text-align:center;
  padding: 20px;
}
.info-placeholder svg { opacity: .35; }

.info-content { padding: 16px; animation: fadeSlideUp 280ms ease; }
@keyframes fadeSlideUp { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }

.info-color-name {
  font-family: 'Philosopher', serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
  display: flex; align-items: center; gap: 8px;
}
.info-color-dot {
  width: 12px; height: 12px; border-radius: 50%;
  flex-shrink: 0;
  border: 1.5px solid rgba(61,53,48,.15);
}
.info-img-wrap {
  text-align: center; margin: 12px 0;
}
.info-img-wrap img {
  width: 100px; height: 100px; object-fit: contain;
}
.info-desc {
  font-weight:300; font-size:.85rem; line-height:1.6;
  color:rgba(61,53,48,.75); margin-bottom:12px;
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical;
  overflow: hidden;
}
.info-row { margin-bottom:10px; }
.info-row-label { font-size:.73rem; letter-spacing:.07em; text-transform:uppercase; color:var(--text-soft); margin-bottom:5px; }
.info-months { margin-bottom: 12px; }
.info-tags, .info-occasions { display:flex; flex-wrap:wrap; gap:4px; }
.info-actions { margin-top:14px; display:flex; justify-content:flex-start; }
.info-remove-btn {
  width: auto; font-size: .60rem; padding: 2px 8px;
  background: transparent; color: #7a5c4a; border: 1px solid #7a5c4a;
  text-transform: uppercase; letter-spacing: .07em; border-radius: 4px;
  font-family: 'Outfit', sans-serif;
}
.info-remove-btn:hover { background: rgba(90,122,58,.10); color: #5a7a3a; border-color: #5a7a3a; }

/* ═══════════════════════════════════════════════════════════
   CANVAS AREA
═══════════════════════════════════════════════════════════ */
.canvas-wrap { position:relative; display:flex; flex-direction:column; gap:12px; }

#bouquet-canvas {
  aspect-ratio: 1;
  width: 100%;
  border-radius: var(--r-lg);
  border: 1.5px dashed rgba(201,169,200,.5);
  background: rgba(250,247,242,.45);
  position: relative; overflow: visible;
  isolation: isolate;
  user-select: none;
  transition: border-color var(--t), background var(--t);
}
#bouquet-canvas.drag-over {
  border-color: var(--mauve);
  background: rgba(201,169,200,.08);
}
.canvas-placeholder {
  position:absolute; inset:0;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:12px; color:var(--text-soft); font-weight:300; font-size:.85rem;
  pointer-events:none; transition:opacity var(--t);
  border-radius: var(--r-lg);
}

/* canvas items */
.canvas-item {
  position: absolute;
  cursor: grab; touch-action: none;
  width: fit-content; height: fit-content;
}
.canvas-item:active { cursor: grabbing; }
.canvas-item img {
  max-width: 250px; max-height: 250px;
  width: auto; height: auto;
  display: block; pointer-events: none;
}

/* selection ring */
.canvas-item.selected > img {
  filter: drop-shadow(0 0 5px rgba(201,169,200,.7));
}
.canvas-item.selected::after {
  content:''; position:absolute; inset:var(--sel-inset, -4px);
  border: 1.5px dashed var(--mauve); border-radius:6px;
  pointer-events:none; animation: sel-pulse 2s ease-in-out infinite;
}
@keyframes sel-pulse { 0%,100%{opacity:.5} 50%{opacity:1} }

/* ── Central toolbar (shown when a flower is selected) ──── */
.canvas-toolbar {
  position: absolute;
  top: 10px; left: 50%; transform: translateX(-50%);
  z-index: 200;
  display: flex; align-items: center; gap: 2px;
  background: rgba(250,247,242,.94);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 10px;
  box-shadow: 0 4px 18px rgba(61,53,48,.13);
  animation: ctb-in 160ms ease both;
  white-space: nowrap;
}
@keyframes ctb-in {
  from { opacity:0; transform:translateX(-50%) translateY(-6px); }
  to   { opacity:1; transform:translateX(-50%) translateY(0); }
}
.ctb-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none; background: transparent;
  color: var(--text); font-size: 1rem; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t);
  user-select: none; touch-action: none;
  flex-shrink: 0;
}
.ctb-btn:hover  { background: rgba(201,169,200,.2); }
.ctb-btn:active { background: rgba(201,169,200,.35); }
.ctb-remove     { color: var(--rose) !important; font-weight: 700; }
.ctb-remove:hover { background: rgba(242,196,206,.3) !important; }
.ctb-sep {
  width: 1px; height: 18px;
  background: rgba(201,169,200,.35);
  margin: 0 3px; flex-shrink: 0;
}

/* action bar */
.canvas-actions { display:flex; gap:8px; justify-content:center; flex-wrap:wrap; align-items:center; }

/* ═══════════════════════════════════════════════════════════
   RIGHT ANALYSIS PANEL
═══════════════════════════════════════════════════════════ */
#analysis-panel {
  position: sticky; top: calc(var(--header-h) + 16px);
  background: rgba(250,247,242,.75);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
  min-height: 200px;
  opacity: 0; transform: translateX(10px);
  transition: opacity 380ms ease, transform 380ms ease;
}
#analysis-panel.has-content { opacity:1; transform:none; }

.analysis-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.analysis-count  { font-size:.8rem; font-weight:300; color:var(--text-soft); }
.analysis-section { margin-bottom:14px; }
.analysis-label  { font-size:.73rem; font-weight:300; letter-spacing:.08em; text-transform:uppercase; color:var(--text-soft); margin-bottom:6px; }
.analysis-keywords, .analysis-occasions { display:flex; flex-wrap:wrap; gap:4px; }

.analysis-empty {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:12px; min-height:200px; color:var(--text-soft); font-weight:300; font-size:.85rem;
  text-align:center; padding: 10px;
}

/* dominant colors row */
.dominant-colors { display:flex; gap:7px; align-items:center; flex-wrap:wrap; }
.dom-color-circle {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid rgba(250,247,242,.9);
  box-shadow: 0 1px 4px rgba(61,53,48,.15);
  flex-shrink: 0;
  position: relative;
}
.dom-color-circle[title]:hover::after {
  content: attr(title);
  position: absolute; top: 28px; left: 50%; transform: translateX(-50%);
  background: rgba(61,53,48,.8); color: #fff;
  font-size: .62rem; padding: 2px 6px; border-radius: 4px;
  white-space: nowrap; pointer-events: none; z-index: 10;
}

/* seasonality display */
.season-pills { display:flex; gap:6px; }
.season-pill {
  display: flex; align-items: center; gap: 5px;
  font-size: .76rem; font-weight: 300;
  padding: 3px 10px; border-radius: 12px;
  background: rgba(168,191,168,.14);
  border: 1px solid rgba(168,191,168,.55);
}
.season-pill-icon { display:flex; align-items:center; }

/* suggestions */
.suggest-row { display:flex; gap:8px; }
.suggest-thumb {
  display:flex; flex-direction:column; align-items:center; gap:3px;
  cursor:pointer; flex:1; min-width:0;
  transition: transform var(--t);
}
.suggest-thumb:hover { transform:translateY(-2px); }
.suggest-thumb img { width:62px; height:62px; object-fit:contain; }
.suggest-thumb span { font-size:.72rem; font-weight:300; text-align:center; color:var(--text-soft); line-height:1.2; }

.panel-title { font-family:'Philosopher',serif; font-weight:700; font-size:1.15rem; letter-spacing:.02em; }

/* ═══════════════════════════════════════════════════════════
   GUIDE WIZARD OVERLAY
═══════════════════════════════════════════════════════════ */
#guide-overlay {
  position:fixed; inset:0; z-index:400;
  display:flex; align-items:center; justify-content:center;
  background: rgba(250,247,242,.9);
  backdrop-filter: blur(8px);
  opacity:0; pointer-events:none;
  transition: opacity 300ms ease;
}
#guide-overlay.open { opacity:1; pointer-events:auto; }

.guide-paper {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 16px 56px rgba(61,53,48,.12);
  padding: 36px 40px;
  width: 520px; max-width: 96vw;
  max-height: 90vh; overflow-y:auto;
}
.guide-header { display:flex; align-items:center; gap:8px; margin-bottom:24px; }
.guide-dots   { display:flex; gap:5px; flex:1; }
.guide-dot {
  width:8px; height:8px; border-radius:50%;
  background:rgba(201,169,200,.3);
  transition: background var(--t), transform var(--t);
}
.guide-dot.active { background:var(--mauve); transform:scale(1.25); }
.guide-dot.done   { background:var(--sage); }
.guide-step-label { font-size:.7rem; font-weight:300; color:var(--text-soft); white-space:nowrap; }
.guide-x { background:none; border:none; cursor:pointer; font-size:.88rem; color:var(--text-soft); padding:4px; }
.guide-x:hover { color:var(--text); }
.guide-q    { font-family:'Philosopher',serif; font-size:1.5rem; margin-bottom:7px; }
.guide-hint { font-weight:300; font-size:.86rem; color:var(--text-soft); margin-bottom:22px; line-height:1.6; }
.guide-body { margin-bottom:28px; min-height:80px; }
.guide-footer { display:flex; justify-content:space-between; align-items:center; }

/* pills */
.guide-pills { display:flex; flex-wrap:wrap; gap:8px; }
.guide-pill {
  display:flex; align-items:center; gap:6px;
  padding:9px 16px; border-radius:22px;
  border: 1.5px solid rgba(201,169,200,.38);
  background:transparent; font-family:'Outfit',sans-serif; font-weight:300; font-size:.88rem;
  color:var(--text); cursor:pointer;
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.guide-pill:hover   { border-color:var(--mauve); background:rgba(201,169,200,.1); }
.guide-pill.selected { background:rgba(242,196,206,.4); border-color:var(--rose); transform:scale(1.02); }
.pill-icon { font-size:1rem; }

/* dual range */
.dual-range-wrap { padding: 10px 0 4px; }
.dual-range-track { position:relative; height:8px; background:rgba(201,169,200,.2); border-radius:4px; margin-bottom:14px; }
.dual-range-fill  { position:absolute; height:100%; background:var(--mauve); border-radius:4px; pointer-events:none; }
.dr-input { position:absolute; width:100%; pointer-events:none; -webkit-appearance:none; appearance:none; height:8px; background:transparent; margin:0; top:0; }
.dr-input::-webkit-slider-thumb { -webkit-appearance:none; appearance:none; width:20px; height:20px; border-radius:50%; background:var(--ivory); border:2px solid var(--mauve); box-shadow:0 2px 6px rgba(201,169,200,.35); cursor:pointer; pointer-events:auto; transition:transform var(--t); }
.dr-input::-webkit-slider-thumb:hover { transform:scale(1.15); }
.dr-input::-moz-range-thumb { width:18px; height:18px; border-radius:50%; background:var(--ivory); border:2px solid var(--mauve); cursor:pointer; pointer-events:auto; }
.dual-range-labels { display:flex; justify-content:space-between; align-items:center; }
.dr-lbl { font-size:.7rem; font-weight:300; color:var(--text-soft); }
.dr-val { font-family:'Philosopher',serif; font-size:1.15rem; color:var(--mauve); }

/* color grid (guide) — all on one line, padding so selection ring isn't clipped */
.guide-color-grid { display:flex; flex-wrap:nowrap; gap:6px; justify-content:center; overflow-x:auto; padding:6px 2px 4px; }
.guide-swatch { width:28px; height:28px; flex-shrink:0; border-radius:50%; border:3px solid transparent; cursor:pointer; position:relative; transition:transform var(--t), border-color var(--t), box-shadow var(--t); }
.guide-swatch:hover  { transform:scale(1.12); }
.guide-swatch.selected { border-color:var(--text); box-shadow:0 0 0 2px white; transform:scale(1.15); }
.swatch-check { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:.72rem; color:#fff; opacity:0; text-shadow:0 1px 3px rgba(0,0,0,.4); transition:opacity var(--t); }
.guide-swatch.selected .swatch-check { opacity:1; }
.multi-swatch { background: conic-gradient(from 0deg, #e63946, #f4a261, #e9c46a, #52b788, #4361ee, #7b2d8b, #e63946); }

/* season cards */
.guide-season-row { display:flex; gap:8px; flex-wrap:wrap; }
.season-card { flex:1; min-width:80px; display:flex; flex-direction:column; align-items:center; gap:7px; padding:16px 8px; border-radius:var(--r-md); border:1.5px solid var(--border); background:rgba(250,247,242,.6); cursor:pointer; transition:border-color var(--t), background var(--t), transform var(--t); }
.season-card:hover   { border-color:var(--mauve); background:rgba(201,169,200,.1); }
.season-card.selected { border-color:var(--mauve); background:rgba(242,196,206,.22); transform:translateY(-2px); }
.season-icon  { font-size:1.6rem; display:flex; align-items:center; justify-content:center; }
.season-label { font-family:'Outfit',sans-serif; font-size:.8rem; font-weight:300; }

/* ghost/outline buttons */
.btn-ghost { background:transparent; border:none; font-family:'Outfit',sans-serif; font-weight:300; font-size:.8rem; color:var(--text-soft); cursor:pointer; padding:6px 10px; transition:color var(--t); }
.btn-ghost:hover { color:var(--text); }

/* ═══════════════════════════════════════════════════════════
   SHARED BUTTONS
═══════════════════════════════════════════════════════════ */
.btn { font-family:'Outfit',sans-serif; font-weight:400; font-size:.85rem; letter-spacing:.03em; padding:9px 20px; border-radius:18px; border:1px solid transparent; cursor:pointer; transition:background var(--t), border-color var(--t), opacity var(--t); display:inline-flex; align-items:center; gap:7px; }
.btn-primary { background:var(--mauve); color:#fff; border-color:var(--mauve); }
.btn-primary:hover { opacity:.85; }
.btn-outline { background:transparent; color:var(--text); border-color:rgba(61,53,48,.26); }
.btn-outline:hover { border-color:var(--mauve); color:var(--mauve); }

.btn-icon-wrap {
  position:relative; display:inline-flex; align-items:center;
  height:22px; flex-shrink:0;
}
.btn-butterfly {
  height:22px; width:auto; display:block;
  transition:opacity var(--t);
}
.btn-butterfly-hover {
  position:absolute; left:0; top:0;
  opacity:0; pointer-events:none;
}
.btn:hover .btn-butterfly-default { opacity:0; }
.btn:hover .btn-butterfly-hover   { opacity:1; }

/* ═══════════════════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════════════════ */
.chloris-toast {
  position:fixed; bottom:30px; left:50%; transform:translateX(-50%) translateY(10px);
  z-index:500;
  background: rgba(61,53,48,.88); color:#FAF7F2;
  font-family:'Outfit',sans-serif; font-weight:300; font-size:.86rem;
  padding: 10px 22px; border-radius:22px;
  opacity:0; pointer-events:none;
  transition: opacity 260ms ease, transform 260ms ease;
  white-space:nowrap;
}
.chloris-toast.show { opacity:1; transform:translateX(-50%) translateY(0); }

/* ═══════════════════════════════════════════════════════════
   ABOUT PAGE
═══════════════════════════════════════════════════════════ */
.about-hero   { text-align:center; padding:10px 0 10px; min-height:110px; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.about-accent { display:inline-block; width:32px; height:3px; border-radius:2px; background:var(--mauve); margin-top:16px; }
.about-body   { max-width:680px; margin:0 auto; display:flex; flex-direction:column; gap:44px; }
.about-section.card { background:rgba(250,247,242,.7); border:1px solid var(--border); border-radius:var(--r-md); padding:24px; }
.about-section.card.has-overflow { display:flow-root; overflow:visible; }
.about-section h3 { font-size:1.1rem; margin-bottom:10px; }
.about-section p  { font-weight:300; font-size:.95rem; line-height:1.8; color:rgba(61,53,48,.8); }
.about-card-img   { height:125px; width:auto; object-fit:contain; }
.about-card-img.img-left  { float:left; margin-right:18px; margin-left:-12px; margin-bottom:4px; }
.about-card-img.img-right { float:right; margin-left:18px; margin-right:-12px; margin-bottom:4px; }
.about-ext-link { color:var(--mauve); font-weight:400; transition:opacity var(--t); }
.about-ext-link:hover { opacity:.75; }

/* Stats grid */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width:520px) { .about-stats { grid-template-columns: repeat(2,1fr); } }
.stat-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 20px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(250,247,242,.7);
  text-align: center;
}
.stat-num {
  font-family: 'Philosopher', serif; font-size: 2rem; font-weight: 700;
  color: var(--mauve); line-height: 1;
}
.stat-label {
  font-family: 'Outfit', sans-serif; font-size: .72rem; font-weight: 300;
  letter-spacing: .07em; text-transform: uppercase; color: var(--text-soft);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.site-footer { text-align:center; padding:28px 24px; font-weight:300; font-size:.78rem; color:rgba(61,53,48,.4); letter-spacing:.04em; border-top:1px solid var(--border); }

/* ═══════════════════════════════════════════════════════════
   MUSIC PLAYER
═══════════════════════════════════════════════════════════ */
#music-player {
  position: fixed; bottom: 20px; right: 20px; z-index: 600;
  display: flex; align-items: center; gap: 8px;
  background: rgba(250,247,242,.92);
  border: 1px solid rgba(201,169,200,.35);
  border-radius: 28px;
  padding: 7px 14px 7px 10px;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(61,53,48,.10);
  transition: box-shadow var(--t), border-color var(--t);
}
#music-player:hover { border-color: rgba(201,169,200,.65); box-shadow: 0 4px 20px rgba(61,53,48,.14); }

.music-btn {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--mauve); color: #fff;
  border: none; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background var(--t), transform var(--t);
}
.music-btn:hover { background: #b490b3; transform: scale(1.08); }

.music-note {
  color: var(--mauve); opacity: .6; flex-shrink: 0;
}

.music-volume {
  -webkit-appearance: none; appearance: none;
  width: 72px; height: 3px;
  background: linear-gradient(to right, var(--mauve) 0%, var(--mauve) 35%, rgba(201,169,200,.3) 35%);
  border-radius: 2px; outline: none; cursor: pointer;
  flex-shrink: 0;
}
.music-volume::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--mauve); cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(201,169,200,.5);
}
.music-volume::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--mauve); cursor: pointer;
  border: 2px solid #fff;
}

/* ═══════════════════════════════════════════════════════════
   HELP BUTTON & PANEL
═══════════════════════════════════════════════════════════ */
.btn-help {
  position: absolute; top: 10px; right: 10px; z-index: 50;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(201,169,200,.45);
  background: rgba(250,247,242,.82);
  color: var(--text-soft);
  font-family: 'Outfit', sans-serif;
  font-size: .9rem; font-weight: 400;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--t), color var(--t), background var(--t), box-shadow var(--t);
  backdrop-filter: blur(4px);
}
.btn-help:hover {
  border-color: var(--mauve);
  color: var(--text);
  background: rgba(242,196,206,.25);
  box-shadow: 0 2px 8px rgba(201,169,200,.3);
}

#help-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(61,53,48,.38);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 220ms ease;
}
#help-overlay.open { opacity: 1; pointer-events: auto; }

.help-panel {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 32px 32px;
  max-width: 480px; width: 92%;
  max-height: 80vh; overflow-y: auto;
  box-shadow: 0 12px 48px rgba(61,53,48,.18);
  transform: translateY(12px);
  transition: transform 220ms ease;
}
#help-overlay.open .help-panel { transform: translateY(0); }

.help-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 20px;
}
.help-title {
  font-size: 1.15rem; font-weight: 700;
  color: var(--text);
}
.help-close {
  background: none; border: none; cursor: pointer;
  font-size: .9rem; color: var(--text-soft);
  padding: 2px 4px; border-radius: 4px;
  transition: color var(--t);
  flex-shrink: 0;
}
.help-close:hover { color: var(--text); }

.help-list {
  list-style: none; display: flex; flex-direction: column; gap: 18px;
}
.help-group { display: flex; flex-direction: column; gap: 6px; }
.help-group-title {
  font-size: .73rem; font-weight: 300;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-soft); padding: 0 2px;
}
.help-group-items {
  list-style: none; display: flex; flex-direction: column; gap: 5px;
}
.help-item {
  font-size: .88rem; line-height: 1.55;
  color: var(--text);
  padding: 9px 13px;
  background: rgba(242,196,206,.10);
  border: 1px solid rgba(201,169,200,.18);
  border-radius: var(--r-sm);
}
.help-item b { font-weight: 700; color: var(--text); }
.help-item-btn {
  display: flex; align-items: center; gap: 10px;
  background: rgba(201,169,200,.12);
}
.help-butterfly {
  height: 22px; width: auto; flex-shrink: 0;
  opacity: .85;
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width:5px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:var(--rose); border-radius:3px; }
